|
FunctionThe vfs_mount operation activates
a file system and returns the root directory vnode_token.
Input parameter formatvfs_mount (Token_structure,
OSI_structure,
Audit_structure,
Mount_table,
Vnode_token,
Return_value,
Return_code,
Reason_code)
Parameters- Token_structure
- Supplied parameter
- Type:
- TOKSTR
- Length:
- Specified by TOKSTR.ts_hdr.cblen.
The Token_structure represents the file system (VFS)
that is being operated on. It contains the PFS's initialization token
and mount token. Refer to LFS/PFS control block structure for a discussion
of this structure, and to the TOKSTR typedef in BPXYPFSI in Interface structures for C language servers and clients for its mapping.
- OSI_structure
- Supplied and returned parameter
- Type:
- OSI
- Length:
- Specified by OSI.osi_hdr.cblen.
The OSI_structure contains information that is
used by the OSI operations that may be called by the PFS. See OSI services for more information.
It also contains
MVS-specific information that needs to be passed to the PFS, including
SMF accounting fields, a work area, a recovery area, and an optional
pointer to an output ATTR structure. For more details on the OSI structure,
see The OSI structure.
This area is mapped by
the OSI typedef in BPXYPFSI in Interface structures for C language servers and clients.
- Audit_structure
- Supplied parameter
- Type:
- CRED
- Length:
- Specified by CRED.cred_hdr.cblen.
The Audit_structure contains information that is
used by the security product for access checks and auditing. It is
passed to most SAF routines that are invoked by the PFS.
See Security responsibilities and considerations for a discussion of security processing,
and to the CRED typedef in BPXYPFSI in Interface structures for C language servers and clients for
the mapping of this structure.
- Mount_table
- Supplied and returned parameter
- Type:
- Structure
- Length:
- Specified by the MTAB.mtab_hdr.cblen field
An area that is used to pass the file system name,
mount options, and PFS-specific parameters to the vfs_mount operation.
This area is mapped by the MTAB typedef in the BPXYPFSI header file
(see Interface structures for C language servers and clients).
- Vnode_token
- Returned parameter
- Type:
- Token
- Length:
- 8 bytes
An area in which the vfs_mount service returns the
vnode_token for the root directory of the mounted file system.
- Return_value
- Returned parameter
- Type:
- Integer
- Length:
- Fullword
A fullword in which the vfs_mount service returns
the results of the operation, as one of the following: - Return_value
- Meaning
- -1
- The operation was not successful. The Return_code and Reason_Code
values must be filled in by the PFS when Return_value is -1.
- 0
- The operation was successful.
- Return_code
- Returned parameter
- Type:
- Integer
- Length:
- Fullword
A fullword in which the vfs_mount service stores
the return code. The vfs_mount service returns Return_code only if
Return_value is -1. See z/OS UNIX System Services Messages and Codes for
a complete list of supported return code values.
The vfs_mount operation should support at least the following
error value: Return_code |
Explanation |
---|
EEXIST |
A file system with the same name has already been mounted. |
- Reason_code
- Returned parameter
- Type:
- Integer
- Length:
- Fullword
A fullword in which the vfs_mount service stores
the reason code. The vfs_mount service returns Reason_code only if
Return_value is -1. Reason_code further qualifies
the Return_code value. These reason codes are documented by the PFS.
Implementation notes- Overview of vfs_mount processing
- Mounting file systems provides an overview of file system
mount processing.
- Specific processing notes
- Serialization provided by the LFS
- The vfs_mount operation is invoked with an exclusive latch held
on the file system, to ensure that no other operations are attempted
upon the file system being mounted. In addition, the LFS ensures
that all vfs_mount and vfs_umount calls are serialized.
Note: However,
if the mount is asynchronous, there is a time between the start and
the end of the mount in which the latch is not held.
- Security calls to be made by the PFS
- None.
|