]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Manage.c
Add data_offset arg to ->avail_size
[thirdparty/mdadm.git] / Manage.c
index 9e6225315a139300a32e86c82d1554f85b2a0452..9b5c82b56485294f009ad8107c43241be1062f0b 100644 (file)
--- a/Manage.c
+++ b/Manage.c
@@ -628,7 +628,7 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv,
                }
 
                /* Make sure device is large enough */
-               if (tst->ss->avail_size(tst, ldsize/512) <
+               if (tst->ss->avail_size(tst, ldsize/512, INVALID_SECTORS) <
                    array_size) {
                        if (dv->disposition == 'M')
                                return 0;