mirror of
https://github.com/ceph/ceph
synced 2024-12-12 14:39:05 +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
|