Documentation

Index

Constants

View Source
const (
	// from Linux/include/uapi/linux/magic.h
	BTRFS_SUPER_MAGIC = 0x9123683E

	// from Linux/include/uapi/linux/fs.h
	FS_NOCOW_FL     = 0x00800000
	FS_IOC_GETFLAGS = 0x80086601
	FS_IOC_SETFLAGS = 0x40086602
)

Variables

This section is empty.

Functions

func IsBtrfs

func IsBtrfs(path string) bool

    IsBtrfs checks whether the file is in btrfs

    func SetNOCOWFile

    func SetNOCOWFile(path string) error

      SetNOCOWFile sets NOCOW flag for file

      Types

      This section is empty.

      Source Files