From: Patrick Donnelly Date: Thu, 12 Apr 2018 17:14:18 +0000 (-0700) Subject: ceph-fuse: exit with failure on failed mount X-Git-Tag: v13.1.0~249^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7740fcde942603750029322ad2c16c18a7b546ab;p=ceph.git ceph-fuse: exit with failure on failed mount Fixes: https://tracker.ceph.com/issues/23665 Signed-off-by: Patrick Donnelly --- diff --git a/src/ceph_fuse.cc b/src/ceph_fuse.cc index f271239493a..23887db6716 100644 --- a/src/ceph_fuse.cc +++ b/src/ceph_fuse.cc @@ -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; } }