summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.8
diff options
context:
space:
mode:
authorSami Kerola2012-10-02 22:15:17 +0200
committerKarel Zak2012-10-15 15:51:31 +0200
commit9404a96a579f2ebd82d77c3ba8211cd279bda2eb (patch)
treee0d2d5e7090a7cbf58ab4dc62652365f0a0c5079 /sys-utils/swapon.8
parentswapon: check numeric user inputs (diff)
downloadkernel-qcow2-util-linux-9404a96a579f2ebd82d77c3ba8211cd279bda2eb.tar.gz
kernel-qcow2-util-linux-9404a96a579f2ebd82d77c3ba8211cd279bda2eb.tar.xz
kernel-qcow2-util-linux-9404a96a579f2ebd82d77c3ba8211cd279bda2eb.zip
swapon: clarify swapon.8 priority option
Value -1 is valid argument for -p, even though it might not make much sense as the -1 is in use when priority is not specified at all. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/swapon.8')
-rw-r--r--sys-utils/swapon.85
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-utils/swapon.8 b/sys-utils/swapon.8
index 0247ad8ca..2fbf85506 100644
--- a/sys-utils/swapon.8
+++ b/sys-utils/swapon.8
@@ -150,8 +150,8 @@ is needed.)
.B "\-p, \-\-priority \fIpriority\fP"
Specify the priority of the swap device.
.I priority
-is a value between 0 and 32767. Higher numbers indicate higher
-priority. See
+is a value between \-1 and 32767. Higher numbers indicate
+higher priority. See
.BR swapon (2)
for a full description of swap priorities. Add
.BI pri= value
@@ -159,6 +159,7 @@ to the option field of
.I /etc/fstab
for use with
.BR "swapon -a" .
+When priority is not defined it defaults to \-1.
.TP
.B "\-s, \-\-summary"
Display swap usage summary by device. Equivalent to "cat /proc/swaps".