The __mount callable service mounts a file system, making the files in it available for use.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX2MNT): | 31-bit |
AMODE (BPX4MNT): | 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 BPX4MNT with the same parameters.
The name of a fullword that contains the length of Mnte and its associated data structures, such as parameter string length.
The MNTE data structure. This is composed of a header field, the body field and an additional area for the parameter string if one is being used. This structure is mapped by BPXYMNTE (see BPXYMNTE — Map response and element structure of w_getmntent). See the usage notes for the fields in this data structure that must be set for the different __mount requests.
The name of a fullword in which the __mount service returns 0 or 1 if the request is successful, or -1 if it is not successful. A Return_value of 1 indicates that the mount will complete asynchronously.
Return_code | Explanation |
---|---|
EACCESS | The user who is doing this nonprivileged mount does not have access to either the mount point or root. The following reason code can accompany the return code: JRNoMntPtAccess, JRNoRootAccess. |
EBUSY | The file system to be mounted is quiesced; or no more locks are available. The following reason codes can accompany the return code: JROutOfLocks, JRQuiesced. |
EINVAL | There was a parameter error. Verify the Mount_mode and File_system_type
(specified in the MNTE data structure). Other reasons for this error
include:
The following reason codes can accompany the return code if it is a nonprivileged user mount: JRNotSupportedForFileType, JRFileSystemMigrated, JRSecurityConflict, JRNoSetUID, JRSysNameNotAllowed, JRPFSNotSupported. The following reason codes can accompany the return code: JROutOfLocks, JRQuiesced, JRIsMountedRealName. |
EIO | An I/O error occurred. |
ELOOP | A loop exists in symbolic links that were encountered during resolution of the Pathname argument. This error is issued if more than 24 symbolic links are detected in the resolution of Pathname. |
ENOENT | The mount point does not exist. The following reason code can accompany the return code: JRMountPt. |
ENOMEM | There is not enough storage space available to mount this file system. |
ENOTDIR | The mount point is not a directory. The following reason code can accompany this return code: JRMountPt. |
ENOTEMPTY | The mount point directory is not empty for the nonprivileged user mount. |
EPERM | Insufficient authority to do the mount. |
The name of a fullword in which the __mount service stores the reason code. The __mount 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.
For more information about SYSNAME and AUTOMOVE, see Customizing BPXPRMxx for a shared file system in z/OS UNIX System Services Planning. The chmount command is explained in the chmount command description inz/OS UNIX System Services Command Reference.
For an example using this callable service, see BPX2MNT (__mount) example.