Blame SOURCES/nfs-utils-1.3.0-exportfs-rwro-display.patch
|
|
5fd2c0 |
diff -up nfs-utils-1.3.0/support/nfs/exports.c.orig nfs-utils-1.3.0/support/nfs/exports.c
|
|
|
5fd2c0 |
--- nfs-utils-1.3.0/support/nfs/exports.c.orig 2018-07-10 13:49:12.978210878 -0400
|
|
|
5fd2c0 |
+++ nfs-utils-1.3.0/support/nfs/exports.c 2018-07-10 13:50:44.057806104 -0400
|
|
|
5fd2c0 |
@@ -197,6 +197,7 @@ static const struct secinfo_flag_display
|
|
|
5fd2c0 |
const char *set;
|
|
|
5fd2c0 |
const char *unset;
|
|
|
5fd2c0 |
} secinfo_flag_displaymap[] = {
|
|
|
5fd2c0 |
+ { NFSEXP_READONLY, "ro", "rw" },
|
|
|
5fd2c0 |
{ NFSEXP_INSECURE_PORT, "insecure", "secure" },
|
|
|
5fd2c0 |
{ NFSEXP_ROOTSQUASH, "root_squash", "no_root_squash" },
|
|
|
5fd2c0 |
{ NFSEXP_ALLSQUASH, "all_squash", "no_all_squash" },
|
|
|
5fd2c0 |
diff -up nfs-utils-1.3.0/utils/exportfs/exportfs.c.orig nfs-utils-1.3.0/utils/exportfs/exportfs.c
|
|
|
5fd2c0 |
--- nfs-utils-1.3.0/utils/exportfs/exportfs.c.orig 2018-07-10 13:49:12.960210562 -0400
|
|
|
5fd2c0 |
+++ nfs-utils-1.3.0/utils/exportfs/exportfs.c 2018-07-10 13:50:44.058806122 -0400
|
|
|
5fd2c0 |
@@ -756,10 +756,6 @@ dump(int verbose, int export_format)
|
|
|
5fd2c0 |
continue;
|
|
|
5fd2c0 |
}
|
|
|
5fd2c0 |
c = '(';
|
|
|
5fd2c0 |
- if (ep->e_flags & NFSEXP_READONLY)
|
|
|
5fd2c0 |
- c = dumpopt(c, "ro");
|
|
|
5fd2c0 |
- else
|
|
|
5fd2c0 |
- c = dumpopt(c, "rw");
|
|
|
5fd2c0 |
if (ep->e_flags & NFSEXP_ASYNC)
|
|
|
5fd2c0 |
c = dumpopt(c, "async");
|
|
|
5fd2c0 |
else
|