]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
fuse: Fix cleanup code path on init failure
authorSam Lang <sam.lang@inktank.com>
Wed, 2 Jan 2013 22:07:13 +0000 (16:07 -0600)
committerSam Lang <sam.lang@inktank.com>
Wed, 2 Jan 2013 22:38:28 +0000 (16:38 -0600)
commitd8940d15c330d05c8a198ff7dde16df748938b65
treebb76fd974d86f8497571e67a5257b8fb69726ece
parent9a1cf518883e23d81eee2b30746404eddb6bee87
fuse: Fix cleanup code path on init failure

With the changes from 856f32ab, the cfuse.init call returns
a _positive_ errno, which was getting ignored.  Also, if an
error occurs during cfuse.init(), we need to teardown the client
mount.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/ceph_fuse.cc