From: Karel Zak Date: Mon, 17 Jul 2023 12:15:33 +0000 (+0200) Subject: swapon: (man) fix --priority description X-Git-Tag: v2.40-rc1~334 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85d15200e840d4fd150801e635ee5c1b7da84737;p=thirdparty%2Futil-linux.git swapon: (man) fix --priority description 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 --- diff --git a/sys-utils/swapon.8.adoc b/sys-utils/swapon.8.adoc index cf1b28f4ab..4335d7f86e 100644 --- a/sys-utils/swapon.8.adoc +++ b/sys-utils/swapon.8.adoc @@ -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.