Closed jonludlam closed 6 years ago
@gaborigloi - use_unbuffered
is definitely set by the time we use it: we're using the same function to open the source VDI, and that was already opened O_DIRECT before this change.
OK, alll squashed and commit msg updated.
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.
Signed-off-by: Jon Ludlam jonathan.ludlam@citrix.com