]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore: Fix _do_sparse_copy_range don't truncate zero sections
authorHaomai Wang <haomaiwang@gmail.com>
Tue, 25 Nov 2014 05:44:43 +0000 (13:44 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Fri, 5 Dec 2014 17:47:57 +0000 (01:47 +0800)
commitcabb57a23a736b031ddb015ac99084dc3ca6ac16
treeebb116e7dc3b7b5b6f70b6c20805d550d0e46fb9
parentf1dc51259973dbeb9a20f3793d85cdf46c526430
FileStore: Fix _do_sparse_copy_range don't truncate zero sections

If calling clone_range and zero filled sections is at the ending of src
range, the target fd won't write zero filled sections. If target's
origin size shorter than needed, it will cause inconsistence between
two fd's desired range.

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