summaryrefslogtreecommitdiffstats
path: root/tests/posix/overlayfs.sh
blob: 21ef22fcad0361f6a472a7739a4fca849114128e (plain)
1
2
3
4
5
6
7
8
9
10
11
test "$UNAME" = "Linux" || skip

cd "$TEST"
"$XTOUCH" -p lower/{foo,bar,baz} upper/{bar,baz/qux}

mkdir -p work merged
bfs_sudo mount -t overlay overlay -olowerdir=lower,upperdir=upper,workdir=work merged || skip
defer bfs_sudo rm -rf work
defer bfs_sudo umount merged

bfs_diff merged