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: <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>
diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 2648b55..318bfb5 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -5062,6 +5062,7 @@
 			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);