]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: Split main into init/main/finalize
authorSam Lang <sam.lang@inktank.com>
Thu, 6 Dec 2012 05:21:12 +0000 (23:21 -0600)
committerSage Weil <sage@inktank.com>
Fri, 28 Dec 2012 00:55:27 +0000 (16:55 -0800)
commit856f32ab26432659cfd39e9090dd87b5ef4070b1
treea16f5c62f7a21d0505bb55d8ff2637e4f0f62909
parentaf37cc3a8758ae032519e3da5da973e23a2d1b11
ceph-fuse:  Split main into init/main/finalize

With the invalidate callback enabled for fuse, the Client::unmount
call requires the fuse channel and session objects remain for performing
the invalidate callbacks.  This patch splits the ceph_fuse_ll_main
call into init, main, and finalize functions, so finalization of the
channel and session objects can be done after the unmount completes.

The patch includes cleanup for the code in fuse_ll.cc to make it more
in the style of C++ and make use of the pimpl idiom to hide the fuse
structures within the CephFuse::Handle pimpl class.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/ceph_fuse.cc
src/client/fuse_ll.cc
src/client/fuse_ll.h