summaryrefslogtreecommitdiff
path: root/scripts/run-clear-nodes.sh
blob: 48186f87e1f2ba1e0fec715e4d9f1c063e6c51a2 (plain)
1
2
3
4
5
#!/bin/bash
set -e
rm -f ../scratch/dump-clearnodes.img
cp --reflink=always ../scratch/dump-{scratch,clearnodes}.img
time go run ./cmd/btrfs-rec repair clear-bad-nodes --pv=../scratch/dump-clearnodes.img