Skip to content

Commit

Permalink
Merge pull request #375 from cgwalters/direct-io
Browse files Browse the repository at this point in the history
blockdev: Use --direct-io=on for losetup
  • Loading branch information
cgwalters committed Mar 6, 2024
2 parents fdf654e + 61de519 commit 6cc9a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/blockdev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl LoopbackDevice {
// Create a new loopback block device targeting the provided file path.
pub(crate) fn new(path: &Path) -> Result<Self> {
let dev = Task::new("losetup", "losetup")
.args(["--show", "-P", "--find"])
.args(["--show", "--direct-io=on", "-P", "--find"])
.arg(path)
.quiet()
.read()?;
Expand Down

0 comments on commit 6cc9a02

Please sign in to comment.