mirror of https://github.com/mkerrisk/man-pages
[[ swapon(2) indicates that EINVAL wil lbe returned only if the path specified does not exist or is not a block device. The kernel will also return EINVAL is a swap signature is not detected on the indicated path as well. ]]
This commit is contained in:
parent
c6c4abc835
commit
e28334cee7
|
@ -98,10 +98,16 @@ On success, zero is returned. On error, \-1 is returned, and
|
|||
is set appropriately.
|
||||
.SH ERRORS
|
||||
.TP
|
||||
.B EBUSY
|
||||
The specified
|
||||
.I path
|
||||
is already being used as a swap area.
|
||||
.TP
|
||||
.B EINVAL
|
||||
The file
|
||||
.I path
|
||||
exists, but refers neither to a regular file nor to a block device.
|
||||
exists, but refers neither to a regular file nor to a block device;
|
||||
or, the indicated path does not contain a valid swap signature.
|
||||
.TP
|
||||
.B ENFILE
|
||||
The system limit on the total number of open files has been reached.
|
||||
|
|
Loading…
Reference in New Issue