]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FuseStore: fix mountpoint leak 7395/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 28 Jan 2016 09:59:27 +0000 (17:59 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jan 2016 02:26:15 +0000 (10:26 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/FuseStore.cc

index b23b59d9b907b8eca884c94285c55b7fc096a066..12094b4bdde939f689a24a39e19c48a1032ddd11 100644 (file)
@@ -1073,6 +1073,7 @@ int FuseStore::start()
   info->f = fuse_new(info->ch, &info->args, &fs_oper, sizeof(fs_oper),
                     (void*)this);
   if (!info->f) {
+    fuse_unmount(info->mountpoint, info->ch);
     derr << __func__ << " fuse_new failed" << dendl;
     return -EIO;
   }