aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig/mdconfig.8
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>2007-02-20 21:04:12 +0000
committerNick Hibma <n_hibma@FreeBSD.org>2007-02-20 21:04:12 +0000
commit1253fe1ead6043e8757fcdc0d00f78320a9e9704 (patch)
treeed949919667632b13cb7314d0063799d3944aa19 /sbin/mdconfig/mdconfig.8
parent5a16cfaeb6a845fff113b9d8e1027a033abb50a6 (diff)
downloadsrc-1253fe1ead6043e8757fcdc0d00f78320a9e9704.tar.gz
src-1253fe1ead6043e8757fcdc0d00f78320a9e9704.zip
Make attach the default for -f. That way
mdconfig -f image works like a charm. Reviewed by: phk (some time ago) MFC: 1 week
Notes
Notes: svn path=/head/; revision=166852
Diffstat (limited to 'sbin/mdconfig/mdconfig.8')
-rw-r--r--sbin/mdconfig/mdconfig.88
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/mdconfig/mdconfig.8 b/sbin/mdconfig/mdconfig.8
index 7e722752cfb1..3de3af8d0bb7 100644
--- a/sbin/mdconfig/mdconfig.8
+++ b/sbin/mdconfig/mdconfig.8
@@ -195,10 +195,14 @@ mount /dev/md10 /tmp
chmod 1777 /tmp
.Ed
.Pp
-To create a 5MB file-backed disk:
+To create a 5MB file-backed disk (
+.Fl -a
+and
+.Fl -t Ar vnode
+are implied):
.Bd -literal -offset indent
dd if=/dev/zero of=somebackingfile bs=1k count=5k
-mdconfig -a -t vnode -f somebackingfile -u 0
+mdconfig -f somebackingfile -u 0
bsdlabel -w md0 auto
newfs md0c
mount /dev/md0c /mnt