Index

Subject : Re: LUG: Finding files currently being written to disk

From : Ian Kilgore <imkilgor@ncsu.[redacted]>

Date : Mon, 07 Jun 2010 22:34:51 -0400

Parent


On Sun, Jun 6, 2010 at 12:17 PM, Alexander Ray <alexjray.ncsu@gmail.[redacted]> wrote:
> the more general answer to your question might be 'lsof' but thats like
> drinking from the firehose. �it shows files in use so *somewhere* in there
> is what you want... assuming its a file, and not just being buffered to a
> memory location allocated by flash.
> ~alex
>

There are hooks in the kernel for this so you don't have to poll. See
inotify <http://en.wikipedia.org/wiki/Inotify> and FAM (file
alteration monitor).
--
ik