diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-05-11 22:40:03 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-05-11 22:40:03 -0600 |
commit | 490cffb1f4ee99b013302cfed9ef849c0676735c (patch) | |
tree | 3088310c2fa18cbb3c91090a2dd881c8d0b6580d /pkg/btrfs/uuid.go | |
parent | f39ce9ac2e5364a4966b3b88c00ecaee5cfd2111 (diff) |
scan for nodes
Diffstat (limited to 'pkg/btrfs/uuid.go')
-rw-r--r-- | pkg/btrfs/uuid.go | 5 |
1 files changed, 5 insertions, 0 deletions
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[:]) +} |