mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +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>
43 lines
628 B
Bash
Executable File
43 lines
628 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
echo asdf > a
|
|
mkdir .snap/1
|
|
chmod 777 a
|
|
mkdir .snap/2
|
|
echo qwer > a
|
|
mkdir .snap/3
|
|
chmod 666 a
|
|
mkdir .snap/4
|
|
echo zxcv > a
|
|
mkdir .snap/5
|
|
|
|
ls -al .snap/?/a
|
|
|
|
grep asdf .snap/1/a
|
|
stat .snap/1/a | grep 'Size: 5'
|
|
|
|
grep asdf .snap/2/a
|
|
stat .snap/2/a | grep 'Size: 5'
|
|
stat .snap/2/a | grep -- '-rwxrwxrwx'
|
|
|
|
grep qwer .snap/3/a
|
|
stat .snap/3/a | grep 'Size: 5'
|
|
stat .snap/3/a | grep -- '-rwxrwxrwx'
|
|
|
|
grep qwer .snap/4/a
|
|
stat .snap/4/a | grep 'Size: 5'
|
|
stat .snap/4/a | grep -- '-rw-rw-rw-'
|
|
|
|
grep zxcv .snap/5/a
|
|
stat .snap/5/a | grep 'Size: 5'
|
|
stat .snap/5/a | grep -- '-rw-rw-rw-'
|
|
|
|
rmdir .snap/[12345]
|
|
|
|
echo "OK"
|
|
|
|
|
|
|