diff options
author | NeilBrown <neilb@suse.de> | 2009-12-30 13:42:27 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-12-30 13:42:27 +1100 |
commit | 076515ba5042459c17eb5718483ed09c9e567f5d (patch) | |
tree | b011b9a4c66b4c3cffaffd187ccc65be161a5c2e | |
parent | 5c64fcb5358953883ae6b72e584bf7dbbae2b71f (diff) | |
download | mdadm-076515ba5042459c17eb5718483ed09c9e567f5d.tar.gz mdadm-076515ba5042459c17eb5718483ed09c9e567f5d.tar.xz mdadm-076515ba5042459c17eb5718483ed09c9e567f5d.zip |
DDF: fix incorrect header magic number.
I was using the wrong magic number when creating an array.
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | super-ddf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index fe83642..1014d81 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); |