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

rm -rf 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