why KAUTH_SCOPE_FILEOP behaviour varies for different drives?
why KAUTH_SCOPE_FILEOP behaviour varies for different drives?
- Subject: why KAUTH_SCOPE_FILEOP behaviour varies for different drives?
- From: simran charley <email@hidden>
- Date: Tue, 10 Jun 2014 15:13:53 +0530
Hello all,
I am using KAUTH_SCOPE_FILEOP listener, to get file related operation notification.
Found that, When we try to paste file from local drive to any network drive connected using "smb" KAUTH_FILEOP_CLOSE event with dirty TRUE gets generated, and same behaviour is for drives shared using `afp`.
For drives shared using "smb", when I copy-paste file (from-to) same drive, KAUTH_SCOPE_FILEOP system delivers proper KAUTH_FILEOP_CLOSE event.
But different behaviour came after I copy-paste file from network drive to same drive using connection type "afp".
Behaviour is like,
when I copy-paste file from "afp" shared drive to itself KAUTH_FILEOP_DELETE event gets generated.
So I want to ask that why KAUTH_SCOPE_FILEOP not delivering KAUTH_FILEOP_CLOSE event for the file.
Or is there another way to get KAUTH_FILEOP_CLOSE event notification.
Thanks in advanced.
_______________________________________________
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