summaryrefslogtreecommitdiffstats
path: root/sys/geom
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
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')
-rw-r--r--sys/geom/concat/g_concat.c3
-rw-r--r--sys/geom/concat/g_concat.h2
-rw-r--r--sys/geom/label/g_label.c3
-rw-r--r--sys/geom/label/g_label.h2
-rw-r--r--sys/geom/stripe/g_stripe.c3
-rw-r--r--sys/geom/stripe/g_stripe.h2
6 files changed, 9 insertions, 6 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index 768e2cb..9dd8bff 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -791,7 +791,8 @@ g_concat_config(struct gctl_req *req, struct g_class *mp, const char *verb)
if (strcmp(verb, "create") == 0) {
g_concat_ctl_create(req, mp);
return;
- } else if (strcmp(verb, "destroy") == 0) {
+ } else if (strcmp(verb, "destroy") == 0 ||
+ strcmp(verb, "stop") == 0) {
g_concat_ctl_destroy(req, mp);
return;
}
diff --git a/sys/geom/concat/g_concat.h b/sys/geom/concat/g_concat.h
index 013356b..81675d8 100644
--- a/sys/geom/concat/g_concat.h
+++ b/sys/geom/concat/g_concat.h
@@ -34,7 +34,7 @@
#define G_CONCAT_CLASS_NAME "CONCAT"
#define G_CONCAT_MAGIC "GEOM::CONCAT"
-#define G_CONCAT_VERSION 1
+#define G_CONCAT_VERSION 2
#ifdef _KERNEL
#define G_CONCAT_TYPE_MANUAL 0
diff --git a/sys/geom/label/g_label.c b/sys/geom/label/g_label.c
index 2aa9754..7b0781b 100644
--- a/sys/geom/label/g_label.c
+++ b/sys/geom/label/g_label.c
@@ -394,7 +394,8 @@ g_label_config(struct gctl_req *req, struct g_class *mp, const char *verb)
if (strcmp(verb, "create") == 0) {
g_label_ctl_create(req, mp);
return;
- } else if (strcmp(verb, "destroy") == 0) {
+ } else if (strcmp(verb, "destroy") == 0 ||
+ strcmp(verb, "stop") == 0) {
g_label_ctl_destroy(req, mp);
return;
}
diff --git a/sys/geom/label/g_label.h b/sys/geom/label/g_label.h
index 011cc5e..2b71dc1 100644
--- a/sys/geom/label/g_label.h
+++ b/sys/geom/label/g_label.h
@@ -34,7 +34,7 @@
#define G_LABEL_CLASS_NAME "LABEL"
#define G_LABEL_MAGIC "GEOM::LABEL"
-#define G_LABEL_VERSION 0
+#define G_LABEL_VERSION 1
#define G_LABEL_DIR "label"
#ifdef _KERNEL
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