mirror of
https://github.com/ceph/ceph
synced 2024-12-12 14:39:05 +00:00
a232d273c1
... filesystems other than 'cephfs'. It is not required to set 'allow_new_snaps' to True to allow snapshot to be created on a filesystem. Remove that setting. Remove 'fs/snaps/snaptest-0.sh' that is racy when running in parallel on an another client that mounted the same file system. Include a similar test in qa/tasks/cephfs/test_snapshots.py Signed-off-by: Ramana Raja <rraja@redhat.com>
30 lines
402 B
Bash
Executable File
30 lines
402 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
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
|