Accept "sd len 0" and auto-size the subdisk correctly.
Spotted by: csjp
This commit is contained in:
parent
6d90faf3d8
commit
b950fbe67b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user