This patch set tries to fix the bug that --detail show messy container name. It adds a new method to check if one device is alive in first patch. V2: use access rather than devid2kname V3: define a new function to check if disk is alive include <stdbool.h> to use bool Xiao Ni (2): mdadm/lib: Define a new helper function is_dev_alived mdadm/Detail: Can't show container name correctly when unpluging disks Detail.c | 16 ++++++++-------- lib.c | 11 +++++++++++ mdadm.h | 2 ++ 3 files changed, 21 insertions(+), 8 deletions(-) -- 2.7.5