Hi Garth, I need to log every single file that is accessed in a particular directory. It need not be accessed by the same process. Ideally I should be able to tell it to start logging a particular directory and every file that is accessed in that directory should be logged. ktrace seems to generate a huge amount of output and from what I have figured so far, it doesn't give you the filenames(full path) of the files accessed Thanks --- Garth Cummings <gcummings@apple.com> wrote:
Hi Krishna,
On Jun 16, 2004, at 4:19 PM, Krishna Monian wrote:
Hi All,
I am currently trying to write a file logger,
which
logs every single file access (read, write,
delete) on
a specified volume.
Could someone brief me on what would the best way
be
to go about doing this. Would it have to be in
kernel
mode or can it be done in user mode?
Is it in anyway similar to the SampleFilterScheme
example posted on Apple's website.
http://developer.apple.com/samplecode/SampleFilterScheme/
SampleFilterScheme.html
No, because at that layer you only know that so many
bytes are being
read from or written to the disk starting at a given
block. There's no
file or volume information at the filter scheme
layer.
How about using ktrace(1)?
Thanks
Krishna Monian
__________________________________________________________________
Garth Cummings
Apple Developer Technical Support
gcummings@apple.com
The Platform. The People. The Possibilities.
Connect at WWDC 2004.
ATTACHMENT part 2 application/pkcs7-signature
name=smime.p7s __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.