Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrReflinkUnsupported = errors.New("reflink is not supported on this OS") ErrReflinkFailed = errors.New("reflink is not supported on this OS or file") )
ErrReflinkUnsupported is returned by Always() if the operation is not supported on the current operating system. Auto() will never return this error.
Functions ¶
func Always ¶
Always will perform a reflink operation and fail on error.
This is equivalent to command cp --reflink=always
func Auto ¶
Auto will attempt to perform a reflink operation and fallback to normal data copy if reflink is not supported.
This is equivalent to cp --reflink=auto
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.