Article View: comp.bugs.sys5
Article #790Re: File System Type (statfs, sysfs)
From: Guy Harris
Date: Wed, 01 Jun 1988 19:15
Date: Wed, 01 Jun 1988 19:15
13 lines
1125 bytes
1125 bytes
> 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.
Technical Details
Message-ID:
<55038@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!ames!oliveb!sun!gorodish!guyReferences:
<479@uniq.UUCP> <681@labtam.OZ>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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