# Functions
AllFilesystems lists all mounted filesystems ordered by path to their "main" Mount.
*
* 파일이 잠겨있는지 확인한다.
GoLang: os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
FindMount returns the main Mount object for the filesystem which contains the file at the specified path.
GetMount is like FindMount, except GetMount also returns an error if the path doesn't name the same file as the filesystem's "main" Mount.
HaveReadAccessTo returns true if the process has read access to a file or directory, without actually opening it.
*
* 파일을 잠그고 PID를 기록한다.
GoLang: os.Rename() give error "invalid cross-device link" for Docker container with Volumes.
OpenFileOverridingUmask calls os.OpenFile but with the umask overridden so that no permission bits are masked out if the file is created.
No description provided by the author
UpdateMountInfo updates the filesystem mountpoint maps with the current state of the filesystem mountpoints.
# Structs
ErrAlreadySetup indicates that a filesystem is already setup for fscrypt.
ErrCorruptMetadata indicates that an fscrypt metadata file is corrupt.
ErrFollowLink indicates that a protector link can't be followed.
ErrMakeLink indicates that a protector link can't be created.
ErrNotAMountpoint indicates that a path is not a mountpoint.
ErrNotSetup indicates that a filesystem is not setup for fscrypt.
ErrPolicyNotFound indicates that the policy metadata was not found.
ErrProtectorNotFound indicates that the protector metadata was not found.
Mount contains information for a specific mounted filesystem.
# Type aliases
DeviceNumber represents a combined major:minor device number.
PathSorter allows mounts to be sorted by Path.