diff options
author | Sage Weil <sage@newdream.net> | 2009-11-07 00:55:25 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-07 00:55:25 -0500 |
commit | 1654dd0cf5ee1827322aca156af7d96d757201c7 (patch) | |
tree | ba71b1a1e214b929937f02a1794b3d32b8ff1342 /fs/ceph/rados.h | |
parent | cfbbcd24a6bfd794295ee7ad76dfbff40ad6b934 (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.h | 1 |
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 { | |||
84 | __u8 type; /* CEPH_PG_TYPE_* */ | 84 | __u8 type; /* CEPH_PG_TYPE_* */ |
85 | __u8 size; /* number of osds in each pg */ | 85 | __u8 size; /* number of osds in each pg */ |
86 | __u8 crush_ruleset; /* crush placement rule */ | 86 | __u8 crush_ruleset; /* crush placement rule */ |
87 | __u8 object_hash; /* hash mapping object name to ps */ | ||
87 | __le32 pg_num, pgp_num; /* number of pg's */ | 88 | __le32 pg_num, pgp_num; /* number of pg's */ |
88 | __le32 lpg_num, lpgp_num; /* number of localized pg's */ | 89 | __le32 lpg_num, lpgp_num; /* number of localized pg's */ |
89 | __le32 last_change; /* most recent epoch changed */ | 90 | __le32 last_change; /* most recent epoch changed */ |