cow: use pread/pwrite
commit122bb9e32df488accad35ce6a52c3a2a5c33e4be
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Jun 2010 10:06:28 +0000 (7 12:06 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:59 +0000 (15 09:41 +0200)
treeb7f489428b243d65386b8e8525c66b0708c5d513
parent68dba0bf455e60061bb3c9c40ef0d82916372664
cow: use pread/pwrite

Use pread/pwrite instead of lseek + read/write in preparation of using the
qemu block API.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/cow.c