finding the filesystem of a file

Guy Harris guy at auspex.auspex.com
Thu Nov 8 07:42:23 AEST 1990


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



More information about the Comp.unix.shell mailing list