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 f8e049c commit 74f0f38
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/devices/src/virtio/fs/macos/passthrough.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,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 74f0f38

Please sign in to comment.