• Home
  • Raw
  • Download

Lines Matching refs:mnt

1046 static void nfs_validate_transport_protocol(struct nfs_parsed_mount_data *mnt)  in nfs_validate_transport_protocol()  argument
1048 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
1054 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1062 static void nfs_set_mount_transport_protocol(struct nfs_parsed_mount_data *mnt) in nfs_set_mount_transport_protocol() argument
1064 nfs_validate_transport_protocol(mnt); in nfs_set_mount_transport_protocol()
1066 if (mnt->mount_server.protocol == XPRT_TRANSPORT_UDP || in nfs_set_mount_transport_protocol()
1067 mnt->mount_server.protocol == XPRT_TRANSPORT_TCP) in nfs_set_mount_transport_protocol()
1069 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1071 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_set_mount_transport_protocol()
1075 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_set_mount_transport_protocol()
1128 struct nfs_parsed_mount_data *mnt) in nfs_parse_security_flavors() argument
1177 if (!nfs_auth_info_add(&mnt->auth_info, pseudoflavor)) in nfs_parse_security_flavors()
1185 struct nfs_parsed_mount_data *mnt, in nfs_parse_version_string() argument
1188 mnt->flags &= ~NFS_MOUNT_VER3; in nfs_parse_version_string()
1191 mnt->version = 2; in nfs_parse_version_string()
1194 mnt->flags |= NFS_MOUNT_VER3; in nfs_parse_version_string()
1195 mnt->version = 3; in nfs_parse_version_string()
1202 mnt->version = 4; in nfs_parse_version_string()
1205 mnt->version = 4; in nfs_parse_version_string()
1206 mnt->minorversion = 0; in nfs_parse_version_string()
1209 mnt->version = 4; in nfs_parse_version_string()
1210 mnt->minorversion = 1; in nfs_parse_version_string()
1213 mnt->version = 4; in nfs_parse_version_string()
1214 mnt->minorversion = 2; in nfs_parse_version_string()
1263 struct nfs_parsed_mount_data *mnt) in nfs_parse_mount_options() argument
1276 rc = security_sb_eat_lsm_opts(raw, &mnt->lsm_opts); in nfs_parse_mount_options()
1297 mnt->flags |= NFS_MOUNT_SOFT; in nfs_parse_mount_options()
1298 mnt->flags &= ~NFS_MOUNT_SOFTERR; in nfs_parse_mount_options()
1301 mnt->flags |= NFS_MOUNT_SOFTERR; in nfs_parse_mount_options()
1302 mnt->flags &= ~NFS_MOUNT_SOFT; in nfs_parse_mount_options()
1305 mnt->flags &= ~(NFS_MOUNT_SOFT|NFS_MOUNT_SOFTERR); in nfs_parse_mount_options()
1308 mnt->flags |= NFS_MOUNT_POSIX; in nfs_parse_mount_options()
1311 mnt->flags &= ~NFS_MOUNT_POSIX; in nfs_parse_mount_options()
1314 mnt->flags &= ~NFS_MOUNT_NOCTO; in nfs_parse_mount_options()
1317 mnt->flags |= NFS_MOUNT_NOCTO; in nfs_parse_mount_options()
1320 mnt->flags &= ~NFS_MOUNT_NOAC; in nfs_parse_mount_options()
1323 mnt->flags |= NFS_MOUNT_NOAC; in nfs_parse_mount_options()
1326 mnt->flags &= ~NFS_MOUNT_NONLM; in nfs_parse_mount_options()
1327 mnt->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1331 mnt->flags |= NFS_MOUNT_NONLM; in nfs_parse_mount_options()
1332 mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1336 mnt->flags &= ~NFS_MOUNT_TCP; in nfs_parse_mount_options()
1337 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1340 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1341 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1344 mnt->flags |= NFS_MOUNT_TCP; /* for side protocols */ in nfs_parse_mount_options()
1345 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1349 mnt->flags &= ~NFS_MOUNT_NOACL; in nfs_parse_mount_options()
1352 mnt->flags |= NFS_MOUNT_NOACL; in nfs_parse_mount_options()
1355 mnt->flags &= ~NFS_MOUNT_NORDIRPLUS; in nfs_parse_mount_options()
1358 mnt->flags |= NFS_MOUNT_NORDIRPLUS; in nfs_parse_mount_options()
1361 mnt->flags &= ~NFS_MOUNT_UNSHARED; in nfs_parse_mount_options()
1364 mnt->flags |= NFS_MOUNT_UNSHARED; in nfs_parse_mount_options()
1367 mnt->flags &= ~NFS_MOUNT_NORESVPORT; in nfs_parse_mount_options()
1370 mnt->flags |= NFS_MOUNT_NORESVPORT; in nfs_parse_mount_options()
1373 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1374 kfree(mnt->fscache_uniq); in nfs_parse_mount_options()
1375 mnt->fscache_uniq = NULL; in nfs_parse_mount_options()
1378 mnt->options &= ~NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1379 kfree(mnt->fscache_uniq); in nfs_parse_mount_options()
1380 mnt->fscache_uniq = NULL; in nfs_parse_mount_options()
1383 mnt->options |= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1386 mnt->options &= ~NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1396 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1401 mnt->rsize = option; in nfs_parse_mount_options()
1406 mnt->wsize = option; in nfs_parse_mount_options()
1411 mnt->bsize = option; in nfs_parse_mount_options()
1416 mnt->timeo = option; in nfs_parse_mount_options()
1421 mnt->retrans = option; in nfs_parse_mount_options()
1426 mnt->acregmin = option; in nfs_parse_mount_options()
1431 mnt->acregmax = option; in nfs_parse_mount_options()
1436 mnt->acdirmin = option; in nfs_parse_mount_options()
1441 mnt->acdirmax = option; in nfs_parse_mount_options()
1446 mnt->acregmin = mnt->acregmax = in nfs_parse_mount_options()
1447 mnt->acdirmin = mnt->acdirmax = option; in nfs_parse_mount_options()
1452 mnt->namlen = option; in nfs_parse_mount_options()
1458 mnt->mount_server.port = option; in nfs_parse_mount_options()
1465 mnt->mount_server.version = option; in nfs_parse_mount_options()
1472 mnt->minorversion = option; in nfs_parse_mount_options()
1482 rc = nfs_parse_version_string(string, mnt, args); in nfs_parse_mount_options()
1491 rc = nfs_parse_security_flavors(string, mnt); in nfs_parse_mount_options()
1512 mnt->flags &= ~NFS_MOUNT_TCP; in nfs_parse_mount_options()
1513 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1519 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1520 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1527 mnt->flags |= NFS_MOUNT_TCP; in nfs_parse_mount_options()
1528 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1553 mnt->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1559 mnt->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1572 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1573 rpc_pton(mnt->net, string, strlen(string), in nfs_parse_mount_options()
1575 &mnt->nfs_server.address, in nfs_parse_mount_options()
1576 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1578 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1582 if (nfs_get_option_str(args, &mnt->client_address)) in nfs_parse_mount_options()
1587 &mnt->mount_server.hostname)) in nfs_parse_mount_options()
1594 mnt->mount_server.addrlen = in nfs_parse_mount_options()
1595 rpc_pton(mnt->net, string, strlen(string), in nfs_parse_mount_options()
1597 &mnt->mount_server.address, in nfs_parse_mount_options()
1598 sizeof(mnt->mount_server.address)); in nfs_parse_mount_options()
1600 if (mnt->mount_server.addrlen == 0) in nfs_parse_mount_options()
1606 mnt->nfs_server.nconnect = option; in nfs_parse_mount_options()
1617 mnt->flags &= ~(NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE); in nfs_parse_mount_options()
1620 mnt->flags &= ~NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_parse_mount_options()
1621 mnt->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG; in nfs_parse_mount_options()
1624 mnt->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_parse_mount_options()
1633 if (nfs_get_option_str(args, &mnt->fscache_uniq)) in nfs_parse_mount_options()
1635 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1646 mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1650 mnt->flags |= NFS_MOUNT_LOCAL_FLOCK; in nfs_parse_mount_options()
1653 mnt->flags |= NFS_MOUNT_LOCAL_FCNTL; in nfs_parse_mount_options()
1656 mnt->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_parse_mount_options()
1689 if (mnt->minorversion && mnt->version != 4) in nfs_parse_mount_options()
1692 if (mnt->options & NFS_OPTION_MIGRATION && in nfs_parse_mount_options()
1693 (mnt->version != 4 || mnt->minorversion != 0)) in nfs_parse_mount_options()
1701 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1705 if (mnt->mount_server.addrlen) { in nfs_parse_mount_options()
1706 if (mountfamily != mnt->mount_server.address.ss_family) in nfs_parse_mount_options()
1709 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1731 "minorversion=%u\n", mnt->version, mnt->minorversion); in nfs_parse_mount_options()