]> git.proxmox.com Git - mirror_qemu.git/commit
block: Convert bdrv_discard() to byte-based
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2016 23:22:51 +0000 (17:22 -0600)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 20 Jul 2016 13:11:55 +0000 (14:11 +0100)
commit0c51a893b643bc9393c685b47b9cea1e6831565f
tree9636a6178fd16b1efadc97009c5b600a5d589303
parent9f1963b3f72521f75a549f8afd61b19e7da63c6f
block: Convert bdrv_discard() to byte-based

Another step towards byte-based interfaces everywhere.  Replace
the sector-based bdrv_discard() with a new byte-based
bdrv_pdiscard(), which silently ignores any unaligned head
or tail.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1468624988-423-3-git-send-email-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/block-backend.c
block/io.c
block/qcow2-refcount.c
include/block/block.h