diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-15 21:38:56 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-15 21:41:00 -0600 |
commit | 0cc16b8d1da61c0bfb8743c8b68888b0ba73d4bb (patch) | |
tree | 8a210fcb602af13fc4175338fc0bda2101838e92 /lib/btrfs/btrfsprim/objid.go | |
parent | c42e8ea5d77a39d096d97600359bd91657da2f05 (diff) |
btrfsprim: Add "max" constants for ObjID, ItemType, and offset
Diffstat (limited to 'lib/btrfs/btrfsprim/objid.go')
-rw-r--r-- | lib/btrfs/btrfsprim/objid.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/btrfs/btrfsprim/objid.go b/lib/btrfs/btrfsprim/objid.go index 1aea030..f364957 100644 --- a/lib/btrfs/btrfsprim/objid.go +++ b/lib/btrfs/btrfsprim/objid.go @@ -6,6 +6,7 @@ package btrfsprim import ( "fmt" + "math" ) type ObjID uint64 @@ -52,6 +53,8 @@ const ( // ??? EMPTY_SUBVOL_DIR_OBJECTID ObjID = 2 + + MAX_OBJECTID ObjID = math.MaxUint64 ) var ( |