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

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