]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: fix incorrect header magic number.
authorNeilBrown <neilb@suse.de>
Wed, 30 Dec 2009 02:42:27 +0000 (13:42 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 30 Dec 2009 02:42:27 +0000 (13:42 +1100)
I was using the wrong magic number when creating an array.

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

index fe83642f779c13f0ad15c52f3a2329b62c0c5fca..1014d818ed505288b2f50745197705d29cb7f388 100644 (file)
@@ -1739,7 +1739,7 @@ static int init_super_ddf(struct supertype *st,
 
        memset(pd, 0xff, pdsize);
        memset(pd, 0, sizeof(*pd));
-       pd->magic = DDF_PHYS_DATA_MAGIC;
+       pd->magic = DDF_PHYS_RECORDS_MAGIC;
        pd->used_pdes = __cpu_to_be16(0);
        pd->max_pdes = __cpu_to_be16(max_phys_disks);
        memset(pd->pad, 0xff, 52);