Open nwf opened 11 months ago
This is... shockingly fundamental to fuse-overlayfs
? Does it just not track open handles? It certainly looks like it doesn't, given the code at
https://github.com/containers/fuse-overlayfs/blob/6452d53e83900678f1ead86400332cd7975a1395/main.c#L5409-L5419
I ran into this, and it is a fatal bug for my workflow.
I am on an Ubuntu box, using default repositories
$ fuse-overlayfs --version
fuse-overlayfs: version 1.7.1
FUSE library version 3.10.5
using FUSE kernel interface version 7.31
fusermount3 version: 3.10.5
Running the following straightforward sequence on a
fuse-overlayfs
mountbreaks thusly
and leaves behind a zero-byte file:
strace
-ing that failingcp
shows thatcopy_file_range
is failing:strace
-ingfuse-overlayfs
itself shows that it attempts to re-open the file rather than using the open handle it already has, resulting in different access semantics:The system running this is a pretty bog-standard Debian box, save that it's ppc64le, but that shouldn't matter here.
fuse-overlayfs
is their build of version 1.10.