Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-07-23 | rebuildmappings scan: Include the device size and superblock | Luke Shumaker | |
2023-07-22 | rebuildmappings scan: Fix a use-after-free bug | Luke Shumaker | |
2023-07-22 | rebuildtrees: Better organize resolveTreeAugments() | Luke Shumaker | |
2023-04-17 | btrfsutil.RebuiltForrest, rebuildtrees: Be more permissive of broken UUID_TREEs | Luke Shumaker | |
2023-04-17 | btrfsutil: RebuiltForrest: Have LookupRoot return an error | Luke Shumaker | |
2023-04-17 | btrfsutil: RebuiltForrest: Have LookupUUID return an error | Luke Shumaker | |
2023-04-17 | btrfsutil: RebuiltForrest: Add a lax-ancestor mode | Luke Shumaker | |
2023-04-15 | Clean-up made possible by btrfsutil.RebuiltForrest implementing btrfs.ReadableFS | Luke 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-13 | btrfsutil: RebuiltForrest.RebuiltTree(): Return errors | Luke Shumaker | |
2023-04-13 | rebuildtrees: Fuss with the settledItemQueue order to reduce cache-misses | Luke Shumaker | |
2023-04-13 | btrfsutil: RebuiltForrest: Allow skipping the .AddedItem loop | Luke Shumaker | |
2023-04-13 | btrfsutil: RebuiltForrest: Simplify by taking a btrfs.ReadableFS | Luke Shumaker | |
2023-04-13 | Try to find misuses of textui.Progress | Luke 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-04 | btrfsutil: RebuiltTree: Take better advantage of cache pinning | Luke Shumaker | |
2023-04-04 | maps: Add HasKey and HaveAnyKeysInCommon functions, use them | Luke Shumaker | |
2023-04-04 | btrfsutil: Add a ReadGraph function, rebuildtrees: Clean up scan to match | Luke Shumaker | |
2023-03-30 | cmd/btrfs-rec: Add a runWithReadableFS helper for rebuilt forrests | Luke Shumaker | |
2023-03-30 | tree-wide: Drop the old btrfstree.TreeOperator API | Luke Shumaker | |
2023-03-30 | btrfsutil, cmd: Migrate to the new btrfstree.Forrest API | Luke Shumaker | |
2023-03-30 | btrfs: Migrate to the new btrfstree.Forrest API | Luke Shumaker | |
2023-03-30 | btrfstree: Rethink 'Path' yet again | Luke Shumaker | |
2023-03-30 | btrfstree: Change the NodeSource API so that it can do caching | Luke Shumaker | |
2023-03-30 | tree-wide: Funnel all btrfstree.ReadNode[btrfsvol.LogicalAddr]() calls ↵ | Luke Shumaker | |
through btrfstree.NodeSource.ReadNode() | |||
2023-03-28 | containers: Rethink the caching libraries | Luke Shumaker | |
2023-03-23 | btrfs: Subvolume: Use LookupTreeRoot | Luke Shumaker | |
2023-03-23 | btrfstree: Fuss with the TreeWalk API | Luke Shumaker | |
2023-03-19 | btrfstree: Have LookupTreeRoot take a Context | Luke Shumaker | |
2023-03-17 | rebuildnodes/btrees: Rename methods to make API structure clearer | Luke Shumaker | |
2023-03-17 | containers: Add OptionalValue and OptionalNil | Luke Shumaker | |
2023-03-17 | btrfsutil: Merge KeyIO in to RebuiltForrest | Luke Shumaker | |
2023-03-17 | cmd/btrfs-rec: inspect ls-files: Move the code to a sub-package | Luke Shumaker | |
2023-03-17 | btrfs: io4_fs.go: Subvolume: Don't have public members; use a constructor | Luke Shumaker | |
2023-03-17 | tree-wide: s/TreePath/Path/g | Luke Shumaker | |
btrfstree.TreePath stutters. | |||
2023-03-17 | rebuildtrees: Be careful about what types are exported | Luke Shumaker | |
2023-03-17 | rebuildtrees: Be careful about what methods are exported | Luke Shumaker | |
2023-03-17 | rebuildtrees: Move item-data from btrfsutil.KeyIO to scan | Luke Shumaker | |
2023-03-17 | rebuildmappings: Audit identifier names | Luke Shumaker | |
2023-03-17 | btrfstree: 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-17 | tree-wide: Turn on all revive linters (with exceptions) | Luke Shumaker | |
2023-03-17 | tree-wide: Ensure that all existing type doc comments follow the expected format | Luke Shumaker | |
This is a notable improvement in the docs for btrfsitem. | |||
2023-03-17 | tree-wide: Ensure that all packages have a doc comment | Luke Shumaker | |
2023-03-15 | btrfstree: Have errors include context of what was being searched for | Luke Shumaker | |
2023-03-15 | tree-wide: Refer to item "slots" rather than "indexes" | Luke Shumaker | |
2023-03-15 | tree-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-14 | tree-wide: Don't pass around a full rebuildmappings.ScanDevicesResult when a ↵ | Luke Shumaker | |
simple list of nodes will do | |||
2023-03-14 | Factor out the device-scan loop from rebuildmappings in to btrfsutil | Luke Shumaker | |
2023-03-14 | Update log field names to reflect new file/package names | Luke Shumaker | |
2023-03-14 | Update identifiers and comments to reflect new file/package names | Luke Shumaker | |
2023-03-14 | Get it to compile with the renamed files | Luke Shumaker | |
#!/bin/bash set -e git ls-files :*.go :!tools/| while read -r file; do pkgname=${file%/*.go} pkgname=${pkgname##*/} if [[ "$pkgname" == btrfs-rec ]]; then pkgname=main fi sed -i "s/^package [^_]*/package ${pkgname}/" "$file" done # btrfsutil #################################################################### gofmt -w -r 'rebuildnodes -> rebuildtrees' cmd lib gofmt -w -r 'btrees -> btrfsutil' cmd lib gofmt -w -r 'keyio -> btrfsutil' cmd lib sed -i 's/func New/func NewGraph/' lib/btrfsutil/graph.go gofmt -w -r 'graph.New -> btrfsutil.NewGraph' cmd lib gofmt -w -r 'graph.Graph -> btrfsutil.Graph' cmd lib sed -i -e '/\/graph"/d' -e 's/pkggraph\.//' lib/btrfsutil/rebuilt_forrest.go gofmt -w -r 'btrfsutil.BrokenForrest -> BrokenForrest ' lib/btrfsutil gofmt -w -r 'btrfsutil.Handle -> Handle ' lib/btrfsutil gofmt -w -r 'btrfsutil.Graph -> Graph ' lib/btrfsutil gofmt -w -r 'btrfsutil.ItemPtr -> ItemPtr ' lib/btrfsutil gofmt -w -r 'Handle -> KeyIO' lib/btrfsutil gofmt -w -r 'btrfsutil.Handle -> btrfsutil.KeyIO' cmd/btrfs-rec/inspect/rebuildtrees/ gofmt -w -r 'NewHandle -> NewKeyIO' cmd lib # rebuildmappings ############################################################## gofmt -w -r 'btrfsinspect.DumpTrees -> dumptrees.DumpTrees' cmd lib gofmt -w -r 'btrfsinspect.MountRO -> mount.MountRO' cmd lib gofmt -w -r 'btrfsinspect.ScanDevices -> rebuildmappings.ScanDevices' cmd lib gofmt -w -r 'btrfsinspect.ScanDevicesResult -> rebuildmappings.ScanDevicesResult' cmd lib gofmt -w -r 'btrfsinspect.SysExtentCSum -> rebuildmappings.SysExtentCSum' cmd lib gofmt -w -r 'rebuildmappings.IndexAll -> IndexAll ' cmd/btrfs-rec/inspect/rebuildmappings gofmt -w -r 'rebuildmappings.ScanDevicesResult -> ScanDevicesResult ' cmd/btrfs-rec/inspect/rebuildmappings gofmt -w -r 'rebuildmappings.SysExtentCSum -> SysExtentCSum ' cmd/btrfs-rec/inspect/rebuildmappings # btrfscheck ################################################################### sed -i -e 's/func handle/func Handle/' lib/btrfscheck/graph.go sed -i 's/handle/btrfscheck.Handle/g' cmd/btrfs-rec/inspect/rebuildtrees/rebuild.go gofmt -w -r 'fsErr -> FSErr ' lib/btrfscheck cmd/btrfs-rec/inspect/rebuildtrees gofmt -w -r 'want -> Want ' lib/btrfscheck cmd/btrfs-rec/inspect/rebuildtrees gofmt -w -r 'wantOff -> WantOff ' lib/btrfscheck cmd/btrfs-rec/inspect/rebuildtrees gofmt -w -r 'wantDirIndex -> WantDirIndex ' lib/btrfscheck cmd/btrfs-rec/inspect/rebuildtrees gofmt -w -r 'wantCSum -> WantCSum ' lib/btrfscheck cmd/btrfs-rec/inspect/rebuildtrees gofmt -w -r 'wantFileExt -> WantFileExt ' lib/btrfscheck cmd/btrfs-rec/inspect/rebuildtrees # generic imports ############################################################## replace() { git grep -l "$1"|xargs -r sed -i "s,$1,$2,g" } replace 'lib/btrfsprogs/btrfsinspect/rebuildmappings"' 'cmd/btrfs-rec/inspect/rebuildmappings"' replace 'lib/btrfsprogs/btrfsinspect/rebuildnodes"' 'cmd/btrfs-rec/inspect/rebuildtrees"' replace 'lib/btrfsprogs/btrfsutil"' 'lib/btrfsutil"' goimports -w cmd lib ./tools/bin/golangci-lint run --fix ./... And then touch-up copyright statements by hand. | |||
2023-03-14 | Move files around [ci-skip] | Luke Shumaker | |