mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
c5b557ee88
Signed-off-by: Sage Weil <sage@inktank.com>
16 lines
416 B
Bash
Executable File
16 lines
416 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
rsync -av --exclude local/ /usr/ usr.1
|
|
rsync -av --exclude local/ /usr/ usr.2
|
|
|
|
# this shouldn't transfer any additional files
|
|
echo we should get 4 here if no additional files are transfered
|
|
rsync -auv --exclude local/ /usr/ usr.1 | tee /tmp/$$
|
|
hexdump -C /tmp/$$
|
|
wc -l /tmp/$$ | grep 4
|
|
rsync -auv --exclude local/ /usr/ usr.2 | tee /tmp/$$
|
|
hexdump -C /tmp/$$
|
|
wc -l /tmp/$$ | grep 4
|
|
rm /tmp/$$
|
|
|
|
echo OK |