gssd: ignore pipe directories that do not exist
Subsystems (2)
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
Signed-off-by Steve Dickson <[email protected]>
--- utils/gssd/gssd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
utils/gssd/gssd.c +3 -2
@@ -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