imsm: fix create by mdmon-update

imsm_dev dynamically grows, so dev_idx needs to be moved up in the
definition to avoid getting clobbered.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2008-08-12 02:25:49 -07:00
parent e74255d907
commit 6a3e913ee9
1 changed files with 3 additions and 3 deletions

View File

@ -195,8 +195,8 @@ struct imsm_update_activate_spare {
struct imsm_update_create_array {
enum imsm_update_type type;
struct imsm_dev dev;
int dev_idx;
struct imsm_dev dev;
};
static int imsm_env_devname_as_serial(void)
@ -2652,8 +2652,8 @@ static void imsm_process_update(struct supertype *st,
/* check update is next in sequence */
if (u->dev_idx != mpb->num_raid_devs) {
dprintf("%s: can not create arrays out of sequence\n",
__func__);
dprintf("%s: can not create array %d expected index %d\n",
__func__, u->dev_idx, mpb->num_raid_devs);
return;
}