summaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2022-03-12 11:09:34 +0100
committerIlya Dryomov <idryomov@gmail.com>2022-04-25 10:45:15 +0200
commitdc9b0dc4561dedd44b2bf4b8e5ef1a8a040b2424 (patch)
tree2183bd2dd8359afac5ce26eb7cd02bf21c178671 /net/ceph
parentaf2d861d4cd2a4da5137f795ee3509e6f944a25b (diff)
downloadlinux-dc9b0dc4561dedd44b2bf4b8e5ef1a8a040b2424.tar.gz
linux-dc9b0dc4561dedd44b2bf4b8e5ef1a8a040b2424.tar.bz2
linux-dc9b0dc4561dedd44b2bf4b8e5ef1a8a040b2424.zip
libceph: disambiguate cluster/pool full log message
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/osd_client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 1c5815530e0d..83eb97c94e83 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -2385,7 +2385,11 @@ again:
if (ceph_test_opt(osdc->client, ABORT_ON_FULL)) {
err = -ENOSPC;
} else {
- pr_warn_ratelimited("FULL or reached pool quota\n");
+ if (ceph_osdmap_flag(osdc, CEPH_OSDMAP_FULL))
+ pr_warn_ratelimited("cluster is full (osdmap FULL)\n");
+ else
+ pr_warn_ratelimited("pool %lld is full or reached quota\n",
+ req->r_t.base_oloc.pool);
req->r_t.paused = true;
maybe_request_map(osdc);
}