All of lore.kernel.org
 help / color / mirror / Atom feed
* pynfs V3 ideas - WAS: [PATCH 5/9] nfsd: NFSv3 should allow zero length writes
@ 2021-12-20 17:42 Frank Filz
  0 siblings, 0 replies; only message in thread
From: Frank Filz @ 2021-12-20 17:42 UTC (permalink / raw)
  To: 'Bruce Fields', trondmy
  Cc: 'Chuck Lever', 'Linux NFS Mailing List'

> On Fri, Dec 17, 2021 at 5:07 PM <trondmy@kernel.org> wrote:
> >
> > From: Trond Myklebust <trond.myklebust@hammerspace.com>
> >
> > According to RFC1813: "If count is 0, the WRITE will succeed and
> > return a count of 0, barring errors due to permissions checking."
> 
> Yes, I'm surprised we're not already doing this right.
> 
> I wonder how far back this bug goes.
> 
> The svc.c code is from 8154ef2776aa "NFSD: Clean up legacy NFS WRITE
> argument XDR decoders", but the behavior might predate that code.  The
> nfsd_vfs_write() logic, I'm not sure I understand.
> 
> We have a pynfs test for the v4 case (WRT4), but I guess we must have nothing
> testing the v3 case.

Hmm, need to try and remember this... I am slowly working on pnfs V3 test cases so I will try and make sure edge cases like this get tested.

Frank


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-20 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-20 17:42 pynfs V3 ideas - WAS: [PATCH 5/9] nfsd: NFSv3 should allow zero length writes Frank Filz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.