summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-06-23 21:15:55 +0000
committerle <le@FreeBSD.org>2004-06-23 21:15:55 +0000
commit6c59c5fae62be57d80a248a7e17a2df5fff32afe (patch)
tree9570861f081df7a8aa07bbedd9df4c4eb80251eb
parentf5f3e8600b5cd41c8645b3a5d45e20092a8b9ee1 (diff)
downloadFreeBSD-src-6c59c5fae62be57d80a248a7e17a2df5fff32afe.zip
FreeBSD-src-6c59c5fae62be57d80a248a7e17a2df5fff32afe.tar.gz
Accept "sd len 0" and auto-size the subdisk correctly.
Spotted by: csjp
-rw-r--r--sys/geom/vinum/geom_vinum_share.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/geom/vinum/geom_vinum_share.c b/sys/geom/vinum/geom_vinum_share.c
index 2c6530e..5cb4dab 100644
--- a/sys/geom/vinum/geom_vinum_share.c
+++ b/sys/geom/vinum/geom_vinum_share.c
@@ -606,10 +606,8 @@ gv_new_sd(int max, char *token[])
break;
}
s->size = gv_sizespec(token[j]);
- if (s->size <= 0) {
- errors++;
- break;
- }
+ if (s->size <= 0)
+ s->size = -1;
} else if (!strcmp(token[j], "driveoffset")) {
j++;
if (j >= max) {
OpenPOWER on IntegriCloud