X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fexportfs%2Fexportfs.c;h=41f475036f6586326ee549e57b50b8d0bcfedbc6;hb=cf9569df886a4eda5ae55e5be3bce92c8f143373;hp=4c04098e1579475a5f66b5314872db308c599f41;hpb=37e49789ab1cd849def25ba4c4d97ccdb11d1e61;p=nfs-utils.git diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c index 4c04098..41f4750 100644 --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -206,6 +206,7 @@ exportfs(char *arg, char *options, int verbose) } else hp = hp2; exp = export_find(hp, path); + hname = hp->h_name; } else { exp = export_lookup(hname, path, 0); } @@ -344,6 +345,8 @@ dump(int verbose) c = dumpopt(c, "no_subtree_check"); if (ep->e_flags & NFSEXP_NOAUTHNLM) c = dumpopt(c, "insecure_locks"); + if (ep->e_flags & NFSEXP_FSID) + c = dumpopt(c, "fsid=%d", ep->e_fsid); if (ep->e_maptype == CLE_MAP_UGIDD) c = dumpopt(c, "mapping=ugidd"); else if (ep->e_maptype == CLE_MAP_FILE)