]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Fix native --detail --export
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 18 Mar 2024 15:19:30 +0000 (16:19 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 22 Mar 2024 11:16:15 +0000 (12:16 +0100)
commitba65d917d121dfb9876053e6f62dbd4ebf2e028c
treea6213914a62c36b289fd60288ba50f8b9699f504
parent1c8327950566449e206e613c11c8232032f26787
mdadm: Fix native --detail --export

Mentioned commit (see Fixes) causes that UUID is not swapped as expected
for native superblock. Fix this problem.

For detail, we should avoid superblock calls, we can have information
about supertype from map, use that.

Simplify fname_from_uuid() by removing dependencies to metadata
handler, it is not needed. Decision is taken at compile time, expect
super1 but this function is not used by super1. Add warning about that.
Remove separator, it is always ':'.

Fixes: 60c19530dd7c ("Detail: remove duplicated code")
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Detail.c
mdadm.h
super-ddf.c
super-intel.c
util.c