diff options
author | Sami Kerola | 2014-11-02 21:26:31 +0100 |
---|---|---|
committer | Karel Zak | 2014-11-07 13:21:06 +0100 |
commit | d68f402c5406edf2b5680b1fa716835f947e0947 (patch) | |
tree | d09b66180cde12eed359ae0ad23976f0c7efb88f /sys-utils/swapon.8 | |
parent | mkswap: set variable only when it's value is known (diff) | |
download | kernel-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