Linux Kernel - programmatically retrieve block numbers as they are written to

Posted by SpdStr on Stack Overflow See other posts from Stack Overflow or by SpdStr
Published on 2010-04-10T16:45:02Z Indexed on 2010/04/10 16:53 UTC
Read the original article Hit count: 332

I want to maintain a list of block numbers as they are physically written to using the linux kernel source. I plan to modify the kernel source to do this. I just need to find the structure and functions in the kernel source that handle writing to physical partitions and get the block numbers as they write to the physical partition.

Any way of doing this? Any help is appreciated. If I can find where the kernel is actually writing to the partitions and returning the block numbers, that'd work.

© Stack Overflow or respective owner

Related posts about kernel-programming

Related posts about linux-kernel