summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-07 13:17:52 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-08 00:16:03 -0600
commitcea13f5e842b488049c4d15e9a7b27171ce420c8 (patch)
tree279304282b6f96cc1207c54d1ba7671b786afc18 /scripts
parentc93e585d97cf6129cba277c812d100e7eac0d249 (diff)
run-check.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-check.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/run-check.sh b/scripts/run-check.sh
new file mode 100755
index 0000000..6301305
--- /dev/null
+++ b/scripts/run-check.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -e
+rm -f ../scratch/dump-check.img
+cp --reflink=always ../scratch/dump-{clearnodes,check}.img
+make -C ../btrfs-progs
+time ../btrfs-progs/btrfs check --progress --repair ../scratch/dump-check.img