Escalated to Bugzilla from IssueTracker
Description of problem: statfs on NFS partition always returns 0 regardless of success/fail. Steps to Reproduce: 1. Start NFS service: # echo "/test *(rw,no_root_squash)" >> /etc/exports # service nfs start 2. Setup client: # mount -t nfs -o soft,timeo=5 server:/test /mnt/nfs 3. Stop NFS service: # service nfs stop 4. From the client, run the attached test program: Actual results: The program returns with 0, which actually should return negative number according to statfs(2) but returns 0. Expected results: Should return negative number. According to the call trace nfs_statfs is not returning the value properly. sys_statfs() => return 0 vfs_statfs() => return 0 nfs_statfs() => return 0 nfs3_proc_statfs() => return -5 The patch is already upstream: 1a0ba9ae485c5fd17d0bff2f14d9dd75b8985593
Created attachment 358536 [details] proposed patch
Created attachment 358538 [details] reproducer code
I've added the above patch to my test kernels: http://people.redhat.com/jlayton ...if you or they are able to test it and verify that it works, then that would be helpful.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
in kernel-2.6.18-168.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5 Please do NOT transition this bugzilla state to VERIFIED until our QE team has sent specific instructions indicating when to do so. However feel free to provide a comment indicating that this fix has been verified.
~~ Attention Customers and Partners - RHEL 5.5 Beta is now available on RHN ~~ RHEL 5.5 Beta has been released! There should be a fix present in this release that addresses your request. Please test and report back results here, by March 3rd 2010 (2010-03-03) or sooner. Upon successful verification of this request, post your results and update the Verified field in Bugzilla with the appropriate value. If you encounter any issues while testing, please describe them and set this bug into NEED_INFO. If you encounter new defects or have additional patch(es) to request for inclusion, please clone this bug per each request and escalate through your support representative.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0178.html