mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-12 00:35:46 -04:00

fix an interesting interaction between unlink(2) and readdir(2) that can confuse the cache. If a file is unlinked before the readdir(2) is done, it is not removed from the list generated when the directory was first opened. Thus the result is that readdir(2) will return the file even if it was unlinked and moved to the work dir until the cache is released. The fix is to skip dentries that are hidden while iterating the list. Closes: https://github.com/containers/libpod/issues/2342 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
fuse-overlayfs
An implementation of overlay+shiftfs in FUSE for rootless containers.
Limitations:
Read-only mode is not supported, so it is always required to specify an upperdir and a workingdir.
Usage:
$ fuse-overlayfs -o lowerdir=lowerdir/a:lowerdir/b,upperdir=up,workdir=workdir merged
Specify a different UID/GID mapping:
$ fuse-overlayfs -o uidmapping=0:10:100:100:10000:2000,gidmapping=0:10:100:100:10000:2000,lowerdir=lowerdir/a:lowerdir/b,upperdir=up,workdir=workdir merged
Build Requirements:
This links to libfuse > v3
On fedora: dnf install fuse3-devel
Static Build:
buildah bud -t ./Dockerfile.static .
Description
Languages
C
61.4%
M4
33.3%
Shell
2.2%
Makefile
2.1%
Roff
0.7%
Other
0.3%