summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec
AgeCommit message (Collapse)Author
2023-04-15Clean-up made possible by btrfsutil.RebuiltForrest implementing btrfs.ReadableFSLuke Shumaker
- rebuildtrees: Use .ForrestLookup instead of .RebuiltTree where possible - btrfsutil: noopRebuiltForrestCallbacks: Use only the generic btrfstree.Forrest API - btrfsutil: RebuiltForrest, RebuiltTree: Avoid unnecessarily reaching into forrest.inner - btrfsutil: RebuiltTree: Drop the .ReadItem() method; it duplicates .TreeLookup without benefit.
2023-04-13cmd/btrfs-rec: Add a way to use RebuiltForrest instead of OldRebuiltForrestLuke Shumaker
2023-04-13btrfsutil: RebuiltForrest.RebuiltTree(): Return errorsLuke Shumaker
2023-04-13rebuildtrees: Fuss with the settledItemQueue order to reduce cache-missesLuke Shumaker
2023-04-13btrfsutil: RebuiltForrest: Allow skipping the .AddedItem loopLuke Shumaker
2023-04-13btrfsutil: RebuiltForrest: Simplify by taking a btrfs.ReadableFSLuke Shumaker
2023-04-13Try to find misuses of textui.ProgressLuke Shumaker
- Add a runtime-check to Progress to notice if we deadlocked or forgot to call .Done(). - Add a runtime-check to Progress.Done() to panic if .Set() was never called (instead of the old behavior of deadlocking). - grep: Use `defer` when possible, to help remember to call .Done(). - grep: Always either call .Set() right away, or right before calling .Done().
2023-04-04btrfsutil: RebuiltTree: Take better advantage of cache pinningLuke Shumaker
2023-04-04cmd/btrfs-rec: Move --node-list to be a global flagLuke Shumaker
2023-04-04cmd/btrfs-rec: ls-trees: Use runWithReadableFSLuke Shumaker
2023-04-04cmd/btrfs-rec: Have RebuiltForrest be opt-in on the CLILuke Shumaker
2023-04-04maps: Add HasKey and HaveAnyKeysInCommon functions, use themLuke Shumaker
2023-04-04btrfsutil: Add a ReadGraph function, rebuildtrees: Clean up scan to matchLuke Shumaker
2023-04-04cmd/btrfs-rec: main.go: Don't let lines get too longLuke Shumaker
2023-04-02cmd/btrfs-rec: ls-trees: Don't prevent bad nodes from being lost+foundLuke Shumaker
2023-03-30cmd/btrfs-rec: Add a runWithReadableFS helper for rebuilt forrestsLuke Shumaker
2023-03-30tree-wide: Drop the old btrfstree.TreeOperator APILuke Shumaker
2023-03-30btrfsutil, cmd: Migrate to the new btrfstree.Forrest APILuke Shumaker
2023-03-30btrfs: Migrate to the new btrfstree.Forrest APILuke Shumaker
2023-03-30btrfstree: Rethink 'Path' yet againLuke Shumaker
2023-03-30btrfstree: Change the NodeSource API so that it can do cachingLuke Shumaker
2023-03-30tree-wide: Funnel all btrfstree.ReadNode[btrfsvol.LogicalAddr]() calls ↵Luke Shumaker
through btrfstree.NodeSource.ReadNode()
2023-03-28containers: Rethink the caching librariesLuke Shumaker
2023-03-23btrfs: Subvolume: Use LookupTreeRootLuke Shumaker
2023-03-23btrfstree: Fuss with the TreeWalk APILuke Shumaker
2023-03-19btrfstree: Have LookupTreeRoot take a ContextLuke Shumaker
2023-03-17rebuildnodes/btrees: Rename methods to make API structure clearerLuke Shumaker
2023-03-17containers: Add OptionalValue and OptionalNilLuke Shumaker
2023-03-17btrfsutil: Merge KeyIO in to RebuiltForrestLuke Shumaker
2023-03-17cmd/btrfs-rec: inspect ls-files: Move the code to a sub-packageLuke Shumaker
2023-03-17btrfs: io4_fs.go: Subvolume: Don't have public members; use a constructorLuke Shumaker
2023-03-17tree-wide: s/TreePath/Path/gLuke Shumaker
btrfstree.TreePath stutters.
2023-03-17rebuildtrees: Be careful about what types are exportedLuke Shumaker
2023-03-17rebuildtrees: Be careful about what methods are exportedLuke Shumaker
2023-03-17rebuildtrees: Move item-data from btrfsutil.KeyIO to scanLuke Shumaker
2023-03-17rebuildmappings: Audit identifier namesLuke Shumaker
2023-03-17btrfstree: Have ReadNode return a *Node rather than a *diskio.Ref[Addr, Node]Luke Shumaker
... and take a ReaderAt instead of a diskio.File.
2023-03-17tree-wide: Turn on all revive linters (with exceptions)Luke Shumaker
2023-03-17tree-wide: Ensure that all existing type doc comments follow the expected formatLuke Shumaker
This is a notable improvement in the docs for btrfsitem.
2023-03-17tree-wide: Ensure that all packages have a doc commentLuke Shumaker
2023-03-15btrfstree: Have errors include context of what was being searched forLuke Shumaker
2023-03-15tree-wide: Refer to item "slots" rather than "indexes"Luke Shumaker
2023-03-15tree-wide: Have "interior" rather than "internal" be the antonym of "leaf"Luke Shumaker
Because "internal" has a meaning in the Go world, and it's confusing.
2023-03-14cmd/btrfs-rec: inspect rebuild-mappings list-nodes: Set up logging and stuffLuke Shumaker
2023-03-14Expose node-lists as a thing on the CLILuke Shumaker
2023-03-14cmd/btrs-rec: Rename 'inspect rebuild-nodes'→'inspect rebuild-trees'Luke Shumaker
2023-03-14cmd/btrfs-rec: Fix newlines in `inspect rebuild-mappings --help`Luke Shumaker
2023-03-14cmd/btrfs-rec: Smash scandevices and rebuild-mappings togetherLuke Shumaker
2023-03-14cmd/btrfs-rec: Don't require --pv for `help`Luke Shumaker
2023-03-14cmd/btrfs-rec: Have each subcommand call runWithRawFS itselfLuke Shumaker