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

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

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

sudo umount scratch/bar
return $ret