]> 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)
committerMykola Golub <mgolub@suse.com>
Tue, 19 Jun 2018 13:27:21 +0000 (16:27 +0300)
commitd1122573b8c6a69857004d042cc75e9581deebda
treed7ccdce17c67db73703ad340cdff82bdeb946281
parentd3d730ce0f9f7f287e4b60cface66e9d9fb6882e
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>
src/librbd/deep_copy/ObjectCopyRequest.cc