swapon.2: Split EINVAL cases into separate entries under ERRORS

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-02-26 10:05:14 +01:00
parent a756667397
commit 2424abac47
1 changed files with 9 additions and 6 deletions

View File

@ -34,7 +34,7 @@
.\" 2007-06-22 Ivana Varekova <varekova@redhat.com>, mtk
.\" Update text describing limit on number of swap files.
.\"
.TH SWAPON 2 2010-11-15 "Linux" "Linux Programmer's Manual"
.TH SWAPON 2 2014-02-26 "Linux" "Linux Programmer's Manual"
.SH NAME
swapon, swapoff \- start/stop swapping to file/device
.SH SYNOPSIS
@ -123,11 +123,14 @@ is already being used as a swap area.
The file
.I path
exists, but refers neither to a regular file nor to a block device;
or, for
.BR swapon (),
the indicated path does not contain a valid swap signature or
resides on an in-memory filesystem like tmpfs; or, for
.BR swapoff (),
.TP
.B EINVAL
.RB ( swapon ())
The indicated path does not contain a valid swap signature or
resides on an in-memory filesystem like tmpfs.
.TP
.B EINVAL
.RB ( swapoff ())
.I path
is not currently a swap area.
.TP