git: sys/vfs/hammer: Rename ondisk vol_name to vol_label

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Wed Apr 6 23:13:11 PDT 2016


commit 6c39d27aedd299180e0b77179a8690d90d1e6e6d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Apr 7 10:26:29 2016 +0900

    sys/vfs/hammer: Rename ondisk vol_name to vol_label
    
    Ondisk volume header having a field named vol_name for a label
    (not a block device path) is confusing, especially when inmemory
    volume structure has vol_name for a block device but not a label.
    
    There is even a kprintf message wrongly using ondisk vol_name
    as a block device path, as well as some comments saying vol_name
    is a filesystem label but not a path, which implies the name was
    misleading.
    
    This commit changes ondisk vol_name to vol_label.
    This commit also changes vol_name in struct hammer_ioc_info to
    vol_label. Outbox userspace programs using these two will see
    compile error after this commit (which I doubt there is any...).
    This commit doesn't break binaries.
    
    Note that vol_name in struct libhammer_fsinfo is unchanged.

Summary of changes:
 lib/libfsid/hammer.c             | 6 +++---
 lib/libhammer/info.c             | 2 +-
 sbin/newfs_hammer/newfs_hammer.c | 2 +-
 sys/vfs/hammer/hammer.h          | 4 ++--
 sys/vfs/hammer/hammer_disk.h     | 2 +-
 sys/vfs/hammer/hammer_ioctl.c    | 2 +-
 sys/vfs/hammer/hammer_ioctl.h    | 2 +-
 sys/vfs/hammer/hammer_ondisk.c   | 3 +--
 sys/vfs/hammer/hammer_vfsops.c   | 3 +--
 sys/vfs/hammer/hammer_volume.c   | 8 ++++----
 10 files changed, 16 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6c39d27aedd299180e0b77179a8690d90d1e6e6d


-- 
DragonFly BSD source repository



More information about the Commits mailing list