[dtrace-discuss] Re: Re: Re: How to monitor any access to a specific file using drace

David Chen xinchen at lucent.com
Mon Jan 22 23:55:25 PST 2007


Hi ZhiJun,
Wow! Great, it's almost what I want. Thanks a lot.
I tried the script and found a little problem, when I did "mv file file.bak", i.e. rename the file under same directory, it can't be detected, I believe it dues to the internal implementation of "mv", but I don't know which VFS function I should use to detect it. BTW, I can't find VFS functions in solaris dtrace guide, where can I look for the reference of VFS?
Additionally, I want to add some other info into the output, for example, the user id, command name, date and time, could you pls help for a example? I'm totally a newbie on dtrace and I only know using "execname" to get command info, it works fine for commands such as "cp", "cat", "more","touch","vi" etc, but for some other command ("crypt" as I tried ), the output command info is "ksh", is there any way to get the correct command info?

Regards
David
 
 
This message posted from opensolaris.org


More information about the dtrace-discuss mailing list