Skip to content

Commit cb3cec4

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 cb3cec4

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

crates/shim/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ path = "examples/windows_log_reader.rs"
2929

3030
[dependencies]
3131
which = "7.0.1"
32-
containerd-shim-protos = { path = "../shim-protos", version = "0.10.0" }
32+
containerd-shim-protos = { path = "../shim-protos", version = "0.9.0" }
3333
go-flag = "0.1.0"
3434
lazy_static = "1.4.0"
3535
sha2 = "0.10.2"

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)