diff options
author | NeilBrown <neilb@suse.de> | 2012-04-18 03:00:07 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-04-18 03:00:07 +0200 |
commit | c2ecf5f61aca2d73b7d5a6cb3a26973916d5c0d1 (patch) | |
tree | 747e82e252a746c42c01879ec41587ae6c336935 /ReadMe.c | |
parent | Raid limit of 1024 when scanning for devices. (diff) | |
download | mdadm-c2ecf5f61aca2d73b7d5a6cb3a26973916d5c0d1.tar.xz mdadm-c2ecf5f61aca2d73b7d5a6cb3a26973916d5c0d1.zip |
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>
Diffstat (limited to 'ReadMe.c')
-rw-r--r-- | ReadMe.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -174,6 +174,7 @@ struct option long_options[] = { {"export", 0, 0, 'Y'}, {"sparc2.2", 0, 0, Sparc22}, {"test", 0, 0, 't'}, + {"prefer", 1, 0, Prefer}, /* For Follow/monitor */ {"mail", 1, 0, EMail}, |