]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: brief_detail_super_ddf: print correct UUID for subarrays
authormwilck@arcor.de <mwilck@arcor.de>
Fri, 25 Oct 2013 10:07:34 +0000 (12:07 +0200)
committerNeilBrown <neilb@suse.de>
Tue, 23 Apr 2013 04:55:31 +0000 (14:55 +1000)
commitbedbf68a08f6c091a69be0b058b96cd264f5de69
tree93149719441a1498814e3e1a9eb8dc6ad6d11a9e
parentdc9e279c136cedc63fb020f132ec49428e2541ac
DDF: brief_detail_super_ddf: print correct UUID for subarrays

Commit c1ea5a98 caused brief_detail_super_ddf() to be called
for subarrays. But the UUID printed was always the one of the
container. This is wrong and actually worse than printing no UUID
at all, and causes the DDF test case (10ddf-create) to fail.

This patch adds code to determine the MD UUID of a subarray correctly.
The hard part is to figure out for which subarray the function is
called. Moved that to an extra function.

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