summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfsitem/item_root.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/btrfs/btrfsitem/item_root.go')
-rw-r--r--pkg/btrfs/btrfsitem/item_root.go51
1 files changed, 0 insertions, 51 deletions
diff --git a/pkg/btrfs/btrfsitem/item_root.go b/pkg/btrfs/btrfsitem/item_root.go
deleted file mode 100644
index de0a070..0000000
--- a/pkg/btrfs/btrfsitem/item_root.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package btrfsitem
-
-import (
- "lukeshu.com/btrfs-tools/pkg/binstruct"
- "lukeshu.com/btrfs-tools/pkg/btrfs/btrfsvol"
- "lukeshu.com/btrfs-tools/pkg/btrfs/internal"
- "lukeshu.com/btrfs-tools/pkg/util"
-)
-
-type Root struct { // ROOT_ITEM=132
- Inode Inode `bin:"off=0x000, siz=0xa0"`
- Generation internal.Generation `bin:"off=0x0a0, siz=0x08"`
- RootDirID internal.ObjID `bin:"off=0x0a8, siz=0x08"`
- ByteNr btrfsvol.LogicalAddr `bin:"off=0x0b0, siz=0x08"`
- ByteLimit int64 `bin:"off=0x0b8, siz=0x08"`
- BytesUsed int64 `bin:"off=0x0c0, siz=0x08"`
- LastSnapshot int64 `bin:"off=0x0c8, siz=0x08"`
- Flags RootFlags `bin:"off=0x0d0, siz=0x08"`
- Refs int32 `bin:"off=0x0d8, siz=0x04"`
- DropProgress internal.Key `bin:"off=0x0dc, siz=0x11"`
- DropLevel uint8 `bin:"off=0x0ed, siz=0x01"`
- Level uint8 `bin:"off=0x0ee, siz=0x01"`
- GenerationV2 internal.Generation `bin:"off=0x0ef, siz=0x08"`
- UUID util.UUID `bin:"off=0x0f7, siz=0x10"`
- ParentUUID util.UUID `bin:"off=0x107, siz=0x10"`
- ReceivedUUID util.UUID `bin:"off=0x117, siz=0x10"`
- CTransID int64 `bin:"off=0x127, siz=0x08"`
- OTransID int64 `bin:"off=0x12f, siz=0x08"`
- STransID int64 `bin:"off=0x137, siz=0x08"`
- RTransID int64 `bin:"off=0x13f, siz=0x08"`
- CTime internal.Time `bin:"off=0x147, siz=0x0c"`
- OTime internal.Time `bin:"off=0x153, siz=0x0c"`
- STime internal.Time `bin:"off=0x15f, siz=0x0c"`
- RTime internal.Time `bin:"off=0x16b, siz=0x0c"`
- GlobalTreeID internal.ObjID `bin:"off=0x177, siz=0x08"`
- Reserved [7]int64 `bin:"off=0x17f, siz=0x38"`
- binstruct.End `bin:"off=0x1b7"`
-}
-
-type RootFlags uint64
-
-const (
- ROOT_SUBVOL_RDONLY = RootFlags(1 << iota)
-)
-
-var rootFlagNames = []string{
- "SUBVOL_RDONLY",
-}
-
-func (f RootFlags) Has(req RootFlags) bool { return f&req == req }
-func (f RootFlags) String() string { return util.BitfieldString(f, rootFlagNames, util.HexLower) }