Lines Matching refs:mnt
990 static void nfs_validate_transport_protocol(struct nfs_parsed_mount_data *mnt) in nfs_validate_transport_protocol() argument
992 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
998 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1006 static void nfs_set_mount_transport_protocol(struct nfs_parsed_mount_data *mnt) in nfs_set_mount_transport_protocol() argument
1008 nfs_validate_transport_protocol(mnt); in nfs_set_mount_transport_protocol()
1010 if (mnt->mount_server.protocol == XPRT_TRANSPORT_UDP || in nfs_set_mount_transport_protocol()
1011 mnt->mount_server.protocol == XPRT_TRANSPORT_TCP) in nfs_set_mount_transport_protocol()
1013 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1015 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_set_mount_transport_protocol()
1019 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_set_mount_transport_protocol()
1072 struct nfs_parsed_mount_data *mnt) in nfs_parse_security_flavors() argument
1121 if (!nfs_auth_info_add(&mnt->auth_info, pseudoflavor)) in nfs_parse_security_flavors()
1129 struct nfs_parsed_mount_data *mnt, in nfs_parse_version_string() argument
1132 mnt->flags &= ~NFS_MOUNT_VER3; in nfs_parse_version_string()
1135 mnt->version = 2; in nfs_parse_version_string()
1138 mnt->flags |= NFS_MOUNT_VER3; in nfs_parse_version_string()
1139 mnt->version = 3; in nfs_parse_version_string()
1146 mnt->version = 4; in nfs_parse_version_string()
1149 mnt->version = 4; in nfs_parse_version_string()
1150 mnt->minorversion = 0; in nfs_parse_version_string()
1153 mnt->version = 4; in nfs_parse_version_string()
1154 mnt->minorversion = 1; in nfs_parse_version_string()
1157 mnt->version = 4; in nfs_parse_version_string()
1158 mnt->minorversion = 2; in nfs_parse_version_string()
1194 struct nfs_parsed_mount_data *mnt) in nfs_parse_mount_options() argument
1215 rc = security_sb_parse_opts_str(secdata, &mnt->lsm_opts); in nfs_parse_mount_options()
1238 mnt->flags |= NFS_MOUNT_SOFT; in nfs_parse_mount_options()
1241 mnt->flags &= ~NFS_MOUNT_SOFT; in nfs_parse_mount_options()
1244 mnt->flags |= NFS_MOUNT_POSIX; in nfs_parse_mount_options()
1247 mnt->flags &= ~NFS_MOUNT_POSIX; in nfs_parse_mount_options()
1250 mnt->flags &= ~NFS_MOUNT_NOCTO; in nfs_parse_mount_options()
1253 mnt->flags |= NFS_MOUNT_NOCTO; in nfs_parse_mount_options()
1256 mnt->flags &= ~NFS_MOUNT_NOAC; in nfs_parse_mount_options()
1259 mnt->flags |= NFS_MOUNT_NOAC; in nfs_parse_mount_options()
1262 mnt->flags &= ~NFS_MOUNT_NONLM; in nfs_parse_mount_options()
1263 mnt->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1267 mnt->flags |= NFS_MOUNT_NONLM; in nfs_parse_mount_options()
1268 mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1272 mnt->flags &= ~NFS_MOUNT_TCP; in nfs_parse_mount_options()
1273 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1276 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1277 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1280 mnt->flags |= NFS_MOUNT_TCP; /* for side protocols */ in nfs_parse_mount_options()
1281 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1285 mnt->flags &= ~NFS_MOUNT_NOACL; in nfs_parse_mount_options()
1288 mnt->flags |= NFS_MOUNT_NOACL; in nfs_parse_mount_options()
1291 mnt->flags &= ~NFS_MOUNT_NORDIRPLUS; in nfs_parse_mount_options()
1294 mnt->flags |= NFS_MOUNT_NORDIRPLUS; in nfs_parse_mount_options()
1297 mnt->flags &= ~NFS_MOUNT_UNSHARED; in nfs_parse_mount_options()
1300 mnt->flags |= NFS_MOUNT_UNSHARED; in nfs_parse_mount_options()
1303 mnt->flags &= ~NFS_MOUNT_NORESVPORT; in nfs_parse_mount_options()
1306 mnt->flags |= NFS_MOUNT_NORESVPORT; in nfs_parse_mount_options()
1309 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1310 kfree(mnt->fscache_uniq); in nfs_parse_mount_options()
1311 mnt->fscache_uniq = NULL; in nfs_parse_mount_options()
1314 mnt->options &= ~NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1315 kfree(mnt->fscache_uniq); in nfs_parse_mount_options()
1316 mnt->fscache_uniq = NULL; in nfs_parse_mount_options()
1319 mnt->options |= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1322 mnt->options &= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1332 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1337 mnt->rsize = option; in nfs_parse_mount_options()
1342 mnt->wsize = option; in nfs_parse_mount_options()
1347 mnt->bsize = option; in nfs_parse_mount_options()
1352 mnt->timeo = option; in nfs_parse_mount_options()
1357 mnt->retrans = option; in nfs_parse_mount_options()
1362 mnt->acregmin = option; in nfs_parse_mount_options()
1367 mnt->acregmax = option; in nfs_parse_mount_options()
1372 mnt->acdirmin = option; in nfs_parse_mount_options()
1377 mnt->acdirmax = option; in nfs_parse_mount_options()
1382 mnt->acregmin = mnt->acregmax = in nfs_parse_mount_options()
1383 mnt->acdirmin = mnt->acdirmax = option; in nfs_parse_mount_options()
1388 mnt->namlen = option; in nfs_parse_mount_options()
1394 mnt->mount_server.port = option; in nfs_parse_mount_options()
1401 mnt->mount_server.version = option; in nfs_parse_mount_options()
1408 mnt->minorversion = option; in nfs_parse_mount_options()
1418 rc = nfs_parse_version_string(string, mnt, args); in nfs_parse_mount_options()
1427 rc = nfs_parse_security_flavors(string, mnt); in nfs_parse_mount_options()
1447 mnt->flags &= ~NFS_MOUNT_TCP; in nfs_parse_mount_options()
1448 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1453 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1454 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1458 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1459 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1483 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1488 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1501 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1502 rpc_pton(mnt->net, string, strlen(string), in nfs_parse_mount_options()
1504 &mnt->nfs_server.address, in nfs_parse_mount_options()
1505 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1507 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1511 if (nfs_get_option_str(args, &mnt->client_address)) in nfs_parse_mount_options()
1516 &mnt->mount_server.hostname)) in nfs_parse_mount_options()
1523 mnt->mount_server.addrlen = in nfs_parse_mount_options()
1524 rpc_pton(mnt->net, string, strlen(string), in nfs_parse_mount_options()
1526 &mnt->mount_server.address, in nfs_parse_mount_options()
1527 sizeof(mnt->mount_server.address)); in nfs_parse_mount_options()
1529 if (mnt->mount_server.addrlen == 0) in nfs_parse_mount_options()
1541 mnt->flags &= ~(NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE); in nfs_parse_mount_options()
1544 mnt->flags &= ~NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_parse_mount_options()
1545 mnt->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG; in nfs_parse_mount_options()
1548 mnt->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_parse_mount_options()
1557 if (nfs_get_option_str(args, &mnt->fscache_uniq)) in nfs_parse_mount_options()
1559 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1570 mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1574 mnt->flags |= NFS_MOUNT_LOCAL_FLOCK; in nfs_parse_mount_options()
1577 mnt->flags |= NFS_MOUNT_LOCAL_FCNTL; in nfs_parse_mount_options()
1580 mnt->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1613 if (mnt->minorversion && mnt->version != 4) in nfs_parse_mount_options()
1616 if (mnt->options & NFS_OPTION_MIGRATION && in nfs_parse_mount_options()
1617 (mnt->version != 4 || mnt->minorversion != 0)) in nfs_parse_mount_options()
1625 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1629 if (mnt->mount_server.addrlen) { in nfs_parse_mount_options()
1630 if (mountfamily != mnt->mount_server.address.ss_family) in nfs_parse_mount_options()
1633 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1655 "minorversion=%u\n", mnt->version, mnt->minorversion); in nfs_parse_mount_options()