summaryrefslogtreecommitdiffstats
path: root/fs/ceph/osdmap.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-05-17 21:31:35 +0200
committerSage Weil <sage@newdream.net>2010-10-21 00:35:36 +0200
commit7669a2c95e502a77f93f27e5449fc93a00d588b6 (patch)
tree4230c625bf5781d1cb3cf6b1e38b2d0ef103234c /fs/ceph/osdmap.h
parentLinux 2.6.36-rc8 (diff)
downloadlinux-7669a2c95e502a77f93f27e5449fc93a00d588b6.tar.xz
linux-7669a2c95e502a77f93f27e5449fc93a00d588b6.zip
ceph: lookup pool in osdmap by name
Implement a pool lookup by name. This will be used by rbd. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to '')
-rw-r--r--fs/ceph/osdmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/osdmap.h b/fs/ceph/osdmap.h
index 970b547e510d..a592b211be39 100644
--- a/fs/ceph/osdmap.h
+++ b/fs/ceph/osdmap.h
@@ -125,4 +125,6 @@ extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, struct ceph_pg pgid,
extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap,
struct ceph_pg pgid);
+extern int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name);
+
#endif