ceph/qa/workunits/snaptest1.sh
Sage Weil e6bc437528 qa: make snaptest trigger capsnap dirty(caps)==0 bug
Prior to ceph-client.git commit 819ccbfa448, this will cause a

	VFS: Busy inodes after unmount of ceph. Self-destruct in 5 seconds.  Have a nice day...

on umount.
2010-04-01 09:44:04 -07:00

24 lines
366 B
Bash
Executable File

#!/bin/bash
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