Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
nfs-utils.12300
0002-exportfs-avoid-hostname-lookup-when-new_ca...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-exportfs-avoid-hostname-lookup-when-new_cache-in-use.patch of Package nfs-utils.12300
From 55da4094cbc9c57a7522e4e67253cd4b048cb373 Mon Sep 17 00:00:00 2001 From: NeilBrown <neilb@suse.com> Date: Fri, 14 Oct 2016 14:31:15 +1100 Subject: [PATCH] exportfs: avoid hostname lookup when new_cache in use. In the new_cache scenario (that everyone uses now) exportfs just parsed /etc/exports can copies it to /var/lib/nfs/etab. It doesn't need to validate host name as mountd will do that. Signed-off-by: NeilBrown <neilb@suse.com> --- utils/exportfs/exportfs.c | 7 +++++++ 1 file changed, 7 insertions(+) --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -180,6 +180,13 @@ main(int argc, char **argv) atexit(release_lockfile); if (f_export && ! f_ignore) { + if (new_cache) + /* We don't need canonical hostnames in this case + * as mountd will resolve that. + * Avoiding hostname lookup allows exportfs + * to be reliably run before the network is fully up. + */ + export_avoid_host_lookup(1); export_read(_PATH_EXPORTS); export_d_read(_PATH_EXPORTS_D); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor