freebsd-dev/sbin/fsck_msdosfs
Xin LI 401475f50c Fix a bug with dirty file system handling.
r356313 broke handling of dirty file system because we have restricted
the correction of "odd" byte sequences to checkfat(), and as a result
the dirty bit is never cleared.  The old fsck_msdosfs code would write
FAT twice to fix the dirty bit, which is also not ideal.

Fix this by introducing a new rountine, cleardirty() which will perform
the set of clean bit only, and use it in checkfilesys() if we thought
the file system was dirty.

Reviewed by:		cem, emaste
MFC after:		3 day
Differential Revision:	https://reviews.freebsd.org/D24581
2020-04-27 02:01:48 +00:00
..
boot.c Diff reduction against NetBSD, no functional change. 2020-02-02 20:53:31 +00:00
check.c Fix a bug with dirty file system handling. 2020-04-27 02:01:48 +00:00
dir.c Reduce memory footprint of fsck_msdosfs. 2020-01-03 00:31:48 +00:00
dosfs.h Reduce memory footprint of fsck_msdosfs. 2020-01-03 00:31:48 +00:00
ext.h Fix a bug with dirty file system handling. 2020-04-27 02:01:48 +00:00
fat.c Fix a bug with dirty file system handling. 2020-04-27 02:01:48 +00:00
fsck_msdosfs.8 fsck_msdosfs.8: document -M. 2020-01-07 04:33:14 +00:00
main.c Reduce memory footprint of fsck_msdosfs. 2020-01-03 00:31:48 +00:00
Makefile Use humanize_number to format available and bad space sizes. 2020-02-10 04:16:41 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00