HomeFreeBSD

MFC r307755: swapoff: Remove only late devices with -aL.

Description

MFC r307755: swapoff: Remove only late devices with -aL.

Currently, '/etc/rc.d/swaplate stop' removes all swap devices. This can be
very slow and may not even be possible if there is a lot of swap space in
use. However, removing swap devices is only needed for late swap devices
that may depend on daemons that subsequent shutdown steps stop. Normal swap
devices such as hard disk partitions will remain available throughout the
shutdown process and need not be removed.

In swapoff, interpret -aL to remove late swap devices only, and use this in
etc/rc.d/swaplate. The meaning of -aL in swapon remains unchanged (add all
swap devices, both normal and late).

PR: 187081

Details

Provenance
jillesAuthored on
Parents
rS308864: Add ip6_ipsec_forward() function and call it from ip6_forward().
Branches
Unknown
Tags
Unknown