pub fn overlayfs_set_fd(
fs_fd: BorrowedFd<'_>,
key: &str,
fd: BorrowedFd<'_>,
) -> Result<()>Expand description
Sets one of the “dir” mount options on an overlayfs to the given file descriptor.
On RHEL9 kernels, file descriptors cannot be set directly, so this implementation
uses fsconfig_set_string() with a /proc/self/fd/ path instead.