aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig/mdconfig.8
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-06-20 14:30:16 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-06-20 14:30:16 +0000
commitb78ae23fdd506b0f2f67d6206cb28d0a0b295cd7 (patch)
tree193ea14cb0d261ed08ca63e2e69b157cf28a4d66 /sbin/mdconfig/mdconfig.8
parent9dbb63fe03797431935d5029e88af78dae1e16bf (diff)
downloadsrc-b78ae23fdd506b0f2f67d6206cb28d0a0b295cd7.tar.gz
src-b78ae23fdd506b0f2f67d6206cb28d0a0b295cd7.zip
- Add "-f file" support to listing mode (-l). When a -f option is
specified, only md(4) devices which have the specified file as backing store are displayed. - Use MD_NAME instead of "md". - Use _PATH_DEV instead of "/dev/". MFC after: 1 week
Notes
Notes: svn path=/head/; revision=252033
Diffstat (limited to 'sbin/mdconfig/mdconfig.8')
-rw-r--r--sbin/mdconfig/mdconfig.816
1 files changed, 15 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8
index c18027cabb94..b3cc1106decb 100644
--- a/sbin/mdconfig/mdconfig.8
+++ b/sbin/mdconfig/mdconfig.8
@@ -41,7 +41,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 3, 2012
+.Dd June 20, 2013
.Dt MDCONFIG 8
.Os
.Sh NAME
@@ -72,6 +72,7 @@
.Fl l
.Op Fl n
.Op Fl v
+.Op Fl f Ar file
.Op Fl u Ar unit
.Nm
.Ar file
@@ -131,6 +132,19 @@ List configured devices.
If given with
.Fl u ,
display details about that particular device.
+If given with
+.Fl f Ar file ,
+display
+.Xr md 4
+device names of which
+.Ar file
+is used as the backing store.
+If both of
+.Fl u
+and
+.Fl f
+options are specified,
+display devices which match the two conditions.
If the
.Fl v
option is specified, show all details.