DDF: fix incorrect header magic number.

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

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2009-12-30 13:42:27 +11:00
parent 5c64fcb535
commit 076515ba50
1 changed files with 1 additions and 1 deletions

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