ddf: make sure Create fails if devices are too small.
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
97320d7ca4
commit
ea17e7aa30
|
@ -2651,6 +2651,8 @@ validate_geometry_ddf_container(struct supertype *st,
|
|||
close(fd);
|
||||
|
||||
*freesize = avail_size_ddf(st, ldsize >> 9);
|
||||
if (*freesize == 0)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue