Lines Matching refs:fsloc
317 static void nfsd4_fslocs_free(struct nfsd4_fs_locations *fsloc) in nfsd4_fslocs_free() argument
319 struct nfsd4_fs_location *locations = fsloc->locations; in nfsd4_fslocs_free()
325 for (i = 0; i < fsloc->locations_count; i++) { in nfsd4_fslocs_free()
331 fsloc->locations = NULL; in nfsd4_fslocs_free()
455 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc) in fsloc_parse() argument
461 if (fsloc->locations) in fsloc_parse()
465 err = get_uint(mesg, &fsloc->locations_count); in fsloc_parse()
468 if (fsloc->locations_count > MAX_FS_LOCATIONS) in fsloc_parse()
470 if (fsloc->locations_count == 0) in fsloc_parse()
473 fsloc->locations = kcalloc(fsloc->locations_count, in fsloc_parse()
476 if (!fsloc->locations) in fsloc_parse()
478 for (i=0; i < fsloc->locations_count; i++) { in fsloc_parse()
485 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
486 if (!fsloc->locations[i].hosts) in fsloc_parse()
494 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
495 if (!fsloc->locations[i].path) in fsloc_parse()
505 fsloc->migrated = migrated; in fsloc_parse()
508 nfsd4_fslocs_free(fsloc); in fsloc_parse()
551 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc){return 0;} in fsloc_parse() argument
1363 kuid_t anonu, kgid_t anong, struct nfsd4_fs_locations *fsloc) in exp_flags() argument
1376 if (fsloc && fsloc->locations_count > 0) { in exp_flags()
1377 char *loctype = (fsloc->migrated) ? "refer" : "replicas"; in exp_flags()
1381 seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); in exp_flags()
1383 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags()
1384 for (i = 1; i < fsloc->locations_count; i++) { in exp_flags()
1386 seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); in exp_flags()
1388 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()