lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <175573318782.4130038.7586301794202465954.stgit@frogsfrogsfrogs>
Date: Wed, 20 Aug 2025 16:43:28 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org, linux-ext4@...r.kernel.org
Subject: [PATCH 10/12] fuse2fs: set EXT2_ERROR_FS when recording errors

From: Darrick J. Wong <djwong@...nel.org>

Set the ERROR_FS bit when recording errors in the superblock so that
e2fsck will actually scan the filesystem without -f.

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


diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 2648b55893d5e7..318bfb55345b9b 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);


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ