MCPcopy Create free account
hub / github.com/bootc-dev/bootc / sysroot_fd

Function sysroot_fd

crates/lib/src/utils.rs:36–38  ·  view source on GitHub ↗
(sysroot: &ostree::Sysroot)

Source from the content-addressed store, hash-verified

34// Access the file descriptor for a sysroot
35#[allow(unsafe_code)]
36pub(crate) fn sysroot_fd(sysroot: &ostree::Sysroot) -> BorrowedFd<'_> {
37 unsafe { BorrowedFd::borrow_raw(sysroot.fd()) }
38}
39
40// Return a cap-std `Dir` type for a sysroot
41pub(crate) fn sysroot_dir(sysroot: &ostree::Sysroot) -> Result<Dir> {

Callers 2

sysroot_dirFunction · 0.70
deployment_fdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected