summaryrefslogtreecommitdiff
path: root/scripts/run-chunk-recover.sh
blob: f9a93d3897751d701ef763849ba9c2b9410f1c90 (plain)
1
2
3
4
5
6
7
#!/bin/bash
set -e
rm -f ../scratch/dump-scratch.img
cp --reflink=always ../scratch/dump-{zero,scratch}.img
chmod 600 ../scratch/dump-scratch.img
make -C ../btrfs-progs
time ../btrfs-progs/btrfs rescue chunk-recover ../scratch/dump-scratch.img