Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / part-randomize-stats
diff --git a/host/part-randomize-stats b/host/part-randomize-stats
new file mode 100755 (executable)
index 0000000..7b691fc
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/host/lib.sh
+
+part="$1"
+eval "pkill -USR1 -f \"^dd if=/dev/urandom of=\$vm_dev_disk_$part\""