Lines Matching full:swap
35 # Grow root partition to fill available space, optionally adding a swap
65 # Compute upper bound on swap partition size (if added), based on physmem
67 # Rule for swap size based on memory size:
96 # Find newly-added swap partition on parent device ($1).
101 $1 == "type:" && $2 == "freebsd-swap" { swapdev = dev }
149 # A value of 0 suppresses swap addition,
152 # If default, check whether swap is already in fstab;
165 $3 == "swap" { exit 1 }
202 # Do not add swap on disks under 15 GB (decimal) by default.
207 } else if (type[lvl] == "PART" && $11 == "freebsd-swap" && \
209 # This finds swap only if it precedes root, e.g. preceding disk.
212 print "swap device exists, not adding swap"
223 # Allow swap if current root is < 40% of disk.
227 print "Adding swap partition"
240 # Estimate offset for swap; let
262 …swapcmd = "gpart add -t freebsd-swap -a " align " -b " int(swapbase) " " pdev " && kenv growfs_swa…
293 # Get parent device of swap partition if one was added;
294 # if so, find swap device and label it.
301 echo "Swap partition not found on $pdev"