qemu-e2k/block
Stefan Hajnoczi 4899d10d14 raw-posix: Use pread/pwrite instead of lseek+read/write
This patch combines the lseek+read/write calls to use pread/pwrite
instead.  This will result in fewer system calls and is already used by
AIO.

Thanks to Jan Kiszka <jan.kiszka@siemens.com> for identifying excessive
lseek and Christoph Hellwig <hch@lst.de> for confirming that this
approach should work.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-05-03 10:07:31 +02:00
..
blkdebug.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
bochs.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
cloop.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
cow.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
curl.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
dmg.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
nbd.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
parallels.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
qcow.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
qcow2-cluster.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
qcow2-refcount.c qcow2: Avoid shadowing variable in alloc_clusters_noref() 2010-05-03 10:07:31 +02:00
qcow2-snapshot.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
qcow2.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
qcow2.h block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
raw-posix-aio.h Remove aio_ctx from paio_* interface 2009-10-30 08:39:34 -05:00
raw-posix.c raw-posix: Use pread/pwrite instead of lseek+read/write 2010-05-03 10:07:31 +02:00
raw-win32.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
raw.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
vdi.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
vmdk.c vmdk: Convert to bdrv_open 2010-05-03 10:07:31 +02:00
vpc.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00
vvfat.c block: Open the underlying image file in generic code 2010-05-03 10:07:30 +02:00