Skip to content

Commit

Permalink
Increase nix dependency lower bound to 0.27.1
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Nov 14, 2023
1 parent 0178ce6 commit 7bb59c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude = [".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile"]

[dependencies]
bitflags = "2.3.3"
nix = "0.26.0"
nix = {version = "0.27.1", features=["fs", "ioctl", "mount"]}
env_logger="0.10.0"
semver = "1.0.0"
serde = "1.0.60"
Expand Down
3 changes: 1 addition & 2 deletions src/testing/loopbacked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use std::{
fs::OpenOptions,
io::{self, Seek, SeekFrom, Write},
os::unix::io::AsRawFd,
panic,
path::{Path, PathBuf},
};
Expand Down Expand Up @@ -100,7 +99,7 @@ fn get_devices(count: u8, dir: &TempDir) -> Vec<LoopTestDev> {
.open(&path)
.unwrap();

nix::unistd::ftruncate(f.as_raw_fd(), IEC::Gi as nix::libc::off_t).unwrap();
nix::unistd::ftruncate(&f, IEC::Gi as nix::libc::off_t).unwrap();
f.sync_all().unwrap();

let ltd = LoopTestDev::new(&lc, &path);
Expand Down

0 comments on commit 7bb59c4

Please sign in to comment.