mount_at

Function mount_at 

Source
pub fn mount_at(
    fs_fd: impl AsFd,
    dirfd: impl AsFd,
    path: impl Arg,
) -> Result<()>
Expand description

Moves a mounted filesystem to a target location.

§Arguments

  • fs_fd - File descriptor for the mounted filesystem (from fsmount())
  • dirfd - Directory file descriptor for the target mount point
  • path - Path relative to dirfd where the filesystem should be mounted

§Returns

Returns Ok(()) on success, or an error if the mount operation fails.