Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsclient/nfs_clvfsops.c
Context not available. | |||||
nmp->nm_flag &= ~NFSMNT_RDIRPLUS; | nmp->nm_flag &= ~NFSMNT_RDIRPLUS; | ||||
} | } | ||||
/* Clear ONEOPENOWN for NFSv2, 3 and 4.0. */ | |||||
if (nmp->nm_minorvers == 0) { | |||||
argp->flags &= ~NFSMNT_ONEOPENOWN; | |||||
nmp->nm_flag &= ~NFSMNT_ONEOPENOWN; | |||||
} | |||||
/* Re-bind if rsrvd port requested and wasn't on one */ | /* Re-bind if rsrvd port requested and wasn't on one */ | ||||
adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT) | adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT) | ||||
&& (argp->flags & NFSMNT_RESVPORT); | && (argp->flags & NFSMNT_RESVPORT); | ||||
Context not available. | |||||
"resvport", "readahead", "hostname", "timeo", "timeout", "addr", "fh", | "resvport", "readahead", "hostname", "timeo", "timeout", "addr", "fh", | ||||
"nfsv3", "sec", "principal", "nfsv4", "gssname", "allgssname", "dirpath", | "nfsv3", "sec", "principal", "nfsv4", "gssname", "allgssname", "dirpath", | ||||
"minorversion", "nametimeo", "negnametimeo", "nocto", "noncontigwr", | "minorversion", "nametimeo", "negnametimeo", "nocto", "noncontigwr", | ||||
"pnfs", "wcommitsize", | "pnfs", "wcommitsize", "oneopenown", | ||||
NULL }; | NULL }; | ||||
/* | /* | ||||
Context not available. | |||||
args.flags |= NFSMNT_NONCONTIGWR; | args.flags |= NFSMNT_NONCONTIGWR; | ||||
if (vfs_getopt(mp->mnt_optnew, "pnfs", NULL, NULL) == 0) | if (vfs_getopt(mp->mnt_optnew, "pnfs", NULL, NULL) == 0) | ||||
args.flags |= NFSMNT_PNFS; | args.flags |= NFSMNT_PNFS; | ||||
if (vfs_getopt(mp->mnt_optnew, "oneopenown", NULL, NULL) == 0) | |||||
args.flags |= NFSMNT_ONEOPENOWN; | |||||
if (vfs_getopt(mp->mnt_optnew, "readdirsize", (void **)&opt, NULL) == 0) { | if (vfs_getopt(mp->mnt_optnew, "readdirsize", (void **)&opt, NULL) == 0) { | ||||
if (opt == NULL) { | if (opt == NULL) { | ||||
vfs_mount_error(mp, "illegal readdirsize"); | vfs_mount_error(mp, "illegal readdirsize"); | ||||
Context not available. | |||||
/* | /* | ||||
* When doing an update, we can't change version, | * When doing an update, we can't change version, | ||||
* security, switch lockd strategies or change cookie | * security, switch lockd strategies, change cookie | ||||
* translation | * translation or switch oneopenown. | ||||
*/ | */ | ||||
args.flags = (args.flags & | args.flags = (args.flags & | ||||
~(NFSMNT_NFSV3 | | ~(NFSMNT_NFSV3 | | ||||
Context not available. | |||||
NFSMNT_KERB | | NFSMNT_KERB | | ||||
NFSMNT_INTEGRITY | | NFSMNT_INTEGRITY | | ||||
NFSMNT_PRIVACY | | NFSMNT_PRIVACY | | ||||
NFSMNT_ONEOPENOWN | | |||||
NFSMNT_NOLOCKD /*|NFSMNT_XLATECOOKIE*/)) | | NFSMNT_NOLOCKD /*|NFSMNT_XLATECOOKIE*/)) | | ||||
(nmp->nm_flag & | (nmp->nm_flag & | ||||
(NFSMNT_NFSV3 | | (NFSMNT_NFSV3 | | ||||
Context not available. | |||||
NFSMNT_KERB | | NFSMNT_KERB | | ||||
NFSMNT_INTEGRITY | | NFSMNT_INTEGRITY | | ||||
NFSMNT_PRIVACY | | NFSMNT_PRIVACY | | ||||
NFSMNT_ONEOPENOWN | | |||||
NFSMNT_NOLOCKD /*|NFSMNT_XLATECOOKIE*/)); | NFSMNT_NOLOCKD /*|NFSMNT_XLATECOOKIE*/)); | ||||
nfs_decode_args(mp, nmp, &args, NULL, td->td_ucred, td); | nfs_decode_args(mp, nmp, &args, NULL, td->td_ucred, td); | ||||
goto out; | goto out; | ||||
Context not available. | |||||
&blen); | &blen); | ||||
nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_PNFS) != 0, ",pnfs", | nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_PNFS) != 0, ",pnfs", | ||||
&buf, &blen); | &buf, &blen); | ||||
nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_ONEOPENOWN) != 0 && | |||||
nmp->nm_minorvers > 0, ",oneopenown", &buf, &blen); | |||||
} | } | ||||
nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_NFSV3) != 0, "nfsv3", &buf, | nfscl_printopt(nmp, (nmp->nm_flag & NFSMNT_NFSV3) != 0, "nfsv3", &buf, | ||||
&blen); | &blen); | ||||
Context not available. |