ioctl

package
v0.0.0-...-784b0aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStruct

func NewStruct(dest interface{}, r io.ByteReader) error

func SubvolCreate

func SubvolCreate(path, name string) error

func SubvolDelete

func SubvolDelete(path, name string) error

func SubvolFindNew

func SubvolFindNew(name string, lastGen uint64) (uint64, error)

func SubvolList

func SubvolList(name string, lastGen uint64) error

func SubvolSnapshot

func SubvolSnapshot(readonly bool, src, dest, name string) error

func TestIsSubvolume

func TestIsSubvolume(name string) (bool, error)

Types

type BtrfsFileExtentItem

type BtrfsFileExtentItem struct {
	Generation    uint64
	RamBytes      uint64
	Compression   uint8
	Encryption    uint8
	OtherEncoding uint16
	Type          uint8
	DiskByteNr    uint64
	DiskNumBytes  uint64
	Offset        uint64
	NumBytes      uint64
}

type BtrfsRootItem

type BtrfsRootItem struct {
	Generation   uint64 `seek:"0xA0"`
	RootDirId    uint64
	ByteNr       uint64
	ByteLimit    uint64
	BytesUsed    uint64
	LastSnapshot uint64
	Flags        uint64
	Refs         uint32

	DropLevel    uint8 `seek:"0xED"`
	Level        uint8
	GenerationV2 uint64
	UUID         uuid.UUID
	ParentUUID   uuid.UUID
	ReceivedUUID uuid.UUID
	CTransId     uint64
	OTransId     uint64
	STransId     uint64
	RTransId     uint64
	CTime        BtrfsTimespec
	OTime        BtrfsTimespec
	STime        BtrfsTimespec
	RTime        BtrfsTimespec
}

func NewBtrfsRootItem

func NewBtrfsRootItem(s *C.struct_btrfs_root_item) (*BtrfsRootItem, error)

type BtrfsRootRef

type BtrfsRootRef struct {
	DirId    uint64
	Sequence uint64
	NameLen  uint16
}

func NewBtrfsRootRef

func NewBtrfsRootRef(s *C.struct_btrfs_root_ref) (*BtrfsRootRef, error)

type BtrfsTimespec

type BtrfsTimespec struct {
	Sec  uint64
	NSec uint32
}

type SubvolSearchResult

type SubvolSearchResult struct {
	Id           uint64
	Gen          uint64
	CGen         uint64
	Parent       uint64
	TopLevel     uint64
	OTime        BtrfsTimespec
	ParentUUID   uuid.UUID
	ReceivedUUID uuid.UUID
	UUID         uuid.UUID
	Path         string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL