Subject: Re: NFS misbehaviour with Linux server
To: None <>
From: YAMAMOTO Takashi <>
List: tech-net
Date: 09/29/2006 17:57:30
> said:
> > This sounds like a bug in the Linux NFS server to me. 
> To me too... But this is caused by an obviously intentional and
> even commented piece of code (see fs/nfsd/vfs.c:nfsd_vfs_write()).
> I don't have any hope that this will be fixed in Linux, and while
> I could fix the kernel on our server, this would get lost when
> someone else (or myself after having forgot about the issue) installs
> a kernel update.

i think the behaviour is a common practice.
it isn't appropriate to blame linux nfsd for it.

> A workaround on the NetBSD side is easy: just flush the file before
> the SETATTR call, see the appended patch. (Actually, it would probably
> not hurt to flush regular files before every SETATTR to simplify the code.)

it seems fine.  please commit.