RE: Writing I/O intercepting driver in Linux

2006-06-19 Thread Michael Sternberg
Michael Sternberg wrote: We have to write driver that intercept all I/O to disk and notifies user-mode application with following data: block length and device number. What is a proper way to implement it: to write a block driver above disk layer or to implement a file system filter ? If we'll

Re: Writing I/O intercepting driver in Linux

2006-06-18 Thread Tzahi Fadida
I suggest you start by simply echo "1" >/proc/sys/vm/block_dump and turning off klogd http://linux.inet.hr/proc_sys_vm_block_dump.html If it is not enough, search the archive for a similar discussion i had a year ago. There is a code in the kernel where the block_dump is hooked thus, you can find

Re: Writing I/O intercepting driver in Linux

2006-06-18 Thread Baruch Even
Michael Sternberg wrote: > > We have to write driver that intercept all I/O to disk and notifies > user-mode application with following data: block length and device > number. What is a proper way to implement it: to write a block driver > above disk layer or to implement a file system filter ? If

Writing I/O intercepting driver in Linux

2006-06-18 Thread Michael Sternberg
We have to write driver that intercept all I/O to disk and notifies user-mode application with following data: block length and device number. What is a proper way to implement it: to write a block driver above disk layer or to implement a file system filter ? If we'll implement a file system