How do I determine programatically what kind of file system a given file is on?



I am doing some experiments in file locking for non-cooperative processes.
I want my program to figure out for itself what kind of file system (ext2,
ext3, nfs, smb, etc.) the file is on, so I can compare and contrast the
different kinds of file locking.

Is there a way to determine what kind of file system the file is on?


Many thanks,


Jeff Silverman

.



Relevant Pages

  • Re: Not impressed.
    ... > On ext2 it's relatively easy to corrupt the file system. ... > shut it down ungracefully and there would be corrupt flash files. ... > circumstances should anyone ever run ext2 though, ... I doubt she was running ext2 since Redhat uses ext3 by default. ...
    (linux.redhat)
  • Re: Not impressed.
    ... > On ext2 it's relatively easy to corrupt the file system. ... > shut it down ungracefully and there would be corrupt flash files. ... > circumstances should anyone ever run ext2 though, ... I doubt she was running ext2 since Redhat uses ext3 by default. ...
    (alt.os.linux.redhat)
  • Re: inode table
    ... > This information is stored in the file system. ... > the ext2 and ext3 file systems have a way of doing this too. ... > to dump the contents of an inode to the screen. ...
    (comp.os.linux.setup)
  • Re: ext2 vs ext3?
    ... The performance difference between EXT2 and EXT3 is minimal, ... the performance of the file system won't make any difference to you. ...
    (comp.os.linux.misc)
  • Re: How to disable file system integrity check in linux
    ... U>>i want to disable the file system integrity check that comes up during ... U>>i want to disable the creation of journals in my ext3 system.... ... ext3 is ext2 with journaling. ...
    (comp.os.linux.misc)