mirage / ocaml-vhd

Read and write .vhd format data
Other
9 stars 20 forks source link

retry if lseek(2) doesn't support SEEK_DATA or SEEK_HOLE #34

Closed lindig closed 8 years ago

lindig commented 8 years ago

This PR tries to improve https://github.com/djs55/ocaml-vhd/pull/33. Improvement are:

I'd like to mention remarks from an internal discussion on the design in general:

Signed-off-by: Christian Lindig christian.lindig@citrix.com

lesserevil commented 8 years ago

Yes, this is much better. Thank you!

lindig commented 8 years ago

My patch contains a bug: c_ret = lseek(c_fd, c_ofs, SEEK_END) must use 0 rather than c_ofs. I'm preparing a new one after having verified this.

lindig commented 8 years ago

I'm closing this in favour of a corrected pull request: https://github.com/djs55/ocaml-vhd/pull/35