How to determine name of file which owns a block number on a FS?
I need to monitor file reads&writes by all the apps. I have found a kernel feature /proc/sys/vm/block_dump. But it only gives me block numbers while i would like to know file names. How can i convert these block numbers to file names (if the blocks belong to a file, of course)?
|
Quote:
Code:
# asserting ext file-system: Quote:
|
Quote:
strace will not suffice for this (and it would be even more hard to convert file handles in read()/write() to file names). |
Why not try ready-made tools like http://www.bootchart.org/ first?
|
All times are GMT -5. The time now is 06:42 AM. |