diff options
author | NeilBrown <neilb@suse.de> | 2012-10-04 08:34:20 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-04 08:34:20 +0200 |
commit | af4348ddd101b8cb0ffc303f43544f49419a1658 (patch) | |
tree | e2cb9d59cd80e4562cf9872c18d9c43a97e93572 /super1.c | |
parent | Add data_offset arg to ->avail_size (diff) | |
download | mdadm-af4348ddd101b8cb0ffc303f43544f49419a1658.tar.xz mdadm-af4348ddd101b8cb0ffc303f43544f49419a1658.zip |
Add data_offset arg to ->validate_geometry.
This is needed to return correct available size. It isn't
really used yet.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1902,6 +1902,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, + unsigned long long data_offset, char *subdev, unsigned long long *freesize, int verbose) { @@ -1933,7 +1934,7 @@ static int validate_geometry1(struct supertype *st, int level, } close(fd); - *freesize = avail_size1(st, ldsize >> 9, INVALID_SECTORS); + *freesize = avail_size1(st, ldsize >> 9, data_offset); return 1; } #endif /* MDASSEMBLE */ |