blob: 281e89f71475abd68a7d31b7eb151e17f4e8053f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh -x
set -e
rados -p data rm foo || true
rados -p data put foo.tmp /etc/passwd --object-locator foo
rados -p data clonedata foo.tmp foo --object-locator foo
rados -p data get foo /tmp/foo
cmp /tmp/foo /etc/passwd
rados -p data rm foo.tmp --object-locator foo
rados -p data rm foo
echo OK
|