summaryrefslogtreecommitdiffstats
path: root/tests/common/inum_mount.sh
blob: 91d06e2d4a20a6d26c7fcca097b8efa814e881e4 (plain)
1
2
3
4
5
6
7
8
9
10
test "$SUDO" || skip
test "$UNAME" = "Darwin" && skip

clean_scratch
mkdir scratch/{foo,mnt}

sudo mount -t tmpfs tmpfs scratch/mnt
trap "sudo umount scratch/mnt" EXIT

bfs_diff scratch -inum "$(inum scratch/mnt)"