Skip to content

Commit 28b8d9d

Browse files
committed
do-not-merge: checks should fail as musl should break
Signed-off-by: Fabiano Fidêncio <[email protected]>
1 parent c10b5c3 commit 28b8d9d

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)