search for: bdrv_sector_size

Displaying 3 results from an estimated 3 matches for "bdrv_sector_size".

2011 Mar 30
0
virtio-blk.c handling of i/o which is not a 512 multiple
...0 / 512). Later on the code, n_sectors is used the calculate the size of the > buffer required but 9 * 512 is too small and so when the request is process it > ends up writing past the end of the buffer and I guest this triggers the glibc > error. We need to validate that (qiov->size % BDRV_SECTOR_SIZE) == 0 and reject invalid requests. > Is there a requirement for virtio-blk guest drivers that all i/o requests are > sized in multiples of 512 bytes? There is no strict requirement according to the virtio specification, but maybe there should be: http://ozlabs.org/~rusty/virtio-spec/virtio...
2011 Mar 30
0
virtio-blk.c handling of i/o which is not a 512 multiple
...0 / 512). Later on the code, n_sectors is used the calculate the size of the > buffer required but 9 * 512 is too small and so when the request is process it > ends up writing past the end of the buffer and I guest this triggers the glibc > error. We need to validate that (qiov->size % BDRV_SECTOR_SIZE) == 0 and reject invalid requests. > Is there a requirement for virtio-blk guest drivers that all i/o requests are > sized in multiples of 512 bytes? There is no strict requirement according to the virtio specification, but maybe there should be: http://ozlabs.org/~rusty/virtio-spec/virtio...
2019 Aug 23
22
cross-project patches: Add NBD Fast Zero support
This is a cover letter to a series of patches being proposed in tandem to four different projects: - nbd: Document a new NBD_CMD_FLAG_FAST_ZERO command flag - qemu: Implement the flag for both clients and server - libnbd: Implement the flag for clients - nbdkit: Implement the flag for servers, including the nbd passthrough client If you want to test the patches together, I've pushed a