diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-15 14:36:47 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-15 22:41:26 -0600 |
commit | 0057ac685125aea5cf06dfd8eeaa7c7d52e64dfa (patch) | |
tree | aaefe94dee6bde955bbbe9c21d515efb85b7096c /scripts/main.sh | |
parent | e1c2606daa740d70efc4e1bfade0513708ceed65 (diff) |
wip
Diffstat (limited to 'scripts/main.sh')
-rwxr-xr-x | scripts/main.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/main.sh b/scripts/main.sh index 146d4a3..1b1a12f 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -9,10 +9,12 @@ if ! test -s ../scratch/dump-zero.mappings.0.json; then > ../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-zero.mappings.0.json inspect scan-for-extents \ - > ../scratch/dump-zero.mappings.1.json -time ./btrfs-rec --pv=../scratch/dump-zero.img --mappings=../scratch/dump-zero.mappings.1.json inspect rebuild-mappings ../scratch/dump-zero.scan-for-nodes.json \ - > ../scratch/dump-zero.mappings.2.json +if ! test -s ../scratch/dump-zero.mappings.1.json; then + time ./btrfs-rec --pv=../scratch/dump-zero.img --mappings=../scratch/dump-zero.mappings.0.json inspect scan-for-extents ../scratch/dump-zero.scan-for-nodes.json \ + > ../scratch/dump-zero.mappings.1.json \ + 2> >(tee >&2 ../scratch/dump-zero.mappings.1.log) +fi + #time ./btrfs-rec --pv=../scratch/dump-zero.img --mappings=../scratch/dump-zero.mappings.0.json inspect ls-files \ # &> ../scratch/dump-zero.ls-files.txt |