[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-commits
Subject:    git: sbin/fsck_msdosfs: Fix a bug with dirty file system handling
From:       Tomohiro Kusumi <tkusumi () crater ! dragonflybsd ! org>
Date:       2020-04-27 16:53:53
Message-ID: 20200427165353.63A2DA16AE7 () crater ! dragonflybsd ! org
[Download RAW message or body]


commit ab6448f252482f7129efe54045c7f9a360799f77
Author: Tomohiro Kusumi <kusumi.tomohiro@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@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic