diff options
author | Sage Weil <sage@newdream.net> | 2008-10-07 00:48:03 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2008-10-07 00:48:03 +0200 |
commit | 45a5eafee01db43879ed8e321a5b0efb27d1f5ed (patch) | |
tree | 83eb9233231127c1df44d59a181d64a984d3b8f8 /src/kernel/osdmap.h | |
parent | crushtool: verify explicit item pos (diff) | |
download | ceph-45a5eafee01db43879ed8e321a5b0efb27d1f5ed.tar.xz ceph-45a5eafee01db43879ed8e321a5b0efb27d1f5ed.zip |
kclient: fix file to object mapping
We ignore cases where the stripe_unit is small, for now, as that will require
passing a stride size back to the caller so that the correctly spaced
pages are used.
Diffstat (limited to '')
-rw-r--r-- | src/kernel/osdmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/osdmap.h b/src/kernel/osdmap.h index 4db3006e63f..41c5b0523ce 100644 --- a/src/kernel/osdmap.h +++ b/src/kernel/osdmap.h @@ -51,9 +51,10 @@ extern void osdmap_destroy(struct ceph_osdmap *map); extern struct ceph_osdmap *osdmap_decode(void **p, void *end); extern void calc_file_object_mapping(struct ceph_file_layout *layout, - loff_t *off, loff_t *len, + __u64 off, __u64 *plen, struct ceph_object *oid, __u64 *oxoff, __u64 *oxlen); + extern void calc_object_layout(struct ceph_object_layout *ol, struct ceph_object *oid, struct ceph_file_layout *fl, |