]> 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, 26 May 2025 02:20:36 +0000 (22:20 -0400)
commit707af4359e132bc415c3f6339f4ced9f23b28c0b
tree694c95a03ee127ba87364e7475c3ac822fb9920c
parent86f11317429bd424ef61dc287566c0e3c4a4298c
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>
e2fsck/pass1.c