mikejones has asked for the wisdom of the Perl Monks concerning the following question:

I read http://www.perlmonks.org/?node_id=101209 and I want to know is there a simple way tell if a directory is an NFS volume? In this case one could use  $File::Find::dont_use_nlink = 0;

integrated with File::Find.

I was playing with

$ perl -le '$fs=qq(/export/var/opt/xefs01); $mt = ( stat("$fs") )[6]; +print $mt;' 0

$fs is an NFS filesystem but the code below with a non-NFS returns the same thing? please explain! thank you!
perl -le '$fs=qq(/opt); $mt = ( stat("$fs") )[6]; print $mt;' 0 <p/>

Replies are listed 'Best First'.
Re: follow up to "http://www.perlmonks.org/?node_id=101209" NFS stuff
by pc88mxer (Vicar) on Apr 25, 2008 at 20:02 UTC