]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-fuse: exit with failure on failed mount 21396/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 12 Apr 2018 17:14:18 +0000 (10:14 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 12 Apr 2018 19:15:42 +0000 (12:15 -0700)
Fixes: https://tracker.ceph.com/issues/23665
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/ceph_fuse.cc

index f271239493adf6865203d2c4b352990dce3e0f83..23887db671656c782cb29e1319ca204608d28bc1 100644 (file)
@@ -276,9 +276,11 @@ int main(int argc, const char **argv, const char *envp[]) {
         "fuse_require_active_mds");
       r = client->mount(mountpoint, perms, fuse_require_active_mds);
       if (r < 0) {
-        if (r == CEPH_FUSE_NO_MDS_UP)
+        if (r == CEPH_FUSE_NO_MDS_UP) {
           cerr << "ceph-fuse[" << getpid() << "]: probably no MDS server is up?" << std::endl;
+        }
         cerr << "ceph-fuse[" << getpid() << "]: ceph mount failed with " << cpp_strerror(-r) << std::endl;
+        r = EXIT_FAILURE;
         goto out_shutdown;
       }
     }