Skip to content

quincy: librbd: diff-iterate shouldn't crash on an empty byte range - #58210

Merged
yuriw merged 3 commits into
ceph:quincyfrom
idryomov:wip-66418-quincy
Jul 12, 2024
Merged

yuriw merged 3 commits into
ceph:quincyfrom
idryomov:wip-66418-quincy

Conversation

@idryomov

Copy link
Copy Markdown
Contributor

idryomov added 3 commits June 23, 2024 12:32
A non-empty byte range is required by both last_period_off calculation
and Striper::file_to_extents().

Signed-off-by: Ilya Dryomov <[email protected]>
(cherry picked from commit 6b5f008)
Commit 0b5ba5f ("librbd/object_map: add support for ranged
diff-iterate") introduced a regression for the case when whole_object
parameter is set to true.  Despite DiffRequest being called into and
another DiffIterate potentially being spawned recursively, an empty
byte range previously happened to make it.

Bail on an empty byte range early just like we have always done on an
empty snap id range (i.e. when start and end versions are the same).

Fixes: https://tracker.ceph.com/issues/66418
Signed-off-by: Ilya Dryomov <[email protected]>
(cherry picked from commit a3441a7)
@idryomov idryomov added this to the v17.2.8 milestone Jun 23, 2024
@idryomov
idryomov requested a review from a team as a code owner June 23, 2024 10:40
@idryomov

Copy link
Copy Markdown
Contributor Author

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants