git: cb69951f7ee6 - main - fsck_msdosfs: reduce the scope of dentry deletion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Mar 2026 07:51:26 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=cb69951f7ee68c51ce465dba9b0d2f661c567c4b
commit cb69951f7ee68c51ce465dba9b0d2f661c567c4b
Author: YangWen <anmuxixixi@gmail.com>
AuthorDate: 2025-05-07 15:39:30 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-03-07 07:51:16 +0000
fsck_msdosfs: reduce the scope of dentry deletion
When dentry flag is ATTR_VOLUME because of 1 bit flip(from 0x10 to 0x18),
removede function will delete all dentry from invalid dentry postion,
so some normal dentries will be deleted in the same cluster.Unfortunately,
these normal directories and files will not be visible to the user
after wo do fsck_msdos
Signed-off-by: YangWen <anmuxixixi@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1694
---
sbin/fsck_msdosfs/dir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c
index 2d7e4bcdc38f..de3d950c9611 100644
--- a/sbin/fsck_msdosfs/dir.c
+++ b/sbin/fsck_msdosfs/dir.c
@@ -769,7 +769,7 @@ readDosDirSection(struct fat_descriptor *fat, struct dosDirEntry *dir)
if (vallfn || invlfn) {
mod |= removede(fat,
invlfn ? invlfn : vallfn, p,
- invlfn ? invcl : valcl, -1, 0,
+ invlfn ? invcl : valcl, cl, cl,
fullpath(dir), 2);
vallfn = NULL;
invlfn = NULL;