Re: Watching a file system

2007-06-26 Thread Matthew Dillon
:# 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 un

Re: Watching a file system

2007-06-26 Thread Dave Hayes
Matthew Dillon <[EMAIL PROTECTED]> 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

Re: Watching a file system

2007-06-26 Thread Matthew Dillon
:Matthew Dillon <[EMAIL PROTECTED]> writes: :> You can monitor system calls made by programs with ktrace. : :Ok, but what if I want to watch access to a particular file system :(e.g. a mounted cdrom) by *all* system processes? :) :-- :Dave Hayes - Consultant - Altadena CA, USA - [EMAIL PROT

Re: Watching a file system

2007-06-26 Thread Matthew Dillon
: While you're at it would you commit the patch for implementing :jscan -o (in the submit@ archives title "Patch to implemet jscan -o") ? :Ah heck here it is again :) How'd I miss that! Committing it now. -Matt

Re: Watching a file system

2007-06-26 Thread Dave Hayes
Matthew Dillon <[EMAIL PROTECTED]> writes: > You can monitor system calls made by programs with ktrace. Ok, but what if I want to watch access to a particular file system (e.g. a mounted cdrom) by *all* system processes? :) -- Dave Hayes - Consultant - Altadena CA, USA - [EMAIL PROTECTED]

Re: Watching a file system

2007-06-26 Thread Steve O'Hara-Smith
On Tue, 26 Jun 2007 12:41:08 -0700 (PDT) Matthew Dillon <[EMAIL PROTECTED]> wrote: > > :Is there a way to log all pathnames accessed by a specific mounted > :file system? > :-- > :Dave Hayes - Consultant - Altadena CA, USA - [EMAIL PROTECTED] > :>>> The opinions expressed above are entirely

Re: Watching a file system

2007-06-26 Thread Matthew Dillon
:Is there a way to log all pathnames accessed by a specific mounted :file system? :-- :Dave Hayes - Consultant - Altadena CA, USA - [EMAIL PROTECTED] :>>> The opinions expressed above are entirely my own <<< You can monitor system calls made by programs with ktrace. you can monitor

Watching a file system

2007-06-26 Thread Dave Hayes
Is there a way to log all pathnames accessed by a specific mounted file system? -- Dave Hayes - Consultant - Altadena CA, USA - [EMAIL PROTECTED] >>> The opinions expressed above are entirely my own <<< "War doesn't determine who's right. War determines who's left."