summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2010-04-23 16:20:45 +0000
committermjacob <mjacob@FreeBSD.org>2010-04-23 16:20:45 +0000
commita386ebb3a01e86fa4775849a0121b10294f0afdd (patch)
treea2c37faafd01f2cc58bf06e8f196777decbf8611 /sbin
parentb7ec77ff1e4a3708c0dea953e85bb6dbfc2c5a94 (diff)
downloadFreeBSD-src-a386ebb3a01e86fa4775849a0121b10294f0afdd.zip
FreeBSD-src-a386ebb3a01e86fa4775849a0121b10294f0afdd.tar.gz
This is an MFS of 205412.
Add 'rotate' and 'getactive' verbs to provide some control and information about what the currently active path is.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/class/multipath/geom_multipath.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/geom/class/multipath/geom_multipath.c b/sbin/geom/class/multipath/geom_multipath.c
index 4319d04..ab91e2d 100644
--- a/sbin/geom/class/multipath/geom_multipath.c
+++ b/sbin/geom/class/multipath/geom_multipath.c
@@ -62,6 +62,14 @@ struct g_command class_commands[] = {
"clear", G_FLAG_VERBOSE, mp_main, G_NULL_OPTS,
NULL, "[-v] prov ..."
},
+ {
+ "rotate", G_FLAG_VERBOSE, NULL, G_NULL_OPTS,
+ NULL, "[-v] prov ..."
+ },
+ {
+ "getactive", G_FLAG_VERBOSE, NULL, G_NULL_OPTS,
+ NULL, "[-v] prov ..."
+ },
G_CMD_SENTINEL
};
OpenPOWER on IntegriCloud