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