summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-07-09 11:00:08 -0700
committerSage Weil <sage@newdream.net>2010-08-01 20:11:42 -0700
commiteffcb9ed43d16db27ae5837d93879e067e902151 (patch)
treebbcc99baff812d42a3bbaaa6a33a95ee3709e893 /fs/ceph
parenta8b763a9b34561fea8e616c1439a71913ff2c1bd (diff)
downloadop-kernel-dev-effcb9ed43d16db27ae5837d93879e067e902151.zip
op-kernel-dev-effcb9ed43d16db27ae5837d93879e067e902151.tar.gz
ceph: print useful error message when crush rule not found
Include the crush_ruleset in the error message. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/osdmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ceph/osdmap.c b/fs/ceph/osdmap.c
index 46b391d..1d5f58c 100644
--- a/fs/ceph/osdmap.c
+++ b/fs/ceph/osdmap.c
@@ -1026,8 +1026,9 @@ static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid,
ruleno = crush_find_rule(osdmap->crush, pool->v.crush_ruleset,
pool->v.type, pool->v.size);
if (ruleno < 0) {
- pr_err("no crush rule pool %d type %d size %d\n",
- poolid, pool->v.type, pool->v.size);
+ pr_err("no crush rule pool %d ruleset %d type %d size %d\n",
+ poolid, pool->v.crush_ruleset, pool->v.type,
+ pool->v.size);
return NULL;
}
OpenPOWER on IntegriCloud