|
|
HP-UX Reference > Uumount(2)HP-UX 11i Version 2: December 2007 Update |
|
NAMEumount() — unmount a file system DESCRIPTIONumount() requests that a previously mounted file system contained on the block special device identified by name be unmounted. name is a pointer to a path name. After unmounting the file system, the directory upon which the file system was mounted reverts to its ordinary interpretation. umount() can also request that a file system mounted previously on the directory identified by name be unmounted. After unmounting the file system, name reverts to its ordinary interpretation. umount() can be invoked only by the user with the appropriate privilege. RETURN VALUEIf successful, umount() returns a value of 0. Otherwise, it returns a value of -1 and sets errno to indicate the error. ERRORSumount() fails if one or more of the following are true:
WARNINGSIf umount() is called from the program level (that is, not from the mount(1M) level), the table of mounted devices contained in /etc/mnttab is not updated automatically. Updating of /etc/mnttab is performed by the mount and syncer commands (see mount(1M) and syncer(1M) for more information). |
|