summaryrefslogtreecommitdiffstats
path: root/tests/common/inum_bind_mount.sh
blob: 625ee3d0c2f5eb09f2305d32a938324b0dc8efbb (plain)
1
2
3
4
5
6
7
8
9
10
test "$SUDO" || skip
test "$UNAME" = "Linux" || skip

clean_scratch
"$XTOUCH" scratch/{foo,bar}

sudo mount --bind scratch/{foo,bar}
trap "sudo umount scratch/bar" EXIT

bfs_diff scratch -inum "$(inum scratch/bar)"