summaryrefslogtreecommitdiffstats
path: root/share/man/man4/md.4
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-07-24 14:23:47 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-07-24 14:23:47 +0000
commitdb75df9d9c44a06526abfd82d5f56c7b4296c0de (patch)
tree0394b282c09fff8d7a72cc53862f001857df97e4 /share/man/man4/md.4
parentc0626c77861736081f7054b6e9761b7b29f9a385 (diff)
downloadFreeBSD-src-db75df9d9c44a06526abfd82d5f56c7b4296c0de.zip
FreeBSD-src-db75df9d9c44a06526abfd82d5f56c7b4296c0de.tar.gz
Add an EXAMPLES section with an example of how to mount a
malloc(9)-backed md(4) device on /tmp .
Diffstat (limited to 'share/man/man4/md.4')
-rw-r--r--share/man/man4/md.415
1 files changed, 15 insertions, 0 deletions
diff --git a/share/man/man4/md.4 b/share/man/man4/md.4
index 5a771e3..7f9401c 100644
--- a/share/man/man4/md.4
+++ b/share/man/man4/md.4
@@ -95,6 +95,21 @@ backed
.Nm
disks,
but not those backed by pre-loaded modules.
+.Sh EXAMPLES
+To mount a
+.Xr malloc 9
+backed
+.Nm
+device on
+.Pa /tmp :
+.Bd -literal
+if [ -e /dev/md0 -a -e /dev/md0c ]; then
+ disklabel -r -w md0 auto && \\
+ newfs /dev/md0c && \\
+ mount /dev/md0c /tmp && \\
+ chmod 1777 /tmp
+fi
+.Ed
.Sh SEE ALSO
.Xr disklabel 5 ,
.Xr disklabel 8 ,
OpenPOWER on IntegriCloud