summaryrefslogtreecommitdiffstats
path: root/tests/gnu/fstype_umount.sh
blob: e8178312795fb7cee5058c5da65fdf9da88b0065 (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
trap "bfs_sudo umount -R scratch/tmp" EXIT

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