[[
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:
Michael Kerrisk 2004-12-15 13:24:42 +00:00
parent c6c4abc835
commit e28334cee7
1 changed files with 7 additions and 1 deletions

View File

@ -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.