summaryrefslogtreecommitdiffstats
path: root/sys/geom/concat
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-01-30 22:47:07 +0000
committerpjd <pjd@FreeBSD.org>2006-01-30 22:47:07 +0000
commit74978a10e17d9d7c790f0696d2811484358de145 (patch)
tree61c510057c83dd0db70667cdb3a7fa605093dd98 /sys/geom/concat
parent1fe475315358198e03ad346e28e5a2d087aa5264 (diff)
downloadFreeBSD-src-74978a10e17d9d7c790f0696d2811484358de145.zip
FreeBSD-src-74978a10e17d9d7c790f0696d2811484358de145.tar.gz
Allow to specify only one disk. This is helpful when we want to extend
our concatenated device later. MFC after: 1 week
Diffstat (limited to 'sys/geom/concat')
-rw-r--r--sys/geom/concat/g_concat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index f2e980a..113c175 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -452,8 +452,8 @@ g_concat_create(struct g_class *mp, const struct g_concat_metadata *md,
G_CONCAT_DEBUG(1, "Creating device %s (id=%u).", md->md_name,
md->md_id);
- /* Two disks is minimum. */
- if (md->md_all <= 1)
+ /* One disks is minimum. */
+ if (md->md_all < 1)
return (NULL);
/* Check for duplicate unit */
@@ -664,7 +664,7 @@ g_concat_ctl_create(struct gctl_req *req, struct g_class *mp)
gctl_error(req, "No '%s' argument.", "nargs");
return;
}
- if (*nargs <= 2) {
+ if (*nargs < 2) {
gctl_error(req, "Too few arguments.");
return;
}
OpenPOWER on IntegriCloud