]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Create: fix bug with --data-offset.
authorNeilBrown <neilb@suse.de>
Mon, 13 May 2013 07:26:37 +0000 (17:26 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 13 May 2013 07:26:37 +0000 (17:26 +1000)
Test for VARIABLE_OFFSET was wrong.

Signed-off-by: NeilBrown <neilb@suse.de>
Create.c

index b7e4c2eaf511901e6a735be512c92c037658ac58..63d50d67670a6fb5614b8ca227d02a62a444aa23 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -299,7 +299,7 @@ int Create(struct supertype *st, char *mddev,
                        missing_disks ++;
                        continue;
                }
-               if (data_offset != VARIABLE_OFFSET) {
+               if (data_offset == VARIABLE_OFFSET) {
                        doff = strchr(dname, ':');
                        if (doff) {
                                *doff++ = 0;