jacereda / fsatrace

Filesystem access tracer
ISC License
81 stars 12 forks source link

trace readdir #12

Open droundy opened 8 years ago

droundy commented 8 years ago

For fac/bigbro, readdir is an important operation to trace. It's needed if you have a build rule such as:

echo *.c > file.dat

in which case the rule needs to be rebuilt if a new file is created in that directory.

jacereda commented 8 years ago

Would it require a separate operation type or is a 'read' of the directory enough?

droundy commented 8 years ago

Different system calls are used for reading directories. I would output it as a separate type as well (and do so), since tools might want to ignore changes to directories, and it saves effort to treat them as distinct, to avoid the need for the caller to stat each reported read.

On Mon, May 23, 2016 at 11:21 AM jacereda notifications@github.com wrote:

Would it require a separate operation type or is a 'read' of the directory enough?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/jacereda/fsatrace/issues/12#issuecomment-221046604