The umount callable service unmounts or remounts a virtual file system. That is, it removes a virtual file system from the file tree, or it remounts a virtual file system to the file tree.
Operation | Environment |
---|---|
Authorization: | Supervisor or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1UMT): | 31-bit |
AMODE (BPX4UMT): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4UMT with the same parameters.
The name of a 44-character field that contains the file system that is to be unmounted. The file system name must be left-justified and padded with blanks.
The name of a fullword binary field that contains the unmount options.
This field is mapped by the BPXYMTM macro. See BPXYMTM — Map the modes for mount and unmount for the contents of the macro.
The name of a fullword in which the umount service returns 0 if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EBUSY | Honoring the request would require unmounting a file system that is still in use. The following reason codes can accompany the return code: JRFileSysWasReset, JRFsForceUmount, JRFsMustReset, JRFsParentFs, JRFsUnmountInProgress, JRIsFsRoot, and JRQuiesced. |
EINTR | The call was interrupted by a signal. The following reason code can accompany the return code: JRSigDuringWait. |
EINVAL | An incorrect parameter was specified. The file system name is not the name of a file system; an incorrect combination of flags was specified; a umount drain or remount request was specified in a sysplex; or an umount force was specified before an immediate umount was attempted. The following reason codes can accompany the return code: JRFileSysNotThere, JRInvalidParms, JRMustUmountImmed, JRQuiescing, JRNotSupInSysplex, JrRemntMode. |
EPERM | The calling process is not a superuser. The following reason code can accompany the return code: JRUserNotPrivileged. |
The name of a fullword in which the umount service stores the reason code. The umount service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes.
In order to unmount a file system, the requester must be an authorized program, or must be running for a user with appropriate privileges (see Authorization).
See BPX1UMT (umount) example for an example using this callable service.