From 33f8c42e0c3b3fb3d6f6654bdd616865d9832dae Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 13 Aug 2025 15:34:14 -0700 Subject: [PATCH] fuse2fs: set EXT2_ERROR_FS when recording errors Set the ERROR_FS bit when recording errors in the superblock so that e2fsck will actually scan the filesystem without -f. Cc: # v1.43 Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs") Signed-off-by: "Darrick J. Wong" --- misc/fuse2fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c index 2648b558..318bfb55 100644 --- a/misc/fuse2fs.c +++ b/misc/fuse2fs.c @@ -5062,6 +5062,7 @@ static int __translate_error(ext2_filsys fs, ext2_ino_t ino, errcode_t err, sizeof(fs->super->s_first_error_func)); } + fs->super->s_state |= EXT2_ERROR_FS; fs->super->s_error_count++; ext2fs_mark_super_dirty(fs); ext2fs_flush(fs); -- 2.47.3