getcwd() fails with "No such file or directory" within NFSv4 mount point

This document (7015695) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 11 SP3


There are different scenarios during which this issue might happen. Just one is described below as an example.
This issue does appear on a system running SLES 11 SP3 with 3.0.101-0.35:
Executing "pwd" in an NFSv4 mount point fails in function getcwd(); here is the demonstration:
These two types of mounts were used to reproduce the problem:
NFSv3: on /mnt type nfs (rw,addr=
NFSv4: on /mnt type nfs4 (rw,addr=,clientaddr=
Results of commands executed within /mnt:
3.0.101-0.31 - NFSv3:
$ strace pwd 2>&1 | grep getcwd 
getcwd("/mnt", 4096)                    = 5
3.0.101-0.31 - NFSv4:
$ strace pwd 2>&1 | grep getcwd
getcwd("/mnt", 4096)                    = 5
3.0.101-0.35 - NFSv3:
$ strace pwd 2>&1 | grep getcwd 
getcwd("/mnt", 4096)                    = 5
3.0.101-0.35 - NFSv4:
$ strace pwd 2>&1 | grep getcwd 
getcwd(0x60cfa0, 4096)                  = -1 ENOENT (No such file or directory)

The last line does show that the issue happens with kernel 3.0.101-0.35 combined with NFSv4.
Tested NFS servers: SLES 11 SP3, IBM nSeries filer, netapp etc ...


This is a known bug, and a fix is available, but not yet publicly released. Contact SUSE Technical Services to get a Program Temporary Fix (PTF) while waiting for an official update.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7015695
  • Creation Date: 25-Sep-2014
  • Modified Date:28-Sep-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center