CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/10/04 15:12:18
Modified files:
sys/uvm : uvm_swap.c
Log message:
Reserve a 16K-byte gap at the start of a swap partition.
Swap currently reserves PAGE_SIZE (4K, 8K or 16K depending on arch) bytes
as potential space for a disklabel and boot code.
A disklabel can be placed in the first or second DEV_BSIZE bytes of swap, with
some arch's needing up to 6 * DEV_BSIZE additional bytes for boot code and arch
dependent disklabel info.
New disklabel code will need to store a bigger disklabel structure
in 3 * DEV_BSIZE bytes of the *FIRST VIABLE PARTITION WITH A GAP*.
VIABLE PARTITIONS are filesystems (ffs and swap in particular) which have a
sufficiently large gap.
Increasing the swap partition gap makes it much more likely that those bytes
will be available.
Suggested by & ok deraadt@