git: sys/vfs/msdosfs: Remove DragonFly specific macro de_off2cn()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Oct 25 12:43:56 PDT 2019


commit c89bff582dcc673dbbc1ea62de279a83f162ba0c
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Oct 26 00:44:14 2019 +0900

    sys/vfs/msdosfs: Remove DragonFly specific macro de_off2cn()
    
    4afd80f1a2 contains several fixes, but from the way de_cluster()
    is used, an explicitly casted version of de_cluster() shouldn't
    be needed.
    
    Note that maximum cluster# (and file relative cluster# too) in
    FAT12/16/32 is much smaller than maximum int32_t value. Note that
    maximum file size in FAT12/16/32 is < 4GiB.

Summary of changes:
 sys/vfs/msdosfs/msdosfs_denode.c |  4 ++--
 sys/vfs/msdosfs/msdosfs_vnops.c  | 22 ++++++++++------------
 sys/vfs/msdosfs/msdosfsmount.h   |  3 ---
 3 files changed, 12 insertions(+), 17 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list