summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--super-ddf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 11a3bac..7cc5ac6 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -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;
}