Documentation
¶
Index ¶
- Constants
- func DisableReadAhead(f *os.File) (err error)
- func DropCache(f *os.File, offset, size int64) (err error)
- func Exist(path string) bool
- func Flush(f *os.File, offset, size int64) (err error)
- func FlushHint(f *os.File, offset, size int64) (err error)
- func OpenFile(path string, flag int, perm os.FileMode) (f *os.File, err error)
- func PreAllocate(f *os.File, size int64) (err error)
- func ReadDirNames(dir string) ([]string, error)
- func SyncDir(dir string) (err error)
Constants ¶
View Source
const O_NOATIME = syscall.O_NOATIME
Disable all File access time(atime) updates.
Variables ¶
This section is empty.
Functions ¶
func DisableReadAhead ¶
DisableReadAhead disables file readahead entirely.
func Flush ¶
Flush flushes page_cache to disk in sync mode.
OS may create a burst of write I/O when dirty pages hit a threshold, so flush it under users' control maybe a better choice in sometime.
func PreAllocate ¶
Preallocate allocates space for a new file. Avoid modify metadata & allocating space in future writing.
func ReadDirNames ¶
ReadDirNames returns the files names in the given directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.