diff options
author | Xiubo Li <xiubli@redhat.com> | 2019-12-11 02:50:12 +0100 |
---|---|---|
committer | Xiubo Li <xiubli@redhat.com> | 2019-12-13 01:42:11 +0100 |
commit | 28ae01af7f42e8709baeeb2e22df720d9cb61e9b (patch) | |
tree | a4d783c37b797f7bdd49a56c77c9d37952e97e23 /src/mount | |
parent | Merge pull request #32025 from tchaikov/wip-pick-address-silence-warning (diff) | |
download | ceph-28ae01af7f42e8709baeeb2e22df720d9cb61e9b.tar.xz ceph-28ae01af7f42e8709baeeb2e22df720d9cb61e9b.zip |
mount.ceph: give a hint message when no mds is up or cluster is laggy
When the cluster is laggy or no MDS is up the mount may time out with
errno == EHOSTUNREACH for the first time to do the mounting, and will
just return the same errno without waiting for the following retries.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Diffstat (limited to 'src/mount')
-rw-r--r-- | src/mount/mount.ceph.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 3a612f3d45d..e970648c59d 100644 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -508,6 +508,9 @@ int main(int argc, char *argv[]) case ENODEV: fprintf(stderr, "mount error: ceph filesystem not supported by the system\n"); break; + case EHOSTUNREACH: + fprintf(stderr, "mount error: no mds server is up or the cluster is laggy\n"); + break; default: fprintf(stderr, "mount error %d = %s\n",errno,strerror(errno)); } |