diff options
author | Steve Dickson <steved@redhat.com> | 2021-02-01 17:52:16 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2021-02-02 11:04:47 -0500 |
commit | 43407c5f489f3811ce746a4aeb2c39ef106a4b6f (patch) | |
tree | e78d6370581f3f8dcb9e95fe8cc1e4487cf9eaf0 | |
parent | 9967783fb4c823f0d045e629c419ecd38340d1aa (diff) | |
download | nfs-utils-2-5-3-rc5.tar.gz |
mountd: Add debug processing from nfs.confnfs-utils-2-5-3-rc5
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | nfs.conf | 2 | ||||
-rw-r--r-- | utils/mountd/mountd.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -30,7 +30,7 @@ # udp-port=0 # [mountd] -# debug=0 +# debug="all|auth|call|general|parse" # manage-gids=n # descriptors=0 # port=0 diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 988e51c..a480265 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -684,6 +684,9 @@ read_mount_conf(char **argv) if (s && !state_setup_basedir(argv[0], s)) exit(1); + if ((s = conf_get_str("mountd", "debug")) != NULL) + xlog_sconfig(s, 1); + /* NOTE: following uses "nfsd" section of nfs.conf !!!! */ if (conf_get_bool("nfsd", "udp", NFSCTL_UDPISSET(_rpcprotobits))) NFSCTL_UDPSET(_rpcprotobits); |