]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: Make pull and push op use sparse read 2137/head
authorHaomai Wang <haomaiwang@gmail.com>
Tue, 22 Jul 2014 03:27:02 +0000 (11:27 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Mon, 15 Dec 2014 15:05:25 +0000 (23:05 +0800)
commitb5381c22a7b0d8d4c14cd8feb3a115f7d80d5d81
tree7c5d60b21bea9a272d7dcc5494331bdf730f6805
parent53fe29611d2248b04c197afdc8ca5fbb60324853
ReplicatedPG: Make pull and push op use sparse read

If user enable fiemap feature in osd side, there exists three ways to make
read/write sprase:

1. normal sparse read/write op
2. clone op
3. recover op

If any op doesn't support sparse way, it will destroy the advantage of this
way and write zero hole to sparse file. Now clone op can support sparse write,
this commit implement sparse read/write for recover op.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/osd/ReplicatedPG.cc