Accept "sd len 0" and auto-size the subdisk correctly.

Spotted by: csjp
This commit is contained in:
Lukas Ertl 2004-06-23 21:15:55 +00:00
parent 6d90faf3d8
commit b950fbe67b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130990

View file

@ -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) {