]> git.decadent.org.uk Git - nfs-utils.git/commit
nfsdcld: make it watch for inotify events in the containing directory
authorJeff Layton <jlayton@redhat.com>
Thu, 26 Apr 2012 15:54:37 +0000 (11:54 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 26 Apr 2012 17:25:04 +0000 (13:25 -0400)
commitb9f64af3b83a2916c5b6cd65fe011acc436942d4
tree27806f92cbb5d57712bab81a105f6b81aad6d8d5
parent09d9011c66e518ca7fd01d41607845b940f58c8f
nfsdcld: make it watch for inotify events in the containing directory

Before opening the pipe, set an inotify watch on the containing dir and
then try to open the pipe. If it succeeds, then set up pipe and inotify
events and return success. If it fails with -ENOENT, then just set up
the inotify event and return success. If it fails with any other error
then return the error and the caller can then abort the program.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
configure.ac
utils/nfsdcld/nfsdcld.c