NeilBrown: DDF: fix incorrect header magic number.

Martin F. Krafft madduck at alioth.debian.org
Wed Jan 27 02:04:13 UTC 2010


Module: mdadm
Branch: upstream
Commit: 076515ba5042459c17eb5718483ed09c9e567f5d
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=076515ba5042459c17eb5718483ed09c9e567f5d

Author: NeilBrown <neilb at suse.de>
Date:   Wed Dec 30 13:42:27 2009 +1100

DDF: fix incorrect header magic number.

I was using the wrong magic number when creating an array.

Signed-off-by: NeilBrown <neilb at suse.de>

---

 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);




More information about the pkg-mdadm-commits mailing list