]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: deep_copy: update end_size only if zero interval caused truncate
authorMykola Golub <mgolub@suse.com>
Tue, 19 Jun 2018 12:05:27 +0000 (15:05 +0300)
committerNathan Cutler <ncutler@suse.com>
Tue, 10 Jul 2018 22:41:53 +0000 (00:41 +0200)
commit8646f8ac3fcb735825397454225248deac3f2c7b
tree2a0f21ad9510124038279b968471380560143841
parent4931993f85db2288d86eb7251ccb4ebc90341a4b
librbd: deep_copy: update end_size only if zero interval caused truncate

The problem shown up when stripping was used, and assembling a
nonexistent destination object from source objects, and one of these
objects existed and snap diff returned a zero interval. The non-zero
end_size in that case triggered invalid object map update.

Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit d1122573b8c6a69857004d042cc75e9581deebda)
src/librbd/deep_copy/ObjectCopyRequest.cc