]> git.ipfire.org Git - thirdparty/mdadm.git/commit
DDF: handle fake RAIDs with changing subarray UUIDs
authormwilck@arcor.de <mwilck@arcor.de>
Mon, 9 Sep 2013 18:40:14 +0000 (20:40 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 9 Sep 2013 23:46:52 +0000 (09:46 +1000)
commit7087f02b90ef7b5817193d385b8d83148565bff9
treef0bc60e78bb7dbf12e22a836a3a9d1c80149caa5
parent6157951f5b73933802e97cf25568a9cd5678d816
DDF: handle fake RAIDs with changing subarray UUIDs

Some fake RAID BIOSes (in particular, LSI ones) change the
VD GUID at every boot. These GUIDs are not suitable for
identifying an array. Luckily the header GUID appears to
remain constant.

We construct a pseudo-UUID from the header GUID and those
properties of the subarray that we expect to remain constant.
This is only array name and index; all else might change e.g.
during grow.

Don't do this for all non-MD arrays, only for those known
to use varying volume GUIDs.

This patch obsoletes my previous patch "DDF: new algorithm
for subarray UUID"

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c