Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ERROR_BAD_FILE_DESCRIPTOR = errors.New("bad file descriptor!")
View Source
var ERROR_MUTUALLY_EXCLUSIVE_OPTIONS = errors.New("options data, file & filesystem are mutually exclusive!")
Functions ¶
func MutuallyExclusiveBoolError ¶
returns true and the given error, if more then one value is true
func Synchronize ¶
func Synchronize(input *Input, output abstract.OutputInterface) (exitCode uint8)
Synchronize all filesystems or a file.
According to the standard specification (e.g., POSIX.1-2001), sync() schedules the writes, but may return before the actual writing is done. However Linux waits for I/O completions, and thus sync() or syncfs() provide the same guarantees as fsync called on every file in the system or filesystem respectively.
Types ¶
Click to show internal directories.
Click to hide internal directories.