From 0cc16b8d1da61c0bfb8743c8b68888b0ba73d4bb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 15 Mar 2023 21:38:56 -0600 Subject: btrfsprim: Add "max" constants for ObjID, ItemType, and offset --- lib/btrfs/btrfsprim/objid.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/btrfs/btrfsprim/objid.go') 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 ( -- cgit v1.2.3-2-g168b