1
0
zfs-test/bin/create-and-measure

12 lines
214 B
Bash
Executable File

#!/bin/bash
./destroy-test
zfs create -o compression=lz4 tank/test
SCRIPT_DIR="$(pwd)"
pushd /tank/test || exit
cat "$SCRIPT_DIR/$1"
time "$SCRIPT_DIR/$1"
popd || exit
zfs snapshot tank/test@final
./display-usage