]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: test dentry invalidation options and fail out if we fail 3681/head
authorGreg Farnum <gfarnum@redhat.com>
Thu, 26 Feb 2015 23:20:11 +0000 (15:20 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 26 Feb 2015 23:24:21 +0000 (15:24 -0800)
commit7ed9640dfe580a6e356564a0ee1485d415d6faa3
tree6a420f42d4dcdcec1ea18645c64015a974df3081
parent694529ae7d0407c5d2f19d8fce8d1a5567bd8042
ceph-fuse: test dentry invalidation options and fail out if we fail

We identify the Linux kernel version and based on that either expect to
be able to invalidate dentries effectively, or expect to be able to remount
the ceph-fuse mountpoint. Test it using the Client functions and callbacks by
spinning off a thread to invoke the test that is separate from the main
FUSE loop.

Most unfortunately, there doesn't seem to be a good interface to tell
FUSE to shut down if we need to do that. See
http://fuse.996288.n3.nabble.com/libfuse-exiting-fuse-session-loop-td10686.html
I tried changing our signal invocation or attempting a simple action on
the mount point but those were ineffectual at terminating the remaining
processes; fusermount actually gets rid of them all.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/ceph_fuse.cc