File System Type (statfs, sysfs)

Guy Harris guy at gorodish.Sun.COM
Thu Jun 2 05:15:48 AEST 1988


> If you stat(2) a remote file you get the high order bit of st_dev
> turned on so you can tell that it is remote if you want to.  Also the
> major number tells which machine it resides on.  And the minor
> number tells which filesystem on the remote machine the file
> resides on.

Note that, as far as I know, none of this is documented anywhere; therefore, it
should be considered a quirk of the implementation, *not* a documented part of
the interface.  It happens to work under S5R3, but it may break someday.

Note also that "remote vs. local" is only one potentially-interesting file
system attribute; "/proc" is, arguably, a local file system, but you would
rarely want "find /" to go traipsing down it.



More information about the Comp.bugs.sys5 mailing list