You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.7 KiB
42 lines
1.7 KiB
7 years ago
|
diff -up nfs-utils-1.3.0/support/nfs/exports.c.orig nfs-utils-1.3.0/support/nfs/exports.c
|
||
|
--- nfs-utils-1.3.0/support/nfs/exports.c.orig 2017-02-27 18:24:26.485237519 -0500
|
||
|
+++ nfs-utils-1.3.0/support/nfs/exports.c 2017-02-27 18:25:49.296652027 -0500
|
||
|
@@ -197,7 +197,6 @@ static const struct secinfo_flag_display
|
||
|
const char *set;
|
||
|
const char *unset;
|
||
|
} secinfo_flag_displaymap[] = {
|
||
|
- { NFSEXP_READONLY, "ro", "rw" },
|
||
|
{ NFSEXP_INSECURE_PORT, "insecure", "secure" },
|
||
|
{ NFSEXP_ROOTSQUASH, "root_squash", "no_root_squash" },
|
||
|
{ NFSEXP_ALLSQUASH, "all_squash", "no_all_squash" },
|
||
|
diff -up nfs-utils-1.3.0/utils/exportfs/exportfs.c.orig nfs-utils-1.3.0/utils/exportfs/exportfs.c
|
||
|
--- nfs-utils-1.3.0/utils/exportfs/exportfs.c.orig 2017-02-27 18:24:26.429237915 -0500
|
||
|
+++ nfs-utils-1.3.0/utils/exportfs/exportfs.c 2017-02-27 18:25:49.297652020 -0500
|
||
|
@@ -814,20 +814,18 @@ dump(int verbose, int export_format)
|
||
|
c = dumpopt(c, "rw");
|
||
|
if (ep->e_flags & NFSEXP_ASYNC)
|
||
|
c = dumpopt(c, "async");
|
||
|
+ else
|
||
|
+ c = dumpopt(c, "sync");
|
||
|
if (ep->e_flags & NFSEXP_GATHERED_WRITES)
|
||
|
c = dumpopt(c, "wdelay");
|
||
|
+ else
|
||
|
+ c = dumpopt(c, "no_wdelay");
|
||
|
if (ep->e_flags & NFSEXP_NOHIDE)
|
||
|
c = dumpopt(c, "nohide");
|
||
|
+ else
|
||
|
+ c = dumpopt(c, "hide");
|
||
|
if (ep->e_flags & NFSEXP_CROSSMOUNT)
|
||
|
c = dumpopt(c, "crossmnt");
|
||
|
- if (ep->e_flags & NFSEXP_INSECURE_PORT)
|
||
|
- c = dumpopt(c, "insecure");
|
||
|
- if (ep->e_flags & NFSEXP_ROOTSQUASH)
|
||
|
- c = dumpopt(c, "root_squash");
|
||
|
- else
|
||
|
- c = dumpopt(c, "no_root_squash");
|
||
|
- if (ep->e_flags & NFSEXP_ALLSQUASH)
|
||
|
- c = dumpopt(c, "all_squash");
|
||
|
if (ep->e_flags & NFSEXP_NOSUBTREECHECK)
|
||
|
c = dumpopt(c, "no_subtree_check");
|
||
|
if (ep->e_flags & NFSEXP_NOAUTHNLM)
|