Searched hist:"401475 f50c6d1dd81cdbd994376d727d90cc979e" (Results 1 – 3 of 3) sorted by relevance
/freebsd/sbin/fsck_msdosfs/ |
H A D | ext.h | diff 401475f50c6d1dd81cdbd994376d727d90cc979e Mon Apr 27 04:01:48 CEST 2020 Xin LI <delphij@FreeBSD.org> 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
|
H A D | check.c | diff 401475f50c6d1dd81cdbd994376d727d90cc979e Mon Apr 27 04:01:48 CEST 2020 Xin LI <delphij@FreeBSD.org> 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
|
H A D | fat.c | diff 401475f50c6d1dd81cdbd994376d727d90cc979e Mon Apr 27 04:01:48 CEST 2020 Xin LI <delphij@FreeBSD.org> 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
|