export.c (db3a35326362624dd4d8473e676d63afa52bedcc) export.c (a09581f29434ae67f8fc6ae487e4f30a7f0d019f)
1/*
2 * NFS exporting and validation.
3 *
4 * We maintain a list of clients, each of which has a list of
5 * exports. To export an fs to a given client, you first have
6 * to create the client entry with NFSCTL_ADDCLIENT, which
7 * creates a client control block and adds it to the hash
8 * table. Then, you call NFSCTL_EXPORT for each fs.

--- 1191 unchanged lines hidden (view full) ---

1200 seq_puts(m, "# Version 1.1\n");
1201 seq_puts(m, "# Path Client(Flags) # IPs\n");
1202 return 0;
1203 }
1204
1205 cache_get(&exp->h);
1206 if (cache_check(&svc_export_cache, &exp->h, NULL))
1207 return 0;
1/*
2 * NFS exporting and validation.
3 *
4 * We maintain a list of clients, each of which has a list of
5 * exports. To export an fs to a given client, you first have
6 * to create the client entry with NFSCTL_ADDCLIENT, which
7 * creates a client control block and adds it to the hash
8 * table. Then, you call NFSCTL_EXPORT for each fs.

--- 1191 unchanged lines hidden (view full) ---

1200 seq_puts(m, "# Version 1.1\n");
1201 seq_puts(m, "# Path Client(Flags) # IPs\n");
1202 return 0;
1203 }
1204
1205 cache_get(&exp->h);
1206 if (cache_check(&svc_export_cache, &exp->h, NULL))
1207 return 0;
1208 cache_put(&exp->h, &svc_export_cache);
1208 exp_put(exp);
1209 return svc_export_show(m, &svc_export_cache, cp);
1210}
1211
1212const struct seq_operations nfs_exports_op = {
1213 .start = e_start,
1214 .next = e_next,
1215 .stop = e_stop,
1216 .show = e_show,

--- 47 unchanged lines hidden ---
1209 return svc_export_show(m, &svc_export_cache, cp);
1210}
1211
1212const struct seq_operations nfs_exports_op = {
1213 .start = e_start,
1214 .next = e_next,
1215 .stop = e_stop,
1216 .show = e_show,

--- 47 unchanged lines hidden ---