diff --git a/lib/src/blockdev.rs b/lib/src/blockdev.rs index a984a032..f6683e3e 100644 --- a/lib/src/blockdev.rs +++ b/lib/src/blockdev.rs @@ -84,7 +84,7 @@ impl LoopbackDevice { // Create a new loopback block device targeting the provided file path. pub(crate) fn new(path: &Path) -> Result { let dev = Task::new("losetup", "losetup") - .args(["--show", "-P", "--find"]) + .args(["--show", "--direct-io=on", "-P", "--find"]) .arg(path) .quiet() .read()?;