flamegraphs: Improve the title page
[libguestfs-talks.git] / 2021-pipelines / benchmarking / testA6.sh
1 #!/bin/bash
2 set -x
3 set -e
4
5 source settings.sh
6
7 nbdkit -f --exit-with-parent --filter=cow ssh host=$remote $dir/fedora-33.img &
8 sleep 1
9 guestfish <<EOF
10   add "" protocol:nbd server:tcp:localhost discard:enable format:raw
11   run
12   mount-options discard /dev/sda2 /
13   fstrim /
14   umount /
15   mount-options discard /dev/sda3 /
16   fstrim /
17   umount /
18 EOF
19 nbdcopy nbd://localhost local.img