source functions
+# Title.
+export title="Loopback mounting"
+
# History.
remember 'sudo losetup --list'
remember 'ls -lh fedora-29.img'
remember 'sudo mount /dev/mapper/loop0p4 /tmp/mnt'
remember 'ls -l /tmp/mnt'
-echo "Loopback mounting"
-
./restore
pushd 1000-loopback-mounting.d >/dev/null
terminal
source functions
+# Title.
+export title="XZ compressed image"
+
# History.
remember 'ls -lh Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
remember 'nbdkit xz Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
remember 'sudo mount /dev/nbd0p1 /tmp/mnt'
remember 'ls -l /tmp/mnt'
-echo "XZ compressed image"
-
./restore
pushd 2000-xz-compressed.d >/dev/null
terminal
source functions
+# Title.
+export title="XZ with a writable filter"
+
# History.
remember 'ls -lh Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
remember 'nbdkit --filter=cow xz Fedora-Cloud-Base-29-1.2.x86_64.raw.xz'
remember 'ls -l /tmp/mnt'
remember 'sudo touch /tmp/mnt/hello-fosdem'
-echo "XZ with a writable filter"
-
./restore
pushd 2000-xz-compressed.d >/dev/null
terminal
source functions
+# Title.
+export title="Create partitions"
+
# History.
remember 'ls'
remember 'nbdkit partitioning boot.img mbr-id=0x82 swap.img mbr-id=0x83 root.img'
remember 'cat /tmp/mnt/etc/fedora-release'
remember 'touch /tmp/mnt/hello-fosdem'
-echo "Create partitions"
-
./restore
pushd 2200-partitioning.d >/dev/null
terminal
source functions
+# Title.
+export title="VMware (VDDK)"
+
# History.
remember 'ls'
remember 'LD_LIBRARY_PATH=~/tmp/vddk/vmware-vix-disklib-distrib/lib64 nbdkit vddk file=$PWD/mystery.vmdk'
remember 'sudo mount /dev/nbd0p2 /tmp/mnt'
remember 'ls -l /tmp/mnt'
-echo "VMware (VDDK)"
-
./restore
pushd 3000-vmware.d >/dev/null
terminal
source functions
+# Title.
+export title="Giant disks"
+
# History.
remember 'nbdkit memory size=$(( 2**63 - 1 ))'
remember 'sudo nbd-client -b 512 localhost /dev/nbd0'
remember 'sudo mount /dev/nbd0p1 /tmp/mnt'
remember 'df -h /tmp/mnt'
-echo "Giant disks"
-
./restore
terminal
source functions
+# Title.
+export title="Visualising a single filesystem"
+
# History.
remember 'nbdkit --filter=log --filter=delay memory size=64M logfile=/tmp/log rdelay=50ms wdelay=50ms'
remember './nbdview.tcl /tmp/log 67108864 &'
remember 'sudo mount /dev/nbd0p1 /tmp/mnt'
remember 'sudo chown rjones /tmp/mnt/'
-echo "Visualising a single filesystem"
-
./restore
pushd nbdview >/dev/null
terminal
source functions
+# Title.
+export title="Visualising RAID"
+
# History.
remember 'i=1; rm -f sock$i; nbdkit -U sock$i --filter=error --filter=log --filter=delay memory size=64M logfile=log$i error-rate=100% error-file=error$i rdelay=50ms wdelay=50ms'
remember './nbdraid.tcl 5 67108864 log%s error%s &'
remember 'sudo mount /dev/md0p1 /tmp/mnt'
remember 'sudo chown rjones /tmp/mnt/'
-echo "Visualising RAID"
-
./restore
pushd nbdview >/dev/null
rm -f sock? error? log?
# Load key bindings (if any).
bind -f $talkdir/bindings
+
+# Skip a few lines because BlueJeans video covers top left of the
+# display. (Remove for FOSDEM).
+for i in `seq 1 10`; do echo; done
+echo $title