• E
    iotests: New test 223 for exporting dirty bitmap over NBD · a1532a22
    Eric Blake 提交于
    Although this test is NOT a full test of image fleecing (as it
    intentionally uses just a single block device directly exported
    over NBD, rather than trying to set up a blockdev-backup job with
    multiple BDS involved), it DOES prove that qemu as a server is
    able to properly expose a dirty bitmap over NBD.
    
    When coupled with image fleecing, it is then possible for a
    third-party client to do an incremental backup by using
    qemu-img map with the x-dirty-bitmap option to learn which parts
    of the file are dirty (perhaps confusingly, they are the portions
    mapped as "data":false - which is part of the reason this is
    still in the x- experimental namespace), along with another
    normal client (perhaps 'qemu-nbd -c' to expose the server over
    /dev/nbd0 and then just use normal I/O on that block device) to
    read the dirty sections.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Message-Id: <20180702191458.28741-3-eblake@redhat.com>
    Tested-by: NJohn Snow <jsnow@redhat.com>
    Reviewed-by: NJohn Snow <jsnow@redhat.com>
    a1532a22
223 3.7 KB