Documentation
¶
Overview ¶
Package reflink checks whether a directory is on a filesystem that can clone files with the FICLONE ioctl. The provisioner uses it to verify a state directory and the daemon uses it to probe the host at start.
Index ¶
Constants ¶
View Source
const ( FilesystemXFS = "xfs" FilesystemBtrfs = "btrfs" FilesystemExt4 = "ext4" FilesystemTmpfs = "tmpfs" // FilesystemOverlay is overlayfs. A container root is usually on it. FilesystemOverlay = "overlay" )
Filesystem names returned by FilesystemType for the types the provisioner cares about.
Variables ¶
View Source
var ErrNotSupported = errors.New("filesystem does not support reflink (FICLONE)")
ErrNotSupported is returned by Probe when the filesystem under the directory does not support FICLONE.
Functions ¶
func FilesystemType ¶
FilesystemType returns the name of the filesystem that holds path, such as "xfs" or "btrfs". Types the package does not know are returned as their statfs magic number in hex.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.