mirror of
https://github.com/ceph/ceph
synced 2024-12-24 04:14:07 +00:00
7e00212761
This used to fail/hang before the cap cloning business was fixed up.
21 lines
318 B
Bash
Executable File
21 lines
318 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
mkdir foo
|
|
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
|