Unix Technical Forum

get file system type name

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:42 PM
iam.techy@gmail.com
 
Posts: n/a
Default get file system type name

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:42 PM
vasanth
 
Posts: n/a
Default Re: get file system type name


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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:42 PM
iam.techy@gmail.com
 
Posts: n/a
Default Re: get file system type name

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com