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

clean_scratch
"$XTOUCH" scratch/{foo,bar}
sudo mount --bind scratch/{foo,bar}

bfs_diff scratch -inum "$(inum scratch/bar)"
ret=$?

sudo umount scratch/bar
return $ret