From e28334cee7a22d215eec26710a7dd32319b622f3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 15 Dec 2004 13:24:42 +0000 Subject: [PATCH] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=204292 [[ 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. ]] --- man2/swapon.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/man2/swapon.2 b/man2/swapon.2 index cf4e9f4bc..838cc9281 100644 --- a/man2/swapon.2 +++ b/man2/swapon.2 @@ -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.