]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados/snap_set_diff: ignore truncates above size at start
authorIlya Dryomov <idryomov@gmail.com>
Sun, 18 Feb 2024 10:46:15 +0000 (11:46 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 8 Mar 2024 14:45:44 +0000 (15:45 +0100)
commit5b11fb314abefea390c5663c33e9e1ace6179974
treebeb246681093a9e9f2da0b82481d547fadf0935c
parent435306d9b2931433fe8202a9886b7f63d120de39
librados/snap_set_diff: ignore truncates above size at start

Because currently calc_snap_set_diff() only ever appends to the running
diff, an excessive (either too large or completely bogus) zero extent
is reported in cases where an object is first expanded (with a snapshot
taken at that point) and then truncated but still above the size of the
object as of the starting snapshot.

Fixes: https://tracker.ceph.com/issues/63770
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librados/snap_set_diff.cc
src/test/librbd/io/test_mock_ObjectRequest.cc