mirror of
https://github.com/ceph/ceph
synced 2024-12-29 23:12:27 +00:00
c693ba5732
Clone the data stream from one object to another. Signed-off-by: Sage Weil <sage@inktank.com>
13 lines
298 B
Bash
Executable File
13 lines
298 B
Bash
Executable File
#!/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 |