From: David S. <ds...@ja...> - 2005-05-16 22:04:56
|
On Mon, May 16, 2005 at 05:14:46PM -0400, David Shaw wrote: > Saw an interesting occurance today. There were two OPENs on the same > file (one O_RDONLY, one O_WRONLY). Data was successfully written to > the O_WRONLY fd, and read back from the O_RDONLY fd. > > Things got odd when the files were closed. The O_WRONLY file got a > FLUSH and a RELEASE as normal. Then the O_RDONLY file got just a > RELEASE, but with a pathname of "-". Did some more digging here, and I can reproduce this with fusexmp when hard_remove is set. NFS is not a factor. 1) In window 1, cat > /file/in/fuse 2) In window 2, rm /file/in/fuse 3) In window 1, ctrl-D Looks like the unlink calls remove_node, even though the file is still in use (from the open). The end result after the ctrl-D is that flush fails with ENOENT, and release gets called with a path of "-". David |