Closed GoogleCodeExporter closed 9 years ago
> "Please don't hide them."
Well.
The fact that you don't see every single open message is an unfortunate aspect
of the MacFUSE
implementation. It's working "as designed".
In the MacFUSE vnop_open (vnode-level open) function, I don't have access to
the file descriptor that is being
used for the open. Similarly, in vnop_close, I don't have access to the file
descriptor. Throw in opens that
might be required from other code paths (such as the strategy routine, which
would need file handles
asynchronously), and the situation is worse. Given what the Mac OS X kernel
lets a VFS kernel extension do, it
isn't possible to correlate the opens and closes based on the most appropriate
thing: the file descriptor. The
current MacFUSE compromise is to reuse file handles (with reference counting).
This means you will not see all
opens go through to user-space, because if they did go to user-space, MacFUSE
wouldn't know what to do
with the file handle user space would generate for each open.
Original comment by si...@gmail.com
on 28 Mar 2007 at 12:37
Marking this as "WontFix" because this is a known architectural side effect.
Original comment by si...@gmail.com
on 28 Mar 2007 at 3:12
Original issue reported on code.google.com by
russ...@gmail.com
on 27 Mar 2007 at 1:19Attachments: