xlog_open("exportfs");
+ export_errno = 0;
+
while ((c = getopt(argc, argv, "aio:ruv")) != EOF) {
switch(c) {
case 'a':
xtab_export_write();
xtab_mount_write();
- return 0;
+ return export_errno;
}
/* we synchronise intention with reality.
} else
hp = hp2;
exp = export_find(hp, path);
+ hname = hp->h_name;
} else {
exp = export_lookup(hname, path, 0);
}
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)