I have implemented a new NAS filer recently, and after mounting it on a Linux server, the Perl interpreter (version 5.005_03) is unable to recognize the existence of files on that mount:
[root@server ~]# stat /newmount/testfile
File: `/newmount/testfile'
Size: 0 Blocks: 0 IO Block: 65536 regular empty file
Device: 48h/72d Inode: 9262698097446760736 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 500/ testuser) Gid: ( 500/ testuser)
Access: 2017-02-22 16:44:21.218314000 +0200
Modify: 2017-02-22 16:44:21.218314000 +0200
Change: 2017-02-22 16:44:21.218314000 +0200
[root@server ~]# perl -e 'print "File Exists\n" if -e "/newmount/testfile";'
[root@server ~]#
The interesting thing here, is this:
When I try with a newer version of the interpreter (like perl, v5.8.8) it works:
[root@server ~]# perl -e 'print "File Exists\n" if -e "/newmount/testfile";'
File Exists
[root@server ~]#
What am I missing on the old Perl?
Thanks in advance!