Xref: utzoo comp.bugs.sys5:456 comp.unix.wizards:9042
Path: utzoo!attcan!uunet!husc6!mailrus!ames!oliveb!sun!gorodish!guy
From: guy@gorodish.Sun.COM (Guy Harris)
Newsgroups: comp.bugs.sys5,comp.unix.wizards
Subject: Re: File System Type (statfs, sysfs)
Keywords: System V Release 3.1.1 Version 3 for AT&T 3B2
Message-ID: <55038@sun.uucp>
Date: 1 Jun 88 19:15:48 GMT
References: <479@uniq.UUCP> <681@labtam.OZ>
Sender: news@sun.uucp
Lines: 13

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