How to get destination file path during copy/paste operation using Kauth-API
How to get destination file path during copy/paste operation using Kauth-API
- Subject: How to get destination file path during copy/paste operation using Kauth-API
- From: Ganesh Bawaskar <email@hidden>
- Date: Wed, 09 Oct 2013 11:39:11 +0530
I want to log destination file path during copy/paste operation using Kauth-API in driver.
There are two scenario.
1. When user paste file in any directory , we get exact KAUTH_VNODE_WRITE_DATA event on file which is being copied.So its possible for us to get destination path including that file name.So its fine.
But problem is in second scenario
2. When I paste folder into other directory,I don't get exact KAUTH_VNODE_WRITE_DATA event on inner files in that folder. In this case we get (KAUTH_VNODE_WRITE_DATA | KAUTH_VNODE_ACCESS) event on both source and destination path files in that folder.So how to distinguish this.
My intention is when user paste folder in other directory , we should be able to log destination file path for inner files in that folder.
Note:I am handing events only on File vnode
Any help will be highly appreciated..
Thanks .
Ganesh Bawaskar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden