MLUG: Re: [MLUG] filesystem hooks
Re: [MLUG] filesystem hooks
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I'm certainly no kernel hacker, but sometimes even the dense ones come 
up with a good idea...
Would it be possible to simply "add" another function to the filesystem 
in the section that pertains to writing files?

Rick

Michael wrote:

>Whatg I'm doing is intercepting file writes from various sources and
>taking the ones that interest me to duplicate in a database. Without
>interferring with the normal behavior of the programs writing to the
>filesystem. ;)
>
>Don't dream it. Be it.
>
>;):):-):):-):):-)8')
>Michael McGlothlin <EMAIL:PROTECTED>
>http://kavlon.org/projects/
>
>On Thu, 1 Aug 2002, Jonathan King wrote:
>
>  
>
>>On Thu, 1 Aug 2002, Dave Lloyd wrote:
>>
>>    
>>
>>>>So what are you really trying to do here?
>>>>
>>>>jking
>>>>        
>>>>
>>>I was wondering the same thing.  Plus, this would *really,
>>>really, really* slow down your system.  Maybe grind it to a
>>>halt.  Think of the overhead in forking, interpreting then
>>>executing a shell script each time a file is written.
>>>      
>>>
>>Euuw. I hadn't thought about that.  And in this case, not
>>even a daemon would save you since that would have to fork, too,
>>to handle multiple requests.
>>
>>OK, so here's another idea: instead of messing around with the file
>>system in this case, why not just accept the fact that you're asking
>>for functionality that is really more in tune with a database that
>>has triggers?  You're still looking at a lot of crunching around,
>>but you could at least cut down on the process creation overhead,
>>handle the transactions atomically, and get accounting built-in,
>>too.
>>
>>So what are you really trying to do here?
>>
>>jking
>>
>>--
>>To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
>>
>>Archives are available at http://mlug.missouri.edu/list-archives/
>>
>>    
>>
>
>--
>To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
>
>Archives are available at http://mlug.missouri.edu/list-archives/
>  
>

--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/