Classify VNODE SCOPE actions for file operations
Classify VNODE SCOPE actions for file operations
- Subject: Classify VNODE SCOPE actions for file operations
- From: sheetal phirke <email@hidden>
- Date: Fri, 25 Mar 2011 15:35:00 +0530 (IST)
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