summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.8
diff options
context:
space:
mode:
authorSami Kerola2014-11-02 21:26:31 +0100
committerKarel Zak2014-11-07 13:21:06 +0100
commitd68f402c5406edf2b5680b1fa716835f947e0947 (patch)
treed09b66180cde12eed359ae0ad23976f0c7efb88f /sys-utils/swapon.8
parentmkswap: set variable only when it's value is known (diff)
downloadkernel-qcow2-util-linux-d68f402c5406edf2b5680b1fa716835f947e0947.tar.gz
kernel-qcow2-util-linux-d68f402c5406edf2b5680b1fa716835f947e0947.tar.xz
kernel-qcow2-util-linux-d68f402c5406edf2b5680b1fa716835f947e0947.zip
mkswap: various minor improvement
Use correct data type in page_bad(), and add information to error message how many bad pages were seen. In check_blocks() move initialization to variable introduction, fix typo, and avoid memset() when array initializer can do the job. In main() use correct initializer for pointer. Move swap file specific actions to same location, and add warning when request too --check is dismissed by command. At the end remove momory leak. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/swapon.8')
0 files changed, 0 insertions, 0 deletions