blob: 70aafda4c5b0c303f0ff44f04c711ba437bb0eff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh -ex
mb=100000
rbd create foo --size $mb
DEV=$(sudo rbd map foo)
dd if=/dev/zero of=$DEV bs=1M count=$mb
dd if=$DEV of=/dev/null bs=1M count=$mb
sudo rbd unmap $DEV
rbd rm foo
echo OK
|