hammer2 - Add 'info' and 'mountall' directives
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Nov 2015 07:02:00 +0000 (23:02 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Nov 2015 07:02:00 +0000 (23:02 -0800)
commitb92bfd390c3b630890d37b6499aa2f03a898face
tree269a3239290ccf437525aa33ff3331d1b93fa09e
parent5b7036edd2c73c64bac97334ca579930736c71b2
hammer2 - Add 'info' and 'mountall' directives

* hammer2 info - scans all block devices with hammer2 partitions and
  displays available super-root entries.

* hammer2 mountall - scans all block devices with hammer2 partitions
  and mounts their @LOCAL PFS in /var/hammer2/LOCAL.serno.s%d%c
  in the background, waiting until the mounts complete or 15 seconds
  without a status change.

  The idea here is to bring all local block devices online, allowing
  all PFS's related to the H2 block devices to become active (mounting
  one makes them all available), but still giving the system operator
  the ability to idle a block device for maintenance by dismounting
  all of its actively-mounted PFSs.

  A bit confusing, the feature will be ironed out later.
sbin/hammer2/Makefile
sbin/hammer2/cmd_info.c [new file with mode: 0644]
sbin/hammer2/cmd_pfs.c
sbin/hammer2/hammer2.8
sbin/hammer2/hammer2.h
sbin/hammer2/main.c