2013-01-30 09:06:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# http://tracker.ceph.com/issues/3964
|
|
|
|
|
2016-05-11 15:26:39 +00:00
|
|
|
set -ex
|
2013-02-15 21:57:47 +00:00
|
|
|
|
2013-01-30 09:06:03 +00:00
|
|
|
rbd create image -s 100
|
2016-05-11 15:26:39 +00:00
|
|
|
DEV=$(sudo rbd map image)
|
|
|
|
dd if=/dev/zero of=$DEV oflag=direct count=10
|
2013-01-30 09:06:03 +00:00
|
|
|
rbd snap create image@s1
|
2016-05-11 15:26:39 +00:00
|
|
|
dd if=/dev/zero of=$DEV oflag=direct count=10 # used to fail
|
2013-01-30 09:06:03 +00:00
|
|
|
rbd snap rm image@s1
|
2016-05-11 15:26:39 +00:00
|
|
|
dd if=/dev/zero of=$DEV oflag=direct count=10
|
|
|
|
sudo rbd unmap $DEV
|
2013-02-18 19:24:46 +00:00
|
|
|
rbd rm image
|
2013-01-30 09:06:03 +00:00
|
|
|
|
|
|
|
echo OK
|