From 490cffb1f4ee99b013302cfed9ef849c0676735c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 11 May 2022 22:40:03 -0600 Subject: scan for nodes --- pkg/btrfs/uuid.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/btrfs/uuid.go') diff --git a/pkg/btrfs/uuid.go b/pkg/btrfs/uuid.go index 5218a3f..b9e3e0c 100644 --- a/pkg/btrfs/uuid.go +++ b/pkg/btrfs/uuid.go @@ -1,6 +1,7 @@ package btrfs import ( + "bytes" "encoding/hex" "strings" ) @@ -17,3 +18,7 @@ func (uuid UUID) String() string { str[20:32], }, "-") } + +func (a UUID) Equal(b UUID) bool { + return bytes.Equal(a[:], b[:]) +} -- cgit v1.2.3-54-g00ecf