Monitoring Disk Access With FileName & data
I want to monitor the disk access, for that I am directly modifying read_write.c that contains calls vfs_read and vfs_write that manages disk access on virtual layer.
but to do some operation on that data ,
(right now i just want to append to a file that vfs_write was called with '.....' these parameters),
So, we can have one Daemon process (or for this time just some user space process) that will do all operations in user space.. and read_write.c will directly transfer disk access detils to it..
i'm still working on IPC to handle messaging from kernel space to user space.
I'm getting disk access details in read_write.c...
how do i get the information in user space, say in a FIFO...??
when i tried to write info to a fifo, i'm getting "-14" error to "write" (tried both write system call and write in file descriptor)