]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
Add --prefer option for --detail and --monitor
authorNeilBrown <neilb@suse.de>
Wed, 18 Apr 2012 01:00:07 +0000 (11:00 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 18 Apr 2012 01:00:07 +0000 (11:00 +1000)
commitc2ecf5f61aca2d73b7d5a6cb3a26973916d5c0d1
tree747e82e252a746c42c01879ec41587ae6c336935
parent480f3566411675ec41f18e5f6e15429f891e144c
Add --prefer option for --detail and --monitor

Both --detail and --monitor can report the names of member
devices on an array, and do so by searching /dev and finding
the shortest name that matches.

If
   --prefer=foo
is given, they will instead prefer a name that contain /foo/.
So
   mdadm --detail /dev/md0 --prefer=by-path

will list the component devices via their /dev/disk/by-path/xxx
names.

Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c
Monitor.c
ReadMe.c
lib.c
mdadm.8.in
mdadm.c
mdadm.h