Re: [nfsv4] [pnfs] [PATCH 1/1] pnfsd: DLM file layout only support read iomode layouts

"William A. (Andy) Adamson" <androsadamson@gmail.com> Wed, 16 December 2009 15:43 UTC

Return-Path: <androsadamson@gmail.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EA67A3A6861 for <nfsv4@core3.amsl.com>; Wed, 16 Dec 2009 07:43:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T8k+6IpenSwX for <nfsv4@core3.amsl.com>; Wed, 16 Dec 2009 07:43:16 -0800 (PST)
Received: from mail-yw0-f185.google.com (mail-yw0-f185.google.com [209.85.211.185]) by core3.amsl.com (Postfix) with ESMTP id 119393A68C9 for <nfsv4@ietf.org>; Wed, 16 Dec 2009 07:43:15 -0800 (PST)
Received: by ywh15 with SMTP id 15so1118667ywh.5 for <nfsv4@ietf.org>; Wed, 16 Dec 2009 07:42:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OidckTBrnSogykxxSaTEikxLxXtltdHe73c28/8BB4A=; b=N3CHuvi2KR0l4UnWa263Upe+jeSBu9YPSWZ+KNUVCuZHT+VCBqrVY/5SmLzH76ua1x qdKSB5N0wD/WHbYs5CscYLAPMuGSgEH9Fj4Ogz0ooSMYwGupXZnGOBGOuKmc2SivQ9Ad kK/Ch1roCZs2k1kbby4MyEuQGHPMwGGSCCTmI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VPdyxVfhwMc+FiR0mtu2WnZH+Mc01uq2dIzbfFy9b1nTxVd8Qya31Gn1u9FVtdTHv4 L680u78aOBlm2GdsESbUnfLc1NIuD3A5FdpAh3gBwgydmqInh6Ykjot7KnERtIPv5wLh l81Ler0AZnl+oZilp/Zk7BZasjd8GCvg+P4t8=
MIME-Version: 1.0
Received: by 10.150.44.21 with SMTP id r21mr1951730ybr.78.1260978179627; Wed, 16 Dec 2009 07:42:59 -0800 (PST)
In-Reply-To: <20091216153740.GA23117@fieldses.org>
References: <1260907434-7484-1-git-send-email-andros@netapp.com> <1260907434-7484-2-git-send-email-andros@netapp.com> <20091215224155.GF8686@fieldses.org> <4B28D006.4000409@panasas.com> <89c397150912160726l65469d9nb3df68d06fdc190d@mail.gmail.com> <20091216153740.GA23117@fieldses.org>
Date: Wed, 16 Dec 2009 10:42:59 -0500
Message-ID: <89c397150912160742x2b57e31cp7b5b4fd36d6566fd@mail.gmail.com>
From: "William A. (Andy) Adamson" <androsadamson@gmail.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: Benny Halevy <bhalevy@panasas.com>, pnfs@linux-nfs.org, NFSv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] [pnfs] [PATCH 1/1] pnfsd: DLM file layout only support read iomode layouts
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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: Wed, 16 Dec 2009 15:43:17 -0000

On Wed, Dec 16, 2009 at 10:37 AM, J. Bruce Fields <bfields@fieldses.org> wrote:
> On Wed, Dec 16, 2009 at 10:26:57AM -0500, William A. (Andy) Adamson wrote:
>> On Wed, Dec 16, 2009 at 7:18 AM, Benny Halevy <bhalevy@panasas.com> wrote:
>> >
>> > 15.1.10.4.  NFS4ERR_LAYOUTUNAVAILABLE (Error Code 10059)
>> >
>> >   Returned when layouts are not available for the current file system
>> >   or the particular specified file.
>> >
>> > NFS4ERR_BADIOMODE seems to make more sense since layouts are available,
>> > just not for the requested iomode. However its definition indicates that
>> > the iomode in the client request is "invalid or inappropriate".
>> > It is not clear what "inappropriate" means in this context.
>>
>> What difference does 'what inappropriate means' make to the client?
>> None! It's up to the server.
>
> We do have to worry how clients will react to the error:
>
>        - If clients really assume that this error can only result from
>          a bug, then they may choose to return an IO error to the
>          application, turn off pnfs entirely for this server, or
>          something similarly drastic.

Then that client implementation won't be used for very long. This is
Darwin in action!

>
>        - If they assume it means that the server doesn't feel like
>          giving out a layout of that iomode right now, then we're good.
>
> You're probably right that the latter is a reasonable interpretation of
> "inappropriate".
>
> However, the spec isn't entirely explicit about this, and the only
> specific example given of BADIOMODE use is an "invalid" case (client
> supplying IOMODE4_ANY on getlayout), so I think it would be easy for a
> client to get this wrong.

Perhaps. Linux doesn't. What does the only other client (Solaris) do?

-->Andy

>
> --b.
>