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

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