From: Darrick J. Wong Date: Wed, 13 Aug 2025 22:34:14 +0000 (-0700) Subject: fuse2fs: set EXT2_ERROR_FS when recording errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33f8c42e0c3b3fb3d6f6654bdd616865d9832dae;p=thirdparty%2Fe2fsprogs.git 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" --- 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);