NFS v4 Input/output error when reading directory listing containing files longer than 255 bytes
Issue
-
Issuing an 'ls' on a NFS4 mounted directory with filenames longer than 255 bytes results in:
# ls -l 008 ls: reading directory 008: Input/output error -
The following is seen in /var/log/messages:
Feb 14 17:28:35 hostname kernel: NFS: giant filename in readdir (len 0x300) -
The issue does not occur with the same client and server, but using NFS v3:
# ls -l 008/ total 4892 -rwxr--r-- 1 ron EE_p6 382416 Sep 26 2000 ?????001.JPG -rwxr--r-- 1 ron EE_p6 372800 Sep 26 2000 ?????002.JPG -rwxr--r-- 1 ron EE_p6 364739 Sep 26 2000 ?????003.JPG -rwxr--r-- 1 ron EE_p6 367858 Sep 26 2000 ?????004.JPG -rwxr--r-- 1 ron EE_p6 377850 Sep 26 2000 ?????005.JPG
Environment
- Red Hat Enterprise Linux 5
- kernel ≤ 2.6.18-238.1.1.el5
- NFS server is NetApp FAS3240
- NetApp Release 8.0.1 7-Mode
- NFSv4 protocol between Linux client and NetApp server
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
