Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 236308 - NFS attribute cache problem
NFS attribute cache problem
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: nfs-utils (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Layton
Depends On:
  Show dependency treegraph
Reported: 2007-04-12 19:51 EDT by Devin Bougie
Modified: 2007-11-16 20:14 EST (History)
2 users (show)

See Also:
Fixed In Version: -55.EL
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-03 07:40:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Devin Bougie 2007-04-12 19:51:46 EDT
It looks like we’ve run into an NFS client bug in RHEL4.  We stumbled upon this while trying to checkout 
code from a subversion repository to an nfs directory.  Our NFS servers are RHEL3, and we only see this 
bug with RHEL4 clients.  Things work when mounting the directory using ‘noac’, but we can’t live with 
the performance hit.

Here is a test program to demonstrate the bug.

dsr_lnxcu9% pwd
dsr_lnxcu9% cat svnbug.c
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>

#ifndef TESTSIZE
#define TESTSIZE 52

int main(int argc, char** argv)
    char s[TESTSIZE+1];
    struct stat st1, st2;
    int r;
    ssize_t len;

    int fd = open("tmpfile.xyzzy", O_RDWR|O_CREAT|O_EXCL, 0666);

    if (fd < 0) {
    memset(s, 'x', TESTSIZE);
    len = write(fd, s, TESTSIZE);
    if (len < 0) {
    r = fstat(fd, &st1);
    if (0 != r) {
    r = fstat(fd, &st2);
    if (0 != r) {
    printf("len = %zd, st1 = %zd, st2 = %zd\n",
           len, st1.st_size, st2.st_size);


    return 0; 
dsr_lnxcu9% gcc svnbug.c
dsr_lnxcu9% ~/a.out
len = 52, st1 = 52, st2 = 52
dsr_lnxcu9% cd /cdat/tem/dsr
dsr_lnxcu9% ~/a.out
len = 52, st1 = 0, st2 = 52
Comment 1 Devin Bougie 2007-04-13 20:41:05 EDT
Hi All,

This looks similar to Bug 194088.

Comment 2 Jeff Layton 2007-04-15 13:59:42 EDT
Devin, could you test out the kernels I have at:


and see if they resolve this problem? If so, then 4.5 will likely contain the
fix for this.
Comment 3 Devin Bougie 2007-04-16 10:28:37 EDT
Hi Jeff,

Yes, your test kernels do seem to fix this problem.  Do you know when 4.5 might be released?

Many thanks,
Comment 4 Jeff Layton 2007-04-16 10:30:45 EDT
"Real Soon Now"
Comment 5 Jeff Layton 2007-04-17 15:21:02 EDT
Since it looks like the test kernel corrected this, I'm going to set this to
"NEEDINFO". When 4.5 is released, please test that kernel and report back here.
Comment 6 Jeff Layton 2007-05-03 07:40:47 EDT
4.5 is now released. I'm going to go ahead and close this case. Please reopen
(or open a new case) if this problem is not addressed in kernel -55.EL or greater.

Note You need to log in before you can comment on or make changes to this bug.