void Striper::file_to_extents(CephContext *cct, const char *object_format,
- ceph_file_layout *layout,
+ const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
vector<ObjectExtent>& extents,
uint64_t buffer_offset)
}
void Striper::file_to_extents(CephContext *cct, const char *object_format,
- ceph_file_layout *layout,
+ const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
map<object_t,vector<ObjectExtent> >& object_extents,
uint64_t buffer_offset)
}
}
-uint64_t Striper::object_truncate_size(CephContext *cct, ceph_file_layout *layout,
+uint64_t Striper::object_truncate_size(CephContext *cct, const ceph_file_layout *layout,
uint64_t objectno, uint64_t trunc_size)
{
uint64_t obj_trunc_size;
* ranges in objects on (primary) osds)
*/
static void file_to_extents(CephContext *cct, const char *object_format,
- ceph_file_layout *layout,
+ const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
map<object_t, vector<ObjectExtent> >& extents,
uint64_t buffer_offset=0);
static void file_to_extents(CephContext *cct, const char *object_format,
- ceph_file_layout *layout,
+ const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
vector<ObjectExtent>& extents,
uint64_t buffer_offset=0);
static void file_to_extents(CephContext *cct, inodeno_t ino,
- ceph_file_layout *layout,
+ const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
vector<ObjectExtent>& extents) {
// generate prefix/format
uint64_t objectno, uint64_t off, uint64_t len,
vector<pair<uint64_t, uint64_t> >& extents);
- static uint64_t object_truncate_size(CephContext *cct, ceph_file_layout *layout,
+ static uint64_t object_truncate_size(CephContext *cct, const ceph_file_layout *layout,
uint64_t objectno, uint64_t trunc_size);
/*