United States-English |
|
|
HP-UX Reference > Uumount(2)HP-UX 11i Version 3: February 2007 |
|
NAMEumount(), umount2() — unmount a file system SYNOPSIS#include <sys/mount.h> int umount(const char *name); int umount2(const char *name, int flags); DESCRIPTIONumount() requests that a previously mounted file system contained on the block special device identified by name be unmounted. umount2() requests that a previously mounted file system contained on the block special device identified by name be unmounted in the manner described in flags. name is a pointer to a path name. flags is a bitmask of flags, specified in <sys/mount.h>, that are combined to describe the type of unmount to be performed. Valid flags are:
MS_NORMAL and MS_FORCE are mutually exclusive. A forced unmount is one which will occur regardless of activity on the file system. After unmounting the file system, the directory upon which the file system was mounted reverts to its ordinary interpretation. umount() and umount2() 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() and umount2() can be invoked only by the user with the appropriate privilege. RETURN VALUEIf successful, umount() and umount2() return a value of 0. Otherwise, they return a value of -1 and set errno to indicate the error. ERRORSumount() and umount2() fail if one or more of the following are true:
|
Printable version | ||
|