Here is an example script that will panic anyone using NBD to server a block device (replace qemu-nbd with the nbd export provided by torus)
qemu-img create -f qcow2 f.img 1G mkfs.ext4 f.img modprobe nbd || true qemu-nbd -c /dev/nbd0 f.img mount /dev/nbd0 k killall -KILL qemu-nbd sleep 1 ls k