Lines Matching refs:fsloc
306 static void nfsd4_fslocs_free(struct nfsd4_fs_locations *fsloc) in nfsd4_fslocs_free() argument
308 struct nfsd4_fs_location *locations = fsloc->locations; in nfsd4_fslocs_free()
314 for (i = 0; i < fsloc->locations_count; i++) { in nfsd4_fslocs_free()
320 fsloc->locations = NULL; in nfsd4_fslocs_free()
402 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc) in fsloc_parse() argument
408 if (fsloc->locations) in fsloc_parse()
412 err = get_uint(mesg, &fsloc->locations_count); in fsloc_parse()
415 if (fsloc->locations_count > MAX_FS_LOCATIONS) in fsloc_parse()
417 if (fsloc->locations_count == 0) in fsloc_parse()
420 fsloc->locations = kcalloc(fsloc->locations_count, in fsloc_parse()
423 if (!fsloc->locations) in fsloc_parse()
425 for (i=0; i < fsloc->locations_count; i++) { in fsloc_parse()
432 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
433 if (!fsloc->locations[i].hosts) in fsloc_parse()
441 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
442 if (!fsloc->locations[i].path) in fsloc_parse()
452 fsloc->migrated = migrated; in fsloc_parse()
455 nfsd4_fslocs_free(fsloc); in fsloc_parse()
498 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc){return 0;} in fsloc_parse() argument
1184 kuid_t anonu, kgid_t anong, struct nfsd4_fs_locations *fsloc) in exp_flags() argument
1197 if (fsloc && fsloc->locations_count > 0) { in exp_flags()
1198 char *loctype = (fsloc->migrated) ? "refer" : "replicas"; in exp_flags()
1202 seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); in exp_flags()
1204 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags()
1205 for (i = 1; i < fsloc->locations_count; i++) { in exp_flags()
1207 seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); in exp_flags()
1209 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()