You should be able to find this out by using the *f_vfsmnt variable in the file struct. That will describe the mounted file system. That's found in linux/fs.h Also you can use the super_block data struct. That will tell you the file system type ext3, ext2 whatever. I think that's the way I'd do it.. but don't take my word for it.. :) -stv -> -----Original Message----- -> From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies- -> bounce@xxxxxxxxxxxx] On Behalf Of Can Sar -> Sent: Tuesday, July 05, 2005 9:00 AM -> To: kernelnewbies@xxxxxxxxxxxx -> Subject: Finding out FS type of a file -> -> Hi, -> -> I need a simple way to figure out if a struct file or struct inode is a -> mounted NFS share (or some other specific file system) or not. Is there -> any -> simple way of doing such a check from inside a module? -> -> Thank you very much for your help, -> Can Sar -> -> -- -> Kernelnewbies: Help each other learn about the Linux kernel. -> Archive: http://mail.nl.linux.org/kernelnewbies/ -> FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/