HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
s
swapon(2) swapon(2)
[EIO] Unable to read the device associated with path.
[ELOOP] Too many symbolic links were encountered in translatingthe path name.
[ENAMETOOLONG]
The length of the specified path name exceeds PATH_MAX bytes, or the length of a
component of the path name exceeds NAME_MAX bytes while _POSIX_NO_TRUNC is
in effect.
[ENODEV] The device associated with path does not exist.
[ENOENT] The system-imposed limit on the number of swap file entries has been reached.
[ENOSPC] There is is not enough available space on the specified file system or device.
[ENOSYS] The device associated with path was specified at system configuration time to add
swap following the file system, but no file system was found.
[ENOTBLK] The path argument is not a block special file or the root directory of a file system.
[ENOTDIR] A component of the path is not a directory.
[ENXIO] The device associated with path could not be opened.
[EPERM] The effective user ID is not a user with appropriate privileges.
[EROFS] The device associated with path is read-only.
WARNINGS
No means is available to stop swapping to a device.
The system allocates no less than the amount specified in min. However, to make the most efficient use of
space, more than the amount requested might be taken from the file system. The actual amount taken will
not exceed the number of file system blocks indicated in reserve.
Swapping to a file system is usually slower than swapping to a device.
Once file system blocks have been allocated for swap space, the file system can not be unmounted unless
the system is rebooted.
AUTHOR
swapon() was developed by the University of California, Berkeley.
SEE ALSO
swapon(1M).
Section 2−−392 − 2 − HP-UX Release 11i: December 2000
___
___