Article View: comp.unix.shell
Article #1721Re: finding the filesystem of a file
From: Guy Harris
Date: Wed, 07 Nov 1990 20:42
Date: Wed, 07 Nov 1990 20:42
9 lines
975 bytes
975 bytes
>Also, on SVR4 systems, [I know this doesn't help you Dave, just throwing >out some additional things] you can use the statvfs() call. > int statvfs(char *path, struct statvfs *buf); >The field buf->f_fstr will give the filesystem name. Assuming that's what the particular file system type puts there. The manual page describes it as a "file-system specific string", so a file system type could put a string giving its author's birthday there if it chooses to....
Technical Details
Message-ID:
<4264@auspex.auspex.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!auspex!guyReferences:
<6500@emory.mathcs.emory.edu> <10243@jpl-devvax.JPL.NASA.GOV> <1990Nov6.195105.21043@cbnewsc.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.shell Subject: Re: finding the filesystem of a file Keywords: filesystem search find file Message-ID: <4264@auspex.auspex.com> Date: 7 Nov 90 20:42:23 GMT References: <6500@emory.mathcs.emory.edu> <10243@jpl-devvax.JPL.NASA.GOV> <1990Nov6.195105.21043@cbnewsc.att.com> Distribution: usa Organization: Auspex Systems, Santa Clara Lines: 9