Documentation ¶
Index ¶
- func NewStruct(dest interface{}, r io.ByteReader) error
- func SubvolCreate(path, name string) error
- func SubvolDelete(path, name string) error
- func SubvolFindNew(name string, lastGen uint64) (uint64, error)
- func SubvolList(name string, lastGen uint64) error
- func SubvolSnapshot(readonly bool, src, dest, name string) error
- func TestIsSubvolume(name string) (bool, error)
- type BtrfsFileExtentItem
- type BtrfsRootItem
- type BtrfsRootRef
- type BtrfsTimespec
- type SubvolSearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStruct ¶
func NewStruct(dest interface{}, r io.ByteReader) error
func SubvolCreate ¶
func SubvolDelete ¶
func SubvolList ¶
func SubvolSnapshot ¶
func TestIsSubvolume ¶
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 }
func NewBtrfsFileExtentItem ¶
func NewBtrfsFileExtentItem(s *C.struct_btrfs_file_extent_item) (*BtrfsFileExtentItem, error)
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 ¶
func NewBtrfsRootRef ¶
func NewBtrfsRootRef(s *C.struct_btrfs_root_ref) (*BtrfsRootRef, error)
type BtrfsTimespec ¶
Click to show internal directories.
Click to hide internal directories.