🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9868

How do you test if a file is remote mounted (N

#9868
From: Kevin Porter
Date: Thu, 22 Dec 1988 14:37
10 lines
1048 bytes
Is there any quick way (in user mode) to find out if a file is remote
mounted on an NFS file system? We have a way of finding out the name of
the host using the same algorithm as df(1) however this is quite slow. Is
there anything magic about the st_dev value returned by stat(2) that
indicates that the file is remote mounted? If there is, can we be sure
that this will not change from implementation to implementation?  We are
mainly concerned with Sun and Gould versions of NFS.  Any help in this
area would be appreciated. Thanks in advance.

kevin@memex.co.uk
Technical Details
Message-ID: <200@memex.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: mcvax!memex.co.uk!kevin@uunet.uu.net (Kevin Porter)
Newsgroups: comp.sys.sun
Subject: How do you test if a file is remote mounted (N
Message-ID: <200@memex.co.uk>
Date: 22 Dec 88 14:37:01 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 10
Approved: Sun-Spots@rice.edu
Original-Date: 16 Dec 88 15:49:44 GMT
X-Sun-Spots-Digest: Volume 7, Issue 73, message 7 of 12