]> git.proxmox.com Git - ceph.git/blame - ceph/qa/workunits/fs/snaps/snaptest-hardlink.sh
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / qa / workunits / fs / snaps / snaptest-hardlink.sh
CommitLineData
11fdf7f2
TL
1#!/bin/sh -x
2
3set -e
4
11fdf7f2
TL
5mkdir 1 2
6echo asdf >1/file1
7echo asdf >1/file2
8
9ln 1/file1 2/file1
10ln 1/file2 2/file2
11
12mkdir 2/.snap/s1
13
14echo qwer >1/file1
15grep asdf 2/.snap/s1/file1
16
17rm -f 1/file2
18grep asdf 2/.snap/s1/file2
19rm -f 2/file2
20grep asdf 2/.snap/s1/file2
21
22rmdir 2/.snap/s1
23rm -rf 1 2
24
25echo OK