@@ -905,8 +905,11 @@ static struct dentry *ceph_real_mount(struct ceph_fs_client *fsc,
fsc->mount_options->server_path + 1 : "";
err = __ceph_open_session(fsc->client, started);
- if (err < 0)
+ if (err < 0) {
+ errorfc(fc, "mount joining the ceph cluster fail %d",
+ err);
goto out;
+ }
/* setup fscache */
if (fsc->mount_options->flags & CEPH_MOUNT_OPT_FSCACHE) {
@@ -922,6 +925,8 @@ static struct dentry *ceph_real_mount(struct ceph_fs_client *fsc,
root = open_root_dentry(fsc, path, started);
if (IS_ERR(root)) {
err = PTR_ERR(root);
+ errorfc(fc, "mount opening the root directory fail %d",
+ err);
goto out;
}
fsc->sb->s_root = dget(root);
@@ -1079,7 +1084,7 @@ static int ceph_get_tree(struct fs_context *fc)
out_splat:
if (!ceph_mdsmap_is_cluster_available(fsc->mdsc->mdsmap)) {
- pr_info("No mds server is up or the cluster is laggy\n");
+ errorfc(fc, "No mds server is up or the cluster is laggy");
err = -EHOSTUNREACH;
}