Re: Classify VNODE SCOPE actions for file operations
Re: Classify VNODE SCOPE actions for file operations
- Subject: Re: Classify VNODE SCOPE actions for file operations
- From: sheetal phirke <email@hidden>
- Date: Thu, 07 Apr 2011 14:37:45 +0530 (IST)
Hi All,
Waiting for your response…..
Appreciate your any hint regarding this, as It is hard to find these by reading documents or tryouts in kauth.
Thanks,
Sheetal.
From: sheetal phirke <email@hidden>
To: email@hidden
Sent: Fri, 25 March, 2011 3:35:00 PM
Subject: Classify VNODE SCOPE actions for file operations
Hello,
I am trying to classify the events I get when I do certain file operations.
1. When I create a new file I get KAUTH_VNODE_ADD_FILE. Here vp is returned as the directory in which the file gets created and dvp is NULL. Is there a way for me to get the name of the newly created file.
2. When I open a file I get the KAUTH_VNODE_READ_DATA action. I get the same action when I read the file. Is is possible to identify when in KAUTH_VNODE_READ_DATA, whether the event took place because of reading the file or because of opening the file. I want to differentiate
the read operation from open operation as I need to do separate activities in case of each event.
Appreciate your timely response.
Thanks,
Sheetal
_______________________________________________
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