+++ This bug was initially created as a clone of Bug #519112 +++
Escalated to Bugzilla from IssueTracker
--- Additional comment from firstname.lastname@example.org on 2009-08-25 04:36:48 EDT ---
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:
The program returns with 0, which actually should return negative number according to statfs(2) but returns 0.
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:
--- Additional comment from email@example.com on 2009-08-25 04:40:03 EDT ---
Created an attachment (id=358536)
--- Additional comment from firstname.lastname@example.org on 2009-08-25 04:51:55 EDT ---
Created an attachment (id=358538)
--- Additional comment from email@example.com on 2009-08-28 06:39:36 EDT ---
I've added the above patch to my test kernels:
...if you or they are able to test it and verify that it works, then that would be helpful.
Cloned this bug by accident. Closing as not
*** This bug has been marked as a duplicate of bug 520018 ***