mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
13 lines
298 B
Bash
13 lines
298 B
Bash
|
#!/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
|