]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | #!/bin/sh -x |
2 | ||
3 | set -e | |
4 | ||
11fdf7f2 TL |
5 | mkdir 1 2 |
6 | echo asdf >1/file1 | |
7 | echo asdf >1/file2 | |
8 | ||
9 | ln 1/file1 2/file1 | |
10 | ln 1/file2 2/file2 | |
11 | ||
12 | mkdir 2/.snap/s1 | |
13 | ||
14 | echo qwer >1/file1 | |
15 | grep asdf 2/.snap/s1/file1 | |
16 | ||
17 | rm -f 1/file2 | |
18 | grep asdf 2/.snap/s1/file2 | |
19 | rm -f 2/file2 | |
20 | grep asdf 2/.snap/s1/file2 | |
21 | ||
22 | rmdir 2/.snap/s1 | |
23 | rm -rf 1 2 | |
24 | ||
25 | echo OK |