git: hammer2 - Allow simple 'mount @label <target>' shortcut for snapshots

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Sep 13 10:36:13 PDT 2017


commit 48f9a501961df99f3e26ee67c674b3ce4b1e42cf
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Sep 13 10:33:27 2017 -0700

    hammer2 - Allow simple 'mount @label <target>' shortcut for snapshots
    
    * If any hammer2 PFS on a device is already mounted, all other PFS's on
      the device can be mounted simply by specifying their label.  There is
      no need to specify the device.  e.g.:
    
      # hammer2 pfs-list /build
      Type        ClusterId (pfs_clid)                 Label
      MASTER      726d8ab1-9839-11e7-98a7-6145cb9ac050 ROOT
      MASTER      726d8a72-9839-11e7-98a7-6145cb9ac050 LOCAL
      SNAPSHOT    eb19b5fa-98a7-11e7-98a7-6145cb9ac050 ROOT.20170913.102102
      #
      # mount @ROOT.20170913.102102 /mnt

Summary of changes:
 sys/vfs/hammer2/hammer2_vfsops.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/48f9a501961df99f3e26ee67c674b3ce4b1e42cf


-- 
DragonFly BSD source repository


More information about the Commits mailing list