Documentation
¶
Index ¶
- Constants
- func CleanUpMountPoint(path string) error
- func CleanUpMountPoints(paths []string) error
- func ExecCmdWithTimeout(name string, args []string) ([]byte, error)
- func ExecMount(sourcePath, targetPath string, args []string) ([]byte, error)
- func ExecMountBind(sourcePath, targetPath string, ReadOnly bool) ([]byte, error)
- func ForceUnmount(path string) error
- func ForceUnmountAndRemove(path string) error
- func GetCmdTimeout() time.Duration
- func GetFileInode(path string) (uint64, error)
- func IsLikelyMountPoint(path string) (bool, error)
- func IsMountPoint(path string) (bool, error)
- func ManualUnmount(path string) error
Constants ¶
View Source
const ( MountCmdName = "mount" UMountCmdName = "umount" MountPointCmdName = "mountpoint" IsNotMountPoint = "is not a mountpoint" IsNotMountPointZhCN = "不是一个挂载点" ErrEndpointNotConnected = "transport endpoint is not connected" TransportEndpointIsNotConnected = "Transport endpoint is not connected" SocketNotConnected = "Socket not connected" TransportEndpointIsNotConnectedZhCN = "传输端点尚未连接" DirectoryNotEmpty = "directory not empty" DirectoryNotEmptyZhCN = "目录非空" NotMounted = "not mounted" CmdTimeoutEnv = "CMD_TIMEOUT_IN_SECOND" DefaultCmdTimoutInSecond = 60 KillPGroupCmd = "kill -9 -%d" )
Variables ¶
This section is empty.
Functions ¶
func CleanUpMountPoint ¶
func CleanUpMountPoints ¶
func ExecMountBind ¶
func ForceUnmount ¶
func ForceUnmountAndRemove ¶
func GetCmdTimeout ¶
func GetFileInode ¶
func IsLikelyMountPoint ¶
func IsMountPoint ¶
func ManualUnmount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.