diff options
Diffstat (limited to 'testModule/mount-dnbd3.sh')
| -rw-r--r-- | testModule/mount-dnbd3.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testModule/mount-dnbd3.sh b/testModule/mount-dnbd3.sh new file mode 100644 index 00000000..9629a153 --- /dev/null +++ b/testModule/mount-dnbd3.sh @@ -0,0 +1,15 @@ +insmod /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/dnbd3.ko + +dnbd3-client --daemon & +sleep 2 +local dnbd3_device_node="$(dnbd3-client -h 132.230.4.1 -i stage4/torben/test -r 1)" + +qemu-img create -f qcow2 -o backing_file="$dnbd3_device_node",backing_fmt=qcow2 /tmp/test.qcow2 +insmod /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/nbd.ko +qemu-nbd -c /dev/nbd0 /tmp/test.qcow2 +mkdir /mnt +mount /dev/nbd0 /mnt + +warn '............JAU.............' +warn '............JAU.............' +warn '............JAU.............' |
