]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: ->getinfo_super set raid_disk to disk.number
authorDan Williams <dan.j.williams@intel.com>
Mon, 16 Jun 2008 22:36:40 +0000 (15:36 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 16 Jun 2008 22:36:40 +0000 (15:36 -0700)
commit4a04ec6ca1a0e013d857ac8993d38752a6223fc2
treef91dbb52078e679da5526dcb44b5062e9dcc095a
parentc2c087e63120bf357f5a2a7a3ce9e24cfbf54194
imsm: ->getinfo_super set raid_disk to disk.number

A spare device by definition will have raid_disk set to -1, but when
assembling the container we want this disk to by included.

Fixes a SIGSEGV when doing:
mdadm -A /dev/imsm -e imsm /dev/sd[b-e]

...where /dev/sde is marked as a global spare device

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c