diff options
author | NeilBrown <neilb@suse.com> | 2017-03-27 05:36:56 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-28 20:33:48 +0200 |
commit | b4decd517d90098bc2d17d3eddfe858d8b903920 (patch) | |
tree | d6a6ffe14b643dfd5cf0f9ceff3e5e6c1d72dadd /super-mbr.c | |
parent | Add 'force' flag to *hot_remove_disk(). (diff) | |
download | mdadm-b4decd517d90098bc2d17d3eddfe858d8b903920.tar.xz mdadm-b4decd517d90098bc2d17d3eddfe858d8b903920.zip |
Detail: handle non-existent arrays better.
If you call "mdadm --detail" with a device file for an array which
doesn't exist, such as by
mknod /dev/md57 b 9 57
mdadm --detail /dev/md57
you get an unhelpful message about and inactive RAID0, and return
status is '0'. This is confusing.
So catch this possibility and print a more useful message, and
return a non-zero status.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'super-mbr.c')
0 files changed, 0 insertions, 0 deletions