summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-04 08:34:20 +0200
committerNeilBrown <neilb@suse.de>2012-10-04 08:34:20 +0200
commitaf4348ddd101b8cb0ffc303f43544f49419a1658 (patch)
treee2cb9d59cd80e4562cf9872c18d9c43a97e93572 /Manage.c
parentAdd data_offset arg to ->avail_size (diff)
downloadmdadm-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 '')
-rw-r--r--Manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Manage.c b/Manage.c
index 9b5c82b5..d2b92a20 100644
--- a/Manage.c
+++ b/Manage.c
@@ -549,7 +549,7 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv,
if (tst->ss->validate_geometry(
tst, array->level, array->layout,
array->raid_disks, NULL,
- ldsize >> 9, NULL, NULL, 0) == 0) {
+ ldsize >> 9, INVALID_SECTORS, NULL, NULL, 0) == 0) {
if (!force) {
pr_err("%s is larger than %s can "
"effectively use.\n"