summaryrefslogtreecommitdiffstats
path: root/sys/geom/stripe
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-07-05 21:16:37 +0000
committerpjd <pjd@FreeBSD.org>2004-07-05 21:16:37 +0000
commit782281411585b11c71b5fc34d535c71848a7efd9 (patch)
treef9d11c474284afcadba02b886c45bd73c725b0b6 /sys/geom/stripe
parentfe7583f88c43e3d41c4526d3f8370a0b22407f37 (diff)
downloadFreeBSD-src-782281411585b11c71b5fc34d535c71848a7efd9.zip
FreeBSD-src-782281411585b11c71b5fc34d535c71848a7efd9.tar.gz
- Add 'stop' command, which works just like 'destroy' command, but sounds
less dangerous. - Update manual pages and extend examples. - Bump versions.
Diffstat (limited to 'sys/geom/stripe')
-rw-r--r--sys/geom/stripe/g_stripe.c3
-rw-r--r--sys/geom/stripe/g_stripe.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c
index 1d87a49..cac06f8 100644
--- a/sys/geom/stripe/g_stripe.c
+++ b/sys/geom/stripe/g_stripe.c
@@ -859,7 +859,8 @@ g_stripe_config(struct gctl_req *req, struct g_class *mp, const char *verb)
if (strcmp(verb, "create") == 0) {
g_stripe_ctl_create(req, mp);
return;
- } else if (strcmp(verb, "destroy") == 0) {
+ } else if (strcmp(verb, "destroy") == 0 ||
+ strcmp(verb, "stop") == 0) {
g_stripe_ctl_destroy(req, mp);
return;
}
diff --git a/sys/geom/stripe/g_stripe.h b/sys/geom/stripe/g_stripe.h
index 07db6de..2a9ff2d 100644
--- a/sys/geom/stripe/g_stripe.h
+++ b/sys/geom/stripe/g_stripe.h
@@ -34,7 +34,7 @@
#define G_STRIPE_CLASS_NAME "STRIPE"
#define G_STRIPE_MAGIC "GEOM::STRIPE"
-#define G_STRIPE_VERSION 0
+#define G_STRIPE_VERSION 1
#ifdef _KERNEL
#define G_STRIPE_TYPE_MANUAL 0
OpenPOWER on IntegriCloud