NFS question

Doug Gwyn gwyn at brl-smoke.ARPA
Sun Jul 31 15:23:32 AEST 1988


In article <62172 at sun.uucp> swilson at sun.UUCP (Scott Wilson) writes:
->How do I recognize a file as being on
->a remote NFS filesystem?
-Under SunOS 4.0 at least, I believe the easiest way to do
-this is to stat the file, then compare the st_dev value
-with the st_dev value gotten from stat'ing all the mount
-points.  Use the getmntent(3) family to examine /etc/mtab
-to find out what has been mounted where.  When the st_devs
-match you can determine whether the file is NFS or not.

Wouldn't it be easier to access the file then see whether
the access time had been updated?



More information about the Comp.unix.questions mailing list