diff options
author | Doug Moore <dougm@FreeBSD.org> | 2019-06-22 03:16:01 +0000 |
---|---|---|
committer | Doug Moore <dougm@FreeBSD.org> | 2019-06-22 03:16:01 +0000 |
commit | a616b25342fe1ceaa2bb7c68d9791f6586656fed (patch) | |
tree | ac967fdccd994b44abc70806ef55ee8295961017 /share/man | |
parent | df8406543fab98a6706bb41f3093863b93d92b91 (diff) | |
download | src-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.5 | 6 |
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 |