Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-03-14 | Factor out the device-scan loop from rebuildmappings in to btrfsutil | Luke Shumaker | |
2023-03-14 | Merge branch 'lukeshu/reorg' | Luke Shumaker | |
2023-03-14 | Update log field names to reflect new file/package names | Luke Shumaker | |
2023-03-14 | Update error messages 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 | |
2023-03-14 | Merge branch 'lukeshu/fix-lsfiles' | Luke Shumaker | |
2023-03-14 | fixup! btrfstree: Add a FreeNodeRef function, use it | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: inspect ls-files: Fix grammar in an error message | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: inspect ls-files: Also send panics to stderr | Luke Shumaker | |
2023-03-14 | Merge branch 'lukeshu/minor' | Luke Shumaker | |
2023-03-14 | rebuildnodes: Turn the logging down a bit | Luke Shumaker | |
2023-03-14 | scripts/main.sh: Go ahead and allow ls-file sand ls-trees to run | Luke Shumaker | |
This will be useful for regression-testing. | |||
2023-03-02 | Merge branch 'lukeshu/rebuild-nodes-take6' | Luke Shumaker | |
2023-03-02 | Shorten the log lines if < LogLevelDebug | Luke Shumaker | |
2023-02-28 | rebuildnodes: Fix a data race | Luke Shumaker | |
Calling FreeNodeRef while an item from that node is still in use is a BAD TIME. | |||
2023-02-27 | rebuildnodes: Don't bother with retries if nothing changed | Luke Shumaker | |
2023-02-27 | Upgrade lowmemjson | Luke Shumaker | |
2023-02-13 | Merge branch 'lukeshu/rebuild-nodes-take5' | Luke Shumaker | |
2023-02-13 | rebuildnodes/btrees: slices.RemoveAllFunc mutates the source slice | Luke Shumaker | |
2023-02-13 | rebuildnodes/graph: Fix typo in a comment | Luke Shumaker | |
2023-02-12 | rebuildnodes: Load nodes in order | Luke Shumaker | |
Should speed things up, and should fix some determinism issues. | |||
2023-02-12 | rebuildnodes/btrees: Have the concurrency story for .trees make more sense | Luke Shumaker | |
2023-02-12 | rebuildnodes/btrees: Move cache-flush code from tree.go to forrest.go | Luke Shumaker | |
2023-02-12 | rebuildnodes/btrees: Fuss with logging | Luke Shumaker | |
2023-02-12 | rebuildnodes: Don't deadlock if the cpu goroutine panics | Luke Shumaker | |
2023-02-12 | rebuildnodes: Add a settle-items step | Luke Shumaker | |
2023-02-12 | rebuildnodes: rebuild.go: Tidy up | Luke Shumaker | |
2023-02-12 | rebuildnodes/btrees: Take a Callbacks interface, instead of func pointers | Luke Shumaker | |
2023-02-12 | rebuildnodes: Don't have wantKeys be stringly-typed | Luke Shumaker | |
2023-02-12 | rebuildnodes: Split rebuild.go in to separate files | Luke Shumaker | |
2023-02-12 | rebuildnodes: Having the treeAugmentQueue instance be named treeQueue is ↵ | Luke Shumaker | |
confusing Since there's also Rebuilder.treeQueue. | |||
2023-02-12 | rebuildnodes: Move each substep in to its own method | Luke Shumaker | |
2023-02-12 | rebuildnodes: Explicitly track whether curKey.Key is valid | Luke Shumaker | |
2023-02-12 | rebuildnodes: Rework to be clear about what went wrong when reading | Luke Shumaker | |
2023-02-12 | cmd/btrfs-rec: inspect rebuild-nodes: Fuss with JSON formatting | Luke Shumaker | |
2023-02-12 | Merge branch 'lukeshu/build-sys' | Luke Shumaker | |
2023-02-12 | scripts/main.sh: Record cpu and allocs profiles | Luke Shumaker | |
2023-02-12 | scripts: Clean up the scripts to be clearer and more consistent | Luke Shumaker | |
2023-02-12 | scripts: Remove scripts to run commands that no longer exist | Luke Shumaker | |
2023-02-12 | scripts: Remove scripts for running C btrfs-progs | Luke Shumaker | |
Except for diff-dump-tree.sh, since that's doing a comparison. | |||
2023-02-12 | Makefile: Use -trimpath when building | Luke Shumaker | |
2023-02-12 | Merge branch 'lukeshu/enums' | Luke Shumaker | |
2023-02-12 | Try to avoid unnecessary allocations in enum-types' String methods | Luke Shumaker | |
2023-02-12 | btrfsprim: Have ObjID.Format() take the tree ID, not the item type | Luke Shumaker | |
2023-02-12 | Change how constants are declared to play nice with godoc | Luke Shumaker | |
Switch to NAME Type = val instead of NAME = Type(val) | |||
2023-02-12 | Merge branch 'lukeshu/fast' | Luke Shumaker | |
2023-02-12 | btrfstree: Add a FreeNodeRef function, use it | Luke Shumaker | |
2023-02-12 | tree-wide: Cache all calls to binstruct.StaticSize | Luke Shumaker | |