]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: add LengthModifiedDiscardJournalAppendEnabled test
authorIlya Dryomov <idryomov@gmail.com>
Thu, 16 Feb 2023 11:51:04 +0000 (12:51 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 3 Mar 2023 18:12:11 +0000 (19:12 +0100)
commita769eef5d8d2921e1da7a6445b0746fc85b1b674
treea25ff19f0e4ca5bc06691993146b99e092b18978
parentba6c6d5fa8c5dea3959cbe55c4662f5adea5a30c
test/librbd: add LengthModifiedDiscardJournalAppendEnabled test

Currently nothing triggers the length_modified case in
ImageDiscardRequest::prune_object_extents() in isolation. It's only
triggered in DiscardGranularityJournalAppendEnabled test together with
the prune_required case and a bad refactoring could easily break the
length_modified logic again.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 34e59c450298e1c05f07570f74a9489bd8479a44)

Conflicts:
src/test/librbd/io/test_mock_ImageRequest.cc [ commit
  b9a2384cdc43 ("librbd: propagate area down to
  file_to_extents()") not in quincy ]
src/test/librbd/io/test_mock_ImageRequest.cc