]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: (man) fix --priority description
authorKarel Zak <kzak@redhat.com>
Mon, 17 Jul 2023 12:15:33 +0000 (14:15 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Jul 2023 12:15:33 +0000 (14:15 +0200)
It's not true anymore that Linux uses -1 as the default. I could be
also another negative number (default is -2 for the first swap since
kernel commit a2468cc9bfdff6139f59ca896671e5819ff5f94a).

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2188894
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapon.8.adoc

index cf1b28f4ab0146e8a343bd1dbfa2b933ca2d2907..4335d7f86e0ce5ef79a55b0c5ccc0462e484be14 100644 (file)
@@ -63,7 +63,7 @@ Specify swap options by an __fstab__-compatible comma-separated string. For exam
 The _opts_ string is evaluated last and overrides all other command line options.
 
 *-p*, *--priority* _priority_::
-Specify the priority of the swap device. _priority_ is a value between -1 and 32767. Higher numbers indicate higher priority. See *swapon*(2) for a full description of swap priorities. Add **pri=**__value__ to the option field of _/etc/fstab_ for use with *swapon -a*. When no priority is defined, it defaults to -1.
+Specify the priority of the swap device. _priority_ is a value between 0 and 32767. Higher numbers indicate higher priority. See *swapon*(2) for a full description of swap priorities. Add **pri=**__value__ to the option field of _/etc/fstab_ for use with *swapon -a*. When no priority is defined, Linux kernel defaults to negative numbers.
 
 *-s*, *--summary*::
 Display swap usage summary by device. Equivalent to *cat /proc/swaps*. This output format is DEPRECATED in favour of *--show* that provides better control on output data.