DragonFly users List (threaded) for 2007-06
DragonFly BSD
DragonFly users List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Watching a file system


From: Dave Hayes <dave@xxxxxxxxxxx>
Date: Tue, 26 Jun 2007 13:51:22 -0700

Matthew Dillon <dillon@apollo.backplane.com> writes:
>     If you just want a summary of what files were accessed you can use
>     ncptrace from /usr/src/test/debug/ncptrace.c.  Read the header on
>     how to compile it.  You would then be able to 'ncptrace /mnt' (or 
>     wherever you mounted the CD) to dump the namecache for that mount
>     point.  You can clear the cache by unmounting and remounting the CD.

# cc -I/usr/src/sys ncptrace.c -o /usr/local/bin/ncptrace -lkvm
ncptrace.c: In function `dumpncp':
ncptrace.c:133: warning: comparison is always true due to limited range of 
data type
ncptrace.c:143: error: `NCF_MOUNTPT' undeclared (first use in this function)
ncptrace.c:143: error: (Each undeclared identifier is reported only once
ncptrace.c:143: error: for each function it appears in.)

I do like this idea though.
------
Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org 
>>> The opinions expressed above are entirely my own <<<

A man had lost a ring. His friend stopped by that morning
and offered to help. By late-afternoon, his friend remarked
"I don't see it anywhere. Are you sure you lost your ring
here?"
"Oh no," replied the man, "I lost it in the room over
there...but the room is too dark. Here I can see better."





[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]