git: hammer2 - Add 'info' and 'mountall' directives
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Nov 17 23:06:39 PST 2015
commit b92bfd390c3b630890d37b6499aa2f03a898face
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Nov 17 23:02:00 2015 -0800
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.
Summary of changes:
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(-)
create mode 100644 sbin/hammer2/cmd_info.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b92bfd390c3b630890d37b6499aa2f03a898face
--
DragonFly BSD source repository
More information about the Commits
mailing list