Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librbd/object_map: fix diff from snapshot when image is grown
Commit 399a45e ("librbd/object_map: rbd diff between two snapshots lists entire image content") fixed most of the damage caused by commit b81cd24 ("librbd/object_map: diff state machine should track object existence"), but the case of a "resize diff" when diffing from snapshot was missed. An area that was freshly allocated in image resize is the same in principle as a freshly created image and objects marked OBJECT_EXISTS_CLEAN are no exception. Diff for such objects in such an area should be set to DIFF_STATE_DATA_UPDATED, however currently when diffing from snapshot, it's set to DIFF_STATE_DATA. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
- Loading branch information
Showing
3 changed files
with
305 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters