mounttree

package
v26.0.0-rc1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SwitchRoot

func SwitchRoot(path string) error

SwitchRoot changes path to be the root of the mount tree and changes the current working directory to the new root.

This function bind-mounts onto path; it is the caller's responsibility to set the desired propagation mode of path's parent mount beforehand to prevent unwanted propagation into different mount namespaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL