summaryrefslogtreecommitdiffstats
path: root/share/man/man5
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2013-06-27 18:28:45 +0000
committerhrs <hrs@FreeBSD.org>2013-06-27 18:28:45 +0000
commit8a3748f531c8740f607c4699474b610e9fd67f6c (patch)
tree7de5a51b2bb632b781318a008e0d7c347c3065e4 /share/man/man5
parent7f729239c4bb884a13e00c42f6ad2bf2068059d0 (diff)
downloadFreeBSD-src-8a3748f531c8740f607c4699474b610e9fd67f6c.zip
FreeBSD-src-8a3748f531c8740f607c4699474b610e9fd67f6c.tar.gz
- Add vnode-backed swap space specification support. This is enabled when
device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this: md none swap sw,file=/swap.bin 0 0 - Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following: /dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options. swapctl(8) can understand an encrypted device in the command line like this: # swapctl -a /dev/ada2p1.bde - "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs. - rc.d script change: rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option These changes alleviate a race condition between device creation/removal and swapon/swapoff. MFC after: 1 week Reviewed by: wblock (manual page)
Diffstat (limited to 'share/man/man5')
-rw-r--r--share/man/man5/fstab.531
1 files changed, 30 insertions, 1 deletions
diff --git a/share/man/man5/fstab.5 b/share/man/man5/fstab.5
index d516767..7daacf2 100644
--- a/share/man/man5/fstab.5
+++ b/share/man/man5/fstab.5
@@ -32,7 +32,7 @@
.\" @(#)fstab.5 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd October 11, 2012
+.Dd June 21, 2013
.Dt FSTAB 5
.Os
.Sh NAME
@@ -185,6 +185,15 @@ variable must be used to extend the
.Xr rc 8
startup script's list of network file system types.
.Pp
+If the option
+.Dq late
+is specified, the file system will be automatically mounted
+at a stage of system startup after remote mount points are mounted.
+For more detail about this option,
+see the
+.Xr mount 8
+manual page.
+.Pp
The type of the mount is extracted from the
.Fa fs_mntops
field and stored separately in the
@@ -202,6 +211,7 @@ then the file system whose name is given in the
.Fa fs_file
field is normally mounted read-write or read-only on the
specified special file.
+.Pp
If
.Fa fs_type
is
@@ -210,6 +220,25 @@ then the special file is made available as a piece of swap
space by the
.Xr swapon 8
command at the end of the system reboot procedure.
+For vnode-backed swap spaces,
+.Dq file
+is supported in the
+.Fa fs_mntops
+field.
+When
+.Fa fs_spec
+is an
+.Xr md 4
+device file
+.Pq Do md Dc or Do md[0-9]* Dc
+and
+.Dq file
+is specified in
+.Fa fs_mntopts ,
+an
+.Xr md 4
+device is created with the specified file used as backing store,
+and then the new device is used as swap space.
The fields other than
.Fa fs_spec
and
OpenPOWER on IntegriCloud