Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf2c6b
)
e2fsck: don't skip checks if the orphan file is present in the filesystem
author
Luis Henriques (SUSE)
<luis.henriques@linux.dev>
Tue, 11 Jun 2024 14:27:03 +0000
(15:27 +0100)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 24 Oct 2024 23:21:22 +0000
(19:21 -0400)
If the filesystem supports the orphan file feature and that file is present
then don't skip the filesystem checks as that file may need to be cleaned
up.
Signed-off-by: Luis Henriques (SUSE) <luis.henriques@linux.dev>
Link:
https://lore.kernel.org/r/20240611142704.14307-2-luis.henriques@linux.dev
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/unix.c
patch
|
blob
|
history
diff --git
a/e2fsck/unix.c
b/e2fsck/unix.c
index
de20b21
..
7768f0e
100644
(file)
--- a/
e2fsck/unix.c
+++ b/
e2fsck/unix.c
@@
-371,6
+371,10
@@
static void check_if_skip(e2fsck_t ctx)
if (ctx->options & E2F_OPT_JOURNAL_ONLY)
goto skip;
+ if (ext2fs_has_feature_orphan_file(fs->super) &&
+ ext2fs_has_feature_orphan_present(fs->super))
+ return;
+
lastcheck = ext2fs_get_tstamp(sb, s_lastcheck);
if (lastcheck > ctx->now)
lastcheck -= ctx->time_fudge;