Re: [nfsv4] Server-side copy question

"J. Bruce Fields" <bfields@fieldses.org> Tue, 24 October 2017 18:38 UTC

Return-Path: <bfields@fieldses.org>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0ABD713836A for <nfsv4@ietfa.amsl.com>; Tue, 24 Oct 2017 11:38:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9PnO38j6pH_Y for <nfsv4@ietfa.amsl.com>; Tue, 24 Oct 2017 11:38:34 -0700 (PDT)
Received: from fieldses.org (fieldses.org [173.255.197.46]) by ietfa.amsl.com (Postfix) with ESMTP id 8761C137ED6 for <nfsv4@ietf.org>; Tue, 24 Oct 2017 11:38:34 -0700 (PDT)
Received: by fieldses.org (Postfix, from userid 2815) id 5441B2445; Tue, 24 Oct 2017 14:38:03 -0400 (EDT)
Date: Tue, 24 Oct 2017 14:38:03 -0400
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Olga Kornievskaia <aglo@citi.umich.edu>
Cc: David Noveck <davenoveck@gmail.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Message-ID: <20171024183803.GB27853@fieldses.org>
References: <20170228164420.GA28845@fieldses.org> <CADaq8jdivTUVNx2LXCiecAKY-nfoZP_XoAoNLwc3V1TUD6X8vg@mail.gmail.com> <CC84C4DB-F00F-45FC-8307-BDA5424DA480@netapp.com> <20170228173215.GA29700@fieldses.org> <CAN-5tyF8EZjYNX3cE43BPM9CbxVLygRdPuTJf_RgC7ntDCf9Kg@mail.gmail.com> <20171020193306.GF15211@fieldses.org> <CAN-5tyHaJeis=_f9h9u1St76Og3A_TtBUxZx_Z=ZouG7sa2=6w@mail.gmail.com> <20171024013646.GA22943@fieldses.org> <CADaq8jdWkTfQB-Y55ow1A23AGCVM12LtwjXYZ6E7zU7M=Aw89g@mail.gmail.com> <CAN-5tyHM5suS=iqP0XL3pD2i2YYtU2k1Wd1jnHb+FT52sXzsHw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAN-5tyHM5suS=iqP0XL3pD2i2YYtU2k1Wd1jnHb+FT52sXzsHw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/8o1A4Yx241nVxFowe6YeOsMAs-M>
Subject: Re: [nfsv4] Server-side copy question
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Oct 2017 18:38:36 -0000

I said:
> >>I guess I'd be in favor of using the NFS_OK branch of CB_OFFLOAD
> >> whenever a nonzero number of bytes is copied.

On Tue, Oct 24, 2017 at 11:52:17AM -0400, Olga Kornievskaia wrote:
> On Tue, Oct 24, 2017 at 7:43 AM, David Noveck <davenoveck@gmail.com> wrote:
> >
> > That's likely to create an interoperability problem, since there are
> > almost certainly clients who assume that when there is no error, all
> > requested bytes have been copied.
> 
> I don't think it's true that clients would assume this. I think the
> client can only assume server copied as many bytes as it was specified
> in the CB_OFFLOAD bytes_copied regardless of how many bytes the client
> had asked for. At least that's how I read the spec.

Agreed.  CB_OFFLOAD has a wr_count field in the NFS_OK branch, what else
could it possibly be for?  And there's ample precedent (e.g. in READ and
WRITE) for succesful IO operations returning a count value that's
possibly less than what's requested.

--b.