Skip to content

Commit

Permalink
virtio/fs/macos: drop dead code
Browse files Browse the repository at this point in the history
Drop LinuxDirent64 struct we're no longer using.

Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp committed Sep 11, 2024
1 parent d4f1e50 commit 37ee8fd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/devices/src/virtio/fs/macos/passthrough.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use std::time::Duration;

use crossbeam_channel::{unbounded, Sender};
use hvf::MemoryMapping;
use vm_memory::ByteValued;

use crate::virtio::fs::filesystem::SecContext;

Expand Down Expand Up @@ -68,16 +67,6 @@ struct HandleData {
dirstream: Mutex<DirStream>,
}

#[repr(C, packed)]
#[derive(Clone, Copy, Debug, Default)]
struct LinuxDirent64 {
d_ino: bindings::ino64_t,
d_off: bindings::off64_t,
d_reclen: libc::c_ushort,
d_ty: libc::c_uchar,
}
unsafe impl ByteValued for LinuxDirent64 {}

fn ebadf() -> io::Error {
linux_error(io::Error::from_raw_os_error(libc::EBADF))
}
Expand Down

0 comments on commit 37ee8fd

Please sign in to comment.