libext2fs: add EXT2_FLAG_SHARE_DUP to de-duplicate data blocks

When assigning physical address for new data block, search sha
of existing blocks for match. If there's a match, reuse address
of the matched block.

Also set EXT4_FEATURE_RO_COMPAT_SHARED_BLOCKS in de-duped image.

Bug: 64109868
Merged-In: I8d2d22e9c301264413c1454c84d7bf6bb32ac5c0
Change-Id: I8d2d22e9c301264413c1454c84d7bf6bb32ac5c0
(cherry picked from commit 25c79ea1e064ec47b3d61a4fec8a6530c53846ae)
7 files changed