Documentation
¶
Index ¶
- Constants
- Variables
- func Fallocate(fd uintptr, mode uint32, off int64, size int64) error
- func Fstat(fd uintptr, stat *syscall.Stat_t) error
- func IsMountPoint(path string) bool
- func PreAllocate(fd uintptr, offset int64, size int64) error
- func PunchHole(fd uintptr, offset int64, size int64) error
- type DiskInfo
Constants ¶
View Source
const ( FALLOC_FL_DEFAULT = uint32(0x0) /* default is extend size */ FALLOC_FL_KEEP_SIZE = uint32(C.FALLOC_FL_KEEP_SIZE) FALLOC_FL_PUNCH_HOLE = uint32(C.FALLOC_FL_PUNCH_HOLE) )
Variables ¶
View Source
var ( ErrDiskNotFound = errors.New("sys: disk not found") ErrPathInvalid = errors.New("sys: path invalid") )
Functions ¶
func IsMountPoint ¶
func PreAllocate ¶
pre allocate phy space, and scale size
Types ¶
Click to show internal directories.
Click to hide internal directories.