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

clean_scratch
mkdir scratch/{foo,mnt}
sudo mount -t tmpfs tmpfs scratch/mnt

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

sudo umount scratch/mnt
return $ret