This is a discussion on get file system type name within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi, Is there a exported routine, which I can use in my kernel module to get the file system ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, Is there a exported routine, which I can use in my kernel module to get the file system type name. Just like I use sysfs(GETFSTYP,...) in the userspace application code, and get the filesystem type name as vxfs or ufs/hfs or nfs etc. Thanks |
| |||
| iam.techy@gmail.com wrote: > Hi, > Is there a exported routine, which I can use in my kernel module > to get the file system type name. Just like I use sysfs(GETFSTYP,...) > in the userspace application code, and get the filesystem type name as > vxfs or ufs/hfs or nfs etc. > > Thanks Hello In the kernel there is no such interface available it seems. You have to get the vnode of the file system mount path using lookupname() and take the vfstype - it is an enum. The definition of vfstype is available in the vnode.h. Please check. The lookupname returns 2 vnodes After getting the type info you want release the vnodes. hth, regards, vasanth. |
| ||||
| Well I probably want this information for any file system which is not already mounted. Ok, have got a similar question How do I get vfsops information for a given file system. Again better if I can get this information irrespective of mounted or not. Thanks. |