forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
ext4 dedup write fail
99degree edited this page May 27, 2024
·
2 revisions
From topjohnwu
https://twitter.com/topjohnwu/status/1170443615077666816
I found out that Android 10's system images are formatted with EXT4_FEATURE_RO_COMPAT_SHARED_BLOCKS. It will deduplicate blocks in the filesystem to
reduce the image size. On my Pixel XL, the partition is physically not large enough to successfully run 'e2fsck -E unshare_blocks'.
So simply put, ext4 dedup can be undo to ordinary ext4 fs by below:
e2fsck -f system.img
resizefs system.img 1G
e2fsck -E unshare_blocks