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