aboutsummaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorDoug Moore <dougm@FreeBSD.org>2019-06-22 03:16:01 +0000
committerDoug Moore <dougm@FreeBSD.org>2019-06-22 03:16:01 +0000
commita616b25342fe1ceaa2bb7c68d9791f6586656fed (patch)
treeac967fdccd994b44abc70806ef55ee8295961017 /share/man
parentdf8406543fab98a6706bb41f3093863b93d92b91 (diff)
downloadsrc-a616b25342fe1ceaa2bb7c68d9791f6586656fed.tar.gz
src-a616b25342fe1ceaa2bb7c68d9791f6586656fed.zip
Modify swapon(8) to invoke BIO_DELETE to trim swap devices, either if
'-E' appears on the swapon command line, or if "trimonce" appears as an fstab option. Discussed at: BSDCAN Tested by: markj Reviewed by: markj Approved by: markj (mentor) Differential Revision:https://reviews.freebsd.org/D20599
Notes
Notes: svn path=/head/; revision=349286
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man5/fstab.56
1 files changed, 6 insertions, 0 deletions
diff --git a/share/man/man5/fstab.5 b/share/man/man5/fstab.5
index 062ab601851f..f4e9ce2b653e 100644
--- a/share/man/man5/fstab.5
+++ b/share/man/man5/fstab.5
@@ -216,6 +216,12 @@ 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 swap devices, the keyword
+.Dq trimonce
+triggers the delivery of a
+.Dv BIO_DELETE
+command to the device to mark
+all blocks as unused.
For vnode-backed swap spaces,
.Dq file
is supported in the