]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: Suppress "orphan file is clean" message in preen mode
authorTheodore Ts'o <tytso@mit.edu>
Tue, 30 May 2023 17:50:52 +0000 (13:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 30 May 2023 17:50:52 +0000 (13:50 -0400)
commit24a11cc371a46ca9e68aed8f2cf4aabd22ea81eb
treeb1354bc9ddb3c9ccad229659c03e72012750381b
parent25ad8a431331b4d1d444a70b6079456cc612ac40
e2fsck: Suppress "orphan file is clean" message in preen mode

The e2fsck report, "Feature orphan_present is set but orphan file is
clean" is intended to request permission before removing the r/o
compat feature, orphan_present.  However, it is normal if the orphan
file is empty, and removing the r/o compat feature is a good thing so
that the file system can be mounted on older kernels.

When a file system with an orphan_file feature is mounted, the
orphan_present feature is set, and it is cleared when the file system
is cleanly unmounted.  IF the sytstem crashes when there are no inodes
in the orphan file, e2fsck should just silently clear the flag in
preen mode.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/problem.c
e2fsck/super.c