mirror of
https://github.com/ceph/ceph
synced 2024-12-23 11:54:11 +00:00
ca97fae81f
Test that it works in snaptest-0.sh, and set the flag in all the snap workunits so they continue to function. Signed-off-by: Greg Farnum <greg@inktank.com> Reviewed-by: Loic Dachary <loic@dachary.org>
31 lines
448 B
Bash
Executable File
31 lines
448 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
set -e
|
|
|
|
ceph mds set allow_new_snaps --yes-i-really-mean-it
|
|
|
|
echo 1 > file1
|
|
echo 2 > file2
|
|
echo 3 > file3
|
|
[ -e file4 ] && rm file4
|
|
mkdir .snap/snap1
|
|
echo 4 > file4
|
|
now=`ls`
|
|
then=`ls .snap/snap1`
|
|
rmdir .snap/snap1
|
|
if [ "$now" = "$then" ]; then
|
|
echo live and snap contents are identical?
|
|
false
|
|
fi
|
|
|
|
# do it again
|
|
echo 1 > file1
|
|
echo 2 > file2
|
|
echo 3 > file3
|
|
mkdir .snap/snap1
|
|
echo 4 > file4
|
|
rmdir .snap/snap1
|
|
|
|
rm file?
|
|
|
|
echo OK |