]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
rpc.idmapd should tell the user more verbosely if Dnotify
authorLukas Hejtmanek <xhejtman@ics.muni.cz>
Wed, 18 Feb 2009 12:48:11 +0000 (07:48 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 18 Feb 2009 12:48:11 +0000 (07:48 -0500)
support is missing in kernel.

Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/idmapd/idmapd.c

index 6b5971cad526aa86e472937f8af9492fb323fb45..c1cf4eb40e09471a5ff3c58141b2bb276c3881c5 100644 (file)
@@ -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 */