]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: clarify swapon.8 priority option
authorSami Kerola <kerolasa@iki.fi>
Tue, 2 Oct 2012 20:15:17 +0000 (21:15 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Oct 2012 13:51:31 +0000 (15:51 +0200)
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>
sys-utils/swapon.8

index 0247ad8ca0394691c716d78d80a59f03cf0873ab..2fbf85506a420c81b20484832c99657751c3c679 100644 (file)
@@ -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".