Skip to content
  • Fam Zheng's avatar
    e5b43573
    mirror: Rewrite mirror_iteration · e5b43573
    Fam Zheng authored
    
    
    The "pnum < nb_sectors" condition in deciding whether to actually copy
    data is unnecessarily strict, and the qiov initialization is
    unnecessarily for bdrv_aio_write_zeroes and bdrv_aio_discard.
    
    Rewrite mirror_iteration to fix both flaws.
    
    The output of iotests 109 is updated because we now report the offset
    and len slightly differently in mirroring progress.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Message-id: 1454637630-10585-2-git-send-email-famz@redhat.com
    Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
    e5b43573
    mirror: Rewrite mirror_iteration
    Fam Zheng authored
    
    
    The "pnum < nb_sectors" condition in deciding whether to actually copy
    data is unnecessarily strict, and the qiov initialization is
    unnecessarily for bdrv_aio_write_zeroes and bdrv_aio_discard.
    
    Rewrite mirror_iteration to fix both flaws.
    
    The output of iotests 109 is updated because we now report the offset
    and len slightly differently in mirroring progress.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Message-id: 1454637630-10585-2-git-send-email-famz@redhat.com
    Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
Loading