diff options
author | NeilBrown <neilb@suse.com> | 2016-11-07 14:13:49 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-11-07 14:13:49 -0500 |
commit | 8f3d12ce1d156b8809dc936d9e452e14e2788b3e (patch) | |
tree | ea3a4ed01414bd84dc1a1753260708ade1f7db8b /support/export/xtab.c | |
parent | 3e2ab78a2cfbc2d11c31ced8d3f538d5aae757f1 (diff) | |
download | nfs-utils-8f3d12ce1d156b8809dc936d9e452e14e2788b3e.tar.gz nfs-utils-8f3d12ce1d156b8809dc936d9e452e14e2788b3e.tar.xz nfs-utils-8f3d12ce1d156b8809dc936d9e452e14e2788b3e.zip |
nfs-server-generator: avoid using external services.
nfs-server-generator is run very early when a lot of services are not
yet started, so it mustn't depend on them. Currently it can try to
use hostname lookup and syslog. Using hostname lookup can cause
errors and when these are logged via syslog, it can cause the
generator to block indefinitely
Hostname-lookup is not needed, as we don't use the host issue,
and sending message to stderr is sufficient for the generator.
Disabling syslog is easy - call a function that sets a static variable.
Disabling hostname lookup requires adding an "ignore_hosts" flags to
export_read and export_d_read().
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/xtab.c')
0 files changed, 0 insertions, 0 deletions