mirror of
https://github.com/ceph/ceph
synced 2024-12-11 05:57: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>
34 lines
492 B
Bash
Executable File
34 lines
492 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
mkdir foo
|
|
|
|
# make sure mds handles it when the client does not send flushsnap
|
|
echo x > foo/x
|
|
sync
|
|
mkdir foo/.snap/ss
|
|
ln foo/x foo/xx
|
|
cat foo/.snap/ss/x
|
|
rmdir foo/.snap/ss
|
|
|
|
#
|
|
echo a > foo/a
|
|
echo b > foo/b
|
|
mkdir foo/.snap/s
|
|
r=`cat foo/.snap/s/a`
|
|
[ -z "$r" ] && echo "a appears empty in snapshot" && false
|
|
|
|
ln foo/b foo/b2
|
|
cat foo/.snap/s/b
|
|
|
|
echo "this used to hang:"
|
|
echo more >> foo/b2
|
|
echo "oh, it didn't hang! good job."
|
|
cat foo/b
|
|
rmdir foo/.snap/s
|
|
|
|
rm -r foo
|
|
|
|
echo OK
|