From: Dan Williams Date: Sun, 12 Apr 2009 07:58:28 +0000 (-0700) Subject: imsm: add the ddf field X-Git-Tag: mdadm-3.0-rc1~28^2~3 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=252d23c018cefb2e42c494b1789f5e4945063ee3;hp=979d38be50e84b70e0809249a6b05864049fb97d imsm: add the ddf field This field is always one in arrays created by the Windows driver / OROM, not sure why... Signed-off-by: Dan Williams --- diff --git a/super-intel.c b/super-intel.c index 3415da47..300c7b86 100644 --- a/super-intel.c +++ b/super-intel.c @@ -89,7 +89,7 @@ struct imsm_map { __u8 num_members; /* number of member disks */ __u8 num_domains; /* number of parity domains */ __u8 failed_disk_num; /* valid only when state is degraded */ - __u8 reserved[1]; + __u8 ddf; __u32 filler[7]; /* expansion area */ #define IMSM_ORD_REBUILD (1 << 24) __u32 disk_ord_tbl[1]; /* disk_ord_tbl[num_members], @@ -2397,6 +2397,7 @@ static int init_super_imsm_volume(struct supertype *st, mdu_array_info_t *info, map->failed_disk_num = ~0; map->map_state = info->level ? IMSM_T_STATE_UNINITIALIZED : IMSM_T_STATE_NORMAL; + map->ddf = 1; if (info->level == 1 && info->raid_disks > 2) { fprintf(stderr, Name": imsm does not support more than 2 disks"