petdance has asked for the wisdom of the Perl Monks concerning the following question:
that refused to descend into the subdirectories on the NFS-mounted volume. I asked in the Chatterbox about it, and I was told that I had to add:#!/usr/bin/perl -w use strict; use File::Find; find( \&handler, "/mnt/morkcd" ); sub handler { print "$File::Find::name\n"; }
Sure enough, that fixed it, but why? Perl In A Nutshell simply says "Set this variable if you're using the Andrew File System (AFS)", and perldoc says "Set the variable $File::Find::dont_use_nlink if you're using AFS, since AFS cheats." So what's an "nlink", and why is this AFS-specific fix also an NFS-specific fix?$File::Find::dont_use_nlink = 1;
xoxo,
Andy
--
<megaphone>
Throw down the gun and tiara and come out of the float!
</megaphone>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Find bummers on an NFS volume.
by tadman (Prior) on Jul 31, 2001 at 20:34 UTC | |
by petdance (Parson) on Jul 31, 2001 at 20:44 UTC | |
by tye (Sage) on Aug 01, 2001 at 00:33 UTC | |
by bikeNomad (Priest) on Aug 01, 2001 at 01:56 UTC | |
by tye (Sage) on Aug 01, 2001 at 22:12 UTC | |
| |
by petdance (Parson) on Aug 01, 2001 at 01:22 UTC | |
by tye (Sage) on Aug 01, 2001 at 22:20 UTC | |
|
Re: File::Find bummers on an NFS volume.
by grinder (Bishop) on Jul 31, 2001 at 20:55 UTC |