summaryrefslogtreecommitdiff
path: root/scripts/main.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-15 00:04:21 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-15 01:42:38 -0600
commit3d328d3fb2d3fc02d06ded773bae34810f36edc4 (patch)
treeb7d7088f4be8eb1093e88c8faec68f9c79b45046 /scripts/main.sh
parentbb73a2fb7678698353bb995754e8702caa2f6e0a (diff)
implement scan-for-extents
Diffstat (limited to 'scripts/main.sh')
-rwxr-xr-xscripts/main.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/scripts/main.sh b/scripts/main.sh
index dbcf3ec..ce51142 100755
--- a/scripts/main.sh
+++ b/scripts/main.sh
@@ -1,13 +1,16 @@
#!/bin/bash
set -ex
go build ./cmd/btrfs-rec
-if ! test -s ../scratch/dump.scan-for-nodes.json; then
- time ./btrfs-rec --pv=../scratch/dump-zero.img inspect scan-for-nodes > ../scratch/dump.scan-for-nodes.json
+if ! test -s ../scratch/dump-zero.scan-for-nodes.json; then
+ time ./btrfs-rec --pv=../scratch/dump-zero.img inspect scan-for-nodes > ../scratch/dump-zero.scan-for-nodes.json
fi
-if ! test -s ../scratch/dump.rebuilt-mappings.json; then
- time ./btrfs-rec --pv=../scratch/dump-zero.img inspect rebuild-mappings ../scratch/dump.scan-for-nodes.json \
- > ../scratch/dump.rebuilt-mappings.json \
- 2> >(tee >&2 ../scratch/dump.rebuilt-mappings.log)
+if ! test -s ../scratch/dump-zero.mappings.0.json; then
+ time ./btrfs-rec --pv=../scratch/dump-zero.img inspect rebuild-mappings ../scratch/dump-zero.scan-for-nodes.json \
+ > ../scratch/dump-zero.mappings.0.json \
+ 2> >(tee >&2 ../scratch/dump-zero.mappings.0.log)
fi
-time ./btrfs-rec --pv=../scratch/dump-zero.img --mappings=../scratch/dump.rebuilt-mappings.json inspect ls-files \
- &> ../scratch/dump.ls-files.txt
+time ./btrfs-rec --pv=../scratch/dump-zero.img --mappings=../scratch/dump-zero.mappings.0.json inspect scan-for-extents \
+ > ../scratch/dump-zero.scan-for-extents.json
+
+#time ./btrfs-rec --pv=../scratch/dump-zero.img --mappings=../scratch/dump-zero.mappings.0.json inspect ls-files \
+# &> ../scratch/dump-zero.ls-files.txt