diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-13 20:41:10 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-13 21:39:09 -0600 |
commit | 952b677bf7f10da93673e3671f764c54c454bbfe (patch) | |
tree | 57b31c8f72f76d60b89e0307069c9d15c6794326 /cmd/btrfs-rec/inspect_lsfiles.go | |
parent | 4e29bb393ec774f0a79c70d9d69c54fe4e8ecb72 (diff) |
Move ordered.go to lib/containers
Something about this trips a stack overflow in golangci-lint, so upgrade
golangci-lint to a commit that fixes this.
Diffstat (limited to 'cmd/btrfs-rec/inspect_lsfiles.go')
-rw-r--r-- | cmd/btrfs-rec/inspect_lsfiles.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/btrfs-rec/inspect_lsfiles.go b/cmd/btrfs-rec/inspect_lsfiles.go index a859be3..56f76b1 100644 --- a/cmd/btrfs-rec/inspect_lsfiles.go +++ b/cmd/btrfs-rec/inspect_lsfiles.go @@ -15,6 +15,7 @@ import ( "git.lukeshu.com/btrfs-progs-ng/lib/btrfs" "git.lukeshu.com/btrfs-progs-ng/lib/btrfs/btrfsitem" + "git.lukeshu.com/btrfs-progs-ng/lib/containers" "git.lukeshu.com/btrfs-progs-ng/lib/util" ) @@ -57,7 +58,7 @@ func printSubvol(fs *btrfs.FS, prefix0, prefix1, name string, key btrfs.Key) { func printDir(fs *btrfs.FS, fsTree btrfs.ObjID, prefix0, prefix1, dirName string, dirInode btrfs.ObjID) { var errs derror.MultiError items, err := fs.TreeSearchAll(fsTree, func(key btrfs.Key) int { - return util.CmpUint(dirInode, key.ObjectID) + return containers.CmpUint(dirInode, key.ObjectID) }) if err != nil { errs = append(errs, fmt.Errorf("read dir: %w", err)) |