]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r349286, r349293
authorDoug Moore <dougm@FreeBSD.org>
Fri, 12 Jul 2019 02:03:43 +0000 (02:03 +0000)
committerDoug Moore <dougm@FreeBSD.org>
Fri, 12 Jul 2019 02:03:43 +0000 (02:03 +0000)
commitb67ce3f091c5d8481160de32265e63894e320c3f
tree6fd1640d6f4ad1dbbeaf5f07a3f067ba2c0c43d8
parentfc67bee974b05cf1c4d0d9909af3980b6a26e737
MFC r349286, r349293

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.

Remove #include <sys/types.h> to fix a style(9) violation.

Assisted by: alc
Release notes: yes
Approved by: kib (mentor)
sbin/swapon/swapon.8
sbin/swapon/swapon.c
share/man/man5/fstab.5