diff options
author | pjd <pjd@FreeBSD.org> | 2004-07-31 00:54:44 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-07-31 00:54:44 +0000 |
commit | 0d74239c0036a9cdc8e207955d254d863844fdd0 (patch) | |
tree | 1e2bd8a198976acda9030ee534251189c83ad331 /sbin | |
parent | 8c9f26b7ea5ea9e9ecd17a9dbc6abb73549d694b (diff) | |
download | FreeBSD-src-0d74239c0036a9cdc8e207955d254d863844fdd0.zip FreeBSD-src-0d74239c0036a9cdc8e207955d254d863844fdd0.tar.gz |
Add '-p' option for 'insert' command which allows to specify priority
of the new component.
Version number wasn't bumped (it should be), because I think there are
no geom_mirror users yet.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/geom/class/mirror/geom_mirror.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/geom/class/mirror/geom_mirror.c b/sbin/geom/class/mirror/geom_mirror.c index 66174b7..04f0351 100644 --- a/sbin/geom/class/mirror/geom_mirror.c +++ b/sbin/geom/class/mirror/geom_mirror.c @@ -46,6 +46,7 @@ uint32_t version = G_MIRROR_VERSION; static char label_balance[] = "split", configure_balance[] = "none"; static intmax_t label_slice = 4096, configure_slice = -1; +static intmax_t insert_priority = 0; static void mirror_main(struct gctl_req *req, unsigned f); static void mirror_activate(struct gctl_req *req); @@ -79,6 +80,7 @@ struct g_command class_commands[] = { { "insert", G_FLAG_VERBOSE, NULL, { { 'i', "inactive", NULL, G_TYPE_NONE }, + { 'p', "priority", &insert_priority, G_TYPE_NUMBER }, G_OPT_SENTINEL } }, @@ -105,7 +107,7 @@ usage(const char *comm) " %s dump dev1 [dev2 [...]]\n" " %s configure [-anv] [-b balance] [-s slice] name\n" " %s rebuild [-v] name dev1 [dev2 [...]]\n" - " %s insert [-iv] name dev1 [dev2 [...]]\n" + " %s insert [-iv] [-p priority] name dev1 [dev2 [...]]\n" " %s remove [-v] name dev1 [dev2 [...]]\n" " %s activate [-v] name dev1 [dev2 [...]]\n" " %s deactivate [-v] name dev1 [dev2 [...]]\n" |