On Wed, Oct 12, 2011 at 10:50 AM, V.Ravikumar
<ravikumar.vallabhu@gmail.com> wrote:
Other than fanotify , I can achieve my requirement through a driver/module. If this can be achieved through a driver/module please provide me inputs to start.
Thanks,
Ravi
Hi Ravi,
See, first of all if you want to notify file/dir change you need to the control after the invocation of that i_ops or f_ops. So there are two ways in which you can do : -
1. Easy & recommended : -
Write a stackable file system module. The aim of this module will be to intercept vfs-calls on files/dirs & then call the underlying file systems specific operations. Now after completion of this operation, you would generate the change event here which will be used to notify.
Note : - stackable file system research work was done by Professor Erez Zadok.
refer ecryptfs for an example.