summaryrefslogtreecommitdiff
path: root/super1.c
diff options
context:
space:
mode:
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index 7fc91b2..f8f3545 100644
--- a/super1.c
+++ b/super1.c
@@ -1766,6 +1766,7 @@ static void free_super1(struct supertype *st)
static int validate_geometry1(struct supertype *st, int level,
int layout, int raiddisks,
int *chunk, unsigned long long size,
+ long long data_offset,
char *subdev, unsigned long long *freesize,
int verbose)
{
@@ -1797,7 +1798,7 @@ static int validate_geometry1(struct supertype *st, int level,
}
close(fd);
- *freesize = avail_size1(st, ldsize >> 9, -1);
+ *freesize = avail_size1(st, ldsize >> 9, data_offset);
return 1;
}
#endif /* MDASSEMBLE */