From: Lukas Hejtmanek Date: Wed, 18 Feb 2009 12:48:11 +0000 (-0500) Subject: rpc.idmapd should tell the user more verbosely if Dnotify X-Git-Tag: nfs-utils-1-1-5~19 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=35001db4aaafa8a17e13b8c13cf74508d4a93f2f;p=nfs-utils.git rpc.idmapd should tell the user more verbosely if Dnotify support is missing in kernel. Signed-off-by: Lukas Hejtmanek Signed-off-by: Steve Dickson --- diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c index 6b5971c..c1cf4eb 100644 --- a/utils/idmapd/idmapd.c +++ b/utils/idmapd/idmapd.c @@ -342,9 +342,11 @@ main(int argc, char **argv) xlog_err("main: fcntl(%s): %s", pipefsdir, strerror(errno)); if (fcntl(fd, F_NOTIFY, - DN_CREATE | DN_DELETE | DN_MODIFY | DN_MULTISHOT) == -1) + DN_CREATE | DN_DELETE | DN_MODIFY | DN_MULTISHOT) == -1) { xlog_err("main: fcntl(%s): %s", pipefsdir, strerror(errno)); - + if (errno == EINVAL) + xlog_err("main: Possibly no Dnotify support in kernel."); + } TAILQ_INIT(&icq); /* These events are persistent */