mount_nfs.1m (2010 09)

m
mount_nfs(1M) mount_nfs(1M)
struct nfs_args {
struct netbuf *addr; /* File server address */
struct netbuf *syncaddr; /* Secure NFS time sync addr */
struct knetconfig *knconf; /* Transport netconfig struct */
char *hostname; /* Server’s hostname */
char *netname; /* Server’s netname */
caddr_t fh; /* File handle to be mounted */
uint64_t flags; /* Flags */
int32_t wsize; /* Write size in bytes */
int32_t rsize; /* Read size in bytes */
int32_t timeo; /* Initial timeout in .1 secs */
int32_t retrans; /* Times to retry send */
int32_t acregmin; /* Attribute cache file min secs */
int32_t acregmax; /* Attribute cache file max secs */
int32_t acdirmin; /* Attribute cache dir min secs */
int32_t acdirmax; /* Attribute cache dir max secs */
struct pathcnf *pathconf; /* Static pathconf */
char *fsname; /* Server’s fs path name */
int32_t nfs_args_ext; /* The nfs_args extension id */
union nfs_ext nfs_ext_u; /* Extension union structure */
};
The flags field is used to specify the NFS mount options. The definition and description of various flags
can be found in
/usr/include/nfs/mount.h
.
The
nfs_args structure is a versioned data structure. The union field nfs_ext_u defines the extended
data structures. The extended fields of the nfs_args are accessed by NFS mount() only when the flag
NFSMNT_NEWARGS is set. This flag along with the member field nfs_args_ext indicate the extended
structure being used in the extension union nfs_ext_u . The extended
nfs_args strutures are as below:
/*
* Union structure for future extension.
*/
union nfs_ext {
struct nfs_args_extA nfs_extA; /* nfs_args extension v1 */
struct nfs_args_extB nfs_extB; /* nfs_args extension v2 */
};
#define NFS_ARGS_EXTA 1
#define NFS_ARGS_EXTB 2
/*
* extension data for nfs_args_ext == NFS_ARGS_EXTA.
*/
struct nfs_args_extA {
struct sec_data *secdata; /* security data */
};
/*
* extension data for nfs_args_ext == NFS_ARGS_EXTB.
*/
struct nfs_args_extB {
struct sec_data *secdata; /* security data */
struct nfs_args *next; /* link for failover */
};
The extended structure
nfs_args_extA may be used to explicitly specify the security type to be used
for NFS mount. The mount option sec= corresponds to an associated nfs_args_extA.secdata field. The
sec_data field is defined in the /usr/include/rpc/auth.h header file. This structure need not be
used in case of default security mount options.
The extended structure
nfs_args_extB may be used to specify a list of NFS failover server to an NFS
mount point. Each NFS failover server must have its independent nfs_args chained using
nfs_args_extB.next field. The NFS mount points without failover options need not use this field.
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: September 2010