]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble: fix handling of empty container
authorDan Williams <dan.j.williams@intel.com>
Tue, 4 Aug 2009 17:17:23 +0000 (10:17 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 4 Aug 2009 17:17:23 +0000 (10:17 -0700)
commit3ef383aa9616e183cb1eda38fdbe4d7a2ebdfd4c
tree14d76d15903072421ef62b816c69b432a7a0e9e4
parent7e8545e954dbe0c08277bb8141057c4ae05fada3
Assemble: fix handling of empty container

# mdadm --create /dev/md/ddf /dev/sd[b-e] -n 4 -e ddf
mdadm: container /dev/md/ddf prepared.
# mdadm -Ss
mdadm: stopped /dev/md126
# mdadm -As
mdadm: Container /dev/md/ddf0 has been assembled with 4 drives
Segmentation fault

Reported-by: Artur Wojcik <artur.wojcik@intel.com>
Reported-by: Jacek Danecki <jacek.danecki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Assemble.c