]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc: re-calculate truncate_size for strip objects
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 20 Jun 2013 07:50:18 +0000 (15:50 +0800)
committerSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 19:26:30 +0000 (12:26 -0700)
commit714f2128bd449055ad03d850d3db03a2748e3b4a
treec09435224105952ebf6ba74e54840ae0478e660c
parentc8af85d45102a43f2101f3ba9ddf446c611767d2
osdc: re-calculate truncate_size for strip objects

Feed truncate_size through the striping algorithm so that it reflects the
correct per-object offset (as opposed to the file offset).

Fixes #5380
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
13 files changed:
src/client/Client.cc
src/librbd/ImageCtx.cc
src/librbd/internal.cc
src/osd/osd_types.h
src/osdc/Filer.cc
src/osdc/Filer.h
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h
src/osdc/Objecter.h
src/osdc/Striper.cc
src/osdc/Striper.h
src/test/osdc/object_cacher_stress.cc
src/test/test_striper.cc