Can a write vnop occur after close when mmap'd?
Can a write vnop occur after close when mmap'd?
- Subject: Can a write vnop occur after close when mmap'd?
- From: Rick Macklem <email@hidden>
- Date: Thu, 9 Jul 2009 14:45:17 -0400 (EDT)
Hi,
I recently discovered that, on FreeBSD, it is possible to have read/write
vnops occur for a vnode after the close vnop when the file is mmap'd. The
Leopard man page seems to suggest that the same is true for Leopard, but
that might just be because the man page was copied from FreeBSD. When I
looked in xnu-1228, I got lost:-)
So, can VNOP_READ() and/or VNOP_WRITE() calls happen after VNOP_CLOSE()
when the vnode has been mmap'd on Leopard?
For FreeBSD, because of the above, I had to move the NFSv4 Close Ops into
vop_inactive(). If the answer to the above is "yes", would the I/O be
done by the time VNOP_INACTIVE() is called? (--> so the same fix should
work)
Thanks in advance for any help, rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden