Skip to content

Commit 074b60b

Browse files
committed
Revert "shim/loop-dev: fix variable undefined error for musl"
This reverts commit d8f2855.
1 parent e287c4d commit 074b60b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

crates/shim/src/mount_linux.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -813,21 +813,6 @@ pub fn setup_loop_dev(backing_file: &str, loop_dev: &str, params: &LoopParams) -
813813
&info,
814814
);
815815
#[cfg(target_env = "musl")]
816-
let ret = libc::ioctl(
817-
loop_dev.as_raw_fd() as libc::c_int,
818-
LOOP_SET_STATUS64 as libc::c_int,
819-
&info,
820-
);
821-
#[cfg(target_env = "gnu")]
822-
if let Err(e) = nix::errno::Errno::result(ret) {
823-
libc::ioctl(
824-
loop_dev.as_raw_fd() as libc::c_int,
825-
LOOP_CLR_FD as libc::c_ulong,
826-
0,
827-
);
828-
return Err(Error::Nix(e));
829-
}
830-
#[cfg(target_env = "musl")]
831816
if let Err(e) = nix::errno::Errno::result(ret) {
832817
libc::ioctl(
833818
loop_dev.as_raw_fd() as libc::c_int,

0 commit comments

Comments
 (0)