summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.8
diff options
context:
space:
mode:
authorKarel Zak2016-03-18 14:28:29 +0100
committerKarel Zak2016-03-18 14:28:29 +0100
commit6c44094af621c011135e758b0d5e175dfe344e90 (patch)
tree88bc30a644bcd33fc9ca60bc021813fdc10cc830 /sys-utils/swapon.8
parenttests: check for TS_HELPER_SYSINFO in swap tests (diff)
downloadkernel-qcow2-util-linux-6c44094af621c011135e758b0d5e175dfe344e90.tar.gz
kernel-qcow2-util-linux-6c44094af621c011135e758b0d5e175dfe344e90.tar.xz
kernel-qcow2-util-linux-6c44094af621c011135e758b0d5e175dfe344e90.zip
swapon: rewrite control struct usage
The old version has been pretty broken... the most important is to keep swap options specified on command line as read-only template. For example if we call "swapon --all" then we cannot modify the global options for each fstab swap entry. The another story has been control struct modification due to device reinitialization etc. This patch splits all to: * struct swapon_control; top-level struct with command line options * struct swap_device; this is device specific and never globally maintained by swapon_control. * struct swap_prop; used as global read-only template swap options and per device swap options (when parse fstab). Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818252 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon.8')
-rw-r--r--sys-utils/swapon.82
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/swapon.8 b/sys-utils/swapon.8
index 9abb1b39f..f64be776b 100644
--- a/sys-utils/swapon.8
+++ b/sys-utils/swapon.8
@@ -133,7 +133,7 @@ For example:
.sp
.RE
The \fIopts\fP string is evaluated last and overrides all other
-options.
+command line options.
.RE
.TP
.BR \-p , " \-\-priority " \fIpriority\fP