summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-clear-nodes.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/run-clear-nodes.sh b/scripts/run-clear-nodes.sh
new file mode 100755
index 0000000..2f390ea
--- /dev/null
+++ b/scripts/run-clear-nodes.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+rm -f ../scratch/dump-clearnodes.img
+cp --reflink=always ../scratch/dump-{scratch,clearnodes}.img
+time go run ./cmd/btrfs-clear-bad-nodes ../scratch/dump-clearnodes.img