home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] LKM: redirect file operations

Taoufik Dachraoui wrote:
Dear,

I would like to create a Loadable Kernel Module that redirects the file
operations of a given filename
to the functions defined in the module such that whenever any process calls
a redirected file
I can see the appeal of this, but this would certainly incur a performance penalty (checking the name/inode) on every file operation done on the system. Would you not be better to write a daemon function to monitor the specific file, checking for alterations and performing whatever magic you wish on after the fact? This way no performance penalty is added to everything else using the file system.

Sounds like you want whatever is happening to be transparent to the user. Or you don't want the user to see the magic performed.
--
Bill

references