Skip to contentSkip to conversation

gssd: ignore pipe directories that do not exist

PATCH New Steve Dickson 1 participant 1 message Mar 19, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gssd: ignore pipe directories that do not exist

Back when commit aba5ea5c and commit 55197c98 happen that replaced dnotify with inotify the ignoring of non-existent upcall directories got dropped. The patch adds it back and stops following error log

ERROR: inotify_add_watch failed for nfs/clntXX:
No such file or directory

---
 utils/gssd/gssd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
utils/gssd/gssd.c +3 -2
index e7cb07f..7ba27b1 100644
@@ -400,8 +400,9 @@ gssd_get_clnt(struct topdir *tdi, const char *name)
 
 	clp->wd = inotify_add_watch(inotify_fd, clp->relpath, IN_CREATE | IN_DELETE);
 	if (clp->wd < 0) {
-		printerr(0, "ERROR: inotify_add_watch failed for %s: %s\n",
-			 clp->relpath, strerror(errno));
+		if (errno != ENOENT)
+			printerr(0, "ERROR: inotify_add_watch failed for %s: %s\n",
+			 	clp->relpath, strerror(errno));
 		goto out;
 	}
 
Signature · 1 line
2.5.0