- Stop rpc.nfsd from failing to startup when the network is down (bz
532270)
This commit is contained in:
parent
e9aa86337b
commit
3245f71075
25
nfs-utils-1.2.1-nfsd-bootfail.patch
Normal file
25
nfs-utils-1.2.1-nfsd-bootfail.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
commit 2905358524c0835311501bad04c521479b0525ff
|
||||||
|
Author: Steve Dickson <steved@redhat.com>
|
||||||
|
Date: Thu Nov 12 14:16:12 2009 -0500
|
||||||
|
|
||||||
|
Remove the AI_ADDRCONFIG hint flag to getaddrinfo() when it's
|
||||||
|
call by nfsd to set up the file descriptors that are
|
||||||
|
sent to the kernel. The flag causes the getaddrinfo()
|
||||||
|
to fail, with EAI_NONAME, when there is not a non-loopback
|
||||||
|
network interface configured.
|
||||||
|
|
||||||
|
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||||
|
|
||||||
|
diff --git a/utils/nfsd/nfssvc.c b/utils/nfsd/nfssvc.c
|
||||||
|
index 12d3253..b8028bb 100644
|
||||||
|
--- a/utils/nfsd/nfssvc.c
|
||||||
|
+++ b/utils/nfsd/nfssvc.c
|
||||||
|
@@ -212,7 +212,7 @@ int
|
||||||
|
nfssvc_set_sockets(const int family, const unsigned int protobits,
|
||||||
|
const char *host, const char *port)
|
||||||
|
{
|
||||||
|
- struct addrinfo hints = { .ai_flags = AI_PASSIVE | AI_ADDRCONFIG };
|
||||||
|
+ struct addrinfo hints = { .ai_flags = AI_PASSIVE };
|
||||||
|
|
||||||
|
hints.ai_family = family;
|
||||||
|
|
@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
|
|||||||
Name: nfs-utils
|
Name: nfs-utils
|
||||||
URL: http://sourceforge.net/projects/nfs
|
URL: http://sourceforge.net/projects/nfs
|
||||||
Version: 1.2.1
|
Version: 1.2.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
# group all 32bit related archs
|
# group all 32bit related archs
|
||||||
@ -23,6 +23,7 @@ Patch01: nfs-utils-1.1.0-smnotify-path.patch
|
|||||||
Patch02: nfs-utils-1.1.0-exp-subtree-warn-off.patch
|
Patch02: nfs-utils-1.1.0-exp-subtree-warn-off.patch
|
||||||
|
|
||||||
Patch200: nfs-utils-1.2.0-v4root-rel8.patch
|
Patch200: nfs-utils-1.2.0-v4root-rel8.patch
|
||||||
|
Patch201: nfs-utils-1.2.1-nfsd-bootfail.patch
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Provides: exportfs = %{epoch}:%{version}-%{release}
|
Provides: exportfs = %{epoch}:%{version}-%{release}
|
||||||
@ -75,6 +76,7 @@ This package also contains the mount.nfs and umount.nfs program.
|
|||||||
%patch02 -p1
|
%patch02 -p1
|
||||||
|
|
||||||
%patch200 -p1
|
%patch200 -p1
|
||||||
|
%patch201 -p1
|
||||||
|
|
||||||
# Remove .orig files
|
# Remove .orig files
|
||||||
find . -name "*.orig" | xargs rm -f
|
find . -name "*.orig" | xargs rm -f
|
||||||
@ -246,6 +248,10 @@ fi
|
|||||||
%attr(4755,root,root) /sbin/umount.nfs4
|
%attr(4755,root,root) /sbin/umount.nfs4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 12 2009 Steve Dickson <steved@redhat.com> 1.2.1-3
|
||||||
|
- Stop rpc.nfsd from failing to startup when the network
|
||||||
|
is down (bz 532270)
|
||||||
|
|
||||||
* Wed Nov 11 2009 Steve Dickson <steved@redhat.com> 1.2.1-2
|
* Wed Nov 11 2009 Steve Dickson <steved@redhat.com> 1.2.1-2
|
||||||
- Updated to the latest pseudo root release (rel8).
|
- Updated to the latest pseudo root release (rel8).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user