Commit effcb9ed authored by Sage Weil's avatar Sage Weil

ceph: print useful error message when crush rule not found

Include the crush_ruleset in the error message.
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent a8b763a9
...@@ -1026,8 +1026,9 @@ static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid, ...@@ -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, ruleno = crush_find_rule(osdmap->crush, pool->v.crush_ruleset,
pool->v.type, pool->v.size); pool->v.type, pool->v.size);
if (ruleno < 0) { if (ruleno < 0) {
pr_err("no crush rule pool %d type %d size %d\n", pr_err("no crush rule pool %d ruleset %d type %d size %d\n",
poolid, pool->v.type, pool->v.size); poolid, pool->v.crush_ruleset, pool->v.type,
pool->v.size);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment