Lines Matching refs:mnt

993 static void nfs_validate_transport_protocol(struct nfs_parsed_mount_data *mnt)  in nfs_validate_transport_protocol()  argument
995 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
1001 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1009 static void nfs_set_mount_transport_protocol(struct nfs_parsed_mount_data *mnt) in nfs_set_mount_transport_protocol() argument
1011 nfs_validate_transport_protocol(mnt); in nfs_set_mount_transport_protocol()
1013 if (mnt->mount_server.protocol == XPRT_TRANSPORT_UDP || in nfs_set_mount_transport_protocol()
1014 mnt->mount_server.protocol == XPRT_TRANSPORT_TCP) in nfs_set_mount_transport_protocol()
1016 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1018 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_set_mount_transport_protocol()
1022 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_set_mount_transport_protocol()
1075 struct nfs_parsed_mount_data *mnt) in nfs_parse_security_flavors() argument
1124 if (!nfs_auth_info_add(&mnt->auth_info, pseudoflavor)) in nfs_parse_security_flavors()
1132 struct nfs_parsed_mount_data *mnt, in nfs_parse_version_string() argument
1135 mnt->flags &= ~NFS_MOUNT_VER3; in nfs_parse_version_string()
1138 mnt->version = 2; in nfs_parse_version_string()
1141 mnt->flags |= NFS_MOUNT_VER3; in nfs_parse_version_string()
1142 mnt->version = 3; in nfs_parse_version_string()
1149 mnt->version = 4; in nfs_parse_version_string()
1152 mnt->version = 4; in nfs_parse_version_string()
1153 mnt->minorversion = 0; in nfs_parse_version_string()
1156 mnt->version = 4; in nfs_parse_version_string()
1157 mnt->minorversion = 1; in nfs_parse_version_string()
1160 mnt->version = 4; in nfs_parse_version_string()
1161 mnt->minorversion = 2; in nfs_parse_version_string()
1197 struct nfs_parsed_mount_data *mnt) in nfs_parse_mount_options() argument
1218 rc = security_sb_parse_opts_str(secdata, &mnt->lsm_opts); in nfs_parse_mount_options()
1241 mnt->flags |= NFS_MOUNT_SOFT; in nfs_parse_mount_options()
1244 mnt->flags &= ~NFS_MOUNT_SOFT; in nfs_parse_mount_options()
1247 mnt->flags |= NFS_MOUNT_POSIX; in nfs_parse_mount_options()
1250 mnt->flags &= ~NFS_MOUNT_POSIX; in nfs_parse_mount_options()
1253 mnt->flags &= ~NFS_MOUNT_NOCTO; in nfs_parse_mount_options()
1256 mnt->flags |= NFS_MOUNT_NOCTO; in nfs_parse_mount_options()
1259 mnt->flags &= ~NFS_MOUNT_NOAC; in nfs_parse_mount_options()
1262 mnt->flags |= NFS_MOUNT_NOAC; in nfs_parse_mount_options()
1265 mnt->flags &= ~NFS_MOUNT_NONLM; in nfs_parse_mount_options()
1266 mnt->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1270 mnt->flags |= NFS_MOUNT_NONLM; in nfs_parse_mount_options()
1271 mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1275 mnt->flags &= ~NFS_MOUNT_TCP; in nfs_parse_mount_options()
1276 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1279 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1280 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1283 mnt->flags |= NFS_MOUNT_TCP; /* for side protocols */ in nfs_parse_mount_options()
1284 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1288 mnt->flags &= ~NFS_MOUNT_NOACL; in nfs_parse_mount_options()
1291 mnt->flags |= NFS_MOUNT_NOACL; in nfs_parse_mount_options()
1294 mnt->flags &= ~NFS_MOUNT_NORDIRPLUS; in nfs_parse_mount_options()
1297 mnt->flags |= NFS_MOUNT_NORDIRPLUS; in nfs_parse_mount_options()
1300 mnt->flags &= ~NFS_MOUNT_UNSHARED; in nfs_parse_mount_options()
1303 mnt->flags |= NFS_MOUNT_UNSHARED; in nfs_parse_mount_options()
1306 mnt->flags &= ~NFS_MOUNT_NORESVPORT; in nfs_parse_mount_options()
1309 mnt->flags |= NFS_MOUNT_NORESVPORT; in nfs_parse_mount_options()
1312 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1313 kfree(mnt->fscache_uniq); in nfs_parse_mount_options()
1314 mnt->fscache_uniq = NULL; in nfs_parse_mount_options()
1317 mnt->options &= ~NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1318 kfree(mnt->fscache_uniq); in nfs_parse_mount_options()
1319 mnt->fscache_uniq = NULL; in nfs_parse_mount_options()
1322 mnt->options |= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1325 mnt->options &= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1335 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1340 mnt->rsize = option; in nfs_parse_mount_options()
1345 mnt->wsize = option; in nfs_parse_mount_options()
1350 mnt->bsize = option; in nfs_parse_mount_options()
1355 mnt->timeo = option; in nfs_parse_mount_options()
1360 mnt->retrans = option; in nfs_parse_mount_options()
1365 mnt->acregmin = option; in nfs_parse_mount_options()
1370 mnt->acregmax = option; in nfs_parse_mount_options()
1375 mnt->acdirmin = option; in nfs_parse_mount_options()
1380 mnt->acdirmax = option; in nfs_parse_mount_options()
1385 mnt->acregmin = mnt->acregmax = in nfs_parse_mount_options()
1386 mnt->acdirmin = mnt->acdirmax = option; in nfs_parse_mount_options()
1391 mnt->namlen = option; in nfs_parse_mount_options()
1397 mnt->mount_server.port = option; in nfs_parse_mount_options()
1404 mnt->mount_server.version = option; in nfs_parse_mount_options()
1411 mnt->minorversion = option; in nfs_parse_mount_options()
1421 rc = nfs_parse_version_string(string, mnt, args); in nfs_parse_mount_options()
1430 rc = nfs_parse_security_flavors(string, mnt); in nfs_parse_mount_options()
1450 mnt->flags &= ~NFS_MOUNT_TCP; in nfs_parse_mount_options()
1451 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1456 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1457 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1461 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1462 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1486 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1491 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1504 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1505 rpc_pton(mnt->net, string, strlen(string), in nfs_parse_mount_options()
1507 &mnt->nfs_server.address, in nfs_parse_mount_options()
1508 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1510 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1514 if (nfs_get_option_str(args, &mnt->client_address)) in nfs_parse_mount_options()
1519 &mnt->mount_server.hostname)) in nfs_parse_mount_options()
1526 mnt->mount_server.addrlen = in nfs_parse_mount_options()
1527 rpc_pton(mnt->net, string, strlen(string), in nfs_parse_mount_options()
1529 &mnt->mount_server.address, in nfs_parse_mount_options()
1530 sizeof(mnt->mount_server.address)); in nfs_parse_mount_options()
1532 if (mnt->mount_server.addrlen == 0) in nfs_parse_mount_options()
1544 mnt->flags &= ~(NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE); in nfs_parse_mount_options()
1547 mnt->flags &= ~NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_parse_mount_options()
1548 mnt->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG; in nfs_parse_mount_options()
1551 mnt->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_parse_mount_options()
1560 if (nfs_get_option_str(args, &mnt->fscache_uniq)) in nfs_parse_mount_options()
1562 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1573 mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1577 mnt->flags |= NFS_MOUNT_LOCAL_FLOCK; in nfs_parse_mount_options()
1580 mnt->flags |= NFS_MOUNT_LOCAL_FCNTL; in nfs_parse_mount_options()
1583 mnt->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1616 if (mnt->minorversion && mnt->version != 4) in nfs_parse_mount_options()
1619 if (mnt->options & NFS_OPTION_MIGRATION && in nfs_parse_mount_options()
1620 (mnt->version != 4 || mnt->minorversion != 0)) in nfs_parse_mount_options()
1628 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1632 if (mnt->mount_server.addrlen) { in nfs_parse_mount_options()
1633 if (mountfamily != mnt->mount_server.address.ss_family) in nfs_parse_mount_options()
1636 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1658 "minorversion=%u\n", mnt->version, mnt->minorversion); in nfs_parse_mount_options()