qemu-e2k/block
Eric Farman c4c41a0a65 block: get max_transfer limit for char (scsi-generic) devices
We can get the maximum number of bytes for a single I/O transfer
from the BLKSECTGET ioctl, but we only perform this for block
devices.  scsi-generic devices are represented as character devices,
and so do not issue this today.  Update this, so that virtio-scsi
devices using the scsi-generic interface can return the same data.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Message-Id: <20170120162527.66075-4-farman@linux.vnet.ibm.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-01-27 18:07:31 +01:00
..
accounting.c
archipelago.c
backup.c blockjob: refactor backup_start as backup_job_create 2016-11-14 22:47:34 -05:00
blkdebug.c blkdebug: Implement bdrv_co_preadv/pwritev/flush 2017-01-09 13:30:52 +01:00
blkreplay.c
blkverify.c blkverify: Implement bdrv_co_preadv/pwritev/flush 2017-01-09 13:30:52 +01:00
block-backend.c block-backend: Always notify on blk_eject 2016-11-14 11:15:54 -05:00
bochs.c
cloop.c
commit.c blockjob: add block_job_start 2016-11-14 22:47:34 -05:00
crypto.c
curl.c aio: add AioPollFn and io_poll() interface 2017-01-03 16:38:48 +00:00
dirty-bitmap.c block: More operations for meta dirty bitmap 2016-10-24 17:56:07 +02:00
dmg-bz2.c dmg: Move libbz2 code to dmg-bz2.so 2016-10-07 14:14:06 +02:00
dmg.c dmg: Move libbz2 code to dmg-bz2.so 2016-10-07 14:14:06 +02:00
dmg.h dmg: Move libbz2 code to dmg-bz2.so 2016-10-07 14:14:06 +02:00
file-posix.c block: get max_transfer limit for char (scsi-generic) devices 2017-01-27 18:07:31 +01:00
file-win32.c block: Rename raw-{posix,win32} to file-*.c 2017-01-09 13:30:53 +01:00
gluster.c block: Rename raw-{posix,win32} to file-*.c 2017-01-09 13:30:53 +01:00
io.c block: get rid of bdrv_io_unplugged_begin/end 2017-01-16 13:25:17 +00:00
iscsi.c block/iscsi: avoid data corruption with cache=writeback 2017-01-27 18:07:31 +01:00
linux-aio.c linux-aio: poll ring for completions 2017-01-03 16:38:48 +00:00
Makefile.objs block: Rename raw-{posix,win32} to file-*.c 2017-01-09 13:30:53 +01:00
mirror.c mirror: do not flush every time the disks are synced 2016-11-14 22:49:26 -05:00
nbd-client.c aio: add AioPollFn and io_poll() interface 2017-01-03 16:38:48 +00:00
nbd-client.h nbd: Implement NBD_CMD_WRITE_ZEROES on client 2016-11-02 09:28:56 +01:00
nbd.c block/nbd: Fix the leaked visitor 2016-11-11 15:54:55 +01:00
nfs.c aio: add AioPollFn and io_poll() interface 2017-01-03 16:38:48 +00:00
null.c
parallels.c
qapi.c qapi: rename QmpOutputVisitor to QObjectOutputVisitor 2016-10-25 16:25:54 +02:00
qcow2-cache.c qcow2: Remove stale comment 2016-11-25 13:51:30 +01:00
qcow2-cluster.c qcow2: Support BDRV_REQ_MAY_UNMAP 2016-10-24 17:54:03 +02:00
qcow2-refcount.c
qcow2-snapshot.c
qcow2.c qcow2: Don't strand clusters near 2G intervals during commit 2016-12-06 15:37:02 +01:00
qcow2.h qcow2: Remove stale FIXME comment 2016-11-11 15:54:55 +01:00
qcow.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c block: introduce BDRV_POLL_WHILE 2016-10-28 21:50:18 +08:00
qed.c qed: Implement .bdrv_drain 2016-10-28 21:50:18 +08:00
qed.h
quorum.c quorum: Clean up quorum_aio_get() 2017-01-09 13:30:52 +01:00
raw-format.c block: Rename raw_bsd to raw-format.c 2017-01-09 13:30:52 +01:00
rbd.c rbd: make the code more readable 2016-11-01 07:55:57 -04:00
replication.c blockjob: refactor backup_start as backup_job_create 2016-11-14 22:47:34 -05:00
sheepdog.c aio: add AioPollFn and io_poll() interface 2017-01-03 16:38:48 +00:00
snapshot.c
ssh.c aio: add AioPollFn and io_poll() interface 2017-01-03 16:38:48 +00:00
stream.c blockjob: add block_job_start 2016-11-14 22:47:34 -05:00
throttle-groups.c throttle: Correct access to wrong BlockBackendPublic structures 2016-10-24 17:54:03 +02:00
trace-events block: Rename raw-{posix,win32} to file-*.c 2017-01-09 13:30:53 +01:00
vdi.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
vhdx-endian.c
vhdx-log.c
vhdx.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
vhdx.h
vmdk.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
vpc.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
vvfat.c migration: disallow migrate_add_blocker during migration 2017-01-24 18:00:30 +00:00
win32-aio.c aio: add AioPollFn and io_poll() interface 2017-01-03 16:38:48 +00:00
write-threshold.c