Lines Matching refs:data
890 struct nfs_mount_data *data) in nfs23_parse_monolithic() argument
897 if (data == NULL) in nfs23_parse_monolithic()
901 switch (data->version) { in nfs23_parse_monolithic()
903 data->namlen = 0; in nfs23_parse_monolithic()
906 data->bsize = 0; in nfs23_parse_monolithic()
909 if (data->flags & NFS_MOUNT_VER3) in nfs23_parse_monolithic()
911 data->root.size = NFS2_FHSIZE; in nfs23_parse_monolithic()
912 memcpy(data->root.data, data->old_root.data, NFS2_FHSIZE); in nfs23_parse_monolithic()
917 if (data->flags & NFS_MOUNT_SECFLAVOUR) in nfs23_parse_monolithic()
921 memset(data->context, 0, sizeof(data->context)); in nfs23_parse_monolithic()
924 if (data->flags & NFS_MOUNT_VER3) { in nfs23_parse_monolithic()
925 if (data->root.size > NFS3_FHSIZE || data->root.size == 0) in nfs23_parse_monolithic()
927 mntfh->size = data->root.size; in nfs23_parse_monolithic()
935 memcpy(mntfh->data, data->root.data, mntfh->size); in nfs23_parse_monolithic()
936 if (mntfh->size < sizeof(mntfh->data)) in nfs23_parse_monolithic()
937 memset(mntfh->data + mntfh->size, 0, in nfs23_parse_monolithic()
938 sizeof(mntfh->data) - mntfh->size); in nfs23_parse_monolithic()
945 if (!(data->flags & NFS_MOUNT_TCP)) /* this will be UDP */ in nfs23_parse_monolithic()
946 if (data->retrans >= 64) /* shift value is too large */ in nfs23_parse_monolithic()
953 ctx->flags = data->flags & NFS_MOUNT_FLAGMASK; in nfs23_parse_monolithic()
955 ctx->rsize = data->rsize; in nfs23_parse_monolithic()
956 ctx->wsize = data->wsize; in nfs23_parse_monolithic()
957 ctx->timeo = data->timeo; in nfs23_parse_monolithic()
958 ctx->retrans = data->retrans; in nfs23_parse_monolithic()
959 ctx->acregmin = data->acregmin; in nfs23_parse_monolithic()
960 ctx->acregmax = data->acregmax; in nfs23_parse_monolithic()
961 ctx->acdirmin = data->acdirmin; in nfs23_parse_monolithic()
962 ctx->acdirmax = data->acdirmax; in nfs23_parse_monolithic()
965 memcpy(sap, &data->addr, sizeof(data->addr)); in nfs23_parse_monolithic()
966 ctx->nfs_server.addrlen = sizeof(data->addr); in nfs23_parse_monolithic()
967 ctx->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_parse_monolithic()
972 if (!(data->flags & NFS_MOUNT_TCP)) in nfs23_parse_monolithic()
975 ctx->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_parse_monolithic()
979 ctx->namlen = data->namlen; in nfs23_parse_monolithic()
980 ctx->bsize = data->bsize; in nfs23_parse_monolithic()
982 if (data->flags & NFS_MOUNT_SECFLAVOUR) in nfs23_parse_monolithic()
983 ctx->selected_flavor = data->pseudoflavor; in nfs23_parse_monolithic()
987 if (!(data->flags & NFS_MOUNT_NONLM)) in nfs23_parse_monolithic()
1002 if (data->context[0]){ in nfs23_parse_monolithic()
1006 data->context[NFS_MAX_CONTEXT_LEN] = '\0'; in nfs23_parse_monolithic()
1008 data->context, strlen(data->context)); in nfs23_parse_monolithic()
1025 return generic_parse_monolithic(fc, data); in nfs23_parse_monolithic()
1057 compat_uptr_t data; member
1063 dst->data = compat_ptr(src->data); in compat_nfs_string()
1088 static void nfs4_compat_mount_data_conv(struct nfs4_mount_data *data) in nfs4_compat_mount_data_conv() argument
1091 (struct compat_nfs4_mount_data_v1 *)data; in nfs4_compat_mount_data_conv()
1094 data->auth_flavours = compat_ptr(compat->auth_flavours); in nfs4_compat_mount_data_conv()
1095 data->auth_flavourlen = compat->auth_flavourlen; in nfs4_compat_mount_data_conv()
1096 data->proto = compat->proto; in nfs4_compat_mount_data_conv()
1097 data->host_addr = compat_ptr(compat->host_addr); in nfs4_compat_mount_data_conv()
1098 data->host_addrlen = compat->host_addrlen; in nfs4_compat_mount_data_conv()
1099 compat_nfs_string(&data->hostname, &compat->hostname); in nfs4_compat_mount_data_conv()
1100 compat_nfs_string(&data->mnt_path, &compat->mnt_path); in nfs4_compat_mount_data_conv()
1101 compat_nfs_string(&data->client_addr, &compat->client_addr); in nfs4_compat_mount_data_conv()
1102 data->acdirmax = compat->acdirmax; in nfs4_compat_mount_data_conv()
1103 data->acdirmin = compat->acdirmin; in nfs4_compat_mount_data_conv()
1104 data->acregmax = compat->acregmax; in nfs4_compat_mount_data_conv()
1105 data->acregmin = compat->acregmin; in nfs4_compat_mount_data_conv()
1106 data->retrans = compat->retrans; in nfs4_compat_mount_data_conv()
1107 data->timeo = compat->timeo; in nfs4_compat_mount_data_conv()
1108 data->wsize = compat->wsize; in nfs4_compat_mount_data_conv()
1109 data->rsize = compat->rsize; in nfs4_compat_mount_data_conv()
1110 data->flags = compat->flags; in nfs4_compat_mount_data_conv()
1111 data->version = compat->version; in nfs4_compat_mount_data_conv()
1118 struct nfs4_mount_data *data) in nfs4_parse_monolithic() argument
1124 if (!data) { in nfs4_parse_monolithic()
1133 if (data->version != 1) in nfs4_parse_monolithic()
1134 return generic_parse_monolithic(fc, data); in nfs4_parse_monolithic()
1137 nfs4_compat_mount_data_conv(data); in nfs4_parse_monolithic()
1139 if (data->host_addrlen > sizeof(ctx->nfs_server.address)) in nfs4_parse_monolithic()
1141 if (data->host_addrlen == 0) in nfs4_parse_monolithic()
1143 ctx->nfs_server.addrlen = data->host_addrlen; in nfs4_parse_monolithic()
1144 if (copy_from_user(sap, data->host_addr, data->host_addrlen)) in nfs4_parse_monolithic()
1150 if (data->auth_flavourlen) { in nfs4_parse_monolithic()
1153 if (data->auth_flavourlen > 1) in nfs4_parse_monolithic()
1155 if (copy_from_user(&pseudoflavor, data->auth_flavours, in nfs4_parse_monolithic()
1163 c = strndup_user(data->hostname.data, NFS4_MAXNAMLEN); in nfs4_parse_monolithic()
1168 c = strndup_user(data->mnt_path.data, NFS4_MAXPATHLEN); in nfs4_parse_monolithic()
1174 c = strndup_user(data->client_addr.data, 16); in nfs4_parse_monolithic()
1184 ctx->flags = data->flags & NFS4_MOUNT_FLAGMASK; in nfs4_parse_monolithic()
1185 ctx->rsize = data->rsize; in nfs4_parse_monolithic()
1186 ctx->wsize = data->wsize; in nfs4_parse_monolithic()
1187 ctx->timeo = data->timeo; in nfs4_parse_monolithic()
1188 ctx->retrans = data->retrans; in nfs4_parse_monolithic()
1189 ctx->acregmin = data->acregmin; in nfs4_parse_monolithic()
1190 ctx->acregmax = data->acregmax; in nfs4_parse_monolithic()
1191 ctx->acdirmin = data->acdirmin; in nfs4_parse_monolithic()
1192 ctx->acdirmax = data->acdirmax; in nfs4_parse_monolithic()
1193 ctx->nfs_server.protocol = data->proto; in nfs4_parse_monolithic()
1203 data->auth_flavourlen); in nfs4_parse_monolithic()
1217 void *data) in nfs_fs_context_parse_monolithic() argument
1220 return nfs23_parse_monolithic(fc, data); in nfs_fs_context_parse_monolithic()
1224 return nfs4_parse_monolithic(fc, data); in nfs_fs_context_parse_monolithic()