ceph/qa/workunits/rbd/simple_big.sh
Sage Weil 8d9165a013 qa/workunits/rbd/simple_big: fix unmap
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-13 13:26:21 -07:00

16 lines
278 B
Bash
Executable File

#!/bin/sh -ex
[ -d /sys/bus/rbd ] || sudo modprobe rbd
mb=100000
rbd create foo --size $mb
sudo rbd map foo
sudo dd if=/dev/zero of=/dev/rbd/rbd/foo bs=1M count=$mb
sudo dd if=/dev/rbd/rbd/foo of=/dev/null bs=1M count=$mb
sudo rbd unmap /dev/rbd/rbd/foo
rbd rm foo
echo OK