]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Detail.c
Detail: don't assume a particular 'disk' number of missing devices.
authorNeilBrown <neilb@suse.com>
Fri, 18 Dec 2015 02:51:54 +0000 (13:51 +1100)
committerNeilBrown <neilb@suse.com>
Fri, 18 Dec 2015 02:51:54 +0000 (13:51 +1100)
commit78a5dc039b9344762b8f7cde2d159b482993eb2d
treec53cab321fe04cf7e5c81f55733403ca00db4711
parent9e70a453edde9571d84372ea5c13a1fab219caac
Detail: don't assume a particular 'disk' number of missing devices.

When a particular raid-disk is missing, we don't know which disk number
it should have, and reporting a number could result in duplicate
numbers (with v1.x metadata - never with the old 0.90).

So set the default to -1 and recoginise that when printing.

Signed-off-by: NeilBrown <neilb@suse.com>
Detail.c