[NTLUG:Discuss] File system modification tracker

Christopher Cox cjcox at acm.org
Wed Feb 13 17:19:52 CST 2013


My point is that it's "flat".. that is, you can watch the directory entries for 
a directory inode.  So.. for any new directory within a tree, you have to setup 
another callback.

Because inodes are name spaced for a filesystem (in general), I always wanted 
something that would tell me if an inode mod happened for the filesystem.. do 
you know if that's possible? (I know.. I'm drifting off the OP)


On 02/13/2013 03:18 PM, Ralph Green wrote:
> Howdy,
>    Yes, you can watch all the files in a directry.  In fact, that is
> all you can do.  You have to setup a separate inotify callback for
> each directory.
> Ralph
>
>
> On 2/13/13, Christopher Cox <cjcox at acm.org> wrote:
>> On 02/13/2013 12:49 PM, Ralph Green wrote:
>>> Leroy,
>>>     I think you want to identify the files that are changing.  At least
>>> that seems to be the first step.  I think I would just use a small
>>> program to hook into inotify and log what files are changed.  A python
>>> script to do that should be less than a page.  I can post a simple
>>> version of it, if it would help.
>>> Ralph
>>
>> Not sure if you can use inotify to "watch" a set of files in a directory
>> tree
>> though.  You can watch a "directory" (one level) and you can watch for
>> particular files... but since it's inode based, I don't think you can easily
>> do
>> more (just guessing though).
>>
>>
>>
>> _______________________________________________
>> http://www.ntlug.org/mailman/listinfo/discuss
>>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>




More information about the Discuss mailing list