summaryrefslogtreecommitdiff
path: root/fs/ceph/rados.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-06 21:55:25 -0800
committerSage Weil <sage@newdream.net>2009-11-06 21:55:25 -0800
commit1654dd0cf5ee1827322aca156af7d96d757201c7 (patch)
treeba71b1a1e214b929937f02a1794b3d32b8ff1342 /fs/ceph/rados.h
parentcfbbcd24a6bfd794295ee7ad76dfbff40ad6b934 (diff)
ceph: make object hash a pg_pool property
The object will be hashed to a placement seed (ps) based on the pg_pool's hash function. This allows new hashes to be introduced into an existing object store, or selection of a hash appropriate to the objects that will be stored in a particular pool. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/rados.h')
-rw-r--r--fs/ceph/rados.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/rados.h b/fs/ceph/rados.h
index 85bdef78d142..fb23ff9297c9 100644
--- a/fs/ceph/rados.h
+++ b/fs/ceph/rados.h
@@ -84,6 +84,7 @@ struct ceph_pg_pool {
__u8 type; /* CEPH_PG_TYPE_* */
__u8 size; /* number of osds in each pg */
__u8 crush_ruleset; /* crush placement rule */
+ __u8 object_hash; /* hash mapping object name to ps */
__le32 pg_num, pgp_num; /* number of pg's */
__le32 lpg_num, lpgp_num; /* number of localized pg's */
__le32 last_change; /* most recent epoch changed */