
From Vitaliy.Gusev@nexenta.com  Wed Feb  1 01:15:56 2012
Return-Path: <Vitaliy.Gusev@nexenta.com>
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 717C521F8625 for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 01:15:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WHenZyCCyKgf for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 01:15:56 -0800 (PST)
Received: from mail131.messagelabs.com (mail131.messagelabs.com [216.82.242.99]) by ietfa.amsl.com (Postfix) with ESMTP id B293921F8624 for <nfsv4@ietf.org>; Wed,  1 Feb 2012 01:15:55 -0800 (PST)
X-Env-Sender: Vitaliy.Gusev@nexenta.com
X-Msg-Ref: server-12.tower-131.messagelabs.com!1328087722!10817776!2
X-Originating-IP: [199.119.192.64]
X-StarScan-Version: 6.5.5; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27651 invoked from network); 1 Feb 2012 09:15:53 -0000
Received: from out001.apptixemail.net (HELO out001.apptixemail.net) (199.119.192.64) by server-12.tower-131.messagelabs.com with AES128-SHA encrypted SMTP; 1 Feb 2012 09:15:53 -0000
Received: from [192.168.123.52] (10.2.67.252) by smtp.apptixemail.net (10.2.65.19) with Microsoft SMTP Server (TLS) id 14.1.323.0; Wed, 1 Feb 2012 03:15:49 -0600
Message-ID: <4F2902C1.6090501@nexenta.com>
Date: Wed, 1 Feb 2012 13:15:45 +0400
From: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0
MIME-Version: 1.0
To: <bfields@fieldses.org>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
Cc: trond.myklebust@netapp.com, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 09:55:24 -0000

Hello!


During reading rfc3530 and rfc5661 I didn't find any mentions about 
nfs-server behaviour if client has forgotten about opened file (client 
alive and sends RENEW on time).

So openowner, stateid-s entries on server can grow endlessly.

Am I missing something?



From Trond.Myklebust@netapp.com  Wed Feb  1 05:35:13 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 A58F311E8244 for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 05:35:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.507
X-Spam-Level: 
X-Spam-Status: No, score=-10.507 tagged_above=-999 required=5 tests=[AWL=0.092, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EF5IWtmjVjOp for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 05:35:12 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 18D6411E824C for <nfsv4@ietf.org>; Wed,  1 Feb 2012 05:35:12 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.71,601,1320652800"; d="scan'208";a="621457768"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 01 Feb 2012 05:35:11 -0800
Received: from svlrsexc1-prd.hq.netapp.com (svlrsexc1-prd.hq.netapp.com [10.57.115.30]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q11DZARF012781; Wed, 1 Feb 2012 05:35:10 -0800 (PST)
Received: from SACMVEXC4-PRD.hq.netapp.com ([10.99.115.25]) by svlrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 1 Feb 2012 05:35:06 -0800
Received: from VMWEXCEHT02-PRD.hq.netapp.com ([10.106.76.240]) by SACMVEXC4-PRD.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959);  Wed, 1 Feb 2012 05:35:06 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.01.0355.002; Wed, 1 Feb 2012 05:35:05 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
Thread-Topic: Question about OpenOwner table overflow
Thread-Index: AQHM4MIdnDfy/SXevEGe9/0VMDh/UpYokTKA
Date: Wed, 1 Feb 2012 13:35:05 +0000
Message-ID: <1328103303.3789.84.camel@lade.trondhjem.org>
References: <4F2902C1.6090501@nexenta.com>
In-Reply-To: <4F2902C1.6090501@nexenta.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.116]
Content-Type: text/plain; charset="utf-8"
Content-ID: <7F31D63246E46C4B864B41442B71B4B8@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginalArrivalTime: 01 Feb 2012 13:35:06.0587 (UTC) FILETIME=[4F62B2B0:01CCE0E6]
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 13:35:13 -0000

T24gV2VkLCAyMDEyLTAyLTAxIGF0IDEzOjE1ICswNDAwLCBWaXRhbGl5IEd1c2V2IHdyb3RlOg0K
PiBIZWxsbyENCj4gDQo+IA0KPiBEdXJpbmcgcmVhZGluZyByZmMzNTMwIGFuZCByZmM1NjYxIEkg
ZGlkbid0IGZpbmQgYW55IG1lbnRpb25zIGFib3V0IA0KPiBuZnMtc2VydmVyIGJlaGF2aW91ciBp
ZiBjbGllbnQgaGFzIGZvcmdvdHRlbiBhYm91dCBvcGVuZWQgZmlsZSAoY2xpZW50IA0KPiBhbGl2
ZSBhbmQgc2VuZHMgUkVORVcgb24gdGltZSkuDQo+IA0KPiBTbyBvcGVub3duZXIsIHN0YXRlaWQt
cyBlbnRyaWVzIG9uIHNlcnZlciBjYW4gZ3JvdyBlbmRsZXNzbHkuDQo+IA0KPiBBbSBJIG1pc3Np
bmcgc29tZXRoaW5nPw0KDQpUaGlzIGlzIHdoeSBPUEVOIGlzIGFsbG93ZWQgdG8gcmV0dXJuIE5G
UzRFUlJfUkVTT1VSQ0Ugd2hpY2gsIGluIHRoaXMNCmluc3RhbmNlLCBpcyB0aGUgZXF1aXZhbGVu
dCBvZiByZXR1cm5pbmcgdGhlIFBPU0lYIGVycm9yICJFTUZJTEUiLiBJdCBpcw0KdXAgdG8gdGhl
IHNlcnZlciB0byBkZXRlcm1pbmUgaG93IG1hbnkgc2ltdWx0YW5lb3VzIG9wZW4gZmlsZXMgaXQg
d2lsbA0KYWxsb3cgdGhlIGNsaWVudCwgYW5kIHRvIGVuZm9yY2UgdGhhdCBsaW1pdCBvbmNlIGl0
IGlzIGhpdC4NCg0KQ2hlZXJzDQogIFRyb25kDQoNCi0tIA0KVHJvbmQgTXlrbGVidXN0DQpMaW51
eCBORlMgY2xpZW50IG1haW50YWluZXINCg0KTmV0QXBwDQpUcm9uZC5NeWtsZWJ1c3RAbmV0YXBw
LmNvbQ0Kd3d3Lm5ldGFwcC5jb20NCg0K

From Vitaliy.Gusev@nexenta.com  Wed Feb  1 06:08:10 2012
Return-Path: <Vitaliy.Gusev@nexenta.com>
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 4A9E311E86A0 for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 06:08:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jYy4VsnGmyAe for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 06:08:09 -0800 (PST)
Received: from mail160.messagelabs.com (mail160.messagelabs.com [216.82.253.99]) by ietfa.amsl.com (Postfix) with ESMTP id EA9F411E8654 for <nfsv4@ietf.org>; Wed,  1 Feb 2012 06:08:02 -0800 (PST)
X-Env-Sender: Vitaliy.Gusev@nexenta.com
X-Msg-Ref: server-15.tower-160.messagelabs.com!1328105281!45935698!1
X-Originating-IP: [199.119.192.64]
X-StarScan-Version: 6.4.3; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25846 invoked from network); 1 Feb 2012 14:08:02 -0000
Received: from out001.apptixemail.net (HELO out001.apptixemail.net) (199.119.192.64) by server-15.tower-160.messagelabs.com with AES128-SHA encrypted SMTP; 1 Feb 2012 14:08:02 -0000
Received: from [172.16.3.44] (10.2.67.253) by smtp.apptixemail.net (10.2.65.19) with Microsoft SMTP Server (TLS) id 14.1.323.0; Wed, 1 Feb 2012 08:08:01 -0600
Message-ID: <4F29473D.6040405@nexenta.com>
Date: Wed, 1 Feb 2012 18:07:57 +0400
From: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <4F2902C1.6090501@nexenta.com> <1328103303.3789.84.camel@lade.trondhjem.org>
In-Reply-To: <1328103303.3789.84.camel@lade.trondhjem.org>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 14:08:10 -0000

On 02/01/2012 05:35 PM, Myklebust, Trond wrote:
> This is why OPEN is allowed to return NFS4ERR_RESOURCE which, in this
> instance, is the equivalent of returning the POSIX error "EMFILE". It is
> up to the server to determine how many simultaneous open files it will
> allow the client, and to enforce that limit once it is hit.

Ok. One client can open/forgot 1000 files. 1000 clients can open/forgot 
1M files. It looks like good way for DOS attack.

Why do not require to update a OPEN in lease time.

---
Vitaliy Gusev


From Tom.Haynes@netapp.com  Wed Feb  1 06:34:53 2012
Return-Path: <Tom.Haynes@netapp.com>
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 3798911E8135 for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 06:34:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.532
X-Spam-Level: 
X-Spam-Status: No, score=-10.532 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M3E0ZURjlqJl for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 06:34:52 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id CAB9211E811B for <nfsv4@ietf.org>; Wed,  1 Feb 2012 06:34:52 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.71,602,1320652800"; d="scan'208";a="621480273"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 01 Feb 2012 06:34:37 -0800
Received: from sacrsexc2-prd.hq.netapp.com (sacrsexc2-prd.hq.netapp.com [10.99.115.28]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q11EYbhg021341; Wed, 1 Feb 2012 06:34:37 -0800 (PST)
Received: from VMWEXCEHT04-PRD.hq.netapp.com ([10.106.77.34]) by sacrsexc2-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 1 Feb 2012 06:34:28 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht04-prd.hq.netapp.com ([10.106.77.34]) with mapi id 14.01.0355.002; Wed, 1 Feb 2012 06:34:24 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: Vitaliy Gusev <gusev.vitaliy@nexenta.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Thread-Topic: [nfsv4] Question about OpenOwner table overflow
Thread-Index: AQHM4OwGl0uyxsCilkuyOvs50JUTvJYomg+A//+iygA=
Date: Wed, 1 Feb 2012 14:34:23 +0000
Message-ID: <CB4EA925.8A54%tom.haynes@netapp.com>
In-Reply-To: <4F29473D.6040405@nexenta.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.14.0.111121
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <63CFE21593AE0F439CA1C03BD028D0E2@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginalArrivalTime: 01 Feb 2012 14:34:28.0808 (UTC) FILETIME=[9AA27C80:01CCE0EE]
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 14:34:53 -0000

On 2/1/12 8:07 AM, "Vitaliy Gusev" <gusev.vitaliy@nexenta.com> wrote:

>On 02/01/2012 05:35 PM, Myklebust, Trond wrote:
>> This is why OPEN is allowed to return NFS4ERR_RESOURCE which, in this
>> instance, is the equivalent of returning the POSIX error "EMFILE". It is
>> up to the server to determine how many simultaneous open files it will
>> allow the client, and to enforce that limit once it is hit.
>
>Ok. One client can open/forgot 1000 files. 1000 clients can open/forgot
>1M files. It looks like good way for DOS attack.


Most likely the server would have a ceiling on how many open owners it
would allow altogether.




>
>Why do not require to update a OPEN in lease time.
>
>---
>Vitaliy Gusev
>
>_______________________________________________
>nfsv4 mailing list
>nfsv4@ietf.org
>https://www.ietf.org/mailman/listinfo/nfsv4


From Vitaliy.Gusev@nexenta.com  Wed Feb  1 06:56:07 2012
Return-Path: <Vitaliy.Gusev@nexenta.com>
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 DDE1B21F878A for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 06:56:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LBtRyVick7OA for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 06:56:07 -0800 (PST)
Received: from mail127.messagelabs.com (mail127.messagelabs.com [216.82.250.115]) by ietfa.amsl.com (Postfix) with ESMTP id 610B521F8783 for <nfsv4@ietf.org>; Wed,  1 Feb 2012 06:56:07 -0800 (PST)
X-Env-Sender: Vitaliy.Gusev@nexenta.com
X-Msg-Ref: server-3.tower-127.messagelabs.com!1328108165!42808344!2
X-Originating-IP: [199.119.192.64]
X-StarScan-Version: 6.5.5; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30525 invoked from network); 1 Feb 2012 14:56:06 -0000
Received: from out001.apptixemail.net (HELO out001.apptixemail.net) (199.119.192.64) by server-3.tower-127.messagelabs.com with AES128-SHA encrypted SMTP; 1 Feb 2012 14:56:06 -0000
Received: from [172.16.3.44] (10.2.67.250) by smtp.apptixemail.net (10.2.65.19) with Microsoft SMTP Server (TLS) id 14.1.323.0; Wed, 1 Feb 2012 08:56:05 -0600
Message-ID: <4F295281.3070806@nexenta.com>
Date: Wed, 1 Feb 2012 18:56:01 +0400
From: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0
MIME-Version: 1.0
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
References: <CB4EA925.8A54%tom.haynes@netapp.com>
In-Reply-To: <CB4EA925.8A54%tom.haynes@netapp.com>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 14:56:08 -0000

On 02/01/2012 06:34 PM, Haynes, Tom wrote:
>
> Most likely the server would have a ceiling on how many open owners it
> would allow altogether.

Exactly! Clients can be good and bad (no close).
Imagine that you are good client. You tries to connect to server and
open file. You get ERR_RESOURCE always, because guilty clients can't be
corrected (forced close).

Once again, you want to get service but you can't do it because
server relies on bad clients.



From Trond.Myklebust@netapp.com  Wed Feb  1 07:17:37 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 843C321F86DA for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 07:17:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.513
X-Spam-Level: 
X-Spam-Status: No, score=-10.513 tagged_above=-999 required=5 tests=[AWL=0.086, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ik8S7GY27DHx for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 07:17:37 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id EF0B021F84AE for <nfsv4@ietf.org>; Wed,  1 Feb 2012 07:17:36 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.71,602,1320652800"; d="scan'208";a="621496967"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 01 Feb 2012 07:17:36 -0800
Received: from sacrsexc2-prd.hq.netapp.com (sacrsexc2-prd.hq.netapp.com [10.99.115.28]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q11FHaiX021701; Wed, 1 Feb 2012 07:17:36 -0800 (PST)
Received: from VMWEXCEHT02-PRD.hq.netapp.com ([10.106.76.240]) by sacrsexc2-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 1 Feb 2012 07:17:24 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.01.0355.002; Wed, 1 Feb 2012 07:17:17 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
Thread-Topic: Question about OpenOwner table overflow
Thread-Index: AQHM4MIdnDfy/SXevEGe9/0VMDh/UpYokTKAgAAJMYCAABNcAA==
Date: Wed, 1 Feb 2012 15:17:16 +0000
Message-ID: <1328109434.3789.97.camel@lade.trondhjem.org>
References: <4F2902C1.6090501@nexenta.com> <1328103303.3789.84.camel@lade.trondhjem.org> <4F29473D.6040405@nexenta.com>
In-Reply-To: <4F29473D.6040405@nexenta.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="utf-8"
Content-ID: <D048079F57286044B8326A070D793611@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginalArrivalTime: 01 Feb 2012 15:17:24.0095 (UTC) FILETIME=[99A018F0:01CCE0F4]
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 15:17:37 -0000

T24gV2VkLCAyMDEyLTAyLTAxIGF0IDE4OjA3ICswNDAwLCBWaXRhbGl5IEd1c2V2IHdyb3RlOg0K
PiBPbiAwMi8wMS8yMDEyIDA1OjM1IFBNLCBNeWtsZWJ1c3QsIFRyb25kIHdyb3RlOg0KPiA+IFRo
aXMgaXMgd2h5IE9QRU4gaXMgYWxsb3dlZCB0byByZXR1cm4gTkZTNEVSUl9SRVNPVVJDRSB3aGlj
aCwgaW4gdGhpcw0KPiA+IGluc3RhbmNlLCBpcyB0aGUgZXF1aXZhbGVudCBvZiByZXR1cm5pbmcg
dGhlIFBPU0lYIGVycm9yICJFTUZJTEUiLiBJdCBpcw0KPiA+IHVwIHRvIHRoZSBzZXJ2ZXIgdG8g
ZGV0ZXJtaW5lIGhvdyBtYW55IHNpbXVsdGFuZW91cyBvcGVuIGZpbGVzIGl0IHdpbGwNCj4gPiBh
bGxvdyB0aGUgY2xpZW50LCBhbmQgdG8gZW5mb3JjZSB0aGF0IGxpbWl0IG9uY2UgaXQgaXMgaGl0
Lg0KPiANCj4gT2suIE9uZSBjbGllbnQgY2FuIG9wZW4vZm9yZ290IDEwMDAgZmlsZXMuIDEwMDAg
Y2xpZW50cyBjYW4gb3Blbi9mb3Jnb3QgDQo+IDFNIGZpbGVzLiBJdCBsb29rcyBsaWtlIGdvb2Qg
d2F5IGZvciBET1MgYXR0YWNrLg0KDQpBcyBU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53:59 2012
Return-Path: <olga.kornievskaia@gmail.com>
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 E2D2A11E80D6 for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 12:53:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level: 
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gFgHXjlp73Gp for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 12:53:59 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by ietfa.amsl.com (Postfix) with ESMTP id 4CDDB11E80BE for <nfsv4@ietf.org>; Wed,  1 Feb 2012 12:53:59 -0800 (PST)
Received: by iagf6 with SMTP id f6so2474540iag.31 for <nfsv4@ietf.org>; Wed, 01 Feb 2012 12:53:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=uLoenqiWq9+HYHhi6WY7T0G0zUirSYM9jCXOOZxY+W8=; b=c0/lySvRJFpygOR1dW+EFYUY1Zaqdh76gDFRwr4rYIgOKeRUMWp0fc3mxwKK9Q7R1z v1fu9Szz8CWHERZRjGd5zRYMeA/1VJyZR2q//SxWLG8DKQ1eQjaBey53wHDWlI3VAa4n BBPDj9KMQXV2VttTkkczl//q6fbK/RFjZq0os=
MIME-Version: 1.0
Received: by 10.42.168.197 with SMTP id x5mr228444icy.6.1328129637954; Wed, 01 Feb 2012 12:53:57 -0800 (PST)
Sender: olga.kornievskaia@gmail.com
Received: by 10.231.47.145 with HTTP; Wed, 1 Feb 2012 12:53:57 -0800 (PST)
In-Reply-To: <CAN-5tyGNzxeUVktWW1UwbVed5Opb=14cXwJk-sKAcCH=vhR4YA@mail.gmail.com>
References: <CB4D8F33.10D96%tom.haynes@netapp.com> <CAN-5tyGNzxeUVktWW1UwbVed5Opb=14cXwJk-sKAcCH=vhR4YA@mail.gmail.com>
Date: Wed, 1 Feb 2012 15:53:57 -0500
X-Google-Sender-Auth: FwY6tcFtSDrW3qXDNiIZ-LplqJQ
Message-ID: <CAN-5tyGxDD=V5V5jjFQzoQQDbkhfo1UJuXzFAGcHXEgUhmkQWg@mail.gmail.com>
From: Olga Kornievskaia <aglo@citi.umich.edu>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] Volatile file handles
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 01 Feb 2012 20:54:00 -0000

I'm not the expert here but I believe windows nfs41 server issues
volatile handles.

On Tue, Jan 31, 2012 at 3:08 PM, Olga Kornievskaia <aglo@citi.umich.edu> wrote:
> Windows pnfs client tries to support them.
>
> On Tue, Jan 31, 2012 at 1:29 PM, Haynes, Tom <Tom.Haynes@netapp.com> wrote:
>> Has anyone tried implementing volatile file handles in NFSv4?
>>
>> I know neither the Linux nor Solaris clients currently have it in there.
>>
>> In a round about way, if no one implements part of the spec, should we
>> consider dropping support?
>>
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
>>

From rmacklem@uoguelph.ca  Wed Feb  1 19:23:53 2012
Return-Path: <rmacklem@uoguelph.ca>
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 211A011E8098 for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 19:23:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.07
X-Spam-Level: 
X-Spam-Status: No, score=-6.07 tagged_above=-999 required=5 tests=[AWL=0.529,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3-leyyo+jSLW for <nfsv4@ietfa.amsl.com>; Wed,  1 Feb 2012 19:23:52 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 8EE4511E8087 for <nfsv4@ietf.org>; Wed,  1 Feb 2012 19:23:52 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap0EANwAKk+DaFvO/2dsb2JhbABDhQuqfoIcgQsCDRkCX6Bgjg2SAYEvihoBBQICHQMEAQ4BCAUDAwkNEoJxAgYFAgQMBg0DCQICcwsBAgIBAgEIgiaBFgSIQYxgknI
X-IronPort-AV: E=Sophos;i="4.71,606,1320642000"; d="scan'208";a="154716907"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 01 Feb 2012 22:23:51 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 34EC2B3F03 for <nfsv4@ietf.org>; Wed,  1 Feb 2012 22:23:51 -0500 (EST)
Date: Wed, 1 Feb 2012 22:23:51 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: nfsv4 <nfsv4@ietf.org>
Message-ID: <1986435707.612002.1328153031201.JavaMail.root@erie.cs.uoguelph.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Subject: [nfsv4] writeverf reply from File Layout DS?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 02 Feb 2012 03:23:53 -0000

Hi,

The following snippet of RFC5661 seems to be clear, for the case
of COMMIT through the MDS:
      If nfl_util & NFL4_UFLG_COMMIT_THRU_MDS is TRUE, then in order to
      maintain the current NFSv4.1 commit and recovery model, the data
      servers MUST return a common writeverf verifier in all WRITE
      responses for a given file layout, and the metadata server's
      COMMIT implementation must return the same writeverf.  The value
      of the writeverf verifier MUST be changed at the metadata server
      or any data server that is referenced in the layout, whenever
      there is a server event that can possibly lead to loss of
      uncommitted data.  The scope of the verifier can be for a file or
      for the entire pNFS server.  It might be more difficult for the
      server to maintain the verifier at the file level, but the benefit
      is that only events that impact a given file will require recovery
      action.

However, I can't find a similar statement for COMMIT through the DS.
(I probably just can't find it, so just tell me to go back to the RFC
 if it's there.;-)

Would I be correct to assume that, for the case of COMMIT through the
DS, that the writeverf will be specific to the DS and the client has
to keep/check a separate one for each DS?

Thanks in advance for help with this. rick

From david.noveck@emc.com  Tue Feb  7 09:57:20 2012
Return-Path: <david.noveck@emc.com>
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 D182121F8914 for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 09:57:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.815
X-Spam-Level: 
X-Spam-Status: No, score=-8.815 tagged_above=-999 required=5 tests=[AWL=0.295,  BAYES_05=-1.11, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uXWXF0bhn1Tf for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 09:57:19 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id BF0D821F890F for <nfsv4@ietf.org>; Tue,  7 Feb 2012 09:57:17 -0800 (PST)
Received: from hop04-l1d11-si03.isus.emc.com (HOP04-L1D11-SI03.isus.emc.com [10.254.111.23]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q17HvBPI028453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <nfsv4@ietf.org>; Tue, 7 Feb 2012 12:57:15 -0500
Received: from mailhub.lss.emc.com (mailhubhoprd04.lss.emc.com [10.254.222.226]) by hop04-l1d11-si03.isus.emc.com (RSA Interceptor) for <nfsv4@ietf.org>; Tue, 7 Feb 2012 12:57:02 -0500
Received: from mxhub18.corp.emc.com (mxhub18.corp.emc.com [10.254.93.47]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q17Hv1jZ032706 for <nfsv4@ietf.org>; Tue, 7 Feb 2012 12:57:01 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub18.corp.emc.com ([10.254.93.47]) with mapi; Tue, 7 Feb 2012 12:57:00 -0500
From: <david.noveck@emc.com>
To: <nfsv4@ietf.org>
Date: Tue, 7 Feb 2012 12:56:59 -0500
Thread-Topic: NFS4ERR_EXPIRED, the problem continues
Thread-Index: AczlwyHQgE6nrUGaSqGtCwqlYYwbfA==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD88974D@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Subject: [nfsv4] NFS4ERR_EXPIRED, the problem continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 07 Feb 2012 17:57:20 -0000

The background here is that, in connection with the discussion of persisten=
t delegation reclaim, Tom urged us to look at bis-16, since it was good to =
get more eyes on  what is going to be the v4..0 spec some time coming up.

The good new is that Tom was wise to make that request and I did look at bi=
s-16 with regard to these issues.  Come to think of it, that's the bad news=
 as well, since the fact that there were some problems to find, is exactly =
why Tom was wise to make the request.  Sigh!

So here' s the problem.  First we have:

13.1.5.3. NFS4ERR_EXPIRED (Error Code 10011)
A stateid designates locking state of any type that has been revoked
due to expiration of the client's lease, either immediately upon
lease expiration, or following a later request for a conflicting
Lock

Then we have two things which contradict it.

Section 9.6.3.1 has the he following paragraph:

If the server does not reboot before the network partition is healed,
when the original client tries to access a courtesy lock which was
freed, the server SHOULD send back a NFS4ERR_BAD_STATEID to the
client. If the client tries to access a courtesy lock which was not
freed, then the server SHOULD mark all of the courtesy locks as
implicitly being renewed.

Which contracts the last clause of 13.1.5.3.

Note that section 10.2.1 (which I'm trying to rewrite for the CLAIM_DELEGAT=
E_PREV stuff) says:

A client normally finds out about revocation of a delegation when it
uses a stateid associated with a delegation and receives the error
NFS4ERR_EXPIRED. It also may find out about delegation revocation
after a client reboot when it attempts to reclaim a delegation and
receives that same error. Note that in the case of a revoked
OPEN_DELEGATE_WRITE delegation, there are issues because data may
have been modified by the client whose delegation is revoked and
separately by other clients. See Section 10.5.1 for a discussion of
such issues. Note also that when delegations are revoked,
information about the revoked delegation will be written by the
server to stable storage (as described in Section 9.6). This is done
to deal with the case in which a server reboots after revoking a
delegation but before the client holding the revoked delegation is
notified about the revocation.

Although it doesn't explicitly say so, the implication is that NFS4ERR_EXPI=
RED is what you
get when a delegation is revoked without lease expiration (which I'd call "=
normally" :-).  So if not,
NFS4ERR_EXPIRED, what is returned in this case?

Note that section 9.1.3.4 says:

 o  If the stateid represents revoked state, then return
    NFS4ERR_EXPIRED or NFS4ERR_ADMIN_REVOKED, as appropriate.

Which suggests that NFS4ERR_EXPIRED is returned in this case.

So, in addition to the editing issue of making things consistent, we have a=
 substantive issue to
decide about.

The motivation of the courtesy lock stuff seems to have been to provide the=
 client a signal
(NFS4ERR_EXPIRED) that indicates, "you have lost all your locks"  (rather j=
ust one or a few),
but the treatment of delegation revocation vitiates that.

I think I need such an indication in some form, because there is a need to =
specify conditions when you may
do persistent delegation recovery and the occasion of losing all your locks=
 due to a network partition is
one of those situations (while the occasion of losing a few locks, or havin=
g a specific delegation revoked is
certainly not one of those situations)..

Anybody have any ideas on how to resolve this?







From Tom.Haynes@netapp.com  Tue Feb  7 10:17:04 2012
Return-Path: <Tom.Haynes@netapp.com>
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 8A7D721F88B2 for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 10:17:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.425
X-Spam-Level: 
X-Spam-Status: No, score=-10.425 tagged_above=-999 required=5 tests=[AWL=-0.053, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SARE_SUB_OBFU_Q1=0.227]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zAFLnFGrCiNS for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 10:17:03 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id E4E1521F88B0 for <nfsv4@ietf.org>; Tue,  7 Feb 2012 10:17:03 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,378,1325491200"; d="scan'208";a="623296335"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 07 Feb 2012 10:17:03 -0800
Received: from svlrsexc1-prd.hq.netapp.com (svlrsexc1-prd.hq.netapp.com [10.57.115.30]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q17IH37X028999 for <nfsv4@ietf.org>; Tue, 7 Feb 2012 10:17:03 -0800 (PST)
Received: from SACMVEXC4-PRD.hq.netapp.com ([10.99.115.26]) by svlrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 7 Feb 2012 10:16:59 -0800
Received: from VMWEXCEHT02-PRD.hq.netapp.com ([10.106.76.240]) by SACMVEXC4-PRD.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 7 Feb 2012 10:16:59 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.01.0355.002; Tue, 7 Feb 2012 10:16:58 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: nfsv4 <nfsv4@ietf.org>
Thread-Topic: New Version Notification for draft-quigley-nfsv4-labreqs-00.txt
Thread-Index: AQHM4voQ2iHsyZxM5UKezfCor4bvwpYx5OwA
Date: Tue, 7 Feb 2012 18:16:57 +0000
Message-ID: <CB56C65F.A46D%tom.haynes@netapp.com>
In-Reply-To: <20120204050201.20157.86913.idtracker@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.14.0.111121
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <F15D3193BB30E34CBD987100D7B9ADCD@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginalArrivalTime: 07 Feb 2012 18:16:59.0020 (UTC) FILETIME=[AE75ACC0:01CCE5C4]
Subject: [nfsv4] FW: New Version Notification for draft-quigley-nfsv4-labreqs-00.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 07 Feb 2012 18:17:04 -0000

We've published a new document that wraps up the Requirements for Labeled
NFS.

It is located at=20
http://datatracker.ietf.org/doc/draft-quigley-nfsv4-labreqs/

Comments are welcome!



On 2/3/12 11:02 PM, "internet-drafts@ietf.org" <internet-drafts@ietf.org>
wrote:

>A new version of I-D, draft-quigley-nfsv4-labreqs-00.txt has been
>successfully submitted by Thomas Haynes and posted to the IETF repository.
>
>Filename:	 draft-quigley-nfsv4-labreqs
>Revision:	 00
>Title:		 Requirements for Labeled NFS
>Creation date:	 2012-02-03
>WG ID:		 Individual Submission
>Number of pages: 18
>
>Abstract:
>   This Internet-Draft outlines high-level requirements for the
>   integration of flexible Mandatory Access Control (MAC) functionality
>   into NFSv4.2.  It describes the level of protections that should be
>   provided over protocol components and the basic structure of the
>   proposed system.  It also gives a brief explanation of what kinds of
>   protections MAC systems offer.
>
>
>                 =20
>       =20
>
>
>The IETF Secretariat


From Tom.Haynes@netapp.com  Tue Feb  7 16:19:04 2012
Return-Path: <Tom.Haynes@netapp.com>
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 B876021F86C9 for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 16:19:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.534
X-Spam-Level: 
X-Spam-Status: No, score=-10.534 tagged_above=-999 required=5 tests=[AWL=0.064, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id raXHISuL-Zp5 for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 16:19:04 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 4658421F85A5 for <nfsv4@ietf.org>; Tue,  7 Feb 2012 16:19:03 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,380,1325491200";  d="scan'208,217";a="623403284"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 07 Feb 2012 16:19:03 -0800
Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q180J3Sj005532 for <nfsv4@ietf.org>; Tue, 7 Feb 2012 16:19:03 -0800 (PST)
Received: from VMWEXCEHT05-PRD.hq.netapp.com ([10.106.77.35]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 7 Feb 2012 16:18:58 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.01.0355.002; Tue, 7 Feb 2012 16:18:58 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: nfsv4 <nfsv4@ietf.org>
Thread-Topic: 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuA==
Date: Wed, 8 Feb 2012 00:18:57 +0000
Message-ID: <CB571B8F.A5C6%tom.haynes@netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.14.0.111121
x-originating-ip: [10.106.53.51]
Content-Type: multipart/alternative; boundary="_000_CB571B8FA5C6tomhaynesnetappcom_"
MIME-Version: 1.0
X-OriginalArrivalTime: 08 Feb 2012 00:18:58.0975 (UTC) FILETIME=[408FCAF0:01CCE5F7]
Subject: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 08 Feb 2012 00:19:04 -0000

--_000_CB571B8FA5C6tomhaynesnetappcom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.

At first blush, this appears to not make sense, I.e., the file size is not =
changing.

Here is our use case:

EFBIG could be returned if the target directory is about to exceed its
maximum capacity.  Got any really, really big directories on there?

Anyone have any objections to adding this error value?

--_000_CB571B8FA5C6tomhaynesnetappcom_
Content-Type: text/html; charset="us-ascii"
Content-ID: <2201B0C7FB0D974B8627F93C4FF4584F@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; ">
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif">We'd like=
 to add&nbsp;NFS4ERR_FBIG as an expected error code for RENAME.</font></div=
>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif"><br>
</font></div>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif">At first =
blush, this appears to not make sense, I.e., the file size is not changing.=
</font></div>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif"><br>
</font></div>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif">Here is o=
ur use case:</font></div>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif"><br>
</font></div>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif">
<blockquote style=3D"margin:0 0 0 40px; border:none; padding:0px;">
<div>EFBIG could be returned if the target directory is about to exceed its=
</div>
<div>maximum capacity. &nbsp;Got any really, really big directories on ther=
e?</div>
<div><br>
</div>
</blockquote>
</font></div>
<div><font class=3D"Apple-style-span" face=3D"Calibri,sans-serif">Anyone ha=
ve any objections to adding this error value?</font></div>
</body>
</html>

--_000_CB571B8FA5C6tomhaynesnetappcom_--

From rmacklem@uoguelph.ca  Tue Feb  7 17:04:31 2012
Return-Path: <rmacklem@uoguelph.ca>
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 790FD21F85A1 for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 17:04:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.093
X-Spam-Level: 
X-Spam-Status: No, score=-6.093 tagged_above=-999 required=5 tests=[AWL=0.506,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M2MIMOhDG0rg for <nfsv4@ietfa.amsl.com>; Tue,  7 Feb 2012 17:04:30 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 767E721F85A0 for <nfsv4@ietf.org>; Tue,  7 Feb 2012 17:04:30 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAFbJMU+DaFvO/2dsb2JhbABEhQqrVoFyAQEBAwEBAQEgSwsFFhgCAg0ZAikwBhMah2IJpz6SAwSBL4oaAQUCAh0DBAEOAQgFAwMJCBCCeAIGBQIEDAYNAwkCAnEEgkGBFgSIRoxmiTCJSw
X-IronPort-AV: E=Sophos;i="4.73,380,1325480400"; d="scan'208";a="155473507"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 07 Feb 2012 20:04:29 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id A3B42B3F2C; Tue,  7 Feb 2012 20:04:29 -0500 (EST)
Date: Tue, 7 Feb 2012 20:04:29 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: david noveck <david.noveck@emc.com>
Message-ID: <1318288964.960277.1328663069608.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AD88974D@MX31A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the problem continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 08 Feb 2012 01:04:31 -0000

David Noveck wrote:
> The background here is that, in connection with the discussion of
> persistent delegation reclaim, Tom urged us to look at bis-16, since
> it was good to get more eyes on what is going to be the v4..0 spec
> some time coming up.
> 
> The good new is that Tom was wise to make that request and I did look
> at bis-16 with regard to these issues. Come to think of it, that's the
> bad news as well, since the fact that there were some problems to
> find, is exactly why Tom was wise to make the request. Sigh!
> 
> So here' s the problem. First we have:
> 
> 13.1.5.3. NFS4ERR_EXPIRED (Error Code 10011)
> A stateid designates locking state of any type that has been revoked
> due to expiration of the client's lease, either immediately upon
> lease expiration, or following a later request for a conflicting
> Lock
> 
> Then we have two things which contradict it.
> 
> Section 9.6.3.1 has the he following paragraph:
> 
> If the server does not reboot before the network partition is healed,
> when the original client tries to access a courtesy lock which was
> freed, the server SHOULD send back a NFS4ERR_BAD_STATEID to the
> client. If the client tries to access a courtesy lock which was not
> freed, then the server SHOULD mark all of the courtesy locks as
> implicitly being renewed.
> 
> Which contracts the last clause of 13.1.5.3.
> 
> Note that section 10.2.1 (which I'm trying to rewrite for the
> CLAIM_DELEGATE_PREV stuff) says:
> 
> A client normally finds out about revocation of a delegation when it
> uses a stateid associated with a delegation and receives the error
> NFS4ERR_EXPIRED. It also may find out about delegation revocation
> after a client reboot when it attempts to reclaim a delegation and
> receives that same error. Note that in the case of a revoked
> OPEN_DELEGATE_WRITE delegation, there are issues because data may
> have been modified by the client whose delegation is revoked and
> separately by other clients. See Section 10.5.1 for a discussion of
> such issues. Note also that when delegations are revoked,
> information about the revoked delegation will be written by the
> server to stable storage (as described in Section 9.6). This is done
> to deal with the case in which a server reboots after revoking a
> delegation but before the client holding the revoked delegation is
> notified about the revocation.
> 
> Although it doesn't explicitly say so, the implication is that
> NFS4ERR_EXPIRED is what you
> get when a delegation is revoked without lease expiration (which I'd
> call "normally" :-). So if not,
> NFS4ERR_EXPIRED, what is returned in this case?
> 
I'm confused by this para? I don't see how a server would "normally"
revoke a delegation unless the lease has expired. When it does a CB_RECALL,
it is supposed to wait at least a lease duration for a DelegReturn
before revoking the delegation.

Did you mean to say "after lease expiration" and not "without lease
expiration"? (By "after lease expiration" I mean that the client has
failed to renew the lease within the lease duration. I don't meant that
the server has thrown all open/lock state for the client away because
it didn't renew the lease within the lease duration.)

> Note that section 9.1.3.4 says:
> 
> o If the stateid represents revoked state, then return
> NFS4ERR_EXPIRED or NFS4ERR_ADMIN_REVOKED, as appropriate.
> 
> Which suggests that NFS4ERR_EXPIRED is returned in this case.
> 
I think the case where the lease has not expired is NFS4ERR_ADMIN_REVOKED
as I noted, above. Also, see the comment below.

> So, in addition to the editing issue of making things consistent, we
> have a substantive issue to
> decide about.
> 
> The motivation of the courtesy lock stuff seems to have been to
> provide the client a signal
> (NFS4ERR_EXPIRED) that indicates, "you have lost all your locks"
> (rather just one or a few),
> but the treatment of delegation revocation vitiates that.
> 
If the server "revokes" a delegation after lease expiration, but does
not "revoke" the rest of the open/lock state held for a client, then
I see a problem, which I think is the one you are referring to.

For that case (the FreeBSD server holds onto state after the lease
has expired, which is a variant of "courtesy locks", but throws all the
open/lock related state away when any of it is being thrown away, so it
doesn't have to handle this case), I can see the problem and it seems that
a server must return NFS4ERR_BAD_STATEID for this case, unless defining
a new error code NFS4ERR_EXPIRED_STATEID could be added to the spec?

> I think I need such an indication in some form, because there is a
> need to specify conditions when you may
> do persistent delegation recovery and the occasion of losing all your
> locks due to a network partition is
> one of those situations (while the occasion of losing a few locks, or
> having a specific delegation revoked is
> certainly not one of those situations)..
> 
> Anybody have any ideas on how to resolve this?
> 
I think that, if a new error like NFS4ERR_EXPIRED_STATEID can't be added
it will be better to use NFS4ERR_BAD_STATEID for the case where a stateid
was revoked, but others are still valid vs NFS4ERR_EXPIRED for the case
where all state for a client has been revoked.

If NFS4ERR_EXPIRED is overloaded to refer to both "this stateid" and
"all state for the client" then I think a client will have difficulty
determining how to recover from NFS4ERR_EXPIRED.

rick
> 
> 
> 
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From david.noveck@emc.com  Wed Feb  8 10:33:29 2012
Return-Path: <david.noveck@emc.com>
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 5999821F855F for <nfsv4@ietfa.amsl.com>; Wed,  8 Feb 2012 10:33:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.646
X-Spam-Level: 
X-Spam-Status: No, score=-8.646 tagged_above=-999 required=5 tests=[AWL=0.094,  BAYES_20=-0.74, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J0UrvoO2M2Kr for <nfsv4@ietfa.amsl.com>; Wed,  8 Feb 2012 10:33:27 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 94D3A21F855B for <nfsv4@ietf.org>; Wed,  8 Feb 2012 10:33:27 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q18IXFxR013555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <nfsv4@ietf.org>; Wed, 8 Feb 2012 13:33:23 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.129]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor) for <nfsv4@ietf.org>; Wed, 8 Feb 2012 13:30:24 -0500
Received: from mxhub09.corp.emc.com (mxhub09.corp.emc.com [10.254.92.104]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q18IUN4Z012183 for <nfsv4@ietf.org>; Wed, 8 Feb 2012 13:30:23 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub09.corp.emc.com ([10.254.92.104]) with mapi; Wed, 8 Feb 2012 13:30:23 -0500
From: <david.noveck@emc.com>
To: <nfsv4@ietf.org>
Date: Wed, 8 Feb 2012 13:30:21 -0500
Thread-Topic: Towards a proposal to fix  persistent delegation issues for v4.0
Thread-Index: AczmkPoPFaTkr7p/RGadiZPls9k5CQ==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD889908@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Subject: [nfsv4] Towards a proposal to fix persistent delegation issues for v4.0
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 08 Feb 2012 18:33:29 -0000

***(INTRO)**************************************************************
************************************************************************

Making progress on this, even though I was waylaid by some other problems
in bis-16 as it stands.

I'm not sure if we have "seems like consensus" (SLC), as Spencer
was looking for.  Perhaps it is "minimally like consensus" (MLC)
and thus less reliable.   In the interests of getting to a 'clean'
proposal I've come up with a list of specification changes keyed
to bis-16.

***(TOC)****************************************************************
************************************************************************

   INTRO   -- Above
   TOC     -- This list of stuff in here
   NOTES   -- Discussion of remaining issues and things about which we
              may need to get to consensus or at least something that seems
              like it
   CURRENT -- current proposal for changes to deal with persistent
              delegations plus all the stuff that I had to fix/correct/
              clean up to address in connection with those
   9.6.3   -- Discussion about correcting current (bis-16) organization
              of 9.6.3.

***(NOTES)**************************************************************
************************************************************************

Most of what is in (CURRENT) has been mentioned in my previous sketch of
a proposal and if there is no actual consensus, at least there does not
seem to have been any dissension.  If that's not SLC, then at least it is
MLC.

Here is a list of other stuff that is either in the proposal or where
it has been suggested as something that should b in it.  the items will
identified by the proposer and an integer.

   DAVE0 --  IN-CURRENT

     treat delegation revocation after lease expiration in a fashion like
     courtesy locks, rather than entirely separate.

     Made this change mainly bcause I couldn't understand what is there and
     had to write something that i could understand.

     My impression is that Rick would agree but we haven't reached seems-
     like-consensus.  Nobody has seen this text yet.

     Can rework if there is disagreement.

    RICK0 -- AWAITING-SLC

      saying that when a delegation is revoked after lease expiration
      but all locks are  not released (no lease cancellation),
      NFS4ERR_BAD_STATEID should be returned.

      I agree that it is consistent with DAVE0.

      Heard no other opinions.

    RICK1 -- AWAITING-SLC

       saying that when a delegation is revoked and there is no lease
       expiration, NFS4ERR_ADMIN_REVOKED is returned.

       I'm OK with this but think that we can only do it if there are some
       other spec changes to go with it, e.g. DAVE1.

       Heard no other opinions.


    DAVE1 -- AWAITING-SLC

       changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
       consistent with RICK1.

       It seems to me that this is a requirement for RICK1, but I'm not sur=
e
       if Rick agrees.

       Heard no other opinions on this.

    DAVE2 -- IN-CURRENT

       saying that NFS4ERR_EXPIRED is not the signal for lease
       cancellation (uses invalidation of the clientid instead)

       Big issue is whether this is consistent with existing servers.

       Would not be needed if we have SLC on both RICK0 and RICK1.

       Put in just in case we can't get to SLC on those.  Can take it out.


Opinions on these?

Other issues to add to the list?

Opinions on or issues with the current proposal?


***(CURRENT)************************************************************
************************************************************************

=3D=3D=3D> replace the last paragraph of section 9.1.10, by:

   Requiring open confirmation on reclaim-type opens is avoidable
   because of the nature of the environments in which such opens are
   done.  For CLAIM_PREVIOUS opens, this is immediately after server
   reboot, so there should be no time for open-owners to be created,
   found to be unused, and recycled.  For CLAIM_DELEGATE_PREV opens, we
   are dealing with either a client reboot situation or a network partition
   resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
   A server which supports delegation can be sure that no open-owners
   for that client have been recycled since client initialization or
   deletion of lease state and thus can ensure that confirmation will
   not be required.

=3D=3D=3D> replace the first paragraph of the second bulleted item in 9.5
     with the following:

    o Any operation made with a valid clientid (DELEGPURGE, RENEW,
      OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
      OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
      In the latter case, the stateid must not be one of the
      special stateids consisting of all bits 0 or all bits 1.

=3D=3D=3D> After what is now the fourth non-bulleted paragraph of section 9=
.6.3.1
=3D=3D=3D> but probably shouldn't be (see the bottom of this mail),
=3D=3D=3D> add the following paragraph.

    The above are directed o CLAIM_PREVIOUS reclaims and not to
    CLAIM_DELEGATE_PREV reclaims, which generally do not involve
    a server reboot.  However, when a server persistently stores
    delegation information to support CLAIM_DELEGATE_PREV across
    a period in which both client and server are down at the same
    time, similar strictures apply.

=3D=3D=3D> Replace section 10.2.1 by the following

 There are three situations that delegation recovery must deal with:

   o  Client reboot or restart

   o  Server reboot or restart

   o  Network partition (full or callback-only)

   In the event the client reboots or restarts, the confirmation of
   a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
   will result in the release of byte-range locks and share reservations.
   Delegations, however, may be treated a bit differently.

   There will be situations in which delegations will need to be
   reestablished after a client reboots or restarts.  The reason for
   this is the client may have file data stored locally and this data
   was associated with the previously held delegations.  The client will
   need to reestablish the appropriate file state on the server.

   To allow for this type of client recovery, the server MAY allow
   delegations to be retained after other sort of locks are released.
   This implies that requests from other clients that conflict with these
   delegations will need to wait.  Because the normal recall process may
   require significant time for the client to flush changed state to the
   server, other clients need to be prepared for delays that occur because =
of a
   conflicting delegation.  In order to give clients a chance to get throug=
h
   the reboot process during which leases will not be renewed, the server M=
AY
   extend the period for delegation recovery beyond the typical lease
   expiration period.  For open delegations, such delegations that are not
   released are reclaimed using OPEN with a claim type of CLAIM_DELEGATE_PR=
EV.
   (See Section 10.5 and Section 15.18 for discussion of open delegation an=
d
   the details of OPEN respectively).

   A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
   does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
   instead MUST, make them available until the client indicates that
   delegation recovery is complete, by doing a DELEGPURGE.  The only except=
ion
   to this requirement is when the client lease expires.

   A server that supports a claim type of CLAIM_DELEGATE_PREV MUST support
   the DELEGPURGE operation, and similarly a server that supports
   DELEGPURGE MUST support CLAIM_DELEGATE_PREV.  A server which does
   not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
   client attempts to use that feature or performs a DELEGPURGE operation.

   Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
   as providing for "persistent delegations" in that they allow use of
   persistent storage on the client to store data written by the client,
   even across a client restart.  It should be noted that, with the
   optional exception noted below, this feature requires persistent
   storage to be used on the client and does not add to persistent storage
   requirements on the server.

   One good way to think about persistent delegations is that for the most
   part, they function like "courtesy locks", with a special semantic
   adjustments to allow them to be retained across a client restart, which
   cause all other sorts of locks to be freed.  Such locks are generally
   not retained across a server restart.  The one exception is the
   case of simultaneous failure of the client and server and is discussed
   below.

   When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
   by returning NFS_OK to DELEGPURGE, a client with a write delegation,
   can use write-back caching for data to be written to the server, deferri=
ng
   the write-back, until such time as the delegation is recalled, possibly
   after intervening client restarts.  Similarly, when the server indicates
   support of CLAIM_DELEGATE_PREV, a client with a read delegation and
   an open-for-write subordinate to that delegation, may be sure of the
   integrity of its persistently cached copy of the file after a client
   restart without specific verification of the change attribute.

   When the server reboots or restarts, delegations are reclaimed (using
   the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
   range locks and share reservations.  However, there is a slight
   semantic difference.  In the normal case, if the server decides that a
   delegation should not be granted, it performs the requested action
   (e.g., OPEN) without granting any delegation.  For reclaim, the
   server grants the delegation but a special designation is applied so
   that the client treats the delegation as having been granted but
   recalled by the server.  Because of this, the client has the duty to
   write all modified state to the server and then return the
   delegation.  This process of handling delegation reclaim reconciles
   three principles of the NFSv4 protocol:

   o  Upon reclaim, a client reporting resources assigned to it by an
      earlier server instance must be granted those resources.

   o  The server has unquestionable authority to determine whether
      delegations are to be granted and, once granted, whether they are
      to be continued.

   o  The use of callbacks is not to be depended upon until the client
      has proven its ability to receive them.

   When a client has more than a single open associated with a
   delegation, state for those additional opens can be established using
   OPEN operations of type CLAIM_DELEGATE_CUR.  When these are used to
   establish opens associated with reclaimed delegations, the server
   MUST allow them when made within the grace period.

   Situations in which there us a series of client and server restarts wher=
e
   there is no restart of both at the same time, are dealt with via a
   combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
   Persistent storage is needed only on the client.  For each server
   failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
   restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.

   To deal with the possibility of simultaneous failure of client and
   server (e.g. situations like power outages, etc.), the server MAY
   persistently store delegation information so that it can respond to
   a CLAIM_DELEGATE_PREV reclaim request which it receives from a
   restarting client.   This is the one case in which persistent
   delegation state can be retained across a server restart.  A server
   is not required to store this information, but if it does do so, it
   should do so for write delegations and for read delegations, during
   the pendency of which (across multiple client and/or server
   instances), some open-for-write was done as part of delegation.  When
   the space to persistently record such information is limited, the
   server should recall delegations in this class in preference to
   keeping them active without persistent storage recording.

   When a network partition occurs, delegations are subject to freeing
   by the server when the lease renewal period expires.  This is similar
   to the behavior for locks and share reservations, and, as for locks
   and share reservations it may be modified by support for "courtesy
   locks" in which locks are not freed in the absence of a conflicting
   lock request.  Whereas, for locks and share reservations, freeing of
   locks will occur immediately upon the appearance of a conflicting
   request, for delegations, the server may institute period during which
   conflicting requests are held off.  Eventually the occurrence of a
   conflicting request from another client will cause revocation of the
   delegation.

   A loss of the callback path (e.g., by later network configuration
   change) will have a similar effect in that it can also result in
   revocation of a delegation  A recall request will fail and revocation
   of the delegation will result.

   A client normally finds out about revocation of a delegation when it
   uses a stateid associated with a delegation and receives the error
   NFS4ERR_EXPIRED.  It also may find out about delegation revocation
   after a client reboot when it attempts to reclaim a delegation and
   receives that same error.  Note that in the case of a revoked
   OPEN_DELEGATE_WRITE delegation, there are issues because data may
   have been modified by the client whose delegation is revoked and
   separately by other clients.  See Section 10.5.1 for a discussion of
   such issues.  Note also that when delegations are revoked,
   information about the revoked delegation will be written by the
   server to stable storage (as described in Section 9.6).  This is done
   to deal with the case in which a server reboots after revoking a
   delegation but before the client holding the revoked delegation is
   notified about the revocation.

   Note that when there is a loss of a delegation, due to a network
   partition in which all locks associated with the lease are lost,
   the client will also receive the error NFS4ERR_EXPIRED.  This case
   can be distinguished from other situations in which delegations
   are revoked by seeing that the associated clientid becomes invalid
   so that NFS4ERR_STALE_CLIENTID is returned when it is used.

   In such situations, the server MAY retain information about the
   delegations held by the client, deleting those that are
   invalidated by a conflicting request.  Retaining such information
   will allow the client to recover all non-invalidated delegations
   using the claim type CLAIM_DELEGATE_PREV, once the
   SETCLIENTID_CONFIRM is done to recover.  Attempted recovery of
   delegation that the client has no record of, typically because they
   were invalidated by conflicting requests, will get the error
   NFS4ERR_BAD_RECLAIM.  Once a reclaim is attempted for all delegations
   that the client held, it SHOULD do a DELEGPURGE to allow any remaining
   server delegation information to be freed.

=3D=3D=3D> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
=3D=3D=3D> section 15.18.5.

=3D=3D=3D> In that paragraph, replace "; used after the client reboots:" wi=
th
=3D=3D=3D> the following:

   This claim type is for use after a SETCLIENTID_CONFIRM and before
   the corresponding DELEGPURGE in two situations: after a client reboot
   and after a lease expiration that resulted in loss of all lock
   state.

=3D=3D=3D> after that paragraph, add the following material with indenting =
that
     matches the non-hanging portion of the noted paragraph.

   The following errors apply to use of the CLAIM_DELEGATE_PREV claim
   type:

   o NFS4ERR_NOTSUPP is returned if the server does not support this
     claim type.

   o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
     time, e.g. after DELEGPURGE has been done.

   o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
     apply and the server has no record of the delegation whose reclaim
     is being attempted.

=3D=3D=3D> Replace the last two paragraphs of 15.7.4 by the following:

   This operation in provided to support clients that record delegation
   information on stable storage on the client.  In this case,
   DELEGPURGE should be issued immediately after doing delegation
   recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
   the client.  Doing so will notify the server that no additional
   delegations for the client will be recovered allowing it to free
   resources, and avoid delaying other clients who make requests that
   conflict with the unrecovered delegations.  All client SHOULD use
   DELEGPURGE as part of recovery once it is known that no further
   CLAIM_DELEGATE_PREV recovery will be done.  This includes clients
   that do not record delegation information on stable storage, who would
   then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.

   The set of delegations known to the server and the
   client may be different.  The reasons for this include:

   o a client may fail after making a request which resulted in delegation
     but before it received the results and committed them to the client's
     stable storage.
   o a client may fail after deleting its indication that a delegation exis=
ts
     but before the delegation return is fully processed by the server.
   o in the case in which the server and the client restart, the server
     may have limited persistent recording of delegation to a subset of
     those in existence.
   o a client may have only persistently recorded information about a subse=
t of
     delegations.

   The server MAY support DELEGPURGE, but its support or non-support should
   match that of CLAIM_DELEGATE_PREV:
   o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
   o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV

   This fact allows a client starting up to determine if the server is prep=
ared
   to support persistent storage of delegation information and thus whether=
 it
   may use write-back caching to local persistent storage, relying on
   CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
   safely to the server in the event of client restart.

***(9.6.3)**************************************************************
************************************************************************

=3D=3D=3D> The section organization of 9.6.3 is messed up.  See below.
=3D=3D=3D> The big issue is that all of the edge condition stuff is part of
=3D=3D=3D> 'courtesy locks' when  it shouldn't be

=3D=3D=3D> Here's what exists now.

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.1.1.  First Server Edge Condition
9.6.3.1.2.  Second Server Edge Condition
9.6.3.1.3.  Handling Server Edge Conditions
9.6.3.1.4.  Client Edge Condition
9.6.3.1.5.  Client's Handling of NFS4ERR_NO_GRACE
9.6.3.2.  Client's Reaction to a Freed Lock


=3D=3D=3D> Here's a suggested replacement;

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.2.  Client's Reaction to a Freed Lock
9.6.3.3.  Edge Conditions (NEW)
9.6.3.3.1.  First Server Edge Condition
9.6.3.3.2.  Second Server Edge Condition
9.6.3.3.3.  Handling Server Edge Conditions
9.6.3.3.4.  Client Edge Condition
9.6.3.4.  Client's Handling of NFS4ERR_NO_GRACE








From Trond.Myklebust@netapp.com  Wed Feb  8 16:11:00 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 D805C21F8498 for <nfsv4@ietfa.amsl.com>; Wed,  8 Feb 2012 16:11:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.519
X-Spam-Level: 
X-Spam-Status: No, score=-10.519 tagged_above=-999 required=5 tests=[AWL=0.080, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8zh08CChs7gk for <nfsv4@ietfa.amsl.com>; Wed,  8 Feb 2012 16:11:00 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 7D7F421F84A7 for <nfsv4@ietf.org>; Wed,  8 Feb 2012 16:10:57 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,387,1325491200"; d="scan'208";a="623803703"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 08 Feb 2012 16:10:33 -0800
Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q190AXfR003090; Wed, 8 Feb 2012 16:10:33 -0800 (PST)
Received: from VMWEXCEHT03-PRD.hq.netapp.com ([10.106.76.241]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 8 Feb 2012 16:10:29 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.01.0355.002; Wed, 8 Feb 2012 16:10:28 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "david.noveck@emc.com" <david.noveck@emc.com>
Thread-Topic: [nfsv4] Towards a proposal to fix persistent delegation issues for v4.0
Thread-Index: AQHM5r85wRQ0tCpbtUu6hfZOPSr4Ig==
Date: Thu, 9 Feb 2012 00:10:27 +0000
Message-ID: <1328746227.3234.63.camel@lade.trondhjem.org>
References: <5DEA8DB993B81040A21CF3CB332489F6AD889908@MX31A.corp.emc.com>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AD889908@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.116]
Content-Type: text/plain; charset="utf-8"
Content-ID: <7A0C20DAFBF7694D9FCD766F0F62B593@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginalArrivalTime: 09 Feb 2012 00:10:29.0313 (UTC) FILETIME=[3B314B10:01CCE6BF]
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Towards a proposal to fix persistent delegation issues for v4.0
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 09 Feb 2012 00:11:00 -0000

SGkgRGF2ZSwNCg0KU2luY2UgdGhleSBkb24ndCBzdXJ2aXZlIHNlcnZlciByZWJvb3RzLCB3ZSBy
ZWFsbHkgc2hvdWxkIGZpbmQgYSBiZXR0ZXINCm5hbWUgdGhhbiAncGVyc2lzdGVudCcgZGVsZWdh
dGlvbnMuIDotKQ0KDQpDb21tZW50cyBpbmxpbmVkLi4uDQoNCg0KT24gV2VkLCAyMDEyLTAyLTA4
IGF0IDEzOjMwIC0wNTAwLCBkYXZpZC5ub3ZlY2tAZW1jLmNvbSB3cm90ZToNCj4gKioqKElOVFJP
KSoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqDQo+ICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKg0KPiANCj4gTWFraW5nIHByb2dyZXNzIG9uIHRoaXMs
IGV2ZW4gdGhvdWdoIEkgd2FzIHdheWxhaWQgYnkgc29tZSBvdGhlciBwcm9ibGVtcw0KPiBpbiBi
aXMtMTYgYXMgaXQgc3RhbmRzLg0KPiANCj4gSSdtIG5vdCBzdXJlIGlmIHdlIGhhdmUgInNlZW1z
IGxpa2UgY29uc2Vuc3VzIiAoU0xDKSwgYXMgU3BlbmNlcg0KPiB3YXMgbG9va2luZyBmb3IuICBQ
ZXJoYXBzIGl0IGlzICJtaW5pbWFsbHkgbGlrZSBjb25zZW5zdXMiIChNTEMpDQo+IGFuZCB0aHVz
IGxlc3MgcmVsaWFibGUuICAgSW4gdGhlIGludGVyZXN0cyBv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cm9uZCBNeWtsZWJ1c3QNCkxpbnV4
IE5GUyBjbGllbnQgbWFpbnRhaW5lcg0KDQpOZXRBcHANClRyb25kLk15a2xlYnVzdEBuZXRhcHAu
Y29tDQp3d3cubmV0YXBwLmNvbQ0KDQo=

From rmacklem@uoguelph.ca  Wed Feb  8 17:23:14 2012
Return-Path: <rmacklem@uoguelph.ca>
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 733FB11E808F for <nfsv4@ietfa.amsl.com>; Wed,  8 Feb 2012 17:23:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.114
X-Spam-Level: 
X-Spam-Status: No, score=-6.114 tagged_above=-999 required=5 tests=[AWL=0.485,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qdd5hI2gk6Qu for <nfsv4@ietfa.amsl.com>; Wed,  8 Feb 2012 17:23:12 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 6481311E8087 for <nfsv4@ietf.org>; Wed,  8 Feb 2012 17:23:12 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAGMfM0+DaFvO/2dsb2JhbABDhQ+rC4FyAQEBAwEBAQEXCUsLBRYaAg0ZAikwBhOHfAmnIJFeBIEvigsDAgEBBAYIBwsIBAMCBQQBAwQBAwIEBwIdAQMCFASDHgEGAQ0GAlEHBQcBBQYBBQEJAQECAg2CLYEWBIhGjGeSew
X-IronPort-AV: E=Sophos;i="4.73,387,1325480400"; d="scan'208";a="155631599"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 08 Feb 2012 20:23:11 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 35A7FB3F58; Wed,  8 Feb 2012 20:23:11 -0500 (EST)
Date: Wed, 8 Feb 2012 20:23:11 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: david noveck <david.noveck@emc.com>
Message-ID: <2145641484.1044406.1328750591162.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AD889908@MX31A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.202]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Towards a proposal to fix persistent delegation issues for	v4.0
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 09 Feb 2012 01:23:14 -0000

David Noveck wrote:

Overall, it reads just fine to me, but there is one place where my
current understanding of NFS4ERR_STALE_CLIENTID doesn't agree with
the proposed use of it. See below:
> ***(INTRO)**************************************************************
> ************************************************************************
> 
> Making progress on this, even though I was waylaid by some other
> problems
> in bis-16 as it stands.
> 
> I'm not sure if we have "seems like consensus" (SLC), as Spencer
> was looking for. Perhaps it is "minimally like consensus" (MLC)
> and thus less reliable. In the interests of getting to a 'clean'
> proposal I've come up with a list of specification changes keyed
> to bis-16.
> 
> ***(TOC)****************************************************************
> ************************************************************************
> 
> INTRO -- Above
> TOC -- This list of stuff in here
> NOTES -- Discussion of remaining issues and things about which we
> may need to get to consensus or at least something that seems
> like it
> CURRENT -- current proposal for changes to deal with persistent
> delegations plus all the stuff that I had to fix/correct/
> clean up to address in connection with those
> 9.6.3 -- Discussion about correcting current (bis-16) organization
> of 9.6.3.
> 
> ***(NOTES)**************************************************************
> ************************************************************************
> 
> Most of what is in (CURRENT) has been mentioned in my previous sketch
> of
> a proposal and if there is no actual consensus, at least there does
> not
> seem to have been any dissension. If that's not SLC, then at least it
> is
> MLC.
> 
> Here is a list of other stuff that is either in the proposal or where
> it has been suggested as something that should b in it. the items will
> identified by the proposer and an integer.
> 
> DAVE0 -- IN-CURRENT
> 
> treat delegation revocation after lease expiration in a fashion like
> courtesy locks, rather than entirely separate.
> 
> Made this change mainly bcause I couldn't understand what is there and
> had to write something that i could understand.
> 
> My impression is that Rick would agree but we haven't reached seems-
> like-consensus. Nobody has seen this text yet.
> 
> Can rework if there is disagreement.
> 
> RICK0 -- AWAITING-SLC
> 
> saying that when a delegation is revoked after lease expiration
> but all locks are not released (no lease cancellation),
> NFS4ERR_BAD_STATEID should be returned.
> 
> I agree that it is consistent with DAVE0.
> 
> Heard no other opinions.
> 
> RICK1 -- AWAITING-SLC
> 
> saying that when a delegation is revoked and there is no lease
> expiration, NFS4ERR_ADMIN_REVOKED is returned.
> 
> I'm OK with this but think that we can only do it if there are some
> other spec changes to go with it, e.g. DAVE1.
> 
> Heard no other opinions.
> 
> 
> DAVE1 -- AWAITING-SLC
> 
> changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
> consistent with RICK1.
> 
> It seems to me that this is a requirement for RICK1, but I'm not sure
> if Rick agrees.
> 
> Heard no other opinions on this.
> 
> DAVE2 -- IN-CURRENT
> 
> saying that NFS4ERR_EXPIRED is not the signal for lease
> cancellation (uses invalidation of the clientid instead)
> 
> Big issue is whether this is consistent with existing servers.
> 
> Would not be needed if we have SLC on both RICK0 and RICK1.
> 
> Put in just in case we can't get to SLC on those. Can take it out.
> 
> 
> Opinions on these?
> 
> Other issues to add to the list?
> 
> Opinions on or issues with the current proposal?
> 
> 
> ***(CURRENT)************************************************************
> ************************************************************************
> 
> ===> replace the last paragraph of section 9.1.10, by:
> 
> Requiring open confirmation on reclaim-type opens is avoidable
> because of the nature of the environments in which such opens are
> done. For CLAIM_PREVIOUS opens, this is immediately after server
> reboot, so there should be no time for open-owners to be created,
> found to be unused, and recycled. For CLAIM_DELEGATE_PREV opens, we
> are dealing with either a client reboot situation or a network
> partition
> resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
> A server which supports delegation can be sure that no open-owners
> for that client have been recycled since client initialization or
> deletion of lease state and thus can ensure that confirmation will
> not be required.
> 
> ===> replace the first paragraph of the second bulleted item in 9.5
> with the following:
> 
> o Any operation made with a valid clientid (DELEGPURGE, RENEW,
> OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
> OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
> In the latter case, the stateid must not be one of the
> special stateids consisting of all bits 0 or all bits 1.
> 
> ===> After what is now the fourth non-bulleted paragraph of section
> 9.6.3.1
> ===> but probably shouldn't be (see the bottom of this mail),
> ===> add the following paragraph.
> 
> The above are directed o CLAIM_PREVIOUS reclaims and not to
> CLAIM_DELEGATE_PREV reclaims, which generally do not involve
> a server reboot. However, when a server persistently stores
> delegation information to support CLAIM_DELEGATE_PREV across
> a period in which both client and server are down at the same
> time, similar strictures apply.
> 
> ===> Replace section 10.2.1 by the following
> 
> There are three situations that delegation recovery must deal with:
> 
> o Client reboot or restart
> 
> o Server reboot or restart
> 
> o Network partition (full or callback-only)
> 
> In the event the client reboots or restarts, the confirmation of
> a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
> will result in the release of byte-range locks and share reservations.
> Delegations, however, may be treated a bit differently.
> 
> There will be situations in which delegations will need to be
> reestablished after a client reboots or restarts. The reason for
> this is the client may have file data stored locally and this data
> was associated with the previously held delegations. The client will
> need to reestablish the appropriate file state on the server.
> 
> To allow for this type of client recovery, the server MAY allow
> delegations to be retained after other sort of locks are released.
> This implies that requests from other clients that conflict with these
> delegations will need to wait. Because the normal recall process may
> require significant time for the client to flush changed state to the
> server, other clients need to be prepared for delays that occur
> because of a
> conflicting delegation. In order to give clients a chance to get
> through
> the reboot process during which leases will not be renewed, the server
> MAY
> extend the period for delegation recovery beyond the typical lease
> expiration period. For open delegations, such delegations that are not
> released are reclaimed using OPEN with a claim type of
> CLAIM_DELEGATE_PREV.
> (See Section 10.5 and Section 15.18 for discussion of open delegation
> and
> the details of OPEN respectively).
> 
> A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
> does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
> instead MUST, make them available until the client indicates that
> delegation recovery is complete, by doing a DELEGPURGE. The only
> exception
> to this requirement is when the client lease expires.
> 
> A server that supports a claim type of CLAIM_DELEGATE_PREV MUST
> support
> the DELEGPURGE operation, and similarly a server that supports
> DELEGPURGE MUST support CLAIM_DELEGATE_PREV. A server which does
> not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
> client attempts to use that feature or performs a DELEGPURGE
> operation.
> 
> Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
> as providing for "persistent delegations" in that they allow use of
> persistent storage on the client to store data written by the client,
> even across a client restart. It should be noted that, with the
> optional exception noted below, this feature requires persistent
> storage to be used on the client and does not add to persistent
> storage
> requirements on the server.
> 
> One good way to think about persistent delegations is that for the
> most
> part, they function like "courtesy locks", with a special semantic
> adjustments to allow them to be retained across a client restart,
> which
> cause all other sorts of locks to be freed. Such locks are generally
> not retained across a server restart. The one exception is the
> case of simultaneous failure of the client and server and is discussed
> below.
> 
> When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
> by returning NFS_OK to DELEGPURGE, a client with a write delegation,
> can use write-back caching for data to be written to the server,
> deferring
> the write-back, until such time as the delegation is recalled,
> possibly
> after intervening client restarts. Similarly, when the server
> indicates
> support of CLAIM_DELEGATE_PREV, a client with a read delegation and
> an open-for-write subordinate to that delegation, may be sure of the
> integrity of its persistently cached copy of the file after a client
> restart without specific verification of the change attribute.
> 
> When the server reboots or restarts, delegations are reclaimed (using
> the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
> range locks and share reservations. However, there is a slight
> semantic difference. In the normal case, if the server decides that a
> delegation should not be granted, it performs the requested action
> (e.g., OPEN) without granting any delegation. For reclaim, the
> server grants the delegation but a special designation is applied so
> that the client treats the delegation as having been granted but
> recalled by the server. Because of this, the client has the duty to
> write all modified state to the server and then return the
> delegation. This process of handling delegation reclaim reconciles
> three principles of the NFSv4 protocol:
> 
> o Upon reclaim, a client reporting resources assigned to it by an
> earlier server instance must be granted those resources.
> 
> o The server has unquestionable authority to determine whether
> delegations are to be granted and, once granted, whether they are
> to be continued.
> 
> o The use of callbacks is not to be depended upon until the client
> has proven its ability to receive them.
> 
> When a client has more than a single open associated with a
> delegation, state for those additional opens can be established using
> OPEN operations of type CLAIM_DELEGATE_CUR. When these are used to
> establish opens associated with reclaimed delegations, the server
> MUST allow them when made within the grace period.
> 
> Situations in which there us a series of client and server restarts
> where
> there is no restart of both at the same time, are dealt with via a
> combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
> Persistent storage is needed only on the client. For each server
> failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
> restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.
> 
> To deal with the possibility of simultaneous failure of client and
> server (e.g. situations like power outages, etc.), the server MAY
> persistently store delegation information so that it can respond to
> a CLAIM_DELEGATE_PREV reclaim request which it receives from a
> restarting client. This is the one case in which persistent
> delegation state can be retained across a server restart. A server
> is not required to store this information, but if it does do so, it
> should do so for write delegations and for read delegations, during
> the pendency of which (across multiple client and/or server
> instances), some open-for-write was done as part of delegation. When
> the space to persistently record such information is limited, the
> server should recall delegations in this class in preference to
> keeping them active without persistent storage recording.
> 
> When a network partition occurs, delegations are subject to freeing
> by the server when the lease renewal period expires. This is similar
> to the behavior for locks and share reservations, and, as for locks
> and share reservations it may be modified by support for "courtesy
> locks" in which locks are not freed in the absence of a conflicting
> lock request. Whereas, for locks and share reservations, freeing of
> locks will occur immediately upon the appearance of a conflicting
> request, for delegations, the server may institute period during which
> conflicting requests are held off. Eventually the occurrence of a
> conflicting request from another client will cause revocation of the
> delegation.
> 
> A loss of the callback path (e.g., by later network configuration
> change) will have a similar effect in that it can also result in
> revocation of a delegation A recall request will fail and revocation
> of the delegation will result.
> 
> A client normally finds out about revocation of a delegation when it
> uses a stateid associated with a delegation and receives the error
> NFS4ERR_EXPIRED. It also may find out about delegation revocation
> after a client reboot when it attempts to reclaim a delegation and
> receives that same error. Note that in the case of a revoked
> OPEN_DELEGATE_WRITE delegation, there are issues because data may
> have been modified by the client whose delegation is revoked and
> separately by other clients. See Section 10.5.1 for a discussion of
> such issues. Note also that when delegations are revoked,
> information about the revoked delegation will be written by the
> server to stable storage (as described in Section 9.6). This is done
> to deal with the case in which a server reboots after revoking a
> delegation but before the client holding the revoked delegation is
> notified about the revocation.
> 
> Note that when there is a loss of a delegation, due to a network
> partition in which all locks associated with the lease are lost,
> the client will also receive the error NFS4ERR_EXPIRED. This case
> can be distinguished from other situations in which delegations
> are revoked by seeing that the associated clientid becomes invalid
> so that NFS4ERR_STALE_CLIENTID is returned when it is used.
> 
Here's a paragraph from RFC3530, pg 68 (I know Tom, but I don't have a bis
doc handy and it is the protocol spec that has been implemented, etc):

   Once a SETCLIENTID and SETCLIENTID_CONFIRM sequence has successfully
   completed, the client uses the shorthand client identifier, of type
   clientid4, instead of the longer and less compact nfs_client_id4
   structure.  This shorthand client identifier (a clientid) is assigned
   by the server and should be chosen so that it will not conflict with
   a clientid previously assigned by the server.  This applies across
   server restarts or reboots.  When a clientid is presented to a server
   and that clientid is not recognized, as would happen after a server
   reboot, the server will reject the request with the error
   NFS4ERR_STALE_CLIENTID.  When this happens, the client must obtain a
   new clientid by use of the SETCLIENTID operation and then proceed to
   any other necessary recovery for the server reboot case (See the
   section "Server Failure and Recovery").

To me, this says that a client should do a "server reboot recovery" when
it sees NFS4ERR_STALE_CLIENTID and that is what the current FreeBSD client
does. (ie. expects a grace period in which it can do reclaim type ops like
Open CLAIM_PREVIOUS)

I think that, if a server replies NFS4ERR_STALE_CLIENTID for the case where
it hasn't rebooted and isn't providing a grace period, it will cause confusion
for extant clients (at least I know it will for the FreeBSD one:-).

I think it is better to return NFS4ERR_BAD_STATEID when the delegation for
that stateid has been lost and NFS4ERR_EXPIRED when all state related to
the clientid, has been lost.

> In such situations, the server MAY retain information about the
> delegations held by the client, deleting those that are
> invalidated by a conflicting request. Retaining such information
> will allow the client to recover all non-invalidated delegations
> using the claim type CLAIM_DELEGATE_PREV, once the
> SETCLIENTID_CONFIRM is done to recover. Attempted recovery of
> delegation that the client has no record of, typically because they
> were invalidated by conflicting requests, will get the error
> NFS4ERR_BAD_RECLAIM. Once a reclaim is attempted for all delegations
> that the client held, it SHOULD do a DELEGPURGE to allow any remaining
> server delegation information to be freed.
> 
> ===> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
> ===> section 15.18.5.
> 
> ===> In that paragraph, replace "; used after the client reboots:"
> with
> ===> the following:
> 
> This claim type is for use after a SETCLIENTID_CONFIRM and before
> the corresponding DELEGPURGE in two situations: after a client reboot
> and after a lease expiration that resulted in loss of all lock
> state.
> 
> ===> after that paragraph, add the following material with indenting
> that
> matches the non-hanging portion of the noted paragraph.
> 
> The following errors apply to use of the CLAIM_DELEGATE_PREV claim
> type:
> 
> o NFS4ERR_NOTSUPP is returned if the server does not support this
> claim type.
> 
> o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
> time, e.g. after DELEGPURGE has been done.
> 
> o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
> apply and the server has no record of the delegation whose reclaim
> is being attempted.
> 
> ===> Replace the last two paragraphs of 15.7.4 by the following:
> 
> This operation in provided to support clients that record delegation
> information on stable storage on the client. In this case,
> DELEGPURGE should be issued immediately after doing delegation
> recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
> the client. Doing so will notify the server that no additional
> delegations for the client will be recovered allowing it to free
> resources, and avoid delaying other clients who make requests that
> conflict with the unrecovered delegations. All client SHOULD use
> DELEGPURGE as part of recovery once it is known that no further
> CLAIM_DELEGATE_PREV recovery will be done. This includes clients
> that do not record delegation information on stable storage, who would
> then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.
> 
> The set of delegations known to the server and the
> client may be different. The reasons for this include:
> 
> o a client may fail after making a request which resulted in
> delegation
> but before it received the results and committed them to the client's
> stable storage.
> o a client may fail after deleting its indication that a delegation
> exists
> but before the delegation return is fully processed by the server.
> o in the case in which the server and the client restart, the server
> may have limited persistent recording of delegation to a subset of
> those in existence.
> o a client may have only persistently recorded information about a
> subset of
> delegations.
> 
> The server MAY support DELEGPURGE, but its support or non-support
> should
> match that of CLAIM_DELEGATE_PREV:
> o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
> o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV
> 
> This fact allows a client starting up to determine if the server is
> prepared
> to support persistent storage of delegation information and thus
> whether it
> may use write-back caching to local persistent storage, relying on
> CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
> safely to the server in the event of client restart.
> 
> ***(9.6.3)**************************************************************
> ************************************************************************
> 
> ===> The section organization of 9.6.3 is messed up. See below.
> ===> The big issue is that all of the edge condition stuff is part of
> ===> 'courtesy locks' when it shouldn't be
> 
> ===> Here's what exists now.
> 
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.1.1. First Server Edge Condition
> 9.6.3.1.2. Second Server Edge Condition
> 9.6.3.1.3. Handling Server Edge Conditions
> 9.6.3.1.4. Client Edge Condition
> 9.6.3.1.5. Client's Handling of NFS4ERR_NO_GRACE
> 9.6.3.2. Client's Reaction to a Freed Lock
> 
> 
> ===> Here's a suggested replacement;
> 
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.2. Client's Reaction to a Freed Lock
> 9.6.3.3. Edge Conditions (NEW)
> 9.6.3.3.1. First Server Edge Condition
> 9.6.3.3.2. Second Server Edge Condition
> 9.6.3.3.3. Handling Server Edge Conditions
> 9.6.3.3.4. Client Edge Condition
> 9.6.3.4. Client's Handling of NFS4ERR_NO_GRACE
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From david.noveck@emc.com  Thu Feb  9 13:46:43 2012
Return-Path: <david.noveck@emc.com>
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 854F421E8050 for <nfsv4@ietfa.amsl.com>; Thu,  9 Feb 2012 13:46:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.58
X-Spam-Level: 
X-Spam-Status: No, score=-9.58 tagged_above=-999 required=5 tests=[AWL=1.019,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kLceFwuNXLnV for <nfsv4@ietfa.amsl.com>; Thu,  9 Feb 2012 13:46:42 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 5CEB921E8019 for <nfsv4@ietf.org>; Thu,  9 Feb 2012 13:46:38 -0800 (PST)
Received: from hop04-l1d11-si04.isus.emc.com (HOP04-L1D11-SI04.isus.emc.com [10.254.111.24]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q19LkZ4k014735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Feb 2012 16:46:37 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.129]) by hop04-l1d11-si04.isus.emc.com (RSA Interceptor); Thu, 9 Feb 2012 16:45:35 -0500
Received: from mxhub02.corp.emc.com (mxhub02.corp.emc.com [10.254.141.104]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q19LjZfH024022; Thu, 9 Feb 2012 16:45:35 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub02.corp.emc.com ([10.254.141.104]) with mapi; Thu, 9 Feb 2012 16:45:35 -0500
From: <david.noveck@emc.com>
To: <Trond.Myklebust@netapp.com>
Date: Thu, 9 Feb 2012 16:45:34 -0500
Thread-Topic: [nfsv4] Towards a proposal to fix persistent delegation issues for v4.0
Thread-Index: AQHM5r85wRQ0tCpbtUu6hfZOPSr4IpY1HPfw
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD889B50@MX31A.corp.emc.com>
References: <5DEA8DB993B81040A21CF3CB332489F6AD889908@MX31A.corp.emc.com> <1328746227.3234.63.camel@lade.trondhjem.org>
In-Reply-To: <1328746227.3234.63.camel@lade.trondhjem.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Towards a proposal to fix persistent delegation issues for v4.0
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 09 Feb 2012 21:46:43 -0000

Suggestions for better names accepted.=20

-----Original Message-----
From: Myklebust, Trond [mailto:Trond.Myklebust@netapp.com]=20
Sent: Wednesday, February 08, 2012 7:10 PM
To: Noveck, David
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Towards a proposal to fix persistent delegation issues=
 for v4.0

Hi Dave,

Since they don't survive server reboots, we really should find a better
name than 'persistent' delegations. :-)

Comments inlined...


On Wed, 2012-02-08 at 13:30 -0500, david.noveck@emc.com wrote:
> ***(INTRO)**************************************************************
> ************************************************************************
>=20
> Making progress on this, even though I was waylaid by some other problems
> in bis-16 as it stands.
>=20
> I'm not sure if we have "seems like consensus" (SLC), as Spencer
> was looking for.  Perhaps it is "minimally like consensus" (MLC)
> and thus less reliable.   In the interests of getting to a 'clean'
> proposal I've come up with a list of specification changes keyed
> to bis-16.
>=20
> ***(TOC)****************************************************************
> ************************************************************************
>=20
>    INTRO   -- Above
>    TOC     -- This list of stuff in here
>    NOTES   -- Discussion of remaining issues and things about which we
>               may need to get to consensus or at least something that see=
ms
>               like it
>    CURRENT -- current proposal for changes to deal with persistent
>               delegations plus all the stuff that I had to fix/correct/
>               clean up to address in connection with those
>    9.6.3   -- Discussion about correcting current (bis-16) organization
>               of 9.6.3.
>=20
> ***(NOTES)**************************************************************
> ************************************************************************
>=20
> Most of what is in (CURRENT) has been mentioned in my previous sketch of
> a proposal and if there is no actual consensus, at least there does not
> seem to have been any dissension.  If that's not SLC, then at least it is
> MLC.
>=20
> Here is a list of other stuff that is either in the proposal or where
> it has been suggested as something that should b in it.  the items will
> identified by the proposer and an integer.
>=20
>    DAVE0 --  IN-CURRENT
>=20
>      treat delegation revocation after lease expiration in a fashion like
>      courtesy locks, rather than entirely separate.
>=20
>      Made this change mainly bcause I couldn't understand what is there a=
nd
>      had to write something that i could understand.
>=20
>      My impression is that Rick would agree but we haven't reached seems-
>      like-consensus.  Nobody has seen this text yet.
>=20
>      Can rework if there is disagreement.
>=20
>     RICK0 -- AWAITING-SLC
>=20
>       saying that when a delegation is revoked after lease expiration
>       but all locks are  not released (no lease cancellation),
>       NFS4ERR_BAD_STATEID should be returned.
>=20
>       I agree that it is consistent with DAVE0.
>=20
>       Heard no other opinions.
>=20
>     RICK1 -- AWAITING-SLC
>=20
>        saying that when a delegation is revoked and there is no lease
>        expiration, NFS4ERR_ADMIN_REVOKED is returned.
>=20
>        I'm OK with this but think that we can only do it if there are som=
e
>        other spec changes to go with it, e.g. DAVE1.
>=20
>        Heard no other opinions.
>=20
>=20
>     DAVE1 -- AWAITING-SLC
>=20
>        changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
>        consistent with RICK1.
>=20
>        It seems to me that this is a requirement for RICK1, but I'm not s=
ure
>        if Rick agrees.
>=20
>        Heard no other opinions on this.

I'm not seeing why this is a requirement. The current text in RFC3530bis
reads

        A stateid designates locking state of any type that has been
        revoked due to administrative interaction, possibly while the
        lease is valid.

Doesn't that nail it?

>     DAVE2 -- IN-CURRENT
>=20
>        saying that NFS4ERR_EXPIRED is not the signal for lease
>        cancellation (uses invalidation of the clientid instead)
>=20
>        Big issue is whether this is consistent with existing servers.
>=20
>        Would not be needed if we have SLC on both RICK0 and RICK1.
>=20
>        Put in just in case we can't get to SLC on those.  Can take it out=
.

It would conflict with the way existing NFS clients handle
NFS4ERR_EXPIRED. It also conflicts with the text in Section 9.6.3.2 of
RFC3530bis (Note however that text probably needs revision anyway in
order to deal with "courtesy" locks) and the text in Section 13.1.5.3.

> Opinions on these?
>=20
> Other issues to add to the list?
>=20
> Opinions on or issues with the current proposal?

I'm fine with the current proposal.

--=20
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com


From david.noveck@emc.com  Thu Feb  9 13:52:37 2012
Return-Path: <david.noveck@emc.com>
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 A8F0F11E808F for <nfsv4@ietfa.amsl.com>; Thu,  9 Feb 2012 13:52:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.629
X-Spam-Level: 
X-Spam-Status: No, score=-9.629 tagged_above=-999 required=5 tests=[AWL=0.970,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KYocJtfmDMBs for <nfsv4@ietfa.amsl.com>; Thu,  9 Feb 2012 13:52:36 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id B068F11E808D for <nfsv4@ietf.org>; Thu,  9 Feb 2012 13:52:35 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q19LqVTB031221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Feb 2012 16:52:34 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.221.251]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor); Thu, 9 Feb 2012 16:51:21 -0500
Received: from mxhub32.corp.emc.com (mxhub32.corp.emc.com [128.222.70.172]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q19LpKUt023113; Thu, 9 Feb 2012 16:51:20 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub32.corp.emc.com ([128.222.70.172]) with mapi; Thu, 9 Feb 2012 16:51:19 -0500
From: <david.noveck@emc.com>
To: <rmacklem@uoguelph.ca>
Date: Thu, 9 Feb 2012 16:51:19 -0500
Thread-Topic: [nfsv4] Towards a proposal to fix persistent delegation issues for	v4.0
Thread-Index: AczmyWrlqR0TIf/OTseNxUbgjRnT6wArAktQ
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD889B54@MX31A.corp.emc.com>
References: <5DEA8DB993B81040A21CF3CB332489F6AD889908@MX31A.corp.emc.com> <2145641484.1044406.1328750591162.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <2145641484.1044406.1328750591162.JavaMail.root@erie.cs.uoguelph.ca>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Towards a proposal to fix persistent delegation issues for	v4.0
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 09 Feb 2012 21:52:37 -0000

> Overall, it reads just fine to me, but there is one place where my
> current understanding of NFS4ERR_STALE_CLIENTID doesn't agree with
> the proposed use of it. See below:

You're right.  Will produce next version assuming:

   DAVE0: Y
   RICK0: Y
   RICK1: Y
   DAVE1: Y
   DACE@: N

-----Original Message-----
From: Rick Macklem [mailto:rmacklem@uoguelph.ca]
Sent: Wednesday, February 08, 2012 8:23 PM
To: Noveck, David
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Towards a proposal to fix persistent delegation issues=
 for v4.0

David Noveck wrote:

Overall, it reads just fine to me, but there is one place where my
current understanding of NFS4ERR_STALE_CLIENTID doesn't agree with
the proposed use of it. See below:
> ***(INTRO)**************************************************************
> ************************************************************************
>
> Making progress on this, even though I was waylaid by some other
> problems
> in bis-16 as it stands.
>
> I'm not sure if we have "seems like consensus" (SLC), as Spencer
> was looking for. Perhaps it is "minimally like consensus" (MLC)
> and thus less reliable. In the interests of getting to a 'clean'
> proposal I've come up with a list of specification changes keyed
> to bis-16.
>
> ***(TOC)****************************************************************
> ************************************************************************
>
> INTRO -- Above
> TOC -- This list of stuff in here
> NOTES -- Discussion of remaining issues and things about which we
> may need to get to consensus or at least something that seems
> like it
> CURRENT -- current proposal for changes to deal with persistent
> delegations plus all the stuff that I had to fix/correct/
> clean up to address in connection with those
> 9.6.3 -- Discussion about correcting current (bis-16) organization
> of 9.6.3.
>
> ***(NOTES)**************************************************************
> ************************************************************************
>
> Most of what is in (CURRENT) has been mentioned in my previous sketch
> of
> a proposal and if there is no actual consensus, at least there does
> not
> seem to have been any dissension. If that's not SLC, then at least it
> is
> MLC.
>
> Here is a list of other stuff that is either in the proposal or where
> it has been suggested as something that should b in it. the items will
> identified by the proposer and an integer.
>
> DAVE0 -- IN-CURRENT
>
> treat delegation revocation after lease expiration in a fashion like
> courtesy locks, rather than entirely separate.
>
> Made this change mainly bcause I couldn't understand what is there and
> had to write something that i could understand.
>
> My impression is that Rick would agree but we haven't reached seems-
> like-consensus. Nobody has seen this text yet.
>
> Can rework if there is disagreement.
>
> RICK0 -- AWAITING-SLC
>
> saying that when a delegation is revoked after lease expiration
> but all locks are not released (no lease cancellation),
> NFS4ERR_BAD_STATEID should be returned.
>
> I agree that it is consistent with DAVE0.
>
> Heard no other opinions.
>
> RICK1 -- AWAITING-SLC
>
> saying that when a delegation is revoked and there is no lease
> expiration, NFS4ERR_ADMIN_REVOKED is returned.
>
> I'm OK with this but think that we can only do it if there are some
> other spec changes to go with it, e.g. DAVE1.
>
> Heard no other opinions.
>
>
> DAVE1 -- AWAITING-SLC
>
> changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
> consistent with RICK1.
>
> It seems to me that this is a requirement for RICK1, but I'm not sure
> if Rick agrees.
>
> Heard no other opinions on this.
>
> DAVE2 -- IN-CURRENT
>
> saying that NFS4ERR_EXPIRED is not the signal for lease
> cancellation (uses invalidation of the clientid instead)
>
> Big issue is whether this is consistent with existing servers.
>
> Would not be needed if we have SLC on both RICK0 and RICK1.
>
> Put in just in case we can't get to SLC on those. Can take it out.
>
>
> Opinions on these?
>
> Other issues to add to the list?
>
> Opinions on or issues with the current proposal?
>
>
> ***(CURRENT)************************************************************
> ************************************************************************
>
> =3D=3D=3D> replace the last paragraph of section 9.1.10, by:
>
> Requiring open confirmation on reclaim-type opens is avoidable
> because of the nature of the environments in which such opens are
> done. For CLAIM_PREVIOUS opens, this is immediately after server
> reboot, so there should be no time for open-owners to be created,
> found to be unused, and recycled. For CLAIM_DELEGATE_PREV opens, we
> are dealing with either a client reboot situation or a network
> partition
> resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
> A server which supports delegation can be sure that no open-owners
> for that client have been recycled since client initialization or
> deletion of lease state and thus can ensure that confirmation will
> not be required.
>
> =3D=3D=3D> replace the first paragraph of the second bulleted item in 9.5
> with the following:
>
> o Any operation made with a valid clientid (DELEGPURGE, RENEW,
> OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
> OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
> In the latter case, the stateid must not be one of the
> special stateids consisting of all bits 0 or all bits 1.
>
> =3D=3D=3D> After what is now the fourth non-bulleted paragraph of section
> 9.6.3.1
> =3D=3D=3D> but probably shouldn't be (see the bottom of this mail),
> =3D=3D=3D> add the following paragraph.
>
> The above are directed o CLAIM_PREVIOUS reclaims and not to
> CLAIM_DELEGATE_PREV reclaims, which generally do not involve
> a server reboot. However, when a server persistently stores
> delegation information to support CLAIM_DELEGATE_PREV across
> a period in which both client and server are down at the same
> time, similar strictures apply.
>
> =3D=3D=3D> Replace section 10.2.1 by the following
>
> There are three situations that delegation recovery must deal with:
>
> o Client reboot or restart
>
> o Server reboot or restart
>
> o Network partition (full or callback-only)
>
> In the event the client reboots or restarts, the confirmation of
> a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
> will result in the release of byte-range locks and share reservations.
> Delegations, however, may be treated a bit differently.
>
> There will be situations in which delegations will need to be
> reestablished after a client reboots or restarts. The reason for
> this is the client may have file data stored locally and this data
> was associated with the previously held delegations. The client will
> need to reestablish the appropriate file state on the server.
>
> To allow for this type of client recovery, the server MAY allow
> delegations to be retained after other sort of locks are released.
> This implies that requests from other clients that conflict with these
> delegations will need to wait. Because the normal recall process may
> require significant time for the client to flush changed state to the
> server, other clients need to be prepared for delays that occur
> because of a
> conflicting delegation. In order to give clients a chance to get
> through
> the reboot process during which leases will not be renewed, the server
> MAY
> extend the period for delegation recovery beyond the typical lease
> expiration period. For open delegations, such delegations that are not
> released are reclaimed using OPEN with a claim type of
> CLAIM_DELEGATE_PREV.
> (See Section 10.5 and Section 15.18 for discussion of open delegation
> and
> the details of OPEN respectively).
>
> A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
> does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
> instead MUST, make them available until the client indicates that
> delegation recovery is complete, by doing a DELEGPURGE. The only
> exception
> to this requirement is when the client lease expires.
>
> A server that supports a claim type of CLAIM_DELEGATE_PREV MUST
> support
> the DELEGPURGE operation, and similarly a server that supports
> DELEGPURGE MUST support CLAIM_DELEGATE_PREV. A server which does
> not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
> client attempts to use that feature or performs a DELEGPURGE
> operation.
>
> Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
> as providing for "persistent delegations" in that they allow use of
> persistent storage on the client to store data written by the client,
> even across a client restart. It should be noted that, with the
> optional exception noted below, this feature requires persistent
> storage to be used on the client and does not add to persistent
> storage
> requirements on the server.
>
> One good way to think about persistent delegations is that for the
> most
> part, they function like "courtesy locks", with a special semantic
> adjustments to allow them to be retained across a client restart,
> which
> cause all other sorts of locks to be freed. Such locks are generally
> not retained across a server restart. The one exception is the
> case of simultaneous failure of the client and server and is discussed
> below.
>
> When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
> by returning NFS_OK to DELEGPURGE, a client with a write delegation,
> can use write-back caching for data to be written to the server,
> deferring
> the write-back, until such time as the delegation is recalled,
> possibly
> after intervening client restarts. Similarly, when the server
> indicates
> support of CLAIM_DELEGATE_PREV, a client with a read delegation and
> an open-for-write subordinate to that delegation, may be sure of the
> integrity of its persistently cached copy of the file after a client
> restart without specific verification of the change attribute.
>
> When the server reboots or restarts, delegations are reclaimed (using
> the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
> range locks and share reservations. However, there is a slight
> semantic difference. In the normal case, if the server decides that a
> delegation should not be granted, it performs the requested action
> (e.g., OPEN) without granting any delegation. For reclaim, the
> server grants the delegation but a special designation is applied so
> that the client treats the delegation as having been granted but
> recalled by the server. Because of this, the client has the duty to
> write all modified state to the server and then return the
> delegation. This process of handling delegation reclaim reconciles
> three principles of the NFSv4 protocol:
>
> o Upon reclaim, a client reporting resources assigned to it by an
> earlier server instance must be granted those resources.
>
> o The server has unquestionable authority to determine whether
> delegations are to be granted and, once granted, whether they are
> to be continued.
>
> o The use of callbacks is not to be depended upon until the client
> has proven its ability to receive them.
>
> When a client has more than a single open associated with a
> delegation, state for those additional opens can be established using
> OPEN operations of type CLAIM_DELEGATE_CUR. When these are used to
> establish opens associated with reclaimed delegations, the server
> MUST allow them when made within the grace period.
>
> Situations in which there us a series of client and server restarts
> where
> there is no restart of both at the same time, are dealt with via a
> combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
> Persistent storage is needed only on the client. For each server
> failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
> restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.
>
> To deal with the possibility of simultaneous failure of client and
> server (e.g. situations like power outages, etc.), the server MAY
> persistently store delegation information so that it can respond to
> a CLAIM_DELEGATE_PREV reclaim request which it receives from a
> restarting client. This is the one case in which persistent
> delegation state can be retained across a server restart. A server
> is not required to store this information, but if it does do so, it
> should do so for write delegations and for read delegations, during
> the pendency of which (across multiple client and/or server
> instances), some open-for-write was done as part of delegation. When
> the space to persistently record such information is limited, the
> server should recall delegations in this class in preference to
> keeping them active without persistent storage recording.
>
> When a network partition occurs, delegations are subject to freeing
> by the server when the lease renewal period expires. This is similar
> to the behavior for locks and share reservations, and, as for locks
> and share reservations it may be modified by support for "courtesy
> locks" in which locks are not freed in the absence of a conflicting
> lock request. Whereas, for locks and share reservations, freeing of
> locks will occur immediately upon the appearance of a conflicting
> request, for delegations, the server may institute period during which
> conflicting requests are held off. Eventually the occurrence of a
> conflicting request from another client will cause revocation of the
> delegation.
>
> A loss of the callback path (e.g., by later network configuration
> change) will have a similar effect in that it can also result in
> revocation of a delegation A recall request will fail and revocation
> of the delegation will result.
>
> A client normally finds out about revocation of a delegation when it
> uses a stateid associated with a delegation and receives the error
> NFS4ERR_EXPIRED. It also may find out about delegation revocation
> after a client reboot when it attempts to reclaim a delegation and
> receives that same error. Note that in the case of a revoked
> OPEN_DELEGATE_WRITE delegation, there are issues because data may
> have been modified by the client whose delegation is revoked and
> separately by other clients. See Section 10.5.1 for a discussion of
> such issues. Note also that when delegations are revoked,
> information about the revoked delegation will be written by the
> server to stable storage (as described in Section 9.6). This is done
> to deal with the case in which a server reboots after revoking a
> delegation but before the client holding the revoked delegation is
> notified about the revocation.
>
> Note that when there is a loss of a delegation, due to a network
> partition in which all locks associated with the lease are lost,
> the client will also receive the error NFS4ERR_EXPIRED. This case
> can be distinguished from other situations in which delegations
> are revoked by seeing that the associated clientid becomes invalid
> so that NFS4ERR_STALE_CLIENTID is returned when it is used.
>
Here's a paragraph from RFC3530, pg 68 (I know Tom, but I don't have a bis
doc handy and it is the protocol spec that has been implemented, etc):

   Once a SETCLIENTID and SETCLIENTID_CONFIRM sequence has successfully
   completed, the client uses the shorthand client identifier, of type
   clientid4, instead of the longer and less compact nfs_client_id4
   structure.  This shorthand client identifier (a clientid) is assigned
   by the server and should be chosen so that it will not conflict with
   a clientid previously assigned by the server.  This applies across
   server restarts or reboots.  When a clientid is presented to a server
   and that clientid is not recognized, as would happen after a server
   reboot, the server will reject the request with the error
   NFS4ERR_STALE_CLIENTID.  When this happens, the client must obtain a
   new clientid by use of the SETCLIENTID operation and then proceed to
   any other necessary recovery for the server reboot case (See the
   section "Server Failure and Recovery").

To me, this says that a client should do a "server reboot recovery" when
it sees NFS4ERR_STALE_CLIENTID and that is what the current FreeBSD client
does. (ie. expects a grace period in which it can do reclaim type ops like
Open CLAIM_PREVIOUS)

I think that, if a server replies NFS4ERR_STALE_CLIENTID for the case where
it hasn't rebooted and isn't providing a grace period, it will cause confus=
ion
for extant clients (at least I know it will for the FreeBSD one:-).

I think it is better to return NFS4ERR_BAD_STATEID when the delegation for
that stateid has been lost and NFS4ERR_EXPIRED when all state related to
the clientid, has been lost.

> In such situations, the server MAY retain information about the
> delegations held by the client, deleting those that are
> invalidated by a conflicting request. Retaining such information
> will allow the client to recover all non-invalidated delegations
> using the claim type CLAIM_DELEGATE_PREV, once the
> SETCLIENTID_CONFIRM is done to recover. Attempted recovery of
> delegation that the client has no record of, typically because they
> were invalidated by conflicting requests, will get the error
> NFS4ERR_BAD_RECLAIM. Once a reclaim is attempted for all delegations
> that the client held, it SHOULD do a DELEGPURGE to allow any remaining
> server delegation information to be freed.
>
> =3D=3D=3D> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
> =3D=3D=3D> section 15.18.5.
>
> =3D=3D=3D> In that paragraph, replace "; used after the client reboots:"
> with
> =3D=3D=3D> the following:
>
> This claim type is for use after a SETCLIENTID_CONFIRM and before
> the corresponding DELEGPURGE in two situations: after a client reboot
> and after a lease expiration that resulted in loss of all lock
> state.
>
> =3D=3D=3D> after that paragraph, add the following material with indentin=
g
> that
> matches the non-hanging portion of the noted paragraph.
>
> The following errors apply to use of the CLAIM_DELEGATE_PREV claim
> type:
>
> o NFS4ERR_NOTSUPP is returned if the server does not support this
> claim type.
>
> o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
> time, e.g. after DELEGPURGE has been done.
>
> o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
> apply and the server has no record of the delegation whose reclaim
> is being attempted.
>
> =3D=3D=3D> Replace the last two paragraphs of 15.7.4 by the following:
>
> This operation in provided to support clients that record delegation
> information on stable storage on the client. In this case,
> DELEGPURGE should be issued immediately after doing delegation
> recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
> the client. Doing so will notify the server that no additional
> delegations for the client will be recovered allowing it to free
> resources, and avoid delaying other clients who make requests that
> conflict with the unrecovered delegations. All client SHOULD use
> DELEGPURGE as part of recovery once it is known that no further
> CLAIM_DELEGATE_PREV recovery will be done. This includes clients
> that do not record delegation information on stable storage, who would
> then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.
>
> The set of delegations known to the server and the
> client may be different. The reasons for this include:
>
> o a client may fail after making a request which resulted in
> delegation
> but before it received the results and committed them to the client's
> stable storage.
> o a client may fail after deleting its indication that a delegation
> exists
> but before the delegation return is fully processed by the server.
> o in the case in which the server and the client restart, the server
> may have limited persistent recording of delegation to a subset of
> those in existence.
> o a client may have only persistently recorded information about a
> subset of
> delegations.
>
> The server MAY support DELEGPURGE, but its support or non-support
> should
> match that of CLAIM_DELEGATE_PREV:
> o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
> o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV
>
> This fact allows a client starting up to determine if the server is
> prepared
> to support persistent storage of delegation information and thus
> whether it
> may use write-back caching to local persistent storage, relying on
> CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
> safely to the server in the event of client restart.
>
> ***(9.6.3)**************************************************************
> ************************************************************************
>
> =3D=3D=3D> The section organization of 9.6.3 is messed up. See below.
> =3D=3D=3D> The big issue is that all of the edge condition stuff is part =
of
> =3D=3D=3D> 'courtesy locks' when it shouldn't be
>
> =3D=3D=3D> Here's what exists now.
>
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.1.1. First Server Edge Condition
> 9.6.3.1.2. Second Server Edge Condition
> 9.6.3.1.3. Handling Server Edge Conditions
> 9.6.3.1.4. Client Edge Condition
> 9.6.3.1.5. Client's Handling of NFS4ERR_NO_GRACE
> 9.6.3.2. Client's Reaction to a Freed Lock
>
>
> =3D=3D=3D> Here's a suggested replacement;
>
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.2. Client's Reaction to a Freed Lock
> 9.6.3.3. Edge Conditions (NEW)
> 9.6.3.3.1. First Server Edge Condition
> 9.6.3.3.2. Second Server Edge Condition
> 9.6.3.3.3. Handling Server Edge Conditions
> 9.6.3.3.4. Client Edge Condition
> 9.6.3.4. Client's Handling of NFS4ERR_NO_GRACE
>
>
>
>
>
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4


From david.noveck@emc.com  Fri Feb 10 09:36:49 2012
Return-Path: <david.noveck@emc.com>
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 35CDF21F8710 for <nfsv4@ietfa.amsl.com>; Fri, 10 Feb 2012 09:36:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.673
X-Spam-Level: 
X-Spam-Status: No, score=-9.673 tagged_above=-999 required=5 tests=[AWL=0.926,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zOqPyLmOdBxy for <nfsv4@ietfa.amsl.com>; Fri, 10 Feb 2012 09:36:44 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 0B8D421F86F2 for <nfsv4@ietf.org>; Fri, 10 Feb 2012 09:36:43 -0800 (PST)
Received: from hop04-l1d11-si04.isus.emc.com (HOP04-L1D11-SI04.isus.emc.com [10.254.111.24]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1AHaeGf021914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <nfsv4@ietf.org>; Fri, 10 Feb 2012 12:36:42 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.226]) by hop04-l1d11-si04.isus.emc.com (RSA Interceptor) for <nfsv4@ietf.org>; Fri, 10 Feb 2012 12:35:40 -0500
Received: from mxhub02.corp.emc.com (mxhub02.corp.emc.com [10.254.141.104]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1AHZej5011982 for <nfsv4@ietf.org>; Fri, 10 Feb 2012 12:35:40 -0500
Received: from mxhub38.corp.emc.com (128.222.70.105) by mxhub02.corp.emc.com (10.254.141.104) with Microsoft SMTP Server (TLS) id 8.3.213.0; Fri, 10 Feb 2012 12:35:40 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub38.corp.emc.com ([128.222.70.105]) with mapi; Fri, 10 Feb 2012 12:35:39 -0500
From: <david.noveck@emc.com>
To: <nfsv4@ietf.org>
Date: Fri, 10 Feb 2012 12:35:38 -0500
Thread-Topic: NFS4ERR_EXPIRED, the saga continues
Thread-Index: AczoG6v7OQ17hirfTtyXzIYF1W8rBg==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD889C58@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Subject: [nfsv4] NFS4ERR_EXPIRED, the saga continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 10 Feb 2012 17:36:49 -0000

So far, among people willing to discuss the subject, there seems to be gene=
ral agreement that NFS4ERR_EXPIRED should indicate loss of all locks due to=
 lease cancellation.  Assuming that quasi-consensus holds, there are other =
related matters to discuss.

Section 9.6.3.2 says:

  NFS4ERR_EXPIRED:

      All locks has been revoked during the partition.  The client
      should use a SETCLIENTID to recover.

The big issue is the second sentence.  Notice it says "should" and not "SHO=
ULD".

I had been under the impression that when you had lease cancellation, you d=
id have an invalid clientid and
would need SETCLIENTID to recover.

But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick convinced me =
that it wasn't
valid and I note that there doesn't seem to be any other CLIENTID-NG errors=
.  Also, when I looked
at the discussion of network partition, it didn't say anything about doing =
the SETCLIENTID in this
case.

So is this just a case of "you should recover but I can't tell you have to,=
 i.e. you can just panic if you really want to"?

Specifically, if you have a network partition (and lease cancellation), and=
 you do a SETCLIENTID,
Do you get back the same client id or a new one (if the client hasn't reboo=
ted).

What happens if you don't and you do a RENEW.  What error, if any, do you g=
et?




From rmacklem@uoguelph.ca  Sun Feb 12 08:20:06 2012
Return-Path: <rmacklem@uoguelph.ca>
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 C419F21F8783 for <nfsv4@ietfa.amsl.com>; Sun, 12 Feb 2012 08:20:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.133
X-Spam-Level: 
X-Spam-Status: No, score=-6.133 tagged_above=-999 required=5 tests=[AWL=0.466,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NCHqgV+my0SN for <nfsv4@ietfa.amsl.com>; Sun, 12 Feb 2012 08:20:06 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 0FF0D21F8786 for <nfsv4@ietf.org>; Sun, 12 Feb 2012 08:20:05 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAKflN0+DaFvO/2dsb2JhbABDhRCrbIFyAQEBAwEBAQEgSwsFFhgCAg0ZAikwBhOHfAmnBZBWBIEvihMMCAgSBAQBBAYHAQMCBAcCHQEDAhQEgx4BBgENBgKBE4ItgRYEiEqMaIk0iU4
X-IronPort-AV: E=Sophos;i="4.73,408,1325480400"; d="scan'208";a="156080360"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 12 Feb 2012 11:20:04 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 9BE6BB3F88; Sun, 12 Feb 2012 11:20:04 -0500 (EST)
Date: Sun, 12 Feb 2012 11:20:04 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: david noveck <david.noveck@emc.com>
Message-ID: <1167865080.1224685.1329063604457.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AD889C58@MX31A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.202]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Sun, 12 Feb 2012 16:20:06 -0000

David Noveck wrote:
> So far, among people willing to discuss the subject, there seems to be
> general agreement that NFS4ERR_EXPIRED should indicate loss of all
> locks due to lease cancellation. Assuming that quasi-consensus holds,
> there are other related matters to discuss.
> 
Well, since no one else has responded, I guess I'll throw in my $0.01 worth.
(I'll mostly state what the FreeBSD server and client currently do. I can't
 say whether or not this is correct behaviour.)

> Section 9.6.3.2 says:
> 
> NFS4ERR_EXPIRED:
> 
> All locks has been revoked during the partition. The client
> should use a SETCLIENTID to recover.
> 
> The big issue is the second sentence. Notice it says "should" and not
> "SHOULD".
> 
> I had been under the impression that when you had lease cancellation,
> you did have an invalid clientid and
> would need SETCLIENTID to recover.
> 
That is my impression as well. (I think the "should" might just have
been because there is no good way for a client to recover from this.)
The FreeBSD server "throws away" the confirmed record for a clientid
when a lease has expired and a conflicting open/lock request arrives.
After that, it will return NFS4ERR_EXPIRED for the clientid and all
associated stateids, if they were generated in the current boot instance.

As such, the client can no longer use the clientid.

If the FreeBSD client receives NFS4ERR_EXPIRED it:
- does Setclientid/SetclientidConfirm to get a new clientid. It uses a
  new client.verifier, but that wouldn't matter for the FreeBSD server.
- does Opens with CLAIM_NULL for all files that were open, but do not
  have associated byte range locks on them. (It always does opens with
  ACCESS_DENY_NONE, so I believe that this is relatively safe.)
  Byte range locks and their associated opens are "thrown away", since
  they can't safely be recovered. (Unfortunately FreeBSD does not have
  a "lost locks" signal, so processes might not know that they've lost
  their locks. They will not be able to do further I/O or locking.)

> But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> convinced me that it wasn't
> valid and I note that there doesn't seem to be any other CLIENTID-NG
> errors. Also, when I looked
> at the discussion of network partition, it didn't say anything about
> doing the SETCLIENTID in this
> case.
> 
> So is this just a case of "you should recover but I can't tell you
> have to, i.e. you can just panic if you really want to"?
> 
Unfortunately, I don't think there is a good way for a client to recover
from this. I've described the compromise that the FreeBSD client currently
uses above, but if there is a better way, I'd like to hear about it.

> Specifically, if you have a network partition (and lease
> cancellation), and you do a SETCLIENTID,
> Do you get back the same client id or a new one (if the client hasn't
> rebooted).
> 
For the FreeBSD server, it is a new one. Since the FreeBSD client uses
a different client.verifier, I believe the same should be true for other
servers?

> What happens if you don't and you do a RENEW. What error, if any, do
> you get?
> 
Prior to doing a SetClientid/SetClientidConfirm to get a new clientid,
Renew with the old clientid will reply NFS4ERR_EXPIRED for the FreeBSD
server. (That is on the list of errors for Renew.)

> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From david.noveck@emc.com  Mon Feb 13 13:37:07 2012
Return-Path: <david.noveck@emc.com>
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 3403D21E8041 for <nfsv4@ietfa.amsl.com>; Mon, 13 Feb 2012 13:37:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.413
X-Spam-Level: 
X-Spam-Status: No, score=-8.413 tagged_above=-999 required=5 tests=[AWL=-0.414, BAYES_50=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ypy7KvcHf6ZK for <nfsv4@ietfa.amsl.com>; Mon, 13 Feb 2012 13:37:05 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 0EEFD21E802A for <nfsv4@ietf.org>; Mon, 13 Feb 2012 13:37:04 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1DLap96001425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <nfsv4@ietf.org>; Mon, 13 Feb 2012 16:37:03 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.226]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor) for <nfsv4@ietf.org>; Mon, 13 Feb 2012 16:36:21 -0500
Received: from mxhub28.corp.emc.com (mxhub28.corp.emc.com [10.254.110.184]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1DLaKWB025111 for <nfsv4@ietf.org>; Mon, 13 Feb 2012 16:36:21 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub28.corp.emc.com ([10.254.110.184]) with mapi; Mon, 13 Feb 2012 16:36:20 -0500
From: <david.noveck@emc.com>
To: <nfsv4@ietf.org>
Date: Mon, 13 Feb 2012 16:36:19 -0500
Thread-Topic: New proposed text changes re "client-persistent delegations" 
Thread-Index: Aczqc84CzoPLDvcCRyaVOKPNdE0fgw==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD889F3A@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Subject: [nfsv4] New proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Mon, 13 Feb 2012 21:37:07 -0000

***(INTRO)**************************************************************
************************************************************************

This is version 2.  It does not address Rick's recent mail in which
he talked about using NFS4ERR_EXPIRED for the expired clientid as well.
It looks like there will be version 3.

I'm not sure if we have "seems like consensus" (SLC), as Spencer
was looking for.  Perhaps it is "minimally like consensus" (MLC)
and thus less reliable.   In the interests of getting to a 'clean'
proposal I've come up with a list of specification changes keyed
to bis-16.

***(TOC)****************************************************************
************************************************************************

   INTRO   -- Above
   TOC     -- This list of stuff in here
   NOTES   -- Discussion of remaining issues and things about which we
              may need to get to consensus or at least something that seems
              like it
   DIFFS   -- Discussion of changes from version one.
   CURRENT -- current proposal for changes to deal with persistent
              delegations plus all the stuff that I had to fix/correct/
              clean up to address in connection with those
   9.6.3   -- Discussion about correcting current (bis-16) organization
              of 9.6.3.

***(NOTES)**************************************************************
************************************************************************

Most of what is in (CURRENT) has been mentioned in my previous sketch of
a proposal and if there is no actual consensus, at least there does not
seem to have been any dissension.  If that's not SLC, then at least it
is MLC.

Here is a list of other stuff that is either in the proposal or where
it has been suggested as something that should be in it.  the items will
identified by the proposer and an integer.

   DAVE0 --  IN-CURRENT MLC-AWAITING-SLC

     treat delegation revocation after lease expiration in a fashion like
     courtesy locks, rather than entirely separate.

     Made this change mainly bcause I couldn't understand what is there and
     had to write something that i could understand.

     My impression is that Rick would agree but we haven't reached seems-
     like-consensus.  As of v1, nobody had seen this text yet.

     Can rework if there is disagreement.

    RICK0 -- IN-CURRENT AWAITING-SLC

      saying that when a delegation is revoked after lease expiration
      but all locks are  not released (no lease cancellation),
      NFS4ERR_BAD_STATEID should be returned.

      I agree that it is consistent with DAVE0.

      Heard no other opinions.

    RICK1 -- IN-CURRENT AWAITING-SLC

       saying that when a delegation is revoked and there is no lease
       expiration, NFS4ERR_ADMIN_REVOKED is returned.

       I'm OK with this but think that we can only do it if there are some
       other spec changes to go with it, e.g. DAVE1.

       Heard no other opinions.


    DAVE1 -- IN-CURRENT AWAITING-SLC

       changing the definition or name of NFSERR_ADMIN_REVOKED to be
       consistent with RICK1.

       It seems to me that this is a requirement for RICK1, but I'm not sur=
e
       if Rick agrees.

       Heard no other opinions on this.

    DAVE2 -- NOW-OUT WRONG

       saying that NFS4ERR_EXPIRED is not the signal for lease
       cancellation (uses invalidation of the clientid instead)

       Rick pointed out this doesn't match rest of spec

Opinions on these?

Other issues to add to the list?

Opinions on or issues with the current proposal?

***(DIFFS)**************************************************************
************************************************************************


=3D=3D=3D List of Issues

name    Presence         Consensus or an incredible facsimile
        v1    v2         V1                     V2
DAVE0   IN    IN         AWAITING-SLC           AWAITING-SLC
DAVE1   OUT   IN         AWAITING-SLC           AWAITING-SLC
RICK0   OUT   IN         AWAITING-SLC           AWAITING-SLC
RICK1   OUT   IN         AWAITING-SLC           AWAITING-SLC
DAVE2   IN    OUT        AWAITING-SLC           WRONG

=3D=3D=3D Other changes

revision of errors descriptions.

making it clear you can do CLAIM_DELEGATE_PREV reclaims during grace period=
.

explicitly discussing delegations in the "courtesy locks" section.

***(CURRENT)************************************************************
************************************************************************

=3D=3D=3D> In section 9.1.3.4, in the third set of bulleted items, replace
=3D=3D=3D> the fourth bulleted item therein by:

  o  If the stateid represents revoked state or state lost as a result
     of lease expiration, then return NFS4ERR_EXPIRED,
     NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED, as appropriate.

=3D=3D=3D> replace the last paragraph of section 9.1.10, by:

   Requiring open confirmation on reclaim-type opens is avoidable
   because of the nature of the environments in which such opens are
   done.  For CLAIM_PREVIOUS opens, this is immediately after server
   reboot, so there should be no time for open-owners to be created,
   found to be unused, and recycled.  For CLAIM_DELEGATE_PREV opens, we
   are dealing with either a client reboot situation or a network partition
   resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
   A server which supports delegation can be sure that no open-owners
   for that client have been recycled since client initialization or
   deletion of lease state and thus can ensure that confirmation will
   not be required.

=3D=3D=3D> replace the first paragraph of the second bulleted item in 9.5
     with the following:

    o Any operation made with a valid clientid (DELEGPURGE, RENEW,
      OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
      OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
      In the latter case, the stateid must not be one of the
      special stateids consisting of all bits 0 or all bits 1.

=3D=3D=3D> replace the second sentence of the third paragraph of section
     9.6.2 by:

   During the grace period, clients recover locks and the associated
   state by reclaim-type locking requests (i.e., LOCK requests with
   reclaim set to true and OPEN operations with the claim types of
   CLAIM_PREVIOUS and CLAIM_DELEGATE_PREV).

=3D=3D=3D> replace the second sentence of section 9.6.3 by the following:

   If this occurs, the server may cancel the lease and free all
   locks held for the client.

=3D=3D=3D> Replace the first two paragraphs of section 9.6.3.1 by the
=3D=3D=3D> following:

   As a courtesy to the client or as an optimization, the server may
   continue to hold locks, including delegations, on behalf of a client
   for which recent communication has extended beyond the lease period,
   delaying the cancellation of the lease.  If the server receives a lock
   or I/O request that conflicts with one of these courtesy locks or if it
   runs out of resources, the server MAY cause lease cancellation to occur =
at
   that time and henceforth return NFS4ERR_EXPIRED when any of the stateids
   associated with the freed locks is used. If lease cancellation has not
   occurred and the server receives a lock or I/O request that conflicts wi=
th
   one of the courtesy locks, the requirements are as follows:

   o in the case of a courtesy lock which is not a delegation, it MUST free
     the courtesy lock and grant the new request.

   o In the case of lock or IO request which conflicts with a delegation
     which is being held as courtesy lock, the server MAY delay resolution
     of request but MUST NOT reject the request and MUST free the delegatio=
n
     and grant the new request eventually.

   o In the case of a requests for a delegation which conflicts with a
     delegation which is being held as courtesy lock, the server MAY
     grant the new request or not as it chooses, but if it grants the
     conflicting request, the delegation haled as courtesy lock MUST be
     freed.

   If the server does not reboot or cancel the lease before the network
   partition is healed, when the original client tries to access a courtesy
   lock which was freed, the server SHOULD send back a NFS4ERR_BAD_STATEID
   to the client.  If the client tries to access a courtesy lock which
   was not freed, then the server SHOULD mark all of the courtesy locks as
   implicitly being renewed.

=3D=3D=3D> After what is now the fourth non-bulleted paragraph of section 9=
.6.3.1
=3D=3D=3D> but probably shouldn't be (see the bottom of this mail),
=3D=3D=3D> add the following paragraph.

    The above are directed to CLAIM_PREVIOUS reclaims and not to
    CLAIM_DELEGATE_PREV reclaims, which generally do not involve
    a server reboot.  However, when a server persistently stores
    delegation information to support CLAIM_DELEGATE_PREV across
    a period in which both client and server are down at the same
    time, similar strictures apply.

=3D=3D=3D> Update the following items in section 9.6.3.2 as follows:

   NFS4ERR_EXPIRED:

      All locks have been freed as a result of a lease cancellation
      which occurred during the partition.  The client should use a
      SETCLIENTID to recover.

   NFS4ERR_ADMIN_REVOKED:

      The current lock has been revoked before, during, or after
      the partition.  The client SHOULD handle this error
      as it normally would.

   NFS4ERR_BAD_STATEID:

      The current lock has been revoked/released during the partition and t=
he
      server did not reboot.  Other locks MAY still be renewed.  The
      client need not do a SETCLIENTID and instead SHOULD probe
      via a RENEW call.

=3D=3D=3D> Replace section 10.2.1 by the following

 There are three situations that delegation recovery must deal with:

   o  Client reboot or restart

   o  Server reboot or restart

   o  Network partition (full or callback-only)

   In the event the client reboots or restarts, the confirmation of
   a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
   will result in the release of byte-range locks and share reservations.
   Delegations, however, may be treated a bit differently.

   There will be situations in which delegations will need to be
   reestablished after a client reboots or restarts.  The reason for
   this is the client may have file data stored locally and this data
   was associated with the previously held delegations.  The client will
   need to reestablish the appropriate file state on the server.

   To allow for this type of client recovery, the server MAY allow
   delegations to be retained after other sort of locks are released.
   This implies that requests from other clients that conflict with these
   delegations will need to wait.  Because the normal recall process may
   require significant time for the client to flush changed state to the
   server, other clients need to be prepared for delays that occur because
   of a conflicting delegation.  In order to give clients a chance to get
   through the reboot process during which leases will not be renewed,
   the server MAY extend the period for delegation recovery beyond the
   typical lease expiration period.  For open delegations, such delegations
   that are not released are reclaimed using OPEN with a claim type of
   CLAIM_DELEGATE_PREV.  (See Section 10.5 and Section 15.18 for discussion
   of open delegation and the details of OPEN respectively).

   A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
   does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
   instead MUST, make them available until the client indicates that
   delegation recovery is complete, by doing a DELEGPURGE.  The only except=
ion
   to this requirement is when the client lease expires.

   A server that supports a claim type of CLAIM_DELEGATE_PREV MUST support
   the DELEGPURGE operation, and similarly a server that supports
   DELEGPURGE MUST support CLAIM_DELEGATE_PREV.  A server which does
   not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
   client attempts to use that feature or performs a DELEGPURGE operation.

   Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
   as providing for "client-persistent delegations" in that they allow
   use of client persistent storage on the client to store data written
   by the client, even across a client restart.  It should be noted that,
   with the optional exception noted below, this feature requires persisten=
t
   storage to be used on the client and does not add to persistent storage
   requirements on the server.

   One good way to think about client-persistent delegations is that for
   the most part, they function like "courtesy locks", with a special
   semantic adjustments to allow them to be retained across a client restar=
t,
   which cause all other sorts of locks to be freed.  Such locks are genera=
lly
   not retained across a server restart.  The one exception is the
   case of simultaneous failure of the client and server and is discussed
   below.

   When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
   by returning NFS_OK to DELEGPURGE, a client with a write delegation,
   can use write-back caching for data to be written to the server, deferri=
ng
   the write-back, until such time as the delegation is recalled, possibly
   after intervening client restarts.  Similarly, when the server indicates
   support of CLAIM_DELEGATE_PREV, a client with a read delegation and
   an open-for-write subordinate to that delegation, may be sure of the
   integrity of its persistently cached copy of the file after a client
   restart without specific verification of the change attribute.

   When the server reboots or restarts, delegations are reclaimed (using
   the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
   range locks and share reservations.  However, there is a slight
   semantic difference.  In the normal case, if the server decides that a
   delegation should not be granted, it performs the requested action
   (e.g., OPEN) without granting any delegation.  For reclaim, the
   server grants the delegation but a special designation is applied so
   that the client treats the delegation as having been granted but
   recalled by the server.  Because of this, the client has the duty to
   write all modified state to the server and then return the
   delegation.  This process of handling delegation reclaim reconciles
   three principles of the NFSv4 protocol:

   o  Upon reclaim, a client reporting resources assigned to it by an
      earlier server instance must be granted those resources.

   o  The server has unquestionable authority to determine whether
      delegations are to be granted and, once granted, whether they are
      to be continued.

   o  The use of callbacks is not to be depended upon until the client
      has proven its ability to receive them.

   When a client has more than a single open associated with a
   delegation, state for those additional opens can be established using
   OPEN operations of type CLAIM_DELEGATE_CUR.  When these are used to
   establish opens associated with reclaimed delegations, the server
   MUST allow them when made within the grace period.

   Situations in which there us a series of client and server restarts wher=
e
   there is no restart of both at the same time, are dealt with via a
   combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
   Persistent storage is needed only on the client.  For each server
   failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
   restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.

   To deal with the possibility of simultaneous failure of client and
   server (e.g. situations like power outages, etc.), the server MAY
   persistently store delegation information so that it can respond to
   a CLAIM_DELEGATE_PREV reclaim request which it receives from a
   restarting client.   This is the one case in which persistent
   delegation state can be retained across a server restart.  A server
   is not required to store this information, but if it does do so, it
   should do so for write delegations and for read delegations, during
   the pendency of which (across multiple client and/or server
   instances), some open-for-write was done as part of delegation.  When
   the space to persistently record such information is limited, the
   server should recall delegations in this class in preference to
   keeping them active without persistent storage recording.

   When a network partition occurs, delegations are subject to freeing
   by the server when the lease renewal period expires.  This is similar
   to the behavior for locks and share reservations, and, as for locks
   and share reservations it may be modified by support for "courtesy
   locks" in which locks are not freed in the absence of a conflicting
   lock request.  Whereas, for locks and share reservations, freeing of
   locks will occur immediately upon the appearance of a conflicting
   request, for delegations, the server may institute period during which
   conflicting requests are held off.  Eventually the occurrence of a
   conflicting request from another client will cause revocation of the
   delegation.

   A loss of the callback path (e.g., by later network configuration
   change) will have a similar effect in that it can also result in
   revocation of a delegation  A recall request will fail and revocation
   of the delegation will result.

   A client normally finds out about revocation of a delegation when it
   uses a stateid associated with a delegation and receives one of the
   errors NFS4ERR_EXPIRED, NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED
   (NFS4ERR_EXPIRED indicates that all lock state associated with the
   client has been lost).  It also may find out about delegation revocation
   after a client reboot when it attempts to reclaim a delegation and
   receives NFS4ERR_EXPIRED.  Note that in the case of a revoked
   OPEN_DELEGATE_WRITE delegation, there are issues because data may
   have been modified by the client whose delegation is revoked and
   separately by other clients.  See Section 10.5.1 for a discussion of
   such issues.  Note also that when delegations are revoked,
   information about the revoked delegation will be written by the
   server to stable storage (as described in Section 9.6).  This is done
   to deal with the case in which a server reboots after revoking a
   delegation but before the client holding the revoked delegation is
   notified about the revocation.
   Note that when there is a loss of a delegation, due to a network
   partition in which all locks associated with the lease are lost,
   the client will also receive the error NFS4ERR_EXPIRED.  This case
   can be distinguished from other situations in which delegations
   are revoked by seeing that the associated clientid becomes invalid
   so that NFS4ERR_STALE_CLIENTID is returned when it is used.

   When NFS4ERR_EXPIRED Is returned, the server MAY retain information
   about the delegations held by the client, deleting those that are
   invalidated by a conflicting request.  Retaining such information
   will allow the client to recover all non-invalidated delegations
   using the claim type CLAIM_DELEGATE_PREV, once the
   SETCLIENTID_CONFIRM is done to recover.  Attempted recovery of
   a delegation that the client has no record of, typically because they
   were invalidated by conflicting requests, will get the error
   NFS4ERR_BAD_RECLAIM.  Once a reclaim is attempted for all delegations
   that the client held, it SHOULD do a DELEGPURGE to allow any remaining
   server delegation information to be freed.

=3D=3D=3D> replace section 13.1.5.1 (NFS4ERR_ADMIN_REVOKED) by:

   A stateid designates locking state of any type that has been revoked
   due to administrative interaction, possibly while the lease is valid,
   or because a delegation was revoked because of failure to return it,
   while the lease was valid.

=3D=3D=3D> replace section 13.1.5.2 (NFS4ERR_BAD_STATEID) by:

   A stateid generated by the current server instance was used which
   either:

      o does not designate any locking state (either current or superseded)
        for a current (state-owner, file) pair.

      o designates locking state that was freed after lease expiration but
        without any lease cancelation, as may happen in the handling of
        "courtesy locks".

=3D=3D=3D> replace section 13.1.5.3 (NFS4ERR_EXPIRED) by:

   A stateid designates locking state of any type that has been
   revoked or released due to cancellation of the client's lease, either
   immediately upon lease expiration, or following a later request for
   a conflicting lock.

=3D=3D=3D> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
=3D=3D=3D> section 15.18.5.

=3D=3D=3D> In that paragraph, replace "; used after the client reboots:" wi=
th
=3D=3D=3D> the following:

   This claim type is for use after a SETCLIENTID_CONFIRM and before
   the corresponding DELEGPURGE in two situations: after a client reboot
   and after a lease expiration that resulted in loss of all lock
   state.

=3D=3D=3D> after that paragraph, add the following material with indenting =
that
     matches the non-hanging portion of the noted paragraph.

   The following errors apply to use of the CLAIM_DELEGATE_PREV claim
   type:

   o NFS4ERR_NOTSUPP is returned if the server does not support this
     claim type.

   o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
     time, e.g. after DELEGPURGE has been done.

   o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
     apply and the server has no record of the delegation whose reclaim
     is being attempted.

=3D=3D=3D> Replace the last two paragraphs of 15.7.4 by the following:

   This operation in provided to support clients that record delegation
   information on stable storage on the client.  In this case,
   DELEGPURGE should be issued immediately after doing delegation
   recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
   the client.  Doing so will notify the server that no additional
   delegations for the client will be recovered allowing it to free
   resources, and avoid delaying other clients who make requests that
   conflict with the unrecovered delegations.  All client SHOULD use
   DELEGPURGE as part of recovery once it is known that no further
   CLAIM_DELEGATE_PREV recovery will be done.  This includes clients
   that do not record delegation information on stable storage, who would
   then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.

   The set of delegations known to the server and the
   client may be different.  The reasons for this include:

   o a client may fail after making a request which resulted in delegation
     but before it received the results and committed them to the client's
     stable storage.
   o a client may fail after deleting its indication that a delegation exis=
ts
     but before the delegation return is fully processed by the server.
   o in the case in which the server and the client restart, the server
     may have limited persistent recording of delegation to a subset of
     those in existence.
   o a client may have only persistently recorded information about a subse=
t of
     delegations.

   The server MAY support DELEGPURGE, but its support or non-support should
   match that of CLAIM_DELEGATE_PREV:
   o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
   o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV

   This fact allows a client starting up to determine if the server is prep=
ared
   to support persistent storage of delegation information and thus whether=
 it
   may use write-back caching to local persistent storage, relying on
   CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
   safely to the server in the event of client restart.

***(ORG9.6.3)***********************************************************
************************************************************************

=3D=3D=3D> The section organization of 9.6.3 is messed up.  See below.
=3D=3D=3D> The big issue is that all of the edge condition stuff is part of
=3D=3D=3D> 'courtesy locks' when  it shouldn't be

=3D=3D=3D> Here's what exists now.

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.1.1.  First Server Edge Condition
9.6.3.1.2.  Second Server Edge Condition
9.6.3.1.3.  Handling Server Edge Conditions
9.6.3.1.4.  Client Edge Condition
9.6.3.1.5.  Client's Handling of NFS4ERR_NO_GRACE
9.6.3.2.  Client's Reaction to a Freed Lock


=3D=3D=3D> Here's a suggested replacement;

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.2.  Client's Reaction to a Freed Lock
9.6.3.3.  Edge Conditions (NEW)
9.6.3.3.1.  First Server Edge Condition
9.6.3.3.2.  Second Server Edge Condition
9.6.3.3.3.  Handling Server Edge Conditions
9.6.3.3.4.  Client Edge Condition
9.6.3.4.  Client's Handling of NFS4ERR_NO_GRACE





From david.noveck@emc.com  Mon Feb 13 13:37:07 2012
Return-Path: <david.noveck@emc.com>
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 9B06021E802A for <nfsv4@ietfa.amsl.com>; Mon, 13 Feb 2012 13:37:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.696
X-Spam-Level: 
X-Spam-Status: No, score=-9.696 tagged_above=-999 required=5 tests=[AWL=0.903,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vQvljtYMLmrc for <nfsv4@ietfa.amsl.com>; Mon, 13 Feb 2012 13:37:06 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 6088121E803F for <nfsv4@ietf.org>; Mon, 13 Feb 2012 13:37:06 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1DLap9S001425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Feb 2012 16:37:05 -0500
Received: from mailhub.lss.emc.com (mailhubhoprd04.lss.emc.com [10.254.222.226]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor); Mon, 13 Feb 2012 16:36:22 -0500
Received: from mxhub29.corp.emc.com (mxhub29.corp.emc.com [128.222.70.169]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1DLaLmx025117; Mon, 13 Feb 2012 16:36:22 -0500
Received: from mx31a.corp.emc.com ([169.254.1.84]) by mxhub29.corp.emc.com ([128.222.70.169]) with mapi; Mon, 13 Feb 2012 16:36:22 -0500
From: <david.noveck@emc.com>
To: <rmacklem@uoguelph.ca>
Date: Mon, 13 Feb 2012 16:36:21 -0500
Thread-Topic: [nfsv4] NFS4ERR_EXPIRED, the saga continues
Thread-Index: AczpojqYKmyYwKa2QuGdh3fEB6P6ywA025IQ
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AD889F3B@MX31A.corp.emc.com>
References: <5DEA8DB993B81040A21CF3CB332489F6AD889C58@MX31A.corp.emc.com> <1167865080.1224685.1329063604457.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <1167865080.1224685.1329063604457.JavaMail.root@erie.cs.uoguelph.ca>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Mon, 13 Feb 2012 21:37:07 -0000

> Section 9.6.3.2 says:
>=20
> NFS4ERR_EXPIRED:
>=20
> All locks has been revoked during the partition. The client
> should use a SETCLIENTID to recover.
>=20
> > The big issue is the second sentence. Notice it says "should" and not
. > "SHOULD".
> >=20
> > I had been under the impression that when you had lease cancellation,
> > you did have an invalid clientid and
> > would need SETCLIENTID to recover.
> >=20
> That is my impression as well. (I think the "should" might just have
> been because there is no good way for a client to recover from this.)

As you have laid it out:
O If you don't do SETCLIENTID, you can't do anything
O If you do SETCLIENTID, your recovery may not be great but it's the best=20
  you can do.

So maybe it should say:

    The client SHOULD use a SETCLIENTID to do recovery or something kind =20
    of like it.

Maybe not :-)

> The FreeBSD server "throws away" the confirmed record for a clientid
> when a lease has expired and a conflicting open/lock request arrives.
> After that, it will return NFS4ERR_EXPIRED for the clientid and all
> associated stateids, if they were generated in the current boot instance.

Despite throwing away the confirmed record, does it remember the clientid s=
o it
knows to return NFS4ERR_EXPIRED?

> As such, the client can no longer use the clientid.

Do you know of anywhere in 3530 or bis-16 that specifies this?  I'm not say=
ing
your server is wrong, but they should agree and if your server isn't wrong,
the spec should be corrected.

> If the FreeBSD client receives NFS4ERR_EXPIRED it:
>- does Setclientid/SetclientidConfirm to get a new clientid. It uses a
>  new client.verifier, but that wouldn't matter for the FreeBSD server.

Are you saying that if the verifier were the same, it would do the same
thing?

>- does Opens with CLAIM_NULL for all files that were open, but do not
>  have associated byte range locks on them. (It always does opens with
>  ACCESS_DENY_NONE, so I believe that this is relatively safe.)
>  Byte range locks and their associated opens are "thrown away", since
>  they can't safely be recovered. (Unfortunately FreeBSD does not have
>  a "lost locks" signal, so processes might not know that they've lost
>  their locks. They will not be able to do further I/O or locking.)

> > But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> > convinced me that it wasn't
> > valid and I note that there doesn't seem to be any other CLIENTID-NG
> > errors. Also, when I looked
> > at the discussion of network partition, it didn't say anything about
> >doing the SETCLIENTID in this
> > case.
>=20
> > So is this just a case of "you should recover but I can't tell you
> > have to, i.e. you can just panic if you really want to"?
>=20
> Unfortunately, I don't think there is a good way for a client to recover
> from this. I've described the compromise that the FreeBSD client currentl=
y
> uses above, but if there is a better way, I'd like to hear about it.

I'd like to hear about any other ways, so we create spec text that is compa=
tible
with all existing clients and servers, if that is possible.

> > Specifically, if you have a network partition (and lease
> > cancellation), and you do a SETCLIENTID,
> > Do you get back the same client id or a new one (if the client hasn't
> rebooted).
>=20
> For the FreeBSD server, it is a new one. Since the FreeBSD client uses
> a different client.verifier, I believe the same should be true for other
> servers?

> > What happens if you don't and you do a RENEW. What error, if any, do
> > you get?
>=20
> Prior to doing a SetClientid/SetClientidConfirm to get a new clientid,
> Renew with the old clientid will reply NFS4ERR_EXPIRED for the FreeBSD
> server. (That is on the list of errors for Renew.)

That's good to know.  It certainly means the description of NFS4ERR_EXPIRED=
=20
will have to include some text to address its use to indicate a problem wit=
h=20
a clientid.

BTW, what does your server return if you use the old clientid in a RENEW=20
after doing the SETCLIENTID to get the new one?




-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of R=
ick Macklem
Sent: Sunday, February 12, 2012 11:20 AM
To: Noveck, David
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues

David Noveck wrote:
> So far, among people willing to discuss the subject, there seems to be
> general agreement that NFS4ERR_EXPIRED should indicate loss of all
> locks due to lease cancellation. Assuming that quasi-consensus holds,
> there are other related matters to discuss.
>=20
Well, since no one else has responded, I guess I'll throw in my $0.01 worth=
.
(I'll mostly state what the FreeBSD server and client currently do. I can't
 say whether or not this is correct behaviour.)

> Section 9.6.3.2 says:
>=20
> NFS4ERR_EXPIRED:
>=20
> All locks has been revoked during the partition. The client
> should use a SETCLIENTID to recover.
>=20
> The big issue is the second sentence. Notice it says "should" and not
> "SHOULD".
>=20
> I had been under the impression that when you had lease cancellation,
> you did have an invalid clientid and
> would need SETCLIENTID to recover.
>=20
That is my impression as well. (I think the "should" might just have
been because there is no good way for a client to recover from this.)
The FreeBSD server "throws away" the confirmed record for a clientid
when a lease has expired and a conflicting open/lock request arrives.
After that, it will return NFS4ERR_EXPIRED for the clientid and all
associated stateids, if they were generated in the current boot instance.

As such, the client can no longer use the clientid.

If the FreeBSD client receives NFS4ERR_EXPIRED it:
- does Setclientid/SetclientidConfirm to get a new clientid. It uses a
  new client.verifier, but that wouldn't matter for the FreeBSD server.
- does Opens with CLAIM_NULL for all files that were open, but do not
  have associated byte range locks on them. (It always does opens with
  ACCESS_DENY_NONE, so I believe that this is relatively safe.)
  Byte range locks and their associated opens are "thrown away", since
  they can't safely be recovered. (Unfortunately FreeBSD does not have
  a "lost locks" signal, so processes might not know that they've lost
  their locks. They will not be able to do further I/O or locking.)

> But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> convinced me that it wasn't
> valid and I note that there doesn't seem to be any other CLIENTID-NG
> errors. Also, when I looked
> at the discussion of network partition, it didn't say anything about
> doing the SETCLIENTID in this
> case.
>=20
> So is this just a case of "you should recover but I can't tell you
> have to, i.e. you can just panic if you really want to"?
>=20
Unfortunately, I don't think there is a good way for a client to recover
from this. I've described the compromise that the FreeBSD client currently
uses above, but if there is a better way, I'd like to hear about it.

> Specifically, if you have a network partition (and lease
> cancellation), and you do a SETCLIENTID,
> Do you get back the same client id or a new one (if the client hasn't
> rebooted).
>=20
For the FreeBSD server, it is a new one. Since the FreeBSD client uses
a different client.verifier, I believe the same should be true for other
servers?

> What happens if you don't and you do a RENEW. What error, if any, do
> you get?
>=20
Prior to doing a SetClientid/SetClientidConfirm to get a new clientid,
Renew with the old clientid will reply NFS4ERR_EXPIRED for the FreeBSD
server. (That is on the list of errors for Renew.)

>=20
>=20
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


From rmacklem@uoguelph.ca  Tue Feb 14 16:02:55 2012
Return-Path: <rmacklem@uoguelph.ca>
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 4ABE921F8547 for <nfsv4@ietfa.amsl.com>; Tue, 14 Feb 2012 16:02:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.151
X-Spam-Level: 
X-Spam-Status: No, score=-6.151 tagged_above=-999 required=5 tests=[AWL=0.448,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yKSC76zdWgaA for <nfsv4@ietfa.amsl.com>; Tue, 14 Feb 2012 16:02:53 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 41F6021F8546 for <nfsv4@ietf.org>; Tue, 14 Feb 2012 16:02:49 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EAPb1Ok+DaFvO/2dsb2JhbABDhRCsS4FyAQEBAwEBAQEgSwsMDxEEAQEBAgINFgMCKR8JCAYTh3wJpxCRaASBL4ooAgkHCAEGAxMGAQUHAQICCAMOBAYDBQyDUmcRBwMIghmBFgSISoxoiTSJTg
X-IronPort-AV: E=Sophos;i="4.73,420,1325480400"; d="scan'208";a="156464877"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 14 Feb 2012 19:02:39 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 2AA4AB3FD4; Tue, 14 Feb 2012 19:02:39 -0500 (EST)
Date: Tue, 14 Feb 2012 19:02:39 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: david noveck <david.noveck@emc.com>
Message-ID: <2014453095.1389455.1329264159141.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AD889F3B@MX31A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 15 Feb 2012 00:02:55 -0000

David Noveck wrote:
> > Section 9.6.3.2 says:
> >
> > NFS4ERR_EXPIRED:
> >
> > All locks has been revoked during the partition. The client
> > should use a SETCLIENTID to recover.
> >
> > > The big issue is the second sentence. Notice it says "should" and
> > > not
> . > "SHOULD".
> > >
> > > I had been under the impression that when you had lease
> > > cancellation,
> > > you did have an invalid clientid and
> > > would need SETCLIENTID to recover.
> > >
> > That is my impression as well. (I think the "should" might just have
> > been because there is no good way for a client to recover from
> > this.)
> 
> As you have laid it out:
> O If you don't do SETCLIENTID, you can't do anything
> O If you do SETCLIENTID, your recovery may not be great but it's the
> best
> you can do.
> 
> So maybe it should say:
> 
> The client SHOULD use a SETCLIENTID to do recovery or something kind
> of like it.
> 
> Maybe not :-)
> 
> > The FreeBSD server "throws away" the confirmed record for a clientid
> > when a lease has expired and a conflicting open/lock request
> > arrives.
> > After that, it will return NFS4ERR_EXPIRED for the clientid and all
> > associated stateids, if they were generated in the current boot
> > instance.
> 
> Despite throwing away the confirmed record, does it remember the
> clientid so it
> knows to return NFS4ERR_EXPIRED?
> 
Depends on what you mean by "remember". It doesn't not have any record
of the clientid. It returns NFS4ERR_EXPIRED when the clientid is for the
current boot instance (a boot instance is part of the clientid) and it
doesn't have any record for it. (So, it "remembers" by not having a record
for it and by generating clientids such that the same clientid won't be
generated again within the boot instance and by putting the boot instance
in the clientid.)

Stateids related to a clientid have that clientid imbedded in the stateid,
so the same applies to stateids.

> > As such, the client can no longer use the clientid.
> 
> Do you know of anywhere in 3530 or bis-16 that specifies this? I'm not
> saying
> your server is wrong, but they should agree and if your server isn't
> wrong,
> the spec should be corrected.
> 
Not that I can see. The only "hint" is the above statement
"The client should use a SETCLIENTID to recover." Beyond that, if a server
allows the clientid to be used for "new stateids (issued after a network
partition heals, as indicated by a Renew reply or similar), then the server
would have to keep track of the "old" stateids forever (actually until a
server reboot), so that it can reply NFS4ERR_EXPIRED when those old stateids
are used by a client. To do this, I think it would require keeping those
stateid records "forever", which could constipate a server. (A server implementor
might try and do this by partitioning the stateid's "bit space" between old and
new, but it could conceivably have to do this many times for a flakey network
connection. Sooner or later I think the partitioning scheme would fail, because
there are a finite # of bits in a stateid?) Yea, kinda convoluted, but I think
it's an argument for not allowing a clientid to work after it has expired?

> > If the FreeBSD client receives NFS4ERR_EXPIRED it:
> >- does Setclientid/SetclientidConfirm to get a new clientid. It uses
> >a
> >  new client.verifier, but that wouldn't matter for the FreeBSD
> >  server.
> 
> Are you saying that if the verifier were the same, it would do the
> same
> thing?
> 
In the case of the FreeBSD server, yes, since the server has no record
of the longhand nfs_client_id4. However, I don't believe that this behaviour
should be expected of a server. The FreeBSD client always uses a different
client.verifier field for the SetClientID used during NFS4ERR_EXPIRED
recovery.

> >- does Opens with CLAIM_NULL for all files that were open, but do not
> >  have associated byte range locks on them. (It always does opens
> >  with
> >  ACCESS_DENY_NONE, so I believe that this is relatively safe.)
> >  Byte range locks and their associated opens are "thrown away",
> >  since
> >  they can't safely be recovered. (Unfortunately FreeBSD does not
> >  have
> >  a "lost locks" signal, so processes might not know that they've
> >  lost
> >  their locks. They will not be able to do further I/O or locking.)
> 
> > > But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> > > convinced me that it wasn't
> > > valid and I note that there doesn't seem to be any other
> > > CLIENTID-NG
> > > errors. Also, when I looked
> > > at the discussion of network partition, it didn't say anything
> > > about
> > >doing the SETCLIENTID in this
> > > case.
> >
> > > So is this just a case of "you should recover but I can't tell you
> > > have to, i.e. you can just panic if you really want to"?
> >
> > Unfortunately, I don't think there is a good way for a client to
> > recover
> > from this. I've described the compromise that the FreeBSD client
> > currently
> > uses above, but if there is a better way, I'd like to hear about it.
> 
> I'd like to hear about any other ways, so we create spec text that is
> compatible
> with all existing clients and servers, if that is possible.
> 
> > > Specifically, if you have a network partition (and lease
> > > cancellation), and you do a SETCLIENTID,
> > > Do you get back the same client id or a new one (if the client
> > > hasn't
> > rebooted).
> >
> > For the FreeBSD server, it is a new one. Since the FreeBSD client
> > uses
> > a different client.verifier, I believe the same should be true for
> > other
> > servers?
> 
> > > What happens if you don't and you do a RENEW. What error, if any,
> > > do
> > > you get?
> >
> > Prior to doing a SetClientid/SetClientidConfirm to get a new
> > clientid,
> > Renew with the old clientid will reply NFS4ERR_EXPIRED for the
> > FreeBSD
> > server. (That is on the list of errors for Renew.)
> 
> That's good to know. It certainly means the description of
> NFS4ERR_EXPIRED
> will have to include some text to address its use to indicate a
> problem with
> a clientid.
> 
> BTW, what does your server return if you use the old clientid in a
> RENEW
> after doing the SETCLIENTID to get the new one?
> 
> 
> 
> 
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf
> Of Rick Macklem
> Sent: Sunday, February 12, 2012 11:20 AM
> To: Noveck, David
> Cc: nfsv4@ietf.org
> Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues
> 
> David Noveck wrote:
> > So far, among people willing to discuss the subject, there seems to
> > be
> > general agreement that NFS4ERR_EXPIRED should indicate loss of all
> > locks due to lease cancellation. Assuming that quasi-consensus
> > holds,
> > there are other related matters to discuss.
> >
> Well, since no one else has responded, I guess I'll throw in my $0.01
> worth.
> (I'll mostly state what the FreeBSD server and client currently do. I
> can't
> say whether or not this is correct behaviour.)
> 
> > Section 9.6.3.2 says:
> >
> > NFS4ERR_EXPIRED:
> >
> > All locks has been revoked during the partition. The client
> > should use a SETCLIENTID to recover.
> >
> > The big issue is the second sentence. Notice it says "should" and
> > not
> > "SHOULD".
> >
> > I had been under the impression that when you had lease
> > cancellation,
> > you did have an invalid clientid and
> > would need SETCLIENTID to recover.
> >
> That is my impression as well. (I think the "should" might just have
> been because there is no good way for a client to recover from this.)
> The FreeBSD server "throws away" the confirmed record for a clientid
> when a lease has expired and a conflicting open/lock request arrives.
> After that, it will return NFS4ERR_EXPIRED for the clientid and all
> associated stateids, if they were generated in the current boot
> instance.
> 
> As such, the client can no longer use the clientid.
> 
> If the FreeBSD client receives NFS4ERR_EXPIRED it:
> - does Setclientid/SetclientidConfirm to get a new clientid. It uses a
> new client.verifier, but that wouldn't matter for the FreeBSD server.
> - does Opens with CLAIM_NULL for all files that were open, but do not
> have associated byte range locks on them. (It always does opens with
> ACCESS_DENY_NONE, so I believe that this is relatively safe.)
> Byte range locks and their associated opens are "thrown away", since
> they can't safely be recovered. (Unfortunately FreeBSD does not have
> a "lost locks" signal, so processes might not know that they've lost
> their locks. They will not be able to do further I/O or locking.)
> 
> > But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> > convinced me that it wasn't
> > valid and I note that there doesn't seem to be any other CLIENTID-NG
> > errors. Also, when I looked
> > at the discussion of network partition, it didn't say anything about
> > doing the SETCLIENTID in this
> > case.
> >
> > So is this just a case of "you should recover but I can't tell you
> > have to, i.e. you can just panic if you really want to"?
> >
> Unfortunately, I don't think there is a good way for a client to
> recover
> from this. I've described the compromise that the FreeBSD client
> currently
> uses above, but if there is a better way, I'd like to hear about it.
> 
> > Specifically, if you have a network partition (and lease
> > cancellation), and you do a SETCLIENTID,
> > Do you get back the same client id or a new one (if the client
> > hasn't
> > rebooted).
> >
> For the FreeBSD server, it is a new one. Since the FreeBSD client uses
> a different client.verifier, I believe the same should be true for
> other
> servers?
> 
> > What happens if you don't and you do a RENEW. What error, if any, do
> > you get?
> >
> Prior to doing a SetClientid/SetClientidConfirm to get a new clientid,
> Renew with the old clientid will reply NFS4ERR_EXPIRED for the FreeBSD
> server. (That is on the list of errors for Renew.)
> 
> >
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From rmacklem@uoguelph.ca  Wed Feb 15 08:12:02 2012
Return-Path: <rmacklem@uoguelph.ca>
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 3E47D21E8025 for <nfsv4@ietfa.amsl.com>; Wed, 15 Feb 2012 08:12:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.168
X-Spam-Level: 
X-Spam-Status: No, score=-6.168 tagged_above=-999 required=5 tests=[AWL=0.431,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7lYjdMqkIIbj for <nfsv4@ietfa.amsl.com>; Wed, 15 Feb 2012 08:11:55 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id E492221E805B for <nfsv4@ietf.org>; Wed, 15 Feb 2012 08:11:54 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EANXXO0+DaFvO/2dsb2JhbABDhRGsQoFyAQEBBAEBASBLCwwPEQQBAQECAg0WAwIpHwkIBhMJh3+oApF4gS+KLQICDwEBAwEKAwgIBwQCAQcHAQICCQwCCgIDCoMmXAkCBwkFBAeCFIEWBIhNjGmJN4lP
X-IronPort-AV: E=Sophos;i="4.73,424,1325480400"; d="scan'208";a="156554533"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 15 Feb 2012 11:11:53 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id B1D3EB3F39; Wed, 15 Feb 2012 11:11:53 -0500 (EST)
Date: Wed, 15 Feb 2012 11:11:53 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: david noveck <david.noveck@emc.com>
Message-ID: <598255055.1422193.1329322313707.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AD889F3B@MX31A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.203]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 15 Feb 2012 16:12:02 -0000

David Noveck wrote:
> > Section 9.6.3.2 says:
> >
> > NFS4ERR_EXPIRED:
> >
> > All locks has been revoked during the partition. The client
> > should use a SETCLIENTID to recover.
> >
> > > The big issue is the second sentence. Notice it says "should" and
> > > not
> . > "SHOULD".
> > >
> > > I had been under the impression that when you had lease
> > > cancellation,
> > > you did have an invalid clientid and
> > > would need SETCLIENTID to recover.
> > >
> > That is my impression as well. (I think the "should" might just have
> > been because there is no good way for a client to recover from
> > this.)
> 
> As you have laid it out:
> O If you don't do SETCLIENTID, you can't do anything
> O If you do SETCLIENTID, your recovery may not be great but it's the
> best
> you can do.
> 
> So maybe it should say:
> 
> The client SHOULD use a SETCLIENTID to do recovery or something kind
> of like it.
> 
> Maybe not :-)
> 
> > The FreeBSD server "throws away" the confirmed record for a clientid
> > when a lease has expired and a conflicting open/lock request
> > arrives.
> > After that, it will return NFS4ERR_EXPIRED for the clientid and all
> > associated stateids, if they were generated in the current boot
> > instance.
> 
> Despite throwing away the confirmed record, does it remember the
> clientid so it
> knows to return NFS4ERR_EXPIRED?
> 
> > As such, the client can no longer use the clientid.
> 
> Do you know of anywhere in 3530 or bis-16 that specifies this? I'm not
> saying
> your server is wrong, but they should agree and if your server isn't
> wrong,
> the spec should be corrected.
> 
Btw, you might want to look at this email thread in the archive. Here the
url for one of the messages in it. (Back in Oct. 2004.)

http://www.ietf.org/mail-archive/web/nfsv4/current/msg01220.html

It had NFS4ERR_ADMIN_REVOKED in the subject header, but discusses
NFS4ERR_EXPIRED as well.
> > If the FreeBSD client receives NFS4ERR_EXPIRED it:
> >- does Setclientid/SetclientidConfirm to get a new clientid. It uses
> >a
> >  new client.verifier, but that wouldn't matter for the FreeBSD
> >  server.
> 
> Are you saying that if the verifier were the same, it would do the
> same
> thing?
> 
> >- does Opens with CLAIM_NULL for all files that were open, but do not
> >  have associated byte range locks on them. (It always does opens
> >  with
> >  ACCESS_DENY_NONE, so I believe that this is relatively safe.)
> >  Byte range locks and their associated opens are "thrown away",
> >  since
> >  they can't safely be recovered. (Unfortunately FreeBSD does not
> >  have
> >  a "lost locks" signal, so processes might not know that they've
> >  lost
> >  their locks. They will not be able to do further I/O or locking.)
> 
> > > But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> > > convinced me that it wasn't
> > > valid and I note that there doesn't seem to be any other
> > > CLIENTID-NG
> > > errors. Also, when I looked
> > > at the discussion of network partition, it didn't say anything
> > > about
> > >doing the SETCLIENTID in this
> > > case.
> >
> > > So is this just a case of "you should recover but I can't tell you
> > > have to, i.e. you can just panic if you really want to"?
> >
> > Unfortunately, I don't think there is a good way for a client to
> > recover
> > from this. I've described the compromise that the FreeBSD client
> > currently
> > uses above, but if there is a better way, I'd like to hear about it.
> 
> I'd like to hear about any other ways, so we create spec text that is
> compatible
> with all existing clients and servers, if that is possible.
> 
> > > Specifically, if you have a network partition (and lease
> > > cancellation), and you do a SETCLIENTID,
> > > Do you get back the same client id or a new one (if the client
> > > hasn't
> > rebooted).
> >
> > For the FreeBSD server, it is a new one. Since the FreeBSD client
> > uses
> > a different client.verifier, I believe the same should be true for
> > other
> > servers?
> 
> > > What happens if you don't and you do a RENEW. What error, if any,
> > > do
> > > you get?
> >
> > Prior to doing a SetClientid/SetClientidConfirm to get a new
> > clientid,
> > Renew with the old clientid will reply NFS4ERR_EXPIRED for the
> > FreeBSD
> > server. (That is on the list of errors for Renew.)
> 
> That's good to know. It certainly means the description of
> NFS4ERR_EXPIRED
> will have to include some text to address its use to indicate a
> problem with
> a clientid.
> 
> BTW, what does your server return if you use the old clientid in a
> RENEW
> after doing the SETCLIENTID to get the new one?
> 
> 
> 
> 
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf
> Of Rick Macklem
> Sent: Sunday, February 12, 2012 11:20 AM
> To: Noveck, David
> Cc: nfsv4@ietf.org
> Subject: Re: [nfsv4] NFS4ERR_EXPIRED, the saga continues
> 
> David Noveck wrote:
> > So far, among people willing to discuss the subject, there seems to
> > be
> > general agreement that NFS4ERR_EXPIRED should indicate loss of all
> > locks due to lease cancellation. Assuming that quasi-consensus
> > holds,
> > there are other related matters to discuss.
> >
> Well, since no one else has responded, I guess I'll throw in my $0.01
> worth.
> (I'll mostly state what the FreeBSD server and client currently do. I
> can't
> say whether or not this is correct behaviour.)
> 
> > Section 9.6.3.2 says:
> >
> > NFS4ERR_EXPIRED:
> >
> > All locks has been revoked during the partition. The client
> > should use a SETCLIENTID to recover.
> >
> > The big issue is the second sentence. Notice it says "should" and
> > not
> > "SHOULD".
> >
> > I had been under the impression that when you had lease
> > cancellation,
> > you did have an invalid clientid and
> > would need SETCLIENTID to recover.
> >
> That is my impression as well. (I think the "should" might just have
> been because there is no good way for a client to recover from this.)
> The FreeBSD server "throws away" the confirmed record for a clientid
> when a lease has expired and a conflicting open/lock request arrives.
> After that, it will return NFS4ERR_EXPIRED for the clientid and all
> associated stateids, if they were generated in the current boot
> instance.
> 
> As such, the client can no longer use the clientid.
> 
> If the FreeBSD client receives NFS4ERR_EXPIRED it:
> - does Setclientid/SetclientidConfirm to get a new clientid. It uses a
> new client.verifier, but that wouldn't matter for the FreeBSD server.
> - does Opens with CLAIM_NULL for all files that were open, but do not
> have associated byte range locks on them. (It always does opens with
> ACCESS_DENY_NONE, so I believe that this is relatively safe.)
> Byte range locks and their associated opens are "thrown away", since
> they can't safely be recovered. (Unfortunately FreeBSD does not have
> a "lost locks" signal, so processes might not know that they've lost
> their locks. They will not be able to do further I/O or locking.)
> 
> > But when I discussed giving back NFS4ERR_STALE_CLIENTID, Rick
> > convinced me that it wasn't
> > valid and I note that there doesn't seem to be any other CLIENTID-NG
> > errors. Also, when I looked
> > at the discussion of network partition, it didn't say anything about
> > doing the SETCLIENTID in this
> > case.
> >
> > So is this just a case of "you should recover but I can't tell you
> > have to, i.e. you can just panic if you really want to"?
> >
> Unfortunately, I don't think there is a good way for a client to
> recover
> from this. I've described the compromise that the FreeBSD client
> currently
> uses above, but if there is a better way, I'd like to hear about it.
> 
> > Specifically, if you have a network partition (and lease
> > cancellation), and you do a SETCLIENTID,
> > Do you get back the same client id or a new one (if the client
> > hasn't
> > rebooted).
> >
> For the FreeBSD server, it is a new one. Since the FreeBSD client uses
> a different client.verifier, I believe the same should be true for
> other
> servers?
> 
> > What happens if you don't and you do a RENEW. What error, if any, do
> > you get?
> >
> Prior to doing a SetClientid/SetClientidConfirm to get a new clientid,
> Renew with the old clientid will reply NFS4ERR_EXPIRED for the FreeBSD
> server. (That is on the list of errors for Renew.)
> 
> >
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From Vitaliy.Gusev@nexenta.com  Thu Feb 16 03:40:47 2012
Return-Path: <Vitaliy.Gusev@nexenta.com>
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 4B73B21F8790 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 03:40:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id btR5Usuhl1yi for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 03:40:46 -0800 (PST)
Received: from mail132.messagelabs.com (mail132.messagelabs.com [216.82.242.115]) by ietfa.amsl.com (Postfix) with ESMTP id 66E9321F878B for <nfsv4@ietf.org>; Thu, 16 Feb 2012 03:40:46 -0800 (PST)
X-Env-Sender: Vitaliy.Gusev@nexenta.com
X-Msg-Ref: server-13.tower-132.messagelabs.com!1329392445!2355677!1
X-Originating-IP: [199.119.192.64]
X-StarScan-Version: 6.5.5; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27327 invoked from network); 16 Feb 2012 11:40:45 -0000
Received: from out001.apptixemail.net (HELO out001.apptixemail.net) (199.119.192.64) by server-13.tower-132.messagelabs.com with AES128-SHA encrypted SMTP; 16 Feb 2012 11:40:45 -0000
Received: from [192.168.123.52] (10.2.67.252) by smtp.apptixemail.net (10.2.65.19) with Microsoft SMTP Server (TLS) id 14.1.323.0; Thu, 16 Feb 2012 05:40:44 -0600
Message-ID: <4F3CEB38.3030703@nexenta.com>
Date: Thu, 16 Feb 2012 15:40:40 +0400
From: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <4F2902C1.6090501@nexenta.com> <1328103303.3789.84.camel@lade.trondhjem.org> <4F29473D.6040405@nexenta.com> <1328109434.3789.97.camel@lade.trondhjem.org>
In-Reply-To: <1328109434.3789.97.camel@lade.trondhjem.org>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 7bit
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 11:40:47 -0000

On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> Note that if the problem is that of abusive clients that never close
> files in situations where they should, then the server can always
> declare a reboot and get them to reclaim those opens that are actually
> in use.

Can a server simulate the reboot only for those "bad" clients whereas 
other clients will work with the server in normal mode ?


> Alternatively, change the authentication requirements and only allow
> trusted clients...

I meant not security problem. Our world is not perfect. And NFS clients 
and NFS servers are too. So servers should have basic protection 
mechanism against resources leaking-forgetting, locks forgetting, etc.




From bfields@fieldses.org  Thu Feb 16 03:55:34 2012
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 D440C21F879C for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 03:55:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.408
X-Spam-Level: 
X-Spam-Status: No, score=-2.408 tagged_above=-999 required=5 tests=[AWL=0.191,  BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 87AFyKdjkT-2 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 03:55:34 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 89A5F21F8770 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 03:55:30 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from <bfields@fieldses.org>) id 1Rxzvs-0005Id-A9; Thu, 16 Feb 2012 06:55:28 -0500
Date: Thu, 16 Feb 2012 06:55:28 -0500
From: "bfields@fieldses.org" <bfields@fieldses.org>
To: Vitaliy Gusev <gusev.vitaliy@nexenta.com>
Message-ID: <20120216115528.GC20279@fieldses.org>
References: <4F2902C1.6090501@nexenta.com> <1328103303.3789.84.camel@lade.trondhjem.org> <4F29473D.6040405@nexenta.com> <1328109434.3789.97.camel@lade.trondhjem.org> <4F3CEB38.3030703@nexenta.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F3CEB38.3030703@nexenta.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 11:55:34 -0000

On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> >Note that if the problem is that of abusive clients that never close
> >files in situations where they should, then the server can always
> >declare a reboot and get them to reclaim those opens that are actually
> >in use.
> 
> Can a server simulate the reboot only for those "bad" clients
> whereas other clients will work with the server in normal mode ?

I can't see why that wouldn't work.

--b.

> 
> 
> >Alternatively, change the authentication requirements and only allow
> >trusted clients...
> 
> I meant not security problem. Our world is not perfect. And NFS
> clients and NFS servers are too. So servers should have basic
> protection mechanism against resources leaking-forgetting, locks
> forgetting, etc.
> 
> 
> 

From Trond.Myklebust@netapp.com  Thu Feb 16 05:32:22 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 2DC8E21F8697 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 05:32:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.524
X-Spam-Level: 
X-Spam-Status: No, score=-10.524 tagged_above=-999 required=5 tests=[AWL=0.075, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kYt9WcdWY+rq for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 05:32:21 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id A94CC21F8677 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 05:32:21 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,429,1325491200"; d="scan'208";a="625936490"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 16 Feb 2012 05:32:21 -0800
Received: from svlrsexc1-prd.hq.netapp.com (svlrsexc1-prd.hq.netapp.com [10.57.115.30]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1GDWKO1027839; Thu, 16 Feb 2012 05:32:20 -0800 (PST)
Received: from VMWEXCEHT05-PRD.hq.netapp.com ([10.106.77.35]) by svlrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Thu, 16 Feb 2012 05:32:15 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.193]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Thu, 16 Feb 2012 05:32:15 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "bfields@fieldses.org" <bfields@fieldses.org>, Vitaliy Gusev <gusev.vitaliy@nexenta.com>
Thread-Topic: Question about OpenOwner table overflow
Thread-Index: AQHM4MIdnDfy/SXevEGe9/0VMDh/UpYokTKAgAAJMYCAABNcAIAXVnYAgAAEIwD//5QvgA==
Date: Thu, 16 Feb 2012 13:32:15 +0000
Message-ID: <4FA345DA4F4AE44899BD2B03EEEC2FA902CFA9@SACEXCMBX04-PRD.hq.netapp.com>
References: <4F2902C1.6090501@nexenta.com> <1328103303.3789.84.camel@lade.trondhjem.org> <4F29473D.6040405@nexenta.com> <1328109434.3789.97.camel@lade.trondhjem.org> <4F3CEB38.3030703@nexenta.com> <20120216115528.GC20279@fieldses.org>
In-Reply-To: <20120216115528.GC20279@fieldses.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginalArrivalTime: 16 Feb 2012 13:32:15.0510 (UTC) FILETIME=[659CAB60:01CCECAF]
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 13:32:22 -0000

PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBiZmllbGRzQGZpZWxkc2VzLm9y
ZyBbbWFpbHRvOmJmaWVsZHNAZmllbGRzZXMub3JnXQ0KPiBTZW50OiBUaHVyc2RheSwgRmVicnVh
cnkgMTYsIDIwMTIgNjo1NSBBTQ0KPiBUbzogVml0YWxpeSBHdXNldg0KPiBDYzogTXlrbGVidXN0
LCBUcm9uZDsgbmZzdjRAaWV0Zi5vcmcNCj4gU3ViamVjdDogUmU6IFF1ZXN0aW9uIGFib3V0IE9w
ZW5Pd25lciB0YWJsZSBvdmVyZmxvdw0KPiANCj4gT24gVGh1LCBGZWIgMTYsIDIwMTIgYXQgMDM6
NDA6NDBQTSArMDQwMCwgVml0YWxpeSBHdXNldiB3cm90ZToNCj4gPiBPbiAwMi8wMS8yMDEyIDA3
OjE3IFBNLCBNeWtsZWJ1c3QsIFRyb25kIHdyb3RlOg0KPiA+ID5Ob3RlIHRoYXQgaWYgdGhlIHBy
b2JsZW0gaXMgdGhhdCBvZiBhYnVzaXZlIGNsaWVudHMgdGhhdCBuZXZlciBjbG9zZQ0KPiA+ID5m
aWxlcyBpbiBzaXR1YXRpb25zIHdoZXJlIHRoZXkgc2hvdWxkLCB0aGVuIHRoZSBzZXJ2ZXIgY2Fu
IGFsd2F5cw0KPiA+ID5kZWNsYXJlIGEgcmVib290IGFuZCBnZXQgdGhlbSB0byByZWNsYWltIHRo
b3NlIG9wZW5zIHRoYXQgYXJlDQo+ID4gPmFjdHVhbGx5IGluIHVzZS4NCj4gPg0KPiA+IENhbiBh
IHNlcnZlciBzaW11bGF0ZSB0aGUgcmVib290IG9ubHkgZm9yIHRob3NlICJiYWQiIGNsaWVudHMg
d2hlcmVhcw0KPiA+IG90aGVyIGNsaWVudHMgd2lsbCB3b3JrIHdpdGggdGhlIHNlcnZlciBpbiBu
b3JtYWwgbW9kZSA/DQo+IA0KPiBJIGNhbid0IHNlZSB3aHkgdGhhdCB3b3VsZG4ndCB3b3JrLg0K
DQpUaGUgbWFpbiBwcm9ibGVtIHdvdWxkIGJlIGluIGVuZm9yY2luZyB0aGUgZ3JhY2UgcGVyaW9k
Li4uIFlvdSdkIGhhdmUgdG8gREVMQVkgYWxsIHBvdGVudGlhbGx5IGNvbmZsaWN0aW5nIE9QRU4g
b3IgTE9DSyByZXF1ZXN0cyBmcm9tIG90aGVyIGNsaWVudHMgdW50aWwgdGhlIGNsaWVudCB0aGF0
IGFyZSBpbiBncmFjZSBoYXZlIGZpbmlzaGVkIHJlY292ZXJpbmcuDQoNCkNoZWVycw0KICBUcm9u
ZA0K

From rmacklem@uoguelph.ca  Thu Feb 16 07:49:01 2012
Return-Path: <rmacklem@uoguelph.ca>
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 F1E5921F8666 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 07:49:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.183
X-Spam-Level: 
X-Spam-Status: No, score=-6.183 tagged_above=-999 required=5 tests=[AWL=0.416,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ghfe9kOdmGgp for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 07:48:58 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 420FF21F85C4 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 07:48:53 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EAAMlPU+DaFvO/2dsb2JhbABDhRWsWIFyAQEBAwEBAQEgSwsFBw8RBAEBAQICDRYDAikfCQgGE4d/CatyiX8EgS+KPwQELAEBAggMDAICCgsGAwKDNloSDYIUgRYEiE6MaZMG
X-IronPort-AV: E=Sophos;i="4.73,430,1325480400"; d="scan'208";a="156731123"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 16 Feb 2012 10:48:50 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id B1132B3F64; Thu, 16 Feb 2012 10:48:50 -0500 (EST)
Date: Thu, 16 Feb 2012 10:48:50 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Message-ID: <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <4FA345DA4F4AE44899BD2B03EEEC2FA902CFA9@SACEXCMBX04-PRD.hq.netapp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: bfields@fieldses.org, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 15:49:02 -0000

Trond Myklebust wrote:
> > -----Original Message-----
> > From: bfields@fieldses.org [mailto:bfields@fieldses.org]
> > Sent: Thursday, February 16, 2012 6:55 AM
> > To: Vitaliy Gusev
> > Cc: Myklebust, Trond; nfsv4@ietf.org
> > Subject: Re: Question about OpenOwner table overflow
> >
> > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > >Note that if the problem is that of abusive clients that never
> > > >close
> > > >files in situations where they should, then the server can always
> > > >declare a reboot and get them to reclaim those opens that are
> > > >actually in use.
> > >
> > > Can a server simulate the reboot only for those "bad" clients
> > > whereas
> > > other clients will work with the server in normal mode ?
> >
> > I can't see why that wouldn't work.
> 
> The main problem would be in enforcing the grace period... You'd have
> to DELAY all potentially conflicting OPEN or LOCK requests from other
> clients until the client that are in grace have finished recovering.
> 
Also, you'd have to be careful how you handle the edge conditions mentioned
in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but I don't have
the reference handy). I haven't thought about it, so I don't know if this
is more difficult when only certain clients "see it rebooted". 

At the least, I'd suggest that if a server detects a client being an
openowner hog, that it log that fact, since at least the newer versions
of Linux and FreeBSD client have been patched to use ReleaseLockOwner to
avoid this. (I don't know where the other clients are w.r.t. this.)

rick

> Cheers
> Trond
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bfields@fieldses.org  Thu Feb 16 07:56:39 2012
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 3CF7A21F8732 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 07:56:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.429
X-Spam-Level: 
X-Spam-Status: No, score=-2.429 tagged_above=-999 required=5 tests=[AWL=0.170,  BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P3Uahggmya7I for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 07:56:35 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id B12C721F864D for <nfsv4@ietf.org>; Thu, 16 Feb 2012 07:56:31 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from <bfields@fieldses.org>) id 1Ry3h7-0005ka-6p; Thu, 16 Feb 2012 10:56:29 -0500
Date: Thu, 16 Feb 2012 10:56:29 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Rick Macklem <rmacklem@uoguelph.ca>
Message-ID: <20120216155628.GA20762@fieldses.org>
References: <4FA345DA4F4AE44899BD2B03EEEC2FA902CFA9@SACEXCMBX04-PRD.hq.netapp.com> <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca>
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 15:56:39 -0000

On Thu, Feb 16, 2012 at 10:48:50AM -0500, Rick Macklem wrote:
> Trond Myklebust wrote:
> > > -----Original Message-----
> > > From: bfields@fieldses.org [mailto:bfields@fieldses.org]
> > > Sent: Thursday, February 16, 2012 6:55 AM
> > > To: Vitaliy Gusev
> > > Cc: Myklebust, Trond; nfsv4@ietf.org
> > > Subject: Re: Question about OpenOwner table overflow
> > >
> > > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > > >Note that if the problem is that of abusive clients that never
> > > > >close
> > > > >files in situations where they should, then the server can always
> > > > >declare a reboot and get them to reclaim those opens that are
> > > > >actually in use.
> > > >
> > > > Can a server simulate the reboot only for those "bad" clients
> > > > whereas
> > > > other clients will work with the server in normal mode ?
> > >
> > > I can't see why that wouldn't work.
> > 
> > The main problem would be in enforcing the grace period... You'd have
> > to DELAY all potentially conflicting OPEN or LOCK requests from other
> > clients until the client that are in grace have finished recovering.
> > 
> Also, you'd have to be careful how you handle the edge conditions mentioned
> in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but I don't have
> the reference handy). I haven't thought about it, so I don't know if this
> is more difficult when only certain clients "see it rebooted". 

If the client doesn't reclaim then you'd need to log that fact to stable
storage before starting to grant potentially conflicting locks.  I don't
think that's too different from what you'd normally do when a client
expires.

--b.

> 
> At the least, I'd suggest that if a server detects a client being an
> openowner hog, that it log that fact, since at least the newer versions
> of Linux and FreeBSD client have been patched to use ReleaseLockOwner to
> avoid this. (I don't know where the other clients are w.r.t. this.)
> 
> rick
> 
> > Cheers
> > Trond
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4

From rmacklem@uoguelph.ca  Thu Feb 16 08:40:00 2012
Return-Path: <rmacklem@uoguelph.ca>
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 46DDE21F8811 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 08:40:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.197
X-Spam-Level: 
X-Spam-Status: No, score=-6.197 tagged_above=-999 required=5 tests=[AWL=0.402,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XpV8OAbZdTu0 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 08:39:56 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 0797E21F880C for <nfsv4@ietf.org>; Thu, 16 Feb 2012 08:39:55 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EAMAwPU+DaFvO/2dsb2JhbABEhRGsWoFyAQEBBAEBASAERwsMDxEEAQEBAgINFgMCKR8JCAYTiAinEZFnBIEvij8EBCwBAQIIDAwCAgoLC4M2WhINghSBFgSIToxpkwY
X-IronPort-AV: E=Sophos;i="4.73,430,1325480400"; d="scan'208";a="156740636"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 16 Feb 2012 11:39:55 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 49FD5B3F5C; Thu, 16 Feb 2012 11:39:55 -0500 (EST)
Date: Thu, 16 Feb 2012 11:39:55 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Message-ID: <143234775.1499059.1329410395283.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.202]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: bfields@fieldses.org, Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 16:40:00 -0000

I wrote:
> Trond Myklebust wrote:
> > > -----Original Message-----
> > > From: bfields@fieldses.org [mailto:bfields@fieldses.org]
> > > Sent: Thursday, February 16, 2012 6:55 AM
> > > To: Vitaliy Gusev
> > > Cc: Myklebust, Trond; nfsv4@ietf.org
> > > Subject: Re: Question about OpenOwner table overflow
> > >
> > > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > > >Note that if the problem is that of abusive clients that never
> > > > >close
> > > > >files in situations where they should, then the server can
> > > > >always
> > > > >declare a reboot and get them to reclaim those opens that are
> > > > >actually in use.
> > > >
> > > > Can a server simulate the reboot only for those "bad" clients
> > > > whereas
> > > > other clients will work with the server in normal mode ?
> > >
> > > I can't see why that wouldn't work.
> >
> > The main problem would be in enforcing the grace period... You'd
> > have
> > to DELAY all potentially conflicting OPEN or LOCK requests from
> > other
> > clients until the client that are in grace have finished recovering.
> >
> Also, you'd have to be careful how you handle the edge conditions
> mentioned
> in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but I don't have
> the reference handy). I haven't thought about it, so I don't know if
> this
> is more difficult when only certain clients "see it rebooted".
> 
Oh, and another one that might get tricky...
- You'd need to generate clientids and stateids that somehow refer
  to the "current boot instance" for both the clients that "saw a reboot"
  and those that didn't, so that you can reply NFS4ERR_STALE_CLIENTID/STATEID
  when necessary.
  An example of this from a recent thread:
  - The FreeBSD server determines whether it should reply NFS4ERR_EXPIRED
    vs NFS4ERR_STALE_CLIENTID/STATEID when it doesn't have a record for
    the clientid by looking at the clientid/stateid bits to determine
    if it is for the current "boot instance". If I were to "partition"
    the current boot instance bit space in the clientid/stateid to handle
    "only some clients saw reboot", then I'd run out of bits.
--> You might find you have to keep records for even expired clients until
    the server reboots for real and forgets everything, to handle the
    NFS4ERR_EXPIRED case.

I'm not saying you can't make it work, but there might be a few "alligators
in the swamp" that could make it interesting:-) rick
> At the least, I'd suggest that if a server detects a client being an
> openowner hog, that it log that fact, since at least the newer
> versions
> of Linux and FreeBSD client have been patched to use ReleaseLockOwner
> to
> avoid this. (I don't know where the other clients are w.r.t. this.)
> 
> rick
> 
> > Cheers
> > Trond
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bfields@fieldses.org  Thu Feb 16 08:42:21 2012
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 D676321F882C for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 08:42:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.446
X-Spam-Level: 
X-Spam-Status: No, score=-2.446 tagged_above=-999 required=5 tests=[AWL=0.153,  BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qRN-tv7ilhzK for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 08:42:21 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 21CEB21F8810 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 08:42:21 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from <bfields@fieldses.org>) id 1Ry4PT-0005rz-5N; Thu, 16 Feb 2012 11:42:19 -0500
Date: Thu, 16 Feb 2012 11:42:19 -0500
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Rick Macklem <rmacklem@uoguelph.ca>
Message-ID: <20120216164219.GD20762@fieldses.org>
References: <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca> <143234775.1499059.1329410395283.JavaMail.root@erie.cs.uoguelph.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <143234775.1499059.1329410395283.JavaMail.root@erie.cs.uoguelph.ca>
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 16:42:22 -0000

On Thu, Feb 16, 2012 at 11:39:55AM -0500, Rick Macklem wrote:
> I wrote:
> > Trond Myklebust wrote:
> > > > -----Original Message-----
> > > > From: bfields@fieldses.org [mailto:bfields@fieldses.org]
> > > > Sent: Thursday, February 16, 2012 6:55 AM
> > > > To: Vitaliy Gusev
> > > > Cc: Myklebust, Trond; nfsv4@ietf.org
> > > > Subject: Re: Question about OpenOwner table overflow
> > > >
> > > > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > > > >Note that if the problem is that of abusive clients that never
> > > > > >close
> > > > > >files in situations where they should, then the server can
> > > > > >always
> > > > > >declare a reboot and get them to reclaim those opens that are
> > > > > >actually in use.
> > > > >
> > > > > Can a server simulate the reboot only for those "bad" clients
> > > > > whereas
> > > > > other clients will work with the server in normal mode ?
> > > >
> > > > I can't see why that wouldn't work.
> > >
> > > The main problem would be in enforcing the grace period... You'd
> > > have
> > > to DELAY all potentially conflicting OPEN or LOCK requests from
> > > other
> > > clients until the client that are in grace have finished recovering.
> > >
> > Also, you'd have to be careful how you handle the edge conditions
> > mentioned
> > in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but I don't have
> > the reference handy). I haven't thought about it, so I don't know if
> > this
> > is more difficult when only certain clients "see it rebooted".
> > 
> Oh, and another one that might get tricky...
> - You'd need to generate clientids and stateids that somehow refer
>   to the "current boot instance" for both the clients that "saw a reboot"
>   and those that didn't, so that you can reply NFS4ERR_STALE_CLIENTID/STATEID
>   when necessary.
>   An example of this from a recent thread:
>   - The FreeBSD server determines whether it should reply NFS4ERR_EXPIRED
>     vs NFS4ERR_STALE_CLIENTID/STATEID when it doesn't have a record for
>     the clientid by looking at the clientid/stateid bits to determine
>     if it is for the current "boot instance". If I were to "partition"
>     the current boot instance bit space in the clientid/stateid to handle
>     "only some clients saw reboot", then I'd run out of bits.
> --> You might find you have to keep records for even expired clients until
>     the server reboots for real and forgets everything, to handle the
>     NFS4ERR_EXPIRED case.
> 
> I'm not saying you can't make it work, but there might be a few "alligators
> in the swamp" that could make it interesting:-) rick

Dumb question, probably showing that I've ignored whole swaths of email
traffic about courtesy locks--but are clients expected to treat STALE
and EXPIRED much differently?

--b.

From david.noveck@emc.com  Thu Feb 16 11:54:56 2012
Return-Path: <david.noveck@emc.com>
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 8541821F885D for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 11:54:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.732
X-Spam-Level: 
X-Spam-Status: No, score=-9.732 tagged_above=-999 required=5 tests=[AWL=0.867,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ejQjd6Wo2KDS for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 11:54:53 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 88C8A21F878E for <nfsv4@ietf.org>; Thu, 16 Feb 2012 11:54:49 -0800 (PST)
Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1GJsk7Z031443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <nfsv4@ietf.org>; Thu, 16 Feb 2012 14:54:46 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.129]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor) for <nfsv4@ietf.org>; Thu, 16 Feb 2012 14:54:39 -0500
Received: from mxhub33.corp.emc.com (mxhub33.corp.emc.com [10.254.93.81]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1GJsdHG031207 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 14:54:39 -0500
Received: from mx31a.corp.emc.com ([169.254.1.46]) by mxhub33.corp.emc.com ([::1]) with mapi; Thu, 16 Feb 2012 14:54:39 -0500
From: <david.noveck@emc.com>
To: <nfsv4@ietf.org>
Date: Thu, 16 Feb 2012 14:54:38 -0500
Thread-Topic: Even newer proposed text changes re "client-persistent delegations"
Thread-Index: Aczs5hdC9cQBECZxQ0eUBMnEkp7RZQ==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6AED12DA3@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Subject: [nfsv4] Even newer proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 19:54:56 -0000

***(INTRO)**************************************************************
************************************************************************

This is version 3 of a set of changes to bis-16, to deal with issues
related to client-persistent delegations (new name for clarity) and
also to clarify stuff that I ran into making the original changes.

Thanks to everybody who offered comments and corrections regarding
previous versions.

I'm not sure where this sits on a spectrum from SLC ("seems like
consensus", as Spencer was looking for) to MLC  ("minimally like
consensus") (MLC), which I presume is less reliable.

The fact that there have been fewer comments on this lately may mean
that we are approaching SLC, or it could mean that everybody is just
bored with the subject.  I think we need to close on this soon.  As
I've looked through  bis-16, I've become convinced that we have to make
some significant changes to what is there and if what follows isn't
right, we need to figure out what is right to do for the bis.

***(TOC)****************************************************************
************************************************************************

   INTRO   -- Above
   TOC     -- This list of stuff in here
   NOTES   -- Discussion of remaining issues and things about which we
              may need to get to consensus (or recognize a consensus)
              which exists.
   DIFFS   -- Discussion of changes from version two.
   CURRENT -- current proposal for changes to deal with persistent
              delegations plus all the stuff that I had to fix/correct/
              clean up to address in connection with those
   9.6.3   -- Discussion about correcting current (bis-16) organization
              of 9.6.3.

***(NOTES)**************************************************************
************************************************************************

Most of what is in (CURRENT) has been mentioned in my previous sketch of
a proposal and if there is no actual consensus, at least there does not
seem to have been any dissension.  If that's not SLC, then at least it
is MLC.

Here is a list of other stuff that is either in the proposal or where
it has been suggested as something that should be in it.  the items will
identified by the proposer and an integer.

   DAVE0 --  IN-CURRENT MLC-AWAITING-SLC

     treat delegation revocation after lease expiration in a fashion like
     courtesy locks, rather than entirely separate.

     Made this change mainly bcause I couldn't understand what is there and
     had to write something that i could understand.

     My impression is that Rick would agree but we haven't reached seems-
     like-consensus.  As of v1, nobody had seen this text yet.

     Can rework if there is disagreement.

    RICK0 -- IN-CURRENT AWAITING-SLC

      saying that when a delegation is revoked after lease expiration
      but all locks are  not released (no lease cancellation),
      NFS4ERR_BAD_STATEID should be returned.

      I agree that it is consistent with DAVE0.

      Heard no other opinions.

    RICK1 -- IN-CURRENT AWAITING-SLC

       saying that when a delegation is revoked and there is no lease
       expiration, NFS4ERR_ADMIN_REVOKED is returned.

       I'm OK with this but think that we can only do it if there are some
       other spec changes to go with it, e.g. DAVE1.

       Heard no other opinions.


    DAVE1 -- IN-CURRENT AWAITING-SLC

       changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
       consistent with RICK1.

       It seems to me that this is a requirement for RICK1, but I'm not sur=
e
       if Rick agrees.

       Heard no other opinions on this.

    DAVE2 -- NOW-OUT WRONG

       saying that NFS4ERR_EXPIRED is not the signal for lease
       cancellation (uses invalidation of the clientid instead)

       Rick pointed out this doesn't match rest of spec

    DAVE3 -- IN-CURRENT AWAITING-SLC

       saying that NFS4ERR_EXPIRED applies to clientid's as well.

       Rick says his server works that way but he hasn't seen the
       text yet.

       Heard no other opinions.

     DAVE3 -- IN-CURRENT AWAITING-SLC

        Being more explicit about using SETCLIENTID after EXPIRED

        No disagreement heard but should vs. SHOULD issue makes me
        wonder what issue, if any, there is with this.

Opinions on these?

Other issues to add to the list?

Opinions on or issues with the current proposal?

***(DIFFS)**************************************************************
************************************************************************


=3D=3D=3D List of Issues

name    Presence            Consensus or an incredible facsimile
        v1    v2    v3      V1           V2          v3
DAVE0   IN    IN    IN      AW-SLC       AW-SLC      AW-SLC
DAVE1   OUT   IN    IN      AW-SLC       AW-SLC      AW-SLC
RICK0   OUT   IN    IN      AW-SLC       AW-SLC      AW-SLC
RICK1   OUT   IN    IN      AW-SLC       AW-SLC      AW-SLC
DAVE2   IN    OUT   OUT     AW-SLC       WRONG       WRONG
DAVE3   OUT   OUT   IN      ??           ??          AW-SLC
DAVE4   OUT   OUT   IN      ??           ??          AW-SLC

***(CURRENT)************************************************************
************************************************************************

=3D=3D=3D> In section 9.1.3.4, in the third set of bulleted items, replace
=3D=3D=3D> the fourth bulleted item therein by:

  o  If the stateid represents revoked state or state lost as a result
     of lease expiration, then return NFS4ERR_EXPIRED,
     NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED, as appropriate.

=3D=3D=3D> replace the last paragraph of section 9.1.10, by:

   Requiring open confirmation on reclaim-type opens is avoidable
   because of the nature of the environments in which such opens are
   done.  For CLAIM_PREVIOUS opens, this is immediately after server
   reboot, so there should be no time for open-owners to be created,
   found to be unused, and recycled.  For CLAIM_DELEGATE_PREV opens, we
   are dealing with either a client reboot situation or a network partition
   resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
   A server which supports delegation can be sure that no open-owners
   for that client have been recycled since client initialization or
   deletion of lease state and thus can ensure that confirmation will
   not be required.

=3D=3D=3D> replace the first paragraph of the second bulleted item in 9.5
     with the following:

    o Any operation made with a valid clientid (DELEGPURGE, RENEW,
      OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
      OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
      In the latter case, the stateid must not be one of the
      special stateids consisting of all bits 0 or all bits 1.

=3D=3D=3D> replace the second sentence of the third paragraph of section
     9.6.2 by:

   During the grace period, clients recover locks and the associated
   state by reclaim-type locking requests (i.e., LOCK requests with
   reclaim set to true and OPEN operations with the claim types of
   CLAIM_PREVIOUS and CLAIM_DELEGATE_PREV).

=3D=3D=3D> replace the second sentence of section 9.6.3 by the following:

   If this occurs, the server may cancel the lease and free all
   locks held for the client.

=3D=3D=3D> Replace the first two paragraphs of section 9.6.3.1 by the
=3D=3D=3D> following:

   As a courtesy to the client or as an optimization, the server may
   continue to hold locks, including delegations, on behalf of a client
   for which recent communication has extended beyond the lease period,
   delaying the cancellation of the lease.  If the server receives a lock
   or I/O request that conflicts with one of these courtesy locks or if it
   runs out of resources, the server MAY cause lease cancellation to occur =
at
   that time and henceforth return NFS4ERR_EXPIRED when any of the stateids
   associated with the freed locks is used. If lease cancellation has not
   occurred and the server receives a lock or I/O request that conflicts wi=
th
   one of the courtesy locks, the requirements are as follows:

   o in the case of a courtesy lock which is not a delegation, it MUST free
     the courtesy lock and grant the new request.

   o In the case of lock or IO request which conflicts with a delegation
     which is being held as courtesy lock, the server MAY delay resolution
     of request but MUST NOT reject the request and MUST free the delegatio=
n
     and grant the new request eventually.

   o In the case of a requests for a delegation which conflicts with a
     delegation which is being held as courtesy lock, the server MAY
     grant the new request or not as it chooses, but if it grants the
     conflicting request, the delegation haled as courtesy lock MUST be
     freed.

   If the server does not reboot or cancel the lease before the network
   partition is healed, when the original client tries to access a courtesy
   lock which was freed, the server SHOULD send back a NFS4ERR_BAD_STATEID
   to the client.  If the client tries to access a courtesy lock which
   was not freed, then the server SHOULD mark all of the courtesy locks as
   implicitly being renewed.

=3D=3D=3D> Following that material, and appearing after what is now the sec=
ond
=3D=3D=3D> paragraph of 9.6.3.1, add the following new section,
=3D=3D=3D=3D> (ORG9.6.3)

9.6.3.2 Lease cancellation

   As a result of lease expiration, leases may be cancelled, either
   immediately upon expiration or subsequently, depending on the occurrence
   of a conflicting lock or extension of the period of partition beyond
   what the server will tolerate.

   When a lease is cancelled, all locking state associated with it is
   freed and use of any the associated stateids will result in
   NFS4ERR_EXPIRED being returned.  Similarly, use of the associated client=
id
   will result in NFS4ERR_EXPIRED being returned.

   The client should recover from this situation by using SETCLIENTID
   followed by SETCLIENTID_CONFIRM, in order to establish a new clientid.
   Once a lock is obtained using this clientid, a lease will be established=
.

=3D=3D=3D> Update the following items in section 9.6.3.2 as follows and mov=
e the
=3D=3D=3D> section to follow the new 9.6.3.2, making this section 9.6.3.3

   NFS4ERR_EXPIRED:

      All locks have been freed as a result of a lease cancellation
      which occurred during the partition.  The client should use a
      SETCLIENTID to recover.

   NFS4ERR_ADMIN_REVOKED:

      The current lock has been revoked before, during, or after
      the partition.  The client SHOULD handle this error
      as it normally would.

   NFS4ERR_BAD_STATEID:

      The current lock has been revoked/released during the partition and t=
he
      server did not reboot.  Other locks MAY still be renewed.  The
      client need not do a SETCLIENTID and instead SHOULD probe
      via a RENEW call.

=3D=3D=3D=3D> Following the transported 9.6.3.2 (now 9.6.3.3), start the fo=
llowing
=3D=3D=3D=3D> new section, adjusting section numbers as indicated below in
=3D=3D=3D=3D> (ORG 9.6.3)

9.6.3.4 Edge conditions

=3D=3D=3D> After what had been the fourth non-bulleted paragraph of section=
 9.6.3.1
=3D=3D=3D> and would now be the second non-bulleted paragraph of 9.6.3.4,
=3D=3D=3D> add the following paragraph.

    The above are directed to CLAIM_PREVIOUS reclaims and not to
    CLAIM_DELEGATE_PREV reclaims, which generally do not involve
    a server reboot.  However, when a server persistently stores
    delegation information to support CLAIM_DELEGATE_PREV across
    a period in which both client and server are down at the same
    time, similar strictures apply.

=3D=3D=3D> Replace section 10.2.1 by the following

 There are three situations that delegation recovery must deal with:

   o  Client reboot or restart

   o  Server reboot or restart

   o  Network partition (full or callback-only)

   In the event the client reboots or restarts, the confirmation of
   a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
   will result in the release of byte-range locks and share reservations.
   Delegations, however, may be treated a bit differently.

   There will be situations in which delegations will need to be
   reestablished after a client reboots or restarts.  The reason for
   this is the client may have file data stored locally and this data
   was associated with the previously held delegations.  The client will
   need to reestablish the appropriate file state on the server.

   To allow for this type of client recovery, the server MAY allow
   delegations to be retained after other sort of locks are released.
   This implies that requests from other clients that conflict with these
   delegations will need to wait.  Because the normal recall process may
   require significant time for the client to flush changed state to the
   server, other clients need to be prepared for delays that occur because
   of a conflicting delegation.  In order to give clients a chance to get
   through the reboot process during which leases will not be renewed,
   the server MAY extend the period for delegation recovery beyond the
   typical lease expiration period.  For open delegations, such delegations
   that are not released are reclaimed using OPEN with a claim type of
   CLAIM_DELEGATE_PREV.  (See Section 10.5 and Section 15.18 for discussion
   of open delegation and the details of OPEN respectively).

   A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
   does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
   instead MUST, make them available until the client indicates that
   delegation recovery is complete, by doing a DELEGPURGE.  The only except=
ion
   to this requirement is when the client lease expires.

   A server that supports a claim type of CLAIM_DELEGATE_PREV MUST support
   the DELEGPURGE operation, and similarly a server that supports
   DELEGPURGE MUST support CLAIM_DELEGATE_PREV.  A server which does
   not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
   client attempts to use that feature or performs a DELEGPURGE operation.

   Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
   as providing for "client-persistent delegations" in that they allow
   use of client persistent storage on the client to store data written
   by the client, even across a client restart.  It should be noted that,
   with the optional exception noted below, this feature requires persisten=
t
   storage to be used on the client and does not add to persistent storage
   requirements on the server.

   One good way to think about client-persistent delegations is that for
   the most part, they function like "courtesy locks", with a special
   semantic adjustments to allow them to be retained across a client restar=
t,
   which cause all other sorts of locks to be freed.  Such locks are genera=
lly
   not retained across a server restart.  The one exception is the
   case of simultaneous failure of the client and server and is discussed
   below.

   When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
   by returning NFS_OK to DELEGPURGE, a client with a write delegation,
   can use write-back caching for data to be written to the server, deferri=
ng
   the write-back, until such time as the delegation is recalled, possibly
   after intervening client restarts.  Similarly, when the server indicates
   support of CLAIM_DELEGATE_PREV, a client with a read delegation and
   an open-for-write subordinate to that delegation, may be sure of the
   integrity of its persistently cached copy of the file after a client
   restart without specific verification of the change attribute.

   When the server reboots or restarts, delegations are reclaimed (using
   the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
   range locks and share reservations.  However, there is a slight
   semantic difference.  In the normal case, if the server decides that a
   delegation should not be granted, it performs the requested action
   (e.g., OPEN) without granting any delegation.  For reclaim, the
   server grants the delegation but a special designation is applied so
   that the client treats the delegation as having been granted but
   recalled by the server.  Because of this, the client has the duty to
   write all modified state to the server and then return the
   delegation.  This process of handling delegation reclaim reconciles
   three principles of the NFSv4 protocol:

   o  Upon reclaim, a client reporting resources assigned to it by an
      earlier server instance must be granted those resources.

   o  The server has unquestionable authority to determine whether
      delegations are to be granted and, once granted, whether they are
      to be continued.

   o  The use of callbacks is not to be depended upon until the client
      has proven its ability to receive them.

   When a client has more than a single open associated with a
   delegation, state for those additional opens can be established using
   OPEN operations of type CLAIM_DELEGATE_CUR.  When these are used to
   establish opens associated with reclaimed delegations, the server
   MUST allow them when made within the grace period.

   Situations in which there us a series of client and server restarts wher=
e
   there is no restart of both at the same time, are dealt with via a
   combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
   Persistent storage is needed only on the client.  For each server
   failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
   restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.

   To deal with the possibility of simultaneous failure of client and
   server (e.g. situations like power outages, etc.), the server MAY
   persistently store delegation information so that it can respond to
   a CLAIM_DELEGATE_PREV reclaim request which it receives from a
   restarting client.   This is the one case in which persistent
   delegation state can be retained across a server restart.  A server
   is not required to store this information, but if it does do so, it
   should do so for write delegations and for read delegations, during
   the pendency of which (across multiple client and/or server
   instances), some open-for-write was done as part of delegation.  When
   the space to persistently record such information is limited, the
   server should recall delegations in this class in preference to
   keeping them active without persistent storage recording.

   When a network partition occurs, delegations are subject to freeing
   by the server when the lease renewal period expires.  This is similar
   to the behavior for locks and share reservations, and, as for locks
   and share reservations it may be modified by support for "courtesy
   locks" in which locks are not freed in the absence of a conflicting
   lock request.  Whereas, for locks and share reservations, freeing of
   locks will occur immediately upon the appearance of a conflicting
   request, for delegations, the server may institute period during which
   conflicting requests are held off.  Eventually the occurrence of a
   conflicting request from another client will cause revocation of the
   delegation.

   A loss of the callback path (e.g., by later network configuration
   change) will have a similar effect in that it can also result in
   revocation of a delegation  A recall request will fail and revocation
   of the delegation will result.

   A client normally finds out about revocation of a delegation when it
   uses a stateid associated with a delegation and receives one of the
   errors NFS4ERR_EXPIRED, NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED
   (NFS4ERR_EXPIRED indicates that all lock state associated with the
   client has been lost).  It also may find out about delegation revocation
   after a client reboot when it attempts to reclaim a delegation and
   receives NFS4ERR_EXPIRED.  Note that in the case of a revoked
   OPEN_DELEGATE_WRITE delegation, there are issues because data may
   have been modified by the client whose delegation is revoked and
   separately by other clients.  See Section 10.5.1 for a discussion of
   such issues.  Note also that when delegations are revoked,
   information about the revoked delegation will be written by the
   server to stable storage (as described in Section 9.6).  This is done
   to deal with the case in which a server reboots after revoking a
   delegation but before the client holding the revoked delegation is
   notified about the revocation.
   Note that when there is a loss of a delegation, due to a network
   partition in which all locks associated with the lease are lost,
   the client will also receive the error NFS4ERR_EXPIRED.  This case
   can be distinguished from other situations in which delegations
   are revoked by seeing that the associated clientid becomes invalid
   so that NFS4ERR_STALE_CLIENTID is returned when it is used.

   When NFS4ERR_EXPIRED Is returned, the server MAY retain information
   about the delegations held by the client, deleting those that are
   invalidated by a conflicting request.  Retaining such information
   will allow the client to recover all non-invalidated delegations
   using the claim type CLAIM_DELEGATE_PREV, once the
   SETCLIENTID_CONFIRM is done to recover.  Attempted recovery of
   a delegation that the client has no record of, typically because they
   were invalidated by conflicting requests, will get the error
   NFS4ERR_BAD_RECLAIM.  Once a reclaim is attempted for all delegations
   that the client held, it SHOULD do a DELEGPURGE to allow any remaining
   server delegation information to be freed.

=3D=3D=3D> replace section 13.1.5.1 (NFS4ERR_ADMIN_REVOKED) by:

   A stateid designates locking state of any type that has been revoked
   due to administrative interaction, possibly while the lease is valid,
   or because a delegation was revoked because of failure to return it,
   while the lease was valid.

=3D=3D=3D> replace section 13.1.5.2 (NFS4ERR_BAD_STATEID) by:

   A stateid generated by the current server instance was used which
   either:

      o does not designate any locking state (either current or superseded)
        for a current (state-owner, file) pair.

      o designates locking state that was freed after lease expiration but
        without any lease cancelation, as may happen in the handling of
        "courtesy locks".

=3D=3D=3D> replace section 13.1.5.3 (NFS4ERR_EXPIRED) by:

   A stateid or clientid designates locking state of any type that
   has been revoked or released due to cancellation of the client's
   lease, either immediately upon lease expiration, or following a later
   request for a conflicting lock.

=3D=3D=3D> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
=3D=3D=3D> section 15.18.5.

=3D=3D=3D> In that paragraph, replace "; used after the client reboots:" wi=
th
=3D=3D=3D> the following:

   This claim type is for use after a SETCLIENTID_CONFIRM and before
   the corresponding DELEGPURGE in two situations: after a client reboot
   and after a lease expiration that resulted in loss of all lock
   state.

=3D=3D=3D> after that paragraph, add the following material with indenting =
that
     matches the non-hanging portion of the noted paragraph.

   The following errors apply to use of the CLAIM_DELEGATE_PREV claim
   type:

   o NFS4ERR_NOTSUPP is returned if the server does not support this
     claim type.

   o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
     time, e.g. after DELEGPURGE has been done.

   o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
     apply and the server has no record of the delegation whose reclaim
     is being attempted.

=3D=3D=3D> Replace the last two paragraphs of 15.7.4 by the following:

   This operation in provided to support clients that record delegation
   information on stable storage on the client.  In this case,
   DELEGPURGE should be issued immediately after doing delegation
   recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
   the client.  Doing so will notify the server that no additional
   delegations for the client will be recovered allowing it to free
   resources, and avoid delaying other clients who make requests that
   conflict with the unrecovered delegations.  All client SHOULD use
   DELEGPURGE as part of recovery once it is known that no further
   CLAIM_DELEGATE_PREV recovery will be done.  This includes clients
   that do not record delegation information on stable storage, who would
   then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.

   The set of delegations known to the server and the
   client may be different.  The reasons for this include:

   o a client may fail after making a request which resulted in delegation
     but before it received the results and committed them to the client's
     stable storage.
   o a client may fail after deleting its indication that a delegation exis=
ts
     but before the delegation return is fully processed by the server.
   o in the case in which the server and the client restart, the server
     may have limited persistent recording of delegation to a subset of
     those in existence.
   o a client may have only persistently recorded information about a subse=
t of
     delegations.

   The server MAY support DELEGPURGE, but its support or non-support should
   match that of CLAIM_DELEGATE_PREV:
   o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
   o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV

   This fact allows a client starting up to determine if the server is prep=
ared
   to support persistent storage of delegation information and thus whether=
 it
   may use write-back caching to local persistent storage, relying on
   CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
   safely to the server in the event of client restart.

***(ORG9.6.3)***********************************************************
************************************************************************

=3D=3D=3D> The section organization of 9.6.3 is messed up.  See below.
=3D=3D=3D> The big issue is that all of the edge condition stuff is part of
=3D=3D=3D> 'courtesy locks' when  it shouldn't be

=3D=3D=3D> Here's what exists now.

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.1.1.  First Server Edge Condition
9.6.3.1.2.  Second Server Edge Condition
9.6.3.1.3.  Handling Server Edge Conditions
9.6.3.1.4.  Client Edge Condition
9.6.3.1.5.  Client's Handling of NFS4ERR_NO_GRACE
9.6.3.2.  Client's Reaction to a Freed Lock


=3D=3D=3D> Here's a suggested replacement;

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.2   Lease Cancellation (NEW)
9.6.3.3.  Client's Reaction to a Freed Lock
9.6.3.4.  Edge Conditions (NEW)
9.6.3.4.1.  First Server Edge Condition
9.6.3.4.2.  Second Server Edge Condition
9.6.3.4.3.  Handling Server Edge Conditions
9.6.3.4.4.  Client Edge Condition
9.6.3.5.  Client's Handling of NFS4ERR_NO_GRACE





From rmacklem@uoguelph.ca  Thu Feb 16 15:18:23 2012
Return-Path: <rmacklem@uoguelph.ca>
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 33C4B21F87B4 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 15:18:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.711
X-Spam-Level: 
X-Spam-Status: No, score=-4.711 tagged_above=-999 required=5 tests=[AWL=-1.112, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oZ1QGTJ9IRpZ for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 15:18:22 -0800 (PST)
Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by ietfa.amsl.com (Postfix) with ESMTP id 6560121F8792 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 15:18:22 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EANmNPU+DaFvO/2dsb2JhbABEhRGsYYFyAQEFIwRSDA8RBAEBAQICDRYDAkgJCAYTr0ORX4EvijYJAwEEIwIHAQECCAwMAgIKCwuDNoMNgRYEiE6MaZMG
X-IronPort-AV: E=Sophos;i="4.73,432,1325480400"; d="scan'208";a="159928286"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 16 Feb 2012 18:18:21 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 6A284B3EFF; Thu, 16 Feb 2012 18:18:21 -0500 (EST)
Date: Thu, 16 Feb 2012 18:18:21 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: "J. Bruce Fields" <bfields@fieldses.org>
Message-ID: <13346382.1532438.1329434301424.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <20120216164219.GD20762@fieldses.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 23:18:23 -0000

J. Bruce Fields wrote:
> On Thu, Feb 16, 2012 at 11:39:55AM -0500, Rick Macklem wrote:
> > I wrote:
> > > Trond Myklebust wrote:
> > > > > -----Original Message-----
> > > > > From: bfields@fieldses.org [mailto:bfields@fieldses.org]
> > > > > Sent: Thursday, February 16, 2012 6:55 AM
> > > > > To: Vitaliy Gusev
> > > > > Cc: Myklebust, Trond; nfsv4@ietf.org
> > > > > Subject: Re: Question about OpenOwner table overflow
> > > > >
> > > > > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > > > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > > > > >Note that if the problem is that of abusive clients that
> > > > > > >never
> > > > > > >close
> > > > > > >files in situations where they should, then the server can
> > > > > > >always
> > > > > > >declare a reboot and get them to reclaim those opens that
> > > > > > >are
> > > > > > >actually in use.
> > > > > >
> > > > > > Can a server simulate the reboot only for those "bad"
> > > > > > clients
> > > > > > whereas
> > > > > > other clients will work with the server in normal mode ?
> > > > >
> > > > > I can't see why that wouldn't work.
> > > >
> > > > The main problem would be in enforcing the grace period... You'd
> > > > have
> > > > to DELAY all potentially conflicting OPEN or LOCK requests from
> > > > other
> > > > clients until the client that are in grace have finished
> > > > recovering.
> > > >
> > > Also, you'd have to be careful how you handle the edge conditions
> > > mentioned
> > > in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but I don't
> > > have
> > > the reference handy). I haven't thought about it, so I don't know
> > > if
> > > this
> > > is more difficult when only certain clients "see it rebooted".
> > >
> > Oh, and another one that might get tricky...
> > - You'd need to generate clientids and stateids that somehow refer
> >   to the "current boot instance" for both the clients that "saw a
> >   reboot"
> >   and those that didn't, so that you can reply
> >   NFS4ERR_STALE_CLIENTID/STATEID
> >   when necessary.
> >   An example of this from a recent thread:
> >   - The FreeBSD server determines whether it should reply
> >   NFS4ERR_EXPIRED
> >     vs NFS4ERR_STALE_CLIENTID/STATEID when it doesn't have a record
> >     for
> >     the clientid by looking at the clientid/stateid bits to
> >     determine
> >     if it is for the current "boot instance". If I were to
> >     "partition"
> >     the current boot instance bit space in the clientid/stateid to
> >     handle
> >     "only some clients saw reboot", then I'd run out of bits.
> > --> You might find you have to keep records for even expired clients
> > until
> >     the server reboots for real and forgets everything, to handle
> >     the
> >     NFS4ERR_EXPIRED case.
> >
> > I'm not saying you can't make it work, but there might be a few
> > "alligators
> > in the swamp" that could make it interesting:-) rick
> 
> Dumb question, probably showing that I've ignored whole swaths of
> email
> traffic about courtesy locks--but are clients expected to treat STALE
> and EXPIRED much differently?
> 
> --b.
He he. Well, I think the handling of NFS4ERR_EXPIRED is still an open
question that David Noveck has been trying to nail down. You can look in
the recent thread or you can look at an old thread in the mail archive,
which is back in Oct. 2004 with NFS4ERR_ADMIN_REVOKE in the subject header.

I've posted with what the FreeBSD client currently does when it sees
NFS4ERR_EXPIRED, but I don't claim it is either correct nor the best
approach. (My understanding is that a recovery from NFS4ERR_EXPIRED
cannot use Lock with reclaim == true or Open with CLAIM_PREVIOUS, since
there isn't normally a grace period. As for whether or not it should
be preceded by SetClientID/SetClientIDConfirm seems to be in some doubt,
but the FreeBSD client does it. The FreeBSD client also never tries to
recover byte range locks, since it cannot know if a conflicting lock
was acquired/released during the network partitioning. It only tries
to recover Opens (all FreeBSD client opens use ACCESS_DENY_NONE) via
a CLAIM_NULL.

rick


From nico@cryptonector.com  Thu Feb 16 15:28:06 2012
Return-Path: <nico@cryptonector.com>
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 6728321F84FA for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 15:28:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.215
X-Spam-Level: 
X-Spam-Status: No, score=-2.215 tagged_above=-999 required=5 tests=[AWL=-0.238, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vk-dLjFn93kn for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 15:28:02 -0800 (PST)
Received: from homiemail-a89.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by ietfa.amsl.com (Postfix) with ESMTP id 6411121F84EE for <nfsv4@ietf.org>; Thu, 16 Feb 2012 15:28:02 -0800 (PST)
Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id 1D4EC31800C for <nfsv4@ietf.org>; Thu, 16 Feb 2012 15:28:02 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=cryptonector.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc: content-type; q=dns; s=cryptonector.com; b=UrJLtg3JoUthbb4RKpcnE qi4ubA8h7HsQF+BE/l9lZ5Mw4b97BIfceLDumhmMvybgOX7RaWexTshQ2pktTXQy ZizPWuZVqPq28M8KfzAL56FpnkaaF4HdPOVX9pAwF2LNZmAdO1cJ2eTorsEU902g 7pnRYT6xKaYk927XlgClsA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=KNp8PbeRUgoXflHio6q6 QjBtZA0=; b=ZBJhoWZ1chbvacQ+ny5NJxQBKunjlRTJZwRkOc47su7FWPil2GA8 O7XvnpAJu753q/LSIxrGKjPfvAT5rhANXJ4WPak1CmGcFuoW9OVfIsV5YRLjv6oL /7JC/t3tJQypX+4rfAUqi5fCVUUrYMicN/YMF4Xhr+yd/czNUZI2y0g=
Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id F240D318005 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 15:28:01 -0800 (PST)
Received: by dakl33 with SMTP id l33so2697951dak.31 for <nfsv4@ietf.org>; Thu, 16 Feb 2012 15:28:01 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.216.40 with SMTP id on8mr18265890pbc.97.1329434881670; Thu, 16 Feb 2012 15:28:01 -0800 (PST)
Received: by 10.68.136.4 with HTTP; Thu, 16 Feb 2012 15:28:01 -0800 (PST)
In-Reply-To: <1328109434.3789.97.camel@lade.trondhjem.org>
References: <4F2902C1.6090501@nexenta.com> <1328103303.3789.84.camel@lade.trondhjem.org> <4F29473D.6040405@nexenta.com> <1328109434.3789.97.camel@lade.trondhjem.org>
Date: Thu, 16 Feb 2012 17:28:01 -0600
Message-ID: <CAK3OfOhe0cfCJ+f6FyLSOD0n3v0=h9b=EdBr4ds-=r2noJYW3Q@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Content-Type: text/plain; charset=UTF-8
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 16 Feb 2012 23:28:06 -0000

On Wed, Feb 1, 2012 at 9:17 AM, Myklebust, Trond
<Trond.Myklebust@netapp.com> wrote:
> Note that if the problem is that of abusive clients that never close
> files in situations where they should, then the server can always
> declare a reboot and get them to reclaim those opens that are actually
> in use.

If apps leak file descriptors then the clients will still recover all
those opens, and the server once again runs out.

> Alternatively, change the authentication requirements and only allow
> trusted clients...

Yes.  And make sure you have no apps that leak file descriptors.

Nico
--

From rmacklem@uoguelph.ca  Thu Feb 16 16:43:26 2012
Return-Path: <rmacklem@uoguelph.ca>
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 6851521E801D for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 16:43:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.675
X-Spam-Level: 
X-Spam-Status: No, score=-4.675 tagged_above=-999 required=5 tests=[AWL=-1.076, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qR6YgGgJhzC0 for <nfsv4@ietfa.amsl.com>; Thu, 16 Feb 2012 16:43:21 -0800 (PST)
Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by ietfa.amsl.com (Postfix) with ESMTP id EF3E821E807F for <nfsv4@ietf.org>; Thu, 16 Feb 2012 16:43:20 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAMKhPU+DaFvO/2dsb2JhbABEhRGsYYFyAQEBAwEBAQEXCSQnCwUWGAICDRkCKTAGE4d/Cac0g2eNfQSBL4o/AwEBAwICBQsBBQkCAwQBAQIIDAwCAgqDTDYQAQwHEg2CFIEWBIhOjGmTBg
X-IronPort-AV: E=Sophos;i="4.73,433,1325480400"; d="scan'208";a="159935729"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 16 Feb 2012 19:43:19 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 3C125B3F89; Thu, 16 Feb 2012 19:43:19 -0500 (EST)
Date: Thu, 16 Feb 2012 19:43:19 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: david noveck <david.noveck@emc.com>
Message-ID: <973257547.1535037.1329439399181.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6AED12DA3@MX31A.corp.emc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.203]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Even newer proposed text changes re "client-persistent	delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 17 Feb 2012 00:43:26 -0000

David Noveck wrote:
> ***(INTRO)**************************************************************
> ************************************************************************
> 
> This is version 3 of a set of changes to bis-16, to deal with issues
> related to client-persistent delegations (new name for clarity) and
> also to clarify stuff that I ran into making the original changes.
> 
> Thanks to everybody who offered comments and corrections regarding
> previous versions.
> 
> I'm not sure where this sits on a spectrum from SLC ("seems like
> consensus", as Spencer was looking for) to MLC ("minimally like
> consensus") (MLC), which I presume is less reliable.
> 
> The fact that there have been fewer comments on this lately may mean
> that we are approaching SLC, or it could mean that everybody is just
> bored with the subject. I think we need to close on this soon. As
> I've looked through bis-16, I've become convinced that we have to make
> some significant changes to what is there and if what follows isn't
> right, we need to figure out what is right to do for the bis.
> 
> ***(TOC)****************************************************************
> ************************************************************************
> 
> INTRO -- Above
> TOC -- This list of stuff in here
> NOTES -- Discussion of remaining issues and things about which we
> may need to get to consensus (or recognize a consensus)
> which exists.
> DIFFS -- Discussion of changes from version two.
> CURRENT -- current proposal for changes to deal with persistent
> delegations plus all the stuff that I had to fix/correct/
> clean up to address in connection with those
> 9.6.3 -- Discussion about correcting current (bis-16) organization
> of 9.6.3.
> 
> ***(NOTES)**************************************************************
> ************************************************************************
> 
> Most of what is in (CURRENT) has been mentioned in my previous sketch
> of
> a proposal and if there is no actual consensus, at least there does
> not
> seem to have been any dissension. If that's not SLC, then at least it
> is MLC.
> 
> Here is a list of other stuff that is either in the proposal or where
> it has been suggested as something that should be in it. the items
> will
> identified by the proposer and an integer.
> 
> DAVE0 -- IN-CURRENT MLC-AWAITING-SLC
> 
> treat delegation revocation after lease expiration in a fashion like
> courtesy locks, rather than entirely separate.
> 
> Made this change mainly bcause I couldn't understand what is there and
> had to write something that i could understand.
> 
> My impression is that Rick would agree but we haven't reached seems-
> like-consensus. As of v1, nobody had seen this text yet.
> 
> Can rework if there is disagreement.
> 
> RICK0 -- IN-CURRENT AWAITING-SLC
> 
> saying that when a delegation is revoked after lease expiration
> but all locks are not released (no lease cancellation),
> NFS4ERR_BAD_STATEID should be returned.
> 
> I agree that it is consistent with DAVE0.
> 
> Heard no other opinions.
> 
> RICK1 -- IN-CURRENT AWAITING-SLC
> 
> saying that when a delegation is revoked and there is no lease
> expiration, NFS4ERR_ADMIN_REVOKED is returned.
> 
> I'm OK with this but think that we can only do it if there are some
> other spec changes to go with it, e.g. DAVE1.
> 
> Heard no other opinions.
> 
> 
> DAVE1 -- IN-CURRENT AWAITING-SLC
> 
> changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
> consistent with RICK1.
> 
> It seems to me that this is a requirement for RICK1, but I'm not sure
> if Rick agrees.
> 
> Heard no other opinions on this.
> 
> DAVE2 -- NOW-OUT WRONG
> 
> saying that NFS4ERR_EXPIRED is not the signal for lease
> cancellation (uses invalidation of the clientid instead)
> 
> Rick pointed out this doesn't match rest of spec
> 
> DAVE3 -- IN-CURRENT AWAITING-SLC
> 
> saying that NFS4ERR_EXPIRED applies to clientid's as well.
> 
> Rick says his server works that way but he hasn't seen the
> text yet.
> 
> Heard no other opinions.
> 
> DAVE3 -- IN-CURRENT AWAITING-SLC
> 
> Being more explicit about using SETCLIENTID after EXPIRED
> 
> No disagreement heard but should vs. SHOULD issue makes me
> wonder what issue, if any, there is with this.
> 
> Opinions on these?
> 
> Other issues to add to the list?
> 
> Opinions on or issues with the current proposal?
> 
> ***(DIFFS)**************************************************************
> ************************************************************************
> 
> 
> === List of Issues
> 
> name Presence Consensus or an incredible facsimile
> v1 v2 v3 V1 V2 v3
> DAVE0 IN IN IN AW-SLC AW-SLC AW-SLC
> DAVE1 OUT IN IN AW-SLC AW-SLC AW-SLC
> RICK0 OUT IN IN AW-SLC AW-SLC AW-SLC
> RICK1 OUT IN IN AW-SLC AW-SLC AW-SLC
> DAVE2 IN OUT OUT AW-SLC WRONG WRONG
> DAVE3 OUT OUT IN ?? ?? AW-SLC
> DAVE4 OUT OUT IN ?? ?? AW-SLC
> 
> ***(CURRENT)************************************************************
> ************************************************************************
> 
> ===> In section 9.1.3.4, in the third set of bulleted items, replace
> ===> the fourth bulleted item therein by:
> 
> o If the stateid represents revoked state or state lost as a result
> of lease expiration, then return NFS4ERR_EXPIRED,
> NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED, as appropriate.
> 
> ===> replace the last paragraph of section 9.1.10, by:
> 
> Requiring open confirmation on reclaim-type opens is avoidable
> because of the nature of the environments in which such opens are
> done. For CLAIM_PREVIOUS opens, this is immediately after server
> reboot, so there should be no time for open-owners to be created,
> found to be unused, and recycled. For CLAIM_DELEGATE_PREV opens, we
> are dealing with either a client reboot situation or a network
> partition
> resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
> A server which supports delegation can be sure that no open-owners
> for that client have been recycled since client initialization or
> deletion of lease state and thus can ensure that confirmation will
> not be required.
> 
> ===> replace the first paragraph of the second bulleted item in 9.5
> with the following:
> 
> o Any operation made with a valid clientid (DELEGPURGE, RENEW,
> OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
> OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
> In the latter case, the stateid must not be one of the
> special stateids consisting of all bits 0 or all bits 1.
> 
> ===> replace the second sentence of the third paragraph of section
> 9.6.2 by:
> 
> During the grace period, clients recover locks and the associated
> state by reclaim-type locking requests (i.e., LOCK requests with
> reclaim set to true and OPEN operations with the claim types of
> CLAIM_PREVIOUS and CLAIM_DELEGATE_PREV).
> 
> ===> replace the second sentence of section 9.6.3 by the following:
> 
> If this occurs, the server may cancel the lease and free all
> locks held for the client.
> 
> ===> Replace the first two paragraphs of section 9.6.3.1 by the
> ===> following:
> 
> As a courtesy to the client or as an optimization, the server may
> continue to hold locks, including delegations, on behalf of a client
> for which recent communication has extended beyond the lease period,
> delaying the cancellation of the lease. If the server receives a lock
> or I/O request that conflicts with one of these courtesy locks or if
> it
> runs out of resources, the server MAY cause lease cancellation to
> occur at
> that time and henceforth return NFS4ERR_EXPIRED when any of the
> stateids
> associated with the freed locks is used. If lease cancellation has not
> occurred and the server receives a lock or I/O request that conflicts
> with
> one of the courtesy locks, the requirements are as follows:
> 
> o in the case of a courtesy lock which is not a delegation, it MUST
> free
> the courtesy lock and grant the new request.
> 
> o In the case of lock or IO request which conflicts with a delegation
> which is being held as courtesy lock, the server MAY delay resolution
> of request but MUST NOT reject the request and MUST free the
> delegation
> and grant the new request eventually.
> 
> o In the case of a requests for a delegation which conflicts with a
> delegation which is being held as courtesy lock, the server MAY
> grant the new request or not as it chooses, but if it grants the
> conflicting request, the delegation haled as courtesy lock MUST be
> freed.
> 
> If the server does not reboot or cancel the lease before the network
> partition is healed, when the original client tries to access a
> courtesy
> lock which was freed, the server SHOULD send back a
> NFS4ERR_BAD_STATEID
> to the client. If the client tries to access a courtesy lock which
> was not freed, then the server SHOULD mark all of the courtesy locks
> as
> implicitly being renewed.
> 
> ===> Following that material, and appearing after what is now the
> second
> ===> paragraph of 9.6.3.1, add the following new section,
> ====> (ORG9.6.3)
> 
> 9.6.3.2 Lease cancellation
> 
> As a result of lease expiration, leases may be cancelled, either
> immediately upon expiration or subsequently, depending on the
> occurrence
> of a conflicting lock or extension of the period of partition beyond
> what the server will tolerate.
> 
> When a lease is cancelled, all locking state associated with it is
> freed and use of any the associated stateids will result in
> NFS4ERR_EXPIRED being returned. Similarly, use of the associated
> clientid
> will result in NFS4ERR_EXPIRED being returned.
> 
> The client should recover from this situation by using SETCLIENTID
> followed by SETCLIENTID_CONFIRM, in order to establish a new clientid.
> Once a lock is obtained using this clientid, a lease will be
> established.
> 
> ===> Update the following items in section 9.6.3.2 as follows and move
> the
> ===> section to follow the new 9.6.3.2, making this section 9.6.3.3
> 
> NFS4ERR_EXPIRED:
> 
> All locks have been freed as a result of a lease cancellation
> which occurred during the partition. The client should use a
> SETCLIENTID to recover.
> 
> NFS4ERR_ADMIN_REVOKED:
> 
> The current lock has been revoked before, during, or after
> the partition. The client SHOULD handle this error
> as it normally would.
> 
> NFS4ERR_BAD_STATEID:
> 
> The current lock has been revoked/released during the partition and
> the
> server did not reboot. Other locks MAY still be renewed. The
> client need not do a SETCLIENTID and instead SHOULD probe
> via a RENEW call.
> 
> ====> Following the transported 9.6.3.2 (now 9.6.3.3), start the
> following
> ====> new section, adjusting section numbers as indicated below in
> ====> (ORG 9.6.3)
> 
> 9.6.3.4 Edge conditions
> 
> ===> After what had been the fourth non-bulleted paragraph of section
> 9.6.3.1
> ===> and would now be the second non-bulleted paragraph of 9.6.3.4,
> ===> add the following paragraph.
> 
> The above are directed to CLAIM_PREVIOUS reclaims and not to
> CLAIM_DELEGATE_PREV reclaims, which generally do not involve
> a server reboot. However, when a server persistently stores
> delegation information to support CLAIM_DELEGATE_PREV across
> a period in which both client and server are down at the same
> time, similar strictures apply.
> 
> ===> Replace section 10.2.1 by the following
> 
> There are three situations that delegation recovery must deal with:
> 
> o Client reboot or restart
> 
> o Server reboot or restart
> 
> o Network partition (full or callback-only)
> 
> In the event the client reboots or restarts, the confirmation of
> a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
> will result in the release of byte-range locks and share reservations.
> Delegations, however, may be treated a bit differently.
> 
> There will be situations in which delegations will need to be
> reestablished after a client reboots or restarts. The reason for
> this is the client may have file data stored locally and this data
> was associated with the previously held delegations. The client will
> need to reestablish the appropriate file state on the server.
> 
> To allow for this type of client recovery, the server MAY allow
> delegations to be retained after other sort of locks are released.
> This implies that requests from other clients that conflict with these
> delegations will need to wait. Because the normal recall process may
> require significant time for the client to flush changed state to the
> server, other clients need to be prepared for delays that occur
> because
> of a conflicting delegation. In order to give clients a chance to get
> through the reboot process during which leases will not be renewed,
> the server MAY extend the period for delegation recovery beyond the
> typical lease expiration period. For open delegations, such
> delegations
> that are not released are reclaimed using OPEN with a claim type of
> CLAIM_DELEGATE_PREV. (See Section 10.5 and Section 15.18 for
> discussion
> of open delegation and the details of OPEN respectively).
> 
> A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
> does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
> instead MUST, make them available until the client indicates that
> delegation recovery is complete, by doing a DELEGPURGE. The only
> exception
> to this requirement is when the client lease expires.
> 
I think that the above is problematic for extant clients that never
do a DELEGPURGE. The result would be that, for such a client, the
server would need to hold onto old delegations forever (assuming
said client maintains its lease). (ie. the last words "lease expires"
is too strong a restriction, I think?)

I think a safer version would be something like:
A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
instead MUST make them available for at least one lease duration
after the SETCLIENTID_CONFIRM is done, or until the client indicates
that delegation recovery is complete, by doing a DELEGPURGE.
(I know, this is a ridiculously long sentence, but maybe you can
 figure out how to break it up without losing its meaning?)

In summary, instead of requiring the server to hang onto them
until "lease expiration", make it "at least one lease duration".
That way, the server has a way out for clients that never do DELEGPURGE.

Sorry I didn't spot this sooner, rick

> A server that supports a claim type of CLAIM_DELEGATE_PREV MUST
> support
> the DELEGPURGE operation, and similarly a server that supports
> DELEGPURGE MUST support CLAIM_DELEGATE_PREV. A server which does
> not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
> client attempts to use that feature or performs a DELEGPURGE
> operation.
> 
> Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
> as providing for "client-persistent delegations" in that they allow
> use of client persistent storage on the client to store data written
> by the client, even across a client restart. It should be noted that,
> with the optional exception noted below, this feature requires
> persistent
> storage to be used on the client and does not add to persistent
> storage
> requirements on the server.
> 
> One good way to think about client-persistent delegations is that for
> the most part, they function like "courtesy locks", with a special
> semantic adjustments to allow them to be retained across a client
> restart,
> which cause all other sorts of locks to be freed. Such locks are
> generally
> not retained across a server restart. The one exception is the
> case of simultaneous failure of the client and server and is discussed
> below.
> 
> When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
> by returning NFS_OK to DELEGPURGE, a client with a write delegation,
> can use write-back caching for data to be written to the server,
> deferring
> the write-back, until such time as the delegation is recalled,
> possibly
> after intervening client restarts. Similarly, when the server
> indicates
> support of CLAIM_DELEGATE_PREV, a client with a read delegation and
> an open-for-write subordinate to that delegation, may be sure of the
> integrity of its persistently cached copy of the file after a client
> restart without specific verification of the change attribute.
> 
> When the server reboots or restarts, delegations are reclaimed (using
> the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
> range locks and share reservations. However, there is a slight
> semantic difference. In the normal case, if the server decides that a
> delegation should not be granted, it performs the requested action
> (e.g., OPEN) without granting any delegation. For reclaim, the
> server grants the delegation but a special designation is applied so
> that the client treats the delegation as having been granted but
> recalled by the server. Because of this, the client has the duty to
> write all modified state to the server and then return the
> delegation. This process of handling delegation reclaim reconciles
> three principles of the NFSv4 protocol:
> 
> o Upon reclaim, a client reporting resources assigned to it by an
> earlier server instance must be granted those resources.
> 
> o The server has unquestionable authority to determine whether
> delegations are to be granted and, once granted, whether they are
> to be continued.
> 
> o The use of callbacks is not to be depended upon until the client
> has proven its ability to receive them.
> 
> When a client has more than a single open associated with a
> delegation, state for those additional opens can be established using
> OPEN operations of type CLAIM_DELEGATE_CUR. When these are used to
> establish opens associated with reclaimed delegations, the server
> MUST allow them when made within the grace period.
> 
> Situations in which there us a series of client and server restarts
> where
> there is no restart of both at the same time, are dealt with via a
> combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
> Persistent storage is needed only on the client. For each server
> failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
> restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.
> 
> To deal with the possibility of simultaneous failure of client and
> server (e.g. situations like power outages, etc.), the server MAY
> persistently store delegation information so that it can respond to
> a CLAIM_DELEGATE_PREV reclaim request which it receives from a
> restarting client. This is the one case in which persistent
> delegation state can be retained across a server restart. A server
> is not required to store this information, but if it does do so, it
> should do so for write delegations and for read delegations, during
> the pendency of which (across multiple client and/or server
> instances), some open-for-write was done as part of delegation. When
> the space to persistently record such information is limited, the
> server should recall delegations in this class in preference to
> keeping them active without persistent storage recording.
> 
> When a network partition occurs, delegations are subject to freeing
> by the server when the lease renewal period expires. This is similar
> to the behavior for locks and share reservations, and, as for locks
> and share reservations it may be modified by support for "courtesy
> locks" in which locks are not freed in the absence of a conflicting
> lock request. Whereas, for locks and share reservations, freeing of
> locks will occur immediately upon the appearance of a conflicting
> request, for delegations, the server may institute period during which
> conflicting requests are held off. Eventually the occurrence of a
> conflicting request from another client will cause revocation of the
> delegation.
> 
> A loss of the callback path (e.g., by later network configuration
> change) will have a similar effect in that it can also result in
> revocation of a delegation A recall request will fail and revocation
> of the delegation will result.
> 
> A client normally finds out about revocation of a delegation when it
> uses a stateid associated with a delegation and receives one of the
> errors NFS4ERR_EXPIRED, NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED
> (NFS4ERR_EXPIRED indicates that all lock state associated with the
> client has been lost). It also may find out about delegation
> revocation
> after a client reboot when it attempts to reclaim a delegation and
> receives NFS4ERR_EXPIRED. Note that in the case of a revoked
> OPEN_DELEGATE_WRITE delegation, there are issues because data may
> have been modified by the client whose delegation is revoked and
> separately by other clients. See Section 10.5.1 for a discussion of
> such issues. Note also that when delegations are revoked,
> information about the revoked delegation will be written by the
> server to stable storage (as described in Section 9.6). This is done
> to deal with the case in which a server reboots after revoking a
> delegation but before the client holding the revoked delegation is
> notified about the revocation.
> Note that when there is a loss of a delegation, due to a network
> partition in which all locks associated with the lease are lost,
> the client will also receive the error NFS4ERR_EXPIRED. This case
> can be distinguished from other situations in which delegations
> are revoked by seeing that the associated clientid becomes invalid
> so that NFS4ERR_STALE_CLIENTID is returned when it is used.
> 
> When NFS4ERR_EXPIRED Is returned, the server MAY retain information
> about the delegations held by the client, deleting those that are
> invalidated by a conflicting request. Retaining such information
> will allow the client to recover all non-invalidated delegations
> using the claim type CLAIM_DELEGATE_PREV, once the
> SETCLIENTID_CONFIRM is done to recover. Attempted recovery of
> a delegation that the client has no record of, typically because they
> were invalidated by conflicting requests, will get the error
> NFS4ERR_BAD_RECLAIM. Once a reclaim is attempted for all delegations
> that the client held, it SHOULD do a DELEGPURGE to allow any remaining
> server delegation information to be freed.
> 
> ===> replace section 13.1.5.1 (NFS4ERR_ADMIN_REVOKED) by:
> 
> A stateid designates locking state of any type that has been revoked
> due to administrative interaction, possibly while the lease is valid,
> or because a delegation was revoked because of failure to return it,
> while the lease was valid.
> 
> ===> replace section 13.1.5.2 (NFS4ERR_BAD_STATEID) by:
> 
> A stateid generated by the current server instance was used which
> either:
> 
> o does not designate any locking state (either current or superseded)
> for a current (state-owner, file) pair.
> 
> o designates locking state that was freed after lease expiration but
> without any lease cancelation, as may happen in the handling of
> "courtesy locks".
> 
> ===> replace section 13.1.5.3 (NFS4ERR_EXPIRED) by:
> 
> A stateid or clientid designates locking state of any type that
> has been revoked or released due to cancellation of the client's
> lease, either immediately upon lease expiration, or following a later
> request for a conflicting lock.
> 
> ===> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
> ===> section 15.18.5.
> 
> ===> In that paragraph, replace "; used after the client reboots:"
> with
> ===> the following:
> 
> This claim type is for use after a SETCLIENTID_CONFIRM and before
> the corresponding DELEGPURGE in two situations: after a client reboot
> and after a lease expiration that resulted in loss of all lock
> state.
> 
> ===> after that paragraph, add the following material with indenting
> that
> matches the non-hanging portion of the noted paragraph.
> 
> The following errors apply to use of the CLAIM_DELEGATE_PREV claim
> type:
> 
> o NFS4ERR_NOTSUPP is returned if the server does not support this
> claim type.
> 
> o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
> time, e.g. after DELEGPURGE has been done.
> 
> o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
> apply and the server has no record of the delegation whose reclaim
> is being attempted.
> 
> ===> Replace the last two paragraphs of 15.7.4 by the following:
> 
> This operation in provided to support clients that record delegation
> information on stable storage on the client. In this case,
> DELEGPURGE should be issued immediately after doing delegation
> recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
> the client. Doing so will notify the server that no additional
> delegations for the client will be recovered allowing it to free
> resources, and avoid delaying other clients who make requests that
> conflict with the unrecovered delegations. All client SHOULD use
> DELEGPURGE as part of recovery once it is known that no further
> CLAIM_DELEGATE_PREV recovery will be done. This includes clients
> that do not record delegation information on stable storage, who would
> then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.
> 
> The set of delegations known to the server and the
> client may be different. The reasons for this include:
> 
> o a client may fail after making a request which resulted in
> delegation
> but before it received the results and committed them to the client's
> stable storage.
> o a client may fail after deleting its indication that a delegation
> exists
> but before the delegation return is fully processed by the server.
> o in the case in which the server and the client restart, the server
> may have limited persistent recording of delegation to a subset of
> those in existence.
> o a client may have only persistently recorded information about a
> subset of
> delegations.
> 
> The server MAY support DELEGPURGE, but its support or non-support
> should
> match that of CLAIM_DELEGATE_PREV:
> o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
> o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV
> 
> This fact allows a client starting up to determine if the server is
> prepared
> to support persistent storage of delegation information and thus
> whether it
> may use write-back caching to local persistent storage, relying on
> CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
> safely to the server in the event of client restart.
> 
> ***(ORG9.6.3)***********************************************************
> ************************************************************************
> 
> ===> The section organization of 9.6.3 is messed up. See below.
> ===> The big issue is that all of the edge condition stuff is part of
> ===> 'courtesy locks' when it shouldn't be
> 
> ===> Here's what exists now.
> 
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.1.1. First Server Edge Condition
> 9.6.3.1.2. Second Server Edge Condition
> 9.6.3.1.3. Handling Server Edge Conditions
> 9.6.3.1.4. Client Edge Condition
> 9.6.3.1.5. Client's Handling of NFS4ERR_NO_GRACE
> 9.6.3.2. Client's Reaction to a Freed Lock
> 
> 
> ===> Here's a suggested replacement;
> 
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.2 Lease Cancellation (NEW)
> 9.6.3.3. Client's Reaction to a Freed Lock
> 9.6.3.4. Edge Conditions (NEW)
> 9.6.3.4.1. First Server Edge Condition
> 9.6.3.4.2. Second Server Edge Condition
> 9.6.3.4.3. Handling Server Edge Conditions
> 9.6.3.4.4. Client Edge Condition
> 9.6.3.5. Client's Handling of NFS4ERR_NO_GRACE
> 
> 
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From Pranoop.Erasani@netapp.com  Mon Feb 20 20:37:49 2012
Return-Path: <Pranoop.Erasani@netapp.com>
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 6394F21E8036 for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 20:37:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XwIviCGSl94p for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 20:37:48 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id CCC7021E8034 for <nfsv4@ietf.org>; Mon, 20 Feb 2012 20:37:48 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,455,1325491200"; d="scan'208";a="627144433"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 20 Feb 2012 20:37:47 -0800
Received: from sacrsexc2-prd.hq.netapp.com (sacrsexc2-prd.hq.netapp.com [10.99.115.28]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1L4bldA015392; Mon, 20 Feb 2012 20:37:47 -0800 (PST)
Received: from VMWEXCEHT02-PRD.hq.netapp.com ([10.106.76.240]) by sacrsexc2-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 20 Feb 2012 20:37:42 -0800
Received: from SACEXCMBX03-PRD.hq.netapp.com ([169.254.5.175]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.02.0247.003; Mon, 20 Feb 2012 20:37:39 -0800
From: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
To: Rick Macklem <rmacklem@uoguelph.ca>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Thread-Topic: [nfsv4] Question about OpenOwner table overflow
Thread-Index: AQHM7K9tQAWhBU8efESXYS0LM7akr5ZAMbEAgAaYw+A=
Date: Tue, 21 Feb 2012 04:37:38 +0000
Message-ID: <876AF623CC82644FBE6AE75723CA5FAC11DCD8@SACEXCMBX03-PRD.hq.netapp.com>
References: <4FA345DA4F4AE44899BD2B03EEEC2FA902CFA9@SACEXCMBX04-PRD.hq.netapp.com> <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <1325828624.1493194.1329407330703.JavaMail.root@erie.cs.uoguelph.ca>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginalArrivalTime: 21 Feb 2012 04:37:42.0787 (UTC) FILETIME=[8CD84530:01CCF052]
Cc: "bfields@fieldses.org" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 04:37:49 -0000

> > > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > > >Note that if the problem is that of abusive clients that never
> > > > >close files in situations where they should, then the server can
> > > > >always declare a reboot and get them to reclaim those opens that
> > > > >are actually in use.
> > > >
> > > > Can a server simulate the reboot only for those "bad" clients
> > > > whereas other clients will work with the server in normal mode ?
> > >
> > > I can't see why that wouldn't work.
> >
> > The main problem would be in enforcing the grace period... You'd have
> > to DELAY all potentially conflicting OPEN or LOCK requests from other
> > clients until the client that are in grace have finished recovering.
> >
> Also, you'd have to be careful how you handle the edge conditions
> mentioned in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but I don=
't
> have the reference handy). I haven't thought about it, so I don't know if=
 this
> is more difficult when only certain clients "see it rebooted".
>=20
> At the least, I'd suggest that if a server detects a client being an open=
owner
> hog, that it log that fact, since at least the newer versions of Linux an=
d
> FreeBSD client have been patched to use ReleaseLockOwner to avoid this. (=
I
> don't know where the other clients are w.r.t. this.)

Maybe, I'm not reading the spec right. But, ReleaseLockOwner frees Lock Own=
ers only. Is this part of some errata?

Trond can correct me, but Linux client does not issue ReleaseLockOwner for =
open owners. What I'm aware of is that the new Linux client optimizes the g=
eneration of a new owner for every OPEN operation, by sharing an open owner=
 across multiple opens from the same NFS creds. How does FreeBsd do it?

- Pranoop

>=20
> rick
>=20
> > Cheers
> > Trond
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From rmacklem@uoguelph.ca  Mon Feb 20 20:45:25 2012
Return-Path: <rmacklem@uoguelph.ca>
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 704EA21F85DA for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 20:45:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.141
X-Spam-Level: 
X-Spam-Status: No, score=-6.141 tagged_above=-999 required=5 tests=[AWL=0.458,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3fxAZ6rN9Og3 for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 20:45:24 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id B9F5321F85DB for <nfsv4@ietf.org>; Mon, 20 Feb 2012 20:45:24 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAKwgQ0+DaFvO/2dsb2JhbABChRauDYFzAQEBBAEBASBLCxsYAgINGQIpMAYTiAmsfYowBIEvilAJERYBAQIWAQkCCRKDNAFXDwqCHYEWBIhPjGmTCw
X-IronPort-AV: E=Sophos;i="4.73,455,1325480400"; d="scan'208";a="157198246"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 20 Feb 2012 23:45:23 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id E2B82B3F79; Mon, 20 Feb 2012 23:45:23 -0500 (EST)
Date: Mon, 20 Feb 2012 23:45:23 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Pranoop Erasani <Pranoop.Erasani@netapp.com>
Message-ID: <340772648.1659791.1329799523909.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <876AF623CC82644FBE6AE75723CA5FAC11DCD8@SACEXCMBX03-PRD.hq.netapp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.203]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: bfields@fieldses.org, Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 04:45:25 -0000

Pranoop Erasani wrote:
> > > > On Thu, Feb 16, 2012 at 03:40:40PM +0400, Vitaliy Gusev wrote:
> > > > > On 02/01/2012 07:17 PM, Myklebust, Trond wrote:
> > > > > >Note that if the problem is that of abusive clients that
> > > > > >never
> > > > > >close files in situations where they should, then the server
> > > > > >can
> > > > > >always declare a reboot and get them to reclaim those opens
> > > > > >that
> > > > > >are actually in use.
> > > > >
> > > > > Can a server simulate the reboot only for those "bad" clients
> > > > > whereas other clients will work with the server in normal mode
> > > > > ?
> > > >
> > > > I can't see why that wouldn't work.
> > >
> > > The main problem would be in enforcing the grace period... You'd
> > > have
> > > to DELAY all potentially conflicting OPEN or LOCK requests from
> > > other
> > > clients until the client that are in grace have finished
> > > recovering.
> > >
> > Also, you'd have to be careful how you handle the edge conditions
> > mentioned in Sec. 8.6.3 of RFC3530 (they're in the newer specs, but
> > I don't
> > have the reference handy). I haven't thought about it, so I don't
> > know if this
> > is more difficult when only certain clients "see it rebooted".
> >
> > At the least, I'd suggest that if a server detects a client being an
> > openowner
> > hog, that it log that fact, since at least the newer versions of
> > Linux and
> > FreeBSD client have been patched to use ReleaseLockOwner to avoid
> > this. (I
> > don't know where the other clients are w.r.t. this.)
> 
> Maybe, I'm not reading the spec right. But, ReleaseLockOwner frees
> Lock Owners only. Is this part of some errata?
> 
> Trond can correct me, but Linux client does not issue ReleaseLockOwner
> for open owners. What I'm aware of is that the new Linux client
> optimizes the generation of a new owner for every OPEN operation, by
> sharing an open owner across multiple opens from the same NFS creds.
> How does FreeBsd do it?
> 
You are correct. I mistakenly thought you were discussing the situation
where:
- parent opens file and holds it open for a very long time
  - child of this process does byte range locking
    - if it doesn't do a ReleaseLockOwner, the server can't discard the
      lock_onwer4.
This problem was a bug in old versions of both the Linux and FreeBSD
clients, but both are now patched to do ReleaseLockOwner Ops.

I had forgotten (it was related to a post that came along quite a
while ago) you were asking about a hypothetical client that fails
to close opens. (I don't know of an extant client that fails to close
opens, but there certainly could be a busted one someday, I suppose.)

Sorry about the confusion, rick

> - Pranoop
> 
> >
> > rick
> >
> > > Cheers
> > > Trond
> > > _______________________________________________
> > > nfsv4 mailing list
> > > nfsv4@ietf.org
> > > https://www.ietf.org/mailman/listinfo/nfsv4
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4

From davenoveck@gmail.com  Mon Feb 20 18:50:53 2012
Return-Path: <davenoveck@gmail.com>
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 6550621F854E for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 18:50:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level: 
X-Spam-Status: No, score=-0.999 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qu-fQItSp1P6 for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 18:50:51 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by ietfa.amsl.com (Postfix) with ESMTP id DCFA521F854D for <nfsv4@ietf.org>; Mon, 20 Feb 2012 18:50:50 -0800 (PST)
Received: by iagf6 with SMTP id f6so10342702iag.31 for <nfsv4@ietf.org>; Mon, 20 Feb 2012 18:50:50 -0800 (PST)
Received-SPF: pass (google.com: domain of davenoveck@gmail.com designates 10.42.150.200 as permitted sender) client-ip=10.42.150.200; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of davenoveck@gmail.com designates 10.42.150.200 as permitted sender) smtp.mail=davenoveck@gmail.com; dkim=pass header.i=davenoveck@gmail.com
Received: from mr.google.com ([10.42.150.200]) by 10.42.150.200 with SMTP id b8mr24779819icw.43.1329792650523 (num_hops = 1); Mon, 20 Feb 2012 18:50:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=uTPuG43qbaWqBR01Jw0dW56PC2wAEm9GztgAXw+V9L4=; b=NYJBR59HyxkZ1A3qA3mw/X7HJeP05KOfx8DQOHImqvKkv97LzQ35eA+/2sa7vg8Gj0 5IjgxkQ4Iq35Rq3klabrKWJRR2KmbtVqQ0PmVb8rUtE7T5YNNQYJZq71oJE6AZvkHgoL xvZQuaT9qfFKTWQRxKUatubY4SZO1qU5p3PwQ=
MIME-Version: 1.0
Received: by 10.42.150.200 with SMTP id b8mr19789896icw.43.1329792650438; Mon, 20 Feb 2012 18:50:50 -0800 (PST)
Received: by 10.231.230.68 with HTTP; Mon, 20 Feb 2012 18:50:50 -0800 (PST)
Date: Mon, 20 Feb 2012 21:50:50 -0500
Message-ID: <CADaq8jfgukZgiXBbFo39sGcnmC0VL_GJBx81KLYCXg58dtxTSw@mail.gmail.com>
From: David Noveck <davenoveck@gmail.com>
To: macklem@uoguelph.ca, nfsv4@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
X-Mailman-Approved-At: Mon, 20 Feb 2012 21:04:14 -0800
Subject: Re: [nfsv4] Even newer proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 03:16:27 -0000

I'm, replying from my gmail because my hotel has free internet which isn't free
if you want access to your vpn to work.


> > To allow for this type of client recovery, the server MAY allow
> > delegations to be retained after other sort of locks are released.
> > This implies that requests from other clients that conflict with these
> > delegations will need to wait. Because the normal recall process may
> > require significant time for the client to flush changed state to the
> > server, other clients need to be prepared for delays that occur
> > because
> > of a conflicting delegation. In order to give clients a chance to get
> > through the reboot process during which leases will not be renewed,
> > the server MAY extend the period for delegation recovery beyond the
> > typical lease expiration period. For open delegations, such
> > delegations
> > that are not released are reclaimed using OPEN with a claim type of
> > CLAIM_DELEGATE_PREV. (See Section 10.5 and Section 15.18 for
> > discussion
> > of open delegation and the details of OPEN respectively).
> >
> > A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
> > does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
> > instead MUST, make them available until the client indicates that
> > delegation recovery is complete, by doing a DELEGPURGE. The only
> > exception
> > to this requirement is when the client lease expires.
> >
> I think that the above is problematic for extant clients that never
> do a DELEGPURGE.

Good point.  I wasn't properly addressing the issue of old clients.  In
my defense, let me say that I was supposing that they would simply not support
CLAIM_DELEGATE_PREV, but I think that doesn't fully address the issue.

> The result would be that, for such a client, the
> server would need to hold onto old delegations forever (assuming
> said client maintains its lease). (ie. the last words "lease expires"
> is too strong a restriction, I think?)

It is certainly too strong when combined with "MUST".    One possible fix
for this issue is simply to switch the last "MUST" to "SHOULD".  Let's call
that variant (1S) and the original (1M).

> I think a safer version would be something like:
> A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
> does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
> instead MUST make them available for at least one lease duration
> after the SETCLIENTID_CONFIRM is done, or until the client indicates
> that delegation recovery is complete, by doing a DELEGPURGE.
> (I know, this is a ridiculously long sentence, but maybe you can
>  figure out how to break it up without losing its meaning?)

Would the following match your intent?

  A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
  does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
  instead MUST make them available for client reclaim using
  CLAIM_DELEGATE_PREV.  The server MAY NOT remove the delegations until
  either the client does a DELEGPURGE, or one lease period has
  elapsed from the time the SETCLIENTID_CONFIRM was done.

If so, let's call that (2M).  If you replace the last "MUST" by
"SHOULD" and the "MAY NOT" by "SHOULD NOT", call that (2S)

> In summary, instead of requiring the server to hang onto them
> until "lease expiration", make it "at least one lease duration".
> That way, the server has a way out for clients that never do DELEGPURGE.

Clearly the server needs some way out but I think we need to agree on what
it is.  I agree that (1M) is not OK here and I don't expect anyone to say
"(1M) or nothing", but there may be some people who feel that (2M) and (2S)
do not give the client sufficient protection.

Here's another alternative that I think is worth considering:

  A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
  does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
  instead MUST make them available for client reclaim using
  CLAIM_DELEGATE_PREV.  The server MAY NOT remove the delegations until
  either the client does a DELEGPURGE, or one lease period has
  elapsed from the time the later of the SETCLIENTID_CONFIRM or the
  last successful CLAIM_DELEGATE_PREV reclaim.

Let's call that (3M) and (3S) the analogous text with "SHOULD".

My preference order is (3M), (1S), (3S), (2M), (2S) and agree that (1M) is out.

I'd particularly like to hear about Rick's and Trond's preferences for this, and
also want to know what other opinions are out there.  I hope we can
close on this
and move beyond SLC to PCM ("Perfect Consensus, Maybe" :-).

> Sorry I didn't spot this sooner, rick

Thank you for spotting the issue.

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf
Of Rick Macklem
Sent: Thursday, February 16, 2012 7:43 PM
To: Noveck, David
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Even newer proposed text changes re
"client-persistent delegations"

David Noveck wrote:
> ***(INTRO)**************************************************************
> ************************************************************************
>
> This is version 3 of a set of changes to bis-16, to deal with issues
> related to client-persistent delegations (new name for clarity) and
> also to clarify stuff that I ran into making the original changes.
>
> Thanks to everybody who offered comments and corrections regarding
> previous versions.
>
> I'm not sure where this sits on a spectrum from SLC ("seems like
> consensus", as Spencer was looking for) to MLC ("minimally like
> consensus") (MLC), which I presume is less reliable.
>
> The fact that there have been fewer comments on this lately may mean
> that we are approaching SLC, or it could mean that everybody is just
> bored with the subject. I think we need to close on this soon. As
> I've looked through bis-16, I've become convinced that we have to make
> some significant changes to what is there and if what follows isn't
> right, we need to figure out what is right to do for the bis.
>
> ***(TOC)****************************************************************
> ************************************************************************
>
> INTRO -- Above
> TOC -- This list of stuff in here
> NOTES -- Discussion of remaining issues and things about which we
> may need to get to consensus (or recognize a consensus)
> which exists.
> DIFFS -- Discussion of changes from version two.
> CURRENT -- current proposal for changes to deal with persistent
> delegations plus all the stuff that I had to fix/correct/
> clean up to address in connection with those
> 9.6.3 -- Discussion about correcting current (bis-16) organization
> of 9.6.3.
>
> ***(NOTES)**************************************************************
> ************************************************************************
>
> Most of what is in (CURRENT) has been mentioned in my previous sketch
> of
> a proposal and if there is no actual consensus, at least there does
> not
> seem to have been any dissension. If that's not SLC, then at least it
> is MLC.
>
> Here is a list of other stuff that is either in the proposal or where
> it has been suggested as something that should be in it. the items
> will
> identified by the proposer and an integer.
>
> DAVE0 -- IN-CURRENT MLC-AWAITING-SLC
>
> treat delegation revocation after lease expiration in a fashion like
> courtesy locks, rather than entirely separate.
>
> Made this change mainly bcause I couldn't understand what is there and
> had to write something that i could understand.
>
> My impression is that Rick would agree but we haven't reached seems-
> like-consensus. As of v1, nobody had seen this text yet.
>
> Can rework if there is disagreement.
>
> RICK0 -- IN-CURRENT AWAITING-SLC
>
> saying that when a delegation is revoked after lease expiration
> but all locks are not released (no lease cancellation),
> NFS4ERR_BAD_STATEID should be returned.
>
> I agree that it is consistent with DAVE0.
>
> Heard no other opinions.
>
> RICK1 -- IN-CURRENT AWAITING-SLC
>
> saying that when a delegation is revoked and there is no lease
> expiration, NFS4ERR_ADMIN_REVOKED is returned.
>
> I'm OK with this but think that we can only do it if there are some
> other spec changes to go with it, e.g. DAVE1.
>
> Heard no other opinions.
>
>
> DAVE1 -- IN-CURRENT AWAITING-SLC
>
> changing the definition or name of NFS4ERR_ADMIN_REVOKED to be
> consistent with RICK1.
>
> It seems to me that this is a requirement for RICK1, but I'm not sure
> if Rick agrees.
>
> Heard no other opinions on this.
>
> DAVE2 -- NOW-OUT WRONG
>
> saying that NFS4ERR_EXPIRED is not the signal for lease
> cancellation (uses invalidation of the clientid instead)
>
> Rick pointed out this doesn't match rest of spec
>
> DAVE3 -- IN-CURRENT AWAITING-SLC
>
> saying that NFS4ERR_EXPIRED applies to clientid's as well.
>
> Rick says his server works that way but he hasn't seen the
> text yet.
>
> Heard no other opinions.
>
> DAVE3 -- IN-CURRENT AWAITING-SLC
>
> Being more explicit about using SETCLIENTID after EXPIRED
>
> No disagreement heard but should vs. SHOULD issue makes me
> wonder what issue, if any, there is with this.
>
> Opinions on these?
>
> Other issues to add to the list?
>
> Opinions on or issues with the current proposal?
>
> ***(DIFFS)**************************************************************
> ************************************************************************
>
>
> === List of Issues
>
> name Presence Consensus or an incredible facsimile
> v1 v2 v3 V1 V2 v3
> DAVE0 IN IN IN AW-SLC AW-SLC AW-SLC
> DAVE1 OUT IN IN AW-SLC AW-SLC AW-SLC
> RICK0 OUT IN IN AW-SLC AW-SLC AW-SLC
> RICK1 OUT IN IN AW-SLC AW-SLC AW-SLC
> DAVE2 IN OUT OUT AW-SLC WRONG WRONG
> DAVE3 OUT OUT IN ?? ?? AW-SLC
> DAVE4 OUT OUT IN ?? ?? AW-SLC
>
> ***(CURRENT)************************************************************
> ************************************************************************
>
> ===> In section 9.1.3.4, in the third set of bulleted items, replace
> ===> the fourth bulleted item therein by:
>
> o If the stateid represents revoked state or state lost as a result
> of lease expiration, then return NFS4ERR_EXPIRED,
> NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED, as appropriate.
>
> ===> replace the last paragraph of section 9.1.10, by:
>
> Requiring open confirmation on reclaim-type opens is avoidable
> because of the nature of the environments in which such opens are
> done. For CLAIM_PREVIOUS opens, this is immediately after server
> reboot, so there should be no time for open-owners to be created,
> found to be unused, and recycled. For CLAIM_DELEGATE_PREV opens, we
> are dealing with either a client reboot situation or a network
> partition
> resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
> A server which supports delegation can be sure that no open-owners
> for that client have been recycled since client initialization or
> deletion of lease state and thus can ensure that confirmation will
> not be required.
>
> ===> replace the first paragraph of the second bulleted item in 9.5
> with the following:
>
> o Any operation made with a valid clientid (DELEGPURGE, RENEW,
> OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
> OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
> In the latter case, the stateid must not be one of the
> special stateids consisting of all bits 0 or all bits 1.
>
> ===> replace the second sentence of the third paragraph of section
> 9.6.2 by:
>
> During the grace period, clients recover locks and the associated
> state by reclaim-type locking requests (i.e., LOCK requests with
> reclaim set to true and OPEN operations with the claim types of
> CLAIM_PREVIOUS and CLAIM_DELEGATE_PREV).
>
> ===> replace the second sentence of section 9.6.3 by the following:
>
> If this occurs, the server may cancel the lease and free all
> locks held for the client.
>
> ===> Replace the first two paragraphs of section 9.6.3.1 by the
> ===> following:
>
> As a courtesy to the client or as an optimization, the server may
> continue to hold locks, including delegations, on behalf of a client
> for which recent communication has extended beyond the lease period,
> delaying the cancellation of the lease. If the server receives a lock
> or I/O request that conflicts with one of these courtesy locks or if
> it
> runs out of resources, the server MAY cause lease cancellation to
> occur at
> that time and henceforth return NFS4ERR_EXPIRED when any of the
> stateids
> associated with the freed locks is used. If lease cancellation has not
> occurred and the server receives a lock or I/O request that conflicts
> with
> one of the courtesy locks, the requirements are as follows:
>
> o in the case of a courtesy lock which is not a delegation, it MUST
> free
> the courtesy lock and grant the new request.
>
> o In the case of lock or IO request which conflicts with a delegation
> which is being held as courtesy lock, the server MAY delay resolution
> of request but MUST NOT reject the request and MUST free the
> delegation
> and grant the new request eventually.
>
> o In the case of a requests for a delegation which conflicts with a
> delegation which is being held as courtesy lock, the server MAY
> grant the new request or not as it chooses, but if it grants the
> conflicting request, the delegation haled as courtesy lock MUST be
> freed.
>
> If the server does not reboot or cancel the lease before the network
> partition is healed, when the original client tries to access a
> courtesy
> lock which was freed, the server SHOULD send back a
> NFS4ERR_BAD_STATEID
> to the client. If the client tries to access a courtesy lock which
> was not freed, then the server SHOULD mark all of the courtesy locks
> as
> implicitly being renewed.
>
> ===> Following that material, and appearing after what is now the
> second
> ===> paragraph of 9.6.3.1, add the following new section,
> ====> (ORG9.6.3)
>
> 9.6.3.2 Lease cancellation
>
> As a result of lease expiration, leases may be cancelled, either
> immediately upon expiration or subsequently, depending on the
> occurrence
> of a conflicting lock or extension of the period of partition beyond
> what the server will tolerate.
>
> When a lease is cancelled, all locking state associated with it is
> freed and use of any the associated stateids will result in
> NFS4ERR_EXPIRED being returned. Similarly, use of the associated
> clientid
> will result in NFS4ERR_EXPIRED being returned.
>
> The client should recover from this situation by using SETCLIENTID
> followed by SETCLIENTID_CONFIRM, in order to establish a new clientid.
> Once a lock is obtained using this clientid, a lease will be
> established.
>
> ===> Update the following items in section 9.6.3.2 as follows and move
> the
> ===> section to follow the new 9.6.3.2, making this section 9.6.3.3
>
> NFS4ERR_EXPIRED:
>
> All locks have been freed as a result of a lease cancellation
> which occurred during the partition. The client should use a
> SETCLIENTID to recover.
>
> NFS4ERR_ADMIN_REVOKED:
>
> The current lock has been revoked before, during, or after
> the partition. The client SHOULD handle this error
> as it normally would.
>
> NFS4ERR_BAD_STATEID:
>
> The current lock has been revoked/released during the partition and
> the
> server did not reboot. Other locks MAY still be renewed. The
> client need not do a SETCLIENTID and instead SHOULD probe
> via a RENEW call.
>
> ====> Following the transported 9.6.3.2 (now 9.6.3.3), start the
> following
> ====> new section, adjusting section numbers as indicated below in
> ====> (ORG 9.6.3)
>
> 9.6.3.4 Edge conditions
>
> ===> After what had been the fourth non-bulleted paragraph of section
> 9.6.3.1
> ===> and would now be the second non-bulleted paragraph of 9.6.3.4,
> ===> add the following paragraph.
>
> The above are directed to CLAIM_PREVIOUS reclaims and not to
> CLAIM_DELEGATE_PREV reclaims, which generally do not involve
> a server reboot. However, when a server persistently stores
> delegation information to support CLAIM_DELEGATE_PREV across
> a period in which both client and server are down at the same
> time, similar strictures apply.
>
> ===> Replace section 10.2.1 by the following
>
> There are three situations that delegation recovery must deal with:
>
> o Client reboot or restart
>
> o Server reboot or restart
>
> o Network partition (full or callback-only)
>
> In the event the client reboots or restarts, the confirmation of
> a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
> will result in the release of byte-range locks and share reservations.
> Delegations, however, may be treated a bit differently.
>
> There will be situations in which delegations will need to be
> reestablished after a client reboots or restarts. The reason for
> this is the client may have file data stored locally and this data
> was associated with the previously held delegations. The client will
> need to reestablish the appropriate file state on the server.
>
> To allow for this type of client recovery, the server MAY allow
> delegations to be retained after other sort of locks are released.
> This implies that requests from other clients that conflict with these
> delegations will need to wait. Because the normal recall process may
> require significant time for the client to flush changed state to the
> server, other clients need to be prepared for delays that occur
> because
> of a conflicting delegation. In order to give clients a chance to get
> through the reboot process during which leases will not be renewed,
> the server MAY extend the period for delegation recovery beyond the
> typical lease expiration period. For open delegations, such
> delegations
> that are not released are reclaimed using OPEN with a claim type of
> CLAIM_DELEGATE_PREV. (See Section 10.5 and Section 15.18 for
> discussion
> of open delegation and the details of OPEN respectively).
>
> A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
> does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
> instead MUST, make them available until the client indicates that
> delegation recovery is complete, by doing a DELEGPURGE. The only
> exception
> to this requirement is when the client lease expires.
>
I think that the above is problematic for extant clients that never
do a DELEGPURGE. The result would be that, for such a client, the
server would need to hold onto old delegations forever (assuming
said client maintains its lease). (ie. the last words "lease expires"
is too strong a restriction, I think?)

I think a safer version would be something like:
A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
instead MUST make them available for at least one lease duration
after the SETCLIENTID_CONFIRM is done, or until the client indicates
that delegation recovery is complete, by doing a DELEGPURGE.
(I know, this is a ridiculously long sentence, but maybe you can
 figure out how to break it up without losing its meaning?)

In summary, instead of requiring the server to hang onto them
until "lease expiration", make it "at least one lease duration".
That way, the server has a way out for clients that never do DELEGPURGE.

Sorry I didn't spot this sooner, rick

> A server that supports a claim type of CLAIM_DELEGATE_PREV MUST
> support
> the DELEGPURGE operation, and similarly a server that supports
> DELEGPURGE MUST support CLAIM_DELEGATE_PREV. A server which does
> not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
> client attempts to use that feature or performs a DELEGPURGE
> operation.
>
> Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
> as providing for "client-persistent delegations" in that they allow
> use of client persistent storage on the client to store data written
> by the client, even across a client restart. It should be noted that,
> with the optional exception noted below, this feature requires
> persistent
> storage to be used on the client and does not add to persistent
> storage
> requirements on the server.
>
> One good way to think about client-persistent delegations is that for
> the most part, they function like "courtesy locks", with a special
> semantic adjustments to allow them to be retained across a client
> restart,
> which cause all other sorts of locks to be freed. Such locks are
> generally
> not retained across a server restart. The one exception is the
> case of simultaneous failure of the client and server and is discussed
> below.
>
> When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
> by returning NFS_OK to DELEGPURGE, a client with a write delegation,
> can use write-back caching for data to be written to the server,
> deferring
> the write-back, until such time as the delegation is recalled,
> possibly
> after intervening client restarts. Similarly, when the server
> indicates
> support of CLAIM_DELEGATE_PREV, a client with a read delegation and
> an open-for-write subordinate to that delegation, may be sure of the
> integrity of its persistently cached copy of the file after a client
> restart without specific verification of the change attribute.
>
> When the server reboots or restarts, delegations are reclaimed (using
> the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
> range locks and share reservations. However, there is a slight
> semantic difference. In the normal case, if the server decides that a
> delegation should not be granted, it performs the requested action
> (e.g., OPEN) without granting any delegation. For reclaim, the
> server grants the delegation but a special designation is applied so
> that the client treats the delegation as having been granted but
> recalled by the server. Because of this, the client has the duty to
> write all modified state to the server and then return the
> delegation. This process of handling delegation reclaim reconciles
> three principles of the NFSv4 protocol:
>
> o Upon reclaim, a client reporting resources assigned to it by an
> earlier server instance must be granted those resources.
>
> o The server has unquestionable authority to determine whether
> delegations are to be granted and, once granted, whether they are
> to be continued.
>
> o The use of callbacks is not to be depended upon until the client
> has proven its ability to receive them.
>
> When a client has more than a single open associated with a
> delegation, state for those additional opens can be established using
> OPEN operations of type CLAIM_DELEGATE_CUR. When these are used to
> establish opens associated with reclaimed delegations, the server
> MUST allow them when made within the grace period.
>
> Situations in which there us a series of client and server restarts
> where
> there is no restart of both at the same time, are dealt with via a
> combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
> Persistent storage is needed only on the client. For each server
> failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
> restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.
>
> To deal with the possibility of simultaneous failure of client and
> server (e.g. situations like power outages, etc.), the server MAY
> persistently store delegation information so that it can respond to
> a CLAIM_DELEGATE_PREV reclaim request which it receives from a
> restarting client. This is the one case in which persistent
> delegation state can be retained across a server restart. A server
> is not required to store this information, but if it does do so, it
> should do so for write delegations and for read delegations, during
> the pendency of which (across multiple client and/or server
> instances), some open-for-write was done as part of delegation. When
> the space to persistently record such information is limited, the
> server should recall delegations in this class in preference to
> keeping them active without persistent storage recording.
>
> When a network partition occurs, delegations are subject to freeing
> by the server when the lease renewal period expires. This is similar
> to the behavior for locks and share reservations, and, as for locks
> and share reservations it may be modified by support for "courtesy
> locks" in which locks are not freed in the absence of a conflicting
> lock request. Whereas, for locks and share reservations, freeing of
> locks will occur immediately upon the appearance of a conflicting
> request, for delegations, the server may institute period during which
> conflicting requests are held off. Eventually the occurrence of a
> conflicting request from another client will cause revocation of the
> delegation.
>
> A loss of the callback path (e.g., by later network configuration
> change) will have a similar effect in that it can also result in
> revocation of a delegation A recall request will fail and revocation
> of the delegation will result.
>
> A client normally finds out about revocation of a delegation when it
> uses a stateid associated with a delegation and receives one of the
> errors NFS4ERR_EXPIRED, NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED
> (NFS4ERR_EXPIRED indicates that all lock state associated with the
> client has been lost). It also may find out about delegation
> revocation
> after a client reboot when it attempts to reclaim a delegation and
> receives NFS4ERR_EXPIRED. Note that in the case of a revoked
> OPEN_DELEGATE_WRITE delegation, there are issues because data may
> have been modified by the client whose delegation is revoked and
> separately by other clients. See Section 10.5.1 for a discussion of
> such issues. Note also that when delegations are revoked,
> information about the revoked delegation will be written by the
> server to stable storage (as described in Section 9.6). This is done
> to deal with the case in which a server reboots after revoking a
> delegation but before the client holding the revoked delegation is
> notified about the revocation.
> Note that when there is a loss of a delegation, due to a network
> partition in which all locks associated with the lease are lost,
> the client will also receive the error NFS4ERR_EXPIRED. This case
> can be distinguished from other situations in which delegations
> are revoked by seeing that the associated clientid becomes invalid
> so that NFS4ERR_STALE_CLIENTID is returned when it is used.
>
> When NFS4ERR_EXPIRED Is returned, the server MAY retain information
> about the delegations held by the client, deleting those that are
> invalidated by a conflicting request. Retaining such information
> will allow the client to recover all non-invalidated delegations
> using the claim type CLAIM_DELEGATE_PREV, once the
> SETCLIENTID_CONFIRM is done to recover. Attempted recovery of
> a delegation that the client has no record of, typically because they
> were invalidated by conflicting requests, will get the error
> NFS4ERR_BAD_RECLAIM. Once a reclaim is attempted for all delegations
> that the client held, it SHOULD do a DELEGPURGE to allow any remaining
> server delegation information to be freed.
>
> ===> replace section 13.1.5.1 (NFS4ERR_ADMIN_REVOKED) by:
>
> A stateid designates locking state of any type that has been revoked
> due to administrative interaction, possibly while the lease is valid,
> or because a delegation was revoked because of failure to return it,
> while the lease was valid.
>
> ===> replace section 13.1.5.2 (NFS4ERR_BAD_STATEID) by:
>
> A stateid generated by the current server instance was used which
> either:
>
> o does not designate any locking state (either current or superseded)
> for a current (state-owner, file) pair.
>
> o designates locking state that was freed after lease expiration but
> without any lease cancelation, as may happen in the handling of
> "courtesy locks".
>
> ===> replace section 13.1.5.3 (NFS4ERR_EXPIRED) by:
>
> A stateid or clientid designates locking state of any type that
> has been revoked or released due to cancellation of the client's
> lease, either immediately upon lease expiration, or following a later
> request for a conflicting lock.
>
> ===> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
> ===> section 15.18.5.
>
> ===> In that paragraph, replace "; used after the client reboots:"
> with
> ===> the following:
>
> This claim type is for use after a SETCLIENTID_CONFIRM and before
> the corresponding DELEGPURGE in two situations: after a client reboot
> and after a lease expiration that resulted in loss of all lock
> state.
>
> ===> after that paragraph, add the following material with indenting
> that
> matches the non-hanging portion of the noted paragraph.
>
> The following errors apply to use of the CLAIM_DELEGATE_PREV claim
> type:
>
> o NFS4ERR_NOTSUPP is returned if the server does not support this
> claim type.
>
> o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
> time, e.g. after DELEGPURGE has been done.
>
> o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
> apply and the server has no record of the delegation whose reclaim
> is being attempted.
>
> ===> Replace the last two paragraphs of 15.7.4 by the following:
>
> This operation in provided to support clients that record delegation
> information on stable storage on the client. In this case,
> DELEGPURGE should be issued immediately after doing delegation
> recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
> the client. Doing so will notify the server that no additional
> delegations for the client will be recovered allowing it to free
> resources, and avoid delaying other clients who make requests that
> conflict with the unrecovered delegations. All client SHOULD use
> DELEGPURGE as part of recovery once it is known that no further
> CLAIM_DELEGATE_PREV recovery will be done. This includes clients
> that do not record delegation information on stable storage, who would
> then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.
>
> The set of delegations known to the server and the
> client may be different. The reasons for this include:
>
> o a client may fail after making a request which resulted in
> delegation
> but before it received the results and committed them to the client's
> stable storage.
> o a client may fail after deleting its indication that a delegation
> exists
> but before the delegation return is fully processed by the server.
> o in the case in which the server and the client restart, the server
> may have limited persistent recording of delegation to a subset of
> those in existence.
> o a client may have only persistently recorded information about a
> subset of
> delegations.
>
> The server MAY support DELEGPURGE, but its support or non-support
> should
> match that of CLAIM_DELEGATE_PREV:
> o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
> o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV
>
> This fact allows a client starting up to determine if the server is
> prepared
> to support persistent storage of delegation information and thus
> whether it
> may use write-back caching to local persistent storage, relying on
> CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
> safely to the server in the event of client restart.
>
> ***(ORG9.6.3)***********************************************************
> ************************************************************************
>
> ===> The section organization of 9.6.3 is messed up. See below.
> ===> The big issue is that all of the edge condition stuff is part of
> ===> 'courtesy locks' when it shouldn't be
>
> ===> Here's what exists now.
>
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.1.1. First Server Edge Condition
> 9.6.3.1.2. Second Server Edge Condition
> 9.6.3.1.3. Handling Server Edge Conditions
> 9.6.3.1.4. Client Edge Condition
> 9.6.3.1.5. Client's Handling of NFS4ERR_NO_GRACE
> 9.6.3.2. Client's Reaction to a Freed Lock
>
>
> ===> Here's a suggested replacement;
>
> 9.6.3. Network Partitions and Recovery
> 9.6.3.1. Courtesy Locks
> 9.6.3.2 Lease Cancellation (NEW)
> 9.6.3.3. Client's Reaction to a Freed Lock
> 9.6.3.4. Edge Conditions (NEW)
> 9.6.3.4.1. First Server Edge Condition
> 9.6.3.4.2. Second Server Edge Condition
> 9.6.3.4.3. Handling Server Edge Conditions
> 9.6.3.4.4. Client Edge Condition
> 9.6.3.5. Client's Handling of NFS4ERR_NO_GRACE
>
>
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4

From nico@cryptonector.com  Mon Feb 20 22:08:00 2012
Return-Path: <nico@cryptonector.com>
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 D7DA721F851E for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 22:07:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.254
X-Spam-Level: 
X-Spam-Status: No, score=-2.254 tagged_above=-999 required=5 tests=[AWL=-0.277, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RqM0UtuVCjYR for <nfsv4@ietfa.amsl.com>; Mon, 20 Feb 2012 22:07:59 -0800 (PST)
Received: from homiemail-a33.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by ietfa.amsl.com (Postfix) with ESMTP id 4AB6821F851C for <nfsv4@ietf.org>; Mon, 20 Feb 2012 22:07:59 -0800 (PST)
Received: from homiemail-a33.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a33.g.dreamhost.com (Postfix) with ESMTP id 7E08D59405E for <nfsv4@ietf.org>; Mon, 20 Feb 2012 22:07:58 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=cryptonector.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc: content-type; q=dns; s=cryptonector.com; b=k8Z80GAOSgvUJaxEya55K r65nOHm9GVuHuDjodIE/XurQjXwBp1bcIqLmXrYgOn23d2eMCQa3jo6g9+OiAD63 g7zmDubRQTv4znvyz0KSU3gOxHvyMNZqjIhqylhmwH9zvRQGtv74FrZoZ9CItLuz 3dutjnjq61ewkvNUP7DG0I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=cGEuODs2+pHZZwBw+egk gSEAZsI=; b=E1U2mLCLqGnIVMEPCZfacvNsvJ/Sm19RLhkkoQ+lJz7VwGOzKJon 2HBdxHYCKvBDEuw5pNW4cDxG+iU7Gre1AkigD5paH2kCZ2WOWre8nT4SegGVSLmm giUqN0MS54leYwnYK0f9ca/9YwzXynUYowxDkFNRM96dfM3Z5irmcag=
Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a33.g.dreamhost.com (Postfix) with ESMTPSA id 657E959401C for <nfsv4@ietf.org>; Mon, 20 Feb 2012 22:07:58 -0800 (PST)
Received: by pbcwz7 with SMTP id wz7so7307463pbc.31 for <nfsv4@ietf.org>; Mon, 20 Feb 2012 22:07:57 -0800 (PST)
Received-SPF: pass (google.com: domain of nico@cryptonector.com designates 10.68.208.136 as permitted sender) client-ip=10.68.208.136; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of nico@cryptonector.com designates 10.68.208.136 as permitted sender) smtp.mail=nico@cryptonector.com
Received: from mr.google.com ([10.68.208.136]) by 10.68.208.136 with SMTP id me8mr70800573pbc.55.1329804477913 (num_hops = 1); Mon, 20 Feb 2012 22:07:57 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.208.136 with SMTP id me8mr58297697pbc.55.1329804477900; Mon, 20 Feb 2012 22:07:57 -0800 (PST)
Received: by 10.68.221.197 with HTTP; Mon, 20 Feb 2012 22:07:57 -0800 (PST)
In-Reply-To: <340772648.1659791.1329799523909.JavaMail.root@erie.cs.uoguelph.ca>
References: <876AF623CC82644FBE6AE75723CA5FAC11DCD8@SACEXCMBX03-PRD.hq.netapp.com> <340772648.1659791.1329799523909.JavaMail.root@erie.cs.uoguelph.ca>
Date: Tue, 21 Feb 2012 00:07:57 -0600
Message-ID: <CAK3OfOgdO=AKq3YS2FgFsx2Pz9xyeEXB8Vm1C7Yp3tqrH2cMMw@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Rick Macklem <rmacklem@uoguelph.ca>
Content-Type: text/plain; charset=UTF-8
Cc: bfields@fieldses.org, Trond Myklebust <Trond.Myklebust@netapp.com>, Pranoop Erasani <Pranoop.Erasani@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] Question about OpenOwner table overflow
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 06:08:00 -0000

There certainly exist apps that leak file descriptors...  It is
something that valgrind checks for, for example.

But one might as well be concerned about apps that "attempt" to DoS
the server in many other ways... like trying to fill up the
filesystems.  (I remember a situation in the mid to late 90s where a
few hundred or so clients all had the same cron job to find and remove
.nfs files... and they all ran at the same time... the poor file
server -an E4K, which at the time was a fairly large system- couldn't
keep up.)

Nico
--

From Trond.Myklebust@netapp.com  Tue Feb 21 04:21:59 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 A4D5F21F87B7 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 04:21:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.528
X-Spam-Level: 
X-Spam-Status: No, score=-10.528 tagged_above=-999 required=5 tests=[AWL=0.071, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id okUxN9uEG+K2 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 04:21:55 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 769DC21F87B4 for <nfsv4@ietf.org>; Tue, 21 Feb 2012 04:21:55 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,457,1325491200"; d="scan'208";a="627210049"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 21 Feb 2012 04:21:54 -0800
Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1LCLsRi013369; Tue, 21 Feb 2012 04:21:54 -0800 (PST)
Received: from SACMVEXC4-PRD.hq.netapp.com ([10.99.115.26]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.4675);  Tue, 21 Feb 2012 04:21:49 -0800
Received: from VMWEXCEHT02-PRD.hq.netapp.com ([10.106.76.240]) by SACMVEXC4-PRD.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959);  Tue, 21 Feb 2012 04:21:49 -0800
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.02.0247.003; Tue, 21 Feb 2012 04:21:49 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: David Noveck <davenoveck@gmail.com>
Thread-Topic: [nfsv4] Even newer proposed text changes re "client-persistent delegations"
Thread-Index: AQHM8JNiLIym/GFtskSjJ7wm/vzCpw==
Date: Tue, 21 Feb 2012 12:21:48 +0000
Message-ID: <1329826908.12723.79.camel@lade.trondhjem.org>
References: <CADaq8jfgukZgiXBbFo39sGcnmC0VL_GJBx81KLYCXg58dtxTSw@mail.gmail.com>
In-Reply-To: <CADaq8jfgukZgiXBbFo39sGcnmC0VL_GJBx81KLYCXg58dtxTSw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="utf-8"
Content-ID: <456BE2F34F30F647AEDA640EDF7B6E7E@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginalArrivalTime: 21 Feb 2012 12:21:49.0457 (UTC) FILETIME=[62C0E810:01CCF093]
Cc: "macklem@uoguelph.ca" <macklem@uoguelph.ca>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Even newer proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 12:21:59 -0000

T24gTW9uLCAyMDEyLTAyLTIwIGF0IDIxOjUwIC0wNTAwLCBEYXZpZCBOb3ZlY2sgd3JvdGU6DQo+
IEknbSwgcmVwbHlpbmcgZnJvbSBteSBnbWFpbCBiZWNhdXNlIG15IGhvdGVsIGhhcyBmcmVlIGlu
dGVybmV0IHdoaWNoIGlzbid0IGZyZWUNCj4gaWYgeW91IHdhbnQgYWNjZXNzIHRvIHlvdXIgdnBu
IHRvIHdvcmsuDQo+IA0KPiANCj4gPiA+IFRvIGFsbG93IGZvciB0aGlzIHR5cGUgb2YgY2xpZW50
IHJlY292ZXJ5LCB0aGUgc2VydmVyIE1BWSBhbGxvdw0KPiA+ID4gZGVsZWdhdGlvbnMgdG8gYmUg
cmV0YWluZWQgYWZ0ZXIgb3RoZXIgc29ydCBvZiBsb2NrcyBhcmUgcmVsZWFzZWQuDQo+ID4gPiBU
aGlzIGltcGxpZXMgdGhhdCByZXF1ZXN0cyBmcm9tIG90aGVyIGNsaWVudHMgdGhhdCBjb25mbGlj
dCB3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pZWQtdG8tZGVsZWdhdGlvbnMNCnRleHQpLg0KDQpBcyBmb3IgY2FzZSAoSSksIEknbSBub3Qg
c3VyZSB0aGF0IGFueSBvZiB0aGUgZm9ybXVsYXRpb25zIGRlYWwNCmFkZXF1YXRlbHkgd2l0aCBp
dC4gSWYgdGhlIGNsaWVudCBsZWFzZSBleHBpcmVzIGJlZm9yZSBhIERFTEVHUFVSR0Ugd2FzDQpz
ZW50LCB0aGVuIHNob3VsZG4ndCB0aGUgc2VydmVyIGJlIGFsbG93ZWQgdG8gaG9sZCBvbnRvIHRo
b3NlDQpkZWxlZ2F0aW9ucyB0aGF0IHRoZSBjbGllbnQgZGlkbid0IG1hbmFnZSB0byByZWNsYWlt
PyBUaGUgY3VycmVudA0KZm9ybXVsYXRpb25zIGFwcGVhciB0byBzYXkgdGhhdCBpdCBNVVNUIG9y
IFNIT1VMRCBjbGVhciB0aGVtIG91dC4uLg0KDQpDaGVlcnMNCiAgVHJvbmQNCg0KLS0gDQpUcm9u
ZCBNeWtsZWJ1c3QNCkxpbnV4IE5GUyBjbGllbnQgbWFpbnRhaW5lcg0KDQpOZXRBcHANClRyb25k
Lk15a2xlYnVzdEBuZXRhcHAuY29tDQp3d3cubmV0YXBwLmNvbQ0KDQo=

From davenoveck@gmail.com  Tue Feb 21 06:47:34 2012
Return-Path: <davenoveck@gmail.com>
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 74A1B21F8846 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 06:47:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[AWL=0.997,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8UOFIESP46Gq for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 06:47:30 -0800 (PST)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id 2AC1321F8839 for <nfsv4@ietf.org>; Tue, 21 Feb 2012 06:47:30 -0800 (PST)
Received: by yenm3 with SMTP id m3so3357609yen.31 for <nfsv4@ietf.org>; Tue, 21 Feb 2012 06:47:29 -0800 (PST)
Received-SPF: pass (google.com: domain of davenoveck@gmail.com designates 10.50.237.37 as permitted sender) client-ip=10.50.237.37; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of davenoveck@gmail.com designates 10.50.237.37 as permitted sender) smtp.mail=davenoveck@gmail.com; dkim=pass header.i=davenoveck@gmail.com
Received: from mr.google.com ([10.50.237.37]) by 10.50.237.37 with SMTP id uz5mr786999igc.24.1329835649600 (num_hops = 1); Tue, 21 Feb 2012 06:47:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=AVJU4R2TEk+4g2v15sckxXvuIclm8JUEwpa1lpgx3vo=; b=vwZjNAuJobZDLTOEK0TIElcCEbuUrhb0oS/VjlmUVVG1ld7pCCnNudAP9eaWtbow79 J2NXT+/B8s58cWMFimY/OBjVCMQ02mbQfrFma+AOXweJo6oQ7wFwP9keRBsGiYRXThOr dd2pSWEzKNi0ue1kOE71EzScFthJuuxWG++zU=
MIME-Version: 1.0
Received: by 10.50.237.37 with SMTP id uz5mr646918igc.24.1329835649507; Tue, 21 Feb 2012 06:47:29 -0800 (PST)
Received: by 10.231.230.68 with HTTP; Tue, 21 Feb 2012 06:47:29 -0800 (PST)
In-Reply-To: <1329826908.12723.79.camel@lade.trondhjem.org>
References: <CADaq8jfgukZgiXBbFo39sGcnmC0VL_GJBx81KLYCXg58dtxTSw@mail.gmail.com> <1329826908.12723.79.camel@lade.trondhjem.org>
Date: Tue, 21 Feb 2012 09:47:29 -0500
Message-ID: <CADaq8jfOaJS2mWm6P3Dv8cSSgQBtnZ2r90ZgBWqyhcte14ZqMw@mail.gmail.com>
From: David Noveck <davenoveck@gmail.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "macklem@uoguelph.ca" <macklem@uoguelph.ca>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Even newer proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 14:47:34 -0000

Since you are OK with the many of the choices I presented, we're
within nanometers
of consensus.  Now we have to just pick one and I'll have a text I can give=
 Tom.

your assumptions 1,2,3 amount to a belief that the client will "do the
right thing" and
and the network will be reliable.  Would be nice but the spec should
deal with cases
where the other side isn't behaving right.

As far as your Roman Numeral I, I see that that does need to be fixed
and will once
we decide which of the formulations to pursue.

with regards to lease expiration my intent was to say the server may
get rid of the delegations at that point and not that it had to, i.e.
that it not under any
any special obligation to retain them, although, if you feel it does
say something else, I will try to clarify it.

On Tue, Feb 21, 2012 at 7:21 AM, Myklebust, Trond
<Trond.Myklebust@netapp.com> wrote:
> On Mon, 2012-02-20 at 21:50 -0500, David Noveck wrote:
>> I'm, replying from my gmail because my hotel has free internet which isn=
't free
>> if you want access to your vpn to work.
>>
>>
>> > > To allow for this type of client recovery, the server MAY allow
>> > > delegations to be retained after other sort of locks are released.
>> > > This implies that requests from other clients that conflict with the=
se
>> > > delegations will need to wait. Because the normal recall process may
>> > > require significant time for the client to flush changed state to th=
e
>> > > server, other clients need to be prepared for delays that occur
>> > > because
>> > > of a conflicting delegation. In order to give clients a chance to ge=
t
>> > > through the reboot process during which leases will not be renewed,
>> > > the server MAY extend the period for delegation recovery beyond the
>> > > typical lease expiration period. For open delegations, such
>> > > delegations
>> > > that are not released are reclaimed using OPEN with a claim type of
>> > > CLAIM_DELEGATE_PREV. (See Section 10.5 and Section 15.18 for
>> > > discussion
>> > > of open delegation and the details of OPEN respectively).
>> > >
>> > > A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
>> > > does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM, and
>> > > instead MUST, make them available until the client indicates that
>> > > delegation recovery is complete, by doing a DELEGPURGE. The only
>> > > exception
>> > > to this requirement is when the client lease expires.
>> > >
>> > I think that the above is problematic for extant clients that never
>> > do a DELEGPURGE.
>>
>> Good point. =A0I wasn't properly addressing the issue of old clients. =
=A0In
>> my defense, let me say that I was supposing that they would simply not s=
upport
>> CLAIM_DELEGATE_PREV, but I think that doesn't fully address the issue.
>>
>> > The result would be that, for such a client, the
>> > server would need to hold onto old delegations forever (assuming
>> > said client maintains its lease). (ie. the last words "lease expires"
>> > is too strong a restriction, I think?)
>>
>> It is certainly too strong when combined with "MUST". =A0 =A0One possibl=
e fix
>> for this issue is simply to switch the last "MUST" to "SHOULD". =A0Let's=
 call
>> that variant (1S) and the original (1M).
>>
>> > I think a safer version would be something like:
>> > A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
>> > does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
>> > instead MUST make them available for at least one lease duration
>> > after the SETCLIENTID_CONFIRM is done, or until the client indicates
>> > that delegation recovery is complete, by doing a DELEGPURGE.
>> > (I know, this is a ridiculously long sentence, but maybe you can
>> > =A0figure out how to break it up without losing its meaning?)
>>
>> Would the following match your intent?
>>
>> =A0 A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
>> =A0 does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
>> =A0 instead MUST make them available for client reclaim using
>> =A0 CLAIM_DELEGATE_PREV. =A0The server MAY NOT remove the delegations un=
til
>> =A0 either the client does a DELEGPURGE, or one lease period has
>> =A0 elapsed from the time the SETCLIENTID_CONFIRM was done.
>>
>> If so, let's call that (2M). =A0If you replace the last "MUST" by
>> "SHOULD" and the "MAY NOT" by "SHOULD NOT", call that (2S)
>>
>> > In summary, instead of requiring the server to hang onto them
>> > until "lease expiration", make it "at least one lease duration".
>> > That way, the server has a way out for clients that never do DELEGPURG=
E.
>>
>> Clearly the server needs some way out but I think we need to agree on wh=
at
>> it is. =A0I agree that (1M) is not OK here and I don't expect anyone to =
say
>> "(1M) or nothing", but there may be some people who feel that (2M) and (=
2S)
>> do not give the client sufficient protection.
>>
>> Here's another alternative that I think is worth considering:
>>
>> =A0 A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
>> =A0 does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
>> =A0 instead MUST make them available for client reclaim using
>> =A0 CLAIM_DELEGATE_PREV. =A0The server MAY NOT remove the delegations un=
til
>> =A0 either the client does a DELEGPURGE, or one lease period has
>> =A0 elapsed from the time the later of the SETCLIENTID_CONFIRM or the
>> =A0 last successful CLAIM_DELEGATE_PREV reclaim.
>>
>> Let's call that (3M) and (3S) the analogous text with "SHOULD".
>>
>> My preference order is (3M), (1S), (3S), (2M), (2S) and agree that (1M) =
is out.
>>
>> I'd particularly like to hear about Rick's and Trond's preferences for t=
his, and
>> also want to know what other opinions are out there. =A0I hope we can
>> close on this
>> and move beyond SLC to PCM ("Perfect Consensus, Maybe" :-).
>
> Maybe it's a little early in the morning, but I'm not sure I understand
> the need for 3M. What would cause the client to stop issuing the
> CLAIM_DELEGATE_PREV reclaims and fail to send the DELEGPURGE?
>
> I'm assuming that once the client boots, it will either
>
> =A0 =A0 1. immediately attempt to send CLAIM_DELEGATE_PREV reclaims befor=
e
> =A0 =A0 =A0 =A0sending the DELEGPURGE
> =A0 =A0 2. or it will immediately send the DELEGPURGE
> =A0 =A0 3. or it will never send either CLAIM_DELEGATE_PREV or DELEGPURGE
> =A0 =A0 =A0 =A0requests.
>
> 1S, 2M, 2S and 3M, 3S all appear to deal adequately with these three
> situations. The question is are there any other scenarios that we need
> to care about? The only other special cases that I can think of are
>
> =A0 =A0 I. The client starts to issue CLAIM_DELEGATE_PREV reclaims, when =
a
> =A0 =A0 =A0 =A0second client reboot situation occurs before the DELEGPURG=
E was
> =A0 =A0 =A0 =A0sent.
> =A0 =A0II. or the client starts to issue CLAIM_DELEGATE_PREV reclaims, wh=
en
> =A0 =A0 =A0 =A0a server reboot occurs (edge condition).
> =A0 III. or the client starts to issue CLAIM_DELEGATE_PREV reclaims when
> =A0 =A0 =A0 =A0the server suddenly recalls one or more of the delegations=
 that
> =A0 =A0 =A0 =A0have already been reclaimed.
>
> If we assume that delegation recalls trump CLAIM_DELEGATE_PREV reclaims,
> so that case (III) is valid, then 3M does appear to provide extra
> protection to ensure that the client doesn't lose the ability to perform
> further reclaims when it obeys the recall (it just needs to do another
> CLAIM_DELEGATE_PREV within 1 lease period of the last one).
>
> I believe that you have provided text elsewhere to deal with case (II)
> (namely the CLAIM_DELEG_PREV-is-courtesy-locks-applied-to-delegations
> text).
>
> As for case (I), I'm not sure that any of the formulations deal
> adequately with it. If the client lease expires before a DELEGPURGE was
> sent, then shouldn't the server be allowed to hold onto those
> delegations that the client didn't manage to reclaim? The current
> formulations appear to say that it MUST or SHOULD clear them out...
>
> Cheers
> =A0Trond
>
> --
> Trond Myklebust
> Linux NFS client maintainer
>
> NetApp
> Trond.Myklebust@netapp.com
> www.netapp.com
>

From rmacklem@uoguelph.ca  Tue Feb 21 07:45:56 2012
Return-Path: <rmacklem@uoguelph.ca>
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 99C9821F8834 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 07:45:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.655
X-Spam-Level: 
X-Spam-Status: No, score=-4.655 tagged_above=-999 required=5 tests=[AWL=-1.056, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DXFZZhy2RsWL for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 07:45:52 -0800 (PST)
Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by ietfa.amsl.com (Postfix) with ESMTP id 54D5E21F881C for <nfsv4@ietf.org>; Tue, 21 Feb 2012 07:45:52 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EANi7Q0+DaFvO/2dsb2JhbABDhReuDIFzAQEBBAEBASAmJQsbGAICDRkCKTAGE4YQgXmse4o+gS+KRwkDDgkNAQECFgEJAgmDRgEwEAEOAQcPBAaCHYEWBIhPjGmTC4E+
X-IronPort-AV: E=Sophos;i="4.73,458,1325480400"; d="scan'208";a="160365739"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 21 Feb 2012 10:45:33 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id CB174B3F37; Tue, 21 Feb 2012 10:45:33 -0500 (EST)
Date: Tue, 21 Feb 2012 10:45:33 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Message-ID: <1460251143.1676967.1329839133813.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <1329826908.12723.79.camel@lade.trondhjem.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: macklem@uoguelph.ca, nfsv4@ietf.org, David Noveck <davenoveck@gmail.com>
Subject: Re: [nfsv4] Even newer proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 15:45:56 -0000

Trond Myklebust wrote:
> On Mon, 2012-02-20 at 21:50 -0500, David Noveck wrote:
> > I'm, replying from my gmail because my hotel has free internet which
> > isn't free
> > if you want access to your vpn to work.
> >
> >
> > > > To allow for this type of client recovery, the server MAY allow
> > > > delegations to be retained after other sort of locks are
> > > > released.
> > > > This implies that requests from other clients that conflict with
> > > > these
> > > > delegations will need to wait. Because the normal recall process
> > > > may
> > > > require significant time for the client to flush changed state
> > > > to the
> > > > server, other clients need to be prepared for delays that occur
> > > > because
> > > > of a conflicting delegation. In order to give clients a chance
> > > > to get
> > > > through the reboot process during which leases will not be
> > > > renewed,
> > > > the server MAY extend the period for delegation recovery beyond
> > > > the
> > > > typical lease expiration period. For open delegations, such
> > > > delegations
> > > > that are not released are reclaimed using OPEN with a claim type
> > > > of
> > > > CLAIM_DELEGATE_PREV. (See Section 10.5 and Section 15.18 for
> > > > discussion
> > > > of open delegation and the details of OPEN respectively).
> > > >
> > > > A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if
> > > > it
> > > > does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM,
> > > > and
> > > > instead MUST, make them available until the client indicates
> > > > that
> > > > delegation recovery is complete, by doing a DELEGPURGE. The only
> > > > exception
> > > > to this requirement is when the client lease expires.
> > > >
> > > I think that the above is problematic for extant clients that
> > > never
> > > do a DELEGPURGE.
> >
> > Good point. I wasn't properly addressing the issue of old clients.
> > In
> > my defense, let me say that I was supposing that they would simply
> > not support
> > CLAIM_DELEGATE_PREV, but I think that doesn't fully address the
> > issue.
> >
> > > The result would be that, for such a client, the
> > > server would need to hold onto old delegations forever (assuming
> > > said client maintains its lease). (ie. the last words "lease
> > > expires"
> > > is too strong a restriction, I think?)
> >
> > It is certainly too strong when combined with "MUST". One possible
> > fix
> > for this issue is simply to switch the last "MUST" to "SHOULD".
> > Let's call
> > that variant (1S) and the original (1M).
> >
> > > I think a safer version would be something like:
> > > A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if
> > > it
> > > does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
> > > instead MUST make them available for at least one lease duration
> > > after the SETCLIENTID_CONFIRM is done, or until the client
> > > indicates
> > > that delegation recovery is complete, by doing a DELEGPURGE.
> > > (I know, this is a ridiculously long sentence, but maybe you can
> > >  figure out how to break it up without losing its meaning?)
> >
> > Would the following match your intent?
> >
> >   A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if
> >   it
> >   does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
> >   instead MUST make them available for client reclaim using
> >   CLAIM_DELEGATE_PREV. The server MAY NOT remove the delegations
> >   until
> >   either the client does a DELEGPURGE, or one lease period has
> >   elapsed from the time the SETCLIENTID_CONFIRM was done.
> >
> > If so, let's call that (2M). If you replace the last "MUST" by
> > "SHOULD" and the "MAY NOT" by "SHOULD NOT", call that (2S)
> >
> > > In summary, instead of requiring the server to hang onto them
> > > until "lease expiration", make it "at least one lease duration".
> > > That way, the server has a way out for clients that never do
> > > DELEGPURGE.
> >
> > Clearly the server needs some way out but I think we need to agree
> > on what
> > it is. I agree that (1M) is not OK here and I don't expect anyone to
> > say
> > "(1M) or nothing", but there may be some people who feel that (2M)
> > and (2S)
> > do not give the client sufficient protection.
> >
> > Here's another alternative that I think is worth considering:
> >
> >   A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if
> >   it
> >   does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
> >   instead MUST make them available for client reclaim using
> >   CLAIM_DELEGATE_PREV. The server MAY NOT remove the delegations
> >   until
> >   either the client does a DELEGPURGE, or one lease period has
> >   elapsed from the time the later of the SETCLIENTID_CONFIRM or the
> >   last successful CLAIM_DELEGATE_PREV reclaim.
> >
> > Let's call that (3M) and (3S) the analogous text with "SHOULD".
> >
> > My preference order is (3M), (1S), (3S), (2M), (2S) and agree that
> > (1M) is out.
> >
> > I'd particularly like to hear about Rick's and Trond's preferences
> > for this, and
> > also want to know what other opinions are out there. I hope we can
> > close on this
> > and move beyond SLC to PCM ("Perfect Consensus, Maybe" :-).
> 
> Maybe it's a little early in the morning, but I'm not sure I
> understand
> the need for 3M. What would cause the client to stop issuing the
> CLAIM_DELEGATE_PREV reclaims and fail to send the DELEGPURGE?
> 
> I'm assuming that once the client boots, it will either
> 
> 1. immediately attempt to send CLAIM_DELEGATE_PREV reclaims before
> sending the DELEGPURGE
> 2. or it will immediately send the DELEGPURGE
> 3. or it will never send either CLAIM_DELEGATE_PREV or DELEGPURGE
> requests.
> 
I thought 3M was intended to handle 1. above, but when the client has
so many delegations that it can't complete all the CLAIM_DELEGATE_PREV
within a lease duration. (Similar to a server extending grace if it
is still receiving reclaim ops at the end of a lease duration.)

I don't see this as a big issue. Maybe if a lot of clients rebooted
(think of someone accidentally powering down a rack of clients)
at the same time, but the server didn't reboot, you could get a flood
of CLAIM_DELEGATE_PREV?

The only other comment I had (I didn't realize it only went to David
until after I sent it) was that, for 1S, you might want some sort of
explanation why a server might choose to throw away the old delegations.
(Basically extant clients that do 3. above.)

I think any of the variants described are sufficient and I don't have
a strong preference of one over another. (In case it wasn't clear, my
concern was w.r.t. extant clients that do 3. above.)

rick
> 1S, 2M, 2S and 3M, 3S all appear to deal adequately with these three
> situations. The question is are there any other scenarios that we need
> to care about? The only other special cases that I can think of are
> 
> I. The client starts to issue CLAIM_DELEGATE_PREV reclaims, when a
> second client reboot situation occurs before the DELEGPURGE was
> sent.
> II. or the client starts to issue CLAIM_DELEGATE_PREV reclaims, when
> a server reboot occurs (edge condition).
> III. or the client starts to issue CLAIM_DELEGATE_PREV reclaims when
> the server suddenly recalls one or more of the delegations that
> have already been reclaimed.
> 
> If we assume that delegation recalls trump CLAIM_DELEGATE_PREV
> reclaims,
> so that case (III) is valid, then 3M does appear to provide extra
> protection to ensure that the client doesn't lose the ability to
> perform
> further reclaims when it obeys the recall (it just needs to do another
> CLAIM_DELEGATE_PREV within 1 lease period of the last one).
> 
> I believe that you have provided text elsewhere to deal with case (II)
> (namely the CLAIM_DELEG_PREV-is-courtesy-locks-applied-to-delegations
> text).
> 
> As for case (I), I'm not sure that any of the formulations deal
> adequately with it. If the client lease expires before a DELEGPURGE
> was
> sent, then shouldn't the server be allowed to hold onto those
> delegations that the client didn't manage to reclaim? The current
> formulations appear to say that it MUST or SHOULD clear them out...
> 
> Cheers
> Trond
> 
> --
> Trond Myklebust
> Linux NFS client maintainer
> 
> NetApp
> Trond.Myklebust@netapp.com
> www.netapp.com
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bhalevy@tonian.com  Tue Feb 21 07:59:22 2012
Return-Path: <bhalevy@tonian.com>
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 19AC721F8810 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 07:59:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level: 
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I6xZZkp0joXb for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 07:59:21 -0800 (PST)
Received: from mail-tul01m020-f172.google.com (mail-tul01m020-f172.google.com [209.85.214.172]) by ietfa.amsl.com (Postfix) with ESMTP id 83B9221F8474 for <nfsv4@ietf.org>; Tue, 21 Feb 2012 07:59:21 -0800 (PST)
Received: by obbwd15 with SMTP id wd15so10060852obb.31 for <nfsv4@ietf.org>; Tue, 21 Feb 2012 07:59:21 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.182.0.48 as permitted sender) client-ip=10.182.0.48; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.182.0.48 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.182.0.48]) by 10.182.0.48 with SMTP id 16mr16529286obb.23.1329839961186 (num_hops = 1); Tue, 21 Feb 2012 07:59:21 -0800 (PST)
Received: by 10.182.0.48 with SMTP id 16mr13963985obb.23.1329839961136; Tue, 21 Feb 2012 07:59:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.17.201 with HTTP; Tue, 21 Feb 2012 07:59:01 -0800 (PST)
X-Originating-IP: [208.51.138.10]
From: Benny Halevy <bhalevy@tonian.com>
Date: Tue, 21 Feb 2012 07:59:01 -0800
Message-ID: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com>
To: "nfsv4@ietf.org" <nfsv4@ietf.org>, "J. Bruce Fields" <bfields@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQk26fqlKLvpT0SX5lFzcQRaQRoPAfT6/dq5L4L1xbkhVH7cBxagoq2udU/qpsWdM/tFQDfY
Cc: Lev Solomonov <solo@tonian.com>
Subject: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 15:59:22 -0000

We've hit an issue with the linux 4.1 sever post linux 3.0 where the
server will keep returning
NFS4ERR_GRACE forever on OPEN until the client sends RECLAIM_COMPLETE
based essentially on section 18.51.3:

   Whenever a client establishes a new client ID and before it does the
   first non-reclaim operation that obtains a lock, it MUST send a
   RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
   locks to reclaim.  If non-reclaim locking operations are done before
   the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.

However, several client implementers never send RECLAIM_COMPLETE,
expecting the server
to return to normal operation mode after the grace period is over, a-la 4.0.

To support this notion (and frankly, this was my interpretation of the
spec until yesterday)
it seems that there are vague parts of the spec. that seem to indicate
that any state reclaim
issues are only strictly applicable to the grace period itself.

8.4.2.1.  State Reclaim
   The grace period may last until all clients that are known to
   possibly have had locks have done a global RECLAIM_COMPLETE
   operation, indicating that they have finished reclaiming the locks
   they held before the server restart.

   If the server can reliably determine that granting a non-reclaim
   request will not conflict with reclamation of locks by other clients,
   the NFS4ERR_GRACE error does not have to be returned even within the
   grace period, although NFS4ERR_GRACE must always be returned to
   clients attempting a non-reclaim lock request before doing their own
   global RECLAIM_COMPLETE.

so, after the grace period is done, the server can reliably determine that
granting a non-reclaim request will not conflict with reclamation of
locks by other clients
since no other client can now reclaim its locks. Therefore I see no reason for
the client to send RECLAIM_COMPLETE at this point, right?

On a related note, this condition refers to any non-reclaiming
"locking operations"
and looking at the spec it might be confusing to new readers of the
spec to determine
that OPEN falls in this category of locking operations, so this might
be worth clarifying
in the errata + 5661bis.

Benny

From rmacklem@uoguelph.ca  Tue Feb 21 15:54:58 2012
Return-Path: <rmacklem@uoguelph.ca>
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 A8A3821E8033 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 15:54:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.124
X-Spam-Level: 
X-Spam-Status: No, score=-6.124 tagged_above=-999 required=5 tests=[AWL=0.475,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RoA8lR2yfllt for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 15:54:54 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 7C4CC21F86FF for <nfsv4@ietf.org>; Tue, 21 Feb 2012 15:54:54 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAEguRE+DaFvO/2dsb2JhbABDhROuN4FzAQEBAwEBAQEgSwsFFg4KAgINGQIpMAYTiAAJpX6SLASBL4gxghYaFgEBAhYBCQIJEoM0AVcPCoIdgRYEiE+MaYk6iVGBNQEHAQ
X-IronPort-AV: E=Sophos;i="4.73,460,1325480400"; d="scan'208";a="157345237"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 21 Feb 2012 18:54:53 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 62355B3F09; Tue, 21 Feb 2012 18:54:53 -0500 (EST)
Date: Tue, 21 Feb 2012 18:54:53 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Benny Halevy <bhalevy@tonian.com>
Message-ID: <83737577.1711519.1329868493385.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: Lev Solomonov <solo@tonian.com>, "J. Bruce Fields" <bfields@redhat.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 23:54:58 -0000

Benny Halevy wrote:
> We've hit an issue with the linux 4.1 sever post linux 3.0 where the
> server will keep returning
> NFS4ERR_GRACE forever on OPEN until the client sends RECLAIM_COMPLETE
> based essentially on section 18.51.3:
> 
> Whenever a client establishes a new client ID and before it does the
> first non-reclaim operation that obtains a lock, it MUST send a
> RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
> locks to reclaim. If non-reclaim locking operations are done before
> the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
> 
> However, several client implementers never send RECLAIM_COMPLETE,
> expecting the server
> to return to normal operation mode after the grace period is over,
> a-la 4.0.
> 
> To support this notion (and frankly, this was my interpretation of the
> spec until yesterday)
> it seems that there are vague parts of the spec. that seem to indicate
> that any state reclaim
> issues are only strictly applicable to the grace period itself.
> 
> 8.4.2.1. State Reclaim
> The grace period may last until all clients that are known to
> possibly have had locks have done a global RECLAIM_COMPLETE
> operation, indicating that they have finished reclaiming the locks
> they held before the server restart.
> 
> If the server can reliably determine that granting a non-reclaim
> request will not conflict with reclamation of locks by other clients,
> the NFS4ERR_GRACE error does not have to be returned even within the
> grace period, although NFS4ERR_GRACE must always be returned to
> clients attempting a non-reclaim lock request before doing their own
> global RECLAIM_COMPLETE.
> 
> so, after the grace period is done, the server can reliably determine
> that
> granting a non-reclaim request will not conflict with reclamation of
> locks by other clients
> since no other client can now reclaim its locks. Therefore I see no
> reason for
> the client to send RECLAIM_COMPLETE at this point, right?
> 
Well, I believe the reason for RECLAIM_COMPLETE might be related to the
observation I had made during testing of NFSv4.0, where it was possible
for a lot of clients holding a lot of locks to not get them all reclaimed
before the "grace period of at least one lease duration" had elapsed.

RECLAIM_COMPLETE tells the server that it has done reclaims. Once the
server sees that from all clients, it can end grace safely instead of
using some arbitrary time limit.

And I hate to say it, but whether or not it's necessary, the words seem
clear on this, so "the horse has already left the barn" so to speak, imho.

Btw, I fixed the FreeBSD client for this recently (and the v4.1 client
hasn't been released yet). If the one Tom is testing this week suffers
from this, just email and I can pass a patched kernel along to him).

rick

> On a related note, this condition refers to any non-reclaiming
> "locking operations"
> and looking at the spec it might be confusing to new readers of the
> spec to determine
> that OPEN falls in this category of locking operations, so this might
> be worth clarifying
> in the errata + 5661bis.
> 
> Benny
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bfields@fieldses.org  Tue Feb 21 16:37:55 2012
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 3389E21F86F2 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 16:37:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.46
X-Spam-Level: 
X-Spam-Status: No, score=-2.46 tagged_above=-999 required=5 tests=[AWL=0.139,  BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZpcLnSTkq36E for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 16:37:54 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 4C86721F8645 for <nfsv4@ietf.org>; Tue, 21 Feb 2012 16:37:54 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from <bfields@fieldses.org>) id 1S00DL-0001SO-Ln; Tue, 21 Feb 2012 19:37:48 -0500
Date: Tue, 21 Feb 2012 19:37:47 -0500
To: Rick Macklem <rmacklem@uoguelph.ca>
Message-ID: <20120222003747.GA5440@fieldses.org>
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com> <83737577.1711519.1329868493385.JavaMail.root@erie.cs.uoguelph.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <83737577.1711519.1329868493385.JavaMail.root@erie.cs.uoguelph.ca>
User-Agent: Mutt/1.5.20 (2009-06-14)
From: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Lev Solomonov <solo@tonian.com>, "J. Bruce Fields" <bfields@redhat.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 00:37:55 -0000

On Tue, Feb 21, 2012 at 06:54:53PM -0500, Rick Macklem wrote:
> Well, I believe the reason for RECLAIM_COMPLETE might be related to the
> observation I had made during testing of NFSv4.0, where it was possible
> for a lot of clients holding a lot of locks to not get them all reclaimed
> before the "grace period of at least one lease duration" had elapsed.
> 
> RECLAIM_COMPLETE tells the server that it has done reclaims. Once the
> server sees that from all clients, it can end grace safely instead of
> using some arbitrary time limit.

There's that, and there's the obvious "end-the-grace-period-early"
optimisation, and then it's also necessary to avoid some edge
conditions.  (In 4.1 RECLAIM_COMPLETE tells the server that from now on
it can track the set of locks the client will reclaim on *next* reboot,
and is what a typical server would use as the point to record a
stable-storage record for that client.  A longer explanation is lost in
moderation somewhere.)

> And I hate to say it, but whether or not it's necessary, the words seem
> clear on this, so "the horse has already left the barn" so to speak, imho.

(Not sure which way you're saying it's left.)

--b.

> 
> Btw, I fixed the FreeBSD client for this recently (and the v4.1 client
> hasn't been released yet). If the one Tom is testing this week suffers
> from this, just email and I can pass a patched kernel along to him).
> 
> rick
> 
> > On a related note, this condition refers to any non-reclaiming
> > "locking operations"
> > and looking at the spec it might be confusing to new readers of the
> > spec to determine
> > that OPEN falls in this category of locking operations, so this might
> > be worth clarifying
> > in the errata + 5661bis.
> > 
> > Benny
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From rmacklem@uoguelph.ca  Tue Feb 21 21:06:08 2012
Return-Path: <rmacklem@uoguelph.ca>
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 A1E9C21E805B for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 21:06:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.638
X-Spam-Level: 
X-Spam-Status: No, score=-4.638 tagged_above=-999 required=5 tests=[AWL=-1.039, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nePazyLiYQ5K for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 21:06:04 -0800 (PST)
Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by ietfa.amsl.com (Postfix) with ESMTP id 7520C21E804F for <nfsv4@ietf.org>; Tue, 21 Feb 2012 21:06:04 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAFN3RE+DaFvO/2dsb2JhbABEhSyuPIFzAQEBBAEBASBLCxsYAgINGQIpMAYTiAmsVoo9BIEviDEJgwUTAQIECwMPDQIFEg0IAoROgQYaEoImgRYEiE+MaYk6iVGBNgg
X-IronPort-AV: E=Sophos;i="4.73,462,1325480400"; d="scan'208";a="160466079"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 22 Feb 2012 00:06:03 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 84F2AB3EB2; Wed, 22 Feb 2012 00:06:03 -0500 (EST)
Date: Wed, 22 Feb 2012 00:06:03 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: "J. Bruce Fields" <bfields@fieldses.org>
Message-ID: <26919255.1719866.1329887163528.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <20120222003747.GA5440@fieldses.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692)
Cc: Lev Solomonov <solo@tonian.com>, "J. Bruce Fields" <bfields@redhat.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 05:06:08 -0000

J. Bruce Fields wrote:
> On Tue, Feb 21, 2012 at 06:54:53PM -0500, Rick Macklem wrote:
> > Well, I believe the reason for RECLAIM_COMPLETE might be related to
> > the
> > observation I had made during testing of NFSv4.0, where it was
> > possible
> > for a lot of clients holding a lot of locks to not get them all
> > reclaimed
> > before the "grace period of at least one lease duration" had
> > elapsed.
> >
> > RECLAIM_COMPLETE tells the server that it has done reclaims. Once
> > the
> > server sees that from all clients, it can end grace safely instead
> > of
> > using some arbitrary time limit.
> 
> There's that, and there's the obvious "end-the-grace-period-early"
> optimisation, and then it's also necessary to avoid some edge
> conditions. (In 4.1 RECLAIM_COMPLETE tells the server that from now on
> it can track the set of locks the client will reclaim on *next*
> reboot,
> and is what a typical server would use as the point to record a
> stable-storage record for that client. A longer explanation is lost in
> moderation somewhere.)
> 
> > And I hate to say it, but whether or not it's necessary, the words
> > seem
> > clear on this, so "the horse has already left the barn" so to speak,
> > imho.
> 
> (Not sure which way you're saying it's left.)
> 
I should have just said that the "RFC seems clear on this" as in a
RECLAIM_COMPLETE must be done before non-reclaim ops.

rick
> --b.
> 
> >
> > Btw, I fixed the FreeBSD client for this recently (and the v4.1
> > client
> > hasn't been released yet). If the one Tom is testing this week
> > suffers
> > from this, just email and I can pass a patched kernel along to him).
> >
> > rick
> >
> > > On a related note, this condition refers to any non-reclaiming
> > > "locking operations"
> > > and looking at the spec it might be confusing to new readers of
> > > the
> > > spec to determine
> > > that OPEN falls in this category of locking operations, so this
> > > might
> > > be worth clarifying
> > > in the errata + 5661bis.
> > >
> > > Benny
> > > _______________________________________________
> > > nfsv4 mailing list
> > > nfsv4@ietf.org
> > > https://www.ietf.org/mailman/listinfo/nfsv4
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From peter.horvath77@gmail.com  Wed Feb 22 05:15:28 2012
Return-Path: <peter.horvath77@gmail.com>
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 209F821F8711 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 05:15:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level: 
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g0NcVYSXyf3j for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 05:15:27 -0800 (PST)
Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 6119D21F86FA for <nfsv4@ietf.org>; Wed, 22 Feb 2012 05:15:15 -0800 (PST)
Received: by bkuw12 with SMTP id w12so17587bku.31 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 05:15:14 -0800 (PST)
Received-SPF: pass (google.com: domain of peter.horvath77@gmail.com designates 10.112.103.8 as permitted sender) client-ip=10.112.103.8; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of peter.horvath77@gmail.com designates 10.112.103.8 as permitted sender) smtp.mail=peter.horvath77@gmail.com; dkim=pass header.i=peter.horvath77@gmail.com
Received: from mr.google.com ([10.112.103.8]) by 10.112.103.8 with SMTP id fs8mr11182869lbb.39.1329916514592 (num_hops = 1); Wed, 22 Feb 2012 05:15:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=YRMzgxg7O9cVEvjsp2xJBXX42CiILXRBfhh5fAIjpt8=; b=HvK/8RmMs1TPs+hJ9Jrg3CoWWrItt9WYWU60j1n6MIYH0YNtJN7W5a4bJTeg1KaPuP 7Hfq8kwwFTdxrHF2CvtdOsMGb4Z6FoFm9IIN/4RQ4qd4hx49WGqA0Vx4baRdASYoEh/q JiUKO5EkXlCxgwUu9t7Fy8JnWdfm/oD/dAMVs=
MIME-Version: 1.0
Received: by 10.112.103.8 with SMTP id fs8mr9316240lbb.39.1329916514433; Wed, 22 Feb 2012 05:15:14 -0800 (PST)
Sender: peter.horvath77@gmail.com
Received: by 10.152.22.34 with HTTP; Wed, 22 Feb 2012 05:15:14 -0800 (PST)
In-Reply-To: <CAO9xhubm9KF--Erwg1pqGY724ao7MbRx5Qz+Wefw=TOXCtDTvg@mail.gmail.com>
References: <CAO9xhubm9KF--Erwg1pqGY724ao7MbRx5Qz+Wefw=TOXCtDTvg@mail.gmail.com>
Date: Wed, 22 Feb 2012 13:15:14 +0000
X-Google-Sender-Auth: nheQDBquK-kCDyzm5OGmRx7vPbo
Message-ID: <CAO9xhuZpogK6oYWF_TGaomv299F=kjMihPJEJW-9unTVE3FQjA@mail.gmail.com>
From: Peter Horvath <peter.horvath77@googlemail.com>
To: nfsv4@ietf.org
Content-Type: text/plain; charset=ISO-8859-1
Subject: [nfsv4] NFSv4 client restriction
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 13:15:28 -0000

Hi,

We are using Ubuntu LTS 10.04 servers and clients.
NFS version is the following:
nfs-common                     1.2.0-4ubuntu4.2
nfs-kernel-server               1.2.0-4ubuntu4.2

My exports looks like this:

/srv 10.66.3.0/24(fsid=0,ro,no_subtree_check,sync)
/srv/www/project1 10.66.3.101(rw,no_root_squash,no_subtree_check,sync)
/srv/www/project2 10.66.3.102(rw,no_root_squash,no_subtree_check,sync)
/srv/www/project3 10.66.3.103(rw,no_root_squash,no_subtree_check,sync)

My problem is that in this case clients have only read-only access. If
i set the pseudofilesystem root to RW it is working but in that case
all the clients would be able to mount the root and access other
projects too.
How can i achieve the same results as it was in NFSv3 with this config.

/srv/www/project1 10.66.3.101(rw,no_root_squash,no_subtree_check,sync)
/srv/www/project2 10.66.3.102(rw,no_root_squash,no_subtree_check,sync)
/srv/www/project3 10.66.3.103(rw,no_root_squash,no_subtree_check,sync)

I wasn't able to find any solution on the net and forums so far.

All help would be appreciated.

Thank you

From bfields@redhat.com  Tue Feb 21 12:08:01 2012
Return-Path: <bfields@redhat.com>
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 8EE1021E8071 for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 12:08:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -112.599
X-Spam-Level: 
X-Spam-Status: No, score=-112.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, GB_I_LETTER=-2, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fnP8ZFHSApnO for <nfsv4@ietfa.amsl.com>; Tue, 21 Feb 2012 12:08:00 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by ietfa.amsl.com (Postfix) with ESMTP id 5E81021E806E for <nfsv4@ietf.org>; Tue, 21 Feb 2012 12:08:00 -0800 (PST)
Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1LK7eKY027306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 21 Feb 2012 15:07:59 -0500
Received: from pad.fieldses.org (vpn-10-227.rdu.redhat.com [10.11.10.227]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q1LIKVHK013358; Tue, 21 Feb 2012 13:20:31 -0500
Received: by pad.fieldses.org (Postfix, from userid 2815) id 552802238A3; Tue, 21 Feb 2012 10:20:30 -0800 (PST)
Date: Tue, 21 Feb 2012 10:20:30 -0800
From: "J. Bruce Fields" <bfields@redhat.com>
To: Benny Halevy <bhalevy@tonian.com>
Message-ID: <20120221182029.GC26431@pad.fieldses.org>
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11
X-Mailman-Approved-At: Wed, 22 Feb 2012 08:27:27 -0800
Cc: Lev Solomonov <solo@tonian.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 21 Feb 2012 21:27:30 -0000

On Tue, Feb 21, 2012 at 07:59:01AM -0800, Benny Halevy wrote:
> We've hit an issue with the linux 4.1 sever post linux 3.0 where the
> server will keep returning
> NFS4ERR_GRACE forever on OPEN until the client sends RECLAIM_COMPLETE
> based essentially on section 18.51.3:
> 
>    Whenever a client establishes a new client ID and before it does the
>    first non-reclaim operation that obtains a lock, it MUST send a
>    RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
>    locks to reclaim.  If non-reclaim locking operations are done before
>    the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
> 
> However, several client implementers never send RECLAIM_COMPLETE,
> expecting the server
> to return to normal operation mode after the grace period is over, a-la 4.0.

That's an extremely clear violation of the above MUST.

Also, note that the RECLAIM_COMPLETE isn't just an optimization to end
the grace period early, it's also what the server is supposed to use to
determine when a client can be trusted to reclaim the right locks after
the next reboot:

	"When the RECLAIM_COMPLETE is received, the server and client
	are again in agreement regarding reclaimable locks and both
	booleans in persistent storage can be reset, to be set again
	only when there is a subsequent event that causes lock reclaim
	operations to be questionable."

So there's another interoperability problem here, that wouldn't be
noticed till after a reboot: a server following the example
reboot-recovery implementation here would therefore deny reclaims to any
client that doesn't send RECLAIM_COMPLETE.

Making this requirement fuzzier would leave us open to some odd edge
conditions.

E.g. suppose a server that instead considers the client responsible for
its locks on first locking operation (as in 4.0), and suppose a client
that follows the letter of the 4.1 spec:

Then in the following scenario:

	- client A acquires lock x and y
	- server reboots
	- client A reclaims lock x
	- network connection between A and server goes down
	- grace period ends
	- client B acquires lock conflicting with y
	- server goes down before client A's lease expires
	- network connection between A and server comes up

At this point:
	- The server has recorded that client A is allowed to reclaim
	  state, so will allow it to reclaim any locks it wishes.
	- Client A sees it is allowed to reclaim locks.  Since it
	  assumes the server would not normally allow this unless it had
	  reached RECLAIM_COMPLETE, it therefore is permitted to assume
	  that the server knows somehow that it could not have granted
	  conflicting locks.  So the client concludes that it can safely
	  reclaim both x and y.

So client A attempts to reclaim y, and the server permits it.

There are may be ways to avoid situations such as the above in the face
of 4.1 clients that ignore the spec mandate, but given the clear MUST in
the spec, the burden of showing the result is correct should really be
on anyone that wants to change that requirement....

--b.

> 8.4.2.1.  State Reclaim
>    The grace period may last until all clients that are known to
>    possibly have had locks have done a global RECLAIM_COMPLETE
>    operation, indicating that they have finished reclaiming the locks
>    they held before the server restart.
> 
>    If the server can reliably determine that granting a non-reclaim
>    request will not conflict with reclamation of locks by other clients,
>    the NFS4ERR_GRACE error does not have to be returned even within the
>    grace period, although NFS4ERR_GRACE must always be returned to
>    clients attempting a non-reclaim lock request before doing their own
>    global RECLAIM_COMPLETE.
> 
> so, after the grace period is done, the server can reliably determine that
> granting a non-reclaim request will not conflict with reclamation of
> locks by other clients
> since no other client can now reclaim its locks. Therefore I see no reason for
> the client to send RECLAIM_COMPLETE at this point, right?
> 
> On a related note, this condition refers to any non-reclaiming
> "locking operations"
> and looking at the spec it might be confusing to new readers of the
> spec to determine
> that OPEN falls in this category of locking operations, so this might
> be worth clarifying
> in the errata + 5661bis.
> 
> Benny

From bfields@fieldses.org  Wed Feb 22 10:30:39 2012
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 0129021F85FD for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 10:30:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.472
X-Spam-Level: 
X-Spam-Status: No, score=-2.472 tagged_above=-999 required=5 tests=[AWL=0.127,  BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ROXkyAWsqVeE for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 10:30:34 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 47EFF21F85BE for <nfsv4@ietf.org>; Wed, 22 Feb 2012 10:30:28 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from <bfields@fieldses.org>) id 1S0GxP-0004Lm-5t; Wed, 22 Feb 2012 13:30:27 -0500
Date: Wed, 22 Feb 2012 13:30:27 -0500
To: Peter Horvath <peter.horvath77@googlemail.com>
Message-ID: <20120222183027.GB12708@fieldses.org>
References: <CAO9xhubm9KF--Erwg1pqGY724ao7MbRx5Qz+Wefw=TOXCtDTvg@mail.gmail.com> <CAO9xhuZpogK6oYWF_TGaomv299F=kjMihPJEJW-9unTVE3FQjA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAO9xhuZpogK6oYWF_TGaomv299F=kjMihPJEJW-9unTVE3FQjA@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
From: "J. Bruce Fields" <bfields@fieldses.org>
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFSv4 client restriction
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 18:30:39 -0000

Try linux-nfs@vger.kernel.org for linux-specific troubleshooting.

--b.

On Wed, Feb 22, 2012 at 01:15:14PM +0000, Peter Horvath wrote:
> Hi,
> 
> We are using Ubuntu LTS 10.04 servers and clients.
> NFS version is the following:
> nfs-common                     1.2.0-4ubuntu4.2
> nfs-kernel-server               1.2.0-4ubuntu4.2
> 
> My exports looks like this:
> 
> /srv 10.66.3.0/24(fsid=0,ro,no_subtree_check,sync)
> /srv/www/project1 10.66.3.101(rw,no_root_squash,no_subtree_check,sync)
> /srv/www/project2 10.66.3.102(rw,no_root_squash,no_subtree_check,sync)
> /srv/www/project3 10.66.3.103(rw,no_root_squash,no_subtree_check,sync)
> 
> My problem is that in this case clients have only read-only access. If
> i set the pseudofilesystem root to RW it is working but in that case
> all the clients would be able to mount the root and access other
> projects too.
> How can i achieve the same results as it was in NFSv3 with this config.
> 
> /srv/www/project1 10.66.3.101(rw,no_root_squash,no_subtree_check,sync)
> /srv/www/project2 10.66.3.102(rw,no_root_squash,no_subtree_check,sync)
> /srv/www/project3 10.66.3.103(rw,no_root_squash,no_subtree_check,sync)
> 
> I wasn't able to find any solution on the net and forums so far.
> 
> All help would be appreciated.
> 
> Thank you
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bhalevy@tonian.com  Wed Feb 22 10:52:10 2012
Return-Path: <bhalevy@tonian.com>
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 F2CFB21E8010 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 10:52:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AN9Qa2oCvq1O for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 10:52:07 -0800 (PST)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id 4B5DE21E8011 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 10:52:05 -0800 (PST)
Received: by ghbg16 with SMTP id g16so261821ghb.31 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 10:52:05 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.174.106 as permitted sender) client-ip=10.236.174.106; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.174.106 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.174.106]) by 10.236.174.106 with SMTP id w70mr16904860yhl.68.1329936725009 (num_hops = 1); Wed, 22 Feb 2012 10:52:05 -0800 (PST)
Received: by 10.236.174.106 with SMTP id w70mr13646324yhl.68.1329936724917; Wed, 22 Feb 2012 10:52:04 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id k15sm64768258yhf.11.2012.02.22.10.52.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 10:52:04 -0800 (PST)
Message-ID: <4F453951.90508@tonian.com>
Date: Wed, 22 Feb 2012 10:52:01 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Rick Macklem <rmacklem@uoguelph.ca>
References: <26919255.1719866.1329887163528.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <26919255.1719866.1329887163528.JavaMail.root@erie.cs.uoguelph.ca>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQmC0H8iiL0hX6a1LDFCuVDSP27MxMSBNnN3Ubrhk1PVWgWOfLGS2m/QMF4LaRe/+NR7srh8
Cc: "J. Bruce Fields" <bfields@fieldses.org>, Lev Solomonov <solo@tonian.com>, "J. Bruce Fields" <bfields@redhat.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 18:52:10 -0000

On 2012-02-21 21:06, Rick Macklem wrote:
> J. Bruce Fields wrote:
>> On Tue, Feb 21, 2012 at 06:54:53PM -0500, Rick Macklem wrote:
>>> Well, I believe the reason for RECLAIM_COMPLETE might be related to
>>> the
>>> observation I had made during testing of NFSv4.0, where it was
>>> possible
>>> for a lot of clients holding a lot of locks to not get them all
>>> reclaimed
>>> before the "grace period of at least one lease duration" had
>>> elapsed.
>>>
>>> RECLAIM_COMPLETE tells the server that it has done reclaims. Once
>>> the
>>> server sees that from all clients, it can end grace safely instead
>>> of
>>> using some arbitrary time limit.
>>
>> There's that, and there's the obvious "end-the-grace-period-early"
>> optimisation, and then it's also necessary to avoid some edge
>> conditions. (In 4.1 RECLAIM_COMPLETE tells the server that from now on
>> it can track the set of locks the client will reclaim on *next*
>> reboot,
>> and is what a typical server would use as the point to record a
>> stable-storage record for that client. A longer explanation is lost in
>> moderation somewhere.)
>>
>>> And I hate to say it, but whether or not it's necessary, the words
>>> seem
>>> clear on this, so "the horse has already left the barn" so to speak,
>>> imho.
>>
>> (Not sure which way you're saying it's left.)
>>
> I should have just said that the "RFC seems clear on this" as in a
> RECLAIM_COMPLETE must be done before non-reclaim ops.

Since quite a few folks didn't understand the spec this way I believe
it warrants a clarification.

Benny

> 
> rick
>> --b.
>>
>>>
>>> Btw, I fixed the FreeBSD client for this recently (and the v4.1
>>> client
>>> hasn't been released yet). If the one Tom is testing this week
>>> suffers
>>> from this, just email and I can pass a patched kernel along to him).
>>>
>>> rick
>>>
>>>> On a related note, this condition refers to any non-reclaiming
>>>> "locking operations"
>>>> and looking at the spec it might be confusing to new readers of
>>>> the
>>>> spec to determine
>>>> that OPEN falls in this category of locking operations, so this
>>>> might
>>>> be worth clarifying
>>>> in the errata + 5661bis.
>>>>
>>>> Benny
>>>> _______________________________________________
>>>> nfsv4 mailing list
>>>> nfsv4@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/nfsv4
>>> _______________________________________________
>>> nfsv4 mailing list
>>> nfsv4@ietf.org
>>> https://www.ietf.org/mailman/listinfo/nfsv4
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bhalevy@tonian.com  Wed Feb 22 12:02:28 2012
Return-Path: <bhalevy@tonian.com>
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 AEAEB21E8046 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 12:02:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yn+K3eudnaYF for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 12:02:28 -0800 (PST)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id E716C21E803D for <nfsv4@ietf.org>; Wed, 22 Feb 2012 12:02:27 -0800 (PST)
Received: by ghbg16 with SMTP id g16so307668ghb.31 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 12:02:27 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.182.36 as permitted sender) client-ip=10.236.182.36; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.182.36 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.182.36]) by 10.236.182.36 with SMTP id n24mr45658680yhm.111.1329940947597 (num_hops = 1); Wed, 22 Feb 2012 12:02:27 -0800 (PST)
Received: by 10.236.182.36 with SMTP id n24mr35735013yhm.111.1329940947471; Wed, 22 Feb 2012 12:02:27 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id g7sm65232743yhm.5.2012.02.22.12.02.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 12:02:26 -0800 (PST)
Message-ID: <4F4549CF.7030801@tonian.com>
Date: Wed, 22 Feb 2012 12:02:23 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Tom Haynes <tdh@excfb.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQk0BdqAgU2xwIuGPoDYXrEV4mdmuv+LRMd+hEZXB2caMhQR1nTC7QR8D3J/hchZ9ziQhsaj
Cc: nfsv4 list <nfsv4@ietf.org>
Subject: [nfsv4] layout_types typo in rfc5661
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 20:02:28 -0000

Tom, it looks like there are a couple typos in rfc5661.
the fattr4_fs_layout_types and fattr4_layout_types attributes, as
called in rfc5662 are referred to as "fs_layout_type" and "layout_type"
in sections 5.7, 5.12.1, and 5.12.5, respectively.
Since they refer to a list of layout types the attr name better denote a plural.

Benny

From david.noveck@emc.com  Wed Feb 22 12:48:23 2012
Return-Path: <david.noveck@emc.com>
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 758E621E8014 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 12:48:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.765
X-Spam-Level: 
X-Spam-Status: No, score=-9.765 tagged_above=-999 required=5 tests=[AWL=0.834,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cRR4LNiieMhx for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 12:48:21 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 2F94D21E800F for <nfsv4@ietf.org>; Wed, 22 Feb 2012 12:48:20 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1MKmB5K000963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <nfsv4@ietf.org>; Wed, 22 Feb 2012 15:48:19 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.130]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor) for <nfsv4@ietf.org>; Wed, 22 Feb 2012 15:48:00 -0500
Received: from mxhub31.corp.emc.com (mxhub31.corp.emc.com [128.222.70.171]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1MKlxQU002335 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 15:48:00 -0500
Received: from mx31a.corp.emc.com ([169.254.1.133]) by mxhub31.corp.emc.com ([128.222.70.171]) with mapi; Wed, 22 Feb 2012 15:47:59 -0500
From: <david.noveck@emc.com>
To: <nfsv4@ietf.org>
Date: Wed, 22 Feb 2012 15:47:58 -0500
Thread-Topic: Newest (and maybe even final) proposed text changes re "client-persistent delegations"
Thread-Index: AczxpI/Pbt+6fRKmSZyMB3eOVMQFlw==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6B3027E9D@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Subject: [nfsv4] Newest (and maybe even final) proposed text changes re "client-persistent delegations"
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 20:48:23 -0000

***(INTRO)**************************************************************
************************************************************************

This is version 4 of a set of changes to bis-16, to deal with issues
related to client-persistent delegations (new name for clarity) and
also to clarify stuff that I ran into making the original changes.

Thanks to everybody who offered comments and corrections regarding
previous versions.

Changes from version 3 are very limited in scope.  See (DIFFS) for
details

In my view, we have reached Seems-like-Consensus and I hope this
is the final version.  Anybody that disagrees should make his
views known (with any required deltas specified) soon.


***(TOC)****************************************************************
************************************************************************

   INTRO   -- Above
   TOC     -- This list of stuff in here
   DIFFS   -- Discussion of changes from version 3
   FINAL?  -- current proposal for changes to deal with persistent
              delegations plus all the stuff that I had to fix/correct/
              clean up to address in connection with those
   9.6.3   -- Discussion about correcting current (bis-16) organization
              of 9.6.3.

***(DIFFS)**************************************************************
************************************************************************

The paragraph beginning "A Server MAY" has been replaced.  The text is
alternative (3M) from the discussion I had with Rick and Trond.  There
is an additional paragraph (plus 4 bulleted items) to provide some
clarification.

That's all.

***(FINAL?)************************************************************
************************************************************************

=3D=3D=3D> In section 9.1.3.4, in the third set of bulleted items, replace
=3D=3D=3D> the fourth bulleted item therein by:

  o  If the stateid represents revoked state or state lost as a result
     of lease expiration, then return NFS4ERR_EXPIRED,
     NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED, as appropriate.

=3D=3D=3D> replace the last paragraph of section 9.1.10, by:

   Requiring open confirmation on reclaim-type opens is avoidable
   because of the nature of the environments in which such opens are
   done.  For CLAIM_PREVIOUS opens, this is immediately after server
   reboot, so there should be no time for open-owners to be created,
   found to be unused, and recycled.  For CLAIM_DELEGATE_PREV opens, we
   are dealing with either a client reboot situation or a network partition
   resulting in deletion of lease state (and returning NFS4ERR_EXPIRED).
   A server which supports delegation can be sure that no open-owners
   for that client have been recycled since client initialization or
   deletion of lease state and thus can ensure that confirmation will
   not be required.

=3D=3D=3D> replace the first paragraph of the second bulleted item in 9.5
     with the following:

    o Any operation made with a valid clientid (DELEGPURGE, RENEW,
      OPEN, LOCK) or a valid stateid (CLOSE, DELEGRETURN, LOCK, LOCKU,
      OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE, READ, SETATTR, or WRITE).
      In the latter case, the stateid must not be one of the
      special stateids consisting of all bits 0 or all bits 1.

=3D=3D=3D> replace the second sentence of the third paragraph of section
     9.6.2 by:

   During the grace period, clients recover locks and the associated
   state by reclaim-type locking requests (i.e., LOCK requests with
   reclaim set to true and OPEN operations with the claim types of
   CLAIM_PREVIOUS and CLAIM_DELEGATE_PREV).

=3D=3D=3D> replace the second sentence of section 9.6.3 by the following:

   If this occurs, the server may cancel the lease and free all
   locks held for the client.

=3D=3D=3D> Replace the first two paragraphs of section 9.6.3.1 by the
=3D=3D=3D> following:

   As a courtesy to the client or as an optimization, the server may
   continue to hold locks, including delegations, on behalf of a client
   for which recent communication has extended beyond the lease period,
   delaying the cancellation of the lease.  If the server receives a lock
   or I/O request that conflicts with one of these courtesy locks or if it
   runs out of resources, the server MAY cause lease cancellation to occur =
at
   that time and henceforth return NFS4ERR_EXPIRED when any of the stateids
   associated with the freed locks is used. If lease cancellation has not
   occurred and the server receives a lock or I/O request that conflicts wi=
th
   one of the courtesy locks, the requirements are as follows:

   o in the case of a courtesy lock which is not a delegation, it MUST free
     the courtesy lock and grant the new request.

   o In the case of lock or IO request which conflicts with a delegation
     which is being held as courtesy lock, the server MAY delay resolution
     of request but MUST NOT reject the request and MUST free the delegatio=
n
     and grant the new request eventually.

   o In the case of a requests for a delegation which conflicts with a
     delegation which is being held as courtesy lock, the server MAY
     grant the new request or not as it chooses, but if it grants the
     conflicting request, the delegation haled as courtesy lock MUST be
     freed.

   If the server does not reboot or cancel the lease before the network
   partition is healed, when the original client tries to access a courtesy
   lock which was freed, the server SHOULD send back a NFS4ERR_BAD_STATEID
   to the client.  If the client tries to access a courtesy lock which
   was not freed, then the server SHOULD mark all of the courtesy locks as
   implicitly being renewed.

=3D=3D=3D> Following that material, and appearing after what is now the sec=
ond
=3D=3D=3D> paragraph of 9.6.3.1, add the following new section,
=3D=3D=3D=3D> (ORG9.6.3)

9.6.3.2 Lease cancellation

   As a result of lease expiration, leases may be cancelled, either
   immediately upon expiration or subsequently, depending on the occurrence
   of a conflicting lock or extension of the period of partition beyond
   what the server will tolerate.

   When a lease is cancelled, all locking state associated with it is
   freed and use of any the associated stateids will result in
   NFS4ERR_EXPIRED being returned.  Similarly, use of the associated client=
id
   will result in NFS4ERR_EXPIRED being returned.

   The client should recover from this situation by using SETCLIENTID
   followed by SETCLIENTID_CONFIRM, in order to establish a new clientid.
   Once a lock is obtained using this clientid, a lease will be established=
.

=3D=3D=3D> Update the following items in section 9.6.3.2 as follows and mov=
e the
=3D=3D=3D> section to follow the new 9.6.3.2, making this section 9.6.3.3

   NFS4ERR_EXPIRED:

      All locks have been freed as a result of a lease cancellation
      which occurred during the partition.  The client should use a
      SETCLIENTID to recover.

   NFS4ERR_ADMIN_REVOKED:

      The current lock has been revoked before, during, or after
      the partition.  The client SHOULD handle this error
      as it normally would.

   NFS4ERR_BAD_STATEID:

      The current lock has been revoked/released during the partition and t=
he
      server did not reboot.  Other locks MAY still be renewed.  The
      client need not do a SETCLIENTID and instead SHOULD probe
      via a RENEW call.

=3D=3D=3D=3D> Following the transported 9.6.3.2 (now 9.6.3.3), start the fo=
llowing
=3D=3D=3D=3D> new section, adjusting section numbers as indicated below in
=3D=3D=3D=3D> (ORG 9.6.3)

9.6.3.4 Edge conditions

=3D=3D=3D> After what had been the fourth non-bulleted paragraph of section=
 9.6.3.1
=3D=3D=3D> and would now be the second non-bulleted paragraph of 9.6.3.4,
=3D=3D=3D> add the following paragraph.

    The above are directed to CLAIM_PREVIOUS reclaims and not to
    CLAIM_DELEGATE_PREV reclaims, which generally do not involve
    a server reboot.  However, when a server persistently stores
    delegation information to support CLAIM_DELEGATE_PREV across
    a period in which both client and server are down at the same
    time, similar strictures apply.

=3D=3D=3D> Replace section 10.2.1 by the following

 There are three situations that delegation recovery must deal with:

   o  Client reboot or restart

   o  Server reboot or restart

   o  Network partition (full or callback-only)

   In the event the client reboots or restarts, the confirmation of
   a SETCLIENTID done with an nfs_client_id4 with a new verifier4 value
   will result in the release of byte-range locks and share reservations.
   Delegations, however, may be treated a bit differently.

   There will be situations in which delegations will need to be
   reestablished after a client reboots or restarts.  The reason for
   this is the client may have file data stored locally and this data
   was associated with the previously held delegations.  The client will
   need to reestablish the appropriate file state on the server.

   To allow for this type of client recovery, the server MAY allow
   delegations to be retained after other sort of locks are released.
   This implies that requests from other clients that conflict with these
   delegations will need to wait.  Because the normal recall process may
   require significant time for the client to flush changed state to the
   server, other clients need to be prepared for delays that occur because
   of a conflicting delegation.  In order to give clients a chance to get
   through the reboot process during which leases will not be renewed,
   the server MAY extend the period for delegation recovery beyond the
   typical lease expiration period.  For open delegations, such delegations
   that are not released are reclaimed using OPEN with a claim type of
   CLAIM_DELEGATE_PREV.  (See Section 10.5 and Section 15.18 for discussion
   of open delegation and the details of OPEN respectively).

   A server MAY support a claim type of CLAIM_DELEGATE_PREV, but if it
   does, it MUST NOT remove delegations upon SETCLIENTID_CONFIRM and
   instead MUST make them available for client reclaim using
   CLAIM_DELEGATE_PREV.  The server MAY NOT remove the delegations until
   either the client does a DELEGPURGE, or one lease period has
   elapsed from the time the later of the SETCLIENTID_CONFIRM or the
   last successful CLAIM_DELEGATE_PREV reclaim.

   Note that the requirement stated above is not meant to imply that
   when the client is no longer obliged, as required above, to retain
   delegation information, that it should necessarily dispose of it.
   Let's look at some specific cases:

   o when the period is terminated by the occurrence of DELEGPURGE,
     deletion of unreclaimed delegations is appropriate and desirable.

   o when the period is terminated by a lease period elapsing without
     a successful CLAIM_DELEGATE_PREV reclaim, and that situation
     appears to be the result of a network partition (i.e. lease
     expiration has occurred), a server's lease expiration approach,
     possibly including the use of courtesy locks would normally
     provide for the retention of unreclaimed delegations.  Even in
     the event that lease cancellation occurs, such delegation should
     be reclaimed using CLAIM_DELEGATE_PREV as part of network partition
     recovery.

   o When the period of non-communicating is followed by a client reboot,
     unreclaimed delegations, should also be reclaimable by use of
     CLAIM_DELEGATE_PREV as part of client reboot recovery.

   o When the period is terminated by a lease period elapsing without
     a successful CLAIM_DELEGATE_PREV reclaim, and lease renewal
     is occurring, the server may well conclude that unreclaimed
     delegations have been abandoned, and consider the situation as
     one in which an implied DELEGPURGE should be assumed.

   A server that supports a claim type of CLAIM_DELEGATE_PREV MUST support
   the DELEGPURGE operation, and similarly a server that supports
   DELEGPURGE MUST support CLAIM_DELEGATE_PREV.  A server which does
   not support CLAIM_DELEGATE_PREV MUST return NFS4ERR_NOTSUPP if the
   client attempts to use that feature or performs a DELEGPURGE operation.

   Support for a claim type of CLAIM_DELEGATE_PREV, is often referred to
   as providing for "client-persistent delegations" in that they allow
   use of client persistent storage on the client to store data written
   by the client, even across a client restart.  It should be noted that,
   with the optional exception noted below, this feature requires persisten=
t
   storage to be used on the client and does not add to persistent storage
   requirements on the server.

   One good way to think about client-persistent delegations is that for
   the most part, they function like "courtesy locks", with a special
   semantic adjustments to allow them to be retained across a client restar=
t,
   which cause all other sorts of locks to be freed.  Such locks are genera=
lly
   not retained across a server restart.  The one exception is the
   case of simultaneous failure of the client and server and is discussed
   below.

   When the server indicates support of CLAIM_DELEGATE_PREV (implicitly)
   by returning NFS_OK to DELEGPURGE, a client with a write delegation,
   can use write-back caching for data to be written to the server, deferri=
ng
   the write-back, until such time as the delegation is recalled, possibly
   after intervening client restarts.  Similarly, when the server indicates
   support of CLAIM_DELEGATE_PREV, a client with a read delegation and
   an open-for-write subordinate to that delegation, may be sure of the
   integrity of its persistently cached copy of the file after a client
   restart without specific verification of the change attribute.

   When the server reboots or restarts, delegations are reclaimed (using
   the OPEN operation with CLAIM_PREVIOUS) in a similar fashion to byte-
   range locks and share reservations.  However, there is a slight
   semantic difference.  In the normal case, if the server decides that a
   delegation should not be granted, it performs the requested action
   (e.g., OPEN) without granting any delegation.  For reclaim, the
   server grants the delegation but a special designation is applied so
   that the client treats the delegation as having been granted but
   recalled by the server.  Because of this, the client has the duty to
   write all modified state to the server and then return the
   delegation.  This process of handling delegation reclaim reconciles
   three principles of the NFSv4 protocol:

   o  Upon reclaim, a client reporting resources assigned to it by an
      earlier server instance must be granted those resources.

   o  The server has unquestionable authority to determine whether
      delegations are to be granted and, once granted, whether they are
      to be continued.

   o  The use of callbacks is not to be depended upon until the client
      has proven its ability to receive them.

   When a client has more than a single open associated with a
   delegation, state for those additional opens can be established using
   OPEN operations of type CLAIM_DELEGATE_CUR.  When these are used to
   establish opens associated with reclaimed delegations, the server
   MUST allow them when made within the grace period.

   Situations in which there us a series of client and server restarts wher=
e
   there is no restart of both at the same time, are dealt with via a
   combination of CLAIM_DELEGATE_PREV and CLAIM_PREVIOUS reclaim cycles.
   Persistent storage is needed only on the client.  For each server
   failure, a CLAIM_PREVIOUS reclaim cycle is done, while for each client
   restart, a CLAIM_DELEGATE_PREV reclaim cycle is done.

   To deal with the possibility of simultaneous failure of client and
   server (e.g. situations like power outages, etc.), the server MAY
   persistently store delegation information so that it can respond to
   a CLAIM_DELEGATE_PREV reclaim request which it receives from a
   restarting client.   This is the one case in which persistent
   delegation state can be retained across a server restart.  A server
   is not required to store this information, but if it does do so, it
   should do so for write delegations and for read delegations, during
   the pendency of which (across multiple client and/or server
   instances), some open-for-write was done as part of delegation.  When
   the space to persistently record such information is limited, the
   server should recall delegations in this class in preference to
   keeping them active without persistent storage recording.

   When a network partition occurs, delegations are subject to freeing
   by the server when the lease renewal period expires.  This is similar
   to the behavior for locks and share reservations, and, as for locks
   and share reservations it may be modified by support for "courtesy
   locks" in which locks are not freed in the absence of a conflicting
   lock request.  Whereas, for locks and share reservations, freeing of
   locks will occur immediately upon the appearance of a conflicting
   request, for delegations, the server may institute period during which
   conflicting requests are held off.  Eventually the occurrence of a
   conflicting request from another client will cause revocation of the
   delegation.

   A loss of the callback path (e.g., by later network configuration
   change) will have a similar effect in that it can also result in
   revocation of a delegation  A recall request will fail and revocation
   of the delegation will result.

   A client normally finds out about revocation of a delegation when it
   uses a stateid associated with a delegation and receives one of the
   errors NFS4ERR_EXPIRED, NFS4ERR_BAD_STATEID, or NFS4ERR_ADMIN_REVOKED
   (NFS4ERR_EXPIRED indicates that all lock state associated with the
   client has been lost).  It also may find out about delegation revocation
   after a client reboot when it attempts to reclaim a delegation and
   receives NFS4ERR_EXPIRED.  Note that in the case of a revoked
   OPEN_DELEGATE_WRITE delegation, there are issues because data may
   have been modified by the client whose delegation is revoked and
   separately by other clients.  See Section 10.5.1 for a discussion of
   such issues.  Note also that when delegations are revoked,
   information about the revoked delegation will be written by the
   server to stable storage (as described in Section 9.6).  This is done
   to deal with the case in which a server reboots after revoking a
   delegation but before the client holding the revoked delegation is
   notified about the revocation.
   Note that when there is a loss of a delegation, due to a network
   partition in which all locks associated with the lease are lost,
   the client will also receive the error NFS4ERR_EXPIRED.  This case
   can be distinguished from other situations in which delegations
   are revoked by seeing that the associated clientid becomes invalid
   so that NFS4ERR_STALE_CLIENTID is returned when it is used.

   When NFS4ERR_EXPIRED Is returned, the server MAY retain information
   about the delegations held by the client, deleting those that are
   invalidated by a conflicting request.  Retaining such information
   will allow the client to recover all non-invalidated delegations
   using the claim type CLAIM_DELEGATE_PREV, once the
   SETCLIENTID_CONFIRM is done to recover.  Attempted recovery of
   a delegation that the client has no record of, typically because they
   were invalidated by conflicting requests, will get the error
   NFS4ERR_BAD_RECLAIM.  Once a reclaim is attempted for all delegations
   that the client held, it SHOULD do a DELEGPURGE to allow any remaining
   server delegation information to be freed.

=3D=3D=3D> replace section 13.1.5.1 (NFS4ERR_ADMIN_REVOKED) by:

   A stateid designates locking state of any type that has been revoked
   due to administrative interaction, possibly while the lease is valid,
   or because a delegation was revoked because of failure to return it,
   while the lease was valid.

=3D=3D=3D> replace section 13.1.5.2 (NFS4ERR_BAD_STATEID) by:

   A stateid generated by the current server instance was used which
   either:

      o does not designate any locking state (either current or superseded)
        for a current (state-owner, file) pair.

      o designates locking state that was freed after lease expiration but
        without any lease cancelation, as may happen in the handling of
        "courtesy locks".

=3D=3D=3D> replace section 13.1.5.3 (NFS4ERR_EXPIRED) by:

   A stateid or clientid designates locking state of any type that
   has been revoked or released due to cancellation of the client's
   lease, either immediately upon lease expiration, or following a later
   request for a conflicting lock.

=3D=3D=3D> Note the paragraph with the hanging "CLAIM_DELEGATE_PREV:" in
=3D=3D=3D> section 15.18.5.

=3D=3D=3D> In that paragraph, replace "; used after the client reboots:" wi=
th
=3D=3D=3D> the following:

   This claim type is for use after a SETCLIENTID_CONFIRM and before
   the corresponding DELEGPURGE in two situations: after a client reboot
   and after a lease expiration that resulted in loss of all lock
   state.

=3D=3D=3D> after that paragraph, add the following material with indenting =
that
     matches the non-hanging portion of the noted paragraph.

   The following errors apply to use of the CLAIM_DELEGATE_PREV claim
   type:

   o NFS4ERR_NOTSUPP is returned if the server does not support this
     claim type.

   o NFS4ERR_INVAL is returned if the reclaim is done at an inappropriate
     time, e.g. after DELEGPURGE has been done.

   o NFS4ERR_BAD_RECLAIM is returned if the other error conditions do not
     apply and the server has no record of the delegation whose reclaim
     is being attempted.

=3D=3D=3D> Replace the last two paragraphs of 15.7.4 by the following:

   This operation in provided to support clients that record delegation
   information on stable storage on the client.  In this case,
   DELEGPURGE should be issued immediately after doing delegation
   recovery (using CLAIM_DELEGATE_PREV) on all delegations known to
   the client.  Doing so will notify the server that no additional
   delegations for the client will be recovered allowing it to free
   resources, and avoid delaying other clients who make requests that
   conflict with the unrecovered delegations.  All client SHOULD use
   DELEGPURGE as part of recovery once it is known that no further
   CLAIM_DELEGATE_PREV recovery will be done.  This includes clients
   that do not record delegation information on stable storage, who would
   then do a DELEGPURGE immediately after SETCLIENTID_CONFIRM.

   The set of delegations known to the server and the
   client may be different.  The reasons for this include:

   o a client may fail after making a request which resulted in delegation
     but before it received the results and committed them to the client's
     stable storage.
   o a client may fail after deleting its indication that a delegation exis=
ts
     but before the delegation return is fully processed by the server.
   o in the case in which the server and the client restart, the server
     may have limited persistent recording of delegation to a subset of
     those in existence.
   o a client may have only persistently recorded information about a subse=
t of
     delegations.

   The server MAY support DELEGPURGE, but its support or non-support should
   match that of CLAIM_DELEGATE_PREV:
   o A server may support both DELEGPURGE and CLAIM_DELEGATE_PREV
   o A server may support neither DELEGPURGE nor CLAIM_DELEGATE_PREV

   This fact allows a client starting up to determine if the server is prep=
ared
   to support persistent storage of delegation information and thus whether=
 it
   may use write-back caching to local persistent storage, relying on
   CLAIM_DELEGATE_PREV recovery to allow such changed data to be flushed
   safely to the server in the event of client restart.

***(ORG9.6.3)***********************************************************
************************************************************************

=3D=3D=3D> The section organization of 9.6.3 is messed up.  See below.
=3D=3D=3D> The big issue is that all of the edge condition stuff is part of
=3D=3D=3D> 'courtesy locks' when  it shouldn't be

=3D=3D=3D> Here's what exists now.

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.1.1.  First Server Edge Condition
9.6.3.1.2.  Second Server Edge Condition
9.6.3.1.3.  Handling Server Edge Conditions
9.6.3.1.4.  Client Edge Condition
9.6.3.1.5.  Client's Handling of NFS4ERR_NO_GRACE
9.6.3.2.  Client's Reaction to a Freed Lock


=3D=3D=3D> Here's a suggested replacement;

9.6.3.  Network Partitions and Recovery
9.6.3.1.  Courtesy Locks
9.6.3.2   Lease Cancellation (NEW)
9.6.3.3.  Client's Reaction to a Freed Lock
9.6.3.4.  Edge Conditions (NEW)
9.6.3.4.1.  First Server Edge Condition
9.6.3.4.2.  Second Server Edge Condition
9.6.3.4.3.  Handling Server Edge Conditions
9.6.3.4.4.  Client Edge Condition
9.6.3.5.  Client's Handling of NFS4ERR_NO_GRACE








From ttalpey@microsoft.com  Wed Feb 22 12:56:39 2012
Return-Path: <ttalpey@microsoft.com>
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 DB39521E8014 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 12:56:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.199
X-Spam-Level: 
X-Spam-Status: No, score=-104.199 tagged_above=-999 required=5 tests=[AWL=-0.599, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u1phW2H0zTHY for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 12:56:38 -0800 (PST)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe006.messaging.microsoft.com [216.32.181.186]) by ietfa.amsl.com (Postfix) with ESMTP id 8652021E8034 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 12:56:33 -0800 (PST)
Received: from mail223-ch1-R.bigfish.com (10.43.68.250) by CH1EHSOBE004.bigfish.com (10.43.70.54) with Microsoft SMTP Server id 14.1.225.23; Wed, 22 Feb 2012 20:56:27 +0000
Received: from mail223-ch1 (localhost [127.0.0.1])	by mail223-ch1-R.bigfish.com (Postfix) with ESMTP id D0F6F460062; Wed, 22 Feb 2012 20:56:26 +0000 (UTC)
X-SpamScore: -9
X-BigFish: VS-9(zz1432N98dKzz1202hzzz2fh2a8h668h839h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC103.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail223-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=ttalpey@microsoft.com; helo=TK5EX14HUBC103.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail223-ch1 (localhost.localdomain [127.0.0.1]) by mail223-ch1 (MessageSwitch) id 132994418534954_20008; Wed, 22 Feb 2012 20:56:25 +0000 (UTC)
Received: from CH1EHSMHS001.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.225])	by mail223-ch1.bigfish.com (Postfix) with ESMTP id EF5A744004F;	Wed, 22 Feb 2012 20:56:24 +0000 (UTC)
Received: from TK5EX14HUBC103.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS001.bigfish.com (10.43.70.1) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 22 Feb 2012 20:56:23 +0000
Received: from TK5EX14MBXC111.redmond.corp.microsoft.com ([169.254.2.216]) by TK5EX14HUBC103.redmond.corp.microsoft.com ([157.54.86.9]) with mapi id 14.02.0247.005; Wed, 22 Feb 2012 20:56:29 +0000
From: Tom Talpey <ttalpey@microsoft.com>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>
Thread-Topic: 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQ
Date: Wed, 22 Feb 2012 20:56:28 +0000
Message-ID: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com>
References: <CB571B8F.A5C6%tom.haynes@netapp.com>
In-Reply-To: <CB571B8F.A5C6%tom.haynes@netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.33]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 20:56:39 -0000

Tom Haynes wrote:
>
>We'd like to add=A0NFS4ERR_FBIG as an expected error code for RENAME.
>
>At first blush, this appears to not make sense, I.e., the file size is not=
 changing.
>
>Here is our use case:
>
>EFBIG could be returned if the target directory is about to exceed its
>maximum capacity. =A0Got any really, really big directories on there?
>
>Anyone have any objections to adding this error value?

What do you expect clients to do with this new error? I don't believe a Pos=
ix client can map it to anything useful from a rename(2) call, and I certai=
nly don't see any recovery. Can you elaborate on the justification?

Also, who is "we"?


From ttalpey@microsoft.com  Wed Feb 22 13:10:32 2012
Return-Path: <ttalpey@microsoft.com>
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 025ED21F861A for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 13:10:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.099
X-Spam-Level: 
X-Spam-Status: No, score=-104.099 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f2UCJF+ejF4k for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 13:10:29 -0800 (PST)
Received: from VA3EHSOBE005.bigfish.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) by ietfa.amsl.com (Postfix) with ESMTP id 0B42B21F857F for <nfsv4@ietf.org>; Wed, 22 Feb 2012 13:10:28 -0800 (PST)
Received: from mail76-va3-R.bigfish.com (10.7.14.253) by VA3EHSOBE005.bigfish.com (10.7.40.25) with Microsoft SMTP Server id 14.1.225.23; Wed, 22 Feb 2012 21:10:22 +0000
Received: from mail76-va3 (localhost [127.0.0.1])	by mail76-va3-R.bigfish.com (Postfix) with ESMTP id 6D6883600C8; Wed, 22 Feb 2012 21:10:22 +0000 (UTC)
X-SpamScore: -9
X-BigFish: VS-9(zz1432N98dKzz1202hzzz2fh2a8h668h839h944h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC106.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail76-va3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=ttalpey@microsoft.com; helo=TK5EX14HUBC106.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail76-va3 (localhost.localdomain [127.0.0.1]) by mail76-va3 (MessageSwitch) id 1329945021563882_21942; Wed, 22 Feb 2012 21:10:21 +0000 (UTC)
Received: from VA3EHSMHS015.bigfish.com (unknown [10.7.14.244])	by mail76-va3.bigfish.com (Postfix) with ESMTP id 799C5200051; Wed, 22 Feb 2012 21:10:21 +0000 (UTC)
Received: from TK5EX14HUBC106.redmond.corp.microsoft.com (131.107.125.8) by VA3EHSMHS015.bigfish.com (10.7.99.25) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 22 Feb 2012 21:10:18 +0000
Received: from TK5EX14MBXC111.redmond.corp.microsoft.com ([169.254.2.216]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.02.0247.005; Wed, 22 Feb 2012 21:10:10 +0000
From: Tom Talpey <ttalpey@microsoft.com>
To: "J. Bruce Fields" <bfields@redhat.com>, Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
Thread-Index: AQHM8LHjVjzT+XKsaE+JzzMR3jqqb5ZHqZgAgAG/+hA=
Date: Wed, 22 Feb 2012 21:10:10 +0000
Message-ID: <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com>
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com> <20120221182029.GC26431@pad.fieldses.org>
In-Reply-To: <20120221182029.GC26431@pad.fieldses.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.33]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: Lev Solomonov <solo@tonian.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 21:10:32 -0000

Bruce Fields wrote:
>On Tue, Feb 21, 2012 at 07:59:01AM -0800, Benny Halevy wrote:
>> We've hit an issue with the linux 4.1 sever post linux 3.0 where the=20
>> server will keep returning NFS4ERR_GRACE forever on OPEN until the=20
>> client sends RECLAIM_COMPLETE based essentially on section 18.51.3:
>>=20
>>    Whenever a client establishes a new client ID and before it does the
>>    first non-reclaim operation that obtains a lock, it MUST send a
>>    RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
>>    locks to reclaim.  If non-reclaim locking operations are done before
>>    the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
>>=20
>> However, several client implementers never send RECLAIM_COMPLETE,=20
>> expecting the server to return to normal operation mode after the=20
>> grace period is over, a-la 4.0.
>
>That's an extremely clear violation of the above MUST.
>
>Also, note that the RECLAIM_COMPLETE isn't just an optimization to end the=
 grace period early,
>it's also what the server is supposed to use to determine when a client ca=
n be trusted to reclaim
>the right locks after the next reboot:

Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when its grac=
e timer expires? After all, not all clients might be able to reconnect, rec=
laim, and signal RECLAIM_COMPLETE. If the server doesn't run a grace timer,=
 it might never recover.

In other words, there appear to be two incorrect behaviors here, right? The=
 quoted paragraph should perhaps read:

--   Whenever a client establishes a new client ID and before it does the
--   first non-reclaim operation that obtains a lock, it MUST send a
--   RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
--   locks to reclaim.  If non-reclaim locking operations are done before
--   the RECLAIM_COMPLETE *and before the grace timer expires*,
--   an NFS4ERR_GRACE error will be returned.



From bfields@redhat.com  Wed Feb 22 13:52:45 2012
Return-Path: <bfields@redhat.com>
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 C7B2721E8049 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 13:52:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -111.065
X-Spam-Level: 
X-Spam-Status: No, score=-111.065 tagged_above=-999 required=5 tests=[AWL=-0.466, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mpJp7zDMJwE8 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 13:52:44 -0800 (PST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by ietfa.amsl.com (Postfix) with ESMTP id DE5C421E8045 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 13:52:43 -0800 (PST)
Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1MLqh58006637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 Feb 2012 16:52:43 -0500
Received: from pad.fieldses.org (vpn-8-90.rdu.redhat.com [10.11.8.90]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q1MLqgQb010752; Wed, 22 Feb 2012 16:52:43 -0500
Received: by pad.fieldses.org (Postfix, from userid 2815) id CA5712238E6; Wed, 22 Feb 2012 13:52:41 -0800 (PST)
Date: Wed, 22 Feb 2012 13:52:41 -0800
From: "J. Bruce Fields" <bfields@redhat.com>
To: Tom Talpey <ttalpey@microsoft.com>
Message-ID: <20120222215240.GA22243@pad.fieldses.org>
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com> <20120221182029.GC26431@pad.fieldses.org> <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
X-Mailman-Approved-At: Wed, 22 Feb 2012 13:54:43 -0800
Cc: Lev Solomonov <solo@tonian.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 21:52:45 -0000

On Wed, Feb 22, 2012 at 09:10:10PM +0000, Tom Talpey wrote:
> Bruce Fields wrote:
> >On Tue, Feb 21, 2012 at 07:59:01AM -0800, Benny Halevy wrote:
> >> We've hit an issue with the linux 4.1 sever post linux 3.0 where the 
> >> server will keep returning NFS4ERR_GRACE forever on OPEN until the 
> >> client sends RECLAIM_COMPLETE based essentially on section 18.51.3:
> >> 
> >>    Whenever a client establishes a new client ID and before it does the
> >>    first non-reclaim operation that obtains a lock, it MUST send a
> >>    RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
> >>    locks to reclaim.  If non-reclaim locking operations are done before
> >>    the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
> >> 
> >> However, several client implementers never send RECLAIM_COMPLETE, 
> >> expecting the server to return to normal operation mode after the 
> >> grace period is over, a-la 4.0.
> >
> >That's an extremely clear violation of the above MUST.
> >
> >Also, note that the RECLAIM_COMPLETE isn't just an optimization to end the grace period early,
> >it's also what the server is supposed to use to determine when a client can be trusted to reclaim
> >the right locks after the next reboot:
> 
> Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when its grace timer expires? After all, not all clients might be able to reconnect, reclaim, and signal RECLAIM_COMPLETE. If the server doesn't run a grace timer, it might never recover.

Sure, but such clients still need to send RECLAIM_COMPLETE when their
done recovering (whether the recovery was complete or not) to ensure
client and server agree on the set of the locks they hold at that point.

> In other words, there appear to be two incorrect behaviors here, right? The quoted paragraph should perhaps read:
> 
> --   Whenever a client establishes a new client ID and before it does the
> --   first non-reclaim operation that obtains a lock, it MUST send a
> --   RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
> --   locks to reclaim.  If non-reclaim locking operations are done before
> --   the RECLAIM_COMPLETE *and before the grace timer expires*,
> --   an NFS4ERR_GRACE error will be returned.

A client that sends a non-reclaim operation before RECLAIM_COMPLETE is
not complying with the protocol.

Such non-compliance has subtle consequences that won't be noticed until
you test some odd reboot-recovery cases.

I tend to think it will save some pain in the long run to be harsher up
front.

--b.

From bfields@fieldses.org  Wed Feb 22 14:03:04 2012
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 AB17E21E8052 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 14:03:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.481
X-Spam-Level: 
X-Spam-Status: No, score=-2.481 tagged_above=-999 required=5 tests=[AWL=0.118,  BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RbW3xoTpL-Cf for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 14:03:03 -0800 (PST)
Received: from fieldses.org (fieldses.org [174.143.236.118]) by ietfa.amsl.com (Postfix) with ESMTP id 5C0D421E803C for <nfsv4@ietf.org>; Wed, 22 Feb 2012 14:02:58 -0800 (PST)
Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from <bfields@fieldses.org>) id 1S0KH2-0004pE-G5; Wed, 22 Feb 2012 17:02:56 -0500
Date: Wed, 22 Feb 2012 17:02:56 -0500
To: "J. Bruce Fields" <bfields@fieldses.org>
Message-ID: <20120222220256.GA18303@fieldses.org>
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com> <20120221182029.GC26431@pad.fieldses.org> <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com> <20120222215240.GA22243@pad.fieldses.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120222215240.GA22243@pad.fieldses.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
From: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Lev Solomonov <solo@tonian.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 22:03:04 -0000

Gah, the list is sending each mail from my redhat address to moderation.
Resending from my home address:

On Wed, Feb 22, 2012 at 09:10:10PM +0000, Tom Talpey wrote:
> Bruce Fields wrote:
> >On Tue, Feb 21, 2012 at 07:59:01AM -0800, Benny Halevy wrote:
> >> We've hit an issue with the linux 4.1 sever post linux 3.0 where the 
> >> server will keep returning NFS4ERR_GRACE forever on OPEN until the 
> >> client sends RECLAIM_COMPLETE based essentially on section 18.51.3:
> >> 
> >>    Whenever a client establishes a new client ID and before it does the
> >>    first non-reclaim operation that obtains a lock, it MUST send a
> >>    RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
> >>    locks to reclaim.  If non-reclaim locking operations are done before
> >>    the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
> >> 
> >> However, several client implementers never send RECLAIM_COMPLETE, 
> >> expecting the server to return to normal operation mode after the 
> >> grace period is over, a-la 4.0.
> >
> >That's an extremely clear violation of the above MUST.
> >
> >Also, note that the RECLAIM_COMPLETE isn't just an optimization to end the grace period early,
> >it's also what the server is supposed to use to determine when a client can be trusted to reclaim
> >the right locks after the next reboot:
> 
> Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when its grace timer expires? After all, not all clients might be able to reconnect, reclaim, and signal RECLAIM_COMPLETE. If the server doesn't run a grace timer, it might never recover.

Sure, but clients arriving after that timer expires still must send
RECLAIM_COMPLETE when they're done recovering (even they have nothing to
reclaim, or if the reclaims failed) to ensure client and server agree on
the set of the locks they hold at that point.

(Note: the language does *not* say ERR_GRACE is returned to all clients
until all clients have sent RECLAIM_COMPLETE--the error is returned only
to the client that's trying to send a non-reclaim without a preceding
RECLAIM_COMPLETE.)

> In other words, there appear to be two incorrect behaviors here, right? The quoted paragraph should perhaps read:
> 
> --   Whenever a client establishes a new client ID and before it does the
> --   first non-reclaim operation that obtains a lock, it MUST send a
> --   RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
> --   locks to reclaim.  If non-reclaim locking operations are done before
> --   the RECLAIM_COMPLETE *and before the grace timer expires*,
> --   an NFS4ERR_GRACE error will be returned.

A client that sends a non-reclaim operation before RECLAIM_COMPLETE is
not complying with the protocol.  In such cases we have the choice to
recommend an error, or recommend ignoring the problem, or leave the
server's response unspecified.

In this case the non-compliance has subtle consequences that may not be
noticed until you test some odd reboot-recovery cases.

So in this case I'm inclined to think it will save some pain in the long
run to continue recommending that we be harsher up front.

--b.

From david.noveck@emc.com  Wed Feb 22 14:29:22 2012
Return-Path: <david.noveck@emc.com>
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 721AB21F85AA for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 14:29:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.796
X-Spam-Level: 
X-Spam-Status: No, score=-9.796 tagged_above=-999 required=5 tests=[AWL=0.803,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u9YAkYw0dW6V for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 14:29:21 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id A7BB021F85AC for <nfsv4@ietf.org>; Wed, 22 Feb 2012 14:29:21 -0800 (PST)
Received: from hop04-l1d11-si04.isus.emc.com (HOP04-L1D11-SI04.isus.emc.com [10.254.111.24]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1MMTKYU018167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Feb 2012 17:29:20 -0500
Received: from mailhub.lss.emc.com (mailhubhoprd03.lss.emc.com [10.254.221.145]) by hop04-l1d11-si04.isus.emc.com (RSA Interceptor); Wed, 22 Feb 2012 17:29:13 -0500
Received: from mxhub09.corp.emc.com (mxhub09.corp.emc.com [10.254.92.104]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1MMTDOc022676; Wed, 22 Feb 2012 17:29:13 -0500
Received: from mx31a.corp.emc.com ([169.254.1.133]) by mxhub09.corp.emc.com ([10.254.92.104]) with mapi; Wed, 22 Feb 2012 17:29:13 -0500
From: <david.noveck@emc.com>
To: <ttalpey@microsoft.com>, <bfields@redhat.com>, <bhalevy@tonian.com>
Date: Wed, 22 Feb 2012 17:29:11 -0500
Thread-Topic: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
Thread-Index: AQHM8LHjVjzT+XKsaE+JzzMR3jqqb5ZHqZgAgAG/+hCAABauIA==
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6B3027EF8@MX31A.corp.emc.com>
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com> <20120221182029.GC26431@pad.fieldses.org> <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com>
In-Reply-To: <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: solo@tonian.com, nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 22 Feb 2012 22:29:22 -0000

> Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when=20
> its grace timer expires?=20


Yes and no. :-)

Let me clarify that.

I don't know what the spec says exactly but I think we should think of this=
 in=20
two parts.

1) there is a client-specific obligation to return GRACE to clients that ha=
ven't
   done a RECLAIM_COMPLETE.

2) there is a global, non-client-specific obligation to rerun grace to ever=
yone until
   some end of grace period, which, as Tom points out, cannot be unbounded =
in time.

> After all, not all clients might be able to reconnect, reclaim, and signa=
l RECLAIM_COMPLETE.=20
> If the server doesn't run a grace timer, it might never recover.

So Tom and I agree on the non-client-specific obligation and the spec shoul=
d follow suit,
if it doesn't already.

But what about the client-specific obligation?  If there isn't a separte ob=
ligation,
with its own termination point then we are facing a choice between the poss=
ibility of
an unbounded global grace period, and giving up on RECLAIM_COMPLETE. =20

Does the spec actively deny the possibility of two separte grace obligation=
s or is it
just confusing?

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of T=
om Talpey
Sent: Wednesday, February 22, 2012 4:10 PM
To: J. Bruce Fields; Benny Halevy
Cc: Lev Solomonov; nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?

Bruce Fields wrote:
>On Tue, Feb 21, 2012 at 07:59:01AM -0800, Benny Halevy wrote:
>> We've hit an issue with the linux 4.1 sever post linux 3.0 where the=20
>> server will keep returning NFS4ERR_GRACE forever on OPEN until the=20
>> client sends RECLAIM_COMPLETE based essentially on section 18.51.3:
>>=20
>>    Whenever a client establishes a new client ID and before it does the
>>    first non-reclaim operation that obtains a lock, it MUST send a
>>    RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
>>    locks to reclaim.  If non-reclaim locking operations are done before
>>    the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
>>=20
>> However, several client implementers never send RECLAIM_COMPLETE,=20
>> expecting the server to return to normal operation mode after the=20
>> grace period is over, a-la 4.0.
>
>That's an extremely clear violation of the above MUST.
>
>Also, note that the RECLAIM_COMPLETE isn't just an optimization to end the=
 grace period early,
>it's also what the server is supposed to use to determine when a client ca=
n be trusted to reclaim
>the right locks after the next reboot:

Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when its grac=
e timer expires? After all, not all clients might be able to reconnect, rec=
laim, and signal RECLAIM_COMPLETE. If the server doesn't run a grace timer,=
 it might never recover.

In other words, there appear to be two incorrect behaviors here, right? The=
 quoted paragraph should perhaps read:

--   Whenever a client establishes a new client ID and before it does the
--   first non-reclaim operation that obtains a lock, it MUST send a
--   RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
--   locks to reclaim.  If non-reclaim locking operations are done before
--   the RECLAIM_COMPLETE *and before the grace timer expires*,
--   an NFS4ERR_GRACE error will be returned.


_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


From bhalevy@tonian.com  Wed Feb 22 18:40:53 2012
Return-Path: <bhalevy@tonian.com>
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 8F10311E8075 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 18:40:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4cHklSD2DUdm for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 18:40:52 -0800 (PST)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id AE20E11E8072 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 18:40:52 -0800 (PST)
Received: by yenm3 with SMTP id m3so446428yen.31 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 18:40:52 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.80.39 as permitted sender) client-ip=10.236.80.39; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.80.39 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.80.39]) by 10.236.80.39 with SMTP id j27mr47610307yhe.92.1329964852357 (num_hops = 1); Wed, 22 Feb 2012 18:40:52 -0800 (PST)
Received: by 10.236.80.39 with SMTP id j27mr37359524yhe.92.1329964852249; Wed, 22 Feb 2012 18:40:52 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id k40sm40404902ann.15.2012.02.22.18.40.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 18:40:51 -0800 (PST)
Message-ID: <4F45A730.2020507@tonian.com>
Date: Wed, 22 Feb 2012 18:40:48 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: david.noveck@emc.com
References: <CAEMWVhuam4VtOTEv8rRk+nnBPySK7_U-VvXioRPYOfhu5EHMUw@mail.gmail.com> <20120221182029.GC26431@pad.fieldses.org> <F83812DF4B59B9499C1BC978336D917461D27D22@TK5EX14MBXC111.redmond.corp.microsoft.com> <5DEA8DB993B81040A21CF3CB332489F6B3027EF8@MX31A.corp.emc.com>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6B3027EF8@MX31A.corp.emc.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQlrcPqVec7995wM/Jgc8YAtnd7XZlIldK0ES5S5EuNnidCzEq4dvWo4ggsNodseqisEwW1H
Cc: solo@tonian.com, bfields@redhat.com, nfsv4@ietf.org
Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 02:40:53 -0000

On 2012-02-22 14:29, david.noveck@emc.com wrote:
>> Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when 
>> its grace timer expires? 
> 
> 
> Yes and no. :-)
> 
> Let me clarify that.
> 
> I don't know what the spec says exactly but I think we should think of this in 
> two parts.
> 
> 1) there is a client-specific obligation to return GRACE to clients that haven't
>    done a RECLAIM_COMPLETE.
> 
> 2) there is a global, non-client-specific obligation to rerun grace to everyone until
>    some end of grace period, which, as Tom points out, cannot be unbounded in time.
> 
>> After all, not all clients might be able to reconnect, reclaim, and signal RECLAIM_COMPLETE. 
>> If the server doesn't run a grace timer, it might never recover.
> 
> So Tom and I agree on the non-client-specific obligation and the spec should follow suit,
> if it doesn't already.
> 
> But what about the client-specific obligation?  If there isn't a separte obligation,
> with its own termination point then we are facing a choice between the possibility of
> an unbounded global grace period, and giving up on RECLAIM_COMPLETE.  
> 
> Does the spec actively deny the possibility of two separte grace obligations or is it
> just confusing?
> 

To me, it just seems confusing.

Benny

> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of Tom Talpey
> Sent: Wednesday, February 22, 2012 4:10 PM
> To: J. Bruce Fields; Benny Halevy
> Cc: Lev Solomonov; nfsv4@ietf.org
> Subject: Re: [nfsv4] RECLAIM_COMPLETE mandatory for 4.1 client?
> 
> Bruce Fields wrote:
>> On Tue, Feb 21, 2012 at 07:59:01AM -0800, Benny Halevy wrote:
>>> We've hit an issue with the linux 4.1 sever post linux 3.0 where the 
>>> server will keep returning NFS4ERR_GRACE forever on OPEN until the 
>>> client sends RECLAIM_COMPLETE based essentially on section 18.51.3:
>>>
>>>    Whenever a client establishes a new client ID and before it does the
>>>    first non-reclaim operation that obtains a lock, it MUST send a
>>>    RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
>>>    locks to reclaim.  If non-reclaim locking operations are done before
>>>    the RECLAIM_COMPLETE, an NFS4ERR_GRACE error will be returned.
>>>
>>> However, several client implementers never send RECLAIM_COMPLETE, 
>>> expecting the server to return to normal operation mode after the 
>>> grace period is over, a-la 4.0.
>>
>> That's an extremely clear violation of the above MUST.
>>
>> Also, note that the RECLAIM_COMPLETE isn't just an optimization to end the grace period early,
>> it's also what the server is supposed to use to determine when a client can be trusted to reclaim
>> the right locks after the next reboot:
> 
> Agreed, but shouldn't the server stop returning NFS4ERR_GRACE when its grace timer expires? After all, not all clients might be able to reconnect, reclaim, and signal RECLAIM_COMPLETE. If the server doesn't run a grace timer, it might never recover.
> 
> In other words, there appear to be two incorrect behaviors here, right? The quoted paragraph should perhaps read:
> 
> --   Whenever a client establishes a new client ID and before it does the
> --   first non-reclaim operation that obtains a lock, it MUST send a
> --   RECLAIM_COMPLETE with rca_one_fs set to FALSE, even if there are no
> --   locks to reclaim.  If non-reclaim locking operations are done before
> --   the RECLAIM_COMPLETE *and before the grace timer expires*,
> --   an NFS4ERR_GRACE error will be returned.
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Wed Feb 22 21:15:56 2012
Return-Path: <eshel@almaden.ibm.com>
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 8C62621F85D4 for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 21:15:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4OZ0cJ6MWxBk for <nfsv4@ietfa.amsl.com>; Wed, 22 Feb 2012 21:15:56 -0800 (PST)
Received: from e8.ny.us.ibm.com (e8.ny.us.ibm.com [32.97.182.138]) by ietfa.amsl.com (Postfix) with ESMTP id B266A21F85D3 for <nfsv4@ietf.org>; Wed, 22 Feb 2012 21:15:55 -0800 (PST)
Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 23 Feb 2012 00:15:54 -0500
Received: from d01dlp02.pok.ibm.com (9.56.224.85) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 23 Feb 2012 00:15:09 -0500
Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 729046E8049 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 00:15:08 -0500 (EST)
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1N5F8IY3432644 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 00:15:08 -0500
Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1N5F8wK008747 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 00:15:08 -0500
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1N5F7Fc008712 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 00:15:08 -0500
To: NFSv4 <nfsv4@ietf.org>
MIME-Version: 1.0
X-KeepSent: 25F40DE8:20DF6BD5-882579AD:001BA4AF; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Wed, 22 Feb 2012 21:15:05 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/23/2012 00:15:07, Serialize complete at 02/23/2012 00:15:07
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022305-9360-0000-0000-000003E241CA
Subject: [nfsv4] layout return
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 05:15:56 -0000

It looks like some developers understood the return_on_close to mean that 
if the server sets it on the client doesn't have to return the layout and 
the close is an indication that it is not holding the layout anymore. I 
think this is a good idea but from the following section of the spec it 
sounds that if the client doesn't return the layout the server still needs 
to recall the layout. Is there a reason why the server can't just assume 
that close implies that the client gave up the layout?
Marc.

18.43.3

The logr_return_on_close result field is a directive to return the
  layout before closing the file.  When the metadata server sets this
  return value to TRUE, it MUST be prepared to recall the layout in the
  case in which the client fails to return the layout before close.
  For the metadata server that knows a layout must be returned before a
  close of the file, this return value can be used to communicate the
  desired behavior to the client and thus remove one extra step from
  the client's and metadata server's interaction.


From Pranoop.Erasani@netapp.com  Thu Feb 23 00:50:58 2012
Return-Path: <Pranoop.Erasani@netapp.com>
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 2DA9621F85CF for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 00:50:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l44H7kwZvypp for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 00:50:57 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id BA2AE21F85C6 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 00:50:51 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,469,1325491200"; d="scan'208";a="627902237"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 00:50:48 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1N8omga015035 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 00:50:48 -0800 (PST)
Received: from SACEXCMBX03-PRD.hq.netapp.com ([169.254.5.175]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 00:50:48 -0800
From: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
To: "nfsv4@ietf.org" <nfsv4@ietf.org>
Thread-Topic: forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyBYY40JL5ICJyS8eNCluSoB+npw==
Date: Thu, 23 Feb 2012 08:50:46 +0000
Message-ID: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 08:50:58 -0000

There was some discussion about this at connectathon today.=20

As you know, to get to the layout, a client needs to issue a LAYOUTGET with=
 the open stateid. According to the spec, a client MUST use the layout it g=
ot on subsequent LAYOUTGET operations.

12.5.2 Getting a Layout
....

   In order to get a layout, the client must first have opened the file
   via the OPEN operation.  When a client has no layout on a file, it
   MUST present an open stateid, a delegation stateid, or a byte-range
   lock stateid in the loga_stateid argument.  A successful LAYOUTGET
   result includes a layout stateid.  The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.  Once the layout has been
   retrieved, it can be held across multiple OPEN and CLOSE sequences.
   Therefore, a client may hold a layout for a file that is not
   currently open by any user on the client.  This allows for the
   caching of layouts beyond CLOSE.
...

Apparently, there are use cases (or maybe conditions) where a client would =
forget the layout it has and that could result in issuing a LAYOUTGET with =
the same open stateid that it used before to get the layout stateid. The ca=
tch here is that the server did not forget the layout and client did not do=
 a LAYOUTRETURN. So, oblivious to the fact that the client lost track of it=
, the server returns the exisiting layout stateid. That begs for few questi=
ons:

1). Is it a bad thing for server to return existing layout stateid and pote=
ntially return a seqid that may not start with 1?

2).Should/Must the server assume that the second LAYOUTGET with open statei=
d from the client is a hint in itself for the server to remove the existing=
 layout (and generate new layout) and/or set the seqid back to one?

I'm of the opinion that, server cannot assume that the second LAYOUTGET(ope=
n stateid) is an indication for server to delete earlier instance of layout=
. Any thoughts?

- Pranoop

From bhalevy@tonian.com  Thu Feb 23 03:53:14 2012
Return-Path: <bhalevy@tonian.com>
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 ABFB821F86C7 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 03:53:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level: 
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HaPgVhCvUiob for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 03:53:13 -0800 (PST)
Received: from mail-tul01m020-f172.google.com (mail-tul01m020-f172.google.com [209.85.214.172]) by ietfa.amsl.com (Postfix) with ESMTP id B04E821F868A for <nfsv4@ietf.org>; Thu, 23 Feb 2012 03:53:13 -0800 (PST)
Received: by obbwd15 with SMTP id wd15so1514290obb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 03:53:13 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.182.0.48 as permitted sender) client-ip=10.182.0.48; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.182.0.48 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.182.0.48]) by 10.182.0.48 with SMTP id 16mr390761obb.23.1329997993225 (num_hops = 1); Thu, 23 Feb 2012 03:53:13 -0800 (PST)
MIME-Version: 1.0
Received: by 10.182.0.48 with SMTP id 16mr331700obb.23.1329997993157; Thu, 23 Feb 2012 03:53:13 -0800 (PST)
Received: by 10.60.17.201 with HTTP; Thu, 23 Feb 2012 03:53:13 -0800 (PST)
X-Originating-IP: [209.118.182.66]
Received: by 10.60.17.201 with HTTP; Thu, 23 Feb 2012 03:53:13 -0800 (PST)
In-Reply-To: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>
Date: Thu, 23 Feb 2012 03:53:13 -0800
Message-ID: <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com>
From: Benny Halevy <bhalevy@tonian.com>
To: Marc Eshel <eshel@almaden.ibm.com>
Content-Type: multipart/alternative; boundary=f46d043893ffef258104b9a04964
X-Gm-Message-State: ALoCoQkoAgl9CSziHWLxb6V0UbNYyIh2GMnfTxORU3u1LA0vmtR3ctnx6Ki50xNEeM+PUdDua4WH
Cc: NFSv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 11:53:14 -0000

--f46d043893ffef258104b9a04964
Content-Type: text/plain; charset=ISO-8859-1

On Feb 22, 2012 9:16 PM, "Marc Eshel" <eshel@almaden.ibm.com> wrote:
>
> It looks like some developers understood the return_on_close to mean that
> if the server sets it on the client doesn't have to return the layout and
> the close is an indication that it is not holding the layout anymore. I
> think this is a good idea but from the following section of the spec it
> sounds that if the client doesn't return the layout the server still needs
> to recall the layout. Is there a reason why the server can't just assume
> that close implies that the client gave up the layout?

We've discussed this in the past but it seems the ball got dropped.

http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.html

Benny

> Marc.
>
> 18.43.3
>
> The logr_return_on_close result field is a directive to return the
>  layout before closing the file.  When the metadata server sets this
>  return value to TRUE, it MUST be prepared to recall the layout in the
>  case in which the client fails to return the layout before close.
>  For the metadata server that knows a layout must be returned before a
>  close of the file, this return value can be used to communicate the
>  desired behavior to the client and thus remove one extra step from
>  the client's and metadata server's interaction.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

--f46d043893ffef258104b9a04964
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p><br>
On Feb 22, 2012 9:16 PM, &quot;Marc Eshel&quot; &lt;<a href=3D"mailto:eshel=
@almaden.ibm.com">eshel@almaden.ibm.com</a>&gt; wrote:<br>
&gt;<br>
&gt; It looks like some developers understood the return_on_close to mean t=
hat<br>
&gt; if the server sets it on the client doesn&#39;t have to return the lay=
out and<br>
&gt; the close is an indication that it is not holding the layout anymore. =
I<br>
&gt; think this is a good idea but from the following section of the spec i=
t<br>
&gt; sounds that if the client doesn&#39;t return the layout the server sti=
ll needs<br>
&gt; to recall the layout. Is there a reason why the server can&#39;t just =
assume<br>
&gt; that close implies that the client gave up the layout?</p>
<p>We&#39;ve discussed this in the past but it seems the ball got dropped.<=
/p>
<p> <a href=3D"http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.=
html">http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.html</a><=
/p>
<p>Benny<br>
 <br>
&gt; Marc.<br>
&gt;<br>
&gt; 18.43.3<br>
&gt;<br>
&gt; The logr_return_on_close result field is a directive to return the<br>
&gt; =A0layout before closing the file. =A0When the metadata server sets th=
is<br>
&gt; =A0return value to TRUE, it MUST be prepared to recall the layout in t=
he<br>
&gt; =A0case in which the client fails to return the layout before close.<b=
r>
&gt; =A0For the metadata server that knows a layout must be returned before=
 a<br>
&gt; =A0close of the file, this return value can be used to communicate the=
<br>
&gt; =A0desired behavior to the client and thus remove one extra step from<=
br>
&gt; =A0the client&#39;s and metadata server&#39;s interaction.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; <a href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ie=
tf.org/mailman/listinfo/nfsv4</a><br>
</p>

--f46d043893ffef258104b9a04964--

From bhalevy@tonian.com  Thu Feb 23 04:26:14 2012
Return-Path: <bhalevy@tonian.com>
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 5AB9F21F86F8 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 04:26:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level: 
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lEoA1gyeOAxY for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 04:26:13 -0800 (PST)
Received: from mail-tul01m020-f172.google.com (mail-tul01m020-f172.google.com [209.85.214.172]) by ietfa.amsl.com (Postfix) with ESMTP id B4B2921F865B for <nfsv4@ietf.org>; Thu, 23 Feb 2012 04:26:13 -0800 (PST)
Received: by obbwd15 with SMTP id wd15so1562540obb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 04:26:13 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.182.0.48 as permitted sender) client-ip=10.182.0.48; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.182.0.48 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.182.0.48]) by 10.182.0.48 with SMTP id 16mr431661obb.23.1329999973152 (num_hops = 1); Thu, 23 Feb 2012 04:26:13 -0800 (PST)
Received: by 10.182.0.48 with SMTP id 16mr367055obb.23.1329999973090; Thu, 23 Feb 2012 04:26:13 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.17.201 with HTTP; Thu, 23 Feb 2012 04:25:52 -0800 (PST)
X-Originating-IP: [209.118.182.66]
In-Reply-To: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com>
From: Benny Halevy <bhalevy@tonian.com>
Date: Thu, 23 Feb 2012 04:25:52 -0800
Message-ID: <CAEMWVhtdijvwA8+LXMvrMP2g4j1F899xJtHiSAaNCTN47RoqiQ@mail.gmail.com>
To: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQkYIfgTS6LzGBV4MC1LICoxUrycfVHlcslcDw/00WFtBhn1zsLg3z1ER+i9nK0tWPXF+ksG
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 12:26:14 -0000

On Feb 23, 2012 12:52 AM, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com> w=
rote:
>
> There was some discussion about this at connectathon today.
>
> As you know, to get to the layout, a client needs to issue a LAYOUTGET wi=
th the open stateid. According to the spec, a client MUST use the layout it=
 got on subsequent LAYOUTGET operations.
>
> 12.5.2 Getting a Layout
> ....
>
> =A0 In order to get a layout, the client must first have opened the file
> =A0 via the OPEN operation. =A0When a client has no layout on a file, it
> =A0 MUST present an open stateid, a delegation stateid, or a byte-range
> =A0 lock stateid in the loga_stateid argument. =A0A successful LAYOUTGET
> =A0 result includes a layout stateid. =A0The first successful LAYOUTGET
> =A0 processed by the server using a non-layout stateid as an argument
> =A0 MUST have the "seqid" field of the layout stateid in the response set
> =A0 to one. =A0Thereafter, the client MUST use a layout stateid (see
> =A0 Section 12.5.3) on future invocations of LAYOUTGET on the file, and
> =A0 the "seqid" MUST NOT be set to zero. =A0Once the layout has been
> =A0 retrieved, it can be held across multiple OPEN and CLOSE sequences.
> =A0 Therefore, a client may hold a layout for a file that is not
> =A0 currently open by any user on the client. =A0This allows for the
> =A0 caching of layouts beyond CLOSE.
> ...
>
> Apparently, there are use cases (or maybe conditions) where a client woul=
d forget the layout it has and that could result in issuing a LAYOUTGET wit=
h the same open stateid that it used before to get the layout stateid. The =
catch here is that the server did not forget the layout and client did not =
do a LAYOUTRETURN. So, oblivious to the fact that the client lost track of =
it, the server returns the exisiting layout stateid. That begs for few ques=
tions:

We've discussed this issue in the past, for example here:
http://www.spinics.net/lists/linux-nfs/msg19053.html

According to the proposed errata, the client must serialize layoutgets
with the open stateid. This allows the server to release the layout
state the client might had as if it implicitly sent a layoutreturn for
the file.


>
> 1). Is it a bad thing for server to return existing layout stateid and po=
tentially return a seqid that may not start with 1?

given the serialization requirement on the client the assumption (and
the simulatio I ran) was that this would work.

>
> 2).Should/Must the server assume that the second LAYOUTGET with open stat=
eid from the client is a hint in itself for the server to remove the existi=
ng layout (and generate new layout) and/or set the seqid back to one?

Yes

>
> I'm of the opinion that, server cannot assume that the second LAYOUTGET(o=
pen stateid) is an indication for server to delete earlier instance of layo=
ut. Any thoughts?

The errata should say the opposite.
For the forgetful client model to work this protocol issue must be fixed.

Benny

>
> - Pranoop
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From stamari@gmail.com  Thu Feb 23 09:02:56 2012
Return-Path: <stamari@gmail.com>
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 5204921F8745 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:02:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level: 
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BAsWJZUhDDE5 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:02:51 -0800 (PST)
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id 18DBC21F86CE for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:02:51 -0800 (PST)
Received: by vcbfk14 with SMTP id fk14so1108266vcb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:02:50 -0800 (PST)
Received-SPF: pass (google.com: domain of stamari@gmail.com designates 10.52.68.139 as permitted sender) client-ip=10.52.68.139; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of stamari@gmail.com designates 10.52.68.139 as permitted sender) smtp.mail=stamari@gmail.com; dkim=pass header.i=stamari@gmail.com
Received: from mr.google.com ([10.52.68.139]) by 10.52.68.139 with SMTP id w11mr1304994vdt.110.1330016570688 (num_hops = 1); Thu, 23 Feb 2012 09:02:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Jr2mc7+z53RG4ctxEij2UViVjvY7/bN3LDkyStXxXtM=; b=R3sTgeAHTIM4a+tILLITx8yqeXFHR2DCjeZKpZWh5AAtIZeyzdOTTX4BWkiJkTY061 fp6HR4sagZjviyFSbAvUgK7pYppOZaE87K2PyRFYLgDDXGzIhez6ZUZy0L2ikbIY5B6c FErPjPrqrYR7hckexPlYZdYAL1GauU9YR2ANQ=
MIME-Version: 1.0
Received: by 10.52.68.139 with SMTP id w11mr1088805vdt.110.1330016570345; Thu, 23 Feb 2012 09:02:50 -0800 (PST)
Received: by 10.220.229.202 with HTTP; Thu, 23 Feb 2012 09:02:50 -0800 (PST)
Date: Thu, 23 Feb 2012 09:02:50 -0800
Message-ID: <CAGqvRw5QJJNJ=xSmnfO5XMLqXurrRaZt7OjhThDjLd-RMmPj3A@mail.gmail.com>
From: Saul Tamari <stamari@gmail.com>
To: nfsv4 <nfsv4@ietf.org>
Content-Type: multipart/alternative; boundary=20cf307f37ee3886ba04b9a49d89
Subject: [nfsv4] Returning NFS4ERR_NOSPC from REMOVE
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:02:56 -0000

--20cf307f37ee3886ba04b9a49d89
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Currently the RFC3530 doesn't list NFS4ERR_NOSPC as a possible return code
for REMOVE.
In an environment that supports writable snapshots or volume cloning there
could be a case where we do not have disk space for removing a directory
entry.

Could this be added to the BIS?

Thanks,
Saul

--20cf307f37ee3886ba04b9a49d89
Content-Type: text/html; charset=ISO-8859-1

Hi,<br><br>Currently the RFC3530 doesn&#39;t list NFS4ERR_NOSPC as a possible return code for REMOVE.<br>
In an environment that supports writable snapshots or volume cloning there could be a case where we do not have disk space for removing a directory entry.<br><br>Could this be added to the BIS?<br><br>Thanks,<br>Saul<br>
<br>

--20cf307f37ee3886ba04b9a49d89--

From sshepler@microsoft.com  Thu Feb 23 09:07:19 2012
Return-Path: <sshepler@microsoft.com>
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 EDEF421F87CA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:07:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7yqBfB3MMaBA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:07:17 -0800 (PST)
Received: from DB3EHSOBE002.bigfish.com (db3ehsobe004.messaging.microsoft.com [213.199.154.142]) by ietfa.amsl.com (Postfix) with ESMTP id 6DC5A21F87A5 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:07:17 -0800 (PST)
Received: from mail55-db3-R.bigfish.com (10.3.81.244) by DB3EHSOBE002.bigfish.com (10.3.84.22) with Microsoft SMTP Server id 14.1.225.23; Thu, 23 Feb 2012 17:07:16 +0000
Received: from mail55-db3 (localhost [127.0.0.1])	by mail55-db3-R.bigfish.com (Postfix) with ESMTP id 9D5CF40163; Thu, 23 Feb 2012 17:07:16 +0000 (UTC)
X-SpamScore: -35
X-BigFish: VS-35(zz9371I542M1432N98dKzz1202hzz8275ch1033IL8275bh8275dhz2fh2a8h668h839h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail55-db3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14MLTC102.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail55-db3 (localhost.localdomain [127.0.0.1]) by mail55-db3 (MessageSwitch) id 1330016834697273_3633; Thu, 23 Feb 2012 17:07:14 +0000 (UTC)
Received: from DB3EHSMHS006.bigfish.com (unknown [10.3.81.250])	by mail55-db3.bigfish.com (Postfix) with ESMTP id A5EF04E004B; Thu, 23 Feb 2012 17:07:14 +0000 (UTC)
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (131.107.125.8) by DB3EHSMHS006.bigfish.com (10.3.87.106) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 23 Feb 2012 17:07:13 +0000
Received: from TK5EX14MBXC254.redmond.corp.microsoft.com ([169.254.2.100]) by TK5EX14MLTC102.redmond.corp.microsoft.com ([157.54.79.180]) with mapi id 14.02.0247.005; Thu, 23 Feb 2012 09:07:01 -0800
From: Spencer Shepler <sshepler@microsoft.com>
To: Benny Halevy <bhalevy@tonian.com>, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyBYY40JL5ICJyS8eNCluSoB+npwAIMHsAAAnIwjA=
Date: Thu, 23 Feb 2012 17:07:00 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A1857142D43@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <CAEMWVhtdijvwA8+LXMvrMP2g4j1F899xJtHiSAaNCTN47RoqiQ@mail.gmail.com>
In-Reply-To: <CAEMWVhtdijvwA8+LXMvrMP2g4j1F899xJtHiSAaNCTN47RoqiQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.78]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:07:19 -0000

Benny,

You mention a proposed errata; do you have a reference for that?
If so, great, if not, then something needs to hit this alias
so we can have a comment and then submit it to the ietf errata site.

Spencer


-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of B=
enny Halevy
Sent: Thursday, February 23, 2012 4:26 AM
To: Erasani, Pranoop
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open statei=
d

On Feb 23, 2012 12:52 AM, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com> w=
rote:
>
> There was some discussion about this at connectathon today.
>
> As you know, to get to the layout, a client needs to issue a LAYOUTGET wi=
th the open stateid. According to the spec, a client MUST use the layout it=
 got on subsequent LAYOUTGET operations.
>
> 12.5.2 Getting a Layout
> ....
>
> =A0 In order to get a layout, the client must first have opened the file
> =A0 via the OPEN operation. =A0When a client has no layout on a file, it
> =A0 MUST present an open stateid, a delegation stateid, or a byte-range
> =A0 lock stateid in the loga_stateid argument. =A0A successful LAYOUTGET
> =A0 result includes a layout stateid. =A0The first successful LAYOUTGET
> =A0 processed by the server using a non-layout stateid as an argument
> =A0 MUST have the "seqid" field of the layout stateid in the response set
> =A0 to one. =A0Thereafter, the client MUST use a layout stateid (see
> =A0 Section 12.5.3) on future invocations of LAYOUTGET on the file, and
> =A0 the "seqid" MUST NOT be set to zero. =A0Once the layout has been
> =A0 retrieved, it can be held across multiple OPEN and CLOSE sequences.
> =A0 Therefore, a client may hold a layout for a file that is not
> =A0 currently open by any user on the client. =A0This allows for the
> =A0 caching of layouts beyond CLOSE.
> ...
>
> Apparently, there are use cases (or maybe conditions) where a client woul=
d forget the layout it has and that could result in issuing a LAYOUTGET wit=
h the same open stateid that it used before to get the layout stateid. The =
catch here is that the server did not forget the layout and client did not =
do a LAYOUTRETURN. So, oblivious to the fact that the client lost track of =
it, the server returns the exisiting layout stateid. That begs for few ques=
tions:

We've discussed this issue in the past, for example here:
http://www.spinics.net/lists/linux-nfs/msg19053.html

According to the proposed errata, the client must serialize layoutgets
with the open stateid. This allows the server to release the layout
state the client might had as if it implicitly sent a layoutreturn for
the file.


>
> 1). Is it a bad thing for server to return existing layout stateid and po=
tentially return a seqid that may not start with 1?

given the serialization requirement on the client the assumption (and
the simulatio I ran) was that this would work.

>
> 2).Should/Must the server assume that the second LAYOUTGET with open stat=
eid from the client is a hint in itself for the server to remove the existi=
ng layout (and generate new layout) and/or set the seqid back to one?

Yes

>
> I'm of the opinion that, server cannot assume that the second LAYOUTGET(o=
pen stateid) is an indication for server to delete earlier instance of layo=
ut. Any thoughts?

The errata should say the opposite.
For the forgetful client model to work this protocol issue must be fixed.

Benny

>
> - Pranoop
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4



From sshepler@microsoft.com  Thu Feb 23 09:08:38 2012
Return-Path: <sshepler@microsoft.com>
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 882BC21F87A5 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:08:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id By4oVeG3xHvD for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:08:37 -0800 (PST)
Received: from AM1EHSOBE004.bigfish.com (am1ehsobe003.messaging.microsoft.com [213.199.154.206]) by ietfa.amsl.com (Postfix) with ESMTP id 0A3B221F86D8 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:08:36 -0800 (PST)
Received: from mail34-am1-R.bigfish.com (10.3.201.226) by AM1EHSOBE004.bigfish.com (10.3.204.24) with Microsoft SMTP Server id 14.1.225.23; Thu, 23 Feb 2012 17:08:35 +0000
Received: from mail34-am1 (localhost [127.0.0.1])	by mail34-am1-R.bigfish.com (Postfix) with ESMTP id C93BB2E00C8; Thu, 23 Feb 2012 17:08:35 +0000 (UTC)
X-SpamScore: -30
X-BigFish: VS-30(zz9371Ic85fh1432N98dKzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC105.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail34-am1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC105.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail34-am1 (localhost.localdomain [127.0.0.1]) by mail34-am1 (MessageSwitch) id 133001691480235_24016; Thu, 23 Feb 2012 17:08:34 +0000 (UTC)
Received: from AM1EHSMHS001.bigfish.com (unknown [10.3.201.247])	by mail34-am1.bigfish.com (Postfix) with ESMTP id 05103260045; Thu, 23 Feb 2012 17:08:34 +0000 (UTC)
Received: from TK5EX14HUBC105.redmond.corp.microsoft.com (131.107.125.8) by AM1EHSMHS001.bigfish.com (10.3.207.101) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 23 Feb 2012 17:08:32 +0000
Received: from TK5EX14MBXC254.redmond.corp.microsoft.com ([169.254.2.100]) by TK5EX14HUBC105.redmond.corp.microsoft.com ([157.54.80.48]) with mapi id 14.02.0247.005; Thu, 23 Feb 2012 17:08:26 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: Benny Halevy <bhalevy@tonian.com>, Marc Eshel <eshel@almaden.ibm.com>
Thread-Topic: [nfsv4] layout return
Thread-Index: AQHM8eo9ia+ym2F0ZU+8l2vzzs3fE5ZKX5yAgABX6yA=
Date: Thu, 23 Feb 2012 17:08:25 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com>
In-Reply-To: <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.78]
Content-Type: multipart/alternative; boundary="_000_039D3CB813A4D544863BB7D4F46A1857142D6ETK5EX14MBXC254red_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: NFSv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:08:38 -0000

--_000_039D3CB813A4D544863BB7D4F46A1857142D6ETK5EX14MBXC254red_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Marc,

Given the previous discussion, you should draft the needed errata, send to =
the WG and once
we have concensus, it can be posted to the ietf errata site.

Spencer

From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of B=
enny Halevy
Sent: Thursday, February 23, 2012 3:53 AM
To: Marc Eshel
Cc: NFSv4
Subject: Re: [nfsv4] layout return


On Feb 22, 2012 9:16 PM, "Marc Eshel" <eshel@almaden.ibm.com<mailto:eshel@a=
lmaden.ibm.com>> wrote:
>
> It looks like some developers understood the return_on_close to mean that
> if the server sets it on the client doesn't have to return the layout and
> the close is an indication that it is not holding the layout anymore. I
> think this is a good idea but from the following section of the spec it
> sounds that if the client doesn't return the layout the server still need=
s
> to recall the layout. Is there a reason why the server can't just assume
> that close implies that the client gave up the layout?

We've discussed this in the past but it seems the ball got dropped.

http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.html

Benny

> Marc.
>
> 18.43.3
>
> The logr_return_on_close result field is a directive to return the
>  layout before closing the file.  When the metadata server sets this
>  return value to TRUE, it MUST be prepared to recall the layout in the
>  case in which the client fails to return the layout before close.
>  For the metadata server that knows a layout must be returned before a
>  close of the file, this return value can be used to communicate the
>  desired behavior to the client and thus remove one extra step from
>  the client's and metadata server's interaction.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org<mailto:nfsv4@ietf.org>
> https://www.ietf.org/mailman/listinfo/nfsv4

--_000_039D3CB813A4D544863BB7D4F46A1857142D6ETK5EX14MBXC254red_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Marc,<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Given the previous discus=
sion, you should draft the needed errata, send to the WG and once<o:p></o:p=
></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">we have concensus, it can=
 be posted to the ietf errata site.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D">Spencer<o:p></o:p></span>=
</p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ca=
libri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span><=
/p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> nfsv4-bo=
unces@ietf.org [mailto:nfsv4-bounces@ietf.org]
<b>On Behalf Of </b>Benny Halevy<br>
<b>Sent:</b> Thursday, February 23, 2012 3:53 AM<br>
<b>To:</b> Marc Eshel<br>
<b>Cc:</b> NFSv4<br>
<b>Subject:</b> Re: [nfsv4] layout return<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p><br>
On Feb 22, 2012 9:16 PM, &quot;Marc Eshel&quot; &lt;<a href=3D"mailto:eshel=
@almaden.ibm.com">eshel@almaden.ibm.com</a>&gt; wrote:<br>
&gt;<br>
&gt; It looks like some developers understood the return_on_close to mean t=
hat<br>
&gt; if the server sets it on the client doesn't have to return the layout =
and<br>
&gt; the close is an indication that it is not holding the layout anymore. =
I<br>
&gt; think this is a good idea but from the following section of the spec i=
t<br>
&gt; sounds that if the client doesn't return the layout the server still n=
eeds<br>
&gt; to recall the layout. Is there a reason why the server can't just assu=
me<br>
&gt; that close implies that the client gave up the layout?<o:p></o:p></p>
<p>We've discussed this in the past but it seems the ball got dropped.<o:p>=
</o:p></p>
<p><a href=3D"http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.h=
tml">http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.html</a><o=
:p></o:p></p>
<p>Benny<br>
<br>
&gt; Marc.<br>
&gt;<br>
&gt; 18.43.3<br>
&gt;<br>
&gt; The logr_return_on_close result field is a directive to return the<br>
&gt; &nbsp;layout before closing the file. &nbsp;When the metadata server s=
ets this<br>
&gt; &nbsp;return value to TRUE, it MUST be prepared to recall the layout i=
n the<br>
&gt; &nbsp;case in which the client fails to return the layout before close=
.<br>
&gt; &nbsp;For the metadata server that knows a layout must be returned bef=
ore a<br>
&gt; &nbsp;close of the file, this return value can be used to communicate =
the<br>
&gt; &nbsp;desired behavior to the client and thus remove one extra step fr=
om<br>
&gt; &nbsp;the client's and metadata server's interaction.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; <a href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ie=
tf.org/mailman/listinfo/nfsv4</a><o:p></o:p></p>
</div>
</body>
</html>

--_000_039D3CB813A4D544863BB7D4F46A1857142D6ETK5EX14MBXC254red_--

From Tom.Haynes@netapp.com  Thu Feb 23 09:18:13 2012
Return-Path: <Tom.Haynes@netapp.com>
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 CAEC421F87A1 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:18:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.539
X-Spam-Level: 
X-Spam-Status: No, score=-10.539 tagged_above=-999 required=5 tests=[AWL=0.060, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EqKKlfS02uKm for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:18:13 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 4B84821F873D for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:18:12 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,470,1325491200"; d="scan'208";a="628022828"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 09:18:12 -0800
Received: from vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1NHICkj012074; Thu, 23 Feb 2012 09:18:12 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 09:18:12 -0800
From: "Haynes, Tom" <Tom.Haynes@netapp.com>
To: Tom Talpey <ttalpey@microsoft.com>
Thread-Topic: 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQgAFXTYA=
Date: Thu, 23 Feb 2012 17:18:12 +0000
Message-ID: <CB6BB474.14354%tom.haynes@netapp.com>
In-Reply-To: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.14.0.111121
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <4B10181C0F2D934596651F7FC9E1393F@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:18:13 -0000

On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:

>Tom Haynes wrote:
>>
>>We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
>>
>>At first blush, this appears to not make sense, I.e., the file size is
>>not changing.
>>
>>Here is our use case:
>>
>>EFBIG could be returned if the target directory is about to exceed its
>>maximum capacity.  Got any really, really big directories on there?
>>
>>Anyone have any objections to adding this error value?
>
>What do you expect clients to do with this new error? I don't believe a
>Posix client can map it to anything useful from a rename(2) call, and I
>certainly don't see any recovery. Can you elaborate on the justification?


Are we restricted to Posix clients?

Is there no way to propose and drive a Posix change?


>
>Also, who is "we"?
>


My employer is NetApp and I represent them on this issue.


From Pranoop.Erasani@netapp.com  Thu Feb 23 09:27:13 2012
Return-Path: <Pranoop.Erasani@netapp.com>
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 DDEB321F8793 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:27:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cOciGGOCAxNk for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:27:13 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 3679321F86DC for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:27:10 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,470,1325491200"; d="scan'208";a="628025860"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 09:27:09 -0800
Received: from vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1NHR932020437; Thu, 23 Feb 2012 09:27:09 -0800 (PST)
Received: from SACEXCMBX03-PRD.hq.netapp.com ([169.254.5.175]) by vmwexceht02-prd.hq.netapp.com ([10.106.76.240]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 09:27:09 -0800
From: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
To: Spencer Shepler <sshepler@microsoft.com>, Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyBYY40JL5ICJyS8eNCluSoB+npwAY9AQAAAnRhwAAEFgNoA==
Date: Thu, 23 Feb 2012 17:27:08 +0000
Message-ID: <876AF623CC82644FBE6AE75723CA5FAC124194@SACEXCMBX03-PRD.hq.netapp.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <CAEMWVhtdijvwA8+LXMvrMP2g4j1F899xJtHiSAaNCTN47RoqiQ@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D43@TK5EX14MBXC254.redmond.corp.microsoft.com>
In-Reply-To: <039D3CB813A4D544863BB7D4F46A1857142D43@TK5EX14MBXC254.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.116]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:27:14 -0000

I searched through errata and It doesn't look like the errata ever made it.=
 NOTE: there are some objections to this in the referred thread.

I agree with Spencer that this needs to hit alias again for a meaningful di=
scussion.

- Pranoop

> -----Original Message-----
> From: Spencer Shepler [mailto:sshepler@microsoft.com]
> Sent: Thursday, February 23, 2012 9:07 AM
> To: Benny Halevy; Erasani, Pranoop
> Cc: nfsv4@ietf.org
> Subject: RE: [nfsv4] forgetfulness and multiple layoutget's wth open stat=
eid
>=20
>=20
> Benny,
>=20
> You mention a proposed errata; do you have a reference for that?
> If so, great, if not, then something needs to hit this alias so we can ha=
ve a
> comment and then submit it to the ietf errata site.
>=20
> Spencer
>=20
>=20
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf
> Of Benny Halevy
> Sent: Thursday, February 23, 2012 4:26 AM
> To: Erasani, Pranoop
> Cc: nfsv4@ietf.org
> Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stat=
eid
>=20
> On Feb 23, 2012 12:52 AM, "Erasani, Pranoop"
> <Pranoop.Erasani@netapp.com> wrote:
> >
> > There was some discussion about this at connectathon today.
> >
> > As you know, to get to the layout, a client needs to issue a LAYOUTGET =
with
> the open stateid. According to the spec, a client MUST use the layout it =
got
> on subsequent LAYOUTGET operations.
> >
> > 12.5.2 Getting a Layout
> > ....
> >
> > =A0 In order to get a layout, the client must first have opened the fil=
e
> > =A0 via the OPEN operation. =A0When a client has no layout on a file, i=
t
> > =A0 MUST present an open stateid, a delegation stateid, or a byte-range
> > =A0 lock stateid in the loga_stateid argument. =A0A successful LAYOUTGE=
T
> > =A0 result includes a layout stateid. =A0The first successful LAYOUTGET
> > =A0 processed by the server using a non-layout stateid as an argument
> > =A0 MUST have the "seqid" field of the layout stateid in the response
> > set
> > =A0 to one. =A0Thereafter, the client MUST use a layout stateid (see
> > =A0 Section 12.5.3) on future invocations of LAYOUTGET on the file, and
> > =A0 the "seqid" MUST NOT be set to zero. =A0Once the layout has been
> > =A0 retrieved, it can be held across multiple OPEN and CLOSE sequences.
> > =A0 Therefore, a client may hold a layout for a file that is not
> > =A0 currently open by any user on the client. =A0This allows for the
> > =A0 caching of layouts beyond CLOSE.
> > ...
> >
> > Apparently, there are use cases (or maybe conditions) where a client
> would forget the layout it has and that could result in issuing a LAYOUTG=
ET
> with the same open stateid that it used before to get the layout stateid.=
 The
> catch here is that the server did not forget the layout and client did no=
t do a
> LAYOUTRETURN. So, oblivious to the fact that the client lost track of it,=
 the
> server returns the exisiting layout stateid. That begs for few questions:
>=20
> We've discussed this issue in the past, for example here:
> http://www.spinics.net/lists/linux-nfs/msg19053.html
>=20
> According to the proposed errata, the client must serialize layoutgets wi=
th
> the open stateid. This allows the server to release the layout state the =
client
> might had as if it implicitly sent a layoutreturn for the file.
>=20
>=20
> >
> > 1). Is it a bad thing for server to return existing layout stateid and
> potentially return a seqid that may not start with 1?
>=20
> given the serialization requirement on the client the assumption (and the
> simulatio I ran) was that this would work.
>=20
> >
> > 2).Should/Must the server assume that the second LAYOUTGET with open
> stateid from the client is a hint in itself for the server to remove the =
existing
> layout (and generate new layout) and/or set the seqid back to one?
>=20
> Yes
>=20
> >
> > I'm of the opinion that, server cannot assume that the second
> LAYOUTGET(open stateid) is an indication for server to delete earlier ins=
tance
> of layout. Any thoughts?
>=20
> The errata should say the opposite.
> For the forgetful client model to work this protocol issue must be fixed.
>=20
> Benny
>=20
> >
> > - Pranoop
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>=20


From sshepler@microsoft.com  Thu Feb 23 09:34:00 2012
Return-Path: <sshepler@microsoft.com>
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 89F9C21F87DC for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:34:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I1u1-ptf4-KM for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:33:59 -0800 (PST)
Received: from VA3EHSOBE009.bigfish.com (va3ehsobe005.messaging.microsoft.com [216.32.180.31]) by ietfa.amsl.com (Postfix) with ESMTP id D80AE21F86FF for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:33:50 -0800 (PST)
Received: from mail140-va3-R.bigfish.com (10.7.14.243) by VA3EHSOBE009.bigfish.com (10.7.40.29) with Microsoft SMTP Server id 14.1.225.23; Thu, 23 Feb 2012 17:33:49 +0000
Received: from mail140-va3 (localhost [127.0.0.1])	by mail140-va3-R.bigfish.com (Postfix) with ESMTP id C00EAC0176; Thu, 23 Feb 2012 17:33:49 +0000 (UTC)
X-SpamScore: -36
X-BigFish: VS-36(zzbb2dI9371I542M1432N98dKzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h944h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC101.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail140-va3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14MLTC101.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail140-va3 (localhost.localdomain [127.0.0.1]) by mail140-va3 (MessageSwitch) id 1330018428713401_4790; Thu, 23 Feb 2012 17:33:48 +0000 (UTC)
Received: from VA3EHSMHS013.bigfish.com (unknown [10.7.14.250])	by mail140-va3.bigfish.com (Postfix) with ESMTP id 9E2F816004D; Thu, 23 Feb 2012 17:33:48 +0000 (UTC)
Received: from TK5EX14MLTC101.redmond.corp.microsoft.com (131.107.125.8) by VA3EHSMHS013.bigfish.com (10.7.99.23) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 23 Feb 2012 17:33:46 +0000
Received: from TK5EX14MBXC254.redmond.corp.microsoft.com ([169.254.2.100]) by TK5EX14MLTC101.redmond.corp.microsoft.com ([157.54.79.178]) with mapi id 14.02.0247.005; Thu, 23 Feb 2012 17:33:42 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: "Haynes, Tom" <Tom.Haynes@netapp.com>, Tom Talpey <ttalpey@microsoft.com>
Thread-Topic: 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQgAFXTYCAAAOYUA==
Date: Thu, 23 Feb 2012 17:33:42 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com>
In-Reply-To: <CB6BB474.14354%tom.haynes@netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.78]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:34:00 -0000

I think the argument for adding a new error return, such as this, is the
server is able to better reflect what occurred that resulted in the error.
Whether the client's operating environment has a direct translation of that
error to its application (even if it has an application to which to return
the error) is a separate issue.

We should evaluate the error return based on the usefulness to the client.
IMO having the error for the stated instance seems reasonable.

Spencer

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of H=
aynes, Tom
Sent: Thursday, February 23, 2012 9:18 AM
To: Tom Talpey
Cc: nfsv4
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME



On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:

>Tom Haynes wrote:
>>
>>We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
>>
>>At first blush, this appears to not make sense, I.e., the file size is
>>not changing.
>>
>>Here is our use case:
>>
>>EFBIG could be returned if the target directory is about to exceed its
>>maximum capacity.  Got any really, really big directories on there?
>>
>>Anyone have any objections to adding this error value?
>
>What do you expect clients to do with this new error? I don't believe a
>Posix client can map it to anything useful from a rename(2) call, and I
>certainly don't see any recovery. Can you elaborate on the justification?


Are we restricted to Posix clients?

Is there no way to propose and drive a Posix change?


>
>Also, who is "we"?
>


My employer is NetApp and I represent them on this issue.

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4



From pstaubach@exagrid.com  Thu Feb 23 09:54:49 2012
Return-Path: <pstaubach@exagrid.com>
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 9286121F873D for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:54:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.81
X-Spam-Level: 
X-Spam-Status: No, score=-5.81 tagged_above=-999 required=5 tests=[AWL=0.789,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BNQnZk+WpUHx for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 09:54:48 -0800 (PST)
Received: from p02c11o148.mxlogic.net (p02c11o148.mxlogic.net [208.65.144.81]) by ietfa.amsl.com (Postfix) with ESMTP id 9AB4F21F8668 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 09:54:48 -0800 (PST)
Received: from unknown [69.84.133.248] (EHLO p02c11o148.mxlogic.net) by p02c11o148.mxlogic.net(mxl_mta-6.13.0-1) with ESMTP id 86d764f4.77e18940.3424.00-581.7522.p02c11o148.mxlogic.net (envelope-from <pstaubach@exagrid.com>);  Thu, 23 Feb 2012 10:54:48 -0700 (MST)
X-MXL-Hash: 4f467d6860659255-c8c06d12cedbdd2f784d8847234c402ceda2ba65
Received: from unknown [69.84.133.248] (EHLO IT-1874.Isys.com) by p02c11o148.mxlogic.net(mxl_mta-6.13.0-1) over TLS secured channel with ESMTP id 85d764f4.0.3284.00-348.7209.p02c11o148.mxlogic.net (envelope-from <pstaubach@exagrid.com>);  Thu, 23 Feb 2012 10:54:34 -0700 (MST)
X-MXL-Hash: 4f467d5a67c94463-9a557550d775a4d71b9989ac34d36c52fcf61fb3
Received: from IT-1874.Isys.com ([172.20.0.223]) by IT-1874.Isys.com ([172.20.0.223]) with mapi; Thu, 23 Feb 2012 12:53:26 -0500
From: Peter Staubach <pstaubach@exagrid.com>
To: Spencer Shepler <sshepler@microsoft.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, Tom Talpey <ttalpey@microsoft.com>
Date: Thu, 23 Feb 2012 12:53:26 -0500
Thread-Topic: 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQgAFXTYCAAAOYUIAABR/w
Message-ID: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com>
In-Reply-To: <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010122901)]
X-MAIL-FROM: <pstaubach@exagrid.com>
X-SOURCE-IP: [69.84.133.248]
X-AnalysisOut: [v=1.0 c=1 a=IDz0dEtPhNUA:10 a=ooaBVg03rvgA:10 a=BLceEmwcHo]
X-AnalysisOut: [wA:10 a=kj9zAlcOel0A:10 a=YmXeKoonWU0GTmr6cORa5w==:17 a=48]
X-AnalysisOut: [vgC7mUAAAA:8 a=yMhMjlubAAAA:8 a=WGyaspkJvrENaXLinzQA:9 a=4]
X-AnalysisOut: [9EO0gV9m-2NA0I171UA:7 a=CjuIK1q_8ugA:10 a=lZB815dzVvQA:10 ]
X-AnalysisOut: [a=-AOE9ft50oIA:10 a=cFc43_zCzNG2S9vV:21 a=36NXFEwRnjjdeMVG]
X-AnalysisOut: [:21]
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 17:54:49 -0000

I agree with Spencer's assessment.  Although clients may or may not strive =
to be Posix compliant by mapping the virtual file system models defined by =
the NFS protocols, the server behavior is more driven by local semantics an=
d the virtual file system models defined by the NFS protocols.

In this case, it would seem that either EFBIG was an oversight because no o=
ne could imagine a directory that big or there was other error defined to c=
over the situation.  Does anyone remember anything about the largefile disc=
ussions way back when?

	Thanx...

		ps


-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of S=
pencer Shepler
Sent: Thursday, February 23, 2012 12:34 PM
To: Haynes, Tom; Tom Talpey
Cc: nfsv4
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME


I think the argument for adding a new error return, such as this, is the se=
rver is able to better reflect what occurred that resulted in the error.
Whether the client's operating environment has a direct translation of that=
 error to its application (even if it has an application to which to return=
 the error) is a separate issue.

We should evaluate the error return based on the usefulness to the client.
IMO having the error for the stated instance seems reasonable.

Spencer

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of H=
aynes, Tom
Sent: Thursday, February 23, 2012 9:18 AM
To: Tom Talpey
Cc: nfsv4
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME



On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:

>Tom Haynes wrote:
>>
>>We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
>>
>>At first blush, this appears to not make sense, I.e., the file size is=20
>>not changing.
>>
>>Here is our use case:
>>
>>EFBIG could be returned if the target directory is about to exceed its=20
>>maximum capacity.  Got any really, really big directories on there?
>>
>>Anyone have any objections to adding this error value?
>
>What do you expect clients to do with this new error? I don't believe a=20
>Posix client can map it to anything useful from a rename(2) call, and I=20
>certainly don't see any recovery. Can you elaborate on the justification?


Are we restricted to Posix clients?

Is there no way to propose and drive a Posix change?


>
>Also, who is "we"?
>


My employer is NetApp and I represent them on this issue.

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4

From Trond.Myklebust@netapp.com  Thu Feb 23 10:23:22 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 5AA3E21F87AA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:23:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.532
X-Spam-Level: 
X-Spam-Status: No, score=-10.532 tagged_above=-999 required=5 tests=[AWL=0.067, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CCMFHxtwcNCF for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:23:21 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 325BB21F870B for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:23:19 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,471,1325491200"; d="scan'208";a="628044247"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 10:23:19 -0800
Received: from vmwexceht04-prd.hq.netapp.com (vmwexceht04-prd.hq.netapp.com [10.106.77.34]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1NINIoY016270 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:23:18 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht04-prd.hq.netapp.com ([10.106.77.34]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 10:22:49 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AQHM8lg2R6FnimjSIUOo6pgWM8Qucg==
Date: Thu, 23 Feb 2012 18:23:17 +0000
Message-ID: <1330021388.2423.5.camel@lade.trondhjem.org>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com>
In-Reply-To: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="utf-8"
Content-ID: <5B5B622A4C829744B538DFBFA337BEE9@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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:nfs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@microsoft.com>
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 B4D5121F87FD for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:31:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p6sT8Gvr89db for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:31:02 -0800 (PST)
Received: from AM1EHSOBE006.bigfish.com (am1ehsobe001.messaging.microsoft.com [213.199.154.204]) by ietfa.amsl.com (Postfix) with ESMTP id 569DA21F87D3 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:31:01 -0800 (PST)
Received: from mail104-am1-R.bigfish.com (10.3.201.232) by AM1EHSOBE006.bigfish.com (10.3.204.26) with Microsoft SMTP Server id 14.1.225.23; Thu, 23 Feb 2012 18:31:00 +0000
Received: from mail104-am1 (localhost [127.0.0.1])	by mail104-am1-R.bigfish.com (Postfix) with ESMTP id 40F3F4C0601; Thu, 23 Feb 2012 18:31:00 +0000 (UTC)
X-SpamScore: -41
X-BigFish: VS-41(zzbb2dI9371I1803M542M1432N98dKzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h944h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC106.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail104-am1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC106.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail104-am1 (localhost.localdomain [127.0.0.1]) by mail104-am1 (MessageSwitch) id 1330021858191826_32718; Thu, 23 Feb 2012 18:30:58 +0000 (UTC)
Received: from AM1EHSMHS001.bigfish.com (unknown [10.3.201.236])	by mail104-am1.bigfish.com (Postfix) with ESMTP id 203908004F; Thu, 23 Feb 2012 18:30:58 +0000 (UTC)
Received: from TK5EX14HUBC106.redmond.corp.microsoft.com (131.107.125.8) by AM1EHSMHS001.bigfish.com (10.3.207.101) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 23 Feb 2012 18:30:56 +0000
Received: from TK5EX14MBXC254.redmond.corp.microsoft.com ([169.254.2.100]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.02.0247.005; Thu, 23 Feb 2012 18:30:39 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: Peter Staubach <pstaubach@exagrid.com>, "Haynes, Tom" <Tom.Haynes@netapp.com>, Tom Talpey <ttalpey@microsoft.com>
Thread-Topic: 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQgAFXTYCAAAOYUIAABR/wgAALeeA=
Date: Thu, 23 Feb 2012 18:30:38 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com>
In-Reply-To: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.78]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 18:31:03 -0000

Large files?  Haven't we always had those? :-)


-----Original Message-----
From: Peter Staubach [mailto:pstaubach@exagrid.com]=20
Sent: Thursday, February 23, 2012 9:53 AM
To: Spencer Shepler; Haynes, Tom; Tom Talpey
Cc: nfsv4
Subject: RE: 3530bis: Add a new error code for RENAME

I agree with Spencer's assessment.  Although clients may or may not strive =
to be Posix compliant by mapping the virtual file system models defined by =
the NFS protocols, the server behavior is more driven by local semantics an=
d the virtual file system models defined by the NFS protocols.

In this case, it would seem that either EFBIG was an oversight because no o=
ne could imagine a directory that big or there was other error defined to c=
over the situation.  Does anyone remember anything about the largefile disc=
ussions way back when?

	Thanx...

		ps


-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of S=
pencer Shepler
Sent: Thursday, February 23, 2012 12:34 PM
To: Haynes, Tom; Tom Talpey
Cc: nfsv4
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME


I think the argument for adding a new error return, such as this, is the se=
rver is able to better reflect what occurred that resulted in the error.
Whether the client's operating environment has a direct translation of that=
 error to its application (even if it has an application to which to return=
 the error) is a separate issue.

We should evaluate the error return based on the usefulness to the client.
IMO having the error for the stated instance seems reasonable.

Spencer

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of H=
aynes, Tom
Sent: Thursday, February 23, 2012 9:18 AM
To: Tom Talpey
Cc: nfsv4
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME



On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:

>Tom Haynes wrote:
>>
>>We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
>>
>>At first blush, this appears to not make sense, I.e., the file size is=20
>>not changing.
>>
>>Here is our use case:
>>
>>EFBIG could be returned if the target directory is about to exceed its=20
>>maximum capacity.  Got any really, really big directories on there?
>>
>>Anyone have any objections to adding this error value?
>
>What do you expect clients to do with this new error? I don't believe a=20
>Posix client can map it to anything useful from a rename(2) call, and I=20
>certainly don't see any recovery. Can you elaborate on the justification?


Are we restricted to Posix clients?

Is there no way to propose and drive a Posix change?


>
>Also, who is "we"?
>


My employer is NetApp and I represent them on this issue.

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4



From bhalevy@tonian.com  Thu Feb 23 10:32:13 2012
Return-Path: <bhalevy@tonian.com>
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 98B3021F87FA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:32:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eyHbfUcq98FQ for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:32:12 -0800 (PST)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 3321121F86A7 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:32:12 -0800 (PST)
Received: by ggnq2 with SMTP id q2so868347ggn.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:32:11 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.139.193 as permitted sender) client-ip=10.236.139.193; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.139.193 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.139.193]) by 10.236.139.193 with SMTP id c41mr5054605yhj.24.1330021931850 (num_hops = 1); Thu, 23 Feb 2012 10:32:11 -0800 (PST)
Received: by 10.236.139.193 with SMTP id c41mr4091214yhj.24.1330021931745; Thu, 23 Feb 2012 10:32:11 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id j2sm3452658ani.19.2012.02.23.10.32.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 10:32:11 -0800 (PST)
Message-ID: <4F468629.1000106@tonian.com>
Date: Thu, 23 Feb 2012 10:32:09 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Spencer Shepler <sshepler@microsoft.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <CAEMWVhtdijvwA8+LXMvrMP2g4j1F899xJtHiSAaNCTN47RoqiQ@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D43@TK5EX14MBXC254.redmond.corp.microsoft.com>
In-Reply-To: <039D3CB813A4D544863BB7D4F46A1857142D43@TK5EX14MBXC254.redmond.corp.microsoft.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQnswxN1VS8uxs4bGcubnwJ03ZNnB6KSFRTGl+Y9Un6mfR73Js6PQH/WcatIDzNCjCnoDZ5a
Cc: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 18:32:13 -0000

On 2012-02-23 09:07, Spencer Shepler wrote:
> 
> Benny,
> 
> You mention a proposed errata; do you have a reference for that?

Unfortunately, no.  If I recall correctly we discussed it verbally in
Maastricht but I can't find a written reference od the discussion.
(Probably summarized in my Panasas mailbox which I have no access to)

I can draft a proposal and send to the list.

Benny

> If so, great, if not, then something needs to hit this alias
> so we can have a comment and then submit it to the ietf errata site.
> 
> Spencer
> 
> 
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of Benny Halevy
> Sent: Thursday, February 23, 2012 4:26 AM
> To: Erasani, Pranoop
> Cc: nfsv4@ietf.org
> Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
> 
> On Feb 23, 2012 12:52 AM, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com> wrote:
>>
>> There was some discussion about this at connectathon today.
>>
>> As you know, to get to the layout, a client needs to issue a LAYOUTGET with the open stateid. According to the spec, a client MUST use the layout it got on subsequent LAYOUTGET operations.
>>
>> 12.5.2 Getting a Layout
>> ....
>>
>>   In order to get a layout, the client must first have opened the file
>>   via the OPEN operation.  When a client has no layout on a file, it
>>   MUST present an open stateid, a delegation stateid, or a byte-range
>>   lock stateid in the loga_stateid argument.  A successful LAYOUTGET
>>   result includes a layout stateid.  The first successful LAYOUTGET
>>   processed by the server using a non-layout stateid as an argument
>>   MUST have the "seqid" field of the layout stateid in the response set
>>   to one.  Thereafter, the client MUST use a layout stateid (see
>>   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
>>   the "seqid" MUST NOT be set to zero.  Once the layout has been
>>   retrieved, it can be held across multiple OPEN and CLOSE sequences.
>>   Therefore, a client may hold a layout for a file that is not
>>   currently open by any user on the client.  This allows for the
>>   caching of layouts beyond CLOSE.
>> ...
>>
>> Apparently, there are use cases (or maybe conditions) where a client would forget the layout it has and that could result in issuing a LAYOUTGET with the same open stateid that it used before to get the layout stateid. The catch here is that the server did not forget the layout and client did not do a LAYOUTRETURN. So, oblivious to the fact that the client lost track of it, the server returns the exisiting layout stateid. That begs for few questions:
> 
> We've discussed this issue in the past, for example here:
> http://www.spinics.net/lists/linux-nfs/msg19053.html
> 
> According to the proposed errata, the client must serialize layoutgets
> with the open stateid. This allows the server to release the layout
> state the client might had as if it implicitly sent a layoutreturn for
> the file.
> 
> 
>>
>> 1). Is it a bad thing for server to return existing layout stateid and potentially return a seqid that may not start with 1?
> 
> given the serialization requirement on the client the assumption (and
> the simulatio I ran) was that this would work.
> 
>>
>> 2).Should/Must the server assume that the second LAYOUTGET with open stateid from the client is a hint in itself for the server to remove the existing layout (and generate new layout) and/or set the seqid back to one?
> 
> Yes
> 
>>
>> I'm of the opinion that, server cannot assume that the second LAYOUTGET(open stateid) is an indication for server to delete earlier instance of layout. Any thoughts?
> 
> The errata should say the opposite.
> For the forgetful client model to work this protocol issue must be fixed.
> 
> Benny
> 
>>
>> - Pranoop
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From faisaman4@gmail.com  Thu Feb 23 10:48:19 2012
Return-Path: <faisaman4@gmail.com>
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 2813421F883D for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:48:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level: 
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SJx09qkMHLoz for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:48:18 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id EAE4721F8842 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:48:17 -0800 (PST)
Received: by vbbfr13 with SMTP id fr13so1208918vbb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:48:17 -0800 (PST)
Received-SPF: pass (google.com: domain of faisaman4@gmail.com designates 10.220.115.135 as permitted sender) client-ip=10.220.115.135; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of faisaman4@gmail.com designates 10.220.115.135 as permitted sender) smtp.mail=faisaman4@gmail.com; dkim=pass header.i=faisaman4@gmail.com
Received: from mr.google.com ([10.220.115.135]) by 10.220.115.135 with SMTP id i7mr1778401vcq.40.1330022897450 (num_hops = 1); Thu, 23 Feb 2012 10:48:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KO9m/T4BkfjIPtJIJfV/KDlWneTjwdK1fdtMhSKTev4=; b=R2jKERbnQ0NBELu4heS2350Q0j4/7Tkxf1PMLVyV63jaELAFzlp8/D5Sp4GR9UMooz vrnN/3hJuJCKLe8lQ8QJyyAKVvMB383qXh7jrEDhTQleOzXxSUG/EVo6pdWE0L5oacOk YU+MZT+kpHn1L5lwJaeXXcqjkJ834SBNawjFw=
MIME-Version: 1.0
Received: by 10.220.115.135 with SMTP id i7mr1480327vcq.40.1330022897365; Thu, 23 Feb 2012 10:48:17 -0800 (PST)
Sender: faisaman4@gmail.com
Received: by 10.52.72.44 with HTTP; Thu, 23 Feb 2012 10:48:17 -0800 (PST)
In-Reply-To: <1330021388.2423.5.camel@lade.trondhjem.org>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org>
Date: Thu, 23 Feb 2012 13:48:17 -0500
X-Google-Sender-Auth: lgFDht9Aegl9HzbOcEcEUrZDgzA
Message-ID: <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com>
From: Fred Isaman <iisaman@citi.umich.edu>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 18:48:19 -0000

On Thu, Feb 23, 2012 at 1:23 PM, Myklebust, Trond
<Trond.Myklebust@netapp.com> wrote:
> On Thu, 2012-02-23 at 08:50 +0000, Erasani, Pranoop wrote:
>> There was some discussion about this at connectathon today.
>>
>> As you know, to get to the layout, a client needs to issue a LAYOUTGET w=
ith the open stateid. According to the spec, a client MUST use the layout i=
t got on subsequent LAYOUTGET operations.
>>
>> 12.5.2 Getting a Layout
>> ....
>>
>> =A0 =A0In order to get a layout, the client must first have opened the f=
ile
>> =A0 =A0via the OPEN operation. =A0When a client has no layout on a file,=
 it
>> =A0 =A0MUST present an open stateid, a delegation stateid, or a byte-ran=
ge
>> =A0 =A0lock stateid in the loga_stateid argument. =A0A successful LAYOUT=
GET
>> =A0 =A0result includes a layout stateid. =A0The first successful LAYOUTG=
ET
>> =A0 =A0processed by the server using a non-layout stateid as an argument
>> =A0 =A0MUST have the "seqid" field of the layout stateid in the response=
 set
>> =A0 =A0to one. =A0Thereafter, the client MUST use a layout stateid (see
>> =A0 =A0Section 12.5.3) on future invocations of LAYOUTGET on the file, a=
nd
>> =A0 =A0the "seqid" MUST NOT be set to zero. =A0Once the layout has been
>> =A0 =A0retrieved, it can be held across multiple OPEN and CLOSE sequence=
s.
>> =A0 =A0Therefore, a client may hold a layout for a file that is not
>> =A0 =A0currently open by any user on the client. =A0This allows for the
>> =A0 =A0caching of layouts beyond CLOSE.
>> ...
>>
>> Apparently, there are use cases (or maybe conditions) where a client wou=
ld forget the layout it has and that could result in issuing a LAYOUTGET wi=
th the same open stateid that it used before to get the layout stateid. The=
 catch here is that the server did not forget the layout and client did not=
 do a LAYOUTRETURN. So, oblivious to the fact that the client lost track of=
 it, the server returns the exisiting layout stateid. That begs for few que=
stions:
>>
>> 1). Is it a bad thing for server to return existing layout stateid and p=
otentially return a seqid that may not start with 1?
>
> No. It would seem like a reasonable thing to me for the server to be
> allowed to continue to track a layout if it believes that layout is
> still valid. A forgetful client cannot assume that the server will
> always forget too.
>
> That said, I believe that it would be wrong for the server to refuse the
> LAYOUTGET request on the basis that it thinks the client knows about a
> layout that has been forgotten.
>
>> 2).Should/Must the server assume that the second LAYOUTGET with open sta=
teid from the client is a hint in itself for the server to remove the exist=
ing layout (and generate new layout) and/or set the seqid back to one?
>>
>> I'm of the opinion that, server cannot assume that the second LAYOUTGET(=
open stateid) is an indication for server to delete earlier instance of lay=
out. Any thoughts?
>
> I don't see that there is much of a consequence for the client either
> way. A forgetful client must always be prepared for a recall that it
> doesn't recognise.
>

We went through this last year.  Consensus was reached then that the
client sending a LAYOUTGET(openstateid) implied that the client had
forgotten all previous layout state.  The current linux client is
written using this assumption.  As discussed before, without this
assumption, a client could send parallel LAYOUTGET(openstateids), and
there are then cases where the server and client get out of synch.  So
the client has to serialize LAYOUTGET(openstateids).  But once it has
sent the first, it has a layoutstateid and may not send another
openstateid until it has forgotten its layout state.

Fred

From Pranoop.Erasani@netapp.com  Thu Feb 23 10:59:37 2012
Return-Path: <Pranoop.Erasani@netapp.com>
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 0DB4A21F87AA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:59:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4mEMbejJyLGr for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 10:59:36 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 219B121F870B for <nfsv4@ietf.org>; Thu, 23 Feb 2012 10:59:36 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,471,1325491200"; d="scan'208";a="628056165"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 10:59:20 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1NIxKis021920; Thu, 23 Feb 2012 10:59:20 -0800 (PST)
Received: from SACEXCMBX03-PRD.hq.netapp.com ([169.254.5.175]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 10:59:20 -0800
From: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
To: Fred Isaman <iisaman@citi.umich.edu>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyBYY40JL5ICJyS8eNCluSoB+npwAlb5KAAADfhIAAEG6NEA==
Date: Thu, 23 Feb 2012 18:59:19 +0000
Message-ID: <876AF623CC82644FBE6AE75723CA5FAC124482@SACEXCMBX03-PRD.hq.netapp.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com>
In-Reply-To: <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 18:59:37 -0000

> -----Original Message-----
> From: faisaman4@gmail.com [mailto:faisaman4@gmail.com] On Behalf Of
> Fred Isaman
> Sent: Thursday, February 23, 2012 10:48 AM
> To: Myklebust, Trond
> Cc: Erasani, Pranoop; nfsv4@ietf.org
> Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stat=
eid
>=20
> On Thu, Feb 23, 2012 at 1:23 PM, Myklebust, Trond
> <Trond.Myklebust@netapp.com> wrote:
> > On Thu, 2012-02-23 at 08:50 +0000, Erasani, Pranoop wrote:
> >> There was some discussion about this at connectathon today.
> >>
> >> As you know, to get to the layout, a client needs to issue a LAYOUTGET
> with the open stateid. According to the spec, a client MUST use the layou=
t it
> got on subsequent LAYOUTGET operations.
> >>
> >> 12.5.2 Getting a Layout
> >> ....
> >>
> >> =A0 =A0In order to get a layout, the client must first have opened the
> >> file
> >> =A0 =A0via the OPEN operation. =A0When a client has no layout on a fil=
e, it
> >> =A0 =A0MUST present an open stateid, a delegation stateid, or a
> >> byte-range
> >> =A0 =A0lock stateid in the loga_stateid argument. =A0A successful LAYO=
UTGET
> >> =A0 =A0result includes a layout stateid. =A0The first successful LAYOU=
TGET
> >> =A0 =A0processed by the server using a non-layout stateid as an argume=
nt
> >> =A0 =A0MUST have the "seqid" field of the layout stateid in the respon=
se
> >> set
> >> =A0 =A0to one. =A0Thereafter, the client MUST use a layout stateid (se=
e
> >> =A0 =A0Section 12.5.3) on future invocations of LAYOUTGET on the file,
> >> and
> >> =A0 =A0the "seqid" MUST NOT be set to zero. =A0Once the layout has bee=
n
> >> =A0 =A0retrieved, it can be held across multiple OPEN and CLOSE sequen=
ces.
> >> =A0 =A0Therefore, a client may hold a layout for a file that is not
> >> =A0 =A0currently open by any user on the client. =A0This allows for th=
e
> >> =A0 =A0caching of layouts beyond CLOSE.
> >> ...
> >>
> >> Apparently, there are use cases (or maybe conditions) where a client
> would forget the layout it has and that could result in issuing a LAYOUTG=
ET
> with the same open stateid that it used before to get the layout stateid.=
 The
> catch here is that the server did not forget the layout and client did no=
t do a
> LAYOUTRETURN. So, oblivious to the fact that the client lost track of it,=
 the
> server returns the exisiting layout stateid. That begs for few questions:
> >>
> >> 1). Is it a bad thing for server to return existing layout stateid and
> potentially return a seqid that may not start with 1?
> >
> > No. It would seem like a reasonable thing to me for the server to be
> > allowed to continue to track a layout if it believes that layout is
> > still valid. A forgetful client cannot assume that the server will
> > always forget too.
> >
> > That said, I believe that it would be wrong for the server to refuse
> > the LAYOUTGET request on the basis that it thinks the client knows
> > about a layout that has been forgotten.
> >
> >> 2).Should/Must the server assume that the second LAYOUTGET with open
> stateid from the client is a hint in itself for the server to remove the =
existing
> layout (and generate new layout) and/or set the seqid back to one?
> >>
> >> I'm of the opinion that, server cannot assume that the second
> LAYOUTGET(open stateid) is an indication for server to delete earlier
> instance of layout. Any thoughts?
> >
> > I don't see that there is much of a consequence for the client either
> > way. A forgetful client must always be prepared for a recall that it
> > doesn't recognise.
> >
>=20
> We went through this last year.  Consensus was reached then that the clie=
nt
> sending a LAYOUTGET(openstateid) implied that the client had forgotten al=
l
> previous layout state.  The current linux client is written using this
> assumption.  As discussed before, without this assumption, a client could
> send parallel LAYOUTGET(openstateids), and there are then cases where the
> server and client get out of synch.  So the client has to serialize
> LAYOUTGET(openstateids).  But once it has sent the first, it has a
> layoutstateid and may not send another openstateid until it has forgotten
> its layout state.


Consensus between whom though? Linux client and Linux server?

Errata has not been filed. It needs to go through discussion again. I'd wai=
t for Benny's proposed errata.

- Pranoop

>=20
> Fred

From sshepler@microsoft.com  Thu Feb 23 11:00:15 2012
Return-Path: <sshepler@microsoft.com>
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 13BC721F87BF for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:00:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kKLTgb93HQnA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:00:14 -0800 (PST)
Received: from DB3EHSOBE001.bigfish.com (db3ehsobe003.messaging.microsoft.com [213.199.154.141]) by ietfa.amsl.com (Postfix) with ESMTP id D22DC21F87AA for <nfsv4@ietf.org>; Thu, 23 Feb 2012 11:00:13 -0800 (PST)
Received: from mail24-db3-R.bigfish.com (10.3.81.239) by DB3EHSOBE001.bigfish.com (10.3.84.21) with Microsoft SMTP Server id 14.1.225.23; Thu, 23 Feb 2012 19:00:12 +0000
Received: from mail24-db3 (localhost [127.0.0.1])	by mail24-db3-R.bigfish.com (Postfix) with ESMTP id DEF651605E5; Thu, 23 Feb 2012 19:00:12 +0000 (UTC)
X-SpamScore: -38
X-BigFish: VS-38(zz9371I936eK542M1432N98dKzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC106.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail24-db3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC106.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail24-db3 (localhost.localdomain [127.0.0.1]) by mail24-db3 (MessageSwitch) id 1330023610604817_29763; Thu, 23 Feb 2012 19:00:10 +0000 (UTC)
Received: from DB3EHSMHS016.bigfish.com (unknown [10.3.81.242])	by mail24-db3.bigfish.com (Postfix) with ESMTP id 915F33C0045; Thu, 23 Feb 2012 19:00:10 +0000 (UTC)
Received: from TK5EX14HUBC106.redmond.corp.microsoft.com (131.107.125.8) by DB3EHSMHS016.bigfish.com (10.3.87.116) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 23 Feb 2012 19:00:08 +0000
Received: from TK5EX14MBXC254.redmond.corp.microsoft.com ([169.254.2.100]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.02.0247.005; Thu, 23 Feb 2012 18:59:42 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: Fred Isaman <iisaman@citi.umich.edu>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyBYY40JL5ICJyS8eNCluSoB+npwAUrAmAAADfhIAAAGE7kA==
Date: Thu, 23 Feb 2012 18:59:41 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com>
In-Reply-To: <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.78]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 19:00:15 -0000

Reference the thread of discussion please and then someone will need to vol=
unteer to provide the updated text to submit as an errata.

Anyone picking up on a theme?

Spencer

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of F=
red Isaman
Sent: Thursday, February 23, 2012 10:48 AM
To: Myklebust, Trond
Cc: Erasani, Pranoop; nfsv4@ietf.org
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open statei=
d

On Thu, Feb 23, 2012 at 1:23 PM, Myklebust, Trond
<Trond.Myklebust@netapp.com> wrote:
> On Thu, 2012-02-23 at 08:50 +0000, Erasani, Pranoop wrote:
>> There was some discussion about this at connectathon today.
>>
>> As you know, to get to the layout, a client needs to issue a LAYOUTGET w=
ith the open stateid. According to the spec, a client MUST use the layout i=
t got on subsequent LAYOUTGET operations.
>>
>> 12.5.2 Getting a Layout
>> ....
>>
>> =A0 =A0In order to get a layout, the client must first have opened the f=
ile
>> =A0 =A0via the OPEN operation. =A0When a client has no layout on a file,=
 it
>> =A0 =A0MUST present an open stateid, a delegation stateid, or a byte-ran=
ge
>> =A0 =A0lock stateid in the loga_stateid argument. =A0A successful LAYOUT=
GET
>> =A0 =A0result includes a layout stateid. =A0The first successful LAYOUTG=
ET
>> =A0 =A0processed by the server using a non-layout stateid as an argument
>> =A0 =A0MUST have the "seqid" field of the layout stateid in the response=
 set
>> =A0 =A0to one. =A0Thereafter, the client MUST use a layout stateid (see
>> =A0 =A0Section 12.5.3) on future invocations of LAYOUTGET on the file, a=
nd
>> =A0 =A0the "seqid" MUST NOT be set to zero. =A0Once the layout has been
>> =A0 =A0retrieved, it can be held across multiple OPEN and CLOSE sequence=
s.
>> =A0 =A0Therefore, a client may hold a layout for a file that is not
>> =A0 =A0currently open by any user on the client. =A0This allows for the
>> =A0 =A0caching of layouts beyond CLOSE.
>> ...
>>
>> Apparently, there are use cases (or maybe conditions) where a client wou=
ld forget the layout it has and that could result in issuing a LAYOUTGET wi=
th the same open stateid that it used before to get the layout stateid. The=
 catch here is that the server did not forget the layout and client did not=
 do a LAYOUTRETURN. So, oblivious to the fact that the client lost track of=
 it, the server returns the exisiting layout stateid. That begs for few que=
stions:
>>
>> 1). Is it a bad thing for server to return existing layout stateid and p=
otentially return a seqid that may not start with 1?
>
> No. It would seem like a reasonable thing to me for the server to be
> allowed to continue to track a layout if it believes that layout is
> still valid. A forgetful client cannot assume that the server will
> always forget too.
>
> That said, I believe that it would be wrong for the server to refuse the
> LAYOUTGET request on the basis that it thinks the client knows about a
> layout that has been forgotten.
>
>> 2).Should/Must the server assume that the second LAYOUTGET with open sta=
teid from the client is a hint in itself for the server to remove the exist=
ing layout (and generate new layout) and/or set the seqid back to one?
>>
>> I'm of the opinion that, server cannot assume that the second LAYOUTGET(=
open stateid) is an indication for server to delete earlier instance of lay=
out. Any thoughts?
>
> I don't see that there is much of a consequence for the client either
> way. A forgetful client must always be prepared for a recall that it
> doesn't recognise.
>

We went through this last year.  Consensus was reached then that the
client sending a LAYOUTGET(openstateid) implied that the client had
forgotten all previous layout state.  The current linux client is
written using this assumption.  As discussed before, without this
assumption, a client could send parallel LAYOUTGET(openstateids), and
there are then cases where the server and client get out of synch.  So
the client has to serialize LAYOUTGET(openstateids).  But once it has
sent the first, it has a layoutstateid and may not send another
openstateid until it has forgotten its layout state.

Fred
_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4



From eshel@almaden.ibm.com  Thu Feb 23 11:17:51 2012
Return-Path: <eshel@almaden.ibm.com>
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 DF19121F884D for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:17:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EhBbX+Rp95Kw for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:17:50 -0800 (PST)
Received: from e8.ny.us.ibm.com (e8.ny.us.ibm.com [32.97.182.138]) by ietfa.amsl.com (Postfix) with ESMTP id 4B4A321F8815 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 11:17:50 -0800 (PST)
Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 23 Feb 2012 14:17:49 -0500
Received: from d01dlp02.pok.ibm.com (9.56.224.85) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 23 Feb 2012 14:17:48 -0500
Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id C7C406E807C for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:17:46 -0500 (EST)
Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1NJHkVo207670 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:17:46 -0500
Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1NJHPd1005897 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:17:25 -0500
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1NJHG46004842; Thu, 23 Feb 2012 14:17:17 -0500
In-Reply-To: <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>	<CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com>
To: Spencer Shepler <sshepler@microsoft.com>
MIME-Version: 1.0
X-KeepSent: 6104E85E:3D7540B8-882579AD:00668F1B; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 11:17:14 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/23/2012 14:17:17, Serialize complete at 02/23/2012 14:17:17
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022319-9360-0000-0000-000003E98390
Cc: NFSv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 19:17:52 -0000

So here is my correction to the logr_return_on_close result field in 
18.43.3 that should go into v4.1 errata.

section 18.43.3 say:
The logr_return_on_close result field is a directive to return the layout 
before closing the file.  When the metadata server sets this  return value 
to TRUE, it MUST be prepared to recall the layout in the case in which the 
client fails to return the layout before close.  For the metadata server 
that knows a layout must be returned before a close of the file, this 
return value can be used to communicate the desired behavior to the client 
and thus remove one extra step from the client's and metadata server's 
interaction.
it should say:
The logr_return_on_close result field is a directive to return or forget 
the layout before closing the file . When the metadata server sets this 
return value to TRUE, it can assume that the client MUST not use the 
layout after the file was closed. This return value is used to communicate 
to the client that any layout or segment of a layout that were given with 
logr_return_on_close set to TRUE will result in the server invalidating 
all layouts for the file after it was closed. 
Notes:
This directive will remove one or more extra steps from the client's and 
metadata server's interaction.


Marc.



From:
Spencer Shepler <sshepler@microsoft.com>
To:
Benny Halevy <bhalevy@tonian.com>, Marc Eshel <eshel@almaden.ibm.com>
Cc:
NFSv4 <nfsv4@ietf.org>
Date:
02/23/2012 09:14 AM
Subject:
Re: [nfsv4] layout return
Sent by:
nfsv4-bounces@ietf.org



 
Marc,
 
Given the previous discussion, you should draft the needed errata, send to 
the WG and once
we have concensus, it can be posted to the ietf errata site.
 
Spencer
 
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of 
Benny Halevy
Sent: Thursday, February 23, 2012 3:53 AM
To: Marc Eshel
Cc: NFSv4
Subject: Re: [nfsv4] layout return
 

On Feb 22, 2012 9:16 PM, "Marc Eshel" <eshel@almaden.ibm.com> wrote:
>
> It looks like some developers understood the return_on_close to mean 
that
> if the server sets it on the client doesn't have to return the layout 
and
> the close is an indication that it is not holding the layout anymore. I
> think this is a good idea but from the following section of the spec it
> sounds that if the client doesn't return the layout the server still 
needs
> to recall the layout. Is there a reason why the server can't just assume
> that close implies that the client gave up the layout?
We've discussed this in the past but it seems the ball got dropped.
http://www.ietf.org/mail-archive/web/nfsv4/current/msg08817.html
Benny

> Marc.
>
> 18.43.3
>
> The logr_return_on_close result field is a directive to return the
>  layout before closing the file.  When the metadata server sets this
>  return value to TRUE, it MUST be prepared to recall the layout in the
>  case in which the client fails to return the layout before close.
>  For the metadata server that knows a layout must be returned before a
>  close of the file, this return value can be used to communicate the
>  desired behavior to the client and thus remove one extra step from
>  the client's and metadata server's interaction.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4




From Trond.Myklebust@netapp.com  Thu Feb 23 11:34:32 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 7A2C421F870B for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:34:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.536
X-Spam-Level: 
X-Spam-Status: No, score=-10.536 tagged_above=-999 required=5 tests=[AWL=0.063, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YPtb8rje-+9o for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:34:31 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 9499B21F86E3 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 11:34:28 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,471,1325491200"; d="scan'208";a="628067961"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 11:34:28 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1NJYStn021114; Thu, 23 Feb 2012 11:34:28 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 11:34:27 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Marc Eshel <eshel@almaden.ibm.com>
Thread-Topic: [nfsv4] layout return
Thread-Index: AQHM8mInjxK4yXxJ0k2RVBpLF3aFfA==
Date: Thu, 23 Feb 2012 19:34:26 +0000
Message-ID: <1330025664.2423.22.camel@lade.trondhjem.org>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com>
In-Reply-To: <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="utf-8"
Content-ID: <BA0B7F8AEFEFBF4B9D10028F2D8D1662@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: NFSv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 19:34:32 -0000

T24gVGh1LCAyMDEyLTAyLTIzIGF0IDExOjE3IC0wODAwLCBNYXJjIEVzaGVsIHdyb3RlOg0KPiBT
byBoZXJlIGlzIG15IGNvcn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XN0aW5mby9uZnN2NA0KPiBfX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBuZnN2NCBtYWlsaW5nIGxpc3QN
Cj4gbmZzdjRAaWV0Zi5vcmcNCj4gaHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5m
by9uZnN2NA0KPiANCj4gDQo+IA0KPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fXw0KPiBuZnN2NCBtYWlsaW5nIGxpc3QNCj4gbmZzdjRAaWV0Zi5vcmcNCj4g
aHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9uZnN2NA0KDQotLSANClRyb25k
IE15a2xlYnVzdA0KTGludXggTkZTIGNsaWVudCBtYWludGFpbmVyDQoNCk5ldEFwcA0KVHJvbmQu
TXlrbGVidXN0QG5ldGFwcC5jb20NCnd3dy5uZXRhcHAuY29tDQoNCg==

From rbg@openrbg.com  Thu Feb 23 11:43:24 2012
Return-Path: <rbg@openrbg.com>
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 EFE6421F87AB for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:43:23 -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 ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yzi0GSqztQBQ for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:43:23 -0800 (PST)
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by ietfa.amsl.com (Postfix) with ESMTP id 3F6B221F87A2 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 11:43:23 -0800 (PST)
X-Authority-Analysis: v=2.0 cv=M9vP2lMs c=1 sm=0 a=QiXrWmh9ddMomKjEdPIv5w==:17 a=PXGOc8pxENwA:10 a=otQJf1u_EgAA:10 a=wPDyFdB5xvgA:10 a=kj9zAlcOel0A:10 a=4KRehq-d0oRSZ9kGmkUA:9 a=CjuIK1q_8ugA:10 a=QiXrWmh9ddMomKjEdPIv5w==:117
X-Cloudmark-Score: 0
X-Originating-IP: 70.114.176.74
Received: from [70.114.176.74] ([70.114.176.74:39001] helo=macrbg.homeunix.net) by hrndva-oedge03.mail.rr.com (envelope-from <rbg@openrbg.com>) (ecelerity 2.2.3.46 r()) with ESMTP id AE/FC-05889-AD6964F4; Thu, 23 Feb 2012 19:43:22 +0000
Received: from localhost (localhost [127.0.0.1]) by macrbg.homeunix.net (Postfix) with ESMTP id 9FFED161481B for <nfsv4@ietf.org>; Thu, 23 Feb 2012 13:43:21 -0600 (CST)
X-Virus-Scanned: amavisd-new at macrbg.com
Received: from macrbg.homeunix.net ([127.0.0.1]) by localhost (server.macrbg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LhaZ9U97BlSi for <nfsv4@ietf.org>; Thu, 23 Feb 2012 13:43:20 -0600 (CST)
Received: from [172.16.1.99] (unknown [70.114.176.74]) by macrbg.homeunix.net (Postfix) with ESMTPSA id 8D1B2161480B for <nfsv4@ietf.org>; Thu, 23 Feb 2012 13:43:20 -0600 (CST)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1257)
From: Robert Gordon <rbg@openrbg.com>
In-Reply-To: <1330025664.2423.22.camel@lade.trondhjem.org>
Date: Thu, 23 Feb 2012 13:43:19 -0600
Content-Transfer-Encoding: 7bit
Message-Id: <24C37108-ACE7-4100-ABA8-80CDAD517D16@openrbg.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org>
To: NFSv4 list <nfsv4@ietf.org>
X-Mailer: Apple Mail (2.1257)
Subject: Re: [nfsv4] layout return
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 19:43:24 -0000

On Feb 23, 2012, at 1:34 PM, Myklebust, Trond wrote:

> I think we need a stronger statement:
> 
> "When the metadata server sets the logr_return_on_close value to TRUE,
> the client MUST NOT use the layout after sending the last CLOSE of that
> file. Any outstanding COMMIT to the DSes or LAYOUTCOMMIT to the MDS MUST
> be sent prior to closing the file."

This is good. 

-- Robert. 

From bhalevy@tonian.com  Thu Feb 23 11:46:48 2012
Return-Path: <bhalevy@tonian.com>
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 0714B21F8864 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:46:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fIyvgAULmLNM for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 11:46:47 -0800 (PST)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 064F821F8804 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 11:46:46 -0800 (PST)
Received: by ggnq2 with SMTP id q2so921230ggn.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 11:46:46 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.144.134 as permitted sender) client-ip=10.236.144.134; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.144.134 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.144.134]) by 10.236.144.134 with SMTP id n6mr5710718yhj.50.1330026406383 (num_hops = 1); Thu, 23 Feb 2012 11:46:46 -0800 (PST)
Received: by 10.236.144.134 with SMTP id n6mr4614295yhj.50.1330026406279; Thu, 23 Feb 2012 11:46:46 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id d66sm6014068yhh.12.2012.02.23.11.46.45 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 11:46:45 -0800 (PST)
Message-ID: <4F4697A3.7090000@tonian.com>
Date: Thu, 23 Feb 2012 11:46:43 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Spencer Shepler <sshepler@microsoft.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com>
In-Reply-To: <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQlRzMohagwJIV43mfHmjfOY0L5YSiY4sVTC5cEuyzbeM5Fsrd25aiBO60iVU931F7dtgf6j
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 19:46:48 -0000

On 2012-02-23 10:59, Spencer Shepler wrote:
> 
> Reference the thread of discussion please and then someone will need to volunteer to provide the updated text to submit as an errata.
> 
> Anyone picking up on a theme?

I volunteer.

Benny

> 
> Spencer
> 
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of Fred Isaman
> Sent: Thursday, February 23, 2012 10:48 AM
> To: Myklebust, Trond
> Cc: Erasani, Pranoop; nfsv4@ietf.org
> Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
> 
> On Thu, Feb 23, 2012 at 1:23 PM, Myklebust, Trond
> <Trond.Myklebust@netapp.com> wrote:
>> On Thu, 2012-02-23 at 08:50 +0000, Erasani, Pranoop wrote:
>>> There was some discussion about this at connectathon today.
>>>
>>> As you know, to get to the layout, a client needs to issue a LAYOUTGET with the open stateid. According to the spec, a client MUST use the layout it got on subsequent LAYOUTGET operations.
>>>
>>> 12.5.2 Getting a Layout
>>> ....
>>>
>>>    In order to get a layout, the client must first have opened the file
>>>    via the OPEN operation.  When a client has no layout on a file, it
>>>    MUST present an open stateid, a delegation stateid, or a byte-range
>>>    lock stateid in the loga_stateid argument.  A successful LAYOUTGET
>>>    result includes a layout stateid.  The first successful LAYOUTGET
>>>    processed by the server using a non-layout stateid as an argument
>>>    MUST have the "seqid" field of the layout stateid in the response set
>>>    to one.  Thereafter, the client MUST use a layout stateid (see
>>>    Section 12.5.3) on future invocations of LAYOUTGET on the file, and
>>>    the "seqid" MUST NOT be set to zero.  Once the layout has been
>>>    retrieved, it can be held across multiple OPEN and CLOSE sequences.
>>>    Therefore, a client may hold a layout for a file that is not
>>>    currently open by any user on the client.  This allows for the
>>>    caching of layouts beyond CLOSE.
>>> ...
>>>
>>> Apparently, there are use cases (or maybe conditions) where a client would forget the layout it has and that could result in issuing a LAYOUTGET with the same open stateid that it used before to get the layout stateid. The catch here is that the server did not forget the layout and client did not do a LAYOUTRETURN. So, oblivious to the fact that the client lost track of it, the server returns the exisiting layout stateid. That begs for few questions:
>>>
>>> 1). Is it a bad thing for server to return existing layout stateid and potentially return a seqid that may not start with 1?
>>
>> No. It would seem like a reasonable thing to me for the server to be
>> allowed to continue to track a layout if it believes that layout is
>> still valid. A forgetful client cannot assume that the server will
>> always forget too.
>>
>> That said, I believe that it would be wrong for the server to refuse the
>> LAYOUTGET request on the basis that it thinks the client knows about a
>> layout that has been forgotten.
>>
>>> 2).Should/Must the server assume that the second LAYOUTGET with open stateid from the client is a hint in itself for the server to remove the existing layout (and generate new layout) and/or set the seqid back to one?
>>>
>>> I'm of the opinion that, server cannot assume that the second LAYOUTGET(open stateid) is an indication for server to delete earlier instance of layout. Any thoughts?
>>
>> I don't see that there is much of a consequence for the client either
>> way. A forgetful client must always be prepared for a recall that it
>> doesn't recognise.
>>
> 
> We went through this last year.  Consensus was reached then that the
> client sending a LAYOUTGET(openstateid) implied that the client had
> forgotten all previous layout state.  The current linux client is
> written using this assumption.  As discussed before, without this
> assumption, a client could send parallel LAYOUTGET(openstateids), and
> there are then cases where the server and client get out of synch.  So
> the client has to serialize LAYOUTGET(openstateids).  But once it has
> sent the first, it has a layoutstateid and may not send another
> openstateid until it has forgotten its layout state.
> 
> Fred
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Thu Feb 23 14:27:32 2012
Return-Path: <eshel@almaden.ibm.com>
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 EEFB321F86F2 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 14:27:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id owOj4DdHbNCQ for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 14:27:31 -0800 (PST)
Received: from e8.ny.us.ibm.com (e8.ny.us.ibm.com [32.97.182.138]) by ietfa.amsl.com (Postfix) with ESMTP id 0A42E21F86E3 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:27:30 -0800 (PST)
Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 23 Feb 2012 17:27:29 -0500
Received: from d01dlp02.pok.ibm.com (9.56.224.85) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 23 Feb 2012 17:26:39 -0500
Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 5D4396E804A for <nfsv4@ietf.org>; Thu, 23 Feb 2012 17:26:38 -0500 (EST)
Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1NMQcDu2257124 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 17:26:38 -0500
Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1NMQcE0008152 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 20:26:38 -0200
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1NMQcsG008142; Thu, 23 Feb 2012 20:26:38 -0200
In-Reply-To: <1330025664.2423.22.camel@lade.trondhjem.org>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>		<CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
MIME-Version: 1.0
X-KeepSent: F6FD6B2B:0BC33E0C-882579AD:007A3D9E; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 14:26:34 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/23/2012 17:26:38, Serialize complete at 02/23/2012 17:26:38
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022322-9360-0000-0000-000003EB94DE
Cc: NFSv4 <nfsv4@ietf.org>
Subject: [nfsv4]  layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 22:27:32 -0000

Update to my correction to the logr_return_on_close result field in 
18.43.3 that should go into v4.1 errata.
Marc.

section 18.43.3 say:

The logr_return_on_close result field is a directive to return the layout 
before closing the file.  When the metadata server sets this  return value 

to TRUE, it MUST be prepared to recall the layout in the case in which the 

client fails to return the layout before close.  For the metadata server 
that knows a layout must be returned before a close of the file, this 
return value can be used to communicate the desired behavior to the client 

and thus remove one extra step from the client's and metadata server's 
interaction.

it should say:

The logr_return_on_close result field is a directive to return or forget 
the layout before closing the file . When the metadata server sets this 
return value to TRUE, the client MUST NOT use the layout after sending 
the last CLOSE of that file. Any outstanding COMMIT to the data servers
or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
file. This return value is used to communicate to the client that any 
layout or segment of a layout that were given with logr_return_on_close 
set to TRUE will result in the server invalidating all layouts for the 
file after it was closed. 

Notes:

This directive will remove one or more extra steps from the client's and 
metadata server's interaction.




From bhalevy@tonian.com  Thu Feb 23 14:41:04 2012
Return-Path: <bhalevy@tonian.com>
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 8ECBD11E8089 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 14:41:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d3wkP2U25Xgw for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 14:41:03 -0800 (PST)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id 6411E11E8074 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:41:03 -0800 (PST)
Received: by ghbg16 with SMTP id g16so1009385ghb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:41:03 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.173.132 as permitted sender) client-ip=10.236.173.132; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.173.132 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.173.132]) by 10.236.173.132 with SMTP id v4mr6585576yhl.78.1330036863106 (num_hops = 1); Thu, 23 Feb 2012 14:41:03 -0800 (PST)
Received: by 10.236.173.132 with SMTP id v4mr5319420yhl.78.1330036862965; Thu, 23 Feb 2012 14:41:02 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id p18sm2167502ano.20.2012.02.23.14.41.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 14:41:02 -0800 (PST)
Message-ID: <4F46C07C.2090300@tonian.com>
Date: Thu, 23 Feb 2012 14:41:00 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com>
In-Reply-To: <4F4697A3.7090000@tonian.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQmmR1At0D7b+PsOGsRBFrozr4zUhsGltUI9u5wXkNKBm1JD8SMcl4/7KIsoF98PWZoU4Do+
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 22:41:04 -0000

My proposed errata follows below.
The gist of it is:
1. Initial LAYOUTGETs using non-layout stateid reset the layout state the client
   holds on the server.
2. Therefore these LAYOUTGETs MUST be serialized with any other layout operation
   on the file.

Benny

Section 12.5.2. says:
   The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.

It should say:
   The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.
|  The client MUST serialize LAYOUTGET operations using a non-layout
|  stateid with any other operation affecting the layout state on the file,
|  including CB_LAYOUTRECALL, to allow consistent initialization of the
|  layout state.

Add the following paragraph to section 12.5.3.:
   When the client is using the forgetful model (Section 12.5.5.1) it MAY
   forget its layout state and associated layout stateid at any time.
   In such a case, the client MUST use a non-layout stateid for the next
   LAYOUTGET operation.  This will signal the server that the client has
   no more layouts on the file and its respective layout state can be
   released before issuing a new layout in response to LAYOUTGET.

Section 12.5.5.2.1. says:
   One critical issue with regard to layout operations sequencing
   concerns callbacks.  The protocol must defend against races between
   the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
   CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
   implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
   to which the client has not yet received a reply.  The client detects
   such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
   layout stateid.  If the "seqid" is not exactly one higher than what
   the client currently has recorded, and the client has at least one
   LAYOUTGET and/or LAYOUTRETURN operation outstanding, the client knows
   the server sent the CB_LAYOUTRECALL after sending a response to an
   outstanding LAYOUTGET or LAYOUTRETURN.

It should say:
   One critical issue with regard to layout operations sequencing
   concerns callbacks.  The protocol must defend against races between
   the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
   CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
   implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
   to which the client has not yet received a reply.  The client detects
   such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
   layout stateid.  If the "seqid" is not exactly one higher than what
   the client currently has recorded, and the client has at least one
   LAYOUTGET and/or LAYOUTRETURN operation outstanding,
|  or if the client has a outstanding LAYOUTGET with a non-layout stateid,
   the client knows
   the server sent the CB_LAYOUTRECALL after sending a response to an
   outstanding LAYOUTGET or LAYOUTRETURN.

Section 12.5.5.2.1.1. says:
   It is permissible for the client to send multiple parallel LAYOUTGET
   operations for the same file or multiple parallel LAYOUTRETURN
   operations for the same file or a mix of both.

It should say:
    It is permissible for the client to send multiple parallel LAYOUTGET
    operations for the same file
|   using the layout stateid
    or multiple parallel LAYOUTRETURN
    operations for the same file or a mix of both.

Section 12.5.5.2.1.2. says:
   Note
   that in the first case, the "seqid" in the layout stateid of the
   recall is two greater than what the client has recorded;

It should say:
   Note
   that in the first case, the "seqid" in the layout stateid of the
   recall is two greater than what the client has recorded,
|  or the client has an outstanding LAYOUTGET using a non-layout stateid;

After the following paragraph in Section 18.43.3:
   The loga_stateid field specifies a valid stateid.  If a layout is not
   currently held by the client, the loga_stateid field represents a
   stateid reflecting the correspondingly valid open, byte-range lock,
   or delegation stateid.  Once a layout is held on the file by the
   client, the loga_stateid field MUST be a stateid as returned from a
   previous LAYOUTGET or LAYOUTRETURN operation or provided by a
   CB_LAYOUTRECALL operation (see Section 12.5.3).

Add the following paragraph:
|  When loga_stateid represents a non-layout stateid the server MUST
|  release any layout state previously held by the client as if the client
|  explicitly returned the layout using a corresponding LAYOUTRETURN
|  with lora_iomode of LAYOUTIOMODE4_ANY, lr_returntype of LAYOUTRETURN4_FILE,
|  lrf_offset value 0, and lrf_length value NFS4_UINT64_MAX. This is
|  particularly useful to clients implementing the forgetful model (Section
|  12.5.5.1) when acquiring a layout after unilaterally forgetting the layout
|  state.  This requirement mandates that the client serializes sending
|  a LAYOUTGET with non-layout statid with any other layout operation on
|  the file (See section 12.5.2).


From david.black@emc.com  Thu Feb 23 14:54:53 2012
Return-Path: <david.black@emc.com>
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 6E2C621F87F8 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 14:54:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.651
X-Spam-Level: 
X-Spam-Status: No, score=-109.651 tagged_above=-999 required=5 tests=[AWL=0.948, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PxmuRdy7CWMA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 14:54:51 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id C9D5F21F87BA for <nfsv4@ietf.org>; Thu, 23 Feb 2012 14:54:25 -0800 (PST)
Received: from hop04-l1d11-si03.isus.emc.com (HOP04-L1D11-SI03.isus.emc.com [10.254.111.23]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1NMsMRt010137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Feb 2012 17:54:22 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.129]) by hop04-l1d11-si03.isus.emc.com (RSA Interceptor); Thu, 23 Feb 2012 17:54:10 -0500
Received: from mxhub29.corp.emc.com (mxhub29.corp.emc.com [128.222.70.169]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1NMs94M018020; Thu, 23 Feb 2012 17:54:09 -0500
Received: from mx14a.corp.emc.com ([169.254.1.157]) by mxhub29.corp.emc.com ([128.222.70.169]) with mapi; Thu, 23 Feb 2012 17:54:09 -0500
From: <david.black@emc.com>
To: <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 17:54:07 -0500
Thread-Topic: [nfsv4]  layout return - update
Thread-Index: AczyemuGrZMVt3geRBOCQj+LYKs+0gAAtObA
Message-ID: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com>
In-Reply-To: <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 22:54:53 -0000

> This return value is used to communicate to the client that any
> layout or segment of a layout that were given with logr_return_on_close
> set to TRUE will result in the server invalidating all layouts for the
> file after it was closed.

The use of "any" and "all" above reads as logr_return_on_close being a glob=
al
flag - if server sets the flag once, all layouts for the file are invalidat=
ed
on close, even those for which the flag was set to FALSE.  That's not what =
was
intended, so the following text would be better:

This return value is used to inform the client that any layout or segment
of a layout that were given with logr_return_on_close set to TRUE will be
invalidated by the server when the client closes the file.

Thanks,
--David


> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of=
 Marc Eshel
> Sent: Thursday, February 23, 2012 5:27 PM
> To: Myklebust, Trond
> Cc: NFSv4
> Subject: [nfsv4] layout return - update
>=20
> Update to my correction to the logr_return_on_close result field in
> 18.43.3 that should go into v4.1 errata.
> Marc.
>=20
> section 18.43.3 say:
>=20
> The logr_return_on_close result field is a directive to return the layout
> before closing the file.  When the metadata server sets this return value
> to TRUE, it MUST be prepared to recall the layout in the case in which th=
e
> client fails to return the layout before close.  For the metadata server
> that knows a layout must be returned before a close of the file, this
> return value can be used to communicate the desired behavior to the clien=
t
> and thus remove one extra step from the client's and metadata server's
> interaction.
>=20
> it should say:
>=20
> The logr_return_on_close result field is a directive to return or forget
> the layout before closing the file . When the metadata server sets this
> return value to TRUE, the client MUST NOT use the layout after sending
> the last CLOSE of that file. Any outstanding COMMIT to the data servers
> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
> file. This return value is used to communicate to the client that any
> layout or segment of a layout that were given with logr_return_on_close
> set to TRUE will result in the server invalidating all layouts for the
> file after it was closed.
>=20
> Notes:
>=20
> This directive will remove one or more extra steps from the client's and
> metadata server's interaction.
>=20
>=20
>=20
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4


From david.noveck@emc.com  Thu Feb 23 15:12:44 2012
Return-Path: <david.noveck@emc.com>
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 596CF21F88B8 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:12:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.825
X-Spam-Level: 
X-Spam-Status: No, score=-9.825 tagged_above=-999 required=5 tests=[AWL=0.774,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ng9usFYhNJlZ for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:12:43 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 0A91221F88B3 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:12:42 -0800 (PST)
Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1NNCbDN008798 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Feb 2012 18:12:41 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.130]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor); Thu, 23 Feb 2012 18:12:23 -0500
Received: from mxhub33.corp.emc.com (mxhub33.corp.emc.com [10.254.93.81]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1NNCMBl011154; Thu, 23 Feb 2012 18:12:22 -0500
Received: from mx31a.corp.emc.com ([169.254.1.133]) by mxhub33.corp.emc.com ([::1]) with mapi; Thu, 23 Feb 2012 18:12:22 -0500
From: <david.noveck@emc.com>
To: <bhalevy@tonian.com>, <Pranoop.Erasani@netapp.com>
Date: Thu, 23 Feb 2012 18:12:19 -0500
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyfGS5FABQ3a9sSe60eOcvz1TRVAAAx/NA
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6B302813B@MX31A.corp.emc.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com>
In-Reply-To: <4F46C07C.2090300@tonian.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: Trond.Myklebust@netapp.com, nfsv4@ietf.org
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:12:44 -0000

>  When the client is using the forgetful model (Section 12.5.5.1) it MAY
>  forget its layout state and associated layout stateid at any time.

And when it is not using the forgetful model, it MAY NOT?  Aren't you
really saying "A client MAY always forget its layout state and associated=20
layout stateid at any time"?  If it was a mistake for RFC5661 not to say=20
that, then it was an awfully big one, and we should think very carefully
before making this correction/change.

Note that section 15.5.5.1 is entitled "Layout Recall Callback Robustness".

It does say it "may be useful for clients to 'forget' details about what
layouts and ranges the client actually has, leading to the
server's layout ranges being beyond those that the client "thinks"
it has".

I'm not clear that the fact that you have a layout for a particular file
or not is the kind of detail that is being referred to.=20

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of B=
enny Halevy
Sent: Thursday, February 23, 2012 5:41 PM
To: Erasani, Pranoop
Cc: Myklebust, Trond; nfsv4@ietf.org
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open statei=
d

My proposed errata follows below.
The gist of it is:
1. Initial LAYOUTGETs using non-layout stateid reset the layout state the c=
lient
   holds on the server.
2. Therefore these LAYOUTGETs MUST be serialized with any other layout oper=
ation
   on the file.

Benny

Section 12.5.2. says:
   The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.

It should say:
   The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.
|  The client MUST serialize LAYOUTGET operations using a non-layout
|  stateid with any other operation affecting the layout state on the file,
|  including CB_LAYOUTRECALL, to allow consistent initialization of the
|  layout state.

Add the following paragraph to section 12.5.3.:
   When the client is using the forgetful model (Section 12.5.5.1) it MAY
   forget its layout state and associated layout stateid at any time.
   In such a case, the client MUST use a non-layout stateid for the next
   LAYOUTGET operation.  This will signal the server that the client has
   no more layouts on the file and its respective layout state can be
   released before issuing a new layout in response to LAYOUTGET.

Section 12.5.5.2.1. says:
   One critical issue with regard to layout operations sequencing
   concerns callbacks.  The protocol must defend against races between
   the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
   CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
   implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
   to which the client has not yet received a reply.  The client detects
   such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
   layout stateid.  If the "seqid" is not exactly one higher than what
   the client currently has recorded, and the client has at least one
   LAYOUTGET and/or LAYOUTRETURN operation outstanding, the client knows
   the server sent the CB_LAYOUTRECALL after sending a response to an
   outstanding LAYOUTGET or LAYOUTRETURN.

It should say:
   One critical issue with regard to layout operations sequencing
   concerns callbacks.  The protocol must defend against races between
   the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
   CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
   implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
   to which the client has not yet received a reply.  The client detects
   such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
   layout stateid.  If the "seqid" is not exactly one higher than what
   the client currently has recorded, and the client has at least one
   LAYOUTGET and/or LAYOUTRETURN operation outstanding,
|  or if the client has a outstanding LAYOUTGET with a non-layout stateid,
   the client knows
   the server sent the CB_LAYOUTRECALL after sending a response to an
   outstanding LAYOUTGET or LAYOUTRETURN.

Section 12.5.5.2.1.1. says:
   It is permissible for the client to send multiple parallel LAYOUTGET
   operations for the same file or multiple parallel LAYOUTRETURN
   operations for the same file or a mix of both.

It should say:
    It is permissible for the client to send multiple parallel LAYOUTGET
    operations for the same file
|   using the layout stateid
    or multiple parallel LAYOUTRETURN
    operations for the same file or a mix of both.

Section 12.5.5.2.1.2. says:
   Note
   that in the first case, the "seqid" in the layout stateid of the
   recall is two greater than what the client has recorded;

It should say:
   Note
   that in the first case, the "seqid" in the layout stateid of the
   recall is two greater than what the client has recorded,
|  or the client has an outstanding LAYOUTGET using a non-layout stateid;

After the following paragraph in Section 18.43.3:
   The loga_stateid field specifies a valid stateid.  If a layout is not
   currently held by the client, the loga_stateid field represents a
   stateid reflecting the correspondingly valid open, byte-range lock,
   or delegation stateid.  Once a layout is held on the file by the
   client, the loga_stateid field MUST be a stateid as returned from a
   previous LAYOUTGET or LAYOUTRETURN operation or provided by a
   CB_LAYOUTRECALL operation (see Section 12.5.3).

Add the following paragraph:
|  When loga_stateid represents a non-layout stateid the server MUST
|  release any layout state previously held by the client as if the client
|  explicitly returned the layout using a corresponding LAYOUTRETURN
|  with lora_iomode of LAYOUTIOMODE4_ANY, lr_returntype of LAYOUTRETURN4_FI=
LE,
|  lrf_offset value 0, and lrf_length value NFS4_UINT64_MAX. This is
|  particularly useful to clients implementing the forgetful model (Section
|  12.5.5.1) when acquiring a layout after unilaterally forgetting the layo=
ut
|  state.  This requirement mandates that the client serializes sending
|  a LAYOUTGET with non-layout statid with any other layout operation on
|  the file (See section 12.5.2).

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


From bhalevy@tonian.com  Thu Feb 23 15:13:21 2012
Return-Path: <bhalevy@tonian.com>
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 A32B421F88B7 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:13:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K1C48Xna+NyT for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:13:21 -0800 (PST)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by ietfa.amsl.com (Postfix) with ESMTP id C5FA821F88AA for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:13:20 -0800 (PST)
Received: by ghbg16 with SMTP id g16so1019785ghb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:13:20 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.155.33 as permitted sender) client-ip=10.236.155.33; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.155.33 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.155.33]) by 10.236.155.33 with SMTP id i21mr6715381yhk.106.1330038800496 (num_hops = 1); Thu, 23 Feb 2012 15:13:20 -0800 (PST)
Received: by 10.236.155.33 with SMTP id i21mr5424088yhk.106.1330038800388; Thu, 23 Feb 2012 15:13:20 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id j22sm4723609ann.0.2012.02.23.15.13.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 15:13:20 -0800 (PST)
Message-ID: <4F46C80E.7010707@tonian.com>
Date: Thu, 23 Feb 2012 15:13:18 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: david.black@emc.com
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com>
In-Reply-To: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQnvBL5JkFzlb8WL0kT5hsz5ypPkg4fbfUullKbCc/aLxjU4/bvqxF1s0o67xIUbMpi57SUM
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:13:21 -0000

On 2012-02-23 14:54, david.black@emc.com wrote:
>> This return value is used to communicate to the client that any
>> layout or segment of a layout that were given with logr_return_on_close
>> set to TRUE will result in the server invalidating all layouts for the
>> file after it was closed.
> 
> The use of "any" and "all" above reads as logr_return_on_close being a global
> flag - if server sets the flag once, all layouts for the file are invalidated
> on close, even those for which the flag was set to FALSE.  That's not what was
> intended, so the following text would be better:
> 
> This return value is used to inform the client that any layout or segment
> of a layout that were given with logr_return_on_close set to TRUE will be
> invalidated by the server when the client closes the file.

I agree that this is a valid approach, but it complicates both the client
and server and I don't think this complexity is worthwhile.

In addition, this will not be as useful for the forgetful client model
as the server will not know whether the client released all its layout state
or just the segments that were marked with return_on_close.

Another corner case might be with overlapping segments that are incompatible
with regards to return_on_close.

Based on the oral discussions we had on previous meetings I'm inclined
to prefer a simpler, catch-all approach over a more complex, optimized approach.

In most cases, I assume that the server will either mark all segments with
return_on_close or none of them. In some cases, the server might mark
read-write layouts as return_on_close and not read-only layouts.
This may be the most common case that will benefit from the fine grain solution
and again, I'm not sure it's worth the trouble.

Benny

> 
> Thanks,
> --David
> 
> 
>> -----Original Message-----
>> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of Marc Eshel
>> Sent: Thursday, February 23, 2012 5:27 PM
>> To: Myklebust, Trond
>> Cc: NFSv4
>> Subject: [nfsv4] layout return - update
>>
>> Update to my correction to the logr_return_on_close result field in
>> 18.43.3 that should go into v4.1 errata.
>> Marc.
>>
>> section 18.43.3 say:
>>
>> The logr_return_on_close result field is a directive to return the layout
>> before closing the file.  When the metadata server sets this return value
>> to TRUE, it MUST be prepared to recall the layout in the case in which the
>> client fails to return the layout before close.  For the metadata server
>> that knows a layout must be returned before a close of the file, this
>> return value can be used to communicate the desired behavior to the client
>> and thus remove one extra step from the client's and metadata server's
>> interaction.
>>
>> it should say:
>>
>> The logr_return_on_close result field is a directive to return or forget
>> the layout before closing the file . When the metadata server sets this
>> return value to TRUE, the client MUST NOT use the layout after sending
>> the last CLOSE of that file. Any outstanding COMMIT to the data servers
>> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
>> file. This return value is used to communicate to the client that any
>> layout or segment of a layout that were given with logr_return_on_close
>> set to TRUE will result in the server invalidating all layouts for the
>> file after it was closed.
>>
>> Notes:
>>
>> This directive will remove one or more extra steps from the client's and
>> metadata server's interaction.
>>
>>
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Thu Feb 23 15:15:56 2012
Return-Path: <eshel@almaden.ibm.com>
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 4B1B921F88BF for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:15:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FmzJDNmKguU3 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:15:55 -0800 (PST)
Received: from e5.ny.us.ibm.com (e5.ny.us.ibm.com [32.97.182.145]) by ietfa.amsl.com (Postfix) with ESMTP id 7917221F8702 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:15:55 -0800 (PST)
Received: from /spool/local by e5.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 23 Feb 2012 18:15:54 -0500
Received: from d01dlp01.pok.ibm.com (9.56.224.56) by e5.ny.us.ibm.com (192.168.1.105) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 23 Feb 2012 18:15:47 -0500
Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 3020A38C8054 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 18:15:47 -0500 (EST)
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1NNFl29184198 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 18:15:47 -0500
Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1NNFk12018078 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 21:15:46 -0200
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1NNFjf5018052 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 21:15:45 -0200
In-Reply-To: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>		<CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com>	<1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com>
To: <david.black@emc.com>
MIME-Version: 1.0
X-KeepSent: 73DA9C8C:ECDCB83F-882579AD:007EBDAD; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OF73DA9C8C.ECDCB83F-ON882579AD.007EBDAD-882579AD.007FC783@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 15:15:43 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/23/2012 18:15:45, Serialize complete at 02/23/2012 18:15:45
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022323-5930-0000-0000-0000057DD038
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:15:56 -0000

The intended was the way it was written. After talking to few developers 
at the connectathon the agreement was the once the file is closed all 
layouts will be invalidated, and as I hear it was the consensus in the 
last IETF meeting. Typically this will be a server policy for all files 
but it is flexible enough for a given file, and definitely not needed for 
some layouts of a file and not others. It is an unnecessary complexity on 
both server and client that don't seem to be required. 
Marc.

<david.black@emc.com> wrote on 02/23/2012 02:54:07 PM:

> > This return value is used to communicate to the client that any
> > layout or segment of a layout that were given with 
logr_return_on_close
> > set to TRUE will result in the server invalidating all layouts for the
> > file after it was closed.
> 
> The use of "any" and "all" above reads as logr_return_on_close being a 
global
> flag - if server sets the flag once, all layouts for the file are 
invalidated
> on close, even those for which the flag was set to FALSE.  That's not 
what was
> intended, so the following text would be better:
> 
> This return value is used to inform the client that any layout or 
segment
> of a layout that were given with logr_return_on_close set to TRUE will 
be
> invalidated by the server when the client closes the file.
> 
> Thanks,
> --David
> 
> 
> > -----Original Message-----
> > From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On 
> Behalf Of Marc Eshel
> > Sent: Thursday, February 23, 2012 5:27 PM
> > To: Myklebust, Trond
> > Cc: NFSv4
> > Subject: [nfsv4] layout return - update
> > 
> > Update to my correction to the logr_return_on_close result field in
> > 18.43.3 that should go into v4.1 errata.
> > Marc.
> > 
> > section 18.43.3 say:
> > 
> > The logr_return_on_close result field is a directive to return the 
layout
> > before closing the file.  When the metadata server sets this return 
value
> > to TRUE, it MUST be prepared to recall the layout in the case in which 
the
> > client fails to return the layout before close.  For the metadata 
server
> > that knows a layout must be returned before a close of the file, this
> > return value can be used to communicate the desired behavior to the 
client
> > and thus remove one extra step from the client's and metadata server's
> > interaction.
> > 
> > it should say:
> > 
> > The logr_return_on_close result field is a directive to return or 
forget
> > the layout before closing the file . When the metadata server sets 
this
> > return value to TRUE, the client MUST NOT use the layout after sending
> > the last CLOSE of that file. Any outstanding COMMIT to the data 
servers
> > or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing 
the
> > file. This return value is used to communicate to the client that any
> > layout or segment of a layout that were given with 
logr_return_on_close
> > set to TRUE will result in the server invalidating all layouts for the
> > file after it was closed.
> > 
> > Notes:
> > 
> > This directive will remove one or more extra steps from the client's 
and
> > metadata server's interaction.
> > 
> > 
> > 
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> 


From bhalevy@tonian.com  Thu Feb 23 15:18:23 2012
Return-Path: <bhalevy@tonian.com>
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 5E06321E8021 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:18:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oj+tF1ks2Acb for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:18:22 -0800 (PST)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id 6795721F88C5 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:18:22 -0800 (PST)
Received: by yenm3 with SMTP id m3so1017353yen.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:18:22 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.143.40 as permitted sender) client-ip=10.236.143.40; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.143.40 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.143.40]) by 10.236.143.40 with SMTP id k28mr6824305yhj.112.1330039102096 (num_hops = 1); Thu, 23 Feb 2012 15:18:22 -0800 (PST)
Received: by 10.236.143.40 with SMTP id k28mr5505295yhj.112.1330039102012; Thu, 23 Feb 2012 15:18:22 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id n63sm7345393yhb.8.2012.02.23.15.18.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 15:18:21 -0800 (PST)
Message-ID: <4F46C93B.9020100@tonian.com>
Date: Thu, 23 Feb 2012 15:18:19 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: david.noveck@emc.com
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com> <5DEA8DB993B81040A21CF3CB332489F6B302813B@MX31A.corp.emc.com>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6B302813B@MX31A.corp.emc.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQk4nIOgnaCT6gwRrW/ZOY4l22VuDC09bEBTvIffWhXDSDPuVf3e78kj0HjB60G1aUFaqgmV
Cc: Trond.Myklebust@netapp.com, Pranoop.Erasani@netapp.com, nfsv4@ietf.org
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:18:23 -0000

On 2012-02-23 15:12, david.noveck@emc.com wrote:
>>  When the client is using the forgetful model (Section 12.5.5.1) it MAY
>>  forget its layout state and associated layout stateid at any time.
> 
> And when it is not using the forgetful model, it MAY NOT?  Aren't you
> really saying "A client MAY always forget its layout state and associated 
> layout stateid at any time"?  If it was a mistake for RFC5661 not to say 
> that, then it was an awfully big one, and we should think very carefully
> before making this correction/change.

Agreed.

> 
> Note that section 15.5.5.1 is entitled "Layout Recall Callback Robustness".
> 
> It does say it "may be useful for clients to 'forget' details about what
> layouts and ranges the client actually has, leading to the
> server's layout ranges being beyond those that the client "thinks"
> it has".
> 
> I'm not clear that the fact that you have a layout for a particular file
> or not is the kind of detail that is being referred to. 

Unfortunately, I think it is indeed the right reference.  It might be
useful to devote a complete section for the forgetful client model and
its various considerations for the client and the server.

Benny

> 
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of Benny Halevy
> Sent: Thursday, February 23, 2012 5:41 PM
> To: Erasani, Pranoop
> Cc: Myklebust, Trond; nfsv4@ietf.org
> Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
> 
> My proposed errata follows below.
> The gist of it is:
> 1. Initial LAYOUTGETs using non-layout stateid reset the layout state the client
>    holds on the server.
> 2. Therefore these LAYOUTGETs MUST be serialized with any other layout operation
>    on the file.
> 
> Benny
> 
> Section 12.5.2. says:
>    The first successful LAYOUTGET
>    processed by the server using a non-layout stateid as an argument
>    MUST have the "seqid" field of the layout stateid in the response set
>    to one.  Thereafter, the client MUST use a layout stateid (see
>    Section 12.5.3) on future invocations of LAYOUTGET on the file, and
>    the "seqid" MUST NOT be set to zero.
> 
> It should say:
>    The first successful LAYOUTGET
>    processed by the server using a non-layout stateid as an argument
>    MUST have the "seqid" field of the layout stateid in the response set
>    to one.  Thereafter, the client MUST use a layout stateid (see
>    Section 12.5.3) on future invocations of LAYOUTGET on the file, and
>    the "seqid" MUST NOT be set to zero.
> |  The client MUST serialize LAYOUTGET operations using a non-layout
> |  stateid with any other operation affecting the layout state on the file,
> |  including CB_LAYOUTRECALL, to allow consistent initialization of the
> |  layout state.
> 
> Add the following paragraph to section 12.5.3.:
>    When the client is using the forgetful model (Section 12.5.5.1) it MAY
>    forget its layout state and associated layout stateid at any time.
>    In such a case, the client MUST use a non-layout stateid for the next
>    LAYOUTGET operation.  This will signal the server that the client has
>    no more layouts on the file and its respective layout state can be
>    released before issuing a new layout in response to LAYOUTGET.
> 
> Section 12.5.5.2.1. says:
>    One critical issue with regard to layout operations sequencing
>    concerns callbacks.  The protocol must defend against races between
>    the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
>    CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
>    implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
>    to which the client has not yet received a reply.  The client detects
>    such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
>    layout stateid.  If the "seqid" is not exactly one higher than what
>    the client currently has recorded, and the client has at least one
>    LAYOUTGET and/or LAYOUTRETURN operation outstanding, the client knows
>    the server sent the CB_LAYOUTRECALL after sending a response to an
>    outstanding LAYOUTGET or LAYOUTRETURN.
> 
> It should say:
>    One critical issue with regard to layout operations sequencing
>    concerns callbacks.  The protocol must defend against races between
>    the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
>    CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
>    implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
>    to which the client has not yet received a reply.  The client detects
>    such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
>    layout stateid.  If the "seqid" is not exactly one higher than what
>    the client currently has recorded, and the client has at least one
>    LAYOUTGET and/or LAYOUTRETURN operation outstanding,
> |  or if the client has a outstanding LAYOUTGET with a non-layout stateid,
>    the client knows
>    the server sent the CB_LAYOUTRECALL after sending a response to an
>    outstanding LAYOUTGET or LAYOUTRETURN.
> 
> Section 12.5.5.2.1.1. says:
>    It is permissible for the client to send multiple parallel LAYOUTGET
>    operations for the same file or multiple parallel LAYOUTRETURN
>    operations for the same file or a mix of both.
> 
> It should say:
>     It is permissible for the client to send multiple parallel LAYOUTGET
>     operations for the same file
> |   using the layout stateid
>     or multiple parallel LAYOUTRETURN
>     operations for the same file or a mix of both.
> 
> Section 12.5.5.2.1.2. says:
>    Note
>    that in the first case, the "seqid" in the layout stateid of the
>    recall is two greater than what the client has recorded;
> 
> It should say:
>    Note
>    that in the first case, the "seqid" in the layout stateid of the
>    recall is two greater than what the client has recorded,
> |  or the client has an outstanding LAYOUTGET using a non-layout stateid;
> 
> After the following paragraph in Section 18.43.3:
>    The loga_stateid field specifies a valid stateid.  If a layout is not
>    currently held by the client, the loga_stateid field represents a
>    stateid reflecting the correspondingly valid open, byte-range lock,
>    or delegation stateid.  Once a layout is held on the file by the
>    client, the loga_stateid field MUST be a stateid as returned from a
>    previous LAYOUTGET or LAYOUTRETURN operation or provided by a
>    CB_LAYOUTRECALL operation (see Section 12.5.3).
> 
> Add the following paragraph:
> |  When loga_stateid represents a non-layout stateid the server MUST
> |  release any layout state previously held by the client as if the client
> |  explicitly returned the layout using a corresponding LAYOUTRETURN
> |  with lora_iomode of LAYOUTIOMODE4_ANY, lr_returntype of LAYOUTRETURN4_FILE,
> |  lrf_offset value 0, and lrf_length value NFS4_UINT64_MAX. This is
> |  particularly useful to clients implementing the forgetful model (Section
> |  12.5.5.1) when acquiring a layout after unilaterally forgetting the layout
> |  state.  This requirement mandates that the client serializes sending
> |  a LAYOUTGET with non-layout statid with any other layout operation on
> |  the file (See section 12.5.2).
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From david.black@emc.com  Thu Feb 23 15:19:41 2012
Return-Path: <david.black@emc.com>
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 812BF21F88CA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:19:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.658
X-Spam-Level: 
X-Spam-Status: No, score=-109.658 tagged_above=-999 required=5 tests=[AWL=0.941, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2vKKBhswKf4z for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:19:40 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id AECFA21F88C8 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:19:40 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1NNJXpi019289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Feb 2012 18:19:36 -0500
Received: from mailhub.lss.emc.com (mailhubhoprd03.lss.emc.com [10.254.221.145]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor); Thu, 23 Feb 2012 18:19:12 -0500
Received: from mxhub16.corp.emc.com (mxhub16.corp.emc.com [128.222.70.237]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1NNJBMB027061; Thu, 23 Feb 2012 18:19:11 -0500
Received: from mx14a.corp.emc.com ([169.254.1.157]) by mxhub16.corp.emc.com ([128.222.70.237]) with mapi; Thu, 23 Feb 2012 18:19:11 -0500
From: <david.black@emc.com>
To: <bhalevy@tonian.com>
Date: Thu, 23 Feb 2012 18:19:10 -0500
Thread-Topic: [nfsv4] layout return - update
Thread-Index: AczygM19TnvgD/qpQT+e4jT+cW9WbQAABT1g
Message-ID: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com>
In-Reply-To: <4F46C80E.7010707@tonian.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:19:41 -0000

Hi Benny,

> In most cases, I assume that the server will either mark all segments wit=
h
> return_on_close or none of them. In some cases, the server might mark
> read-write layouts as return_on_close and not read-only layouts.
> This may be the most common case that will benefit from the fine grain so=
lution
> and again, I'm not sure it's worth the trouble.

I'd prefer requiring all-or-none marking by the server as it reduces the
opportunity for the client to get confused.  Assuming that the client is
implemented with a single state bit, the error case interoperability (serve=
r
marks only some of the segments as return_on_close) is a bit odd:
- Server has to retain all the segments (just in case client didn't notice)=
.
	A server that doesn't like this pays for its failure to mark consistently
	with a recall callback.
- Client can forget what it feels like forgetting.

Thanks,
--David


> -----Original Message-----
> From: Benny Halevy [mailto:bhalevy@tonian.com]
> Sent: Thursday, February 23, 2012 6:13 PM
> To: Black, David
> Cc: eshel@almaden.ibm.com; nfsv4@ietf.org
> Subject: Re: [nfsv4] layout return - update
>=20
> On 2012-02-23 14:54, david.black@emc.com wrote:
> >> This return value is used to communicate to the client that any
> >> layout or segment of a layout that were given with logr_return_on_clos=
e
> >> set to TRUE will result in the server invalidating all layouts for the
> >> file after it was closed.
> >
> > The use of "any" and "all" above reads as logr_return_on_close being a =
global
> > flag - if server sets the flag once, all layouts for the file are inval=
idated
> > on close, even those for which the flag was set to FALSE.  That's not w=
hat was
> > intended, so the following text would be better:
> >
> > This return value is used to inform the client that any layout or segme=
nt
> > of a layout that were given with logr_return_on_close set to TRUE will =
be
> > invalidated by the server when the client closes the file.
>=20
> I agree that this is a valid approach, but it complicates both the client
> and server and I don't think this complexity is worthwhile.
>=20
> In addition, this will not be as useful for the forgetful client model
> as the server will not know whether the client released all its layout st=
ate
> or just the segments that were marked with return_on_close.
>=20
> Another corner case might be with overlapping segments that are incompati=
ble
> with regards to return_on_close.
>=20
> Based on the oral discussions we had on previous meetings I'm inclined
> to prefer a simpler, catch-all approach over a more complex, optimized ap=
proach.
>=20
> In most cases, I assume that the server will either mark all segments wit=
h
> return_on_close or none of them. In some cases, the server might mark
> read-write layouts as return_on_close and not read-only layouts.
> This may be the most common case that will benefit from the fine grain so=
lution
> and again, I'm not sure it's worth the trouble.
>=20
> Benny
>=20
> >
> > Thanks,
> > --David
> >
> >
> >> -----Original Message-----
> >> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf=
 Of Marc Eshel
> >> Sent: Thursday, February 23, 2012 5:27 PM
> >> To: Myklebust, Trond
> >> Cc: NFSv4
> >> Subject: [nfsv4] layout return - update
> >>
> >> Update to my correction to the logr_return_on_close result field in
> >> 18.43.3 that should go into v4.1 errata.
> >> Marc.
> >>
> >> section 18.43.3 say:
> >>
> >> The logr_return_on_close result field is a directive to return the lay=
out
> >> before closing the file.  When the metadata server sets this return va=
lue
> >> to TRUE, it MUST be prepared to recall the layout in the case in which=
 the
> >> client fails to return the layout before close.  For the metadata serv=
er
> >> that knows a layout must be returned before a close of the file, this
> >> return value can be used to communicate the desired behavior to the cl=
ient
> >> and thus remove one extra step from the client's and metadata server's
> >> interaction.
> >>
> >> it should say:
> >>
> >> The logr_return_on_close result field is a directive to return or forg=
et
> >> the layout before closing the file . When the metadata server sets thi=
s
> >> return value to TRUE, the client MUST NOT use the layout after sending
> >> the last CLOSE of that file. Any outstanding COMMIT to the data server=
s
> >> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing t=
he
> >> file. This return value is used to communicate to the client that any
> >> layout or segment of a layout that were given with logr_return_on_clos=
e
> >> set to TRUE will result in the server invalidating all layouts for the
> >> file after it was closed.
> >>
> >> Notes:
> >>
> >> This directive will remove one or more extra steps from the client's a=
nd
> >> metadata server's interaction.
> >>
> >>
> >>
> >> _______________________________________________
> >> nfsv4 mailing list
> >> nfsv4@ietf.org
> >> https://www.ietf.org/mailman/listinfo/nfsv4
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4


From bhalevy@tonian.com  Thu Feb 23 15:22:38 2012
Return-Path: <bhalevy@tonian.com>
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 2CE4421E802D for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:22:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hlxLila223bk for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:22:37 -0800 (PST)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 13C4421E802C for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:22:36 -0800 (PST)
Received: by ggnq2 with SMTP id q2so1026143ggn.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:22:36 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.236.191.134 as permitted sender) client-ip=10.236.191.134; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.236.191.134 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.236.191.134]) by 10.236.191.134 with SMTP id g6mr6757689yhn.95.1330039356756 (num_hops = 1); Thu, 23 Feb 2012 15:22:36 -0800 (PST)
Received: by 10.236.191.134 with SMTP id g6mr5452599yhn.95.1330039356585; Thu, 23 Feb 2012 15:22:36 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([148.87.13.10]) by mx.google.com with ESMTPS id q68sm7397361yhb.3.2012.02.23.15.22.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Feb 2012 15:22:36 -0800 (PST)
Message-ID: <4F46CA3A.70103@tonian.com>
Date: Thu, 23 Feb 2012 15:22:34 -0800
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Saul Tamari <stamari@gmail.com>
References: <CAGqvRw5QJJNJ=xSmnfO5XMLqXurrRaZt7OjhThDjLd-RMmPj3A@mail.gmail.com>
In-Reply-To: <CAGqvRw5QJJNJ=xSmnfO5XMLqXurrRaZt7OjhThDjLd-RMmPj3A@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQlSLraVdeWSPEIN8dT3prQN1AujsSAIh83KQRfwNF7ng+Arr/PRZUW+6PZAT5svYBpbMq/+
Cc: nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] Returning NFS4ERR_NOSPC from REMOVE
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:22:38 -0000

On 2012-02-23 09:02, Saul Tamari wrote:
> Hi,
> 
> Currently the RFC3530 doesn't list NFS4ERR_NOSPC as a possible return code for REMOVE.
> In an environment that supports writable snapshots or volume cloning there could be a case where we do not have disk space for removing a directory entry.

Agreed.  Although it is not Posix compliant either, I've seen this need too.

Benny

> 
> Could this be added to the BIS?
> 
> Thanks,
> Saul
> 
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Thu Feb 23 15:36:39 2012
Return-Path: <eshel@almaden.ibm.com>
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 9745821E8025 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:36:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XruWeo+oTqoM for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 15:36:38 -0800 (PST)
Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139]) by ietfa.amsl.com (Postfix) with ESMTP id 53D8121F86B6 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 15:36:38 -0800 (PST)
Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 23 Feb 2012 18:36:33 -0500
Received: from d01dlp02.pok.ibm.com (9.56.224.85) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 23 Feb 2012 18:36:31 -0500
Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 22B296E804D for <nfsv4@ietf.org>; Thu, 23 Feb 2012 18:36:30 -0500 (EST)
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1NNaUVn312106 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 18:36:30 -0500
Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1NNaUMB023853 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 18:36:30 -0500
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1NNaUuM023850 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 18:36:30 -0500
In-Reply-To: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com>
To: <david.black@emc.com>
MIME-Version: 1.0
X-KeepSent: FCECDB19:1F4E4381-882579AD:0080F918; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OFFCECDB19.1F4E4381-ON882579AD.0080F918-882579AD.0081AD4F@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 15:36:27 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/23/2012 18:36:29, Serialize complete at 02/23/2012 18:36:29
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022323-7182-0000-0000-000000E0B2F4
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 23 Feb 2012 23:36:39 -0000

If you insist I will change it to all-or-none but let me try one more time 
to convince you. The client needs only one bit to keep track of this flag 
since once it is TRUE it applies to all layouts of the file and it will 
stay true until you close the file. It will also be nice for a server that 
starts by allowing clients to keep layouts by setting this flag to FALSE 
will switch police one it is low on memory to return layout at close to 
reduce the number of layouts that it needs to remember.
Marc.

<david.black@emc.com> wrote on 02/23/2012 03:19:10 PM:

> Hi Benny,
> 
> > In most cases, I assume that the server will either mark all segments 
with
> > return_on_close or none of them. In some cases, the server might mark
> > read-write layouts as return_on_close and not read-only layouts.
> > This may be the most common case that will benefit from the fine 
> grain solution
> > and again, I'm not sure it's worth the trouble.
> 
> I'd prefer requiring all-or-none marking by the server as it reduces the
> opportunity for the client to get confused.  Assuming that the client is
> implemented with a single state bit, the error case interoperability 
(server
> marks only some of the segments as return_on_close) is a bit odd:
> - Server has to retain all the segments (just in case client didn't 
notice).
>    A server that doesn't like this pays for its failure to mark 
consistently
>    with a recall callback.
> - Client can forget what it feels like forgetting.
> 
> Thanks,
> --David
> 
> 
> > -----Original Message-----
> > From: Benny Halevy [mailto:bhalevy@tonian.com]
> > Sent: Thursday, February 23, 2012 6:13 PM
> > To: Black, David
> > Cc: eshel@almaden.ibm.com; nfsv4@ietf.org
> > Subject: Re: [nfsv4] layout return - update
> > 
> > On 2012-02-23 14:54, david.black@emc.com wrote:
> > >> This return value is used to communicate to the client that any
> > >> layout or segment of a layout that were given with 
logr_return_on_close
> > >> set to TRUE will result in the server invalidating all layouts for 
the
> > >> file after it was closed.
> > >
> > > The use of "any" and "all" above reads as logr_return_on_close 
> being a global
> > > flag - if server sets the flag once, all layouts for the file 
> are invalidated
> > > on close, even those for which the flag was set to FALSE. 
> That's not what was
> > > intended, so the following text would be better:
> > >
> > > This return value is used to inform the client that any layout or 
segment
> > > of a layout that were given with logr_return_on_close set to TRUE 
will be
> > > invalidated by the server when the client closes the file.
> > 
> > I agree that this is a valid approach, but it complicates both the 
client
> > and server and I don't think this complexity is worthwhile.
> > 
> > In addition, this will not be as useful for the forgetful client model
> > as the server will not know whether the client released all its layout 
state
> > or just the segments that were marked with return_on_close.
> > 
> > Another corner case might be with overlapping segments that are 
incompatible
> > with regards to return_on_close.
> > 
> > Based on the oral discussions we had on previous meetings I'm inclined
> > to prefer a simpler, catch-all approach over a more complex, 
> optimized approach.
> > 
> > In most cases, I assume that the server will either mark all segments 
with
> > return_on_close or none of them. In some cases, the server might mark
> > read-write layouts as return_on_close and not read-only layouts.
> > This may be the most common case that will benefit from the fine 
> grain solution
> > and again, I'm not sure it's worth the trouble.
> > 
> > Benny
> > 
> > >
> > > Thanks,
> > > --David
> > >
> > >
> > >> -----Original Message-----
> > >> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On
> Behalf Of Marc Eshel
> > >> Sent: Thursday, February 23, 2012 5:27 PM
> > >> To: Myklebust, Trond
> > >> Cc: NFSv4
> > >> Subject: [nfsv4] layout return - update
> > >>
> > >> Update to my correction to the logr_return_on_close result field in
> > >> 18.43.3 that should go into v4.1 errata.
> > >> Marc.
> > >>
> > >> section 18.43.3 say:
> > >>
> > >> The logr_return_on_close result field is a directive to return the 
layout
> > >> before closing the file.  When the metadata server sets this return 
value
> > >> to TRUE, it MUST be prepared to recall the layout in the case 
> in which the
> > >> client fails to return the layout before close.  For the metadata 
server
> > >> that knows a layout must be returned before a close of the file, 
this
> > >> return value can be used to communicate the desired behavior tothe 
client
> > >> and thus remove one extra step from the client's and metadata 
server's
> > >> interaction.
> > >>
> > >> it should say:
> > >>
> > >> The logr_return_on_close result field is a directive to return or 
forget
> > >> the layout before closing the file . When the metadata server sets 
this
> > >> return value to TRUE, the client MUST NOT use the layout after 
sending
> > >> the last CLOSE of that file. Any outstanding COMMIT to the data 
servers
> > >> or LAYOUTCOMMIT to the metadata server MUST be sent prior to 
closing the
> > >> file. This return value is used to communicate to the client that 
any
> > >> layout or segment of a layout that were given with 
logr_return_on_close
> > >> set to TRUE will result in the server invalidating all layouts for 
the
> > >> file after it was closed.
> > >>
> > >> Notes:
> > >>
> > >> This directive will remove one or more extra steps from the 
client's and
> > >> metadata server's interaction.
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> nfsv4 mailing list
> > >> nfsv4@ietf.org
> > >> https://www.ietf.org/mailman/listinfo/nfsv4
> > >
> > > _______________________________________________
> > > nfsv4 mailing list
> > > nfsv4@ietf.org
> > > https://www.ietf.org/mailman/listinfo/nfsv4
> 


From Trond.Myklebust@netapp.com  Thu Feb 23 16:05:47 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 496EE21F88BB for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:05:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.539
X-Spam-Level: 
X-Spam-Status: No, score=-10.539 tagged_above=-999 required=5 tests=[AWL=0.060, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QuSQ0mn95rps for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:05:41 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 82D8521F8898 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 16:05:41 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,473,1325491200"; d="scan'208";a="628139837"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 23 Feb 2012 16:05:41 -0800
Received: from vmwexceht04-prd.hq.netapp.com (vmwexceht04-prd.hq.netapp.com [10.106.77.34]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1O05fMY000779; Thu, 23 Feb 2012 16:05:41 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht04-prd.hq.netapp.com ([10.106.77.34]) with mapi id 14.02.0247.003; Thu, 23 Feb 2012 16:05:11 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AQHM8lg3R6FnimjSIUOo6pgWM8QucpZLWNSAgAADMICAAA0kgIAAMLEAgAAIwICAAAGtgIAADTkA
Date: Fri, 24 Feb 2012 00:05:39 +0000
Message-ID: <1330041938.2548.9.camel@lade.trondhjem.org>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com> <5DEA8DB993B81040A21CF3CB332489F6B302813B@MX31A.corp.emc.com> <4F46C93B.9020100@tonian.com>
In-Reply-To: <4F46C93B.9020100@tonian.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.51]
Content-Type: text/plain; charset="utf-8"
Content-ID: <791C59D4D22C2F42BECBF0B74D6F79E7@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 00:05:47 -0000

T24gVGh1LCAyMDEyLTAyLTIzIGF0IDE1OjE4IC0wODAwLCBCZW5ueSBIYWxldnkgd3JvdGU6DQo+
IE9uIDIwMTItMDItMjMgMTU6MTIsIGRhdmlkLm5vdmVja0BlbWMuY29tIHdyb3RlOg0KPiA+PiAg
V2hlbiB0aGUgY2xpZW50IGlzIHVzaW5nIHRoZSBmb3JnZXRmdWwgbW9kZWwgKFNlY3Rpb24gMTIu
NS41LjEpIGl0IE1BWQ0KPiA+PiAgZm9yZ2V0IGl0cyBsYXlvdXQgc3RhdGUgYW5kIGFzc29jaWF0
ZWQgbGF5b3V0IHN0YXRlaWQgYXQgYW55IHRpbWUuDQo+ID4gDQo+ID4gQW5kIHdoZW4gaXQgaXMg
bm90IHVzaW5nIHRoZSBmb3JnZXRmdWwgbW9kZWwsIGl0IE1BWSBOT1Q/ICBBcmVuJ3QgeW91DQo+
ID4gcmVhbGx5IHNheWluZyAiQSBjbGllbnQgTUFZIGFsd2F5cyBmb3JnZXQgaXRzIGxheW91dCBz
dGF0ZSBhbmQg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ered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6DF0921F88C5 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:09:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.98
X-Spam-Level: 
X-Spam-Status: No, score=-1.98 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_SORBS_WEB=0.619]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u4w5t5v01ZMk for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:08:59 -0800 (PST)
Received: from mail-out1.uio.no (mail-out1.uio.no [IPv6:2001:700:100:10::57]) by ietfa.amsl.com (Postfix) with ESMTP id 3BD6821F88C8 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 16:08:59 -0800 (PST)
Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out1.uio.no with esmtp (Exim 4.75) (envelope-from <trond.myklebust@fys.uio.no>) id 1S0iiV-0004Li-J8; Fri, 24 Feb 2012 01:08:55 +0100
Received: from [217.70.211.10] (helo=[172.16.74.149]) by mail-mx2.uio.no with esmtpsa (TLSv1:CAMELLIA256-SHA:256) user trondmy (Exim 4.76) (envelope-from <trond.myklebust@fys.uio.no>) id 1S0iiV-0005UW-3l; Fri, 24 Feb 2012 01:08:55 +0100
Message-ID: <1330042130.2548.11.camel@lade.trondhjem.org>
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: david.black@emc.com
Date: Fri, 24 Feb 2012 01:08:50 +0100
In-Reply-To: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) 
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
X-UiO-Ratelimit-Test: rcpts/h 4 msgs/h 1 sum rcpts/h 5 sum msgs/h 2 total rcpts 1620 max rcpts/h 20 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, FSL_RCVD_USER=0.001, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: 9E24F39D1DCB645E965848D8F5E0E3AAFE13C4B6
X-UiO-SPAM-Test: remote_host: 217.70.211.10 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 2 max/h 1 blacklist 0 greylist 0 ratelimit 0
X-UiOonly: 54C5A0DBA6CCC24DD2E8F6434C0B88B933710494
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 00:09:00 -0000

On Thu, 2012-02-23 at 18:19 -0500, david.black@emc.com wrote:
> Hi Benny,
> 
> > In most cases, I assume that the server will either mark all segments with
> > return_on_close or none of them. In some cases, the server might mark
> > read-write layouts as return_on_close and not read-only layouts.
> > This may be the most common case that will benefit from the fine grain solution
> > and again, I'm not sure it's worth the trouble.
> 
> I'd prefer requiring all-or-none marking by the server as it reduces the
> opportunity for the client to get confused.  Assuming that the client is
> implemented with a single state bit, the error case interoperability (server
> marks only some of the segments as return_on_close) is a bit odd:
> - Server has to retain all the segments (just in case client didn't notice).
> 	A server that doesn't like this pays for its failure to mark consistently
> 	with a recall callback.
> - Client can forget what it feels like forgetting.

I agree that this would greatly simplify the model. That said, the Linux
client shouldn't currently care: we can deal with servers that do the
'partial return-on-close' thing.

Cheers
  Trond


From david.black@emc.com  Thu Feb 23 16:24:02 2012
Return-Path: <david.black@emc.com>
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 7909B21F88B0 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:24:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.666
X-Spam-Level: 
X-Spam-Status: No, score=-109.666 tagged_above=-999 required=5 tests=[AWL=0.933, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LDQ14RwYamu0 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:24:01 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 6104321F88A2 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 16:24:01 -0800 (PST)
Received: from hop04-l1d11-si04.isus.emc.com (HOP04-L1D11-SI04.isus.emc.com [10.254.111.24]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1O0NvAg010503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Feb 2012 19:23:57 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.221.145]) by hop04-l1d11-si04.isus.emc.com (RSA Interceptor); Thu, 23 Feb 2012 19:23:52 -0500
Received: from mxhub08.corp.emc.com (mxhub08.corp.emc.com [128.222.70.205]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1O0NqJj015737; Thu, 23 Feb 2012 19:23:52 -0500
Received: from mx14a.corp.emc.com ([169.254.1.157]) by mxhub08.corp.emc.com ([128.222.70.205]) with mapi; Thu, 23 Feb 2012 19:23:51 -0500
From: <david.black@emc.com>
To: <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 19:23:50 -0500
Thread-Topic: [nfsv4] layout return - update
Thread-Index: AczyhAoOEH2epDucQJiX4PpbZlb1agABWrfg
Message-ID: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFF8@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com> <OFFCECDB19.1F4E4381-ON882579AD.0080F918-882579AD.0081AD4F@us.ibm.com>
In-Reply-To: <OFFCECDB19.1F4E4381-ON882579AD.0080F918-882579AD.0081AD4F@us.ibm.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 00:24:02 -0000

Marc,

The disconnect I'm having with this is that a client that forgets the layou=
t
has to remember this flag from the layout.  OTOH, I understand your concern
about the policy switch case - having to issue a heavy duty recall at that
point just to switch policy would not be good.

I observe that once the server has set the flag to TRUE, that behavior appl=
ies
going forward no matter what the server does (i.e., if the flag is FALSE on=
 the
next layout for the same client and file, the flag is ignored because the
required behavior is as if the flag were TRUE).

Would it be reasonable to require that if the server ever sets the flag to =
TRUE
for a <client, layout> pair, then it MUST set the flag to true for all subs=
equent
layouts or segments of layouts for that <client, layout> pair?

Thanks,
--David


> -----Original Message-----
> From: Marc Eshel [mailto:eshel@almaden.ibm.com]
> Sent: Thursday, February 23, 2012 6:36 PM
> To: Black, David
> Cc: bhalevy@tonian.com; nfsv4@ietf.org
> Subject: RE: [nfsv4] layout return - update
>=20
> If you insist I will change it to all-or-none but let me try one more tim=
e
> to convince you. The client needs only one bit to keep track of this flag
> since once it is TRUE it applies to all layouts of the file and it will
> stay true until you close the file. It will also be nice for a server tha=
t
> starts by allowing clients to keep layouts by setting this flag to FALSE
> will switch police one it is low on memory to return layout at close to
> reduce the number of layouts that it needs to remember.
> Marc.
>=20
> <david.black@emc.com> wrote on 02/23/2012 03:19:10 PM:
>=20
> > Hi Benny,
> >
> > > In most cases, I assume that the server will either mark all segments
> with
> > > return_on_close or none of them. In some cases, the server might mark
> > > read-write layouts as return_on_close and not read-only layouts.
> > > This may be the most common case that will benefit from the fine
> > grain solution
> > > and again, I'm not sure it's worth the trouble.
> >
> > I'd prefer requiring all-or-none marking by the server as it reduces th=
e
> > opportunity for the client to get confused.  Assuming that the client i=
s
> > implemented with a single state bit, the error case interoperability
> (server
> > marks only some of the segments as return_on_close) is a bit odd:
> > - Server has to retain all the segments (just in case client didn't
> notice).
> >    A server that doesn't like this pays for its failure to mark
> consistently
> >    with a recall callback.
> > - Client can forget what it feels like forgetting.
> >
> > Thanks,
> > --David
> >
> >
> > > -----Original Message-----
> > > From: Benny Halevy [mailto:bhalevy@tonian.com]
> > > Sent: Thursday, February 23, 2012 6:13 PM
> > > To: Black, David
> > > Cc: eshel@almaden.ibm.com; nfsv4@ietf.org
> > > Subject: Re: [nfsv4] layout return - update
> > >
> > > On 2012-02-23 14:54, david.black@emc.com wrote:
> > > >> This return value is used to communicate to the client that any
> > > >> layout or segment of a layout that were given with
> logr_return_on_close
> > > >> set to TRUE will result in the server invalidating all layouts for
> the
> > > >> file after it was closed.
> > > >
> > > > The use of "any" and "all" above reads as logr_return_on_close
> > being a global
> > > > flag - if server sets the flag once, all layouts for the file
> > are invalidated
> > > > on close, even those for which the flag was set to FALSE.
> > That's not what was
> > > > intended, so the following text would be better:
> > > >
> > > > This return value is used to inform the client that any layout or
> segment
> > > > of a layout that were given with logr_return_on_close set to TRUE
> will be
> > > > invalidated by the server when the client closes the file.
> > >
> > > I agree that this is a valid approach, but it complicates both the
> client
> > > and server and I don't think this complexity is worthwhile.
> > >
> > > In addition, this will not be as useful for the forgetful client mode=
l
> > > as the server will not know whether the client released all its layou=
t
> state
> > > or just the segments that were marked with return_on_close.
> > >
> > > Another corner case might be with overlapping segments that are
> incompatible
> > > with regards to return_on_close.
> > >
> > > Based on the oral discussions we had on previous meetings I'm incline=
d
> > > to prefer a simpler, catch-all approach over a more complex,
> > optimized approach.
> > >
> > > In most cases, I assume that the server will either mark all segments
> with
> > > return_on_close or none of them. In some cases, the server might mark
> > > read-write layouts as return_on_close and not read-only layouts.
> > > This may be the most common case that will benefit from the fine
> > grain solution
> > > and again, I'm not sure it's worth the trouble.
> > >
> > > Benny
> > >
> > > >
> > > > Thanks,
> > > > --David
> > > >
> > > >
> > > >> -----Original Message-----
> > > >> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On
> > Behalf Of Marc Eshel
> > > >> Sent: Thursday, February 23, 2012 5:27 PM
> > > >> To: Myklebust, Trond
> > > >> Cc: NFSv4
> > > >> Subject: [nfsv4] layout return - update
> > > >>
> > > >> Update to my correction to the logr_return_on_close result field i=
n
> > > >> 18.43.3 that should go into v4.1 errata.
> > > >> Marc.
> > > >>
> > > >> section 18.43.3 say:
> > > >>
> > > >> The logr_return_on_close result field is a directive to return the
> layout
> > > >> before closing the file.  When the metadata server sets this retur=
n
> value
> > > >> to TRUE, it MUST be prepared to recall the layout in the case
> > in which the
> > > >> client fails to return the layout before close.  For the metadata
> server
> > > >> that knows a layout must be returned before a close of the file,
> this
> > > >> return value can be used to communicate the desired behavior tothe
> client
> > > >> and thus remove one extra step from the client's and metadata
> server's
> > > >> interaction.
> > > >>
> > > >> it should say:
> > > >>
> > > >> The logr_return_on_close result field is a directive to return or
> forget
> > > >> the layout before closing the file . When the metadata server sets
> this
> > > >> return value to TRUE, the client MUST NOT use the layout after
> sending
> > > >> the last CLOSE of that file. Any outstanding COMMIT to the data
> servers
> > > >> or LAYOUTCOMMIT to the metadata server MUST be sent prior to
> closing the
> > > >> file. This return value is used to communicate to the client that
> any
> > > >> layout or segment of a layout that were given with
> logr_return_on_close
> > > >> set to TRUE will result in the server invalidating all layouts for
> the
> > > >> file after it was closed.
> > > >>
> > > >> Notes:
> > > >>
> > > >> This directive will remove one or more extra steps from the
> client's and
> > > >> metadata server's interaction.
> > > >>
> > > >>
> > > >>
> > > >> _______________________________________________
> > > >> nfsv4 mailing list
> > > >> nfsv4@ietf.org
> > > >> https://www.ietf.org/mailman/listinfo/nfsv4
> > > >
> > > > _______________________________________________
> > > > nfsv4 mailing list
> > > > nfsv4@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/nfsv4
> >
>=20


From eshel@almaden.ibm.com  Thu Feb 23 16:34:27 2012
Return-Path: <eshel@almaden.ibm.com>
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 3D1D911E808C for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:34:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id stAwc10hud12 for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:34:25 -0800 (PST)
Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.144]) by ietfa.amsl.com (Postfix) with ESMTP id 4990911E8081 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 16:34:25 -0800 (PST)
Received: from /spool/local by e4.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 23 Feb 2012 19:34:23 -0500
Received: from d01dlp02.pok.ibm.com (9.56.224.85) by e4.ny.us.ibm.com (192.168.1.104) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 23 Feb 2012 19:33:47 -0500
Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 75ECA6E8054; Thu, 23 Feb 2012 19:33:40 -0500 (EST)
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1O0XH5N426480; Thu, 23 Feb 2012 19:33:19 -0500
Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1O0XHET027609; Thu, 23 Feb 2012 22:33:17 -0200
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1O0XH79027606; Thu, 23 Feb 2012 22:33:17 -0200
In-Reply-To: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFF8@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com>	<CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com>	<1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com>	<7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com>	<7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com> <OFFCECDB19.1F4E4381-ON882579AD.0080F918-882579AD.0081AD4F@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFF8@MX14A.corp.emc.com>
To: <david.black@emc.com>
MIME-Version: 1.0
X-KeepSent: 9FBA93C5:A95F8172-882579AE:0002D4A6; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OF9FBA93C5.A95F8172-ON882579AE.0002D4A6-882579AE.00030A29@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Thu, 23 Feb 2012 16:33:14 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/23/2012 19:33:17, Serialize complete at 02/23/2012 19:33:17
Content-Type: multipart/alternative; boundary="=_alternative 00030A28882579AE_="
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022400-3534-0000-0000-000005FD0BB4
Cc: nfsv4@ietf.org, nfsv4-bounces@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 00:34:27 -0000

This is a multipart message in MIME format.
--=_alternative 00030A28882579AE_=
Content-Type: text/plain; charset="US-ASCII"

Sure, I think this is a reasonable compromise, If there are no more 
comments in a day or two I will make another try at the wording of the 
errata.
Thanks, Marc. 



From:
<david.black@emc.com>
To:
<eshel@almaden.ibm.com>
Cc:
nfsv4@ietf.org
Date:
02/23/2012 04:24 PM
Subject:
Re: [nfsv4] layout return - update
Sent by:
nfsv4-bounces@ietf.org



Marc,

The disconnect I'm having with this is that a client that forgets the 
layout
has to remember this flag from the layout.  OTOH, I understand your 
concern
about the policy switch case - having to issue a heavy duty recall at that
point just to switch policy would not be good.

I observe that once the server has set the flag to TRUE, that behavior 
applies
going forward no matter what the server does (i.e., if the flag is FALSE 
on the
next layout for the same client and file, the flag is ignored because the
required behavior is as if the flag were TRUE).

Would it be reasonable to require that if the server ever sets the flag to 
TRUE
for a <client, layout> pair, then it MUST set the flag to true for all 
subsequent
layouts or segments of layouts for that <client, layout> pair?

Thanks,
--David


> -----Original Message-----
> From: Marc Eshel [mailto:eshel@almaden.ibm.com]
> Sent: Thursday, February 23, 2012 6:36 PM
> To: Black, David
> Cc: bhalevy@tonian.com; nfsv4@ietf.org
> Subject: RE: [nfsv4] layout return - update
> 
> If you insist I will change it to all-or-none but let me try one more 
time
> to convince you. The client needs only one bit to keep track of this 
flag
> since once it is TRUE it applies to all layouts of the file and it will
> stay true until you close the file. It will also be nice for a server 
that
> starts by allowing clients to keep layouts by setting this flag to FALSE
> will switch police one it is low on memory to return layout at close to
> reduce the number of layouts that it needs to remember.
> Marc.
> 
> <david.black@emc.com> wrote on 02/23/2012 03:19:10 PM:
> 
> > Hi Benny,
> >
> > > In most cases, I assume that the server will either mark all 
segments
> with
> > > return_on_close or none of them. In some cases, the server might 
mark
> > > read-write layouts as return_on_close and not read-only layouts.
> > > This may be the most common case that will benefit from the fine
> > grain solution
> > > and again, I'm not sure it's worth the trouble.
> >
> > I'd prefer requiring all-or-none marking by the server as it reduces 
the
> > opportunity for the client to get confused.  Assuming that the client 
is
> > implemented with a single state bit, the error case interoperability
> (server
> > marks only some of the segments as return_on_close) is a bit odd:
> > - Server has to retain all the segments (just in case client didn't
> notice).
> >    A server that doesn't like this pays for its failure to mark
> consistently
> >    with a recall callback.
> > - Client can forget what it feels like forgetting.
> >
> > Thanks,
> > --David
> >
> >
> > > -----Original Message-----
> > > From: Benny Halevy [mailto:bhalevy@tonian.com]
> > > Sent: Thursday, February 23, 2012 6:13 PM
> > > To: Black, David
> > > Cc: eshel@almaden.ibm.com; nfsv4@ietf.org
> > > Subject: Re: [nfsv4] layout return - update
> > >
> > > On 2012-02-23 14:54, david.black@emc.com wrote:
> > > >> This return value is used to communicate to the client that any
> > > >> layout or segment of a layout that were given with
> logr_return_on_close
> > > >> set to TRUE will result in the server invalidating all layouts 
for
> the
> > > >> file after it was closed.
> > > >
> > > > The use of "any" and "all" above reads as logr_return_on_close
> > being a global
> > > > flag - if server sets the flag once, all layouts for the file
> > are invalidated
> > > > on close, even those for which the flag was set to FALSE.
> > That's not what was
> > > > intended, so the following text would be better:
> > > >
> > > > This return value is used to inform the client that any layout or
> segment
> > > > of a layout that were given with logr_return_on_close set to TRUE
> will be
> > > > invalidated by the server when the client closes the file.
> > >
> > > I agree that this is a valid approach, but it complicates both the
> client
> > > and server and I don't think this complexity is worthwhile.
> > >
> > > In addition, this will not be as useful for the forgetful client 
model
> > > as the server will not know whether the client released all its 
layout
> state
> > > or just the segments that were marked with return_on_close.
> > >
> > > Another corner case might be with overlapping segments that are
> incompatible
> > > with regards to return_on_close.
> > >
> > > Based on the oral discussions we had on previous meetings I'm 
inclined
> > > to prefer a simpler, catch-all approach over a more complex,
> > optimized approach.
> > >
> > > In most cases, I assume that the server will either mark all 
segments
> with
> > > return_on_close or none of them. In some cases, the server might 
mark
> > > read-write layouts as return_on_close and not read-only layouts.
> > > This may be the most common case that will benefit from the fine
> > grain solution
> > > and again, I'm not sure it's worth the trouble.
> > >
> > > Benny
> > >
> > > >
> > > > Thanks,
> > > > --David
> > > >
> > > >
> > > >> -----Original Message-----
> > > >> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On
> > Behalf Of Marc Eshel
> > > >> Sent: Thursday, February 23, 2012 5:27 PM
> > > >> To: Myklebust, Trond
> > > >> Cc: NFSv4
> > > >> Subject: [nfsv4] layout return - update
> > > >>
> > > >> Update to my correction to the logr_return_on_close result field 
in
> > > >> 18.43.3 that should go into v4.1 errata.
> > > >> Marc.
> > > >>
> > > >> section 18.43.3 say:
> > > >>
> > > >> The logr_return_on_close result field is a directive to return 
the
> layout
> > > >> before closing the file.  When the metadata server sets this 
return
> value
> > > >> to TRUE, it MUST be prepared to recall the layout in the case
> > in which the
> > > >> client fails to return the layout before close.  For the metadata
> server
> > > >> that knows a layout must be returned before a close of the file,
> this
> > > >> return value can be used to communicate the desired behavior 
tothe
> client
> > > >> and thus remove one extra step from the client's and metadata
> server's
> > > >> interaction.
> > > >>
> > > >> it should say:
> > > >>
> > > >> The logr_return_on_close result field is a directive to return or
> forget
> > > >> the layout before closing the file . When the metadata server 
sets
> this
> > > >> return value to TRUE, the client MUST NOT use the layout after
> sending
> > > >> the last CLOSE of that file. Any outstanding COMMIT to the data
> servers
> > > >> or LAYOUTCOMMIT to the metadata server MUST be sent prior to
> closing the
> > > >> file. This return value is used to communicate to the client that
> any
> > > >> layout or segment of a layout that were given with
> logr_return_on_close
> > > >> set to TRUE will result in the server invalidating all layouts 
for
> the
> > > >> file after it was closed.
> > > >>
> > > >> Notes:
> > > >>
> > > >> This directive will remove one or more extra steps from the
> client's and
> > > >> metadata server's interaction.
> > > >>
> > > >>
> > > >>
> > > >> _______________________________________________
> > > >> nfsv4 mailing list
> > > >> nfsv4@ietf.org
> > > >> https://www.ietf.org/mailman/listinfo/nfsv4
> > > >
> > > > _______________________________________________
> > > > nfsv4 mailing list
> > > > nfsv4@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/nfsv4
> >
> 

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4




--=_alternative 00030A28882579AE_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Sure, I think this is a reasonable compromise,
If there are no more comments in a day or two I will make another try at
the wording of the errata.</font>
<br><font size=2 face="sans-serif">Thanks, Marc. </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">&lt;david.black@emc.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&lt;eshel@almaden.ibm.com&gt;</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">nfsv4@ietf.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">02/23/2012 04:24 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [nfsv4] layout return - update</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">nfsv4-bounces@ietf.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Marc,<br>
<br>
The disconnect I'm having with this is that a client that forgets the layout<br>
has to remember this flag from the layout. &nbsp;OTOH, I understand your
concern<br>
about the policy switch case - having to issue a heavy duty recall at that<br>
point just to switch policy would not be good.<br>
<br>
I observe that once the server has set the flag to TRUE, that behavior
applies<br>
going forward no matter what the server does (i.e., if the flag is FALSE
on the<br>
next layout for the same client and file, the flag is ignored because the<br>
required behavior is as if the flag were TRUE).<br>
<br>
Would it be reasonable to require that if the server ever sets the flag
to TRUE<br>
for a &lt;client, layout&gt; pair, then it MUST set the flag to true for
all subsequent<br>
layouts or segments of layouts for that &lt;client, layout&gt; pair?<br>
<br>
Thanks,<br>
--David<br>
<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Marc Eshel [</font></tt><a href=mailto:eshel@almaden.ibm.com><tt><font size=2>mailto:eshel@almaden.ibm.com</font></tt></a><tt><font size=2>]<br>
&gt; Sent: Thursday, February 23, 2012 6:36 PM<br>
&gt; To: Black, David<br>
&gt; Cc: bhalevy@tonian.com; nfsv4@ietf.org<br>
&gt; Subject: RE: [nfsv4] layout return - update<br>
&gt; <br>
&gt; If you insist I will change it to all-or-none but let me try one more
time<br>
&gt; to convince you. The client needs only one bit to keep track of this
flag<br>
&gt; since once it is TRUE it applies to all layouts of the file and it
will<br>
&gt; stay true until you close the file. It will also be nice for a server
that<br>
&gt; starts by allowing clients to keep layouts by setting this flag to
FALSE<br>
&gt; will switch police one it is low on memory to return layout at close
to<br>
&gt; reduce the number of layouts that it needs to remember.<br>
&gt; Marc.<br>
&gt; <br>
&gt; &lt;david.black@emc.com&gt; wrote on 02/23/2012 03:19:10 PM:<br>
&gt; <br>
&gt; &gt; Hi Benny,<br>
&gt; &gt;<br>
&gt; &gt; &gt; In most cases, I assume that the server will either mark
all segments<br>
&gt; with<br>
&gt; &gt; &gt; return_on_close or none of them. In some cases, the server
might mark<br>
&gt; &gt; &gt; read-write layouts as return_on_close and not read-only
layouts.<br>
&gt; &gt; &gt; This may be the most common case that will benefit from
the fine<br>
&gt; &gt; grain solution<br>
&gt; &gt; &gt; and again, I'm not sure it's worth the trouble.<br>
&gt; &gt;<br>
&gt; &gt; I'd prefer requiring all-or-none marking by the server as it
reduces the<br>
&gt; &gt; opportunity for the client to get confused. &nbsp;Assuming that
the client is<br>
&gt; &gt; implemented with a single state bit, the error case interoperability<br>
&gt; (server<br>
&gt; &gt; marks only some of the segments as return_on_close) is a bit
odd:<br>
&gt; &gt; - Server has to retain all the segments (just in case client
didn't<br>
&gt; notice).<br>
&gt; &gt; &nbsp; &nbsp;A server that doesn't like this pays for its failure
to mark<br>
&gt; consistently<br>
&gt; &gt; &nbsp; &nbsp;with a recall callback.<br>
&gt; &gt; - Client can forget what it feels like forgetting.<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; --David<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; -----Original Message-----<br>
&gt; &gt; &gt; From: Benny Halevy [</font></tt><a href=mailto:bhalevy@tonian.com><tt><font size=2>mailto:bhalevy@tonian.com</font></tt></a><tt><font size=2>]<br>
&gt; &gt; &gt; Sent: Thursday, February 23, 2012 6:13 PM<br>
&gt; &gt; &gt; To: Black, David<br>
&gt; &gt; &gt; Cc: eshel@almaden.ibm.com; nfsv4@ietf.org<br>
&gt; &gt; &gt; Subject: Re: [nfsv4] layout return - update<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 2012-02-23 14:54, david.black@emc.com wrote:<br>
&gt; &gt; &gt; &gt;&gt; This return value is used to communicate to the
client that any<br>
&gt; &gt; &gt; &gt;&gt; layout or segment of a layout that were given with<br>
&gt; logr_return_on_close<br>
&gt; &gt; &gt; &gt;&gt; set to TRUE will result in the server invalidating
all layouts for<br>
&gt; the<br>
&gt; &gt; &gt; &gt;&gt; file after it was closed.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; The use of &quot;any&quot; and &quot;all&quot; above
reads as logr_return_on_close<br>
&gt; &gt; being a global<br>
&gt; &gt; &gt; &gt; flag - if server sets the flag once, all layouts for
the file<br>
&gt; &gt; are invalidated<br>
&gt; &gt; &gt; &gt; on close, even those for which the flag was set to
FALSE.<br>
&gt; &gt; That's not what was<br>
&gt; &gt; &gt; &gt; intended, so the following text would be better:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; This return value is used to inform the client that
any layout or<br>
&gt; segment<br>
&gt; &gt; &gt; &gt; of a layout that were given with logr_return_on_close
set to TRUE<br>
&gt; will be<br>
&gt; &gt; &gt; &gt; invalidated by the server when the client closes the
file.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I agree that this is a valid approach, but it complicates
both the<br>
&gt; client<br>
&gt; &gt; &gt; and server and I don't think this complexity is worthwhile.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; In addition, this will not be as useful for the forgetful
client model<br>
&gt; &gt; &gt; as the server will not know whether the client released
all its layout<br>
&gt; state<br>
&gt; &gt; &gt; or just the segments that were marked with return_on_close.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Another corner case might be with overlapping segments that
are<br>
&gt; incompatible<br>
&gt; &gt; &gt; with regards to return_on_close.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Based on the oral discussions we had on previous meetings
I'm inclined<br>
&gt; &gt; &gt; to prefer a simpler, catch-all approach over a more complex,<br>
&gt; &gt; optimized approach.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; In most cases, I assume that the server will either mark
all segments<br>
&gt; with<br>
&gt; &gt; &gt; return_on_close or none of them. In some cases, the server
might mark<br>
&gt; &gt; &gt; read-write layouts as return_on_close and not read-only
layouts.<br>
&gt; &gt; &gt; This may be the most common case that will benefit from
the fine<br>
&gt; &gt; grain solution<br>
&gt; &gt; &gt; and again, I'm not sure it's worth the trouble.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Benny<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; &gt; --David<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; -----Original Message-----<br>
&gt; &gt; &gt; &gt;&gt; From: nfsv4-bounces@ietf.org [</font></tt><a href="mailto:nfsv4-bounces@ietf.org"><tt><font size=2>mailto:nfsv4-bounces@ietf.org</font></tt></a><tt><font size=2>]
On<br>
&gt; &gt; Behalf Of Marc Eshel<br>
&gt; &gt; &gt; &gt;&gt; Sent: Thursday, February 23, 2012 5:27 PM<br>
&gt; &gt; &gt; &gt;&gt; To: Myklebust, Trond<br>
&gt; &gt; &gt; &gt;&gt; Cc: NFSv4<br>
&gt; &gt; &gt; &gt;&gt; Subject: [nfsv4] layout return - update<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Update to my correction to the logr_return_on_close
result field in<br>
&gt; &gt; &gt; &gt;&gt; 18.43.3 that should go into v4.1 errata.<br>
&gt; &gt; &gt; &gt;&gt; Marc.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; section 18.43.3 say:<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; The logr_return_on_close result field is a directive
to return the<br>
&gt; layout<br>
&gt; &gt; &gt; &gt;&gt; before closing the file. &nbsp;When the metadata
server sets this return<br>
&gt; value<br>
&gt; &gt; &gt; &gt;&gt; to TRUE, it MUST be prepared to recall the layout
in the case<br>
&gt; &gt; in which the<br>
&gt; &gt; &gt; &gt;&gt; client fails to return the layout before close.
&nbsp;For the metadata<br>
&gt; server<br>
&gt; &gt; &gt; &gt;&gt; that knows a layout must be returned before a close
of the file,<br>
&gt; this<br>
&gt; &gt; &gt; &gt;&gt; return value can be used to communicate the desired
behavior tothe<br>
&gt; client<br>
&gt; &gt; &gt; &gt;&gt; and thus remove one extra step from the client's
and metadata<br>
&gt; server's<br>
&gt; &gt; &gt; &gt;&gt; interaction.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; it should say:<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; The logr_return_on_close result field is a directive
to return or<br>
&gt; forget<br>
&gt; &gt; &gt; &gt;&gt; the layout before closing the file . When the metadata
server sets<br>
&gt; this<br>
&gt; &gt; &gt; &gt;&gt; return value to TRUE, the client MUST NOT use the
layout after<br>
&gt; sending<br>
&gt; &gt; &gt; &gt;&gt; the last CLOSE of that file. Any outstanding COMMIT
to the data<br>
&gt; servers<br>
&gt; &gt; &gt; &gt;&gt; or LAYOUTCOMMIT to the metadata server MUST be
sent prior to<br>
&gt; closing the<br>
&gt; &gt; &gt; &gt;&gt; file. This return value is used to communicate
to the client that<br>
&gt; any<br>
&gt; &gt; &gt; &gt;&gt; layout or segment of a layout that were given with<br>
&gt; logr_return_on_close<br>
&gt; &gt; &gt; &gt;&gt; set to TRUE will result in the server invalidating
all layouts for<br>
&gt; the<br>
&gt; &gt; &gt; &gt;&gt; file after it was closed.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Notes:<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; This directive will remove one or more extra steps
from the<br>
&gt; client's and<br>
&gt; &gt; &gt; &gt;&gt; metadata server's interaction.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; _______________________________________________<br>
&gt; &gt; &gt; &gt;&gt; nfsv4 mailing list<br>
&gt; &gt; &gt; &gt;&gt; nfsv4@ietf.org<br>
&gt; &gt; &gt; &gt;&gt; </font></tt><a href=https://www.ietf.org/mailman/listinfo/nfsv4><tt><font size=2>https://www.ietf.org/mailman/listinfo/nfsv4</font></tt></a><tt><font size=2><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; nfsv4 mailing list<br>
&gt; &gt; &gt; &gt; nfsv4@ietf.org<br>
&gt; &gt; &gt; &gt; </font></tt><a href=https://www.ietf.org/mailman/listinfo/nfsv4><tt><font size=2>https://www.ietf.org/mailman/listinfo/nfsv4</font></tt></a><tt><font size=2><br>
&gt; &gt;<br>
&gt; <br>
<br>
_______________________________________________<br>
nfsv4 mailing list<br>
nfsv4@ietf.org<br>
</font></tt><a href=https://www.ietf.org/mailman/listinfo/nfsv4><tt><font size=2>https://www.ietf.org/mailman/listinfo/nfsv4</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>
<br>
--=_alternative 00030A28882579AE_=--


From sshepler@microsoft.com  Thu Feb 23 16:46:40 2012
Return-Path: <sshepler@microsoft.com>
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 0370011E809F for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:46:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3cLRG7-hKwQu for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:46:39 -0800 (PST)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com [216.32.181.185]) by ietfa.amsl.com (Postfix) with ESMTP id ADDD611E8095 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 16:46:38 -0800 (PST)
Received: from mail120-ch1-R.bigfish.com (10.43.68.237) by CH1EHSOBE003.bigfish.com (10.43.70.53) with Microsoft SMTP Server id 14.1.225.23; Fri, 24 Feb 2012 00:46:37 +0000
Received: from mail120-ch1 (localhost [127.0.0.1])	by mail120-ch1-R.bigfish.com (Postfix) with ESMTP id BACD82000E6; Fri, 24 Feb 2012 00:46:37 +0000 (UTC)
X-SpamScore: -38
X-BigFish: VS-38(zz9371I936eK542M1432N98dKzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h944h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC101.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail120-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC101.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail120-ch1 (localhost.localdomain [127.0.0.1]) by mail120-ch1 (MessageSwitch) id 133004439777972_28213; Fri, 24 Feb 2012 00:46:37 +0000 (UTC)
Received: from CH1EHSMHS017.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.234])	by mail120-ch1.bigfish.com (Postfix) with ESMTP id 024B8E0048;	Fri, 24 Feb 2012 00:46:37 +0000 (UTC)
Received: from TK5EX14HUBC101.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS017.bigfish.com (10.43.70.17) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 24 Feb 2012 00:46:36 +0000
Received: from TK5EX14MBXC254.redmond.corp.microsoft.com ([169.254.2.100]) by TK5EX14HUBC101.redmond.corp.microsoft.com ([157.54.7.153]) with mapi id 14.02.0247.005; Fri, 24 Feb 2012 00:46:35 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
Thread-Index: AczyBYY40JL5ICJyS8eNCluSoB+npwAUrAmAAADfhIAAAGE7kAABqTSAAAYWNwAAARf/gAAANaSAAAGnMoAAAWG9oA==
Date: Fri, 24 Feb 2012 00:46:34 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A1857143FF6@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com> <5DEA8DB993B81040A21CF3CB332489F6B302813B@MX31A.corp.emc.com> <4F46C93B.9020100@tonian.com> <1330041938.2548.9.camel@lade.trondhjem.org>
In-Reply-To: <1330041938.2548.9.camel@lade.trondhjem.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.78]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 00:46:40 -0000

As to the question of a new section.  Please consider a short errata to=20
correct any immediate inconsistencies and then publication of a separate
RFC that would address the larger issues.  Essentially, that RFC would
become part of an "bis" document but the content/agreement/behavior can
be captured now and published in a way that is useful to the larger=20
community.

Spencer

> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of
> Myklebust, Trond
> Sent: Thursday, February 23, 2012 4:06 PM
> To: Benny Halevy
> Cc: Erasani, Pranoop; nfsv4@ietf.org
> Subject: Re: [nfsv4] forgetfulness and multiple layoutget's wth open
> stateid
>=20
> On Thu, 2012-02-23 at 15:18 -0800, Benny Halevy wrote:
> > On 2012-02-23 15:12, david.noveck@emc.com wrote:
> > >>  When the client is using the forgetful model (Section 12.5.5.1) it
> > >> MAY  forget its layout state and associated layout stateid at any
> time.
> > >
> > > And when it is not using the forgetful model, it MAY NOT?  Aren't
> > > you really saying "A client MAY always forget its layout state and
> > > associated layout stateid at any time"?  If it was a mistake for
> > > RFC5661 not to say that, then it was an awfully big one, and we
> > > should think very carefully before making this correction/change.
> >
> > Agreed.
>=20
> There is no choice. Section 12.5.5.1 says that
>=20
> "As long as the client does not assume it has layouts that are beyond wha=
t
> the server has granted, this is a safe practice."
>=20
> ...and so we have coded the Linux client based on that principle.
>=20
> > > Note that section 15.5.5.1 is entitled "Layout Recall Callback
> Robustness".
> > >
> > > It does say it "may be useful for clients to 'forget' details about
> > > what layouts and ranges the client actually has, leading to the
> > > server's layout ranges being beyond those that the client "thinks"
> > > it has".
> > >
> > > I'm not clear that the fact that you have a layout for a particular
> > > file or not is the kind of detail that is being referred to.
> >
> > Unfortunately, I think it is indeed the right reference.  It might be
> > useful to devote a complete section for the forgetful client model and
> > its various considerations for the client and the server.
>=20
> We need to reconcile the RFC5661 errata with the (often spirited)
> discussions that have been held on this mailing list, as well as official
> IETF meetings. We also need to reconcile it with the facts on the ground.
>=20
> --
> Trond Myklebust
> Linux NFS client maintainer
>=20
> NetApp
> Trond.Myklebust@netapp.com
> www.netapp.com
>=20
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4



From trond.myklebust@fys.uio.no  Thu Feb 23 16:53:38 2012
Return-Path: <trond.myklebust@fys.uio.no>
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 A80C811E80BA for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:53:38 -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 ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 77VJPOKekNKL for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 16:53:38 -0800 (PST)
Received: from mail-out1.uio.no (mail-out1.uio.no [IPv6:2001:700:100:10::57]) by ietfa.amsl.com (Postfix) with ESMTP id CA0CC11E80B8 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 16:53:37 -0800 (PST)
Received: from mail-mx5.uio.no ([129.240.10.46]) by mail-out1.uio.no with esmtp (Exim 4.75) (envelope-from <trond.myklebust@fys.uio.no>) id 1S0jPj-0006Im-5p; Fri, 24 Feb 2012 01:53:35 +0100
Received: from 76.205.189.109.customer.cdi.no ([109.189.205.76] helo=[172.16.74.149]) by mail-mx5.uio.no with esmtpsa (TLSv1:CAMELLIA256-SHA:256) user trondmy (Exim 4.76) (envelope-from <trond.myklebust@fys.uio.no>) id 1S0jPi-0000DI-Gj; Fri, 24 Feb 2012 01:53:35 +0100
Message-ID: <1330044813.6352.9.camel@lade.trondhjem.org>
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: david.black@emc.com
Date: Fri, 24 Feb 2012 01:53:33 +0100
In-Reply-To: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFF8@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com> <OFFCECDB19.1F4E4381-ON882579AD.0080F918-882579AD.0081AD4F@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFF8@MX14A.corp.emc.com>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) 
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
X-UiO-Ratelimit-Test: rcpts/h 7 msgs/h 2 sum rcpts/h 8 sum msgs/h 3 total rcpts 1623 max rcpts/h 20 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, FSL_RCVD_USER=0.001, TVD_RCVD_IP=0.001, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: B4CA066294B639A8E6A6080C30CBE7567F026437
X-UiO-SPAM-Test: remote_host: 109.189.205.76 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 3 max/h 2 blacklist 0 greylist 0 ratelimit 0
X-UiOonly: 0EC48E6A21A3FFD25157BF238C0F00E3DE061DC8
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 00:53:38 -0000

On Thu, 2012-02-23 at 19:23 -0500, david.black@emc.com wrote:
> Marc,
> 
> The disconnect I'm having with this is that a client that forgets the layout
> has to remember this flag from the layout.  OTOH, I understand your concern
> about the policy switch case - having to issue a heavy duty recall at that
> point just to switch policy would not be good.

Ermm... Why?

The forgetful client shouldn't need to care about what the server state
_as_long_as_it_takes_a_conservative_approach. I don't see how
return-on-close changes that.

> I observe that once the server has set the flag to TRUE, that behavior applies
> going forward no matter what the server does (i.e., if the flag is FALSE on the
> next layout for the same client and file, the flag is ignored because the
> required behavior is as if the flag were TRUE).
> 
> Would it be reasonable to require that if the server ever sets the flag to TRUE
> for a <client, layout> pair, then it MUST set the flag to true for all subsequent
> layouts or segments of layouts for that <client, layout> pair?

The client won't ever care. This whole discussion is about allowing the
server to drop the layout recall in a situation where the client _knows_
that it is unnecessary...

Cheers
  Trond


From tmk826@googlemail.com  Thu Feb 23 21:36:29 2012
Return-Path: <tmk826@googlemail.com>
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 DC2B921E800C for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 21:36:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.327
X-Spam-Level: 
X-Spam-Status: No, score=-2.327 tagged_above=-999 required=5 tests=[AWL=0.650,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qNpvCVvsqRBw for <nfsv4@ietfa.amsl.com>; Thu, 23 Feb 2012 21:36:26 -0800 (PST)
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id 57BC621E801D for <nfsv4@ietf.org>; Thu, 23 Feb 2012 21:36:22 -0800 (PST)
Received: by vcbfk14 with SMTP id fk14so1560175vcb.31 for <nfsv4@ietf.org>; Thu, 23 Feb 2012 21:36:21 -0800 (PST)
Received-SPF: pass (google.com: domain of tmk826@googlemail.com designates 10.220.209.200 as permitted sender) client-ip=10.220.209.200; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of tmk826@googlemail.com designates 10.220.209.200 as permitted sender) smtp.mail=tmk826@googlemail.com; dkim=pass header.i=tmk826@googlemail.com
Received: from mr.google.com ([10.220.209.200]) by 10.220.209.200 with SMTP id gh8mr461984vcb.55.1330061781814 (num_hops = 1); Thu, 23 Feb 2012 21:36:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0RcCdn+1frM1nWA2JahQw4lIz0A4twli7CbF9QbHnHs=; b=XarvH93i4Ew3RpgdnsreUWd+V5kCjhMcHvkDHj1vG1wmCOwKyANWgP14NwhH5PYt92 hP84eJQdh/DNzMDsA2HwrFJ+AfmXG84y1Bbj+Qejnzwkl2BW5TSJJ8H6v8kF/isbahB7 NeQZ9owAVm+oB0ELz11+5BTNRahV+Ql/1f3h0=
MIME-Version: 1.0
Received: by 10.220.209.200 with SMTP id gh8mr376517vcb.55.1330061781715; Thu, 23 Feb 2012 21:36:21 -0800 (PST)
Sender: tmk826@googlemail.com
Received: by 10.220.207.11 with HTTP; Thu, 23 Feb 2012 21:36:21 -0800 (PST)
In-Reply-To: <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com>
Date: Fri, 24 Feb 2012 06:36:21 +0100
X-Google-Sender-Auth: bOErmuL95wo5gYkoZLCHetc1kTg
Message-ID: <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com>
From: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
To: Spencer Shepler <sshepler@microsoft.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: tigran.mkrtchyan@desy.de
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: <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: Fri, 24 Feb 2012 05:36:29 -0000

Well I have a use case for it.

we keep all inodes as files in a directory. Files get removed if they
are migrated to
tape and space for new inodes are needed. We cold handle cases when filesys=
tem
would tell us that it's too much. Probably there are some other
migration file systems
around which will benefit as well. Of course this requires that such
error code propagated
up to the user lever (read posix).

Nevertheless such  error code may require yet another attribute like
*maxdirsize* to
let clients behave nicely in the first place.

Tigran.

On Thu, Feb 23, 2012 at 7:30 PM, Spencer Shepler <sshepler@microsoft.com> w=
rote:
>
> Large files? =C2=A0Haven't we always had those? :-)
>
>
> -----Original Message-----
> From: Peter Staubach [mailto:pstaubach@exagrid.com]
> Sent: Thursday, February 23, 2012 9:53 AM
> To: Spencer Shepler; Haynes, Tom; Tom Talpey
> Cc: nfsv4
> Subject: RE: 3530bis: Add a new error code for RENAME
>
> I agree with Spencer's assessment. =C2=A0Although clients may or may not =
strive to be Posix compliant by mapping the virtual file system models defi=
ned by the NFS protocols, the server behavior is more driven by local seman=
tics and the virtual file system models defined by the NFS protocols.
>
> In this case, it would seem that either EFBIG was an oversight because no=
 one could imagine a directory that big or there was other error defined to=
 cover the situation. =C2=A0Does anyone remember anything about the largefi=
le discussions way back when?
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Thanx...
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ps
>
>
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of=
 Spencer Shepler
> Sent: Thursday, February 23, 2012 12:34 PM
> To: Haynes, Tom; Tom Talpey
> Cc: nfsv4
> Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
>
>
> I think the argument for adding a new error return, such as this, is the =
server is able to better reflect what occurred that resulted in the error.
> Whether the client's operating environment has a direct translation of th=
at error to its application (even if it has an application to which to retu=
rn the error) is a separate issue.
>
> We should evaluate the error return based on the usefulness to the client=
.
> IMO having the error for the stated instance seems reasonable.
>
> Spencer
>
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of=
 Haynes, Tom
> Sent: Thursday, February 23, 2012 9:18 AM
> To: Tom Talpey
> Cc: nfsv4
> Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
>
>
>
> On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:
>
>>Tom Haynes wrote:
>>>
>>>We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
>>>
>>>At first blush, this appears to not make sense, I.e., the file size is
>>>not changing.
>>>
>>>Here is our use case:
>>>
>>>EFBIG could be returned if the target directory is about to exceed its
>>>maximum capacity. =C2=A0Got any really, really big directories on there?
>>>
>>>Anyone have any objections to adding this error value?
>>
>>What do you expect clients to do with this new error? I don't believe a
>>Posix client can map it to anything useful from a rename(2) call, and I
>>certainly don't see any recovery. Can you elaborate on the justification?
>
>
> Are we restricted to Posix clients?
>
> Is there no way to propose and drive a Posix change?
>
>
>>
>>Also, who is "we"?
>>
>
>
> My employer is NetApp and I represent them on this issue.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From pstaubach@exagrid.com  Fri Feb 24 06:01:10 2012
Return-Path: <pstaubach@exagrid.com>
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 EF4FF21F85C0 for <nfsv4@ietfa.amsl.com>; Fri, 24 Feb 2012 06:01:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.942
X-Spam-Level: 
X-Spam-Status: No, score=-5.942 tagged_above=-999 required=5 tests=[AWL=0.657,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rx7YoIfYsN-H for <nfsv4@ietfa.amsl.com>; Fri, 24 Feb 2012 06:01:10 -0800 (PST)
Received: from p02c11o142.mxlogic.net (p02c11o142.mxlogic.net [208.65.144.75]) by ietfa.amsl.com (Postfix) with ESMTP id 1967121F8584 for <nfsv4@ietf.org>; Fri, 24 Feb 2012 06:01:10 -0800 (PST)
Received: from unknown [69.84.133.248] (EHLO p02c11o142.mxlogic.net) by p02c11o142.mxlogic.net(mxl_mta-6.13.0-1) with ESMTP id 628974f4.4c03f940.52564.00-568.104886.p02c11o142.mxlogic.net (envelope-from <pstaubach@exagrid.com>);  Fri, 24 Feb 2012 07:01:10 -0700 (MST)
X-MXL-Hash: 4f4798262101e3ff-bb218f27686ef0e8dda3a7b6a062edf4be4eb72c
Received: from unknown [69.84.133.248] by p02c11o142.mxlogic.net(mxl_mta-6.13.0-1) with SMTP id c08974f4.0.52214.00-398.104628.p02c11o142.mxlogic.net (envelope-from <pstaubach@exagrid.com>);  Fri, 24 Feb 2012 07:00:51 -0700 (MST)
X-MXL-Hash: 4f47981316b895d2-1624c5910eb95ad8c4e952d8e20282aeea16252c
Received: from IT-1874.Isys.com ([172.20.0.223]) by IT-1874.Isys.com ([172.20.0.223]) with mapi; Fri, 24 Feb 2012 08:58:58 -0500
From: Peter Staubach <pstaubach@exagrid.com>
To: "tigran.mkrtchyan@desy.de" <tigran.mkrtchyan@desy.de>, Spencer Shepler <sshepler@microsoft.com>
Date: Fri, 24 Feb 2012 08:58:57 -0500
Thread-Topic: [nfsv4] 3530bis: Add a new error code for RENAME
Thread-Index: Aczytj++pQEAcplGTEu3IDVDh5b2/AARblPw
Message-ID: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com>
In-Reply-To: <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010122901)]
X-MAIL-FROM: <pstaubach@exagrid.com>
X-SOURCE-IP: [69.84.133.248]
X-AnalysisOut: [v=1.0 c=1 a=45bMGsW2zlsA:10 a=ooaBVg03rvgA:10 a=BLceEmwcHo]
X-AnalysisOut: [wA:10 a=IkcTkHD0fZMA:10 a=YmXeKoonWU0GTmr6cORa5w==:17 a=mK]
X-AnalysisOut: [_AVkanAAAA:8 a=yMhMjlubAAAA:8 a=ZC8462-RAAAA:8 a=48vgC7mUA]
X-AnalysisOut: [AAA:8 a=PKB1vA9md8pK8V3qXmYA:9 a=JwpOlz986jQPMXFlvg8A:7 a=]
X-AnalysisOut: [QEXdDO2ut3YA:10 a=d1MH5qWwH08A:10 a=9xyTavCNlvEA:10 a=-AOE]
X-AnalysisOut: [9ft50oIA:10 a=Et9p0wNuQ2IA:10 a=lZB815dzVvQA:10 a=VvwbdjCZ]
X-AnalysisOut: [aQh5iS-8:21 a=r7OQypL7U7SLi8MX:21]
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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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0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9uZnN2NA0KPg0K
Pg0KPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBu
ZnN2NCBtYWlsaW5nIGxpc3QNCj4gbmZzdjRAaWV0Zi5vcmcNCj4gaHR0cHM6Ly93d3cuaWV0Zi5v
cmcvbWFpbG1hbi9saXN0aW5mby9uZnN2NA0K

From david.black@emc.com  Fri Feb 24 09:20:07 2012
Return-Path: <david.black@emc.com>
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 D34B921F8591 for <nfsv4@ietfa.amsl.com>; Fri, 24 Feb 2012 09:20:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.673
X-Spam-Level: 
X-Spam-Status: No, score=-109.673 tagged_above=-999 required=5 tests=[AWL=0.926, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3J+vzCmS30R3 for <nfsv4@ietfa.amsl.com>; Fri, 24 Feb 2012 09:20:05 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 97AE821F854E for <nfsv4@ietf.org>; Fri, 24 Feb 2012 09:19:38 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1OHJHTa028470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Feb 2012 12:19:21 -0500
Received: from mailhub.lss.emc.com (mailhubhoprd02.lss.emc.com [10.254.221.253]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor); Fri, 24 Feb 2012 12:18:55 -0500
Received: from mxhub27.corp.emc.com (mxhub27.corp.emc.com [10.254.110.183]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1OHIsh8028159; Fri, 24 Feb 2012 12:18:55 -0500
Received: from mx14a.corp.emc.com ([169.254.1.157]) by mxhub27.corp.emc.com ([10.254.110.183]) with mapi; Fri, 24 Feb 2012 12:18:54 -0500
From: <david.black@emc.com>
To: <trond.myklebust@fys.uio.no>
Date: Fri, 24 Feb 2012 12:18:54 -0500
Thread-Topic: [nfsv4] layout return - update
Thread-Index: AczyjsmxQCDsSmoBTqK64W5FSzt4GQAiKyqw
Message-ID: <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAF011B@MX14A.corp.emc.com>
References: <OF25F40DE8.20DF6BD5-ON882579AD.001BA4AF-882579AD.001CD7ED@us.ibm.com> <CAEMWVhu5wK7oWwyZDUXjGNYyAUo3iEa07dN6nY3D4UuyLXs33A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857142D6E@TK5EX14MBXC254.redmond.corp.microsoft.com> <OF6104E85E.3D7540B8-ON882579AD.00668F1B-882579AD.0069F1F5@us.ibm.com> <1330025664.2423.22.camel@lade.trondhjem.org> <OFF6FD6B2B.0BC33E0C-ON882579AD.007A3D9E-882579AD.007B4777@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE4@MX14A.corp.emc.com> <4F46C80E.7010707@tonian.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFE8@MX14A.corp.emc.com> <OFFCECDB19.1F4E4381-ON882579AD.0080F918-882579AD.0081AD4F@us.ibm.com> <7C4DFCE962635144B8FAE8CA11D0BF1E05AEAEFFF8@MX14A.corp.emc.com> <1330044813.6352.9.camel@lade.trondhjem.org>
In-Reply-To: <1330044813.6352.9.camel@lade.trondhjem.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - update
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 17:20:07 -0000

SGkgVHJvbmQsDQoNCj4gPiBUaGUgZGlzY29ubmVjdCBJJ20gaGF2aW5nIHdpdGggdGhpcyBpcyB0
aGF0IGEgY2xpZW50IHRoYXQgZm9yZ2V0cyB0aGUgbGF5b3V0DQo+ID4gaGFzIHRvIHJlbWVtYmVy
IHRoaXMgZmxhZyBmcm9tIHRoZSBsYXlvdXQuICBPVE9ILCBJIHVuZGVyc3RhbmQgeW91ciBjb25j
ZXJuDQo+ID4gYWJvdXQgdGhlIHBvbGljeSBzd2l0Y2ggY2FzZSAtIGhhdmluZyB0byBpc3N1ZSBh
IGhlYXZ5IGR1dHkgcmVjYWxsIGF0IHRoYXQNCj4gPiBwb2ludCBqdXN0IHRvIHN3aXRjaCBwb2xp
Y3kgd291bGQgbm90IGJlIGdvb2QuDQo+IA0KPiBFcm1tLi4uIFdoeT8NCg0KSSB3YXMgdGhpbmtp
bmcgdGhhdCBhbiBhbGwtb3Itbm90aGluZyBtYXJraW5nIGRpc2NpcGxpbmUgd291bGQgcmVxdWly
Z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YWJvdXQgYWxsb3dpbmcgdGhlDQo+IHNlcnZlciB0byBkcm9wIHRoZSBs
YXlvdXQgcmVjYWxsIGluIGEgc2l0dWF0aW9uIHdoZXJlIHRoZSBjbGllbnQgX2tub3dzXw0KPiB0
aGF0IGl0IGlzIHVubmVjZXNzYXJ5Li4uDQo+IA0KPiBDaGVlcnMNCj4gICBUcm9uZA0KPiANCg0K

From eshel@almaden.ibm.com  Fri Feb 24 14:25:11 2012
Return-Path: <eshel@almaden.ibm.com>
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 3186921F8751 for <nfsv4@ietfa.amsl.com>; Fri, 24 Feb 2012 14:25:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id merK-awGlAMI for <nfsv4@ietfa.amsl.com>; Fri, 24 Feb 2012 14:25:10 -0800 (PST)
Received: from e6.ny.us.ibm.com (e6.ny.us.ibm.com [32.97.182.146]) by ietfa.amsl.com (Postfix) with ESMTP id 023DC21F86EB for <nfsv4@ietf.org>; Fri, 24 Feb 2012 14:25:09 -0800 (PST)
Received: from /spool/local by e6.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Fri, 24 Feb 2012 17:25:08 -0500
Received: from d01dlp01.pok.ibm.com (9.56.224.56) by e6.ny.us.ibm.com (192.168.1.106) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Fri, 24 Feb 2012 17:25:05 -0500
Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 2827E38C805F for <nfsv4@ietf.org>; Fri, 24 Feb 2012 17:25:05 -0500 (EST)
Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1OMP4WH3665976 for <nfsv4@ietf.org>; Fri, 24 Feb 2012 17:25:04 -0500
Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1OMP46h018619 for <nfsv4@ietf.org>; Fri, 24 Feb 2012 20:25:04 -0200
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1OMP4am018577 for <nfsv4@ietf.org>; Fri, 24 Feb 2012 20:25:04 -0200
To: NFSv4 <nfsv4@ietf.org>
MIME-Version: 1.0
X-KeepSent: 1B7FB666:9F2434B4-882579AE:007A2FEB; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OF1B7FB666.9F2434B4-ON882579AE.007A2FEB-882579AE.007B22FE@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Fri, 24 Feb 2012 14:25:01 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/24/2012 17:25:03, Serialize complete at 02/24/2012 17:25:03
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022422-1976-0000-0000-00000AE8BABD
Subject: [nfsv4] layout return - final
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Fri, 24 Feb 2012 22:25:11 -0000

Hopefully the final correction to the logr_return_on_close result field in 

18.43.3 that should go into v4.1 errata.
Marc.

section 18.43.3 say:

The logr_return_on_close result field is a directive to return the layout 
before closing the file.  When the metadata server sets this  return value 

to TRUE, it MUST be prepared to recall the layout in the case in which the 

client fails to return the layout before close.  For the metadata server 
that knows a layout must be returned before a close of the file, this 
return value can be used to communicate the desired behavior to the client 

and thus remove one extra step from the client's and metadata server's 
interaction.

it should say:

The logr_return_on_close result field is a directive to return or forget 
the layout before closing the file . When the metadata server sets this 
return value to TRUE, the client MUST NOT use the layout after sending 
the last CLOSE of that file. Any outstanding COMMIT to the data servers
or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
file. This return value is used to communicate to the client that any 
layout or segment of a layout that were given with logr_return_on_close 
set to TRUE will result in the server invalidating all layouts for the 
file after it was closed. Once the server returns TRUE to a client for a
given file it MUST return TRUE for all subsequent layouts or segments for
that file and client until that file is closed.

Notes:

This directive will remove one or more extra steps from the client's and 
metadata server's interaction.


From trond.myklebust@fys.uio.no  Sat Feb 25 09:56:40 2012
Return-Path: <trond.myklebust@fys.uio.no>
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 8379221F8598 for <nfsv4@ietfa.amsl.com>; Sat, 25 Feb 2012 09:56:40 -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 ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ieNFusMK2fPc for <nfsv4@ietfa.amsl.com>; Sat, 25 Feb 2012 09:56:39 -0800 (PST)
Received: from mail-out2.uio.no (mail-out2.uio.no [IPv6:2001:700:100:10::58]) by ietfa.amsl.com (Postfix) with ESMTP id 14E3E21F8592 for <nfsv4@ietf.org>; Sat, 25 Feb 2012 09:56:38 -0800 (PST)
Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.75) (envelope-from <trond.myklebust@fys.uio.no>) id 1S1Lr7-0006OU-Sm; Sat, 25 Feb 2012 18:56:25 +0100
Received: from c-98-250-106-145.hsd1.mi.comcast.net ([98.250.106.145] helo=[192.168.1.3]) by mail-mx4.uio.no with esmtpsa (TLSv1:CAMELLIA256-SHA:256) user trondmy (Exim 4.76) (envelope-from <trond.myklebust@fys.uio.no>) id 1S1Lr6-0001TA-US; Sat, 25 Feb 2012 18:56:25 +0100
Message-ID: <1330192577.2678.11.camel@lade.trondhjem.org>
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Peter Staubach <pstaubach@exagrid.com>
Date: Sat, 25 Feb 2012 12:56:17 -0500
In-Reply-To: <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.2.3 (3.2.3-1.fc16) 
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
X-UiO-Ratelimit-Test: rcpts/h 5 msgs/h 1 sum rcpts/h 8 sum msgs/h 2 total rcpts 1628 max rcpts/h 20 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, FSL_RCVD_USER=0.001, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: F918DD457C79A56EF4006C2A878AF82436A90096
X-UiO-SPAM-Test: remote_host: 98.250.106.145 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 60 max/h 3 blacklist 0 greylist 0 ratelimit 0
X-UiOonly: ACE92435DE51D133DC44253C7B8A05F3FACA5235
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Sat, 25 Feb 2012 17:56:40 -0000

On Fri, 2012-02-24 at 08:58 -0500, Peter Staubach wrote:
> Hmm.
> 
> I am not sure that I see the point of a "maxdirsize" attribute.  How would a client predict how some metadata operation would affect the size of the directory?  That seems to be attempting to expose a little more about the file system on the server than is appropriate to do.
> 
> As always, we should just allow the server to do what it does and return the errors that it needs to return and then let the client deal with the results and errors as it deems appropriate.
> 
> 	Thanx...
> 
> 		ps

ACK... Having the client try to predict what is happening on a
multi-client system is an exercise in futility.

As for the RENAME case, can someone remind me why NFS4ERR_NOSPC isn't
appropriate here? That's certainly the error that I'd expect in a POSIX
environment.

Cheers
  Trond

> -----Original Message-----
> From: tmk826@googlemail.com [mailto:tmk826@googlemail.com] On Behalf Of Tigran Mkrtchyan
> Sent: Friday, February 24, 2012 12:36 AM
> To: Spencer Shepler
> Cc: Peter Staubach; Haynes, Tom; Tom Talpey; nfsv4
> Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
> 
> Well I have a use case for it.
> 
> we keep all inodes as files in a directory. Files get removed if they are migrated to tape and space for new inodes are needed. We cold handle cases when filesystem would tell us that it's too much. Probably there are some other migration file systems around which will benefit as well. Of course this requires that such error code propagated up to the user lever (read posix).
> 
> Nevertheless such  error code may require yet another attribute like
> *maxdirsize* to
> let clients behave nicely in the first place.
> 
> Tigran.
> 
> On Thu, Feb 23, 2012 at 7:30 PM, Spencer Shepler <sshepler@microsoft.com> wrote:
> >
> > Large files?  Haven't we always had those? :-)
> >
> >
> > -----Original Message-----
> > From: Peter Staubach [mailto:pstaubach@exagrid.com]
> > Sent: Thursday, February 23, 2012 9:53 AM
> > To: Spencer Shepler; Haynes, Tom; Tom Talpey
> > Cc: nfsv4
> > Subject: RE: 3530bis: Add a new error code for RENAME
> >
> > I agree with Spencer's assessment.  Although clients may or may not strive to be Posix compliant by mapping the virtual file system models defined by the NFS protocols, the server behavior is more driven by local semantics and the virtual file system models defined by the NFS protocols.
> >
> > In this case, it would seem that either EFBIG was an oversight because no one could imagine a directory that big or there was other error defined to cover the situation.  Does anyone remember anything about the largefile discussions way back when?
> >
> >        Thanx...
> >
> >                ps
> >
> >
> > -----Original Message-----
> > From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf 
> > Of Spencer Shepler
> > Sent: Thursday, February 23, 2012 12:34 PM
> > To: Haynes, Tom; Tom Talpey
> > Cc: nfsv4
> > Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
> >
> >
> > I think the argument for adding a new error return, such as this, is the server is able to better reflect what occurred that resulted in the error.
> > Whether the client's operating environment has a direct translation of that error to its application (even if it has an application to which to return the error) is a separate issue.
> >
> > We should evaluate the error return based on the usefulness to the client.
> > IMO having the error for the stated instance seems reasonable.
> >
> > Spencer
> >
> > -----Original Message-----
> > From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf 
> > Of Haynes, Tom
> > Sent: Thursday, February 23, 2012 9:18 AM
> > To: Tom Talpey
> > Cc: nfsv4
> > Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
> >
> >
> >
> > On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:
> >
> >>Tom Haynes wrote:
> >>>
> >>>We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
> >>>
> >>>At first blush, this appears to not make sense, I.e., the file size 
> >>>is not changing.
> >>>
> >>>Here is our use case:
> >>>
> >>>EFBIG could be returned if the target directory is about to exceed 
> >>>its maximum capacity.  Got any really, really big directories on there?
> >>>
> >>>Anyone have any objections to adding this error value?
> >>
> >>What do you expect clients to do with this new error? I don't believe 
> >>a Posix client can map it to anything useful from a rename(2) call, 
> >>and I certainly don't see any recovery. Can you elaborate on the justification?
> >
> >
> > Are we restricted to Posix clients?
> >
> > Is there no way to propose and drive a Posix change?
> >
> >
> >>
> >>Also, who is "we"?
> >>
> >
> >
> > My employer is NetApp and I represent them on this issue.
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> >
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> >
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4



From bhalevy@tonian.com  Tue Feb 28 01:37:31 2012
Return-Path: <bhalevy@tonian.com>
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 C1C9E21F8780 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 01:37:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level: 
X-Spam-Status: No, score=-0.999 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GLnrYsVKdPy6 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 01:37:30 -0800 (PST)
Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by ietfa.amsl.com (Postfix) with ESMTP id 9B61221F8722 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 01:37:30 -0800 (PST)
Received: by eeke51 with SMTP id e51so1147670eek.31 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 01:37:29 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.14.206.133 as permitted sender) client-ip=10.14.206.133; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.14.206.133 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.14.206.133]) by 10.14.206.133 with SMTP id l5mr10522499eeo.22.1330421849514 (num_hops = 1); Tue, 28 Feb 2012 01:37:29 -0800 (PST)
Received: by 10.14.206.133 with SMTP id l5mr7902717eeo.22.1330421849273; Tue, 28 Feb 2012 01:37:29 -0800 (PST)
Received: from bhalevy-lt.tonian.com (bzq-79-180-197-44.red.bezeqint.net. [79.180.197.44]) by mx.google.com with ESMTPS id u11sm61123609eeb.1.2012.02.28.01.37.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Feb 2012 01:37:28 -0800 (PST)
Message-ID: <4F4CA056.1050807@tonian.com>
Date: Tue, 28 Feb 2012 11:37:26 +0200
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Marc Eshel <eshel@almaden.ibm.com>
References: <OF1B7FB666.9F2434B4-ON882579AE.007A2FEB-882579AE.007B22FE@us.ibm.com>
In-Reply-To: <OF1B7FB666.9F2434B4-ON882579AE.007A2FEB-882579AE.007B22FE@us.ibm.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQmP6CfKHy4u6ODkLVLoPRbpBUkOFIww8msq+6nSXX5F0v2pRxUmOuogMIxbG+Pxs938hkiE
Cc: NFSv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return - final
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 09:37:31 -0000

Marc,

Since the server may export the file system over multiple layout types
I suggest to restrict the requirements on the server to the layout_type
for which logr_return_on_close was returned.

See proposal in line below.

Benny

On 2012-02-25 00:25, Marc Eshel wrote:
> Hopefully the final correction to the logr_return_on_close result field in 
> 
> 18.43.3 that should go into v4.1 errata.
> Marc.
> 
> section 18.43.3 say:
> 
> The logr_return_on_close result field is a directive to return the layout 
> before closing the file.  When the metadata server sets this  return value 
> 
> to TRUE, it MUST be prepared to recall the layout in the case in which the 
> 
> client fails to return the layout before close.  For the metadata server 
> that knows a layout must be returned before a close of the file, this 
> return value can be used to communicate the desired behavior to the client 
> 
> and thus remove one extra step from the client's and metadata server's 
> interaction.
> 
> it should say:
> 
> The logr_return_on_close result field is a directive to return or forget 
> the layout before closing the file . When the metadata server sets this 
> return value to TRUE, the client MUST NOT use the layout after sending 
> the last CLOSE of that file. Any outstanding COMMIT to the data servers
> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
> file. This return value is used to communicate to the client that any 
> layout or segment of a layout that were given with logr_return_on_close 
> set to TRUE will result in the server invalidating all layouts

of layouttype4 of loga_layout_type

> for the file after it was closed. Once the server returns 

logr_return_on_close set to

> TRUE to a client for a
> given file it MUST return

s/return/set logr_return_on_close to/

> TRUE for all subsequent layouts or segments

of layoutype4 of the respective loga_layout_type

> for
> that file and client until that file is closed.
> 
> Notes:
> 
> This directive will remove one or more extra steps from the client's and 
> metadata server's interaction.
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From bhalevy@tonian.com  Tue Feb 28 01:44:09 2012
Return-Path: <bhalevy@tonian.com>
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 E304521F8648 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 01:44:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level: 
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=1.300,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YkzUCIjLwiig for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 01:44:08 -0800 (PST)
Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by ietfa.amsl.com (Postfix) with ESMTP id 8EEB721F8557 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 01:44:07 -0800 (PST)
Received: by eeke51 with SMTP id e51so1149594eek.31 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 01:44:06 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.14.95.8 as permitted sender) client-ip=10.14.95.8; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.14.95.8 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.14.95.8]) by 10.14.95.8 with SMTP id o8mr10751701eef.111.1330422246869 (num_hops = 1); Tue, 28 Feb 2012 01:44:06 -0800 (PST)
Received: by 10.14.95.8 with SMTP id o8mr8031883eef.111.1330422246598; Tue, 28 Feb 2012 01:44:06 -0800 (PST)
Received: from bhalevy-lt.tonian.com (bzq-79-180-197-44.red.bezeqint.net. [79.180.197.44]) by mx.google.com with ESMTPS id v51sm68507506eef.2.2012.02.28.01.44.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Feb 2012 01:44:05 -0800 (PST)
Message-ID: <4F4CA1E3.6010302@tonian.com>
Date: Tue, 28 Feb 2012 11:44:03 +0200
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: Trond Myklebust <trond.myklebust@fys.uio.no>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org>
In-Reply-To: <1330192577.2678.11.camel@lade.trondhjem.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQkDvmDTtAwyV39BzZQxX2XnINJhmcZlwSOCtIV52FSwMucDzYjnqW5Zx/Km4g+ZGPcJ7Yfm
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 09:44:09 -0000

On 2012-02-25 19:56, Trond Myklebust wrote:
> On Fri, 2012-02-24 at 08:58 -0500, Peter Staubach wrote:
>> Hmm.
>>
>> I am not sure that I see the point of a "maxdirsize" attribute.  How would a client predict how some metadata operation would affect the size of the directory?  That seems to be attempting to expose a little more about the file system on the server than is appropriate to do.
>>
>> As always, we should just allow the server to do what it does and return the errors that it needs to return and then let the client deal with the results and errors as it deems appropriate.
>>
>> 	Thanx...
>>
>> 		ps
> 
> ACK... Having the client try to predict what is happening on a
> multi-client system is an exercise in futility.
> 
> As for the RENAME case, can someone remind me why NFS4ERR_NOSPC isn't
> appropriate here? That's certainly the error that I'd expect in a POSIX
> environment.

For example, if the file server has a limit on the maximum file size, say
of 2 GB, and say you have a gigantic directory and rename would hit the file
size limit, but there is is still plenty of free space on the file system
NFS4ERR_FBIG would be the right error to return and not NFS4ERR_NOSPC.

15.1.4.4.  NFS4ERR_FBIG (Error Code 27)

   The file is too large.  The operation would have caused the file to
   grow beyond the server's limit.

15.1.4.9.  NFS4ERR_NOSPC (Error Code 28)

   Indicates there is no space left on the device.  The operation would
   have caused the server's file system to exceed its limit.

Benny

> 
> Cheers
>   Trond
> 
>> -----Original Message-----
>> From: tmk826@googlemail.com [mailto:tmk826@googlemail.com] On Behalf Of Tigran Mkrtchyan
>> Sent: Friday, February 24, 2012 12:36 AM
>> To: Spencer Shepler
>> Cc: Peter Staubach; Haynes, Tom; Tom Talpey; nfsv4
>> Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
>>
>> Well I have a use case for it.
>>
>> we keep all inodes as files in a directory. Files get removed if they are migrated to tape and space for new inodes are needed. We cold handle cases when filesystem would tell us that it's too much. Probably there are some other migration file systems around which will benefit as well. Of course this requires that such error code propagated up to the user lever (read posix).
>>
>> Nevertheless such  error code may require yet another attribute like
>> *maxdirsize* to
>> let clients behave nicely in the first place.
>>
>> Tigran.
>>
>> On Thu, Feb 23, 2012 at 7:30 PM, Spencer Shepler <sshepler@microsoft.com> wrote:
>>>
>>> Large files?  Haven't we always had those? :-)
>>>
>>>
>>> -----Original Message-----
>>> From: Peter Staubach [mailto:pstaubach@exagrid.com]
>>> Sent: Thursday, February 23, 2012 9:53 AM
>>> To: Spencer Shepler; Haynes, Tom; Tom Talpey
>>> Cc: nfsv4
>>> Subject: RE: 3530bis: Add a new error code for RENAME
>>>
>>> I agree with Spencer's assessment.  Although clients may or may not strive to be Posix compliant by mapping the virtual file system models defined by the NFS protocols, the server behavior is more driven by local semantics and the virtual file system models defined by the NFS protocols.
>>>
>>> In this case, it would seem that either EFBIG was an oversight because no one could imagine a directory that big or there was other error defined to cover the situation.  Does anyone remember anything about the largefile discussions way back when?
>>>
>>>        Thanx...
>>>
>>>                ps
>>>
>>>
>>> -----Original Message-----
>>> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf 
>>> Of Spencer Shepler
>>> Sent: Thursday, February 23, 2012 12:34 PM
>>> To: Haynes, Tom; Tom Talpey
>>> Cc: nfsv4
>>> Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
>>>
>>>
>>> I think the argument for adding a new error return, such as this, is the server is able to better reflect what occurred that resulted in the error.
>>> Whether the client's operating environment has a direct translation of that error to its application (even if it has an application to which to return the error) is a separate issue.
>>>
>>> We should evaluate the error return based on the usefulness to the client.
>>> IMO having the error for the stated instance seems reasonable.
>>>
>>> Spencer
>>>
>>> -----Original Message-----
>>> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf 
>>> Of Haynes, Tom
>>> Sent: Thursday, February 23, 2012 9:18 AM
>>> To: Tom Talpey
>>> Cc: nfsv4
>>> Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
>>>
>>>
>>>
>>> On 2/22/12 12:56 PM, "Tom Talpey" <ttalpey@microsoft.com> wrote:
>>>
>>>> Tom Haynes wrote:
>>>>>
>>>>> We'd like to add NFS4ERR_FBIG as an expected error code for RENAME.
>>>>>
>>>>> At first blush, this appears to not make sense, I.e., the file size 
>>>>> is not changing.
>>>>>
>>>>> Here is our use case:
>>>>>
>>>>> EFBIG could be returned if the target directory is about to exceed 
>>>>> its maximum capacity.  Got any really, really big directories on there?
>>>>>
>>>>> Anyone have any objections to adding this error value?
>>>>
>>>> What do you expect clients to do with this new error? I don't believe 
>>>> a Posix client can map it to anything useful from a rename(2) call, 
>>>> and I certainly don't see any recovery. Can you elaborate on the justification?
>>>
>>>
>>> Are we restricted to Posix clients?
>>>
>>> Is there no way to propose and drive a Posix change?
>>>
>>>
>>>>
>>>> Also, who is "we"?
>>>>
>>>
>>>
>>> My employer is NetApp and I represent them on this issue.
>>>

From bhalevy@tonian.com  Tue Feb 28 02:32:54 2012
Return-Path: <bhalevy@tonian.com>
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 57D7021F861E for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 02:32:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.949
X-Spam-Level: 
X-Spam-Status: No, score=-2.949 tagged_above=-999 required=5 tests=[AWL=0.650,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lqMsqJHibjkm for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 02:32:53 -0800 (PST)
Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by ietfa.amsl.com (Postfix) with ESMTP id 12D4821F85C2 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 02:32:52 -0800 (PST)
Received: by eeke51 with SMTP id e51so1164105eek.31 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 02:32:52 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.14.204.70 as permitted sender) client-ip=10.14.204.70; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.14.204.70 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.14.204.70]) by 10.14.204.70 with SMTP id g46mr10690225eeo.117.1330425172364 (num_hops = 1); Tue, 28 Feb 2012 02:32:52 -0800 (PST)
Received: by 10.14.204.70 with SMTP id g46mr7985169eeo.117.1330425172132; Tue, 28 Feb 2012 02:32:52 -0800 (PST)
Received: from bhalevy-lt.tonian.com (bzq-79-180-197-44.red.bezeqint.net. [79.180.197.44]) by mx.google.com with ESMTPS id i10sm28860612eea.8.2012.02.28.02.32.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Feb 2012 02:32:51 -0800 (PST)
Message-ID: <4F4CAD51.8060406@tonian.com>
Date: Tue, 28 Feb 2012 12:32:49 +0200
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: "nfsv4@ietf.org" <nfsv4@ietf.org>,  David Noveck <david.noveck@emc.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com>
In-Reply-To: <4F46C07C.2090300@tonian.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQmP+NAo8uIA8KiiuldB84oQxAw5YMBxMA9M9BUh7A8yVmJcPrv46e41EV51KpCwmpsguhic
Cc: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
Subject: [nfsv4] [ERRATA v2] multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 10:32:54 -0000

Changes from previous version:

* Incorporating David Noveck's comment
http://www.ietf.org/mail-archive/web/nfsv4/current/msg10699.html

Version 1:
http://www.ietf.org/mail-archive/web/nfsv4/current/msg10697.html

---

Section 12.5.2. says:
   The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.

It should say:
   The first successful LAYOUTGET
   processed by the server using a non-layout stateid as an argument
   MUST have the "seqid" field of the layout stateid in the response set
   to one.  Thereafter, the client MUST use a layout stateid (see
   Section 12.5.3) on future invocations of LAYOUTGET on the file, and
   the "seqid" MUST NOT be set to zero.
|  The client MUST serialize LAYOUTGET operations using a non-layout
|  stateid with any other operation affecting the layout state on the file,
|  including CB_LAYOUTRECALL, to allow consistent initialization of the
|  layout state.

Add the following paragraph to section 12.5.3.:
   A client MAY always forget its layout state and associated
   layout stateid at any time (See also section 12.5.5.1).
   In such case, the client MUST use a non-layout stateid for the next
   LAYOUTGET operation.  This will signal the server that the client has
   no more layouts on the file and its respective layout state can be
   released before issuing a new layout in response to LAYOUTGET.

Section 12.5.5.2.1. says:
   One critical issue with regard to layout operations sequencing
   concerns callbacks.  The protocol must defend against races between
   the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
   CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
   implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
   to which the client has not yet received a reply.  The client detects
   such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
   layout stateid.  If the "seqid" is not exactly one higher than what
   the client currently has recorded, and the client has at least one
   LAYOUTGET and/or LAYOUTRETURN operation outstanding, the client knows
   the server sent the CB_LAYOUTRECALL after sending a response to an
   outstanding LAYOUTGET or LAYOUTRETURN.

It should say:
   One critical issue with regard to layout operations sequencing
   concerns callbacks.  The protocol must defend against races between
   the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
   CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
   implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
   to which the client has not yet received a reply.  The client detects
   such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
   layout stateid.  If the "seqid" is not exactly one higher than what
   the client currently has recorded, and the client has at least one
   LAYOUTGET and/or LAYOUTRETURN operation outstanding,
|  or if the client has a outstanding LAYOUTGET with a non-layout stateid,
   the client knows
   the server sent the CB_LAYOUTRECALL after sending a response to an
   outstanding LAYOUTGET or LAYOUTRETURN.

Section 12.5.5.2.1.1. says:
   It is permissible for the client to send multiple parallel LAYOUTGET
   operations for the same file or multiple parallel LAYOUTRETURN
   operations for the same file or a mix of both.

It should say:
    It is permissible for the client to send multiple parallel LAYOUTGET
    operations for the same file
|   using the layout stateid
    or multiple parallel LAYOUTRETURN
    operations for the same file or a mix of both.

Section 12.5.5.2.1.2. says:
   Note
   that in the first case, the "seqid" in the layout stateid of the
   recall is two greater than what the client has recorded;

It should say:
   Note
   that in the first case, the "seqid" in the layout stateid of the
   recall is two greater than what the client has recorded,
|  or the client has an outstanding LAYOUTGET using a non-layout stateid;

After the following paragraph in Section 18.43.3:
   The loga_stateid field specifies a valid stateid.  If a layout is not
   currently held by the client, the loga_stateid field represents a
   stateid reflecting the correspondingly valid open, byte-range lock,
   or delegation stateid.  Once a layout is held on the file by the
   client, the loga_stateid field MUST be a stateid as returned from a
   previous LAYOUTGET or LAYOUTRETURN operation or provided by a
   CB_LAYOUTRECALL operation (see Section 12.5.3).

Add the following paragraph:
|  When loga_stateid represents a non-layout stateid the server MUST
|  release any layout state previously held by the client as if the client
|  explicitly returned the layout using a corresponding LAYOUTRETURN
|  with lora_iomode of LAYOUTIOMODE4_ANY, lr_returntype of LAYOUTRETURN4_FILE,
|  lrf_offset value 0, and lrf_length value NFS4_UINT64_MAX. This is
|  particularly useful to clients implementing the forgetful model (Section
|  12.5.5.1) when acquiring a layout after unilaterally forgetting the layout
|  state.  This requirement mandates that the client serializes sending
|  a LAYOUTGET with non-layout statid with any other layout operation on
|  the file (See section 12.5.2).

From Trond.Myklebust@netapp.com  Tue Feb 28 05:43:22 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 1B8A921F8653 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 05:43:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.542
X-Spam-Level: 
X-Spam-Status: No, score=-10.542 tagged_above=-999 required=5 tests=[AWL=0.057, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jdf6PIWt9Owj for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 05:43:20 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id CB76B21F864F for <nfsv4@ietf.org>; Tue, 28 Feb 2012 05:43:20 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,496,1325491200"; d="scan'208";a="629128546"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 28 Feb 2012 05:43:20 -0800
Received: from vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1SDhKLe007393; Tue, 28 Feb 2012 05:43:20 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0247.003; Tue, 28 Feb 2012 05:43:19 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] 3530bis: Add a new error code for RENAME
Thread-Index: AQHM9h7t8tgg4XGZK0294wJYq3HApg==
Date: Tue, 28 Feb 2012 13:43:18 +0000
Message-ID: <1330436598.3053.6.camel@lade.trondhjem.org>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org> <4F4CA1E3.6010302@tonian.com>
In-Reply-To: <4F4CA1E3.6010302@tonian.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.116]
Content-Type: text/plain; charset="utf-8"
Content-ID: <31B4FE293B9C9E48B42C6071E8795572@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 13:43:22 -0000

T24gVHVlLCAyMDEyLTAyLTI4IGF0IDExOjQ0ICswMjAwLCBCZW5ueSBIYWxldnkgd3JvdGU6DQo+
IE9uIDIwMTItMDItMjUgMTk6NTYsIFRyb25kIE15a2xlYnVzdCB3cm90ZToNCj4gPiBPbiBGcmks
IDIwMTItMDItMjQgYXQgMDg6NTggLTA1MDAsIFBldGVyIFN0YXViYWNoIHdyb3RlOg0KPiA+PiBI
bW0uDQo+ID4+DQo+ID4+IEkgYW0gbm90IHN1cmUgdGhhdCBJIHNlZSB0aGUgcG9pbnQgb2YgYSAi
bWF4ZGlyc2l6ZSIgYXR0cmlidXRlLiAgSG93IHdvdWxkIGEgY2xpZW50IHByZWRpY3QgaG93IHNv
bWUgbWV0YWRhdGEgb3BlcmF0aW9uIHdvdWxkIGFmZmVjdCB0aGUgc2l6ZSBvZiB0aGUgZGlyZWN0
b3J5PyAgVGhhdCBzZWVtcyB0byBiZSBhdHRlbXB0aW5nIHRvIGV4cG9zZSBhIGxpdHRsZSBtb3Jl
IGFib3V0IHRoZSBmaWxlIHN5c3RlbSBvbiB0aGUgc2VydmVyIHRoYW4gaXMgYXBwcm9wcmlhdGUg
dG8gZG8uDQo+ID4+DQo+ID4+IEFzIGFsd2F5cywgd2Ugc2hvdWxkIGp1c3QgYWxsb3cgdGhlIHNl
cnZlciB0byBkbyB3aGF0IGl0IGRvZXMgYW5kIHJldHVybiB0aGUgZXJyb3JzIHRoYXQgaXQgbmVl
ZHMgdG8gcmV0dXJuIGFuZCB0aGVuIGxldC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VzdCBmb3IgcmVu
YW1lKCkgb2YgTkZTNEVSUl9GQklHDQppbnRvIEVOT1NQQy4NCg0KVHJvbmQNCi0tIA0KVHJvbmQg
TXlrbGVidXN0DQpMaW51eCBORlMgY2xpZW50IG1haW50YWluZXINCg0KTmV0QXBwDQpUcm9uZC5N
eWtsZWJ1c3RAbmV0YXBwLmNvbQ0Kd3d3Lm5ldGFwcC5jb20NCg0K

From Trond.Myklebust@netapp.com  Tue Feb 28 06:20:28 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 467B821F8674 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 06:20:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.544
X-Spam-Level: 
X-Spam-Status: No, score=-10.544 tagged_above=-999 required=5 tests=[AWL=0.055, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D91soPcvVcKi for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 06:20:27 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 9B79121F8673 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 06:20:26 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,496,1325491200"; d="scan'208";a="629140364"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 28 Feb 2012 06:20:26 -0800
Received: from vmwexceht01-prd.hq.netapp.com ([10.106.76.239]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1SEKQM4024754; Tue, 28 Feb 2012 06:20:26 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht01-prd.hq.netapp.com ([10.106.76.239]) with mapi id 14.02.0247.003; Tue, 28 Feb 2012 06:20:26 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] [ERRATA v2] multiple layoutget's wth open stateid
Thread-Index: AQHM9gRBPFSRiIVrWkGjqQh0pqVQc5ZS4k2A
Date: Tue, 28 Feb 2012 14:20:25 +0000
Message-ID: <1330438825.3053.28.camel@lade.trondhjem.org>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com> <4F4CAD51.8060406@tonian.com>
In-Reply-To: <4F4CAD51.8060406@tonian.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.116]
Content-Type: text/plain; charset="utf-8"
Content-ID: <43C9905A2814BC44B52B0219F2FAFC69@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
Subject: Re: [nfsv4] [ERRATA v2] multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 14:20:28 -0000

T24gVHVlLCAyMDEyLTAyLTI4IGF0IDEyOjMyICswMjAwLCBCZW5ueSBIYWxldnkgd3JvdGU6DQo+
IENoYW5nZXMgZnJvbSBwcmV2aW91cyB2ZXJzaW9uOg0KPiANCj4gKiBJbmNvcnBvcmF0aW5nIERh
dmlkIE5vdmVjaydzIGNvbW1lbnQNCj4gaHR0cDovL3d3dy5pZXRmLm9yZy9tYWlsLWFyY2hpdmUv
d2ViL25mc3Y0L2N1cnJlbnQvbXNnMTA2OTkuaHRtbA0KPiANCj4gVmVyc2lvbiAxOg0KPiBodHRw
Oi8vd3d3LmlldGYub3JnL21haWwtYXJjaGl2ZS93ZWIvbmZzdjQvY3VycmVudC9tc2cxMDY5Ny5o
dG1sDQo+IA0KPiAtLS0NCj4gDQo+IFNlY3Rpb24gMTIuNS4yLiBzYXlzOg0KPiAgICBUaGUgZmly
c3Qgc3VjY2Vzc2Z1bCBMQVlPVVRHRVQNCj4gICAgcHJvY2Vzc2VkIGJ5IHRoZSBzZXJ2ZXIgdXNp
bmcgYSBub24tbGF5b3V0IHN0YXRlaWQgYXMgYW4gYXJndW1lbnQNCj4gICAgTVVTVCBoYXZlIHRo
ZSAic2VxaWQiIGZpZWxkIG9mIHRoZSBsYXlvdXQgc3RhdGVpZCBpbiB0aGUgcmVzcG9uc2Ugc2V0
DQo+ICAgIHRvIG9uZS4gIFRoZXJlYWZ0ZXIsIHRoZSBjbGllbnQgTVVTVCB1c2UgYSBsYXlvdXQg
c3RhdGVpZCAoc2VlDQo+ICAgIFNlY3Rpb24gMTIuNS4zKSBvbiBmdXR1cmUgaW52b2NhdGlvbnMg
b2YgTEFZT1VUR0VUIG9uIHRoZSBmaWxlLCBhbmQNCj4gICAgdGhlICJzZX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pLg0KPiBf
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBuZnN2NCBt
YWlsaW5nIGxpc3QNCj4gbmZzdjRAaWV0Zi5vcmcNCj4gaHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFp
bG1hbi9saXN0aW5mby9uZnN2NA0KDQotLSANClRyb25kIE15a2xlYnVzdA0KTGludXggTkZTIGNs
aWVudCBtYWludGFpbmVyDQoNCk5ldEFwcA0KVHJvbmQuTXlrbGVidXN0QG5ldGFwcC5jb20NCnd3
dy5uZXRhcHAuY29tDQoNCg==

From Craig.Everhart@netapp.com  Tue Feb 28 10:37:34 2012
Return-Path: <Craig.Everhart@netapp.com>
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 0E15521F86BD for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 10:37:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LZ3ItrCJyMBW for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 10:37:33 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 3860C21F86BB for <nfsv4@ietf.org>; Tue, 28 Feb 2012 10:37:32 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,497,1325491200";  d="scan'208,217";a="629232748"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 28 Feb 2012 10:37:32 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1SIbWXJ025293 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 10:37:32 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Tue, 28 Feb 2012 10:37:31 -0800
From: "Everhart, Craig" <Craig.Everhart@netapp.com>
To: "nfsv4@ietf.org" <nfsv4@ietf.org>
Thread-Topic: SRV Protocol wording suggestions?
Thread-Index: Acz2RXJMtV69LQoJQE2tUks2FKAZOA==
Date: Tue, 28 Feb 2012 18:37:31 +0000
Message-ID: <021548D9893BA24BB490B3B68DBD05A80DB50A@SACEXCMBX04-PRD.hq.netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: multipart/alternative; boundary="_000_021548D9893BA24BB490B3B68DBD05A80DB50ASACEXCMBX04PRDhqn_"
MIME-Version: 1.0
Subject: [nfsv4] SRV Protocol wording suggestions?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 18:37:34 -0000

--_000_021548D9893BA24BB490B3B68DBD05A80DB50ASACEXCMBX04PRDhqn_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Positing that NFSv4 is defined for TCP, and that someday there might be an =
SCTP definition but there certainly isn't today.

The only defined values for a Protocol in the SRV record are "_tcp" and "_u=
dp", with the apparently-understood semantics that "_tcp" is used to descri=
be a service reachable via TCP and "_udp" means a service reachable over an=
ything else (i.e., SCTP, should it ever come to pass).

Does anybody have a problem with the following text, for the SRV document a=
bout NFS access to a published domain root?

The Protocol name used is "_tcp", for NFS service over TCP.  Future NFS ser=
vices using other protocols
MUST use another Protocol label.

                                Craig

--_000_021548D9893BA24BB490B3B68DBD05A80DB50ASACEXCMBX04PRDhqn_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Positing that NFSv4 is defined for TCP, and that som=
eday there might be an SCTP definition but there certainly isn&#8217;t toda=
y.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The only defined values for a Protocol in the SRV re=
cord are &#8220;_tcp&#8221; and &#8220;_udp&#8221;, with the apparently-und=
erstood semantics that &#8220;_tcp&#8221; is used to describe a service rea=
chable via TCP and &#8220;_udp&#8221; means a service reachable over anythi=
ng else
 (i.e., SCTP, should it ever come to pass).<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Does anybody have a problem with the following text,=
 for the SRV document about NFS access to a published domain root?<o:p></o:=
p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;">The Protocol name used is &q=
uot;_tcp&quot;, for NFS service over TCP.&nbsp; Future NFS services using o=
ther protocols<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;">MUST use another Protocol la=
bel.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Craig<o:p></o:p=
></p>
</div>
</body>
</html>

--_000_021548D9893BA24BB490B3B68DBD05A80DB50ASACEXCMBX04PRDhqn_--

From sshepler@microsoft.com  Tue Feb 28 10:39:16 2012
Return-Path: <sshepler@microsoft.com>
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 E1CC721F86DB for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 10:39:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level: 
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YTquJ7SldCix for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 10:39:16 -0800 (PST)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe001.messaging.microsoft.com [216.32.181.181]) by ietfa.amsl.com (Postfix) with ESMTP id C1C1721F86D5 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 10:39:15 -0800 (PST)
Received: from mail96-ch1-R.bigfish.com (10.43.68.246) by CH1EHSOBE011.bigfish.com (10.43.70.61) with Microsoft SMTP Server id 14.1.225.23; Tue, 28 Feb 2012 18:39:14 +0000
Received: from mail96-ch1 (localhost [127.0.0.1])	by mail96-ch1-R.bigfish.com (Postfix) with ESMTP id 96112180376; Tue, 28 Feb 2012 18:39:14 +0000 (UTC)
X-SpamScore: -21
X-BigFish: VS-21(zz9371Ic85fhzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC106.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail96-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC106.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail96-ch1 (localhost.localdomain [127.0.0.1]) by mail96-ch1 (MessageSwitch) id 1330454353672183_26510; Tue, 28 Feb 2012 18:39:13 +0000 (UTC)
Received: from CH1EHSMHS010.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.238])	by mail96-ch1.bigfish.com (Postfix) with ESMTP id 96BA51E005E;	Tue, 28 Feb 2012 18:39:13 +0000 (UTC)
Received: from TK5EX14HUBC106.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS010.bigfish.com (10.43.70.10) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 28 Feb 2012 18:39:12 +0000
Received: from TK5EX14MBXC253.redmond.corp.microsoft.com ([169.254.3.230]) by TK5EX14HUBC106.redmond.corp.microsoft.com ([157.54.80.61]) with mapi id 14.02.0283.004; Tue, 28 Feb 2012 18:39:10 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: "Everhart, Craig" <Craig.Everhart@netapp.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Thread-Topic: SRV Protocol wording suggestions?
Thread-Index: Acz2RXJMtV69LQoJQE2tUks2FKAZOAAAsxHQ
Date: Tue, 28 Feb 2012 18:39:09 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A185715D03A@TK5EX14MBXC253.redmond.corp.microsoft.com>
References: <021548D9893BA24BB490B3B68DBD05A80DB50A@SACEXCMBX04-PRD.hq.netapp.com>
In-Reply-To: <021548D9893BA24BB490B3B68DBD05A80DB50A@SACEXCMBX04-PRD.hq.netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.70]
Content-Type: multipart/alternative; boundary="_000_039D3CB813A4D544863BB7D4F46A185715D03ATK5EX14MBXC253red_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Subject: Re: [nfsv4] SRV Protocol wording suggestions?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 18:39:17 -0000

--_000_039D3CB813A4D544863BB7D4F46A185715D03ATK5EX14MBXC253red_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


That is fine with me.

Spencer


From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of E=
verhart, Craig
Sent: Tuesday, February 28, 2012 10:38 AM
To: nfsv4@ietf.org
Subject: [nfsv4] SRV Protocol wording suggestions?

Positing that NFSv4 is defined for TCP, and that someday there might be an =
SCTP definition but there certainly isn't today.

The only defined values for a Protocol in the SRV record are "_tcp" and "_u=
dp", with the apparently-understood semantics that "_tcp" is used to descri=
be a service reachable via TCP and "_udp" means a service reachable over an=
ything else (i.e., SCTP, should it ever come to pass).

Does anybody have a problem with the following text, for the SRV document a=
bout NFS access to a published domain root?

The Protocol name used is "_tcp", for NFS service over TCP.  Future NFS ser=
vices using other protocols
MUST use another Protocol label.

                                Craig

--_000_039D3CB813A4D544863BB7D4F46A185715D03ATK5EX14MBXC253red_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;color:#1F497D"><o:p>=
&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;color:#1F497D">That =
is fine with me.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;color:#1F497D"><o:p>=
&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;color:#1F497D">Spenc=
er<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;color:#1F497D"><o:p>=
&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;color:#1F497D"><o:p>=
&nbsp;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"font-s=
ize:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> nfsv4-bo=
unces@ietf.org [mailto:nfsv4-bounces@ietf.org]
<b>On Behalf Of </b>Everhart, Craig<br>
<b>Sent:</b> Tuesday, February 28, 2012 10:38 AM<br>
<b>To:</b> nfsv4@ietf.org<br>
<b>Subject:</b> [nfsv4] SRV Protocol wording suggestions?<o:p></o:p></span>=
</p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Positing that NFSv4 is defined for TCP, and that som=
eday there might be an SCTP definition but there certainly isn&#8217;t toda=
y.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">The only defined values for a Protocol in the SRV re=
cord are &#8220;_tcp&#8221; and &#8220;_udp&#8221;, with the apparently-und=
erstood semantics that &#8220;_tcp&#8221; is used to describe a service rea=
chable via TCP and &#8220;_udp&#8221; means a service reachable over anythi=
ng else
 (i.e., SCTP, should it ever come to pass).<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Does anybody have a problem with the following text,=
 for the SRV document about NFS access to a published domain root?<o:p></o:=
p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;">The Protocol name used is &q=
uot;_tcp&quot;, for NFS service over TCP.&nbsp; Future NFS services using o=
ther protocols<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><span style=3D"font-si=
ze:10.0pt;font-family:&quot;Courier New&quot;">MUST use another Protocol la=
bel.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Craig<o:p></o:p=
></p>
</div>
</body>
</html>

--_000_039D3CB813A4D544863BB7D4F46A185715D03ATK5EX14MBXC253red_--

From Robert.Thurlow@oracle.com  Tue Feb 28 13:34:31 2012
Return-Path: <Robert.Thurlow@oracle.com>
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 A6FB321F84D5 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 13:34:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d1wXumtEe++w for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 13:34:31 -0800 (PST)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by ietfa.amsl.com (Postfix) with ESMTP id 061FE21F8419 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 13:34:30 -0800 (PST)
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q1SLYTgi004755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 Feb 2012 21:34:30 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q1SLYMdk013812 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Feb 2012 21:34:25 GMT
Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q1SLXL5P006324; Tue, 28 Feb 2012 15:33:21 -0600
Received: from [10.159.209.158] (/10.159.209.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 28 Feb 2012 13:33:21 -0800
Message-ID: <4F4D4820.3050607@oracle.com>
Date: Tue, 28 Feb 2012 14:33:20 -0700
From: Robert Thurlow <Robert.Thurlow@oracle.com>
User-Agent: Thunderbird 2.0.0.16 (X11/20080811)
MIME-Version: 1.0
To: "Everhart, Craig" <Craig.Everhart@netapp.com>
References: <021548D9893BA24BB490B3B68DBD05A80DB50A@SACEXCMBX04-PRD.hq.netapp.com>
In-Reply-To: <021548D9893BA24BB490B3B68DBD05A80DB50A@SACEXCMBX04-PRD.hq.netapp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-CT-RefId: str=0001.0A090209.4F4D4866.0042,ss=1,re=0.000,fgs=0
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] SRV Protocol wording suggestions?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 21:34:31 -0000

Everhart, Craig wrote:

> Does anybody have a problem with the following text, for the SRV 
> document about NFS access to a published domain root?
> 
>  
> 
> The Protocol name used is "_tcp", for NFS service over TCP.  Future NFS 
> services using other protocols
 > MUST use another Protocol label.

Works for me.

Rob T

From eshel@almaden.ibm.com  Tue Feb 28 13:39:32 2012
Return-Path: <eshel@almaden.ibm.com>
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 CFA2621F851C for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 13:39:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JEFpvd12+dyZ for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 13:39:32 -0800 (PST)
Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139]) by ietfa.amsl.com (Postfix) with ESMTP id EE83421F851B for <nfsv4@ietf.org>; Tue, 28 Feb 2012 13:39:31 -0800 (PST)
Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Tue, 28 Feb 2012 16:39:30 -0500
Received: from d01dlp02.pok.ibm.com (9.56.224.85) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Tue, 28 Feb 2012 16:39:28 -0500
Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 43F6C6E8049 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 16:39:27 -0500 (EST)
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1SLdQs8244792 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 16:39:27 -0500
Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1SLdQcp020929 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 18:39:26 -0300
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q1SLdQc4020921 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 18:39:26 -0300
To: NFSv4 <nfsv4@ietf.org>
MIME-Version: 1.0
X-KeepSent: C743E4B9:5CFDEC23-882579B2:00762A89; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Tue, 28 Feb 2012 13:39:24 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/28/2012 16:39:25, Serialize complete at 02/28/2012 16:39:25
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12022821-7182-0000-0000-000000EA4859
Subject: [nfsv4]  layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 21:39:32 -0000

Hopefully the final correction to the logr_return_on_close result field in 


18.43.3 that should go into v4.1 errata.
Marc.

section 18.43.3 say:

The logr_return_on_close result field is a directive to return the layout 
before closing the file.  When the metadata server sets this  return value
to TRUE, it MUST be prepared to recall the layout in the case in which the
client fails to return the layout before close.  For the metadata server 
that knows a layout must be returned before a close of the file, this 
return value can be used to communicate the desired behavior to the client
and thus remove one extra step from the client's and metadata server's 
interaction.

it should say:

The logr_return_on_close result field is a directive to return or forget 
the layout before closing the file . When the metadata server sets this 
return value to TRUE, the client MUST NOT use the layout after sending 
the last CLOSE of that file. Any outstanding COMMIT to the data servers
or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
file. This return value is used to communicate to the client that any 
layout or segment of a layout that were given with logr_return_on_close 
set to TRUE will result in the server invalidating all layouts of 
layouttype4 of loga_layout_type for the file after it was closed. Once 
the server returns logr_return_on_close set to TRUE to a client for a
given file it MUST set logr_return_on_close to TRUE for all subsequent 
layouts or segments of layoutype4 of the respective loga_layout_type for
that file and client until that file is closed.

Notes:

This directive will remove one or more extra steps from the client's and 
metadata server's interaction.

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4




From david.noveck@emc.com  Tue Feb 28 15:47:41 2012
Return-Path: <david.noveck@emc.com>
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 405D421F8578 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 15:47:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.851
X-Spam-Level: 
X-Spam-Status: No, score=-9.851 tagged_above=-999 required=5 tests=[AWL=0.748,  BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L2CobgUrpvS0 for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 15:47:40 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 872E421F8573 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 15:47:40 -0800 (PST)
Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1SNlU7I029230 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Feb 2012 18:47:31 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.129]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor); Tue, 28 Feb 2012 18:47:20 -0500
Received: from mxhub36.corp.emc.com (mxhub36.corp.emc.com [10.254.93.84]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1SNlKNs005017; Tue, 28 Feb 2012 18:47:20 -0500
Received: from mx31a.corp.emc.com ([169.254.1.133]) by mxhub36.corp.emc.com ([::1]) with mapi; Tue, 28 Feb 2012 18:47:20 -0500
From: <david.noveck@emc.com>
To: <eshel@almaden.ibm.com>
Date: Tue, 28 Feb 2012 18:47:18 -0500
Thread-Topic: [nfsv4]  layout return - final update ?
Thread-Index: Acz2YY0BWXFAffmcQvqdgum0dXVzhgAEXb0A
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com>
References: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com>
In-Reply-To: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Tue, 28 Feb 2012 23:47:41 -0000

The last few sentences seem to be written assuming that that three will be =
only one
open file per fh/client pair.  It seem that it says that if owner A opens a=
 file and
Gets some layouts, then of owner B opens the same file then all the layout =
he gets should be=20
marked logr_return_on_close.  Is that what is intended?  And if so, when sh=
ould=20
these be invalidated.  On the first close, which the text seems to suggest?=
  I think the
right direction, not having thought about it terribly much, is that logr_re=
turn_on_close
layouts are open-file-associated and if that is something that you can agre=
e with, you=20
would b better off if the text said that explicitly.

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of M=
arc Eshel
Sent: Tuesday, February 28, 2012 4:39 PM
To: NFSv4
Subject: [nfsv4] layout return - final update ?

Hopefully the final correction to the logr_return_on_close result field in=
=20


18.43.3 that should go into v4.1 errata.
Marc.

section 18.43.3 say:

The logr_return_on_close result field is a directive to return the layout=20
before closing the file.  When the metadata server sets this  return value
to TRUE, it MUST be prepared to recall the layout in the case in which the
client fails to return the layout before close.  For the metadata server=20
that knows a layout must be returned before a close of the file, this=20
return value can be used to communicate the desired behavior to the client
and thus remove one extra step from the client's and metadata server's=20
interaction.

it should say:

The logr_return_on_close result field is a directive to return or forget=20
the layout before closing the file . When the metadata server sets this=20
return value to TRUE, the client MUST NOT use the layout after sending=20
the last CLOSE of that file. Any outstanding COMMIT to the data servers
or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
file. This return value is used to communicate to the client that any=20
layout or segment of a layout that were given with logr_return_on_close=20
set to TRUE will result in the server invalidating all layouts of=20
layouttype4 of loga_layout_type for the file after it was closed. Once=20
the server returns logr_return_on_close set to TRUE to a client for a
given file it MUST set logr_return_on_close to TRUE for all subsequent=20
layouts or segments of layoutype4 of the respective loga_layout_type for
that file and client until that file is closed.

Notes:

This directive will remove one or more extra steps from the client's and=20
metadata server's interaction.

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4



_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4


From nico@cryptonector.com  Tue Feb 28 16:27:08 2012
Return-Path: <nico@cryptonector.com>
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 D93D421F865F for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 16:27:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.255
X-Spam-Level: 
X-Spam-Status: No, score=-2.255 tagged_above=-999 required=5 tests=[AWL=-0.278, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 493j5NeBmZbj for <nfsv4@ietfa.amsl.com>; Tue, 28 Feb 2012 16:27:08 -0800 (PST)
Received: from homiemail-a95.g.dreamhost.com (caiajhbdccah.dreamhost.com [208.97.132.207]) by ietfa.amsl.com (Postfix) with ESMTP id E547721F865E for <nfsv4@ietf.org>; Tue, 28 Feb 2012 16:27:07 -0800 (PST)
Received: from homiemail-a95.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a95.g.dreamhost.com (Postfix) with ESMTP id A1B081E064 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 16:27:07 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=cryptonector.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc: content-type; q=dns; s=cryptonector.com; b=FHIm++61OpuwjMgbSyV7i R1YqDFklHR/qeIVJR9DZJS2t8svWNso0dftpmu5CJeUexcbDSwlPxASXevZ5nmaA OySxq26OT4WZVzoGSEwEoJDoCM9+SYzOlv0FxbSVSelr9791fmvaJ4GTsC4Tswtu VWAzR+IFyX2wjavFVpRXOM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=2m67Bno/wwjH5KxDDzJH ucQD/DE=; b=M4Q7UV2SiRudQ0UEvj9F3UXjwXHyGQjEcPtIIIRYN3OTV1RfnGsH 2LCBdSymWL9/WA3PRN1nkPkZOQrbbyZJWNmBVIdj672sVkFmMVzDkYgGNNDLuf2l S4eE9ah0f6d2v1IGx2HyazDeBn1RivUgtM8hjMaDWZ13V8R4zIgJbeM=
Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a95.g.dreamhost.com (Postfix) with ESMTPSA id 88E6F1E05D for <nfsv4@ietf.org>; Tue, 28 Feb 2012 16:27:07 -0800 (PST)
Received: by pbcwz17 with SMTP id wz17so2720132pbc.31 for <nfsv4@ietf.org>; Tue, 28 Feb 2012 16:27:07 -0800 (PST)
Received-SPF: pass (google.com: domain of nico@cryptonector.com designates 10.68.220.7 as permitted sender) client-ip=10.68.220.7; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of nico@cryptonector.com designates 10.68.220.7 as permitted sender) smtp.mail=nico@cryptonector.com
Received: from mr.google.com ([10.68.220.7]) by 10.68.220.7 with SMTP id ps7mr60091487pbc.160.1330475227263 (num_hops = 1); Tue, 28 Feb 2012 16:27:07 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.220.7 with SMTP id ps7mr50614274pbc.160.1330475227249; Tue, 28 Feb 2012 16:27:07 -0800 (PST)
Received: by 10.68.28.6 with HTTP; Tue, 28 Feb 2012 16:27:07 -0800 (PST)
In-Reply-To: <4F4D4820.3050607@oracle.com>
References: <021548D9893BA24BB490B3B68DBD05A80DB50A@SACEXCMBX04-PRD.hq.netapp.com> <4F4D4820.3050607@oracle.com>
Date: Tue, 28 Feb 2012 18:27:07 -0600
Message-ID: <CAK3OfOiEsyr47F5POMSyG5R-uik7FN=xQ+SRt3gg41NjqrDmqw@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Robert Thurlow <Robert.Thurlow@oracle.com>
Content-Type: text/plain; charset=UTF-8
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] SRV Protocol wording suggestions?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 00:27:09 -0000

Me three.

From bhalevy@tonian.com  Wed Feb 29 06:38:10 2012
Return-Path: <bhalevy@tonian.com>
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 6687521F85F1 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 06:38:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.166
X-Spam-Level: 
X-Spam-Status: No, score=-3.166 tagged_above=-999 required=5 tests=[AWL=0.433,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id onXuwKu-A1nq for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 06:38:09 -0800 (PST)
Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by ietfa.amsl.com (Postfix) with ESMTP id CABC221F85EC for <nfsv4@ietf.org>; Wed, 29 Feb 2012 06:38:08 -0800 (PST)
Received: by eeke51 with SMTP id e51so1680789eek.31 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 06:38:07 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.213.32.133 as permitted sender) client-ip=10.213.32.133; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.213.32.133 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.213.32.133]) by 10.213.32.133 with SMTP id c5mr738271ebd.119.1330526287988 (num_hops = 1); Wed, 29 Feb 2012 06:38:07 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=IjWmHyH/qr8RG+8CxD+/pJSxJbWAbDXEBPtJAUTOhdI=; b=dPIcx4Yf8uDVAHXFjjcKvnghgV6hFVW3/GFtD/ldSvDTlg5MDfNC/kQmYak0aZAZD3 1SwfZYs+oLVVClBOtf02pmr56AMvwtfvZ6VMhxsCDHRtWdLXfevivBAX2z/QmadOdLfU 4R5GNMVbIFB8LgZA57WGKGAUVBsJqVZ5hfYcGsYYlH9j+uu1zRrfiksjXx6etVamHHej R1XzmkEIMvKnLjgi5Hl1IX2BizwrdgIBXDbRO/k2T1t9vBYDKuIqNWlJ+pOVedyqFIc/ y2RLa7EK5aYMmMjqZlRkP5/tNueFFwhLbp/XMBOVh8uM21PlvDYIvysL1KavUsQA3Wva oUZQ==
Received: by 10.213.32.133 with SMTP id c5mr598918ebd.119.1330526287643; Wed, 29 Feb 2012 06:38:07 -0800 (PST)
Received: from bhalevy-lt.tonian.com (bzq-79-180-197-44.red.bezeqint.net. [79.180.197.44]) by mx.google.com with ESMTPS id v51sm83498506eef.2.2012.02.29.06.38.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 06:38:06 -0800 (PST)
Message-ID: <4F4E384C.90605@tonian.com>
Date: Wed, 29 Feb 2012 16:38:04 +0200
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <876AF623CC82644FBE6AE75723CA5FAC12324F@SACEXCMBX03-PRD.hq.netapp.com> <1330021388.2423.5.camel@lade.trondhjem.org> <CADnza44hJx3hkY4xbA9CF+LE7nO5N7Vvwh_YLQke84RRtvMZ+A@mail.gmail.com> <039D3CB813A4D544863BB7D4F46A1857143388@TK5EX14MBXC254.redmond.corp.microsoft.com> <4F4697A3.7090000@tonian.com> <4F46C07C.2090300@tonian.com> <4F4CAD51.8060406@tonian.com> <1330438825.3053.28.camel@lade.trondhjem.org>
In-Reply-To: <1330438825.3053.28.camel@lade.trondhjem.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQkXbde2zAGkYyVD7s3+U3OKrme8oPnwJ5dAHuXeTBKrE194evS0re4xUgraL0gVpy6fX/29
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>, "Erasani, Pranoop" <Pranoop.Erasani@netapp.com>
Subject: Re: [nfsv4] [ERRATA v2] multiple layoutget's wth open stateid
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 14:38:10 -0000

On 2012-02-28 16:20, Myklebust, Trond wrote:
> On Tue, 2012-02-28 at 12:32 +0200, Benny Halevy wrote:
>> Changes from previous version:
>>
>> * Incorporating David Noveck's comment
>> http://www.ietf.org/mail-archive/web/nfsv4/current/msg10699.html
>>
>> Version 1:
>> http://www.ietf.org/mail-archive/web/nfsv4/current/msg10697.html
>>
>> ---
>>
>> Section 12.5.2. says:
>>    The first successful LAYOUTGET
>>    processed by the server using a non-layout stateid as an argument
>>    MUST have the "seqid" field of the layout stateid in the response set
>>    to one.  Thereafter, the client MUST use a layout stateid (see
>>    Section 12.5.3) on future invocations of LAYOUTGET on the file, and
>>    the "seqid" MUST NOT be set to zero.
>>
>> It should say:
>>    The first successful LAYOUTGET
>>    processed by the server using a non-layout stateid as an argument
>>    MUST have the "seqid" field of the layout stateid in the response set
>>    to one.  Thereafter, the client MUST use a layout stateid (see
>>    Section 12.5.3) on future invocations of LAYOUTGET on the file, and
>>    the "seqid" MUST NOT be set to zero.
>> |  The client MUST serialize LAYOUTGET operations using a non-layout
>> |  stateid with any other operation affecting the layout state on the file,
>> |  including CB_LAYOUTRECALL, to allow consistent initialization of the
>> |  layout state.
>>
>> Add the following paragraph to section 12.5.3.:
>>    A client MAY always forget its layout state and associated
>>    layout stateid at any time (See also section 12.5.5.1).
>>    In such case, the client MUST use a non-layout stateid for the next
>>    LAYOUTGET operation.  This will signal the server that the client has
>>    no more layouts on the file and its respective layout state can be
>>    released before issuing a new layout in response to LAYOUTGET.
>>
>> Section 12.5.5.2.1. says:
>>    One critical issue with regard to layout operations sequencing
>>    concerns callbacks.  The protocol must defend against races between
>>    the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
>>    CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
>>    implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
>>    to which the client has not yet received a reply.  The client detects
>>    such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
>>    layout stateid.  If the "seqid" is not exactly one higher than what
>>    the client currently has recorded, and the client has at least one
>>    LAYOUTGET and/or LAYOUTRETURN operation outstanding, the client knows
>>    the server sent the CB_LAYOUTRECALL after sending a response to an
>>    outstanding LAYOUTGET or LAYOUTRETURN.
>>
>> It should say:
>>    One critical issue with regard to layout operations sequencing
>>    concerns callbacks.  The protocol must defend against races between
>>    the reply to a LAYOUTGET or LAYOUTRETURN operation and a subsequent
>>    CB_LAYOUTRECALL.  A client MUST NOT process a CB_LAYOUTRECALL that
>>    implies one or more outstanding LAYOUTGET or LAYOUTRETURN operations
> 
> This is not a "MUST NOT".
> 
> A forgetful client just needs to remember to discard the results of
> those outstanding LAYOUTGETs with seqid < CB_LAYOUTRECALL seqid. We
> already do this in the existing Linux pNFS client.
> 

I see your point but I'm afraid this is out of scope of this
particular errata topic.

We better encapsulate this in a different errata.
Are you aware of any other changes required in the area of
forget client behavior?

Benny

>>    to which the client has not yet received a reply.  The client detects
>>    such a CB_LAYOUTRECALL by examining the "seqid" field of the recall's
>>    layout stateid.  If the "seqid" is not exactly one higher than what
>>    the client currently has recorded, and the client has at least one
>>    LAYOUTGET and/or LAYOUTRETURN operation outstanding,
>> |  or if the client has a outstanding LAYOUTGET with a non-layout stateid,
>>    the client knows
>>    the server sent the CB_LAYOUTRECALL after sending a response to an
>>    outstanding LAYOUTGET or LAYOUTRETURN.
> 
> The client knows that all outstanding LAYOUTGETs which return a seqid <
> that of the CB_LAYOUTRECALL are affected by the recall. All other
> LAYOUTGETs will either return NFS4ERR_RECALLCONFLICT, or are unaffected
> by the recall.
> 
> If the server processes an outstanding LAYOUTRETURN after it has sent
> the recall, then presumably it will return NFS4ERR_OLD_STATEID, since
> the seqid send by the client will be < that recorded in the recall.
> Again, there should be no ambiguity.
> If it was a bulk recall, then the server will return
> NFS4ERR_RECALLCONFLICT in response a non-bulk LAYOUTRETURN. (BTW: we
> need to add NFS4ERR_RECALLCONFLICT to the allowed return values for
> LAYOUTRETURN - it is mentioned in section 12.5.5.2.1.5, but not in the
> allowed return values sections).
> 
>> Section 12.5.5.2.1.1. says:
>>    It is permissible for the client to send multiple parallel LAYOUTGET
>>    operations for the same file or multiple parallel LAYOUTRETURN
>>    operations for the same file or a mix of both.
>>
>> It should say:
>>     It is permissible for the client to send multiple parallel LAYOUTGET
>>     operations for the same file
>> |   using the layout stateid
>>     or multiple parallel LAYOUTRETURN
>>     operations for the same file or a mix of both.
>>
>> Section 12.5.5.2.1.2. says:
>>    Note
>>    that in the first case, the "seqid" in the layout stateid of the
>>    recall is two greater than what the client has recorded;
>>
>> It should say:
>>    Note
>>    that in the first case, the "seqid" in the layout stateid of the
>>    recall is two greater than what the client has recorded,
>> |  or the client has an outstanding LAYOUTGET using a non-layout stateid;
>>
>> After the following paragraph in Section 18.43.3:
>>    The loga_stateid field specifies a valid stateid.  If a layout is not
>>    currently held by the client, the loga_stateid field represents a
>>    stateid reflecting the correspondingly valid open, byte-range lock,
>>    or delegation stateid.  Once a layout is held on the file by the
>>    client, the loga_stateid field MUST be a stateid as returned from a
>>    previous LAYOUTGET or LAYOUTRETURN operation or provided by a
>>    CB_LAYOUTRECALL operation (see Section 12.5.3).
>>
>> Add the following paragraph:
>> |  When loga_stateid represents a non-layout stateid the server MUST
>> |  release any layout state previously held by the client as if the client
>> |  explicitly returned the layout using a corresponding LAYOUTRETURN
>> |  with lora_iomode of LAYOUTIOMODE4_ANY, lr_returntype of LAYOUTRETURN4_FILE,
>> |  lrf_offset value 0, and lrf_length value NFS4_UINT64_MAX. This is
>> |  particularly useful to clients implementing the forgetful model (Section
>> |  12.5.5.1) when acquiring a layout after unilaterally forgetting the layout
>> |  state.  This requirement mandates that the client serializes sending
>> |  a LAYOUTGET with non-layout statid with any other layout operation on
>> |  the file (See section 12.5.2).
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
> 

From bhalevy@tonian.com  Wed Feb 29 06:50:06 2012
Return-Path: <bhalevy@tonian.com>
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 53BBE21F867E for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 06:50:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.274
X-Spam-Level: 
X-Spam-Status: No, score=-3.274 tagged_above=-999 required=5 tests=[AWL=0.325,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hpJcm4RXAZDu for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 06:50:05 -0800 (PST)
Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by ietfa.amsl.com (Postfix) with ESMTP id C26F221F867D for <nfsv4@ietf.org>; Wed, 29 Feb 2012 06:50:04 -0800 (PST)
Received: by eaal12 with SMTP id l12so2848577eaa.31 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 06:50:04 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.14.200.196 as permitted sender) client-ip=10.14.200.196; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.14.200.196 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.14.200.196]) by 10.14.200.196 with SMTP id z44mr308844een.116.1330527004036 (num_hops = 1); Wed, 29 Feb 2012 06:50:04 -0800 (PST)
Received: by 10.14.200.196 with SMTP id z44mr245561een.116.1330527003830; Wed, 29 Feb 2012 06:50:03 -0800 (PST)
Received: from bhalevy-lt.tonian.com (bzq-79-180-197-44.red.bezeqint.net. [79.180.197.44]) by mx.google.com with ESMTPS id v51sm83605153eef.2.2012.02.29.06.50.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 06:50:03 -0800 (PST)
Message-ID: <4F4E3B18.3030709@tonian.com>
Date: Wed, 29 Feb 2012 16:50:00 +0200
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org> <4F4CA1E3.6010302@tonian.com> <1330436598.3053.6.camel@lade.trondhjem.org>
In-Reply-To: <1330436598.3053.6.camel@lade.trondhjem.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQlYPbwYIF7K1nrt+odmmbYzsgkb17KfjG5QswRmLWDRPYb4LneF1JW2duUxDVq1fVcRuti/
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 14:50:06 -0000

On 2012-02-28 15:43, Myklebust, Trond wrote:
> On Tue, 2012-02-28 at 11:44 +0200, Benny Halevy wrote:
>> On 2012-02-25 19:56, Trond Myklebust wrote:
>>> On Fri, 2012-02-24 at 08:58 -0500, Peter Staubach wrote:
>>>> Hmm.
>>>>
>>>> I am not sure that I see the point of a "maxdirsize" attribute.  How would a client predict how some metadata operation would affect the size of the directory?  That seems to be attempting to expose a little more about the file system on the server than is appropriate to do.
>>>>
>>>> As always, we should just allow the server to do what it does and return the errors that it needs to return and then let the client deal with the results and errors as it deems appropriate.
>>>>
>>>> 	Thanx...
>>>>
>>>> 		ps
>>>
>>> ACK... Having the client try to predict what is happening on a
>>> multi-client system is an exercise in futility.
>>>
>>> As for the RENAME case, can someone remind me why NFS4ERR_NOSPC isn't
>>> appropriate here? That's certainly the error that I'd expect in a POSIX
>>> environment.
>>
>> For example, if the file server has a limit on the maximum file size, say
>> of 2 GB, and say you have a gigantic directory and rename would hit the file
>> size limit, but there is is still plenty of free space on the file system
>> NFS4ERR_FBIG would be the right error to return and not NFS4ERR_NOSPC.
>>
>> 15.1.4.4.  NFS4ERR_FBIG (Error Code 27)
>>
>>    The file is too large.  The operation would have caused the file to
>>    grow beyond the server's limit.
> 
> Which translates to EFBIG in POSIX. (An attempt was made to write a file
> that exceeds the file size limit of the process.)
> 
>> 15.1.4.9.  NFS4ERR_NOSPC (Error Code 28)
>>
>>    Indicates there is no space left on the device.  The operation would
>>    have caused the server's file system to exceed its limit.
> 
> In POSIX, the rename() command does allow an ENOSPC, and the
> interpretation is: "The directory that would contain new cannot be
> extended.". It doesn't allow for EFBIG:
> (http://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html)
> 
> IOW: I'm strongly against NFS4ERR_FBIG here. All POSIX systems would
> have to make a "special" translation just for rename() of NFS4ERR_FBIG
> into ENOSPC.


Forcing the server to return an error that hides information makes little sense to me.
Returning NFS4ERR_FBIG in this case can be specified as SHOULD in the IMPLEMENTATION
section, while documenting the conflict with Posix semantics.

Benny

> 
> Trond

From Trond.Myklebust@netapp.com  Wed Feb 29 07:01:56 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 9326821F8639 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 07:01:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.547
X-Spam-Level: 
X-Spam-Status: No, score=-10.547 tagged_above=-999 required=5 tests=[AWL=0.052, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id btqHvHUJU6qJ for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 07:01:55 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id C144821F861C for <nfsv4@ietf.org>; Wed, 29 Feb 2012 07:01:55 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,502,1325491200"; d="scan'208";a="629480115"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 29 Feb 2012 07:01:55 -0800
Received: from vmwexceht01-prd.hq.netapp.com ([10.106.76.239]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1TF1om6005613; Wed, 29 Feb 2012 07:01:55 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht01-prd.hq.netapp.com ([10.106.76.239]) with mapi id 14.02.0247.003; Wed, 29 Feb 2012 07:01:51 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] 3530bis: Add a new error code for RENAME
Thread-Index: AQHM9kefjmWzeDkPV0m8i63002ztrZZUfF8AgAADUoA=
Date: Wed, 29 Feb 2012 15:01:50 +0000
Message-ID: <1330527713.2687.58.camel@lade.trondhjem.org>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org> <4F4CA1E3.6010302@tonian.com> <1330436598.3053.6.camel@lade.trondhjem.org> <4F4E3B18.3030709@tonian.com>
In-Reply-To: <4F4E3B18.3030709@tonian.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="utf-8"
Content-ID: <B07BF0BD0D6A7D48A964E1F2651451D0@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 15:01:56 -0000

T24gV2VkLCAyMDEyLTAyLTI5IGF0IDE2OjUwICswMjAwLCBCZW5ueSBIYWxldnkgd3JvdGU6DQo+
IE9uIDIwMTItMDItMjggMTU6NDMsIE15a2xlYnVzdCwgVHJvbmQgd3JvdGU6DQo+ID4gT24gVHVl
LCAyMDEyLTAyLTI4IGF0IDExOjQ0ICswMjAwLCBCZW5ueSBIYWxldnkgd3JvdGU6DQo+ID4+IE9u
IDIwMTItMDItMjUgMTk6NTYsIFRyb25kIE15a2xlYnVzdCB3cm90ZToNCj4gPj4+IE9uIEZyaSwg
MjAxMi0wMi0yNCBhdCAwODo1OCAtMDUwMCwgUGV0ZXIgU3RhdWJhY2ggd3JvdGU6DQo+ID4+Pj4g
SG1tLg0KPiA+Pj4+DQo+ID4+Pj4gSSBhbSBub3Qgc3VyZSB0aGF0IEkgc2VlIHRoZSBwb2ludCBv
ZiBhICJtYXhkaXJzaXplIiBhdHRyaWJ1dGUuICBIb3cgd291bGQgYSBjbGllbnQgcHJlZGljdCBo
b3cgc29tZSBtZXRhZGF0YSBvcGVyYXRpb24gd291bGQgYWZmZWN0IHRoZSBzaXplIG9mIHRoZSBk
aXJlY3Rvcnk/ICBUaGF0IHNlZW1zIHRvIGJlIGF0dGVtcHRpbmcgdG8gZXhwb3NlIGEgbGl0dGxl
IG1vcmUgYWJvdXQgdGhlIGZpbGUgc3lzdGVtIG9uIHRoZSBzZXJ2ZXIgdGhhbiBp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XBwDQpUcm9uZC5NeWtsZWJ1c3RAbmV0YXBw
LmNvbQ0Kd3d3Lm5ldGFwcC5jb20NCg0K

From sshepler@microsoft.com  Wed Feb 29 09:32:48 2012
Return-Path: <sshepler@microsoft.com>
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 3CA2921F8693 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 09:32:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hCtSrXHhs3kc for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 09:32:45 -0800 (PST)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe006.messaging.microsoft.com [216.32.181.186]) by ietfa.amsl.com (Postfix) with ESMTP id 8AB5621F864F for <nfsv4@ietf.org>; Wed, 29 Feb 2012 09:32:45 -0800 (PST)
Received: from mail157-ch1-R.bigfish.com (10.43.68.247) by CH1EHSOBE009.bigfish.com (10.43.70.59) with Microsoft SMTP Server id 14.1.225.23; Wed, 29 Feb 2012 17:32:43 +0000
Received: from mail157-ch1 (localhost [127.0.0.1])	by mail157-ch1-R.bigfish.com (Postfix) with ESMTP id DB7683404A8; Wed, 29 Feb 2012 17:32:43 +0000 (UTC)
X-SpamScore: -49
X-BigFish: VS-49(zz9371I1803M936eK179dN542M1432N98dKzz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h944h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC105.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail157-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC105.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail157-ch1 (localhost.localdomain [127.0.0.1]) by mail157-ch1 (MessageSwitch) id 1330536762592787_5006; Wed, 29 Feb 2012 17:32:42 +0000 (UTC)
Received: from CH1EHSMHS010.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.243])	by mail157-ch1.bigfish.com (Postfix) with ESMTP id 8CB5A320053;	Wed, 29 Feb 2012 17:32:42 +0000 (UTC)
Received: from TK5EX14HUBC105.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS010.bigfish.com (10.43.70.10) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 29 Feb 2012 17:32:40 +0000
Received: from TK5EX14MBXC253.redmond.corp.microsoft.com ([169.254.3.230]) by TK5EX14HUBC105.redmond.corp.microsoft.com ([157.54.80.48]) with mapi id 14.02.0283.004; Wed, 29 Feb 2012 17:32:19 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, Benny Halevy <bhalevy@tonian.com>
Thread-Topic: [nfsv4] 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQgAFXTYCAAAOYUIAABR/wgAALeeCAALoOgIAAjG2AgAHUpICABC13gIAAQtkAgAGk9wCAAANPAIAAKJ+w
Date: Wed, 29 Feb 2012 17:32:18 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A18571612B5@TK5EX14MBXC253.redmond.corp.microsoft.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org>	<4F4CA1E3.6010302@tonian.com> <1330436598.3053.6.camel@lade.trondhjem.org>	<4F4E3B18.3030709@tonian.com> <1330527713.2687.58.camel@lade.trondhjem.org>
In-Reply-To: <1330527713.2687.58.camel@lade.trondhjem.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.75]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 17:32:48 -0000

Trond,

Is your specific proposal then to expand the NFSv4 protocol's description o=
f
NFS4ERR_NOSPC to include a case where, for RENAME, it means the directory c=
ould not be extended and this may be a result of directory limit reached or=
 underlying file system not having space?

Spencer

-----Original Message-----
From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of M=
yklebust, Trond
Sent: Wednesday, February 29, 2012 7:02 AM
To: Benny Halevy
Cc: Haynes, Tom; nfsv4
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME

On Wed, 2012-02-29 at 16:50 +0200, Benny Halevy wrote:
> On 2012-02-28 15:43, Myklebust, Trond wrote:
> > On Tue, 2012-02-28 at 11:44 +0200, Benny Halevy wrote:
> >> On 2012-02-25 19:56, Trond Myklebust wrote:
> >>> On Fri, 2012-02-24 at 08:58 -0500, Peter Staubach wrote:
> >>>> Hmm.
> >>>>
> >>>> I am not sure that I see the point of a "maxdirsize" attribute.  How=
 would a client predict how some metadata operation would affect the size o=
f the directory?  That seems to be attempting to expose a little more about=
 the file system on the server than is appropriate to do.
> >>>>
> >>>> As always, we should just allow the server to do what it does and re=
turn the errors that it needs to return and then let the client deal with t=
he results and errors as it deems appropriate.
> >>>>
> >>>> 	Thanx...
> >>>>
> >>>> 		ps
> >>>
> >>> ACK... Having the client try to predict what is happening on a=20
> >>> multi-client system is an exercise in futility.
> >>>
> >>> As for the RENAME case, can someone remind me why NFS4ERR_NOSPC=20
> >>> isn't appropriate here? That's certainly the error that I'd expect=20
> >>> in a POSIX environment.
> >>
> >> For example, if the file server has a limit on the maximum file=20
> >> size, say of 2 GB, and say you have a gigantic directory and rename=20
> >> would hit the file size limit, but there is is still plenty of free=20
> >> space on the file system NFS4ERR_FBIG would be the right error to retu=
rn and not NFS4ERR_NOSPC.
> >>
> >> 15.1.4.4.  NFS4ERR_FBIG (Error Code 27)
> >>
> >>    The file is too large.  The operation would have caused the file to
> >>    grow beyond the server's limit.
> >=20
> > Which translates to EFBIG in POSIX. (An attempt was made to write a=20
> > file that exceeds the file size limit of the process.)
> >=20
> >> 15.1.4.9.  NFS4ERR_NOSPC (Error Code 28)
> >>
> >>    Indicates there is no space left on the device.  The operation woul=
d
> >>    have caused the server's file system to exceed its limit.
> >=20
> > In POSIX, the rename() command does allow an ENOSPC, and the=20
> > interpretation is: "The directory that would contain new cannot be=20
> > extended.". It doesn't allow for EFBIG:
> > (http://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.ht
> > ml)
> >=20
> > IOW: I'm strongly against NFS4ERR_FBIG here. All POSIX systems would=20
> > have to make a "special" translation just for rename() of=20
> > NFS4ERR_FBIG into ENOSPC.
>=20
>=20
> Forcing the server to return an error that hides information makes little=
 sense to me.
> Returning NFS4ERR_FBIG in this case can be specified as SHOULD in the=20
> IMPLEMENTATION section, while documenting the conflict with Posix semanti=
cs.

No. We can't document an error code as a SHOULD. Either we choose one or we=
 choose the other.

My preference is to follow POSIX.

--
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com

_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4



From Trond.Myklebust@netapp.com  Wed Feb 29 09:42:36 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 9656521F86CB for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 09:42:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.549
X-Spam-Level: 
X-Spam-Status: No, score=-10.549 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W1WpqLKVYYY2 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 09:42:35 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 96BAF21F86C5 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 09:42:35 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,504,1325491200"; d="scan'208";a="629537395"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 29 Feb 2012 09:42:35 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1THgZFC023994; Wed, 29 Feb 2012 09:42:35 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Wed, 29 Feb 2012 09:42:35 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Spencer Shepler <sshepler@microsoft.com>
Thread-Topic: [nfsv4] 3530bis: Add a new error code for RENAME
Thread-Index: AQHM9kefjmWzeDkPV0m8i63002ztrZZUfF8AgAADUoCAACoHAIAAAuAA
Date: Wed, 29 Feb 2012 17:42:33 +0000
Message-ID: <1330537356.2687.64.camel@lade.trondhjem.org>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org>	<4F4CA1E3.6010302@tonian.com> <1330436598.3053.6.camel@lade.trondhjem.org>	<4F4E3B18.3030709@tonian.com> <1330527713.2687.58.camel@lade.trondhjem.org> <039D3CB813A4D544863BB7D4F46A18571612B5@TK5EX14MBXC253.redmond.corp.microsoft.com>
In-Reply-To: <039D3CB813A4D544863BB7D4F46A18571612B5@TK5EX14MBXC253.redmond.corp.microsoft.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="utf-8"
Content-ID: <E735336C8C2108429123A5BA532CEEFD@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 17:42:36 -0000

T24gV2VkLCAyMDEyLTAyLTI5IGF0IDE3OjMyICswMDAwLCBTcGVuY2VyIFNoZXBsZXIgd3JvdGU6
DQo+IFRyb25kLA0KPiANCj4gSXMgeW91ciBzcGVjaWZpYyBwcm9wb3NhbCB0aGVuIHRvIGV4cGFu
ZCB0aGUgTkZTdjQgcHJvdG9jb2wncyBkZXNjcmlwdGlvbiBvZg0KPiBORlM0RVJSX05PU1BDIHRv
IGluY2x1ZGUgYSBjYXNlIHdoZXJlLCBmb3IgUkVOQU1FLCBpdCBtZWFucyB0aGUgZGlyZWN0b3J5
IGNvdWxkIG5vdCBiZSBleHRlbmRlZCBhbmQgdGhpcyBtYXkgYmUgYSByZXN1b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microsoft.com  Wed Feb 29 09:52:16 2012
Return-Path: <sshepler@microsoft.com>
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 5F08221F86EE for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 09:52:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level: 
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYfnGsvqObGM for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 09:52:11 -0800 (PST)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe004.messaging.microsoft.com [216.32.181.184]) by ietfa.amsl.com (Postfix) with ESMTP id 9F5F821F86E4 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 09:52:08 -0800 (PST)
Received: from mail200-ch1-R.bigfish.com (10.43.68.228) by CH1EHSOBE001.bigfish.com (10.43.70.51) with Microsoft SMTP Server id 14.1.225.23; Wed, 29 Feb 2012 17:52:07 +0000
Received: from mail200-ch1 (localhost [127.0.0.1])	by mail200-ch1-R.bigfish.com (Postfix) with ESMTP id F0862C043C; Wed, 29 Feb 2012 17:52:07 +0000 (UTC)
X-SpamScore: -50
X-BigFish: VS-50(zz9371I1803M936eK179dN542M1432N98dK4015Izz1202hzz1033IL8275bh8275dhz2fh2a8h668h839h93fh)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC102.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail200-ch1: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=sshepler@microsoft.com; helo=TK5EX14HUBC102.redmond.corp.microsoft.com ; icrosoft.com ; 
Received: from mail200-ch1 (localhost.localdomain [127.0.0.1]) by mail200-ch1 (MessageSwitch) id 1330537925903166_20677; Wed, 29 Feb 2012 17:52:05 +0000 (UTC)
Received: from CH1EHSMHS005.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.237])	by mail200-ch1.bigfish.com (Postfix) with ESMTP id DA347460257;	Wed, 29 Feb 2012 17:52:05 +0000 (UTC)
Received: from TK5EX14HUBC102.redmond.corp.microsoft.com (131.107.125.8) by CH1EHSMHS005.bigfish.com (10.43.70.5) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 29 Feb 2012 17:52:04 +0000
Received: from TK5EX14MBXC253.redmond.corp.microsoft.com ([169.254.3.230]) by TK5EX14HUBC102.redmond.corp.microsoft.com ([157.54.7.154]) with mapi id 14.02.0283.004; Wed, 29 Feb 2012 17:52:03 +0000
From: Spencer Shepler <sshepler@microsoft.com>
To: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
Thread-Topic: [nfsv4] 3530bis: Add a new error code for RENAME
Thread-Index: AQHM5fc/CW9p3JZ370yOI6bmQLoYuJZJewAQgAFXTYCAAAOYUIAABR/wgAALeeCAALoOgIAAjG2AgAHUpICABC13gIAAQtkAgAGk9wCAAANPAIAAKJ+wgAAESICAAAJu4A==
Date: Wed, 29 Feb 2012 17:52:02 +0000
Message-ID: <039D3CB813A4D544863BB7D4F46A18571614CE@TK5EX14MBXC253.redmond.corp.microsoft.com>
References: <F83812DF4B59B9499C1BC978336D917461D27CDE@TK5EX14MBXC111.redmond.corp.microsoft.com> <CB6BB474.14354%tom.haynes@netapp.com> <039D3CB813A4D544863BB7D4F46A1857142EA7@TK5EX14MBXC254.redmond.corp.microsoft.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D4828B0@IT-1874.Isys.com> <039D3CB813A4D544863BB7D4F46A18571431F7@TK5EX14MBXC254.redmond.corp.microsoft.com> <CAGue13ouYydgU2aBBzfp8h7dK8GiQdpqgooMYh+Z+24U+8_vOw@mail.gmail.com> <FA8A9A935BFD3A4D8F0CDA1C4F611BCC062D482958@IT-1874.Isys.com> <1330192577.2678.11.camel@lade.trondhjem.org>	<4F4CA1E3.6010302@tonian.com> <1330436598.3053.6.camel@lade.trondhjem.org>	<4F4E3B18.3030709@tonian.com> <1330527713.2687.58.camel@lade.trondhjem.org> <039D3CB813A4D544863BB7D4F46A18571612B5@TK5EX14MBXC253.redmond.corp.microsoft.com> <1330537356.2687.64.camel@lade.trondhjem.org>
In-Reply-To: <1330537356.2687.64.camel@lade.trondhjem.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [157.54.51.76]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: "Haynes, Tom" <Tom.Haynes@netapp.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] 3530bis: Add a new error code for RENAME
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 17:52:16 -0000

DQpUaGFua3MsIEkgZGlkIHJlYWQgaXQuICBNeSBlbWFpbCB3YXMgYW4gYXR0ZW1wdCB0byBiZSB2
ZXJ5IGNsZWFyIGFib3V0IHRoZSBwcm9wb3NhbC4NCg0KVG9tLCBpZiB5b3UgYXJlIG9rY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uZCBNeWtsZWJ1c3QNCj4gTGludXgg
TkZTIGNsaWVudCBtYWludGFpbmVyDQo+IA0KPiBOZXRBcHANCj4gVHJvbmQuTXlrbGVidXN0QG5l
dGFwcC5jb20NCj4gd3d3Lm5ldGFwcC5jb20NCg0K


From bhalevy@tonian.com  Wed Feb 29 11:07:06 2012
Return-Path: <bhalevy@tonian.com>
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 4FB0F21F859F for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 11:07:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level: 
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gQXAljKVXui1 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 11:07:05 -0800 (PST)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by ietfa.amsl.com (Postfix) with ESMTP id 3765E21F8596 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 11:07:04 -0800 (PST)
Received: by yhpp34 with SMTP id p34so1893307yhp.31 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 11:07:04 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.60.21.134 as permitted sender) client-ip=10.60.21.134; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.60.21.134 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.60.21.134]) by 10.60.21.134 with SMTP id v6mr573582oee.52.1330542424434 (num_hops = 1); Wed, 29 Feb 2012 11:07:04 -0800 (PST)
MIME-Version: 1.0
Received: by 10.60.21.134 with SMTP id v6mr497382oee.52.1330542424308; Wed, 29 Feb 2012 11:07:04 -0800 (PST)
Received: by 10.60.9.35 with HTTP; Wed, 29 Feb 2012 11:07:04 -0800 (PST)
X-Originating-IP: [109.160.176.211]
Received: by 10.60.9.35 with HTTP; Wed, 29 Feb 2012 11:07:04 -0800 (PST)
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com>
References: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com> <5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com>
Date: Wed, 29 Feb 2012 21:07:04 +0200
Message-ID: <CAEMWVhtcmVdgRH3w7R=87B3v8WKjcx-w1HNdPT05gFN+72xmRw@mail.gmail.com>
From: Benny Halevy <bhalevy@tonian.com>
To: david.noveck@emc.com
Content-Type: multipart/alternative; boundary=e89a8f9240b48f3dbc04ba1f0cbd
X-Gm-Message-State: ALoCoQnOk3O+9nLxwsuucPQNr5WdEp+aaXqxV5tLHzDdgGMgH6GR6DRgnCwd/jrhUmBFfUjP/xsK
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 19:07:06 -0000

--e89a8f9240b48f3dbc04ba1f0cbd
Content-Type: text/plain; charset=ISO-8859-1

On Feb 29, 2012 1:47 AM, <david.noveck@emc.com> wrote:
>
> The last few sentences seem to be written assuming that that three will
be only one
> open file per fh/client pair.  It seem that it says that if owner A opens
a file and
> Gets some layouts, then of owner B opens the same file then all the
layout he gets should be
> marked logr_return_on_close.  Is that what is intended?

I believe so.

And if so, when should
> these be invalidated.  On the first close, which the text seems to
suggest?

Previously what we discussed was the last CLOSE for the file/client pair.
That said, I'm not sure about multiple filehandles representing the same
file.

I think the
> right direction, not having thought about it terribly much, is that
logr_return_on_close
> layouts are open-file-associated and if that is something that you can
agree with, you
> would b better off if the text said that explicitly.

This approach seems valid but it complicates the case of layouts not marked
as return_on_close that survived a previous last CLOSE as these will not be
affected now.
Since we are talking about losing the layout on the last CLOSE from the
client of that file a catch all approach would be simpler.

Benny

>
> -----Original Message-----
> From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of
Marc Eshel
> Sent: Tuesday, February 28, 2012 4:39 PM
> To: NFSv4
> Subject: [nfsv4] layout return - final update ?
>
> Hopefully the final correction to the logr_return_on_close result field in
>
>
> 18.43.3 that should go into v4.1 errata.
> Marc.
>
> section 18.43.3 say:
>
> The logr_return_on_close result field is a directive to return the layout
> before closing the file.  When the metadata server sets this  return value
> to TRUE, it MUST be prepared to recall the layout in the case in which the
> client fails to return the layout before close.  For the metadata server
> that knows a layout must be returned before a close of the file, this
> return value can be used to communicate the desired behavior to the client
> and thus remove one extra step from the client's and metadata server's
> interaction.
>
> it should say:
>
> The logr_return_on_close result field is a directive to return or forget
> the layout before closing the file . When the metadata server sets this
> return value to TRUE, the client MUST NOT use the layout after sending
> the last CLOSE of that file. Any outstanding COMMIT to the data servers
> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
> file. This return value is used to communicate to the client that any
> layout or segment of a layout that were given with logr_return_on_close
> set to TRUE will result in the server invalidating all layouts of
> layouttype4 of loga_layout_type for the file after it was closed. Once
> the server returns logr_return_on_close set to TRUE to a client for a
> given file it MUST set logr_return_on_close to TRUE for all subsequent
> layouts or segments of layoutype4 of the respective loga_layout_type for
> that file and client until that file is closed.
>
> Notes:
>
> This directive will remove one or more extra steps from the client's and
> metadata server's interaction.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

--e89a8f9240b48f3dbc04ba1f0cbd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p><br>
On Feb 29, 2012 1:47 AM, &lt;<a href=3D"mailto:david.noveck@emc.com">david.=
noveck@emc.com</a>&gt; wrote:<br>
&gt;<br>
&gt; The last few sentences seem to be written assuming that that three wil=
l be only one<br>
&gt; open file per fh/client pair. =A0It seem that it says that if owner A =
opens a file and<br>
&gt; Gets some layouts, then of owner B opens the same file then all the la=
yout he gets should be<br>
&gt; marked logr_return_on_close. =A0Is that what is intended?</p>
<p>I believe so.</p>
<p>And if so, when should<br>
&gt; these be invalidated. =A0On the first close, which the text seems to s=
uggest?</p>
<p>Previously what we discussed was the last CLOSE for the file/client pair=
.<br>
That said, I&#39;m not sure about multiple filehandles representing the sam=
e file.</p>
<p>I think the<br>
&gt; right direction, not having thought about it terribly much, is that lo=
gr_return_on_close<br>
&gt; layouts are open-file-associated and if that is something that you can=
 agree with, you<br>
&gt; would b better off if the text said that explicitly.</p>
<p>This approach seems valid but it complicates the case of layouts not mar=
ked as return_on_close that survived a previous last CLOSE as these will no=
t be affected now.<br>
Since we are talking about losing the layout on the last CLOSE from the cli=
ent of that file a catch all approach would be simpler.</p>
<p>Benny</p>
<p>&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href=3D"mailto:nfsv4-bounces@ietf.org">nfsv4-bounces@ietf.org=
</a> [mailto:<a href=3D"mailto:nfsv4-bounces@ietf.org">nfsv4-bounces@ietf.o=
rg</a>] On Behalf Of Marc Eshel<br>
&gt; Sent: Tuesday, February 28, 2012 4:39 PM<br>
&gt; To: NFSv4<br>
&gt; Subject: [nfsv4] layout return - final update ?<br>
&gt;<br>
&gt; Hopefully the final correction to the logr_return_on_close result fiel=
d in<br>
&gt;<br>
&gt;<br>
&gt; 18.43.3 that should go into v4.1 errata.<br>
&gt; Marc.<br>
&gt;<br>
&gt; section 18.43.3 say:<br>
&gt;<br>
&gt; The logr_return_on_close result field is a directive to return the lay=
out<br>
&gt; before closing the file. =A0When the metadata server sets this =A0retu=
rn value<br>
&gt; to TRUE, it MUST be prepared to recall the layout in the case in which=
 the<br>
&gt; client fails to return the layout before close. =A0For the metadata se=
rver<br>
&gt; that knows a layout must be returned before a close of the file, this<=
br>
&gt; return value can be used to communicate the desired behavior to the cl=
ient<br>
&gt; and thus remove one extra step from the client&#39;s and metadata serv=
er&#39;s<br>
&gt; interaction.<br>
&gt;<br>
&gt; it should say:<br>
&gt;<br>
&gt; The logr_return_on_close result field is a directive to return or forg=
et<br>
&gt; the layout before closing the file . When the metadata server sets thi=
s<br>
&gt; return value to TRUE, the client MUST NOT use the layout after sending=
<br>
&gt; the last CLOSE of that file. Any outstanding COMMIT to the data server=
s<br>
&gt; or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing t=
he<br>
&gt; file. This return value is used to communicate to the client that any<=
br>
&gt; layout or segment of a layout that were given with logr_return_on_clos=
e<br>
&gt; set to TRUE will result in the server invalidating all layouts of<br>
&gt; layouttype4 of loga_layout_type for the file after it was closed. Once=
<br>
&gt; the server returns logr_return_on_close set to TRUE to a client for a<=
br>
&gt; given file it MUST set logr_return_on_close to TRUE for all subsequent=
<br>
&gt; layouts or segments of layoutype4 of the respective loga_layout_type f=
or<br>
&gt; that file and client until that file is closed.<br>
&gt;<br>
&gt; Notes:<br>
&gt;<br>
&gt; This directive will remove one or more extra steps from the client&#39=
;s and<br>
&gt; metadata server&#39;s interaction.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; <a href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ie=
tf.org/mailman/listinfo/nfsv4</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; <a href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ie=
tf.org/mailman/listinfo/nfsv4</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; <a href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ie=
tf.org/mailman/listinfo/nfsv4</a><br>
</p>

--e89a8f9240b48f3dbc04ba1f0cbd--

From internet-drafts@ietf.org  Wed Feb 29 11:33:47 2012
Return-Path: <internet-drafts@ietf.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 7ED3321F8691; Wed, 29 Feb 2012 11:33:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.555
X-Spam-Level: 
X-Spam-Status: No, score=-102.555 tagged_above=-999 required=5 tests=[AWL=0.044, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IU-9JybirvGn; Wed, 29 Feb 2012 11:33:46 -0800 (PST)
Received: from ietfa.amsl.com (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B40C421F8682; Wed, 29 Feb 2012 11:33:21 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: internet-drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 4.00
Message-ID: <20120229193321.20545.78739.idtracker@ietfa.amsl.com>
Date: Wed, 29 Feb 2012 11:33:21 -0800
Cc: nfsv4@ietf.org
Subject: [nfsv4] I-D Action: draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 19:33:48 -0000

A New Internet-Draft is available from the on-line Internet-Drafts director=
ies. This draft is a work item of the Network File System Version 4 Working=
 Group of the IETF.

	Title           : Using DNS SRV to Specify a Global File Name Space with N=
FS version 4
	Author(s)       : Craig Everhart
                          W.A. (Andy) Adamson
                          Jiaying Zhang
	Filename        : draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt
	Pages           : 12
	Date            : 2012-02-29

   The NFS version 4 protocol provides a mechanism for a collection of
   NFS file servers to collaborate in providing an organization-wide
   file name space.  The DNS SRV RR allows a simple way for an
   organization to publish the root of its filesystem name space, even
   to clients that might not be intimately associated with such an
   organization.  The DNS SRV RR can be used to join these organization-
   wide file name spaces together to allow construction of a global,
   uniform NFS file name space.


A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-federated-fs-dns-srv-n=
amespace-12.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

This Internet-Draft can be retrieved at:
ftp://ftp.ietf.org/internet-drafts/draft-ietf-nfsv4-federated-fs-dns-srv-na=
mespace-12.txt


From Craig.Everhart@netapp.com  Wed Feb 29 11:48:04 2012
Return-Path: <Craig.Everhart@netapp.com>
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 CE37D21F8800 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 11:48:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level: 
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TVe5ON0q6hA2 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 11:48:03 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 51CB721F87D5 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 11:48:03 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,504,1325491200";  d="scan'208,217";a="629574049"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 29 Feb 2012 11:48:03 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1TJm3ap001943 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 11:48:03 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Wed, 29 Feb 2012 11:48:02 -0800
From: "Everhart, Craig" <Craig.Everhart@netapp.com>
To: "nfsv4@ietf.org" <nfsv4@ietf.org>
Thread-Topic: New Version Notification for draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt
Thread-Index: Acz3Gc72NgKAb9NtTLurewwTDJsPiQ==
Date: Wed, 29 Feb 2012 19:48:02 +0000
Message-ID: <021548D9893BA24BB490B3B68DBD05A80DC23C@SACEXCMBX04-PRD.hq.netapp.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.106.53.53]
Content-Type: multipart/alternative; boundary="_000_021548D9893BA24BB490B3B68DBD05A80DC23CSACEXCMBX04PRDhqn_"
MIME-Version: 1.0
Subject: [nfsv4] New Version Notification for draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 19:48:04 -0000

--_000_021548D9893BA24BB490B3B68DBD05A80DC23CSACEXCMBX04PRDhqn_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

The new draft incorporates the Protocol documentation change I suggested ye=
sterday.

It also removes the "." from the Service name, moving to "_nfs-domainroot".=
  Progress isn't worth a war over names that only administrators see.

Any other protocol that wants to use SRV to discover the "domain root" for =
a DNS name would have to come up with its own SRV registration in any case,=
 regardless of any structure in the Service name.

                                Craig

---------------

A New Internet-Draft is available from the on-line Internet-Drafts director=
ies. This draft is a work item of the Network File System Version 4 Working=
 Group of the IETF.



                Title           : Using DNS SRV to Specify a Global File Na=
me Space with NFS version 4

                Author(s)       : Craig Everhart

                          W.A. (Andy) Adamson

                          Jiaying Zhang

                Filename        : draft-ietf-nfsv4-federated-fs-dns-srv-nam=
espace-12.txt

                Pages           : 12

                Date            : 2012-02-29



   The NFS version 4 protocol provides a mechanism for a collection of

   NFS file servers to collaborate in providing an organization-wide

   file name space.  The DNS SRV RR allows a simple way for an

   organization to publish the root of its filesystem name space, even

   to clients that might not be intimately associated with such an

   organization.  The DNS SRV RR can be used to join these organization-

   wide file name spaces together to allow construction of a global,

   uniform NFS file name space.





A URL for this Internet-Draft is:

http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-federated-fs-dns-srv-n=
amespace-12.txt



Internet-Drafts are also available by anonymous FTP at:

ftp://ftp.ietf.org/internet-drafts/



This Internet-Draft can be retrieved at:

ftp://ftp.ietf.org/internet-drafts/draft-ietf-nfsv4-federated-fs-dns-srv-na=
mespace-12.txt


--_000_021548D9893BA24BB490B3B68DBD05A80DC23CSACEXCMBX04PRDhqn_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:"Calibri","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">The new draft incorporates the Protocol documentatio=
n change I suggested yesterday.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">It also removes the &#8220;.&#8221; from the Service=
 name, moving to &#8220;_nfs-domainroot&#8221;.&nbsp; Progress isn&#8217;t =
worth a war over names that only administrators see.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Any other protocol that wants to use SRV to discover=
 the &#8220;domain root&#8221; for a DNS name would have to come up with it=
s own SRV registration in any case, regardless of any structure in the Serv=
ice name.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Craig<o:p></o:p=
></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">---------------<o:p></o:p></p>
<p class=3D"MsoPlainText">A New Internet-Draft is available from the on-lin=
e Internet-Drafts directories. This draft is a work item of the Network Fil=
e System Version 4 Working Group of the IETF.<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Title&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Using DNS SRV to Specify a Global File N=
ame Space with NFS version 4<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Author(s)&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; : Craig Everhart<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; W.A. (Andy) Adamson<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; Jiaying Zhang<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Filename&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; : draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt<=
o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pages&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 12<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 2012-02-29<o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; The NFS version 4 protocol provides =
a mechanism for a collection of<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; NFS file servers to collaborate in p=
roviding an organization-wide<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; file name space.&nbsp; The DNS SRV R=
R allows a simple way for an<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; organization to publish the root of =
its filesystem name space, even<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; to clients that might not be intimat=
ely associated with such an<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; organization.&nbsp; The DNS SRV RR c=
an be used to join these organization-<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; wide file name spaces together to al=
low construction of a global,<o:p></o:p></p>
<p class=3D"MsoPlainText">&nbsp;&nbsp; uniform NFS file name space.<o:p></o=
:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">A URL for this Internet-Draft is:<o:p></o:p></p>
<p class=3D"MsoPlainText"><a href=3D"http://www.ietf.org/internet-drafts/dr=
aft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt">http://www.ietf.org/i=
nternet-drafts/draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt</a><o=
:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">Internet-Drafts are also available by anonymous F=
TP at:<o:p></o:p></p>
<p class=3D"MsoPlainText"><a href=3D"ftp://ftp.ietf.org/internet-drafts/">f=
tp://ftp.ietf.org/internet-drafts/</a><o:p></o:p></p>
<p class=3D"MsoPlainText"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoPlainText">This Internet-Draft can be retrieved at:<o:p></o:=
p></p>
<p class=3D"MsoPlainText"><a href=3D"ftp://ftp.ietf.org/internet-drafts/dra=
ft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt">ftp://ftp.ietf.org/int=
ernet-drafts/draft-ietf-nfsv4-federated-fs-dns-srv-namespace-12.txt</a><o:p=
></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_021548D9893BA24BB490B3B68DBD05A80DC23CSACEXCMBX04PRDhqn_--

From david.noveck@emc.com  Wed Feb 29 12:31:08 2012
Return-Path: <david.noveck@emc.com>
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 097AE21E800F for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 12:31:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.876
X-Spam-Level: 
X-Spam-Status: No, score=-9.876 tagged_above=-999 required=5 tests=[AWL=0.722,  BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DcU7djuum7MZ for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 12:31:07 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by ietfa.amsl.com (Postfix) with ESMTP id 3CB9921F860F for <nfsv4@ietf.org>; Wed, 29 Feb 2012 12:31:05 -0800 (PST)
Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1TKV1Sr004386 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Feb 2012 15:31:02 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.222.130]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor); Wed, 29 Feb 2012 15:30:49 -0500
Received: from mxhub16.corp.emc.com (mxhub16.corp.emc.com [128.222.70.237]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id q1TKUncJ000336; Wed, 29 Feb 2012 15:30:49 -0500
Received: from mx31a.corp.emc.com ([169.254.1.133]) by mxhub16.corp.emc.com ([128.222.70.237]) with mapi; Wed, 29 Feb 2012 15:30:49 -0500
From: <david.noveck@emc.com>
To: <bhalevy@tonian.com>
Date: Wed, 29 Feb 2012 15:30:48 -0500
Thread-Topic: [nfsv4] layout return - final update ?
Thread-Index: Acz3FXeBEnKz466HRPO32nT6rM4j2QACPpCQ
Message-ID: <5DEA8DB993B81040A21CF3CB332489F6B302886B@MX31A.corp.emc.com>
References: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com> <5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com> <CAEMWVhtcmVdgRH3w7R=87B3v8WKjcx-w1HNdPT05gFN+72xmRw@mail.gmail.com>
In-Reply-To: <CAEMWVhtcmVdgRH3w7R=87B3v8WKjcx-w1HNdPT05gFN+72xmRw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_5DEA8DB993B81040A21CF3CB332489F6B302886BMX31Acorpemccom_"
MIME-Version: 1.0
X-EMM-MHVC: 1
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 20:31:08 -0000

--_000_5DEA8DB993B81040A21CF3CB332489F6B302886BMX31Acorpemccom_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

> Previously what we discussed was the last CLOSE for the file/client pair.

OK, but the proposed text you supplied is not clear on that point.

> That said, I'm not sure about multiple filehandles representing the same =
file.

Another issue that needs to be clarified in the text.

> This approach seems valid but it complicates the case of layouts not mark=
ed as return_on_close that survived a previous last CLOSE as these will not=
 be affected now.

If we are talking about layout not marked return-on-close that were sent be=
fore the first return-on-close layout, then I think that the text you propo=
sed is exactly the same in this respect.  Or am I missing something here?

> Since we are talking about losing the layout on the last CLOSE from the c=
lient of that file a catch all approach would be simpler.

I'm not sure that that is so.  First of all, it is very natural/required fo=
r clients and servers to have data structures representing open files, and =
linking return-on-close layout  to these seems relatively straightforward. =
 on the other hand, I would not expect clients and servers to always have a=
n infrastructure to keep track of client/fh or client/file pairs and thus a=
lways be able to see when a last close is being done.  To top it all off, y=
ou may have racing closes so last-close-at-issue may not be the same as las=
t-close-at-receipt.  Also closes and opens can race.  Those sorts of consid=
erations led to me thinking associating a layout with a specific open file =
was simpler or at least it made my head hurt less.


________________________________
From: Benny Halevy [mailto:bhalevy@tonian.com]
Sent: Wednesday, February 29, 2012 2:07 PM
To: Noveck, David
Cc: eshel@almaden.ibm.com; nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?


On Feb 29, 2012 1:47 AM, <david.noveck@emc.com<mailto:david.noveck@emc.com>=
> wrote:
>
> The last few sentences seem to be written assuming that that three will b=
e only one
> open file per fh/client pair.  It seem that it says that if owner A opens=
 a file and
> Gets some layouts, then of owner B opens the same file then all the layou=
t he gets should be
> marked logr_return_on_close.  Is that what is intended?

I believe so.

And if so, when should
> these be invalidated.  On the first close, which the text seems to sugges=
t?

Previously what we discussed was the last CLOSE for the file/client pair.
That said, I'm not sure about multiple filehandles representing the same fi=
le.

I think the
> right direction, not having thought about it terribly much, is that logr_=
return_on_close
> layouts are open-file-associated and if that is something that you can ag=
ree with, you
> would b better off if the text said that explicitly.

This approach seems valid but it complicates the case of layouts not marked=
 as return_on_close that survived a previous last CLOSE as these will not b=
e affected now.
Since we are talking about losing the layout on the last CLOSE from the cli=
ent of that file a catch all approach would be simpler.

Benny

>
> -----Original Message-----
> From: nfsv4-bounces@ietf.org<mailto:nfsv4-bounces@ietf.org> [mailto:nfsv4=
-bounces@ietf.org<mailto:nfsv4-bounces@ietf.org>] On Behalf Of Marc Eshel
> Sent: Tuesday, February 28, 2012 4:39 PM
> To: NFSv4
> Subject: [nfsv4] layout return - final update ?
>
> Hopefully the final correction to the logr_return_on_close result field i=
n
>
>
> 18.43.3 that should go into v4.1 errata.
> Marc.
>
> section 18.43.3 say:
>
> The logr_return_on_close result field is a directive to return the layout
> before closing the file.  When the metadata server sets this  return valu=
e
> to TRUE, it MUST be prepared to recall the layout in the case in which th=
e
> client fails to return the layout before close.  For the metadata server
> that knows a layout must be returned before a close of the file, this
> return value can be used to communicate the desired behavior to the clien=
t
> and thus remove one extra step from the client's and metadata server's
> interaction.
>
> it should say:
>
> The logr_return_on_close result field is a directive to return or forget
> the layout before closing the file . When the metadata server sets this
> return value to TRUE, the client MUST NOT use the layout after sending
> the last CLOSE of that file. Any outstanding COMMIT to the data servers
> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
> file. This return value is used to communicate to the client that any
> layout or segment of a layout that were given with logr_return_on_close
> set to TRUE will result in the server invalidating all layouts of
> layouttype4 of loga_layout_type for the file after it was closed. Once
> the server returns logr_return_on_close set to TRUE to a client for a
> given file it MUST set logr_return_on_close to TRUE for all subsequent
> layouts or segments of layoutype4 of the respective loga_layout_type for
> that file and client until that file is closed.
>
> Notes:
>
> This directive will remove one or more extra steps from the client's and
> metadata server's interaction.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org<mailto:nfsv4@ietf.org>
> https://www.ietf.org/mailman/listinfo/nfsv4
>
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org<mailto:nfsv4@ietf.org>
> https://www.ietf.org/mailman/listinfo/nfsv4
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org<mailto:nfsv4@ietf.org>
> https://www.ietf.org/mailman/listinfo/nfsv4

--_000_5DEA8DB993B81040A21CF3CB332489F6B302886BMX31Acorpemccom_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.6129" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft>
<P><FONT face=3DArial><FONT size=3D2><STRONG><SPAN class=3D734211220-290220=
12>&gt;=20
</SPAN>Previously what we discussed was the last CLOSE for the file/client=
=20
pair.</STRONG></FONT></FONT></P><FONT face=3DArial><FONT=20
size=3D2></FONT></FONT></DIV>
<DIV dir=3Dltr align=3Dleft>
<P><SPAN class=3D734211220-29022012></SPAN><FONT face=3DArial><FONT=20
color=3D#0000ff>O<SPAN class=3D734211220-29022012>K</SPAN><SPAN=20
class=3D734211220-29022012>, but the proposed text you supplied&nbsp;is not=
 clear=20
on that point.</SPAN></FONT></FONT></P><FONT face=3DArial color=3D#0000ff=20
size=3D2><SPAN class=3D734211220-29022012></SPAN></FONT>
<P><FONT face=3DArial color=3D#0000ff size=3D2></FONT><BR><FONT face=3DAria=
l><FONT=20
size=3D2><STRONG><SPAN class=3D734211220-29022012>&gt; </SPAN>That said, I'=
m not=20
sure about multiple filehandles representing the same=20
file.</STRONG></FONT></FONT></P>
<P><SPAN class=3D734211220-29022012><FONT face=3DArial color=3D#0000ff>Anot=
her issue=20
that needs to be clarified in&nbsp;the text.</FONT></SPAN></P><SPAN=20
class=3D734211220-29022012>
<P><FONT size=3D2><STRONG><FONT face=3DArial><SPAN class=3D734211220-290220=
12>&gt;=20
</SPAN>This approach seems valid but it complicates the case of layouts not=
=20
marked as return_on_close </FONT><FONT face=3DArial>that survived a previou=
s last=20
CLOSE as these will not be affected now.</FONT></STRONG></FONT></P><FONT=20
face=3DArial></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D734211220-29022012><FONT color=3D=
#0000ff><FONT=20
size=3D2>
<P><FONT face=3DArial size=3D3><SPAN class=3D734211220-29022012>If we are t=
alking=20
about layout not marked return-on-close that were sent before the first=20
return-on-close layout, then I think that the text you proposed is exactly =
the=20
same in this respect.&nbsp; Or am&nbsp;I missing something=20
here?</SPAN></FONT></P>
<P><FONT face=3DArial size=3D3><SPAN class=3D734211220-29022012></SPAN></FO=
NT><FONT=20
face=3DArial size=3D3></FONT><FONT face=3DArial size=3D3></FONT><BR><STRONG=
><FONT=20
color=3D#000000><FONT face=3DArial><SPAN class=3D734211220-29022012>&gt; </=
SPAN>Since=20
we are talking about losing the layout on the last CLOSE from the client of=
 that=20
file a catch all approach would be=20
simpler.</FONT></FONT></STRONG></FONT></FONT></P>
<P><FONT size=3D2><FONT face=3DArial><FONT color=3D#0000ff><SPAN=20
class=3D734211220-29022012><FONT size=3D3>I'm not sure that that is=20
so.&nbsp;&nbsp;First of all, it is very natural/required for clients and se=
rvers=20
to have data structures representing open files, and=20
linking&nbsp;return-on-close layout &nbsp;to these seems&nbsp;relatively=20
straightforward.&nbsp; on the other hand, I would not expect clients and=20
servers</FONT></SPAN>&nbsp;<SPAN class=3D734211220-29022012><FONT size=3D3>=
to always=20
have an infrastructure to keep track of client/fh or&nbsp;client/file pairs=
 and=20
thus always be able to see when a last close is being done.&nbsp; To top it=
 all=20
off,&nbsp;you may have&nbsp;racing closes&nbsp;so last-close-at-issue=20
may&nbsp;not be the same&nbsp;as last-close-at-receipt.&nbsp;&nbsp;Also clo=
ses=20
and opens can race.&nbsp; Those sorts of considerations led to me thinking=
=20
associating a layout with a specific open file was simpler or at least it m=
ade=20
my head hurt less.</FONT></SPAN>&nbsp;</FONT></FONT></FONT></SPAN></P><SPAN=
=20
class=3D734211220-29022012><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft>
<P><FONT face=3DArial color=3D#0000ff size=3D2></FONT><FONT face=3DArial co=
lor=3D#0000ff=20
size=3D2></FONT><BR></P></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Benny Halevy [mailto:bhalevy@toni=
an.com]=20
<BR><B>Sent:</B> Wednesday, February 29, 2012 2:07 PM<BR><B>To:</B> Noveck,=
=20
David<BR><B>Cc:</B> eshel@almaden.ibm.com; nfsv4@ietf.org<BR><B>Subject:</B=
> Re:=20
[nfsv4] layout return - final update ?<BR></FONT><BR></DIV>
<DIV></DIV>
<P><FONT face=3DArial color=3D#0000ff size=3D2></FONT><BR>On Feb 29, 2012 1=
:47 AM,=20
&lt;<A href=3D"mailto:david.noveck@emc.com">david.noveck@emc.com</A>&gt;=20
wrote:<BR>&gt;<BR>&gt; The last few sentences seem to be written assuming t=
hat=20
that three will be only one<BR>&gt; open file per fh/client pair. &nbsp;It =
seem=20
that it says that if owner A opens a file and<BR>&gt; Gets some layouts, th=
en of=20
owner B opens the same file then all the layout he gets should be<BR>&gt; m=
arked=20
logr_return_on_close. &nbsp;Is that what is intended?</P>
<P>I believe so.</P>
<P>And if so, when should<BR>&gt; these be invalidated. &nbsp;On the first=
=20
close, which the text seems to suggest?</P>
<P>Previously what we discussed was the last CLOSE for the file/client=20
pair.<BR>That said, I'm not sure about multiple filehandles representing th=
e=20
same file.</P>
<P>I think the<BR>&gt; right direction, not having thought about it terribl=
y=20
much, is that logr_return_on_close<BR>&gt; layouts are open-file-associated=
 and=20
if that is something that you can agree with, you<BR>&gt; would b better of=
f if=20
the text said that explicitly.</P>
<P>This approach seems valid but it complicates the case of layouts not mar=
ked=20
as return_on_close that survived a previous last CLOSE as these will not be=
=20
affected now.<BR>Since we are talking about losing the layout on the last C=
LOSE=20
from the client of that file a catch all approach would be simpler.</P>
<P>Benny</P>
<P>&gt;<BR>&gt; -----Original Message-----<BR>&gt; From: <A=20
href=3D"mailto:nfsv4-bounces@ietf.org">nfsv4-bounces@ietf.org</A> [mailto:<=
A=20
href=3D"mailto:nfsv4-bounces@ietf.org">nfsv4-bounces@ietf.org</A>] On Behal=
f Of=20
Marc Eshel<BR>&gt; Sent: Tuesday, February 28, 2012 4:39 PM<BR>&gt; To:=20
NFSv4<BR>&gt; Subject: [nfsv4] layout return - final update ?<BR>&gt;<BR>&g=
t;=20
Hopefully the final correction to the logr_return_on_close result field=20
in<BR>&gt;<BR>&gt;<BR>&gt; 18.43.3 that should go into v4.1 errata.<BR>&gt;=
=20
Marc.<BR>&gt;<BR>&gt; section 18.43.3 say:<BR>&gt;<BR>&gt; The=20
logr_return_on_close result field is a directive to return the layout<BR>&g=
t;=20
before closing the file. &nbsp;When the metadata server sets this &nbsp;ret=
urn=20
value<BR>&gt; to TRUE, it MUST be prepared to recall the layout in the case=
 in=20
which the<BR>&gt; client fails to return the layout before close. &nbsp;For=
 the=20
metadata server<BR>&gt; that knows a layout must be returned before a close=
 of=20
the file, this<BR>&gt; return value can be used to communicate the desired=
=20
behavior to the client<BR>&gt; and thus remove one extra step from the clie=
nt's=20
and metadata server's<BR>&gt; interaction.<BR>&gt;<BR>&gt; it should=20
say:<BR>&gt;<BR>&gt; The logr_return_on_close result field is a directive t=
o=20
return or forget<BR>&gt; the layout before closing the file . When the meta=
data=20
server sets this<BR>&gt; return value to TRUE, the client MUST NOT use the=
=20
layout after sending<BR>&gt; the last CLOSE of that file. Any outstanding C=
OMMIT=20
to the data servers<BR>&gt; or LAYOUTCOMMIT to the metadata server MUST be =
sent=20
prior to closing the<BR>&gt; file. This return value is used to communicate=
 to=20
the client that any<BR>&gt; layout or segment of a layout that were given w=
ith=20
logr_return_on_close<BR>&gt; set to TRUE will result in the server invalida=
ting=20
all layouts of<BR>&gt; layouttype4 of loga_layout_type for the file after i=
t was=20
closed. Once<BR>&gt; the server returns logr_return_on_close set to TRUE to=
 a=20
client for a<BR>&gt; given file it MUST set logr_return_on_close to TRUE fo=
r all=20
subsequent<BR>&gt; layouts or segments of layoutype4 of the respective=20
loga_layout_type for<BR>&gt; that file and client until that file is=20
closed.<BR>&gt;<BR>&gt; Notes:<BR>&gt;<BR>&gt; This directive will remove o=
ne or=20
more extra steps from the client's and<BR>&gt; metadata server's=20
interaction.<BR>&gt;<BR>&gt;=20
_______________________________________________<BR>&gt; nfsv4 mailing=20
list<BR>&gt; <A href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</A><BR>&gt; <=
A=20
href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ietf.org/m=
ailman/listinfo/nfsv4</A><BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;=20
_______________________________________________<BR>&gt; nfsv4 mailing=20
list<BR>&gt; <A href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</A><BR>&gt; <=
A=20
href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ietf.org/m=
ailman/listinfo/nfsv4</A><BR>&gt;<BR>&gt;=20
_______________________________________________<BR>&gt; nfsv4 mailing=20
list<BR>&gt; <A href=3D"mailto:nfsv4@ietf.org">nfsv4@ietf.org</A><BR>&gt; <=
A=20
href=3D"https://www.ietf.org/mailman/listinfo/nfsv4">https://www.ietf.org/m=
ailman/listinfo/nfsv4</A><BR></P></BODY></HTML>

--_000_5DEA8DB993B81040A21CF3CB332489F6B302886BMX31Acorpemccom_--

From Trond.Myklebust@netapp.com  Wed Feb 29 13:25:18 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 E4FBD21F865A for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 13:25:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.551
X-Spam-Level: 
X-Spam-Status: No, score=-10.551 tagged_above=-999 required=5 tests=[AWL=0.048, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DQnNk4yOSxil for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 13:25:18 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id A865A21F8659 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 13:25:15 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,505,1325491200"; d="scan'208";a="629606051"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 29 Feb 2012 13:25:15 -0800
Received: from vmwexceht04-prd.hq.netapp.com (vmwexceht04-prd.hq.netapp.com [10.106.77.34]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q1TLPFIs003815; Wed, 29 Feb 2012 13:25:15 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht04-prd.hq.netapp.com ([10.106.77.34]) with mapi id 14.02.0247.003; Wed, 29 Feb 2012 13:24:27 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: "david.noveck@emc.com" <david.noveck@emc.com>
Thread-Topic: [nfsv4] layout return - final update ?
Thread-Index: AQHM9yiduRsaW4LVyUW3SmyU9Cgw+g==
Date: Wed, 29 Feb 2012 21:25:12 +0000
Message-ID: <1330550699.2818.25.camel@lade.trondhjem.org>
References: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com> <5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com> <CAEMWVhtcmVdgRH3w7R=87B3v8WKjcx-w1HNdPT05gFN+72xmRw@mail.gmail.com> <5DEA8DB993B81040A21CF3CB332489F6B302886B@MX31A.corp.emc.com>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6B302886B@MX31A.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.115]
Content-Type: text/plain; charset="utf-8"
Content-ID: <925E57B99203BC4EA2E1A30015DDDBE9@tahoe.netapp.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "eshel@almaden.ibm.com" <eshel@almaden.ibm.com>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 21:25:19 -0000

T24gV2VkLCAyMDEyLTAyLTI5IGF0IDE1OjMwIC0wNTAwLCBkYXZpZC5ub3ZlY2tAZW1jLmNvbSB3
cm90ZToNCj4gPiBQcmV2aW91c2x5IHdoYXQgd2UgZGlzY3Vzc2VkIHdhcyB0aGUgbGFzdCBDTE9T
RSBmb3IgdGhlIGZpbGUvY2xpZW50DQo+IHBhaXIuDQo+IA0KPiANCj4gT0ssIGJ1dCB0aGUgcHJv
cG9zZWQgdGV4dCB5b3Ugc3Vw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GFzdCBjbG9zZSBpcyBiZWluZyBkb25lLiAgVG8g
dG9wIGl0IGFsbCBvZmYsIHlvdSBtYXkNCj4gaGF2ZSByYWNpbmcgY2xvc2VzIHNvIGxhc3QtY2xv
c2UtYXQtaXNzdWUgbWF5IG5vdCBiZSB0aGUgc2FtZSBhcw0KPiBsYXN0LWNsb3NlLWF0LXJlY2Vp
cHQuICBBbHNvIGNsb3NlcyBhbmQgb3BlbnMgY2FuIHJhY2UuICBUaG9zZSBzb3J0cw0KPiBvZiBj
b25zaWRlcmF0aW9ucyBsZWQgdG8gbWUgdGhpbmtpbmcgYXNzb2NpYXRpbmcgYSBsYXlvdXQgd2l0
aCBhDQo+IHNwZWNpZmljIG9wZW4gZmlsZSB3YXMgc2ltcGxlciBvciBhdCBsZWFzdCBpdCBtYWRl
IG15IGhlYWQgaHVydCBsZXNzLiANCg0KDQotLSANClRyb25kIE15a2xlYnVzdA0KTGludXggTkZT
IGNsaWVudCBtYWludGFpbmVyDQoNCk5ldEFwcA0KVHJvbmQuTXlrbGVidXN0QG5ldGFwcC5jb20N
Cnd3dy5uZXRhcHAuY29tDQoNCg==

From rmacklem@uoguelph.ca  Wed Feb 29 15:47:55 2012
Return-Path: <rmacklem@uoguelph.ca>
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 1E62B21F8749 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 15:47:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.609
X-Spam-Level: 
X-Spam-Status: No, score=-4.609 tagged_above=-999 required=5 tests=[AWL=-1.010, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Z-bcfVR3Meq for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 15:47:54 -0800 (PST)
Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by ietfa.amsl.com (Postfix) with ESMTP id 1F33621F8722 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 15:47:53 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EAJe4Tk+DaFvO/2dsb2JhbABDhTmvSoF6AQEBAwEBAQEgJiULGxgCAg0ZAikwBhOIBAULrUOKS4Evi0sFEwYSBAICBQIKAQYEBwIGBxULCQKERAECOkACARgEAgEHBwoBghaBFgSIT4xwkw8
X-IronPort-AV: E=Sophos;i="4.73,506,1325480400"; d="scan'208";a="161591721"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 29 Feb 2012 18:47:52 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id D7392B3F36; Wed, 29 Feb 2012 18:47:52 -0500 (EST)
Date: Wed, 29 Feb 2012 18:47:52 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Message-ID: <967034283.147877.1330559272860.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <1330550699.2818.25.camel@lade.trondhjem.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Linux)/6.0.10_GA_2692)
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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, 29 Feb 2012 23:47:55 -0000

Trond Myklebust wrote:
> On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> > > Previously what we discussed was the last CLOSE for the
> > > file/client
> > pair.
> >
> >
> > OK, but the proposed text you supplied is not clear on that point.
> >
> >
> > > That said, I'm not sure about multiple filehandles representing
> > > the
> > same file.
> >
> > Another issue that needs to be clarified in the text.
> 
> We should do the same as we do for other state: LAYOUTs for different
> filehandles should be represented by different stateids and should not
> be combined.
> 
> IOW: since you can't choose to CLOSE the file using either filehandle,
> but MUST use the filehandle that you received when you did the OPEN, I
> suggest that we extend that principle to layouts too.
> 
Isn't it also possible to have multiple OPENs for the same FH, but
different open_owner4's?

(Just fyi, this doesn't affect the FreeBSD
client much, since it holds onto all OPENs for a given FH until all
of the file descriptors are closed and the CLOSEes them all at the
same time. As such, the layout can be returned at that time, if any
case of return_on_closed == true has been received for the layout.)

rick

> > > This approach seems valid but it complicates the case of layouts
> > > not
> > marked as return_on_close that survived a previous last CLOSE as
> > these
> > will not be affected now.
> >
> >
> > If we are talking about layout not marked return-on-close that were
> > sent before the first return-on-close layout, then I think that the
> > text you proposed is exactly the same in this respect. Or am I
> > missing something here?
> >
> >
> > > Since we are talking about losing the layout on the last CLOSE
> > > from
> > the client of that file a catch all approach would be simpler.
> >
> > I'm not sure that that is so. First of all, it is very
> > natural/required for clients and servers to have data structures
> > representing open files, and linking return-on-close layout to these
> > seems relatively straightforward. on the other hand, I would not
> > expect clients and servers to always have an infrastructure to keep
> > track of client/fh or client/file pairs and thus always be able to
> > see
> > when a last close is being done. To top it all off, you may
> > have racing closes so last-close-at-issue may not be the same as
> > last-close-at-receipt. Also closes and opens can race. Those sorts
> > of considerations led to me thinking associating a layout with a
> > specific open file was simpler or at least it made my head hurt
> > less.
> 
> 
> --
> Trond Myklebust
> Linux NFS client maintainer
> 
> NetApp
> Trond.Myklebust@netapp.com
> www.netapp.com
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Wed Feb 29 16:25:56 2012
Return-Path: <eshel@almaden.ibm.com>
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 CFC3921F85AD for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 16:25:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jT33TBrtBZhU for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 16:25:56 -0800 (PST)
Received: from e8.ny.us.ibm.com (e8.ny.us.ibm.com [32.97.182.138]) by ietfa.amsl.com (Postfix) with ESMTP id C322E21F85AC for <nfsv4@ietf.org>; Wed, 29 Feb 2012 16:25:55 -0800 (PST)
Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Wed, 29 Feb 2012 19:25:54 -0500
Received: from d01dlp01.pok.ibm.com (9.56.224.56) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Wed, 29 Feb 2012 19:25:49 -0500
Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id D37B538C8052 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 19:25:48 -0500 (EST)
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q210PmBL3510390 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 19:25:48 -0500
Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q210PlZZ020052 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 21:25:47 -0300
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q210PlE6020042; Wed, 29 Feb 2012 21:25:47 -0300
In-Reply-To: <967034283.147877.1330559272860.JavaMail.root@erie.cs.uoguelph.ca>
References: <1330550699.2818.25.camel@lade.trondhjem.org> <967034283.147877.1330559272860.JavaMail.root@erie.cs.uoguelph.ca>
To: Rick Macklem <rmacklem@uoguelph.ca>
MIME-Version: 1.0
X-KeepSent: D565EA57:464EE214-882579B4:0001BBDA; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OFD565EA57.464EE214-ON882579B4.0001BBDA-882579B4.00025649@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Wed, 29 Feb 2012 16:25:35 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/29/2012 19:25:46, Serialize complete at 02/29/2012 19:25:46
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12030100-9360-0000-0000-0000041DED84
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 00:25:56 -0000

Lets try to keep it simple. Can we agree that once the server returns a 
layout with return_on_closed == true for a file A (what ever way it is 
represented) to client B the serve will be allowed to invalidate the 
layouts on the last close  of file A by client B. If you disagree please 
propose a clear and complete alternative.
Marc.



From:
Rick Macklem <rmacklem@uoguelph.ca>
To:
Trond Myklebust <Trond.Myklebust@netapp.com>
Cc:
eshel@almaden.ibm.com, nfsv4@ietf.org, david noveck <david.noveck@emc.com>
Date:
02/29/2012 03:48 PM
Subject:
Re: [nfsv4] layout return - final update ?



Trond Myklebust wrote:
> On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> > > Previously what we discussed was the last CLOSE for the
> > > file/client
> > pair.
> >
> >
> > OK, but the proposed text you supplied is not clear on that point.
> >
> >
> > > That said, I'm not sure about multiple filehandles representing
> > > the
> > same file.
> >
> > Another issue that needs to be clarified in the text.
> 
> We should do the same as we do for other state: LAYOUTs for different
> filehandles should be represented by different stateids and should not
> be combined.
> 
> IOW: since you can't choose to CLOSE the file using either filehandle,
> but MUST use the filehandle that you received when you did the OPEN, I
> suggest that we extend that principle to layouts too.
> 
Isn't it also possible to have multiple OPENs for the same FH, but
different open_owner4's?

(Just fyi, this doesn't affect the FreeBSD
client much, since it holds onto all OPENs for a given FH until all
of the file descriptors are closed and the CLOSEes them all at the
same time. As such, the layout can be returned at that time, if any
case of return_on_closed == true has been received for the layout.)

rick

> > > This approach seems valid but it complicates the case of layouts
> > > not
> > marked as return_on_close that survived a previous last CLOSE as
> > these
> > will not be affected now.
> >
> >
> > If we are talking about layout not marked return-on-close that were
> > sent before the first return-on-close layout, then I think that the
> > text you proposed is exactly the same in this respect. Or am I
> > missing something here?
> >
> >
> > > Since we are talking about losing the layout on the last CLOSE
> > > from
> > the client of that file a catch all approach would be simpler.
> >
> > I'm not sure that that is so. First of all, it is very
> > natural/required for clients and servers to have data structures
> > representing open files, and linking return-on-close layout to these
> > seems relatively straightforward. on the other hand, I would not
> > expect clients and servers to always have an infrastructure to keep
> > track of client/fh or client/file pairs and thus always be able to
> > see
> > when a last close is being done. To top it all off, you may
> > have racing closes so last-close-at-issue may not be the same as
> > last-close-at-receipt. Also closes and opens can race. Those sorts
> > of considerations led to me thinking associating a layout with a
> > specific open file was simpler or at least it made my head hurt
> > less.
> 
> 
> --
> Trond Myklebust
> Linux NFS client maintainer
> 
> NetApp
> Trond.Myklebust@netapp.com
> www.netapp.com
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4





From rmacklem@uoguelph.ca  Wed Feb 29 16:53:49 2012
Return-Path: <rmacklem@uoguelph.ca>
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 5022B21E8038 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 16:53:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.082
X-Spam-Level: 
X-Spam-Status: No, score=-6.082 tagged_above=-999 required=5 tests=[AWL=0.517,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WqWuI-XLJouA for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 16:53:48 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id D5A9921E801C for <nfsv4@ietf.org>; Wed, 29 Feb 2012 16:53:47 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EAFnHTk+DaFvO/2dsb2JhbABDhTmvT4F6AQEBAwEBAQEgJiULBRYRAwECAQICDRkCKSgIBhOIBAULrUWKRoEvi0sFEwYFDQQCAgUCCgEGBAcCBgcVCwuERAECOkACARgCAgIBBwcKAYIWgRYEiE+McJMP
X-IronPort-AV: E=Sophos;i="4.73,506,1325480400"; d="scan'208";a="158516665"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 29 Feb 2012 19:53:47 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 17364B3F25; Wed, 29 Feb 2012 19:53:47 -0500 (EST)
Date: Wed, 29 Feb 2012 19:53:47 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Marc Eshel <eshel@almaden.ibm.com>
Message-ID: <1725188887.152815.1330563227069.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <OFD565EA57.464EE214-ON882579B4.0001BBDA-882579B4.00025649@us.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.201]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Linux)/6.0.10_GA_2692)
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 00:53:49 -0000

Marc Eshel wrote:
> Lets try to keep it simple. Can we agree that once the server returns
> a
> layout with return_on_closed == true for a file A

> (what ever way it is represented)
If, by "what ever way it is represented" you mean a file
handle, then that sounds fine to me.

If you mean "any file with the same fileid and fsid from
the same server", I'm not so sure, since it would be difficult
to find all cases of this, imho. Yes, fileid and fsid are attributes,
but a client tends to cache them (with no guarantee that
they are up-to-date) and even an exhaustive search of the attribute
cache might not find them all. (I believe this is only an issue for
cases where a file has multiple FH's, possibly after a RENAME
against certains servers?)

rick

> to client B the serve will be allowed to invalidate the
> layouts on the last close of file A by client B. If you disagree
> please
> propose a clear and complete alternative.
> Marc.
> 
> 
> 
> From:
> Rick Macklem <rmacklem@uoguelph.ca>
> To:
> Trond Myklebust <Trond.Myklebust@netapp.com>
> Cc:
> eshel@almaden.ibm.com, nfsv4@ietf.org, david noveck
> <david.noveck@emc.com>
> Date:
> 02/29/2012 03:48 PM
> Subject:
> Re: [nfsv4] layout return - final update ?
> 
> 
> 
> Trond Myklebust wrote:
> > On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> > > > Previously what we discussed was the last CLOSE for the
> > > > file/client
> > > pair.
> > >
> > >
> > > OK, but the proposed text you supplied is not clear on that point.
> > >
> > >
> > > > That said, I'm not sure about multiple filehandles representing
> > > > the
> > > same file.
> > >
> > > Another issue that needs to be clarified in the text.
> >
> > We should do the same as we do for other state: LAYOUTs for
> > different
> > filehandles should be represented by different stateids and should
> > not
> > be combined.
> >
> > IOW: since you can't choose to CLOSE the file using either
> > filehandle,
> > but MUST use the filehandle that you received when you did the OPEN,
> > I
> > suggest that we extend that principle to layouts too.
> >
> Isn't it also possible to have multiple OPENs for the same FH, but
> different open_owner4's?
> 
> (Just fyi, this doesn't affect the FreeBSD
> client much, since it holds onto all OPENs for a given FH until all
> of the file descriptors are closed and the CLOSEes them all at the
> same time. As such, the layout can be returned at that time, if any
> case of return_on_closed == true has been received for the layout.)
> 
> rick
> 
> > > > This approach seems valid but it complicates the case of layouts
> > > > not
> > > marked as return_on_close that survived a previous last CLOSE as
> > > these
> > > will not be affected now.
> > >
> > >
> > > If we are talking about layout not marked return-on-close that
> > > were
> > > sent before the first return-on-close layout, then I think that
> > > the
> > > text you proposed is exactly the same in this respect. Or am I
> > > missing something here?
> > >
> > >
> > > > Since we are talking about losing the layout on the last CLOSE
> > > > from
> > > the client of that file a catch all approach would be simpler.
> > >
> > > I'm not sure that that is so. First of all, it is very
> > > natural/required for clients and servers to have data structures
> > > representing open files, and linking return-on-close layout to
> > > these
> > > seems relatively straightforward. on the other hand, I would not
> > > expect clients and servers to always have an infrastructure to
> > > keep
> > > track of client/fh or client/file pairs and thus always be able to
> > > see
> > > when a last close is being done. To top it all off, you may
> > > have racing closes so last-close-at-issue may not be the same as
> > > last-close-at-receipt. Also closes and opens can race. Those sorts
> > > of considerations led to me thinking associating a layout with a
> > > specific open file was simpler or at least it made my head hurt
> > > less.
> >
> >
> > --
> > Trond Myklebust
> > Linux NFS client maintainer
> >
> > NetApp
> > Trond.Myklebust@netapp.com
> > www.netapp.com
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Wed Feb 29 17:37:34 2012
Return-Path: <eshel@almaden.ibm.com>
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 0009421E807D for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 17:37:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7CwHjl0q8qfA for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 17:37:33 -0800 (PST)
Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139]) by ietfa.amsl.com (Postfix) with ESMTP id B02EC21E8072 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 17:37:32 -0800 (PST)
Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Wed, 29 Feb 2012 20:37:31 -0500
Received: from d01dlp01.pok.ibm.com (9.56.224.56) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Wed, 29 Feb 2012 20:37:30 -0500
Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 8132138C8059; Wed, 29 Feb 2012 20:37:29 -0500 (EST)
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q211bTMG3166320; Wed, 29 Feb 2012 20:37:29 -0500
Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q211bSut000856; Wed, 29 Feb 2012 22:37:28 -0300
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q211bSWW000853; Wed, 29 Feb 2012 22:37:28 -0300
In-Reply-To: <1725188887.152815.1330563227069.JavaMail.root@erie.cs.uoguelph.ca>
References: <OFD565EA57.464EE214-ON882579B4.0001BBDA-882579B4.00025649@us.ibm.com> <1725188887.152815.1330563227069.JavaMail.root@erie.cs.uoguelph.ca>
To: Rick Macklem <rmacklem@uoguelph.ca>
MIME-Version: 1.0
X-KeepSent: F43B9439:A3A7CBAF-882579B4:00081CCC; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OFF43B9439.A3A7CBAF-ON882579B4.00081CCC-882579B4.0008E5C1@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Wed, 29 Feb 2012 17:37:15 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 02/29/2012 20:37:28, Serialize complete at 02/29/2012 20:37:28
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12030101-7182-0000-0000-000000EED743
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org, nfsv4-bounces@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 01:37:34 -0000

nfsv4-bounces@ietf.org wrote on 02/29/2012 04:53:47 PM:
> 
> Trond Myklebust, nfsv4
> 
> Marc Eshel wrote:
> > Lets try to keep it simple. Can we agree that once the server returns
> > a
> > layout with return_on_closed == true for a file A
> 
> > (what ever way it is represented)
> If, by "what ever way it is represented" you mean a file
> handle, then that sounds fine to me.

Yes, any fh that maps to the same file (inode). btw, files might also have 
different fh becuse of hard links not just rename.

> 
> If you mean "any file with the same fileid and fsid from
> the same server", I'm not so sure, since it would be difficult
> to find all cases of this, imho. Yes, fileid and fsid are attributes,
> but a client tends to cache them (with no guarantee that
> they are up-to-date) and even an exhaustive search of the attribute
> cache might not find them all. (I believe this is only an issue for
> cases where a file has multiple FH's, possibly after a RENAME
> against certains servers?)
> 
> rick
> 
> > to client B the serve will be allowed to invalidate the
> > layouts on the last close of file A by client B. If you disagree
> > please
> > propose a clear and complete alternative.
> > Marc.
> > 
> > 
> > 
> > From:
> > Rick Macklem <rmacklem@uoguelph.ca>
> > To:
> > Trond Myklebust <Trond.Myklebust@netapp.com>
> > Cc:
> > eshel@almaden.ibm.com, nfsv4@ietf.org, david noveck
> > <david.noveck@emc.com>
> > Date:
> > 02/29/2012 03:48 PM
> > Subject:
> > Re: [nfsv4] layout return - final update ?
> > 
> > 
> > 
> > Trond Myklebust wrote:
> > > On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> > > > > Previously what we discussed was the last CLOSE for the
> > > > > file/client
> > > > pair.
> > > >
> > > >
> > > > OK, but the proposed text you supplied is not clear on that point.
> > > >
> > > >
> > > > > That said, I'm not sure about multiple filehandles representing
> > > > > the
> > > > same file.
> > > >
> > > > Another issue that needs to be clarified in the text.
> > >
> > > We should do the same as we do for other state: LAYOUTs for
> > > different
> > > filehandles should be represented by different stateids and should
> > > not
> > > be combined.
> > >
> > > IOW: since you can't choose to CLOSE the file using either
> > > filehandle,
> > > but MUST use the filehandle that you received when you did the OPEN,
> > > I
> > > suggest that we extend that principle to layouts too.
> > >
> > Isn't it also possible to have multiple OPENs for the same FH, but
> > different open_owner4's?
> > 
> > (Just fyi, this doesn't affect the FreeBSD
> > client much, since it holds onto all OPENs for a given FH until all
> > of the file descriptors are closed and the CLOSEes them all at the
> > same time. As such, the layout can be returned at that time, if any
> > case of return_on_closed == true has been received for the layout.)
> > 
> > rick
> > 
> > > > > This approach seems valid but it complicates the case of layouts
> > > > > not
> > > > marked as return_on_close that survived a previous last CLOSE as
> > > > these
> > > > will not be affected now.
> > > >
> > > >
> > > > If we are talking about layout not marked return-on-close that
> > > > were
> > > > sent before the first return-on-close layout, then I think that
> > > > the
> > > > text you proposed is exactly the same in this respect. Or am I
> > > > missing something here?
> > > >
> > > >
> > > > > Since we are talking about losing the layout on the last CLOSE
> > > > > from
> > > > the client of that file a catch all approach would be simpler.
> > > >
> > > > I'm not sure that that is so. First of all, it is very
> > > > natural/required for clients and servers to have data structures
> > > > representing open files, and linking return-on-close layout to
> > > > these
> > > > seems relatively straightforward. on the other hand, I would not
> > > > expect clients and servers to always have an infrastructure to
> > > > keep
> > > > track of client/fh or client/file pairs and thus always be able to
> > > > see
> > > > when a last close is being done. To top it all off, you may
> > > > have racing closes so last-close-at-issue may not be the same as
> > > > last-close-at-receipt. Also closes and opens can race. Those sorts
> > > > of considerations led to me thinking associating a layout with a
> > > > specific open file was simpler or at least it made my head hurt
> > > > less.
> > >
> > >
> > > --
> > > Trond Myklebust
> > > Linux NFS client maintainer
> > >
> > > NetApp
> > > Trond.Myklebust@netapp.com
> > > www.netapp.com
> > >
> > > _______________________________________________
> > > nfsv4 mailing list
> > > nfsv4@ietf.org
> > > https://www.ietf.org/mailman/listinfo/nfsv4
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
> 


From Trond.Myklebust@netapp.com  Wed Feb 29 19:15:43 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 2897D21E806B for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 19:15:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.553
X-Spam-Level: 
X-Spam-Status: No, score=-10.553 tagged_above=-999 required=5 tests=[AWL=0.046, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1A4XrdS7nz-i for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 19:15:42 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id A043221E801E for <nfsv4@ietf.org>; Wed, 29 Feb 2012 19:15:42 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,507,1325491200"; d="scan'208";a="629688497"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 29 Feb 2012 19:15:42 -0800
Received: from vmwexceht05-prd.hq.netapp.com (vmwexceht05-prd.hq.netapp.com [10.106.77.35]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q213FgH1018415; Wed, 29 Feb 2012 19:15:42 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht05-prd.hq.netapp.com ([10.106.77.35]) with mapi id 14.02.0247.003; Wed, 29 Feb 2012 19:15:41 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Rick Macklem <rmacklem@uoguelph.ca>
Thread-Topic: [nfsv4] layout return - final update ?
Thread-Index: AQHM9yifuRsaW4LVyUW3SmyU9Cgw+pZVEOQAgAA6DwA=
Date: Thu, 1 Mar 2012 03:15:40 +0000
Message-ID: <E4E41A35-7742-4185-9F78-079F14B5FAFE@netapp.com>
References: <967034283.147877.1330559272860.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <967034283.147877.1330559272860.JavaMail.root@erie.cs.uoguelph.ca>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.104.60.116]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <1EE8F0BA6295914DB185046242330092@tahoe.netapp.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: eshel <eshel@almaden.ibm.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 03:15:43 -0000

On Feb 29, 2012, at 6:47 PM, Rick Macklem wrote:

> Trond Myklebust wrote:
>> On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
>>>> Previously what we discussed was the last CLOSE for the
>>>> file/client
>>> pair.
>>>=20
>>>=20
>>> OK, but the proposed text you supplied is not clear on that point.
>>>=20
>>>=20
>>>> That said, I'm not sure about multiple filehandles representing
>>>> the
>>> same file.
>>>=20
>>> Another issue that needs to be clarified in the text.
>>=20
>> We should do the same as we do for other state: LAYOUTs for different
>> filehandles should be represented by different stateids and should not
>> be combined.
>>=20
>> IOW: since you can't choose to CLOSE the file using either filehandle,
>> but MUST use the filehandle that you received when you did the OPEN, I
>> suggest that we extend that principle to layouts too.
>>=20
> Isn't it also possible to have multiple OPENs for the same FH, but
> different open_owner4's?
>=20
> (Just fyi, this doesn't affect the FreeBSD
> client much, since it holds onto all OPENs for a given FH until all
> of the file descriptors are closed and the CLOSEes them all at the
> same time. As such, the layout can be returned at that time, if any
> case of return_on_closed =3D=3D true has been received for the layout.)

Yes, the fact that you can have several open_owners for the same filehandle=
 does affect the 'last closer' issue. I'm not denying that is a complicatio=
n, however I believe that the multiple filehandles issue is easily solvable=
 thanks to the precedent that we already have for all the other existing st=
ate (open/lock state and delegation state).

Cheers
  Trond=

From rmacklem@uoguelph.ca  Wed Feb 29 19:16:04 2012
Return-Path: <rmacklem@uoguelph.ca>
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 7C4A921E8082; Wed, 29 Feb 2012 19:16:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.095
X-Spam-Level: 
X-Spam-Status: No, score=-6.095 tagged_above=-999 required=5 tests=[AWL=0.504,  BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZKmjl3dYS1Ml; Wed, 29 Feb 2012 19:16:03 -0800 (PST)
Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by ietfa.amsl.com (Postfix) with ESMTP id 233A621F8578; Wed, 29 Feb 2012 19:16:02 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap8EAFTpTk+DaFvO/2dsb2JhbABEhSevVoF6AQEBAwEBAQEgJiULGxEDAQIBAgINGQIpKAgGE4gEBQunK5IogS+LSwUZEgQCAgUCCgEGBAcCBgcVC4RPAQI6QAIBGAICAgEHBwoBghaBFgSIT4xwkw8
X-IronPort-AV: E=Sophos;i="4.73,507,1325480400"; d="scan'208";a="158528697"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 29 Feb 2012 22:16:01 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 5D473B3F0F; Wed, 29 Feb 2012 22:16:01 -0500 (EST)
Date: Wed, 29 Feb 2012 22:16:01 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Marc Eshel <eshel@almaden.ibm.com>
Message-ID: <1228943011.158847.1330571761335.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <OFF43B9439.A3A7CBAF-ON882579B4.00081CCC-882579B4.0008E5C1@us.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.203]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Linux)/6.0.10_GA_2692)
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>, nfsv4@ietf.org, nfsv4-bounces@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 03:16:04 -0000

Marc Eshel wrote:
> nfsv4-bounces@ietf.org wrote on 02/29/2012 04:53:47 PM:
> >
> > Trond Myklebust, nfsv4
> >
> > Marc Eshel wrote:
> > > Lets try to keep it simple. Can we agree that once the server
> > > returns
> > > a
> > > layout with return_on_closed == true for a file A
> >
> > > (what ever way it is represented)
> > If, by "what ever way it is represented" you mean a file
> > handle, then that sounds fine to me.
> 
> Yes, any fh that maps to the same file (inode). btw, files might also
> have
> different fh becuse of hard links not just rename.
> 
Well, I think this is too hard for a client to handle. (ie.
Recognizing that multiple FH's are for the same file.)

When I said FH, I meant that the rule would apply to one FH,
not all FHs that map to the same file.

rick

> >
> > If you mean "any file with the same fileid and fsid from
> > the same server", I'm not so sure, since it would be difficult
> > to find all cases of this, imho. Yes, fileid and fsid are
> > attributes,
> > but a client tends to cache them (with no guarantee that
> > they are up-to-date) and even an exhaustive search of the attribute
> > cache might not find them all. (I believe this is only an issue for
> > cases where a file has multiple FH's, possibly after a RENAME
> > against certains servers?)
> >
> > rick
> >
> > > to client B the serve will be allowed to invalidate the
> > > layouts on the last close of file A by client B. If you disagree
> > > please
> > > propose a clear and complete alternative.
> > > Marc.
> > >
> > >
> > >
> > > From:
> > > Rick Macklem <rmacklem@uoguelph.ca>
> > > To:
> > > Trond Myklebust <Trond.Myklebust@netapp.com>
> > > Cc:
> > > eshel@almaden.ibm.com, nfsv4@ietf.org, david noveck
> > > <david.noveck@emc.com>
> > > Date:
> > > 02/29/2012 03:48 PM
> > > Subject:
> > > Re: [nfsv4] layout return - final update ?
> > >
> > >
> > >
> > > Trond Myklebust wrote:
> > > > On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> > > > > > Previously what we discussed was the last CLOSE for the
> > > > > > file/client
> > > > > pair.
> > > > >
> > > > >
> > > > > OK, but the proposed text you supplied is not clear on that
> > > > > point.
> > > > >
> > > > >
> > > > > > That said, I'm not sure about multiple filehandles
> > > > > > representing
> > > > > > the
> > > > > same file.
> > > > >
> > > > > Another issue that needs to be clarified in the text.
> > > >
> > > > We should do the same as we do for other state: LAYOUTs for
> > > > different
> > > > filehandles should be represented by different stateids and
> > > > should
> > > > not
> > > > be combined.
> > > >
> > > > IOW: since you can't choose to CLOSE the file using either
> > > > filehandle,
> > > > but MUST use the filehandle that you received when you did the
> > > > OPEN,
> > > > I
> > > > suggest that we extend that principle to layouts too.
> > > >
> > > Isn't it also possible to have multiple OPENs for the same FH, but
> > > different open_owner4's?
> > >
> > > (Just fyi, this doesn't affect the FreeBSD
> > > client much, since it holds onto all OPENs for a given FH until
> > > all
> > > of the file descriptors are closed and the CLOSEes them all at the
> > > same time. As such, the layout can be returned at that time, if
> > > any
> > > case of return_on_closed == true has been received for the
> > > layout.)
> > >
> > > rick
> > >
> > > > > > This approach seems valid but it complicates the case of
> > > > > > layouts
> > > > > > not
> > > > > marked as return_on_close that survived a previous last CLOSE
> > > > > as
> > > > > these
> > > > > will not be affected now.
> > > > >
> > > > >
> > > > > If we are talking about layout not marked return-on-close that
> > > > > were
> > > > > sent before the first return-on-close layout, then I think
> > > > > that
> > > > > the
> > > > > text you proposed is exactly the same in this respect. Or am I
> > > > > missing something here?
> > > > >
> > > > >
> > > > > > Since we are talking about losing the layout on the last
> > > > > > CLOSE
> > > > > > from
> > > > > the client of that file a catch all approach would be simpler.
> > > > >
> > > > > I'm not sure that that is so. First of all, it is very
> > > > > natural/required for clients and servers to have data
> > > > > structures
> > > > > representing open files, and linking return-on-close layout to
> > > > > these
> > > > > seems relatively straightforward. on the other hand, I would
> > > > > not
> > > > > expect clients and servers to always have an infrastructure to
> > > > > keep
> > > > > track of client/fh or client/file pairs and thus always be
> > > > > able to
> > > > > see
> > > > > when a last close is being done. To top it all off, you may
> > > > > have racing closes so last-close-at-issue may not be the same
> > > > > as
> > > > > last-close-at-receipt. Also closes and opens can race. Those
> > > > > sorts
> > > > > of considerations led to me thinking associating a layout with
> > > > > a
> > > > > specific open file was simpler or at least it made my head
> > > > > hurt
> > > > > less.
> > > >
> > > >
> > > > --
> > > > Trond Myklebust
> > > > Linux NFS client maintainer
> > > >
> > > > NetApp
> > > > Trond.Myklebust@netapp.com
> > > > www.netapp.com
> > > >
> > > > _______________________________________________
> > > > nfsv4 mailing list
> > > > nfsv4@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/nfsv4
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> >
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From rmacklem@uoguelph.ca  Wed Feb 29 19:19:38 2012
Return-Path: <rmacklem@uoguelph.ca>
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 692FA21E803E for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 19:19:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.608
X-Spam-Level: 
X-Spam-Status: No, score=-4.608 tagged_above=-999 required=5 tests=[AWL=-1.009, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B5VxqsYGUdvW for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 19:19:30 -0800 (PST)
Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by ietfa.amsl.com (Postfix) with ESMTP id 73A0521F8501 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 19:19:30 -0800 (PST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ap4EANjpTk+DaFvO/2dsb2JhbABEhSevVoF6AQEFI1YbGAICDRkCWQYTiAmnN5IogS+LSx4SBAICBQIKAQYEBwIGBxULCQKERAECOmIYgheBFgSIT4xwkw8
X-IronPort-AV: E=Sophos;i="4.73,507,1325480400"; d="scan'208";a="161609424"
Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 29 Feb 2012 22:19:29 -0500
Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id BD870B3F0A; Wed, 29 Feb 2012 22:19:29 -0500 (EST)
Date: Wed, 29 Feb 2012 22:19:29 -0500 (EST)
From: Rick Macklem <rmacklem@uoguelph.ca>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Message-ID: <1905280883.158966.1330571969767.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <E4E41A35-7742-4185-9F78-079F14B5FAFE@netapp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [172.17.91.202]
X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Linux)/6.0.10_GA_2692)
Cc: eshel <eshel@almaden.ibm.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 03:19:38 -0000

Trond Myklebust wrote:
> On Feb 29, 2012, at 6:47 PM, Rick Macklem wrote:
> 
> > Trond Myklebust wrote:
> >> On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> >>>> Previously what we discussed was the last CLOSE for the
> >>>> file/client
> >>> pair.
> >>>
> >>>
> >>> OK, but the proposed text you supplied is not clear on that point.
> >>>
> >>>
> >>>> That said, I'm not sure about multiple filehandles representing
> >>>> the
> >>> same file.
> >>>
> >>> Another issue that needs to be clarified in the text.
> >>
> >> We should do the same as we do for other state: LAYOUTs for
> >> different
> >> filehandles should be represented by different stateids and should
> >> not
> >> be combined.
> >>
> >> IOW: since you can't choose to CLOSE the file using either
> >> filehandle,
> >> but MUST use the filehandle that you received when you did the
> >> OPEN, I
> >> suggest that we extend that principle to layouts too.
> >>
> > Isn't it also possible to have multiple OPENs for the same FH, but
> > different open_owner4's?
> >
> > (Just fyi, this doesn't affect the FreeBSD
> > client much, since it holds onto all OPENs for a given FH until all
> > of the file descriptors are closed and the CLOSEes them all at the
> > same time. As such, the layout can be returned at that time, if any
> > case of return_on_closed == true has been received for the layout.)
> 
> Yes, the fact that you can have several open_owners for the same
> filehandle does affect the 'last closer' issue. I'm not denying that
> is a complication, however I believe that the multiple filehandles
> issue is easily solvable thanks to the precedent that we already have
> for all the other existing state (open/lock state and delegation
> state).
> 
If I understand you, I think we agree. Above you state that different
FHs have different stateids and shouldn't be combined. To me, that sounds
like you are saying that the different FHs for the same file shouldn't
be handled as the same one.

Did I get that correct? rick


From Trond.Myklebust@netapp.com  Wed Feb 29 19:51:17 2012
Return-Path: <Trond.Myklebust@netapp.com>
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 11FFD21F85A2 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 19:51:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.555
X-Spam-Level: 
X-Spam-Status: No, score=-10.555 tagged_above=-999 required=5 tests=[AWL=0.044, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QTdezfiEr667 for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 19:51:16 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 7EB5E21F85A0 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 19:51:16 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.73,507,1325491200"; d="scan'208";a="629695209"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 29 Feb 2012 19:51:15 -0800
Received: from vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id q213pFZl012128; Wed, 29 Feb 2012 19:51:15 -0800 (PST)
Received: from SACEXCMBX04-PRD.hq.netapp.com ([169.254.6.92]) by vmwexceht03-prd.hq.netapp.com ([10.106.76.241]) with mapi id 14.02.0247.003; Wed, 29 Feb 2012 19:51:15 -0800
From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
To: Rick Macklem <rmacklem@uoguelph.ca>
Thread-Topic: [nfsv4] layout return - final update ?
Thread-Index: AQHM9yifuRsaW4LVyUW3SmyU9Cgw+pZVEOQAgAA6DwCAAAERgP//gsP4
Date: Thu, 1 Mar 2012 03:51:14 +0000
Message-ID: <nh3tcwfk7sekyexrfpm42y7a.1330573866890@email.android.com>
References: <E4E41A35-7742-4185-9F78-079F14B5FAFE@netapp.com>, <1905280883.158966.1330571969767.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <1905280883.158966.1330571969767.JavaMail.root@erie.cs.uoguelph.ca>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: Marc Eshel <eshel@almaden.ibm.com>, nfsv4 <nfsv4@ietf.org>
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 03:51:17 -0000

ACK. :-)

Rick Macklem <rmacklem@uoguelph.ca> wrote:


Trond Myklebust wrote:
> On Feb 29, 2012, at 6:47 PM, Rick Macklem wrote:
>
> > Trond Myklebust wrote:
> >> On Wed, 2012-02-29 at 15:30 -0500, david.noveck@emc.com wrote:
> >>>> Previously what we discussed was the last CLOSE for the
> >>>> file/client
> >>> pair.
> >>>
> >>>
> >>> OK, but the proposed text you supplied is not clear on that point.
> >>>
> >>>
> >>>> That said, I'm not sure about multiple filehandles representing
> >>>> the
> >>> same file.
> >>>
> >>> Another issue that needs to be clarified in the text.
> >>
> >> We should do the same as we do for other state: LAYOUTs for
> >> different
> >> filehandles should be represented by different stateids and should
> >> not
> >> be combined.
> >>
> >> IOW: since you can't choose to CLOSE the file using either
> >> filehandle,
> >> but MUST use the filehandle that you received when you did the
> >> OPEN, I
> >> suggest that we extend that principle to layouts too.
> >>
> > Isn't it also possible to have multiple OPENs for the same FH, but
> > different open_owner4's?
> >
> > (Just fyi, this doesn't affect the FreeBSD
> > client much, since it holds onto all OPENs for a given FH until all
> > of the file descriptors are closed and the CLOSEes them all at the
> > same time. As such, the layout can be returned at that time, if any
> > case of return_on_closed =3D=3D true has been received for the layout.)
>
> Yes, the fact that you can have several open_owners for the same
> filehandle does affect the 'last closer' issue. I'm not denying that
> is a complication, however I believe that the multiple filehandles
> issue is easily solvable thanks to the precedent that we already have
> for all the other existing state (open/lock state and delegation
> state).
>
If I understand you, I think we agree. Above you state that different
FHs have different stateids and shouldn't be combined. To me, that sounds
like you are saying that the different FHs for the same file shouldn't
be handled as the same one.

Did I get that correct? rick


From bhalevy@tonian.com  Wed Feb 29 21:01:21 2012
Return-Path: <bhalevy@tonian.com>
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 766B421E802B for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 21:01:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.288
X-Spam-Level: 
X-Spam-Status: No, score=-3.288 tagged_above=-999 required=5 tests=[AWL=0.312,  BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C3gbLYOqb0bG for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 21:01:20 -0800 (PST)
Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by ietfa.amsl.com (Postfix) with ESMTP id E728721E8017 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 21:01:19 -0800 (PST)
Received: by eeke51 with SMTP id e51so47849eek.31 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 21:01:19 -0800 (PST)
Received-SPF: pass (google.com: domain of bhalevy@tonian.com designates 10.14.95.141 as permitted sender) client-ip=10.14.95.141; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of bhalevy@tonian.com designates 10.14.95.141 as permitted sender) smtp.mail=bhalevy@tonian.com
Received: from mr.google.com ([10.14.95.141]) by 10.14.95.141 with SMTP id p13mr1984984eef.73.1330578079077 (num_hops = 1); Wed, 29 Feb 2012 21:01:19 -0800 (PST)
Received: by 10.14.95.141 with SMTP id p13mr1547732eef.73.1330578078858; Wed, 29 Feb 2012 21:01:18 -0800 (PST)
Received: from bhalevy-lt.tonian.com ([109.160.176.211]) by mx.google.com with ESMTPS id s48sm2895396eem.0.2012.02.29.21.01.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Feb 2012 21:01:18 -0800 (PST)
Message-ID: <4F4F029B.2070405@tonian.com>
Date: Thu, 01 Mar 2012 07:01:15 +0200
From: Benny Halevy <bhalevy@tonian.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
MIME-Version: 1.0
To: david.noveck@emc.com
References: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com> <5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com> <CAEMWVhtcmVdgRH3w7R=87B3v8WKjcx-w1HNdPT05gFN+72xmRw@mail.gmail.com> <5DEA8DB993B81040A21CF3CB332489F6B302886B@MX31A.corp.emc.com>
In-Reply-To: <5DEA8DB993B81040A21CF3CB332489F6B302886B@MX31A.corp.emc.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQkKaoAMVWW8SraS2RI0n9Dh2owBfeH3hmtuljqqxr2be42hm8PUZOdVV1RLmA/Xp3C5mnUU
Cc: eshel@almaden.ibm.com, nfsv4@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 05:01:21 -0000

On 2012-02-29 22:30, david.noveck@emc.com wrote:
> *> Previously what we discussed was the last CLOSE for the file/client pair.*
> 
> OK, but the proposed text you supplied is not clear on that point.
> 
> 
> *> That said, I'm not sure about multiple filehandles representing the same file.*
> 
> Another issue that needs to be clarified in the text.
> 

Yeah.  Sorry for bringing that up ;-)
Anyhow, given that all layout operations, as well as CLOSE, are done on a filehandle
we can safely refer to the filehandle as representing the file.  Different filehandle
may represent the same inode (fsid:fileid) on the server but they'll be associated
with separate layout states.

> *> This approach seems valid but it complicates the case of layouts not marked as return_on_close that survived a previous last CLOSE as these will not be affected now.*
> 
> If we are talking about layout not marked return-on-close that were sent before the first return-on-close layout, then I think that the text you proposed is exactly the same in this respect.  Or am I missing something here?
> 
> 
> *> Since we are talking about losing the layout on the last CLOSE from the client of that file a catch all approach would be simpler.*
> 
> I'm not sure that that is so.  First of all, it is very natural/required for clients and servers to have data structures representing open files, and linking return-on-close layout  to these seems relatively straightforward.  on the other hand, I would not expect clients and servers to always have an infrastructure to keep track of client/fh or client/file pairs and thus always be able to see when a last close is being done.  To top it all off, you may have racing closes so last-close-at-issue may not be the same as last-close-at-receipt.  Also closes and opens can race.  Those sorts of considerations led to me thinking associating a layout with a specific open file was simpler or at least it made my head hurt less. 

The root problem is that the layout stateid is not tied to any specific open stateid.
We require the client to first OPEN the filehandle to get the first layout stateid but from then on
the layout stateid is independent and layout operations affect it regardless of any OPENs and CLOSEs
on that filehandle.

Benny

> 
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
> *From:* Benny Halevy [mailto:bhalevy@tonian.com]
> *Sent:* Wednesday, February 29, 2012 2:07 PM
> *To:* Noveck, David
> *Cc:* eshel@almaden.ibm.com; nfsv4@ietf.org
> *Subject:* Re: [nfsv4] layout return - final update ?
> 
> 
> On Feb 29, 2012 1:47 AM, <david.noveck@emc.com <mailto:david.noveck@emc.com>> wrote:
>>
>> The last few sentences seem to be written assuming that that three will be only one
>> open file per fh/client pair.  It seem that it says that if owner A opens a file and
>> Gets some layouts, then of owner B opens the same file then all the layout he gets should be
>> marked logr_return_on_close.  Is that what is intended?
> 
> I believe so.
> 
> And if so, when should
>> these be invalidated.  On the first close, which the text seems to suggest?
> 
> Previously what we discussed was the last CLOSE for the file/client pair.
> That said, I'm not sure about multiple filehandles representing the same file.
> 
> I think the
>> right direction, not having thought about it terribly much, is that logr_return_on_close
>> layouts are open-file-associated and if that is something that you can agree with, you
>> would b better off if the text said that explicitly.
> 
> This approach seems valid but it complicates the case of layouts not marked as return_on_close that survived a previous last CLOSE as these will not be affected now.
> Since we are talking about losing the layout on the last CLOSE from the client of that file a catch all approach would be simpler.
> 
> Benny
> 
>>
>> -----Original Message-----
>> From: nfsv4-bounces@ietf.org <mailto:nfsv4-bounces@ietf.org> [mailto:nfsv4-bounces@ietf.org <mailto:nfsv4-bounces@ietf.org>] On Behalf Of Marc Eshel
>> Sent: Tuesday, February 28, 2012 4:39 PM
>> To: NFSv4
>> Subject: [nfsv4] layout return - final update ?
>>
>> Hopefully the final correction to the logr_return_on_close result field in
>>
>>
>> 18.43.3 that should go into v4.1 errata.
>> Marc.
>>
>> section 18.43.3 say:
>>
>> The logr_return_on_close result field is a directive to return the layout
>> before closing the file.  When the metadata server sets this  return value
>> to TRUE, it MUST be prepared to recall the layout in the case in which the
>> client fails to return the layout before close.  For the metadata server
>> that knows a layout must be returned before a close of the file, this
>> return value can be used to communicate the desired behavior to the client
>> and thus remove one extra step from the client's and metadata server's
>> interaction.
>>
>> it should say:
>>
>> The logr_return_on_close result field is a directive to return or forget
>> the layout before closing the file . When the metadata server sets this
>> return value to TRUE, the client MUST NOT use the layout after sending
>> the last CLOSE of that file. Any outstanding COMMIT to the data servers
>> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
>> file. This return value is used to communicate to the client that any
>> layout or segment of a layout that were given with logr_return_on_close
>> set to TRUE will result in the server invalidating all layouts of
>> layouttype4 of loga_layout_type for the file after it was closed. Once
>> the server returns logr_return_on_close set to TRUE to a client for a
>> given file it MUST set logr_return_on_close to TRUE for all subsequent
>> layouts or segments of layoutype4 of the respective loga_layout_type for
>> that file and client until that file is closed.
>>
>> Notes:
>>
>> This directive will remove one or more extra steps from the client's and
>> metadata server's interaction.
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
>>
>>
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4

From eshel@almaden.ibm.com  Wed Feb 29 22:00:10 2012
Return-Path: <eshel@almaden.ibm.com>
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 3377921E802F for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 22:00:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level: 
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q6eEkXfeF37C for <nfsv4@ietfa.amsl.com>; Wed, 29 Feb 2012 22:00:05 -0800 (PST)
Received: from e5.ny.us.ibm.com (e5.ny.us.ibm.com [32.97.182.145]) by ietfa.amsl.com (Postfix) with ESMTP id 0B15821E8012 for <nfsv4@ietf.org>; Wed, 29 Feb 2012 22:00:04 -0800 (PST)
Received: from /spool/local by e5.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <eshel@almaden.ibm.com>; Thu, 1 Mar 2012 01:00:03 -0500
Received: from d01dlp01.pok.ibm.com (9.56.224.56) by e5.ny.us.ibm.com (192.168.1.105) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted;  Thu, 1 Mar 2012 00:59:38 -0500
Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 2C60738C8052; Thu,  1 Mar 2012 00:59:38 -0500 (EST)
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q215xccV298810; Thu, 1 Mar 2012 00:59:38 -0500
Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q215xbUa028979; Thu, 1 Mar 2012 00:59:37 -0500
Received: from d01ml604.pok.ibm.com (d01ml604.pok.ibm.com [9.56.227.90]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q215xbXG028972; Thu, 1 Mar 2012 00:59:37 -0500
In-Reply-To: <4F4F029B.2070405@tonian.com>
References: <OFC743E4B9.5CFDEC23-ON882579B2.00762A89-882579B2.0076F528@us.ibm.com>	<5DEA8DB993B81040A21CF3CB332489F6B30286E8@MX31A.corp.emc.com> <CAEMWVhtcmVdgRH3w7R=87B3v8WKjcx-w1HNdPT05gFN+72xmRw@mail.gmail.com>	<5DEA8DB993B81040A21CF3CB332489F6B302886B@MX31A.corp.emc.com> <4F4F029B.2070405@tonian.com>
To: Benny Halevy <bhalevy@tonian.com>
MIME-Version: 1.0
X-KeepSent: E72DB420:9A2B2A6A-882579B4:001C5CF7; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008
Message-ID: <OFE72DB420.9A2B2A6A-ON882579B4.001C5CF7-882579B4.0020E435@us.ibm.com>
From: Marc Eshel <eshel@almaden.ibm.com>
Date: Wed, 29 Feb 2012 21:59:22 -0800
X-MIMETrack: Serialize by Router on D01ML604/01/M/IBM(Release 8.5.3HF266 | January 13, 2012) at 03/01/2012 00:59:36, Serialize complete at 03/01/2012 00:59:36
Content-Type: text/plain; charset="US-ASCII"
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 12030105-5930-0000-0000-000005B0E2B8
Cc: nfsv4@ietf.org, nfsv4-bounces@ietf.org
Subject: Re: [nfsv4] layout return - final update ?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
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: <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: Thu, 01 Mar 2012 06:00:10 -0000

>From my server point of view either options are fine I am just trying to 
make as many of you happy which is very tricky. So let me try again. What 
I think most people agree on is the last statement by Benny. Given that 
all layout operations, as well as CLOSE, are done on a fh we can safely 
refer to the fh as representing the file. So all the rules regarding 
return-on-close refer to (fh, client).
If I don't hear more objection I will try to write it into the text and 
probably trigger some other issue :)
Marc.



From:
Benny Halevy <bhalevy@tonian.com>
To:
david.noveck@emc.com
Cc:
eshel@almaden.ibm.com, nfsv4@ietf.org
Date:
02/29/2012 09:01 PM
Subject:
Re: [nfsv4] layout return - final update ?
Sent by:
nfsv4-bounces@ietf.org



On 2012-02-29 22:30, david.noveck@emc.com wrote:
> *> Previously what we discussed was the last CLOSE for the file/client 
pair.*
> 
> OK, but the proposed text you supplied is not clear on that point.
> 
> 
> *> That said, I'm not sure about multiple filehandles representing the 
same file.*
> 
> Another issue that needs to be clarified in the text.
> 

Yeah.  Sorry for bringing that up ;-)
Anyhow, given that all layout operations, as well as CLOSE, are done on a 
filehandle
we can safely refer to the filehandle as representing the file.  Different 
filehandle
may represent the same inode (fsid:fileid) on the server but they'll be 
associated
with separate layout states.

> *> This approach seems valid but it complicates the case of layouts not 
marked as return_on_close that survived a previous last CLOSE as these 
will not be affected now.*
> 
> If we are talking about layout not marked return-on-close that were sent 
before the first return-on-close layout, then I think that the text you 
proposed is exactly the same in this respect.  Or am I missing something 
here?
> 
> 
> *> Since we are talking about losing the layout on the last CLOSE from 
the client of that file a catch all approach would be simpler.*
> 
> I'm not sure that that is so.  First of all, it is very natural/required 
for clients and servers to have data structures representing open files, 
and linking return-on-close layout  to these seems relatively 
straightforward.  on the other hand, I would not expect clients and 
servers to always have an infrastructure to keep track of client/fh or 
client/file pairs and thus always be able to see when a last close is 
being done.  To top it all off, you may have racing closes so 
last-close-at-issue may not be the same as last-close-at-receipt.  Also 
closes and opens can race.  Those sorts of considerations led to me 
thinking associating a layout with a specific open file was simpler or at 
least it made my head hurt less. 

The root problem is that the layout stateid is not tied to any specific 
open stateid.
We require the client to first OPEN the filehandle to get the first layout 
stateid but from then on
the layout stateid is independent and layout operations affect it 
regardless of any OPENs and CLOSEs
on that filehandle.

Benny

> 
> 
> 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
> *From:* Benny Halevy [mailto:bhalevy@tonian.com]
> *Sent:* Wednesday, February 29, 2012 2:07 PM
> *To:* Noveck, David
> *Cc:* eshel@almaden.ibm.com; nfsv4@ietf.org
> *Subject:* Re: [nfsv4] layout return - final update ?
> 
> 
> On Feb 29, 2012 1:47 AM, <david.noveck@emc.com <
mailto:david.noveck@emc.com>> wrote:
>>
>> The last few sentences seem to be written assuming that that three will 
be only one
>> open file per fh/client pair.  It seem that it says that if owner A 
opens a file and
>> Gets some layouts, then of owner B opens the same file then all the 
layout he gets should be
>> marked logr_return_on_close.  Is that what is intended?
> 
> I believe so.
> 
> And if so, when should
>> these be invalidated.  On the first close, which the text seems to 
suggest?
> 
> Previously what we discussed was the last CLOSE for the file/client 
pair.
> That said, I'm not sure about multiple filehandles representing the same 
file.
> 
> I think the
>> right direction, not having thought about it terribly much, is that 
logr_return_on_close
>> layouts are open-file-associated and if that is something that you can 
agree with, you
>> would b better off if the text said that explicitly.
> 
> This approach seems valid but it complicates the case of layouts not 
marked as return_on_close that survived a previous last CLOSE as these 
will not be affected now.
> Since we are talking about losing the layout on the last CLOSE from the 
client of that file a catch all approach would be simpler.
> 
> Benny
> 
>>
>> -----Original Message-----
>> From: nfsv4-bounces@ietf.org <mailto:nfsv4-bounces@ietf.org> [
mailto:nfsv4-bounces@ietf.org <mailto:nfsv4-bounces@ietf.org>] On Behalf 
Of Marc Eshel
>> Sent: Tuesday, February 28, 2012 4:39 PM
>> To: NFSv4
>> Subject: [nfsv4] layout return - final update ?
>>
>> Hopefully the final correction to the logr_return_on_close result field 
in
>>
>>
>> 18.43.3 that should go into v4.1 errata.
>> Marc.
>>
>> section 18.43.3 say:
>>
>> The logr_return_on_close result field is a directive to return the 
layout
>> before closing the file.  When the metadata server sets this  return 
value
>> to TRUE, it MUST be prepared to recall the layout in the case in which 
the
>> client fails to return the layout before close.  For the metadata 
server
>> that knows a layout must be returned before a close of the file, this
>> return value can be used to communicate the desired behavior to the 
client
>> and thus remove one extra step from the client's and metadata server's
>> interaction.
>>
>> it should say:
>>
>> The logr_return_on_close result field is a directive to return or 
forget
>> the layout before closing the file . When the metadata server sets this
>> return value to TRUE, the client MUST NOT use the layout after sending
>> the last CLOSE of that file. Any outstanding COMMIT to the data servers
>> or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing 
the
>> file. This return value is used to communicate to the client that any
>> layout or segment of a layout that were given with logr_return_on_close
>> set to TRUE will result in the server invalidating all layouts of
>> layouttype4 of loga_layout_type for the file after it was closed. Once
>> the server returns logr_return_on_close set to TRUE to a client for a
>> given file it MUST set logr_return_on_close to TRUE for all subsequent
>> layouts or segments of layoutype4 of the respective loga_layout_type 
for
>> that file and client until that file is closed.
>>
>> Notes:
>>
>> This directive will remove one or more extra steps from the client's 
and
>> metadata server's interaction.
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
>>
>>
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
>>
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org <mailto:nfsv4@ietf.org>
>> https://www.ietf.org/mailman/listinfo/nfsv4
> 
> 
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www.ietf.org/mailman/listinfo/nfsv4




