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 6b5971c..c1cf4eb 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 */