#!/bin/sh -ex
+ceph mds set allow_new_snaps --yes-i-really-mean-it
wget -q http://ceph.com/qa/linux-2.6.33.tar.bz2
mkdir foo
cp linux* foo
#!/bin/sh -x
+expect_failure() {
+ if [ `"$@"` -e 0 ]; then
+ return 1
+ fi
+ return 0
+}
set -e
+expect_failure mkdir .snap/foo
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
echo asdf > foo
mkdir .snap/foo
grep asdf .snap/foo/foo
rmdir .snap/bar
rm foo
+ceph mds unset allow_new_snaps --yes-i-really-mean-it
+expect_failure mkdir .snap/baz
+
echo OK
\ No newline at end of file
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
echo 1 > file1
echo 2 > file2
echo 3 > file3
#!/bin/bash
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
echo "Create dir 100 to 199 ..."
for i in $(seq 100 199); do
echo " create dir $i"
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
touch foo
chmod +x foo
mkdir .snap/s
mkdir foo
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
# make sure mds handles it when the client does not send flushsnap
echo x > foo/x
sync
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
#
# make sure we keep an existing dn's seq
#
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
# multiple intervening snapshots with no modifications, and thus no
# snapflush client_caps messages. make sure the mds can handle this.
#!/bin/sh -x
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
mkdir .snap/foo
echo "We want ENOENT, not ESTALE, here."
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
git clone git://ceph.com/git/ceph.git
cd ceph
#!/bin/sh -ex
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
# this tests fix for #1399
mkdir foo
mkdir foo/.snap/one
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
echo asdf > a
mkdir .snap/1
chmod 777 a
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
echo "making directory tree and files"
mkdir -p 1/a/b/c/
echo "i'm file1" > 1/a/file1
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
file=linux-2.6.33.tar.bz2
wget -q http://ceph.com/qa/$file
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
#
# verify that a snap update on a parent realm will induce
# snap cap writeback for inodes child realms
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
echo "testing simple xattr wb"
touch x
setfattr -n user.foo x
set -e
+ceph mds set allow_new_snaps --yes-i-really-mean-it
+
do_tarball() {
wget http://ceph.com/qa/$1
tar xvf$2 $1