diff options
Diffstat (limited to 'scripts')
-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 |