summaryrefslogtreecommitdiffstats
path: root/utils/idmapd
diff options
context:
space:
mode:
authorLukas Hejtmanek <xhejtman@ics.muni.cz>2009-02-18 07:48:11 -0500
committerSteve Dickson <steved@redhat.com>2009-02-18 07:48:11 -0500
commit35001db4aaafa8a17e13b8c13cf74508d4a93f2f (patch)
treea815081e6efc7658083990a310df94762eef766b /utils/idmapd
parent4f15bd6e3ebfebef16c1db61b28a98863c36cb81 (diff)
downloadnfs-utils-35001db4aaafa8a17e13b8c13cf74508d4a93f2f.tar.gz
nfs-utils-35001db4aaafa8a17e13b8c13cf74508d4a93f2f.tar.xz
nfs-utils-35001db4aaafa8a17e13b8c13cf74508d4a93f2f.zip
rpc.idmapd should tell the user more verbosely if Dnotify
support is missing in kernel. Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/idmapd')
-rw-r--r--utils/idmapd/idmapd.c6
1 files changed, 4 insertions, 2 deletions
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 */