]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore:Round offset of fiemap down aligned with CEPH_PAGE_SIZE. 2591/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 13 Oct 2014 05:33:38 +0000 (13:33 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 13 Oct 2014 05:33:38 +0000 (13:33 +0800)
commit229a6dfe7dc28c16773aa6d78c9666276eb0ccb0
tree27c0585c26324d0a9a6a8931f0b8964f8b915771
parent86ebaf6a790c9c6fa9d28290049b61a8626d234a
FileStore:Round offset of fiemap down aligned with CEPH_PAGE_SIZE.

There is a bug on xfs about fiemap. If offset unsigned, the result of
fiemap will leak some data.
Kernel commit eedf32bfcace7d8e20cc66757d74fc68f3439ff7 fix this bug.
To avoid this bug on kernel which don't apply this commit, in ceph we
make the offset down aligned with CEPH_PAGE_SIZE.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/GenericFileStoreBackend.cc