commit | 16cdf7ce1a53dcab75f5206a89bf98bb907a8b9e | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Wed May 12 16:31:35 2010 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon May 17 10:20:05 2010 +0200 |
tree | 869bb47a2a5083a4246971a9a7efcd216162d71c | |
parent | cd02a24b6112da50816a8021d97a2b26038f7190 [diff] |
dmg: use pread Use pread instead of lseek + read in preparation of using the qemu block API. Note that dmg actually uses the implicit file offset a lot in dmg_open, and we had to replace it with an offset variable. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>