Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | cmd/btrfs-rec: inspect rebuild-mappings list-nodes: Set up logging and stuff | Luke Shumaker | |
2023-03-14 | Expose node-lists as a thing on the CLI | Luke Shumaker | |
2023-03-14 | cmd/btrs-rec: Rename 'inspect rebuild-nodes'→'inspect rebuild-trees' | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: Fix newlines in `inspect rebuild-mappings --help` | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: Smash scandevices and rebuild-mappings together | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: Don't require --pv for `help` | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: Have each subcommand call runWithRawFS itself | Luke Shumaker | |
2023-03-14 | cmd/btrfs-rec: Factor out a `runWithRawFS` function | Luke Shumaker | |
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 | |
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-02 | Shorten the log lines if < LogLevelDebug | Luke Shumaker | |
2023-02-12 | rebuildnodes/btrees: Have the concurrency story for .trees make more sense | Luke Shumaker | |
2023-02-12 | cmd/btrfs-rec: inspect rebuild-nodes: Fuss with JSON formatting | Luke Shumaker | |
2023-02-12 | cmd/btrfs-rec: inspect dump-trees: Bump the btrfs-progs version | Luke Shumaker | |
2023-01-30 | Upgrade to lowmemjson v0.3.0 | Luke Shumaker | |
2023-01-30 | Upgrade to lowmemjson v0.2.0 | Luke Shumaker | |
2023-01-25 | Move btrfs-rec's logging RuneScanner to a new `streamio` package | Luke Shumaker | |
2023-01-25 | cmd/btrfs-rec: Add flags for writing profiles | Luke Shumaker | |
2023-01-06 | fixup! cmd/btrfs-rec: Add a type-agnostic utility function to write JSON out | Luke Shumaker | |
2023-01-05 | cmd/btrfs-rec inspect rebuild-nodes: Optimize memory use | Luke Shumaker | |
2023-01-05 | rebuildnodes: Support graceful shutdown | Luke Shumaker | |
2023-01-05 | cmd/btrfs-rec: Fix capitalization typo in comments | Luke Shumaker | |
2023-01-01 | lint: Set exclude-use-default=false | Luke Shumaker | |
2023-01-01 | lint: Turn on stylecheck | Luke Shumaker | |
2023-01-01 | lint: Turn on gomnd | Luke Shumaker | |
2023-01-01 | tree-wide: Annotate values that I might want to be tuning | Luke Shumaker | |
2023-01-01 | cmd/btrfs-rec: Add a type-agnostic utility function to write JSON out | Luke Shumaker | |
2023-01-01 | lint: Turn on gocritic | Luke Shumaker | |
2023-01-01 | lint: Tighten up the nolintlint configuration | Luke Shumaker | |
2022-12-30 | cmd/btrfs-rec: Have all logging include live memory statistics | Luke Shumaker | |
2022-12-26 | cmd/btrfs-rec: Add a utility function for reading JSON files with progress | Luke Shumaker | |
2022-12-26 | cmd/btrfs-rec: Set the dlog fallback logger | Luke Shumaker | |
2022-12-26 | textui: Implement a custom dlog backend that uses x/text/message | Luke Shumaker | |
2022-12-26 | Factor logger code from main.go in to textui | Luke Shumaker | |
2022-12-26 | tree-wide: Audit for fmt.Sprint usage, in favor of textui | Luke Shumaker | |
2022-12-26 | tree-wide: Audit for fmt.Fprint usage, in favor of textui | Luke Shumaker | |
2022-12-26 | tree-wide: Outlaw fmt.Print, force textui | Luke Shumaker | |
2022-12-20 | Delete 'inspect show-loops' | Luke Shumaker | |
2022-12-20 | rebuildnodes: wip: New rebuild-nodes implementation | Luke Shumaker | |
2022-12-20 | Delete 'inspect visualize-nodes' | Luke Shumaker | |
2022-10-08 | mount: Allow ignoring file checksum errors | Luke Shumaker | |