git: ufs: Rename a number of UFS constants throughout the tree.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Apr 7 15:04:40 PDT 2018


commit c309c6d4b7544672e5babaa14ab7290f4a777e79
Author: Sascha Wildner <saw at online.de>
Date:   Sun Apr 8 00:03:47 2018 +0200

    ufs: Rename a number of UFS constants throughout the tree.
    
    ROOTINO       -> UFS_ROOTINO
    WINO          -> UFS_WINO
    NDADDR        -> UFS_NDADDR
    NIADDR        -> UFS_NIADDR
    MAXSYMLINKLEN -> UFS1_MAXSYMLINKLEN
    
    This helps to better sepate them from identically named EXT2 constants
    which I'll rename in a later commit.
    
    It also helps with my makefs(8) port.
    
    I went with FreeBSD's names, so it is UFS1_MAXSYMLINKLEN even though
    we'll probably never have UFS2, but since they are in public headers,
    some stuff in dports might benefit from it in the future.
    
    For safety, bump <sys/param.h> too.

Summary of changes:
 lib/libstand/ufs.c           | 45 +++++++++++++++++----------------
 sbin/dump/traverse.c         | 20 +++++++--------
 sbin/ffsinfo/ffsinfo.c       |  2 +-
 sbin/fsck/dir.c              | 26 ++++++++++---------
 sbin/fsck/inode.c            | 20 +++++++--------
 sbin/fsck/main.c             |  2 +-
 sbin/fsck/pass1.c            | 20 +++++++--------
 sbin/fsck/pass1b.c           |  3 +--
 sbin/fsck/pass2.c            | 30 +++++++++++-----------
 sbin/fsck/pass3.c            |  4 +--
 sbin/fsck/pass4.c            |  2 +-
 sbin/fsck/pass5.c            |  6 ++---
 sbin/fsck/setup.c            |  6 ++---
 sbin/fsck/utilities.c        |  6 ++---
 sbin/fsdb/fsdb.c             | 13 +++++-----
 sbin/fsdb/fsdbutil.c         |  6 ++---
 sbin/fsirand/fsirand.c       |  2 +-
 sbin/growfs/debug.c          |  7 ++----
 sbin/growfs/growfs.c         |  8 +++---
 sbin/newfs/mkfs.c            | 22 ++++++++---------
 sbin/quotacheck/quotacheck.c |  4 +--
 sbin/restore/dirs.c          |  6 ++---
 sbin/restore/interactive.c   | 10 ++++----
 sbin/restore/main.c          |  9 ++++---
 sbin/restore/restore.c       | 18 +++++++-------
 sbin/restore/symtab.c        | 20 +++++++--------
 sbin/restore/tape.c          |  2 +-
 sbin/restore/utilities.c     |  2 +-
 sys/sys/param.h              |  3 ++-
 sys/vfs/nfs/nfs_vfsops.c     |  2 +-
 sys/vfs/ufs/dinode.h         | 17 ++++++-------
 sys/vfs/ufs/ffs_alloc.c      |  8 +++---
 sys/vfs/ufs/ffs_balloc.c     | 16 ++++++------
 sys/vfs/ufs/ffs_inode.c      | 29 +++++++++++-----------
 sys/vfs/ufs/ffs_softdep.c    | 59 +++++++++++++++++++++++---------------------
 sys/vfs/ufs/ffs_vfsops.c     |  8 +++---
 sys/vfs/ufs/ffs_vnops.c      |  2 +-
 sys/vfs/ufs/fs.h             | 11 +++++----
 sys/vfs/ufs/softdep.h        |  5 ++--
 sys/vfs/ufs/ufs_bmap.c       | 20 +++++++--------
 sys/vfs/ufs/ufs_lookup.c     | 11 ++++-----
 sys/vfs/ufs/ufs_vfsops.c     |  3 +--
 sys/vfs/ufs/ufs_vnops.c      |  4 +--
 usr.sbin/quot/quot.c         |  6 ++---
 44 files changed, 265 insertions(+), 260 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list