]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fuse2fs: set EXT2_ERROR_FS when recording errors
authorDarrick J. Wong <djwong@kernel.org>
Wed, 13 Aug 2025 22:34:14 +0000 (15:34 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 21 Aug 2025 00:00:54 +0000 (17:00 -0700)
Set the ERROR_FS bit when recording errors in the superblock so that
e2fsck will actually scan the filesystem without -f.

Cc: <linux-ext4@vger.kernel.org> # v1.43
Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
misc/fuse2fs.c

index 2648b55893d5e73a25c5539d08347f718a712e00..318bfb55345b9b130083552b4e8e41413599aa51 100644 (file)
@@ -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);