git: sbin/fsck_msdosfs: Fix a bug with dirty file system handling

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Apr 27 09:53:53 PDT 2020


commit ab6448f252482f7129efe54045c7f9a360799f77
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Apr 28 01:40:53 2020 +0900

    sbin/fsck_msdosfs: 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.
    
    https://svnweb.freebsd.org/base?view=revision&revision=356313
    
    from freebsd/freebsd at ffa396196c4c0fcf8a6bf4d1dd88ffb9ce531ccc

Summary of changes:
 sbin/fsck_msdosfs/check.c |  2 +-
 sbin/fsck_msdosfs/ext.h   |  2 ++
 sbin/fsck_msdosfs/fat.c   | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab6448f252482f7129efe54045c7f9a360799f77


-- 
DragonFly BSD source repository


More information about the Commits mailing list