summaryrefslogtreecommitdiffstats
path: root/tests/gnu/fstype_umount.sh
blob: b6da7a3e4de51c759042a49e70f589cc84abf3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
test "$UNAME" = "Linux" || skip

clean_scratch

mkdir scratch/tmp
bfs_sudo mount -t tmpfs tmpfs scratch/tmp || skip
defer bfs_sudo umount -R scratch/tmp

mkdir scratch/tmp/ram
bfs_sudo mount -t ramfs ramfs scratch/tmp/ram || skip

bfs_diff scratch/tmp -path scratch/tmp -exec "${SUDO[@]}" umount scratch/tmp/ram \; , -fstype ramfs -print