Is there any way to keep track of number of times each file system is accessed through system calls? I know that the super block will contain the details about the file system. But how can we access the superblock?

  • There are several layers of abstraction between the user doing a file operation and that data actually touching the disk. You'll need to be more specific about what exactly it is that you want to keep track of and what filesystems are being used. – David King Nov 13 '15 at 20:37
  • If a file is being opened , how do we find out which file system the file belongs to? – Robin Nov 14 '15 at 5:24

Have a look at dtrace4linux and sysdig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.