Description of problem: Create an "rbd export-diff" of a snapshot that includes newly discarded regions. When running "rbd import-diff", it will issue discards via the librbd API, but the librbd API will incorrectly prune the extents of the discard to align against 64KiB boundaries (by default). This might result in an unexpected difference between the two images even though a discard should not be assumed to actually free disk space and zero it. Version-Release number of selected component (if applicable): 4.0 + 5.0 How reproducible: 100% Steps to Reproduce: 1. Export an image snapshot diff that includes unaligned (64KiB) discards using a pre-RHCS 4 client. 2. Attempt to import the snapshot diff using an RHCS 4+ client that now ignores unaligned discards Actual results: The unaligned discarded region will be be discarded in the import-diff destination image. Expected results: The unaligned discarded regions should be zeroed since users might be attempting to verify proper import/export via checksums -- which will fail if the images don't exactly match. Additional info:
Working as expected, hence marking this bug as verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 4.1 Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4144