Add a new feature to mirror-copy and mirror-write. If the target PFS does
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 9 Nov 2008 05:22:56 +0000 (05:22 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 9 Nov 2008 05:22:56 +0000 (05:22 +0000)
commit01a72c9fb55b3e13d5bf1a6b2a37732a499cf480
tree07864984f06d40f436ae10bb20be74fff8fc9dd0
parentb72862c003672aeb33b1f589cf35f733e416e8f2
Add a new feature to mirror-copy and mirror-write.  If the target PFS does
not exist these directives will now ask you whether you want to create it
or not, providing a VERY convenient method for creating a new slave PFS.

WARNING! This adds another packet to the protocol to make the initial
handshake symmetrical, allowing the target to get information on the
originator's shared-uuid before the operation is initiated.  If running
to or from a remote host both sides must be running the same version of
the hammer utility.

Submitted-by: Michael Neumann <mneumann@ntecs.de>
sbin/hammer/cmd_mirror.c
sbin/hammer/hammer.8