Package: manpages-dev Version: 2.62-1 Severity: minor Quoting swapon(2):
| EINVAL The file path exists, but refers neither to a regular file nor to a block device; or, for swapon(), | the indicated path does not contain a valid swap signature; or, for swapoff(), path is not cur‐ | rently a swap area. That's not true if the file is on a tmpfs. Demonstration: # dd if=/dev/zero of=/tmp/swap bs=1024 count=100000 100000+0 records in 100000+0 records out 102400000 bytes (102 MB) copied, 0.373442 seconds, 274 MB/s # mkswap /tmp/swap Setting up swapspace version 1, size = 102395 kB no label, UUID=40138114-e7e5-4999-9d94-0a457e320199 # file /tmp/swap /tmp/swap: Linux/i386 swap file (new style) 1 (4K pages) size 24999 pages # chmod 0600 /tmp/swap # swapon /tmp/swap swapon: /tmp/swap: Invalid argument # /usr/bin/stat -f -c %T /tmp tmpfs IMHO that fact should be mentioned in the manpage. regards, -mika-