hammer2 - Add 'info' and 'mountall' directives

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 18 November 2015 01:02 UTC

- 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.

b92bfd3 hammer2 - Add 'info' and 'mountall' directives
sbin/hammer2/Makefile | 2 +-
sbin/hammer2/cmd_info.c | 370 +++++++++++++++++++++++++++++++++++++++++++++++
sbin/hammer2/cmd_pfs.c | 105 +++++++-------
sbin/hammer2/hammer2.8 | 15 ++
sbin/hammer2/hammer2.h | 5 +-
sbin/hammer2/main.c | 21 ++-
6 files changed, 459 insertions(+), 59 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share