Removes a virtual file system from the file tree.
Standard C Library (libc.a)
int umount ( Device)
char *Device;
#include <sys/vmount.h>
int uvmount ( VirtualFileSystemID, Flag)
int VirtualFileSystemID;
int Flag;
The umount and uvmount subroutines remove a virtual file system (VFS) from the file tree.
The umount subroutine unmounts only file systems mounted from a block device (a special file identified by its path to the block device).
In addition to local devices, the uvmount subroutine unmounts local or remote directories, identified by the VirtualFileSystemID parameter.
Only a calling process with root user authority or in the system group and having write access to the mount point can unmount a device, file and directory mount.
Upon successful completion a value of 0 is returned. Otherwise, a value of -1 is returned, and the errno global variable is set to indicate the error.
The uvmount subroutine fails if one of the following is true:
The umount subroutine fails if one of the following is true:
The umount subroutine can be unsuccessful for other reasons. For a list of additional errors, see "Base Operating System Error Codes For Services That Require Path-Name Resolution".
The umount subroutine can be unsuccessful for other reasons. For a list of additional errors, see Appendix A, "Base Operating System Error Codes for Services That Require Path-Name Resolution."
The mount (vmount or mount Subroutine) subroutine.
The mount command, umount command.
Mounting Overview in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.
Files, Directories, and File Systems for Programmers in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.