]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: fix e2fsck -E unshare_blocks when there are no shared blocks
authorTheodore Ts'o <tytso@mit.edu>
Mon, 26 May 2025 02:20:36 +0000 (22:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jun 2025 20:54:54 +0000 (16:54 -0400)
commit684da272a9ea2c9fbdd72f6b1dbe41e2b3e310c8
tree778c504d4411495e0ffcfb4a14c6e975312067a2
parentc26fcd0900c3cb0f3f45498c588316669da5c5d0
e2fsck: fix e2fsck -E unshare_blocks when there are no shared blocks

If there are no shared blocks in a ext4 file system, e2fsck -E
unshare_blocks will not actually clear the shared_blocks feature flag
since e2fsck_pass1_dupblocks() is never called.  Fix this by adding a
check in e2fsck_pass1() to clear the shared blocks flag.

https://github.com/tytso/e2fsprogs/issues/218

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 707af4359e132bc415c3f6339f4ced9f23b28c0b)
e2fsck/pass1.c