Counting files created in /tmp

Sakari Jalovaara sja at sirius.hut.fi
Sat Feb 3 03:50:28 AEST 1990


>> how many files get created in the /tmp subdirectory
> modify the Unix kernel

Weell, you could write a user-level NFS server that gathers statistics
and mount /tmp using the server.

Ok, easier: NFS mount /tmp and write a program that monitors network
traffic and interprets any NFS packets that reference /tmp.

Not easy but possible... unless, of course, the local kernel caches
creat/unlink NFS requests.  Back to the drawing board?
									++sja



More information about the Comp.unix.questions mailing list