diff options
author | Lukas Hejtmanek <xhejtman@ics.muni.cz> | 2009-02-18 07:48:11 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-02-18 07:48:11 -0500 |
commit | 35001db4aaafa8a17e13b8c13cf74508d4a93f2f (patch) | |
tree | a815081e6efc7658083990a310df94762eef766b /utils/idmapd | |
parent | 4f15bd6e3ebfebef16c1db61b28a98863c36cb81 (diff) | |
download | nfs-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.c | 6 |
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 */ |