flamegraphs: Move demo of flamegraph earlier
[libguestfs-talks.git] / 2019-kvm-forum / 2700-nbdkit-sh-for-testing.html
index 36e77dc..7b1826d 100644 (file)
@@ -4,15 +4,16 @@
 
 <h1>nbdkit sh plugin for testing</h1>
 
-<iframe width="676" height="380" src="https://www.youtube.com/embed/9E5A608xJG0" frameborder="0"></iframe>
-
-<pre>
+<table width="90%">
+<tr><td width="40%">
+<pre style="font-size: 14pt;">
 <b>#!/bin/bash</b>
 
 <b>case</b> "$1" <b>in</b>
     <b>get_size)</b> echo 64M <b>;;</b>
     <b>pread</b>)
-        if [ $4 -le 100000 ] &amp;&amp; [ $(( $4+$3 )) -gt 100000 ]; then
+        if [ $4 -le 100000 ] &amp;&amp;
+           [ $(( $4+$3 )) -gt 100000 ]; then
             echo EIO Bad block >&amp;2
             exit 1
         else
     <b>*)</b> exit 2 <b>;;</b>
 <b>esac</b>
 </pre>
+</td>
+<td width="10%"/>
+<td width="40%">
+<iframe src="https://www.youtube.com/embed/9E5A608xJG0" frameborder="0"></iframe>
+</td>
+</tr>
+<tr>
+<td colspan="3">
+On Youtube:
+<i><q>Better loop mounts with NBD &mdash;
+Take your loop mounts to the next level with nbdkit</q></i>
+</td>
+</tr>
+</table>