xapi-project / vhd-tool

Command-line tools for streaming and manipulating vhd format data
Other
8 stars 26 forks source link

CA-280242: Open destination VDI O_DIRECT (as well as source). #50

Closed jonludlam closed 6 years ago

jonludlam commented 6 years ago

Without O_DIRECT we weren't getting IO errors propagated from the sendfile(2) call (not even on close). This was causing us not to notice when copying VDIs to full thinly-provisioned SRs.

Note that the O_DIRECT open is part of the Vhd_format library and is controlled by the 'use_unbuffered' global variable of Vhd_format_lwt.File. See xapi-project/ocaml-vhd for the details.

Signed-off-by: Jon Ludlam jonathan.ludlam@citrix.com