From: NeilBrown Date: Wed, 30 Dec 2009 02:42:27 +0000 (+1100) Subject: DDF: fix incorrect header magic number. X-Git-Tag: mdadm-3.1.2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076515ba5042459c17eb5718483ed09c9e567f5d;p=thirdparty%2Fmdadm.git DDF: fix incorrect header magic number. I was using the wrong magic number when creating an array. Signed-off-by: NeilBrown --- diff --git a/super-ddf.c b/super-ddf.c index fe83642f..1014d818 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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);