swapon.2: Add EINVAL error for invalid flags to swapon()

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-02-26 10:09:01 +01:00
parent e5e05abdeb
commit 81c096f2ed
1 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,11 @@ exists, but refers neither to a regular file nor to a block device;
The indicated path does not contain a valid swap signature or
resides on an in-memory filesystem such as tmpfs.
.TP
.BR EINVAL " (since Linux 3.4)"
.RB ( swapon ())
An invalid flag value was specified in
.IR flags .
.TP
.B EINVAL
.RB ( swapoff ())
.I path