hammer2 - Allow simple 'mount @label <target>' shortcut for snapshots
commit48f9a501961df99f3e26ee67c674b3ce4b1e42cf
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 13 Sep 2017 17:33:27 +0000 (13 10:33 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 13 Sep 2017 17:36:05 +0000 (13 10:36 -0700)
tree1b1102f4d056e69e1870c54454b4a09e3b63d8e7
parent91e34264c7331871b057a174c0bda52f7ebfdcce
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
sys/vfs/hammer2/hammer2_vfsops.c