Re: Exploring locks in darwin
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 15/01/2005, at 1:05, Yogesh P wrote: Hi Folks, I am going through the implementation of the locking available in vfs for holding the write call for fraction of time to initialize the snapshot module. Can somebody point me about the vn_lock function which is used by lots of syscall under bsd kernel. Can we directly use the vn_lock function to lock the write calls? _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... from my (limited) understanding of the vfs, this is not what you're looking for. I think vn_lock acts (as the name suggests) on a single vnode, not the whole filesystem. It won't suit your purposes if you're trying to lock out all writes to the entire volume. are you trying to add snapshots to HFS+ specifically, or just in a general way to all vfs file systems? Is there any reference document which will make me understand the functionality of simple_lock,simple_unlock,VOP_LOCK and VOP_UNLOCK under darwin kernel. This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Bergmann