summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Jeffery <djeffery@redhat.com>2013-01-16 15:21:55 -0500
committerSteve Dickson <steved@redhat.com>2013-01-16 15:33:17 -0500
commit5ac9bcfd820f09af4d3f87f1f7346d896f70bc9a (patch)
tree81d2ca7cddc046dbb7f1577e7705bf9a82072cc9
parent96892b29a50af1055bfc3ca74930e9782ead6c71 (diff)
downloadnfs-utils-5ac9bcfd820f09af4d3f87f1f7346d896f70bc9a.zip
nfs-utils-5ac9bcfd820f09af4d3f87f1f7346d896f70bc9a.tar.gz
nfs-utils-5ac9bcfd820f09af4d3f87f1f7346d896f70bc9a.tar.xz
rpc.idmapd: Ignore open failures in dirscancb()
From: David Jeffery <djeffery@redhat.com> The daemon "rpc.idmapd" scans the /var/lib/nfs/rpc_pipefs/nfs/ directory periodically looking for NFS client mounts to communicate to. The daemon tried to open communication with a client mount but it disappeared in between looking for directory entries and opening them. NFS mount was umounted just before rpc.idmapd tried to communicate with it. This behavior is usually seen when autofs is configured on the system. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/idmapd/idmapd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c
index 9d66225..beba9c4 100644
--- a/utils/idmapd/idmapd.c
+++ b/utils/idmapd/idmapd.c
@@ -424,7 +424,8 @@ dirscancb(int UNUSED(fd), short UNUSED(which), void *data)
pipefsdir, ents[i]->d_name);
if ((ic->ic_dirfd = open(path, O_RDONLY, 0)) == -1) {
- xlog_warn("dirscancb: open(%s): %s", path, strerror(errno));
+ if (verbose > 0)
+ xlog_warn("dirscancb: open(%s): %s", path, strerror(errno));
free(ic);
goto out;
}