diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2003-06-11 06:38:24 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2003-06-11 06:38:24 +0000 |
commit | f79c46d3f4669e243574e046e718c1edec91fe6c (patch) | |
tree | 13871376fc71754261a513a8ba381814ddf1acd3 /sbin/mdconfig/mdconfig.8 | |
parent | 7ddc2528b7328729b8af37c8fc614cb37dafcecd (diff) | |
download | src-f79c46d3f4669e243574e046e718c1edec91fe6c.tar.gz src-f79c46d3f4669e243574e046e718c1edec91fe6c.zip |
Add "-n" argument, which causes mdconfig to simply print the unit
number X, rather than mdX, making it easier to script tests that
use md devices but don't want to make assumptions about any existing
md use (such as in diskless environments).
Notes
Notes:
svn path=/head/; revision=116194
Diffstat (limited to 'sbin/mdconfig/mdconfig.8')
-rw-r--r-- | sbin/mdconfig/mdconfig.8 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8 index 50470155427d..a8a5a9ae9c20 100644 --- a/sbin/mdconfig/mdconfig.8 +++ b/sbin/mdconfig/mdconfig.8 @@ -51,6 +51,7 @@ .Nm .Fl a .Fl t Ar type +.Op Fl n .Oo .Fl o .Oo Cm no Oc Ns Ar option @@ -64,6 +65,7 @@ .Fl u Ar unit .Nm .Fl l +.Op Fl n .Op Fl u Ar unit .Sh DESCRIPTION The @@ -103,6 +105,9 @@ devices. If the .Fl u option is used in conjuction with this, the output is limited to information on the specified device. +.It Fl n +When printing md device names, print only the unit number without the +md prefix. .It Fl s Ar size Size of the memory disk. .Ar Size |