]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: when re-adding, do check avail size if ->sb cannot be found.
authorNeilBrown <neilb@suse.de>
Wed, 13 May 2015 04:08:41 +0000 (14:08 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 13 May 2015 04:08:41 +0000 (14:08 +1000)
commit2609f339028a6035a3fadb1190b565438000e35c
tree935cf70d7863fd2ab05429631a6e957c03d0f531
parentb638e7d4408bb43e655974f52946ad1cc07c0a90
Manage: when re-adding, do check avail size if ->sb cannot be found.

avail_size1 requires ->sb, so we must only call it if ->sb
was loaded.

If ->sb wasn't loaded, then we are only proceding on the basis that
the kernel might be able to work something out - we don't need to
do any tests on size.

Reported-by: Christoffer Hammarström <christoffer.hammarstrom@linuxgods.com>
Signed-off-by: NeilBrown <neilb@suse.de>
URL: https://bugs.debian.org/784874
Manage.c