From exim@www1.ietf.org  Fri Apr  2 00:01:33 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA09369
	for <nfsv4-archive@odin.ietf.org>; Fri, 2 Apr 2004 00:01:33 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9Dz6-0000uv-0E
	for nfsv4-archive@odin.ietf.org; Thu, 01 Apr 2004 21:00:40 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3220dhv003521
	for nfsv4-archive@odin.ietf.org; Thu, 1 Apr 2004 21:00:39 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9CJs-0006Z3-UH
	for nfsv4-web-archive@optimus.ietf.org; Thu, 01 Apr 2004 19:14:00 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA12506
	for <nfsv4-web-archive@ietf.org>; Thu, 1 Apr 2004 19:13:57 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9CJr-0007cq-00
	for nfsv4-web-archive@ietf.org; Thu, 01 Apr 2004 19:13:59 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9CIi-0007NK-00
	for nfsv4-web-archive@ietf.org; Thu, 01 Apr 2004 19:12:49 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9CHc-00079m-00
	for nfsv4-web-archive@ietf.org; Thu, 01 Apr 2004 19:11:40 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B99eg-0002AY-NU
	for nfsv4-web-archive@ietf.org; Thu, 01 Apr 2004 16:23:18 -0500
Date: Thu, 01 Apr 2004 11:23:46 -0500
Message-ID: <20040401162346.11029.33673.Mailman@www1.ietf.org>
Subject: ietf.org mailing list memberships reminder
From: mailman-owner@www1.ietf.org
To: nfsv4-web-archive@ietf.org
X-No-Archive: yes
X-Ack: no
Sender: mailman-admin@ietf.org
Errors-To: mailman-admin@ietf.org
X-BeenThere: mailman@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,DATE_IN_PAST_03_06,
	NO_REAL_NAME autolearn=no version=2.60

This is a reminder, sent out once a month, about your ietf.org mailing
list memberships.  It includes your subscription info and how to use
it to change it or unsubscribe from a list.

You can visit the URLs to change your membership status or
configuration, including unsubscribing, setting digest-style delivery
or disabling delivery altogether (e.g., for a vacation), and so on.

In addition to the URL interfaces, you can also use email to make such
changes.  For more info, send a message to the '-request' address of
the list (for example, nfsv4-request@ietf.org) containing just the
word 'help' in the message body, and an email message will be sent to
you with instructions.

***************************************************************************


                              Note Well

All statements related to the activities of the IETF and addressed to
the IETF are subject to all provisions of Section 10 of RFC 2026,
which grants to the IETF and its participants certain licenses and
rights in such statements. Such statements include verbal statements
in IETF meetings, as well as written and electronic communications
made at any time or place, which are addressed to

        * the IETF plenary session,
        * any IETF working group or portion thereof,
        * the IESG, or any member thereof on behalf of the IESG,
        * the IAB or any member thereof on behalf of the IAB,
        * any IETF mailing list, including the IETF list itself, any
working
            group or design team list, or any other list functioning
under IETF
            auspices,
        * the RFC Editor or the Internet-Drafts function

Statements made outside of an IETF meeting, mailing list or other
function, that are clearly not intended to be input to an IETF
activity, group or function, are not subject to these provisions.

   
***************************************************************************


If you have questions, problems, comments, etc, send them to
mailman-owner@www1.ietf.org.  Thanks!

Passwords for nfsv4-web-archive@ietf.org:

List                                     Password // URL
----                                     --------  
nfsv4@ietf.org                           maabit    
https://www1.ietf.org/mailman/options/nfsv4/nfsv4-web-archive%40ietf.org



From exim@www1.ietf.org  Fri Apr  2 16:27:47 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA01324
	for <nfsv4-archive@odin.ietf.org>; Fri, 2 Apr 2004 16:27:47 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9WC7-00009C-HQ
	for nfsv4-archive@odin.ietf.org; Fri, 02 Apr 2004 16:27:19 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i32LRJim000565
	for nfsv4-archive@odin.ietf.org; Fri, 2 Apr 2004 16:27:19 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9WC7-00008p-AB
	for nfsv4-web-archive@optimus.ietf.org; Fri, 02 Apr 2004 16:27:19 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA01228
	for <nfsv4-web-archive@ietf.org>; Fri, 2 Apr 2004 16:27:16 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9WC5-0004MT-00
	for nfsv4-web-archive@ietf.org; Fri, 02 Apr 2004 16:27:17 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9WB0-0004Aa-00
	for nfsv4-web-archive@ietf.org; Fri, 02 Apr 2004 16:26:11 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9WA0-0003zf-00
	for nfsv4-web-archive@ietf.org; Fri, 02 Apr 2004 16:25:08 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9W9w-0007pU-7P; Fri, 02 Apr 2004 16:25:04 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9T6N-0003Np-Q0
	for nfsv4@optimus.ietf.org; Fri, 02 Apr 2004 13:09:11 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA21441
	for <nfsv4@ietf.org>; Fri, 2 Apr 2004 13:09:10 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9T6L-0006u2-00
	for nfsv4@ietf.org; Fri, 02 Apr 2004 13:09:09 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9T5R-0006mi-00
	for nfsv4@ietf.org; Fri, 02 Apr 2004 13:08:13 -0500
Received: from dsl093-002-214.det1.dsl.speakeasy.net
	([66.93.2.214] helo=pumpkin.fieldses.org ident=Debian-exim)
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9T54-0006eZ-00
	for nfsv4@ietf.org; Fri, 02 Apr 2004 13:07:50 -0500
Received: from bfields by pumpkin.fieldses.org with local (Exim 4.30)
	id 1B9T4y-0005bO-GQ; Fri, 02 Apr 2004 13:07:44 -0500
To: Yamini Shastry <yamini@medusalabs.com>
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] NFSV4
Message-ID: <20040402180744.GE21015@fieldses.org>
References: <001901c4168f$26c9cbb0$0a0a160a@medusalabs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <001901c4168f$26c9cbb0$0a0a160a@medusalabs.com>
User-Agent: Mutt/1.5.5.1+cvs20040105i
From: "J. Bruce Fields" <bfields@fieldses.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Fri, 2 Apr 2004 13:07:44 -0500
Date: Fri, 2 Apr 2004 13:07:44 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60

On Tue, Mar 30, 2004 at 01:42:35PM -0600, Yamini Shastry wrote:
> I am trying to get the NFS v4 working for Linux 2.4 kernels. I downloaded
> the rpm from
>  
> http://www.citi.umich.edu/projects/nfsv4/2.4-nfsv4/release1/kernel-2.4.18-18
> .nfsv4.src.rpm

This is no longer maintained; please see

http://www.citi.umich.edu/projects/nfsv4/linux/

for our 2.6 code.

--Bruce Fields

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



From exim@www1.ietf.org  Fri Apr  2 17:07:06 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA06367
	for <nfsv4-archive@odin.ietf.org>; Fri, 2 Apr 2004 17:07:06 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9Vr7-0002Gw-MX
	for nfsv4-archive@odin.ietf.org; Fri, 02 Apr 2004 16:05:38 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i32L5bFW008730
	for nfsv4-archive@odin.ietf.org; Fri, 2 Apr 2004 16:05:37 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9SJx-0007hi-Ov
	for nfsv4-web-archive@optimus.ietf.org; Fri, 02 Apr 2004 12:19:09 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA19621
	for <nfsv4-web-archive@ietf.org>; Fri, 2 Apr 2004 12:19:06 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9SJw-0000FU-00
	for nfsv4-web-archive@ietf.org; Fri, 02 Apr 2004 12:19:08 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9SIz-000039-00
	for nfsv4-web-archive@ietf.org; Fri, 02 Apr 2004 12:18:10 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9SI4-0007cB-00
	for nfsv4-web-archive@ietf.org; Fri, 02 Apr 2004 12:17:12 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9QRh-0003vl-EU; Fri, 02 Apr 2004 10:19:01 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B8PAz-0007MT-6G
	for nfsv4@optimus.ietf.org; Tue, 30 Mar 2004 14:45:33 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA06606
	for <nfsv4@ietf.org>; Tue, 30 Mar 2004 14:45:29 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B8PAw-0006WY-00
	for nfsv4@ietf.org; Tue, 30 Mar 2004 14:45:30 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B8PA0-0006O7-00
	for nfsv4@ietf.org; Tue, 30 Mar 2004 14:44:33 -0500
Received: from [12.145.1.12] (helo=medusalabs.com)
	by ietf-mx with smtp (Exim 4.12)
	id 1B8P9C-00067r-00
	for nfsv4@ietf.org; Tue, 30 Mar 2004 14:43:42 -0500
Received: from madcow ([10.22.10.10])
	by medusalabs.com (medusalabs.com [12.145.1.12])
	(MDaemon.PRO.v7.0.0.R)
	with ESMTP id md50000004662.msg
	for <nfsv4@ietf.org>; Tue, 30 Mar 2004 13:42:37 -0600
From: "Yamini Shastry" <yamini@medusalabs.com>
To: <nfsv4@ietf.org>
Message-ID: <001901c4168f$26c9cbb0$0a0a160a@medusalabs.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_001A_01C4165C.DC2F5BB0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Spam-Processed: medusalabs.com, Tue, 30 Mar 2004 13:42:37 -0600
	(not processed: message from valid local sender)
X-MDRemoteIP: 10.22.10.10
X-Return-Path: yamini@medusalabs.com
X-MDaemon-Deliver-To: nfsv4@ietf.org
X-MDAV-Processed: medusalabs.com, Tue, 30 Mar 2004 13:42:40 -0600
Subject: [nfsv4] NFSV4
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 30 Mar 2004 13:42:35 -0600
Date: Tue, 30 Mar 2004 13:42:35 -0600
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,HTML_60_70,HTML_MESSAGE 
	autolearn=no version=2.60

This is a multi-part message in MIME format.


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

Hello,

=20

I am trying to get the NFS v4 working for Linux 2.4 kernels. I =
downloaded
the rpm from

=20
http://www.citi.umich.edu/projects/nfsv4/2.4-nfsv4/release1/kernel-2.4.18=
-18
.nfsv4.src.rpm

=20

This seems to contain a lot of patches and a kernel image. I am not able =
to
figure out which patches to apply. Any help would be appreciated??

=20

Thanks,

Yamini


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

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I am trying to get the NFS v4 working for Linux 2.4 =
kernels.
I downloaded the rpm from</span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><a
href=3D"http://www.citi.umich.edu/projects/nfsv4/2.4-nfsv4/release1/kerne=
l-2.4.18-18.nfsv4.src.rpm">http://www.citi.umich.edu/projects/nfsv4/2.4-n=
fsv4/release1/kernel-2.4.18-18.nfsv4.src.rpm</a></span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>This seems to contain a lot of patches and a kernel =
image. I
am not able to figure out which patches to apply. Any help would be
appreciated??</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Yamini</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_001A_01C4165C.DC2F5BB0--


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



From exim@www1.ietf.org  Sat Apr  3 13:42:27 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA29345
	for <nfsv4-archive@odin.ietf.org>; Sat, 3 Apr 2004 13:42:27 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9q5f-0006QN-L4
	for nfsv4-archive@odin.ietf.org; Sat, 03 Apr 2004 13:41:59 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i33IfxlZ024696
	for nfsv4-archive@odin.ietf.org; Sat, 3 Apr 2004 13:41:59 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9q5f-0006QF-D7
	for nfsv4-web-archive@optimus.ietf.org; Sat, 03 Apr 2004 13:41:59 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA29330
	for <nfsv4-web-archive@ietf.org>; Sat, 3 Apr 2004 13:41:56 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9q5d-0003Sy-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 13:41:57 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9q4g-0003MW-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 13:40:59 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9q3p-0003GZ-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 13:40:05 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9q3m-0005xa-7G; Sat, 03 Apr 2004 13:40:02 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9q3h-0005vD-Oo
	for nfsv4@optimus.ietf.org; Sat, 03 Apr 2004 13:39:57 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA29292
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 13:39:55 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9q3f-0003FF-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 13:39:55 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9q2i-000389-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 13:38:57 -0500
Received: from e33.co.us.ibm.com ([32.97.110.131])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9q1n-0002w3-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 13:37:59 -0500
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i33IbT5r108150
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 13:37:29 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i33IbSMn092778
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 11:37:28 -0700
Importance: High
To: nfsv4@ietf.org
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF5DE82446.FEC00783-ON87256E6B.005E98ED-88256E6B.00664B51@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/03/2004 11:37:28,
	Serialize complete at 04/03/2004 11:37:28
Content-Type: multipart/alternative; boundary="=_alternative 00664B4888256E6B_="
Subject: [nfsv4] Open establishing new Lease Periods
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 3 Apr 2004 10:37:25 -0800
Date: Sat, 3 Apr 2004 10:37:25 -0800
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,HTML_20_30,
	HTML_FONTCOLOR_UNKNOWN,HTML_MESSAGE autolearn=no version=2.60

This is a multipart message in MIME format.
--=_alternative 00664B4888256E6B_=
Content-Type: text/plain; charset="US-ASCII"

I wish to verify the following conclusion.

RFC References:

14.2.34  "SETCLIENTID_CONFIRM does not establish or renew a lease." 

8.1.2  Server Release of Clientid "If the server determines that the 
client holds no associated state for its clientid, the server may choose 
to release the clientid.. It should be clear that the server must be very 
hesitant to release a clientid since the resulting work on the client....  
 Typically a server would not release a clientid unless there had been no 
activity from that client for many minutes." 

Conclusion:

  o   I did not find a mention in the RFC which ties "state" to clientid. 
        Mostly "state" is always in reference to opens or locks. 
  o   The clientid may be used to establish a new lease period 
        after the previous lease has timed out, except for next bullet
  o   If the prior lease has timed out AND held state has been release, 
        the server must fail the open with NFS4ERR_STALE_CLIENTID 
        and not establish a new lease period. 

The RFC verbiage above indicates a client does not need to renew a lease 
when "no associated state for its clientid" is held by the server.  e.g. 
RFC section 8.1.2 indicates when there is no state held for a clientid, 
the server may keep the clientid around for establishing new lease periods 
after a prior lease has expired. 

For a provided clientid, OPEN can establish or renew a lease period if 
   o  a lease period has yet to be established for this clientid
        (i.e. clients first OPEN)
   o  the lease for the clientid has not expired
   o  a lease period has not been established, or has expired, and 
        no prior state (share/lock) has been staled for this clientid



Thanks,
Stevan C. Allen

--=_alternative 00664B4888256E6B_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">I wish to verify the following conclusion.</font>
<br>
<br><font size=2 face="sans-serif">RFC References:</font>
<br>
<br><font size=2 face="sans-serif">14.2.34 &nbsp;&quot;SETCLIENTID_CONFIRM
does not <u>establish</u> or renew a lease.&quot; &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">8.1.2 &nbsp;Server Release of Clientid</font><font size=3><tt>
</tt></font><font size=2 face="sans-serif">&quot;If the server determines
that the client holds <u>no associated state for its clientid</u>, the
server <u>may</u> choose to release the clientid.. It should be clear that
the server must be very hesitant to release a clientid since the resulting
work on the client.... &nbsp; &nbsp;Typically a server would not release
a clientid unless there had been no activity from that client for many
minutes.&quot; &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">Conclusion:</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; o &nbsp; I did not find a mention
in the RFC which ties &quot;state&quot; to clientid. &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Mostly
&quot;state&quot; is always in reference to opens or locks. &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; o &nbsp; The clientid may be
used to establish a new lease period </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; after
the previous lease has timed out, except for next bullet</font>
<br><font size=2 face="sans-serif">&nbsp; o &nbsp; If the prior lease has
timed out AND held state has been release, </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; the
server must fail the open with NFS4ERR_STALE_CLIENTID </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; and
not establish a new lease period. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">The RFC verbiage above indicates a client
does not need to renew a lease when &quot;</font><font size=2 color=red face="sans-serif"><u>no
associated state for its clientid</u></font><font size=2 face="sans-serif">&quot;
is held by the server. &nbsp;e.g. RFC section 8.1.2 indicates when there
is no state held for a clientid, the server may keep the clientid around
for establishing new lease periods after a prior lease has expired. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">For a provided clientid, OPEN can establish
or renew a lease period if </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;o &nbsp;a lease period
has yet to be established for this clientid</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; (i.e.
clients first OPEN)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;o &nbsp;the lease for the
clientid has not expired</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;o &nbsp;a lease period
has not been established, or has expired, and </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; no
prior state (share/lock) has been staled for this clientid</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Thanks,<br>
Stevan C. Allen<br>
</font>
--=_alternative 00664B4888256E6B_=--

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



From exim@www1.ietf.org  Sat Apr  3 15:42:32 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA03598
	for <nfsv4-archive@odin.ietf.org>; Sat, 3 Apr 2004 15:42:32 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9rxr-0004ir-Vy
	for nfsv4-archive@odin.ietf.org; Sat, 03 Apr 2004 15:42:04 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i33Kg3mH018146
	for nfsv4-archive@odin.ietf.org; Sat, 3 Apr 2004 15:42:03 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9rxr-0004iH-Gc
	for nfsv4-web-archive@optimus.ietf.org; Sat, 03 Apr 2004 15:42:03 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA03586
	for <nfsv4-web-archive@ietf.org>; Sat, 3 Apr 2004 15:42:01 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9rxq-0001Nx-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 15:42:02 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9rwr-0001Gu-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 15:41:02 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9rvt-0001A2-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 15:40:01 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9rvs-00040d-Ab; Sat, 03 Apr 2004 15:40:00 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9rv2-0003to-6t
	for nfsv4@optimus.ietf.org; Sat, 03 Apr 2004 15:39:08 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA03519
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 15:39:05 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9rv0-00013g-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 15:39:06 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9ru5-0000wx-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 15:38:10 -0500
Received: from e31.co.us.ibm.com ([32.97.110.129])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9rtZ-0000pT-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 15:37:37 -0500
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i33Kb75w121678
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 15:37:07 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i33Kb6Mn061672
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 13:37:06 -0700
Importance: High
In-Reply-To: <OF5DE82446.FEC00783-ON87256E6B.005E98ED-88256E6B.00664B51@us.ibm.com>
To: nfsv4@ietf.org
MIME-Version: 1.0
Subject: Re: [nfsv4] Open establishing new Lease Periods (#2)
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF7E939E2D.5766742D-ON87256E6B.006D99A6-88256E6B.00713F28@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/03/2004 13:37:06,
	Serialize complete at 04/03/2004 13:37:06
Content-Type: multipart/alternative; boundary="=_alternative 00713F2588256E6B_="
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 3 Apr 2004 12:37:03 -0800
Date: Sat, 3 Apr 2004 12:37:03 -0800
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,HTML_20_30,
	HTML_FONTCOLOR_UNKNOWN,HTML_MESSAGE autolearn=no version=2.60

This is a multipart message in MIME format.
--=_alternative 00713F2588256E6B_=
Content-Type: text/plain; charset="US-ASCII"

In addition to (and supersedes) my previous post...

The protocol allows a client which has released all state and let the 
lease expire, may start a new lease period (OPEN) under the same clientid 
(suggested by section 8.1.2 below).

Although the protocol indicates a client only needs to issue renew if the 
server holds state for a clientid (previous note).  The simpler process 
(and I suspect implemented by most) is that the client only initiates one 
lease period per clientid and will continually renew the lease (even if no 
state is held for the clientid by the server) until a stale or expired 
error is received, at which time the client will establish a new clientid 
using SETCLIENTID and _CONFIRM.   It may be simpler to state this is the 
only acceptable implementation.

otherwise.. RENEW may receive NFS4ERR_STALE_CLIENTID if the lease period 
has expired.  This error states a client must issue a new SETCLIENTID & 
CONFIRM.  The only way an second lease period may be started for a given 
clientid after the initial release has timed out is for the client not to 
issue a RENEW (or ignore the stale error) if there is no state held by the 
server for this clientid.  it's getting murky...

Thanks,
Stevan C. Allen

---- previous note ----

I wish to verify the following conclusion. 

RFC References: 

14.2.34  "SETCLIENTID_CONFIRM does not establish or renew a lease."   

8.1.2  Server Release of Clientid: "If the server determines that the 
client holds no associated state for its clientid, the server may choose 
to release the clientid.. It should be clear that the server must be very 
hesitant to release a clientid since the resulting work on the client....  
 Typically a server would not release a clientid unless there had been no 
activity from that client for many minutes."   

Conclusion: 

  o   I did not find a mention in the RFC which ties "state" to clientid.  

        Mostly "state" is always in reference to opens or locks.
  o   After a lease has timed out,   the server may keep the clientid
        and start a new lease period under the existing clientid.
  o   The clientid may be used to establish a new lease period 
        after the previous lease has timed out, except for next bullet 
  o   If the prior lease has timed out AND held state has been release, 
        the server must fail the open with NFS4ERR_STALE_CLIENTID 
        and not establish a new lease period.   

The RFC verbiage above indicates a client does not need to renew a lease 
when "no associated state for its clientid" is held by the server.  e.g. 
RFC section 8.1.2 indicates when there is no state held for a clientid, 
the server may keep the clientid around for establishing new lease periods 
after a prior lease has expired.   

For a provided clientid, OPEN can establish or renew a lease period if 
   o  a lease period has yet to be established for this clientid 
        (i.e. clients first OPEN) 
   o  the lease for the clientid has not expired 
   o  a lease period has not been established, or has expired, and 
        no prior state (share/lock) has been staled for this clientid 



Thanks,
Stevan C. Allen

--=_alternative 00713F2588256E6B_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">In addition to (and supersedes) my previous
post...</font>
<br>
<br><font size=2 face="sans-serif">The protocol allows a client which has
released all state and let the lease expire, may start a new lease period
(OPEN) under the same clientid (suggested by section 8.1.2 below).</font>
<br>
<br><font size=2 face="sans-serif">Although the protocol indicates a client
only needs to issue renew if the server holds state for a clientid (previous
note). &nbsp;The simpler process (and I suspect implemented by most) is
that the client only initiates one lease period per clientid and will continually
renew the lease (even if no state is held for the clientid by the server)
until a stale or expired error is received, at which time the client will
establish a new clientid using SETCLIENTID and _CONFIRM. &nbsp; It may
be simpler to state this is the only acceptable implementation.</font>
<br>
<br><font size=2 face="sans-serif">otherwise.. RENEW may receive NFS4ERR_STALE_CLIENTID
if the lease period has expired. &nbsp;This error states a client must
issue a new SETCLIENTID &amp; CONFIRM. &nbsp;The only way an second lease
period may be started for a given clientid after the initial release has
timed out is for the client not to issue a RENEW (or ignore the stale error)
if there is no state held by the server for this clientid. &nbsp;it's getting
murky...</font>
<br>
<br><font size=2 face="sans-serif">Thanks,<br>
Stevan C. Allen<br>
</font>
<br><font size=2 face="sans-serif">---- previous note ----</font>
<br><font size=2 face="sans-serif"><br>
I wish to verify the following conclusion.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
RFC References:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
14.2.34 &nbsp;&quot;SETCLIENTID_CONFIRM does not <u>establish</u> or renew
a lease.&quot; &nbsp;</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
8.1.2 &nbsp;Server Release of Clientid</font><font size=3><tt>: </tt></font><font size=2 face="sans-serif">&quot;If
the server determines that the client holds <u>no associated state for
its clientid</u>, the server <u>may</u> choose to release the clientid..
It should be clear that the server must be very hesitant to release a clientid
since the resulting work on the client.... &nbsp; &nbsp;Typically a server
would not release a clientid unless there had been no activity from that
client for many minutes.&quot; &nbsp;</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Conclusion:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
 &nbsp;o &nbsp; I did not find a mention in the RFC which ties &quot;state&quot;
to clientid. &nbsp;</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Mostly &quot;state&quot; is always in reference
to opens or locks.</font>
<br><font size=2 face="sans-serif">&nbsp; o &nbsp; After a lease has timed
out, &nbsp;</font><font size=3> </font><font size=2 face="sans-serif">the
server may keep the clientid</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; and start
a new lease period under the existing clientid.<br>
 &nbsp;o &nbsp; The clientid may be used to establish a new lease period
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;after the previous lease has timed out, except
for next bullet</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp;o &nbsp; If the prior lease has timed out AND held state has been
release, <br>
 &nbsp; &nbsp; &nbsp; &nbsp;the server must fail the open with NFS4ERR_STALE_CLIENTID
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;and not establish a new lease period. &nbsp;</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
The RFC verbiage above indicates a client does not need to renew a lease
when &quot;</font><font size=2 color=red face="sans-serif"><u>no associated
state for its clientid</u></font><font size=2 face="sans-serif">&quot;
is held by the server. &nbsp;e.g. RFC section 8.1.2 indicates when there
is no state held for a clientid, the server may keep the clientid around
for establishing new lease periods after a prior lease has expired. &nbsp;</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
For a provided clientid, OPEN can establish or renew a lease period if
<br>
 &nbsp; o &nbsp;a lease period has yet to be established for this clientid</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;(i.e. clients first OPEN)</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 &nbsp; o &nbsp;the lease for the clientid has not expired</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 &nbsp; o &nbsp;a lease period has not been established, or has expired,
and <br>
 &nbsp; &nbsp; &nbsp; &nbsp;no prior state (share/lock) has been staled
for this clientid</font><font size=3> <br>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
Thanks,<br>
Stevan C. Allen</font>
<br>
--=_alternative 00713F2588256E6B_=--

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



From exim@www1.ietf.org  Sat Apr  3 16:36:32 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA06316
	for <nfsv4-archive@odin.ietf.org>; Sat, 3 Apr 2004 16:36:32 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9so8-0006GW-T6
	for nfsv4-archive@odin.ietf.org; Sat, 03 Apr 2004 16:36:05 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i33La4Be024082
	for nfsv4-archive@odin.ietf.org; Sat, 3 Apr 2004 16:36:04 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9so8-0006GL-OK
	for nfsv4-web-archive@optimus.ietf.org; Sat, 03 Apr 2004 16:36:04 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA06281
	for <nfsv4-web-archive@ietf.org>; Sat, 3 Apr 2004 16:36:01 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9so7-0000dy-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 16:36:03 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9sn8-0000WG-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 16:35:04 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9sm9-0000Op-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 16:34:01 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9sm9-000697-6e; Sat, 03 Apr 2004 16:34:01 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9slI-00067J-9p
	for nfsv4@optimus.ietf.org; Sat, 03 Apr 2004 16:33:08 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA06162
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 16:33:05 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9slG-0000I7-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 16:33:06 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9skL-0000BD-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 16:32:11 -0500
Received: from brmea-mail-4.sun.com ([192.18.98.36])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9sjV-00004E-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 16:31:17 -0500
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id i33LUM5Q009193;
	Sat, 3 Apr 2004 14:30:22 -0700 (MST)
Received: from [192.168.0.3] (vpn-129-150-32-91.Central.Sun.COM [129.150.32.91])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i33LVAQ6015234;
	Sat, 3 Apr 2004 13:31:10 -0800 (PST)
In-Reply-To: <OF7E939E2D.5766742D-ON87256E6B.006D99A6-88256E6B.00713F28@us.ibm.com>
References: <OF7E939E2D.5766742D-ON87256E6B.006D99A6-88256E6B.00713F28@us.ibm.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-12--358388998
Message-Id: <965B9E84-85B6-11D8-A16F-000A95DBCB70@sun.com>
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] Open establishing new Lease Periods (#2)
To: Stevan Steve Allen <scallen@us.ibm.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 3 Apr 2004 15:33:46 -0600
Date: Sat, 3 Apr 2004 15:33:46 -0600
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60


--Apple-Mail-12--358388998
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


Steve,

All state associated with a client is "rooted" by the clientid.  The=20
reason for this is that
OPEN takes a clientid and returns stateids for the open file and=20
optionally the
delegation for the file.  The first file lock, takes a stateid returned=20=

from OPEN and
returns a lock stateid, etc.

Note that RENEW uses a clientid to renew all state associated with that=20=

clientid
(all open files, file locks and delegations).

So there is a direct correlation between the clientid and all stateids.

The protocol allows a lot of flexibility for the server to hold state=20
beyond the
defined lease period.  However, there is no minimum time that a=20
clientid be
held active/valid after the SETCLIENTID_CONFIRM has been processed
successfully.  Most servers will hold the clientid for at least one=20
lease period.

To state the obvious, once an active stateid is associated with the=20
clientid,
the server must keep the state active for one lease period; the client=20=

is
required to renew that state within the lease period either explicitly=20=

with
RENEW or by the use of other state bearing operations.  Note that RENEW
must be used if the client has a callback path and holds delegations.
See NFS4ERR_CB_PATH_DOWN for the reason.

You mention the expected behavior by clients in the case that they hold
no state.  For the Solaris client, this is not true.  If there are no=20
open files
or delegations held at a server, the client will cease to RENEW state
with that server.  To the client, the receipt of NFS4ERR_STALE_CLIENTID
and recovery from it is the same regardless of the cause of the=20
condition.
The two most likely causes are network partition or no state held by the
client and RENEWs were not done.  The client will do the SETCLIENTID
dance and then check to see if file need to be reopened and so on.  If=20=

not,
then the original OPEN that started the whole thing will be retried.

If the above has missed a scenarios you are thinking of, please say so
and we can work through them.

Spencer

On Apr 3, 2004, at 2:37 PM, Stevan Steve Allen wrote:

>
> In addition to (and supersedes) my previous post...
>
> The protocol allows a client which has released all state and let the=20=

> lease expire, may start a new lease period (OPEN) under the same=20
> clientid (suggested by section 8.1.2 below).
>
> Although the protocol indicates a client only needs to issue renew if=20=

> the server holds state for a clientid (previous note). =A0The simpler=20=

> process (and I suspect implemented by most) is that the client only=20
> initiates one lease period per clientid and will continually renew the=20=

> lease (even if no state is held for the clientid by the server) until=20=

> a stale or expired error is received, at which time the client will=20
> establish a new clientid using SETCLIENTID and _CONFIRM. =A0 It may be=20=

> simpler to state this is the only acceptable implementation.
>
> otherwise.. RENEW may receive NFS4ERR_STALE_CLIENTID if the lease=20
> period has expired. =A0This error states a client must issue a new=20
> SETCLIENTID & CONFIRM. =A0The only way an second lease period may be=20=

> started for a given clientid after the initial release has timed out=20=

> is for the client not to issue a RENEW (or ignore the stale error) if=20=

> there is no state held by the server for this clientid. =A0it's =
getting=20
> murky...
>
> Thanks,
>  Stevan C. Allen
>
> ---- previous note ----
>
>  I wish to verify the following conclusion.
>
>  RFC References:
>
>  14.2.34 =A0"SETCLIENTID_CONFIRM does not establish or renew a lease." =
=A0
>
>  8.1.2 =A0Server Release of Clientid: "If the server determines that =
the=20
> client holds no associated state for its clientid, the server may=20
> choose to release the clientid.. It should be clear that the server=20
> must be very hesitant to release a clientid since the resulting work=20=

> on the client.... =A0 =A0Typically a server would not release a =
clientid=20
> unless there had been no activity from that client for many minutes."=20=

> =A0
>
>  Conclusion:
>
>  =A0o =A0 I did not find a mention in the RFC which ties "state" to=20
> clientid. =A0
>  =A0 =A0 =A0 =A0Mostly "state" is always in reference to opens or =
locks.
> =A0 o =A0 After a lease has timed out, =A0 the server may keep the =
clientid
> =A0 =A0 =A0 =A0 and start a new lease period under the existing =
clientid.
>  =A0o =A0 The clientid may be used to establish a new lease period
>  =A0 =A0 =A0 =A0after the previous lease has timed out, except for =
next bullet
>  =A0o =A0 If the prior lease has timed out AND held state has been =
release,
>  =A0 =A0 =A0 =A0the server must fail the open with =
NFS4ERR_STALE_CLIENTID
>  =A0 =A0 =A0 =A0and not establish a new lease period. =A0
>
>  The RFC verbiage above indicates a client does not need to renew a=20
> lease when "no associated state for its clientid" is held by the=20
> server. =A0e.g. RFC section 8.1.2 indicates when there is no state =
held=20
> for a clientid, the server may keep the clientid around for=20
> establishing new lease periods after a prior lease has expired. =A0
>
>  For a provided clientid, OPEN can establish or renew a lease period =
if
>  =A0 o =A0a lease period has yet to be established for this clientid
>  =A0 =A0 =A0 =A0(i.e. clients first OPEN)
>  =A0 o =A0the lease for the clientid has not expired
>  =A0 o =A0a lease period has not been established, or has expired, and
>  =A0 =A0 =A0 =A0no prior state (share/lock) has been staled for this =
clientid
>
>
>
>  Thanks,
>  Stevan C. Allen

--Apple-Mail-12--358388998
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



Steve,


All state associated with a client is "rooted" by the clientid.  The
reason for this is that

OPEN takes a clientid and returns stateids for the open file and
optionally the

delegation for the file.  The first file lock, takes a stateid
returned from OPEN and

returns a lock stateid, etc.


Note that RENEW uses a clientid to renew all state associated with
that clientid

(all open files, file locks and delegations).


So there is a direct correlation between the clientid and all stateids.


The protocol allows a lot of flexibility for the server to hold state
beyond the

defined lease period.  However, there is no minimum time that a
clientid be

held active/valid after the SETCLIENTID_CONFIRM has been processed

successfully.  Most servers will hold the clientid for at least one
lease period.


To state the obvious, once an active stateid is associated with the
clientid,

the server must keep the state active for one lease period; the client
is

required to renew that state within the lease period either explicitly
with

RENEW or by the use of other state bearing operations.  Note that RENEW

must be used if the client has a callback path and holds delegations.

See NFS4ERR_CB_PATH_DOWN for the reason.


You mention the expected behavior by clients in the case that they hold

no state.  For the Solaris client, this is not true.  If there are no
open files

or delegations held at a server, the client will cease to RENEW state=20

with that server.  To the client, the receipt of NFS4ERR_STALE_CLIENTID

and recovery from it is the same regardless of the cause of the
condition.

The two most likely causes are network partition or no state held by
the

client and RENEWs were not done.  The client will do the SETCLIENTID

dance and then check to see if file need to be reopened and so on.  If
not,

then the original OPEN that started the whole thing will be retried.


If the above has missed a scenarios you are thinking of, please say so

and we can work through them.


Spencer


On Apr 3, 2004, at 2:37 PM, Stevan Steve Allen wrote:


<excerpt>

<smaller>In addition to (and supersedes) my previous post...</smaller>=20=



<smaller>The protocol allows a client which has released all state and
let the lease expire, may start a new lease period (OPEN) under the
same clientid (suggested by section 8.1.2 below).</smaller>=20


<smaller>Although the protocol indicates a client only needs to issue
renew if the server holds state for a clientid (previous note). =A0The
simpler process (and I suspect implemented by most) is that the client
only initiates one lease period per clientid and will continually
renew the lease (even if no state is held for the clientid by the
server) until a stale or expired error is received, at which time the
client will establish a new clientid using SETCLIENTID and _CONFIRM. =A0
It may be simpler to state this is the only acceptable
implementation.</smaller>=20


<smaller>otherwise.. RENEW may receive NFS4ERR_STALE_CLIENTID if the
lease period has expired. =A0This error states a client must issue a new
SETCLIENTID & CONFIRM. =A0The only way an second lease period may be
started for a given clientid after the initial release has timed out
is for the client not to issue a RENEW (or ignore the stale error) if
there is no state held by the server for this clientid. =A0it's getting
murky...</smaller>=20


<smaller>Thanks,</smaller>

<smaller> Stevan C. Allen</smaller>

=20

<smaller>---- previous note ----</smaller>=20


<smaller> I wish to verify the following conclusion.</smaller>=20


<smaller> RFC References:</smaller>=20


<smaller> 14.2.34 =A0"SETCLIENTID_CONFIRM does not establish or renew a
lease." =A0</smaller>=20


<smaller> 8.1.2 =A0Server Release of Clientid</smaller><fixed>:
</fixed><smaller>"If the server determines that the client holds no
associated state for its clientid, the server may choose to release
the clientid.. It should be clear that the server must be very
hesitant to release a clientid since the resulting work on the
client.... =A0 =A0Typically a server would not release a clientid unless
there had been no activity from that client for many minutes."
=A0</smaller>=20


<smaller> Conclusion:</smaller>=20


<smaller> =A0o =A0 I did not find a mention in the RFC which ties =
"state"
to clientid. =A0</smaller>=20

<smaller> =A0 =A0 =A0 =A0Mostly "state" is always in reference to opens =
or
locks.</smaller>=20

<smaller>=A0 o =A0 After a lease has timed out, =A0</smaller> =
<smaller>the
server may keep the clientid</smaller>=20

<smaller>=A0 =A0 =A0 =A0 and start a new lease period under the existing
clientid.</smaller>

<smaller> =A0o =A0 The clientid may be used to establish a new lease
period </smaller>

<smaller> =A0 =A0 =A0 =A0after the previous lease has timed out, except =
for
next bullet</smaller>=20

<smaller> =A0o =A0 If the prior lease has timed out AND held state has
been release, </smaller>

<smaller> =A0 =A0 =A0 =A0the server must fail the open with
NFS4ERR_STALE_CLIENTID</smaller>

<smaller> =A0 =A0 =A0 =A0and not establish a new lease period. =
=A0</smaller>=20


<smaller> The RFC verbiage above indicates a client does not need to
renew a lease when "<color><param>FFFF,0000,0000</param>no associated
state for its clientid</color>" is held by the server. =A0e.g. RFC
section 8.1.2 indicates when there is no state held for a clientid,
the server may keep the clientid around for establishing new lease
periods after a prior lease has expired. =A0</smaller>=20


<smaller> For a provided clientid, OPEN can establish or renew a lease
period if </smaller>

<smaller> =A0 o =A0a lease period has yet to be established for this
clientid</smaller>=20

<smaller> =A0 =A0 =A0 =A0(i.e. clients first OPEN)</smaller>=20

<smaller> =A0 o =A0the lease for the clientid has not expired</smaller>=20=


<smaller> =A0 o =A0a lease period has not been established, or has
expired, and </smaller>

<smaller> =A0 =A0 =A0 =A0no prior state (share/lock) has been staled for =
this
clientid</smaller>=20




<smaller> Thanks,</smaller>

<smaller> Stevan C. Allen</smaller>=20

</excerpt>=

--Apple-Mail-12--358388998--


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



From exim@www1.ietf.org  Sat Apr  3 19:27:39 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA13095
	for <nfsv4-archive@odin.ietf.org>; Sat, 3 Apr 2004 19:27:39 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vTi-0004p0-PW
	for nfsv4-archive@odin.ietf.org; Sat, 03 Apr 2004 19:27:10 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i340RAQu018535
	for nfsv4-archive@odin.ietf.org; Sat, 3 Apr 2004 19:27:10 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vTi-0004os-65
	for nfsv4-web-archive@optimus.ietf.org; Sat, 03 Apr 2004 19:27:10 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA13054
	for <nfsv4-web-archive@ietf.org>; Sat, 3 Apr 2004 19:27:08 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vTg-0004GQ-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 19:27:08 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9vSi-00049e-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 19:26:09 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vRl-000439-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 19:25:09 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vRd-0004Z1-4h; Sat, 03 Apr 2004 19:25:01 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vQu-0004YM-ET
	for nfsv4@optimus.ietf.org; Sat, 03 Apr 2004 19:24:16 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA12983
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 19:24:14 -0500 (EST)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vQm-0003vr-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 19:24:08 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9vPo-0003pc-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 19:23:09 -0500
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vOr-0003eO-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 19:22:09 -0500
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id TAA02824
	for nfsv4@ietf.org; Sat, 3 Apr 2004 19:21:56 -0500 (EST)
Message-Id: <200404040021.TAA02824@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 3 Apr 2004 19:21:56 -0500 (EST)
Date: Sat, 3 Apr 2004 19:21:56 -0500 (EST)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no 
	version=2.60

Steve's recent query (and Spencer's response) both mentioned
NFS4ERR_STALECLIENTID as the error returned if the server has
discarded a clientid with no associated state after its lease expired.

For some reason, I had assumed NFS4ERR_EXPIRED would be the correct
response for this case and had reserved NFS4ERR_STALECLIENTID for
the case where the server had rebooted since issuing the ClientId.

As such, I just looked at Sec. 8.1.2 and see it states "the appropriate error",
which didn't help much at clarifying it. So which error should it be?

And which error is the correct response if the server discarded state
along with the clientid after a lease expiration?

If the server must distinguish between "discarded clientid which had no
associated state" and "discarded clientid which had associated state",
it seems to imply to me that the server
must hang onto a clientid after discarding state related to it, so it
knows to return NFS4ERR_EXPIRED and not NFS4ERR_STALECLIENTID. The
problem them becomes "how long does the server have to hang onto this
clientid?". Until the client does another SetClientid, which could be forever?)

Thanks yet again for your help, rick

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



From exim@www1.ietf.org  Sat Apr  3 19:45:46 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA13477
	for <nfsv4-archive@odin.ietf.org>; Sat, 3 Apr 2004 19:45:46 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vlF-0007FR-Bm
	for nfsv4-archive@odin.ietf.org; Sat, 03 Apr 2004 19:45:17 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i340jHFh027855
	for nfsv4-archive@odin.ietf.org; Sat, 3 Apr 2004 19:45:17 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vlD-0007F0-Qo
	for nfsv4-web-archive@optimus.ietf.org; Sat, 03 Apr 2004 19:45:16 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA13458
	for <nfsv4-web-archive@ietf.org>; Sat, 3 Apr 2004 19:45:13 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vlB-0006HT-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 19:45:13 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9vkD-0006An-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 19:44:14 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vk0-00064T-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 19:44:00 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vk0-00074i-MX; Sat, 03 Apr 2004 19:44:00 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9vjE-0006zl-Vy
	for nfsv4@optimus.ietf.org; Sat, 03 Apr 2004 19:43:13 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA13399
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 19:43:10 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vjC-00063h-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 19:43:10 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9viC-0005xA-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 19:42:08 -0500
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9vhE-0005ln-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 19:41:08 -0500
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i340ecLT013248;
	Sat, 3 Apr 2004 16:40:38 -0800 (PST)
Received: from [192.168.0.3] (vpn-129-150-32-91.Central.Sun.COM [129.150.32.91])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i340ebQ6013437;
	Sat, 3 Apr 2004 16:40:38 -0800 (PST)
In-Reply-To: <200404040021.TAA02824@snowhite.cis.uoguelph.ca>
References: <200404040021.TAA02824@snowhite.cis.uoguelph.ca>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <0E084525-85D1-11D8-A16F-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
To: rick@snowhite.cis.uoguelph.ca
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 3 Apr 2004 18:43:13 -0600
Date: Sat, 3 Apr 2004 18:43:13 -0600
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 3, 2004, at 6:21 PM, rick@snowhite.cis.uoguelph.ca wrote:

> Steve's recent query (and Spencer's response) both mentioned
> NFS4ERR_STALECLIENTID as the error returned if the server has
> discarded a clientid with no associated state after its lease expired.
>
> For some reason, I had assumed NFS4ERR_EXPIRED would be the correct
> response for this case and had reserved NFS4ERR_STALECLIENTID for
> the case where the server had rebooted since issuing the ClientId.
>
> As such, I just looked at Sec. 8.1.2 and see it states "the 
> appropriate error",
> which didn't help much at clarifying it. So which error should it be?
>
> And which error is the correct response if the server discarded state
> along with the clientid after a lease expiration?
>
> If the server must distinguish between "discarded clientid which had no
> associated state" and "discarded clientid which had associated state",
> it seems to imply to me that the server
> must hang onto a clientid after discarding state related to it, so it
> knows to return NFS4ERR_EXPIRED and not NFS4ERR_STALECLIENTID. The
> problem them becomes "how long does the server have to hang onto this
> clientid?". Until the client does another SetClientid, which could be 
> forever?)
>
> Thanks yet again for your help, rick

You are right, Rick.  For some reason I seem to make this mistake
more often than not.  NFS4ERR_EXPIRED is the correct error in both
cases: discarded clientid without state and discarded clientid with 
state.
NFS4ERR_STALE_CLIENTID is only returned when the server
has restarted.

Sorry for the mistake and confusion.

Spencer


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



From exim@www1.ietf.org  Sat Apr  3 20:09:43 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA14096
	for <nfsv4-archive@odin.ietf.org>; Sat, 3 Apr 2004 20:09:43 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9w8Q-0002Wh-RD
	for nfsv4-archive@odin.ietf.org; Sat, 03 Apr 2004 20:09:14 -0500
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3419EPO009709
	for nfsv4-archive@odin.ietf.org; Sat, 3 Apr 2004 20:09:14 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9w8Q-0002WW-LU
	for nfsv4-web-archive@optimus.ietf.org; Sat, 03 Apr 2004 20:09:14 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA14090
	for <nfsv4-web-archive@ietf.org>; Sat, 3 Apr 2004 20:09:12 -0500 (EST)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9w8O-0001FI-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 20:09:12 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9w7Q-00019R-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 20:08:13 -0500
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9w7E-00013j-00
	for nfsv4-web-archive@ietf.org; Sat, 03 Apr 2004 20:08:00 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9w7F-0002HG-BL; Sat, 03 Apr 2004 20:08:01 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1B9w6R-00029H-Vw
	for nfsv4@optimus.ietf.org; Sat, 03 Apr 2004 20:07:11 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA14069
	for <nfsv4@ietf.org>; Sat, 3 Apr 2004 20:07:09 -0500 (EST)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9w6Q-00012c-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 20:07:10 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1B9w5U-0000wF-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 20:06:12 -0500
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1B9w4X-0000jS-00
	for nfsv4@ietf.org; Sat, 03 Apr 2004 20:05:13 -0500
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id UAA03148
	for nfsv4@ietf.org; Sat, 3 Apr 2004 20:04:41 -0500 (EST)
Message-Id: <200404040104.UAA03148@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 3 Apr 2004 20:04:41 -0500 (EST)
Date: Sat, 3 Apr 2004 20:04:41 -0500 (EST)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,NO_REAL_NAME autolearn=no 
	version=2.60

> You are right, Rick.  For some reason I seem to make this mistake
> more often than not.  NFS4ERR_EXPIRED is the correct error in both
> cases: discarded clientid without state and discarded clientid with 
> state.
> NFS4ERR_STALE_CLIENTID is only returned when the server
> has restarted.

Yippee, I don't have to re-write anything:-)

> Sorry for the mistake and confusion.

Nothing to be sorry about, I'm just glad it's clarified, rick

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



From exim@www1.ietf.org  Mon Apr  5 13:29:45 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA16869
	for <nfsv4-archive@odin.ietf.org>; Mon, 5 Apr 2004 13:29:45 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAXuM-0006WM-Pp
	for nfsv4-archive@odin.ietf.org; Mon, 05 Apr 2004 13:29:17 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i35HTEFb025067
	for nfsv4-archive@odin.ietf.org; Mon, 5 Apr 2004 13:29:14 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAXuM-0006W5-IB
	for nfsv4-web-archive@optimus.ietf.org; Mon, 05 Apr 2004 13:29:14 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA16758
	for <nfsv4-web-archive@ietf.org>; Mon, 5 Apr 2004 13:29:12 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAXuK-0000QT-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:29:12 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAXbI-0005oG-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:09:33 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAXS8-0004cn-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:00:04 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BAXFP-0000AX-Jw
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 12:46:55 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAXFJ-0004YZ-1x; Mon, 05 Apr 2004 12:46:49 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAWvk-000630-F4
	for nfsv4@optimus.ietf.org; Mon, 05 Apr 2004 12:26:36 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA13273
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 12:26:29 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAWvg-0007aK-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 12:26:32 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAWuA-0007Ha-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 12:24:59 -0400
Received: from e31.co.us.ibm.com ([32.97.110.129])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAWrA-0006cc-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 12:21:52 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i35GLI5N199332
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 12:21:18 -0400
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i35GLHKe355786
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 10:21:18 -0600
In-Reply-To: <200404040104.UAA03148@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
MIME-Version: 1.0
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OFA928BBD4.C1B75565-ON87256E6D.0058AB44-88256E6D.0059D1C4@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/05/2004 10:21:17,
	Serialize complete at 04/05/2004 10:21:17
Content-Type: multipart/alternative; boundary="=_alternative 0059D1BF88256E6D_="
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 5 Apr 2004 09:21:09 -0700
Date: Mon, 5 Apr 2004 09:21:09 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE 
	autolearn=no version=2.60

This is a multipart message in MIME format.
--=_alternative 0059D1BF88256E6D_=
Content-Type: text/plain; charset="US-ASCII"

Spencer,  I fell off the wagon here.

> NFS4ERR_STALE_CLIENTID is only returned when the server
> has restarted.

Seems the server may not find a server generated clientid for 2 
conditions.
  o Server restarted
  o Clientid was released (freed)

Your statement indicates the server has to determine which condition 
occurred.  Rick asked how long the clientid has to be kept around (so 
separate errors can be returned).

Thanks,
Stevan C. Allen

--=_alternative 0059D1BF88256E6D_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Spencer, &nbsp;I fell off the wagon
here.</font>
<br>
<br><font size=2><tt>&gt; NFS4ERR_STALE_CLIENTID is only returned when
the server<br>
&gt; has restarted.</tt></font>
<br>
<br><font size=2 face="sans-serif">Seems the server may not find a server
generated clientid for 2 conditions.</font>
<br><font size=2 face="sans-serif">&nbsp; o Server restarted</font>
<br><font size=2 face="sans-serif">&nbsp; o Clientid was released (freed)</font>
<br>
<br><font size=2 face="sans-serif">Your statement indicates the server
has to determine which condition occurred. &nbsp;Rick asked how long the
clientid has to be kept around (so separate errors can be returned).</font>
<br>
<br><font size=2 face="sans-serif">Thanks,<br>
Stevan C. Allen<br>
</font>
--=_alternative 0059D1BF88256E6D_=--

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



From exim@www1.ietf.org  Mon Apr  5 14:11:41 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20156
	for <nfsv4-archive@odin.ietf.org>; Mon, 5 Apr 2004 14:11:41 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAYYz-0000ML-LY
	for nfsv4-archive@odin.ietf.org; Mon, 05 Apr 2004 14:11:14 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i35IBDgk001382
	for nfsv4-archive@odin.ietf.org; Mon, 5 Apr 2004 14:11:13 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAYYz-0000M7-Do
	for nfsv4-web-archive@optimus.ietf.org; Mon, 05 Apr 2004 14:11:13 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA19977
	for <nfsv4-web-archive@ietf.org>; Mon, 5 Apr 2004 14:11:10 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAYYw-0005cv-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 14:11:11 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAY8G-00034f-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:43:37 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY5w-0002ej-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:41:12 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BAY5x-0005xG-DQ
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:41:13 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAY5m-0003TN-Rw; Mon, 05 Apr 2004 13:41:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAY5R-0003IK-1X
	for nfsv4@optimus.ietf.org; Mon, 05 Apr 2004 13:40:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA19214
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 13:40:38 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY5O-0002ZE-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:40:39 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAY3S-00026Z-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:38:39 -0400
Received: from dsl093-002-214.det1.dsl.speakeasy.net
	([66.93.2.214] helo=pumpkin.fieldses.org ident=Debian-exim)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAXwF-0000l0-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:31:11 -0400
Received: from bfields by pumpkin.fieldses.org with local (Exim 4.30)
	id 1BAXwA-0000AE-M9; Mon, 05 Apr 2004 13:31:06 -0400
To: Stevan Steve Allen <scallen@us.ibm.com>
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
Message-ID: <20040405173106.GB500@fieldses.org>
References: <200404040104.UAA03148@snowhite.cis.uoguelph.ca> <OFA928BBD4.C1B75565-ON87256E6D.0058AB44-88256E6D.0059D1C4@us.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OFA928BBD4.C1B75565-ON87256E6D.0058AB44-88256E6D.0059D1C4@us.ibm.com>
User-Agent: Mutt/1.5.5.1+cvs20040105i
From: "J. Bruce Fields" <bfields@fieldses.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 5 Apr 2004 13:31:06 -0400
Date: Mon, 5 Apr 2004 13:31:06 -0400
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60

On Mon, Apr 05, 2004 at 09:21:09AM -0700, Stevan Steve Allen wrote:
> Spencer,  I fell off the wagon here.
> 
> > NFS4ERR_STALE_CLIENTID is only returned when the server
> > has restarted.
> 
> Seems the server may not find a server generated clientid for 2 
> conditions.
>   o Server restarted
>   o Clientid was released (freed)
> 
> Your statement indicates the server has to determine which condition 
> occurred.  Rick asked how long the clientid has to be kept around (so 
> separate errors can be returned).

The server doesn't need to keep around the clientid to do this; encoding
the boot time in the clientid, for example, as suggested by the spec, is
sufficient.

--b.

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



From exim@www1.ietf.org  Mon Apr  5 14:11:51 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20233
	for <nfsv4-archive@odin.ietf.org>; Mon, 5 Apr 2004 14:11:51 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAYZ9-0000OT-TH
	for nfsv4-archive@odin.ietf.org; Mon, 05 Apr 2004 14:11:23 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i35IBNqf001511
	for nfsv4-archive@odin.ietf.org; Mon, 5 Apr 2004 14:11:23 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAYZ9-0000OI-NG
	for nfsv4-web-archive@optimus.ietf.org; Mon, 05 Apr 2004 14:11:23 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20039
	for <nfsv4-web-archive@ietf.org>; Mon, 5 Apr 2004 14:11:20 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAYZ7-0005f1-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 14:11:21 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAY8l-00037j-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:44:09 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY5z-0002e5-01
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:41:16 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BAY45-0005Pg-Tw
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:39:18 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAY3q-0002hl-9G; Mon, 05 Apr 2004 13:39:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAY3E-0002W2-AW
	for nfsv4@optimus.ietf.org; Mon, 05 Apr 2004 13:38:24 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA18783
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 13:38:21 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY3C-00022r-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:38:22 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAXvF-0000ac-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:30:11 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAXd6-0005wn-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:11:24 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i35HArio018341;
	Mon, 5 Apr 2004 10:10:53 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-229.Central.Sun.COM [129.150.32.229])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i35HAqgr009290;
	Mon, 5 Apr 2004 10:10:52 -0700 (PDT)
In-Reply-To: <OFA928BBD4.C1B75565-ON87256E6D.0058AB44-88256E6D.0059D1C4@us.ibm.com>
References: <OFA928BBD4.C1B75565-ON87256E6D.0058AB44-88256E6D.0059D1C4@us.ibm.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-15--201206285
Message-Id: <8E8E6E3F-8724-11D8-A16F-000A95DBCB70@sun.com>
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
To: Stevan Steve Allen <scallen@us.ibm.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 5 Apr 2004 12:13:28 -0500
Date: Mon, 5 Apr 2004 12:13:28 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60


--Apple-Mail-15--201206285
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


On Apr 5, 2004, at 11:21 AM, Stevan Steve Allen wrote:

>
> Spencer, =A0I fell off the wagon here.
>
> > NFS4ERR_STALE_CLIENTID is only returned when the server
>  > has restarted.
>
> Seems the server may not find a server generated clientid for 2=20
> conditions.
> =A0 o Server restarted
> =A0 o Clientid was released (freed)
>
> Your statement indicates the server has to determine which condition=20=

> occurred. =A0Rick asked how long the clientid has to be kept around =
(so=20
> separate errors can be returned).

Yes. The server has to determine which condition occurred and most
servers will place a time stamp in the clientid to which it can refer
to determine if it is from a previous instance of the server and=20
therefore
should return NFS4ERR_STALE_CLIENTID; if the timestamp matches
the current instance of the server and the clientid it not found, then
it will return NFS4ERR_EXPIRED to indicate that the lease expired
on the clientid and the state was removed.

Spencer


--Apple-Mail-15--201206285
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Apr 5, 2004, at 11:21 AM, Stevan Steve Allen wrote:


<excerpt>

<smaller>Spencer, =A0I fell off the wagon here.</smaller>=20


<fixed><x-tad-smaller>> NFS4ERR_STALE_CLIENTID is only returned when
the server</x-tad-smaller></fixed>

<fixed><x-tad-smaller> > has restarted.</x-tad-smaller></fixed>=20


<smaller>Seems the server may not find a server generated clientid for
2 conditions.</smaller>=20

<smaller>=A0 o Server restarted</smaller>=20

<smaller>=A0 o Clientid was released (freed)</smaller>=20


<smaller>Your statement indicates the server has to determine which
condition occurred. =A0Rick asked how long the clientid has to be kept
around (so separate errors can be returned).</smaller>=20

</excerpt>

Yes. The server has to determine which condition occurred and most

servers will place a time stamp in the clientid to which it can refer

to determine if it is from a previous instance of the server and
therefore

should return NFS4ERR_STALE_CLIENTID; if the timestamp matches

the current instance of the server and the clientid it not found, then

it will return NFS4ERR_EXPIRED to indicate that the lease expired

on the clientid and the state was removed.


Spencer



--Apple-Mail-15--201206285--


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



From exim@www1.ietf.org  Mon Apr  5 14:17:48 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA21541
	for <nfsv4-archive@odin.ietf.org>; Mon, 5 Apr 2004 14:17:48 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAYev-0002pG-Jv
	for nfsv4-archive@odin.ietf.org; Mon, 05 Apr 2004 14:17:21 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i35IHLbv010858
	for nfsv4-archive@odin.ietf.org; Mon, 5 Apr 2004 14:17:21 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAYev-0002p3-Fi
	for nfsv4-web-archive@optimus.ietf.org; Mon, 05 Apr 2004 14:17:21 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA21399
	for <nfsv4-web-archive@ietf.org>; Mon, 5 Apr 2004 14:17:18 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAYes-0006oG-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 14:17:18 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAYKJ-0004GN-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:56:06 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY6n-0002qn-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 13:42:05 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAY6o-0003gm-C4; Mon, 05 Apr 2004 13:42:06 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAY61-0003WL-Fg
	for nfsv4@optimus.ietf.org; Mon, 05 Apr 2004 13:41:17 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA19350
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 13:41:14 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY5z-0002fI-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:41:15 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAY4c-0002Mr-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:39:52 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAY1k-0001gs-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 13:36:53 -0400
Received: from hawk.corp.netapp.com (hawk [10.57.156.122])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i35HaMZh016538;
	Mon, 5 Apr 2004 10:36:22 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by hawk.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i35HaLTT026920;
	Mon, 5 Apr 2004 10:36:21 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C41B34.7D1AED4A"
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A6D3744@silver.nane.netapp.com>
Thread-Topic: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
Thread-Index: AcQbLa7eGvmkJ+d5ROaTQOHE+JIFCwAAJqfQ
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Stevan Steve Allen" <scallen@us.ibm.com>, <nfsv4@ietf.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 5 Apr 2004 10:36:12 -0700
Date: Mon, 5 Apr 2004 10:36:12 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,HTML_20_30,
	HTML_FONTCOLOR_BLUE,HTML_MESSAGE autolearn=no version=2.60

This is a multi-part message in MIME format.

------_=_NextPart_001_01C41B34.7D1AED4A
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

You can distinguish STALECLIENTID without saving clientid's forever.
=20
If you put the server instance (or reboot time) in one half of the
client id then you can determine if the server has rebooted, simply by
comparing that field.
=20
The spec text does not talk about EXPIRED with regard to client id's. It
does with respect to stateid's.  However, the ops that list
STALECLIENTID as an error also list EXPIRED so I don't see what else you
could return if you get a clientid you don't recognize and it doesn't
show that you have rebooted.
=20
One exception is DELEGPURGE.  It shows STALECLIENTID but not EXPIRED so
it isn't clear what you would do if you get a clientid you don't
recognize and it doesn't look stale.  INVAL would be the obvious answer
but that isn't on the error list either :-(
=20
So I think you have to be able to distinguish clientid's you gave out
from those your predecessor instance(s) would have given out essentially
forever.  However, for anything that looks like it cam from the current
server instance, if you don't recognize it, you return EXPIRED and there
is no issue of having to save them or distinguish those that expired
from others.  There is no BAD_CLIENTID error .  This conclusion does
seem to be at variance with the definition of EXPIRED, "A lease has
expired that is being used in the current operation", but there doesn't
seem to be any other error to use.

Which brings us to stateid's since there is a BAD_STATEID error.  I
believe you can do the same thing for stateid's that you do for
clientid's to distinguish when to return STALE_STATEID.  This leaves the
question of distinguishing EXPIRED from BAD_STATEID.
I don't see where the spec gives any useful guidance on how one is to
distinguish these two cases without storing expired stateid's forever
(have I missed it?).  My answer is to do the best you can but
practically speaking I think clients have to be prepared to get
BAD_STATEID and do what they would have done if they got EXPIRED.
Either one says the server is still up, you lost your lock, and if you
try to re-establish it, you may not succeed and even if you do, you
should be aware that someone may have had a conflicting lock in the
interim, i.e. you cannot assume continuity of your lock possession.
=20
=20
=20
=20

-----Original Message-----
From: Stevan Steve Allen [mailto:scallen@us.ibm.com]=20
Sent: Monday, April 05, 2004 12:21 PM
To: nfsv4@ietf.org
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?



Spencer,  I fell off the wagon here.=20

> NFS4ERR_STALE_CLIENTID is only returned when the server
> has restarted.=20

Seems the server may not find a server generated clientid for 2
conditions.=20
  o Server restarted=20
  o Clientid was released (freed)=20

Your statement indicates the server has to determine which condition
occurred.  Rick asked how long the clientid has to be kept around (so
separate errors can be returned).=20

Thanks,
Stevan C. Allen



------_=_NextPart_001_01C41B34.7D1AED4A
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=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =
size=3D2>You=20
can distinguish STALECLIENTID without saving clientid's=20
forever.</FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =
size=3D2>If you=20
put the server instance (or reboot time) in one half of the client id =
then you=20
can determine if the server has rebooted, simply by comparing that=20
field.</FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
spec text does not talk about EXPIRED with regard to client id's. It =
does with=20
respect to stateid's.&nbsp; However, the ops that list STALECLIENTID as =
an error=20
also list EXPIRED so I don't see what else you could return if you get a =

clientid you don't recognize and it doesn't show that you have=20
rebooted.</FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =
size=3D2>One=20
exception is DELEGPURGE.&nbsp; It shows STALECLIENTID but not EXPIRED so =
it=20
isn't clear what you would do if you get a clientid you don't recognize =
and it=20
doesn't look stale.&nbsp; INVAL would be the obvious answer but that =
isn't on=20
the error list either :-(</FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial><FONT =
color=3D#0000ff=20
size=3D2>So I think you have to be able to distinguish clientid's you =
gave out=20
from those your predecessor instance(s) would have given out essentially =

forever.&nbsp; However, for anything that looks like it cam from the =
current=20
server instance, if you don't recognize it, you return EXPIRED and there =
is no=20
issue of having to save them or distinguish those that expired from=20
others.&nbsp; There is no BAD_CLIENTID error&nbsp;.&nbsp; This =
conclusion does=20
seem to be at variance with the definition of EXPIRED, "</FONT><FONT=20
color=3D#0000ff size=3D2>A lease has expired that is being used in the =
current=20
operation", but there doesn't seem to be any other error to=20
use.<BR></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =
size=3D2>Which=20
brings us to stateid's since there is a BAD_STATEID error.&nbsp; I =
believe you=20
can do the same thing for stateid's that you do for clientid's to =
distinguish=20
when to return STALE_STATEID.&nbsp; This leaves the question&nbsp;of=20
distinguishing EXPIRED from BAD_STATEID.</FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
don't see where the spec gives any useful guidance on how one is to =
distinguish=20
these two cases without storing expired stateid's forever (have I missed =

it?).&nbsp; My answer is to do the best you can but practically speaking =
I think=20
clients have to be prepared to get BAD_STATEID and do what they would =
have done=20
if they got EXPIRED.&nbsp; Either one says the server is still up, you =
lost your=20
lock, and if you try to re-establish it, you may not succeed and even if =
you do,=20
you should be aware that someone may have had a conflicting lock in the =
interim,=20
i.e. you cannot assume continuity of your lock =
possession.</FONT></SPAN></DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D851485116-05042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Stevan Steve=20
  Allen [mailto:scallen@us.ibm.com] <BR><B>Sent:</B> Monday, April 05, =
2004=20
  12:21 PM<BR><B>To:</B> nfsv4@ietf.org<BR><B>Subject:</B> Re: [nfsv4] =
re:=20
  NFS4ERR_EXPIRED or =
NFS4ERR_STALECLIENTID?<BR><BR></FONT></DIV><BR><FONT=20
  face=3Dsans-serif size=3D2>Spencer, &nbsp;I fell off the wagon =
here.</FONT>=20
  <BR><BR><FONT size=3D2><TT>&gt; NFS4ERR_STALE_CLIENTID is only =
returned when the=20
  server<BR>&gt; has restarted.</TT></FONT> <BR><BR><FONT =
face=3Dsans-serif=20
  size=3D2>Seems the server may not find a server generated clientid for =
2=20
  conditions.</FONT> <BR><FONT face=3Dsans-serif size=3D2>&nbsp; o =
Server=20
  restarted</FONT> <BR><FONT face=3Dsans-serif size=3D2>&nbsp; o =
Clientid was=20
  released (freed)</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2>Your =
statement=20
  indicates the server has to determine which condition occurred. =
&nbsp;Rick=20
  asked how long the clientid has to be kept around (so separate errors =
can be=20
  returned).</FONT> <BR><BR><FONT face=3Dsans-serif =
size=3D2>Thanks,<BR>Stevan C.=20
  Allen<BR></BLOCKQUOTE></FONT></BODY></HTML>

------_=_NextPart_001_01C41B34.7D1AED4A--

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



From exim@www1.ietf.org  Mon Apr  5 16:45:07 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA05473
	for <nfsv4-archive@odin.ietf.org>; Mon, 5 Apr 2004 16:45:07 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAaxT-0004fl-Pe
	for nfsv4-archive@odin.ietf.org; Mon, 05 Apr 2004 16:44:40 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i35Kidrn017962
	for nfsv4-archive@odin.ietf.org; Mon, 5 Apr 2004 16:44:39 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAaxT-0004fd-CU
	for nfsv4-web-archive@optimus.ietf.org; Mon, 05 Apr 2004 16:44:39 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA05367
	for <nfsv4-web-archive@ietf.org>; Mon, 5 Apr 2004 16:44:36 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAaxR-0000b9-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 16:44:37 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAaPJ-0005Wp-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 16:09:25 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAaLL-0004mB-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 16:05:16 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BAaLK-0005mX-Gj
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 16:05:14 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAaLD-0003gW-Ng; Mon, 05 Apr 2004 16:05:07 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAaKV-0003MP-1i
	for nfsv4@optimus.ietf.org; Mon, 05 Apr 2004 16:04:23 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA03453
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 16:04:20 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAaKT-0004aR-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 16:04:21 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAaBL-0002vX-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 15:54:58 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAZoM-0000Fb-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 15:31:10 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i35JUdio018165;
	Mon, 5 Apr 2004 12:30:39 -0700 (PDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i35JUdgr015906;
	Mon, 5 Apr 2004 12:30:39 -0700 (PDT)
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A6D3744@silver.nane.netapp.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A6D3744@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-16--192817899
Message-Id: <166C7621-8738-11D8-A16F-000A95DBCB70@sun.com>
Cc: "Stevan Steve Allen" <scallen@us.ibm.com>, <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 5 Apr 2004 14:33:17 -0500
Date: Mon, 5 Apr 2004 14:33:17 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,HTML_MESSAGE autolearn=no 
	version=2.60


--Apple-Mail-16--192817899
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


On Apr 5, 2004, at 12:36 PM, Noveck, Dave wrote:

> You can distinguish STALECLIENTID without saving clientid's forever.
> =A0
> If you put the server instance (or reboot time) in one half of the=20
> client id then you can determine if the server has rebooted, simply by=20=

> comparing that field.
> =A0
> The spec text does not talk about EXPIRED with regard to client id's.=20=

> It does with respect to stateid's.=A0 However, the ops that list=20
> STALECLIENTID as an error also list EXPIRED so I don't see what else=20=

> you could return if you get a clientid you don't recognize and it=20
> doesn't show that you have rebooted.
> =A0
> One exception is DELEGPURGE.=A0 It shows STALECLIENTID but not EXPIRED=20=

> so it isn't clear what you would do if you get a clientid you don't=20
> recognize and it doesn't look stale.=A0 INVAL would be the obvious=20
> answer but that isn't on the error list either :-(
> =A0
> So I think you have to be able to distinguish clientid's you gave out=20=

> from those your predecessor instance(s) would have given out=20
> essentially forever.=A0 However, for anything that looks like it cam=20=

> from the current server instance, if you don't recognize it, you=20
> return EXPIRED and there is no issue of having to save them or=20
> distinguish those that expired from others.=A0 There is no =
BAD_CLIENTID=20
> error=A0.=A0 This conclusion does seem to be at variance with the=20
> definition of EXPIRED, "A lease has expired that is being used in the=20=

> current operation", but there doesn't seem to be any other error to=20
> use.
> Which brings us to stateid's since there is a BAD_STATEID error.=A0 I=20=

> believe you can do the same thing for stateid's that you do for=20
> clientid's to distinguish when to return STALE_STATEID.=A0 This leaves=20=

> the question=A0of distinguishing EXPIRED from BAD_STATEID.
> I don't see where the spec gives any useful guidance on how one is to=20=

> distinguish these two cases without storing expired stateid's forever=20=

> (have I missed it?).=A0 My answer is to do the best you can but=20
> practically speaking I think clients have to be prepared to get=20
> BAD_STATEID and do what they would have done if they got EXPIRED.=A0=20=

> Either one says the server is still up, you lost your lock, and if you=20=

> try to re-establish it, you may not succeed and even if you do, you=20
> should be aware that someone may have had a conflicting lock in the=20
> interim, i.e. you cannot assume continuity of your lock possession.

I would like to reiterate Dave's comment above that the server "do the=20=

best it can".
A client will likely treat EXPIRED differently than BAD_STATEID in that=20=

EXPIRED
applies to the entire clientid and BAD_STATEID is just for that=20
particular file (or
likely to be that particular file).  The recovery paths could apply=20
different
approaches and if a simple timestamp in the stateid provides a directive
then EXPIRED would have greater precedence than BAD_STATEID in
my opinion and experience.

> =A0
> =A0
> =A0
> =A0
> -----Original Message-----
> From: Stevan Steve Allen [mailto:scallen@us.ibm.com]
>  Sent: Monday, April 05, 2004 12:21 PM
> To: nfsv4@ietf.org
> Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
>
>
> Spencer, =A0I fell off the wagon here.
>
>  > NFS4ERR_STALE_CLIENTID is only returned when the server
> > has restarted.
>
> Seems the server may not find a server generated clientid for 2=20
> conditions.
> =A0 o Server restarted
> =A0 o Clientid was released (freed)
>
> Your statement indicates the server has to determine which condition=20=

> occurred. =A0Rick asked how long the clientid has to be kept around =
(so=20
> separate errors can be returned).
>
> Thanks,
> Stevan C. Allen

--Apple-Mail-16--192817899
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Apr 5, 2004, at 12:36 PM, Noveck, Dave wrote:


=
<excerpt><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</par=
am><smaller>You
can distinguish STALECLIENTID without saving clientid's =
forever.</smaller></color></fontfamily>

=A0

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>If
you put the server instance (or reboot time) in one half of the client
id then you can determine if the server has rebooted, simply by
comparing that field.</smaller></color></fontfamily>

=A0

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>The
spec text does not talk about EXPIRED with regard to client id's. It
does with respect to stateid's.=A0 However, the ops that list
STALECLIENTID as an error also list EXPIRED so I don't see what else
you could return if you get a clientid you don't recognize and it
doesn't show that you have rebooted.</smaller></color></fontfamily>

=A0

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>One
exception is DELEGPURGE.=A0 It shows STALECLIENTID but not EXPIRED so it
isn't clear what you would do if you get a clientid you don't
recognize and it doesn't look stale.=A0 INVAL would be the obvious
answer but that isn't on the error list either =
:-(</smaller></color></fontfamily>

=A0

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>So
I think you have to be able to distinguish clientid's you gave out
from those your predecessor instance(s) would have given out
essentially forever.=A0 However, for anything that looks like it cam
from the current server instance, if you don't recognize it, you
return EXPIRED and there is no issue of having to save them or
distinguish those that expired from others.=A0 There is no BAD_CLIENTID
error=A0.=A0 This conclusion does seem to be at variance with the
definition of EXPIRED, "A lease has expired that is being used in the
current operation", but there doesn't seem to be any other error to
use.</smaller></color></fontfamily>

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>Which
brings us to stateid's since there is a BAD_STATEID error.=A0 I believe
you can do the same thing for stateid's that you do for clientid's to
distinguish when to return STALE_STATEID.=A0 This leaves the question=A0of=

distinguishing EXPIRED from BAD_STATEID.</smaller></color></fontfamily>

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>I
don't see where the spec gives any useful guidance on how one is to
distinguish these two cases without storing expired stateid's forever
(have I missed it?).=A0 My answer is to do the best you can but
practically speaking I think clients have to be prepared to get
BAD_STATEID and do what they would have done if they got EXPIRED.=A0
Either one says the server is still up, you lost your lock, and if you
try to re-establish it, you may not succeed and even if you do, you
should be aware that someone may have had a conflicting lock in the
interim, i.e. you cannot assume continuity of your lock =
possession.</smaller></color></fontfamily>

</excerpt>

I would like to reiterate Dave's comment above that the server "do the
best it can".

A client will likely treat EXPIRED differently than BAD_STATEID in
that EXPIRED

applies to the entire clientid and BAD_STATEID is just for that
particular file (or

likely to be that particular file).  The recovery paths could apply
different

approaches and if a simple timestamp in the stateid provides a
directive

then EXPIRED would have greater precedence than BAD_STATEID in

my opinion and experience.


<excerpt>=A0

=A0

=A0

=A0

<fontfamily><param>Tahoma</param><smaller>-----Original =
Message-----</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>From:</smaller></fontfamil=
y></bold><fontfamily><param>Tahoma</param><smaller>
Stevan Steve Allen [mailto:scallen@us.ibm.com]</smaller></fontfamily>

<fontfamily><param>Tahoma</param><smaller> <bold>Sent:</bold> Monday,
April 05, 2004 12:21 PM</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>To:</smaller></fontfamily>=
</bold><fontfamily><param>Tahoma</param><smaller>
nfsv4@ietf.org</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>Subject:</smaller></fontfa=
mily></bold><fontfamily><param>Tahoma</param><smaller>
Re: [nfsv4] re: NFS4ERR_EXPIRED or =
NFS4ERR_STALECLIENTID?</smaller></fontfamily>



<smaller>Spencer, =A0I fell off the wagon here.</smaller>=20


 <fixed><x-tad-smaller>> NFS4ERR_STALE_CLIENTID is only returned when
the server</x-tad-smaller></fixed>

<fixed><x-tad-smaller>> has restarted.</x-tad-smaller></fixed>=20


<smaller>Seems the server may not find a server generated clientid for
2 conditions.</smaller>=20

<smaller>=A0 o Server restarted</smaller>=20

<smaller>=A0 o Clientid was released (freed)</smaller>=20


<smaller>Your statement indicates the server has to determine which
condition occurred. =A0Rick asked how long the clientid has to be kept
around (so separate errors can be returned).</smaller>=20


<smaller>Thanks,</smaller>

<smaller>Stevan C. Allen</smaller>

</excerpt>=

--Apple-Mail-16--192817899--


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



From exim@www1.ietf.org  Mon Apr  5 18:02:34 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA14024
	for <nfsv4-archive@odin.ietf.org>; Mon, 5 Apr 2004 18:02:34 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAcAS-0004CE-Lv
	for nfsv4-archive@odin.ietf.org; Mon, 05 Apr 2004 18:02:08 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i35M28kb016111
	for nfsv4-archive@odin.ietf.org; Mon, 5 Apr 2004 18:02:08 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAcAS-0004BJ-Cm
	for nfsv4-web-archive@optimus.ietf.org; Mon, 05 Apr 2004 18:02:08 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA13945
	for <nfsv4-web-archive@ietf.org>; Mon, 5 Apr 2004 18:02:03 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAcAP-00035s-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 18:02:05 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAbtU-0007gB-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 17:44:37 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAbGy-0004GV-00
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 17:04:48 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BAbGy-0002fU-Qk
	for nfsv4-web-archive@ietf.org; Mon, 05 Apr 2004 17:04:48 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAbFK-0003SK-DL; Mon, 05 Apr 2004 17:03:06 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAbFB-0003PZ-Fa
	for nfsv4@optimus.ietf.org; Mon, 05 Apr 2004 17:02:57 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA09464
	for <nfsv4@ietf.org>; Mon, 5 Apr 2004 17:02:53 -0400 (EDT)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAbF9-0003v0-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 17:02:55 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAb4b-0001yG-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 16:52:02 -0400
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAag7-0006uB-00
	for nfsv4@ietf.org; Mon, 05 Apr 2004 16:26:43 -0400
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id QAA31557
	for nfsv4@ietf.org; Mon, 5 Apr 2004 16:26:39 -0400 (EDT)
Message-Id: <200404052026.QAA31557@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] more re: NFS4ERR_STALECLIENTID
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 5 Apr 2004 16:26:39 -0400 (EDT)
Date: Mon, 5 Apr 2004 16:26:39 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no 
	version=2.60

> You can distinguish STALECLIENTID without saving clientid's forever.
> If you put the server instance (or reboot time) in one half of the
> client id then you can determine if the server has rebooted, simply by
> comparing that field.

Yep, and that's what my server does.
I was concerned that I might have to distinguish between:
- server throws away state along with clientid for this instance
vs
- server throws away clientid with no state for this instance

If you look at the error definitions for NFS4ERR_STALE_CLIENTID,
NFS4ERR_STALE_STATEID and NFS4ERR_EXPIRED in Sec. 12, they almost hint
that NFS4ERR_STALECLIENTID wasn't for a previous server instance only.
(I'm just relieved that using a boottime field in the clientid to
 distinguish NFS4ERR_STALE_CLIENTID is ok.)

> One exception is DELEGPURGE.  It shows STALECLIENTID but not EXPIRED so
> it isn't clear what you would do if you get a clientid you don't
> recognize and it doesn't look stale.  INVAL would be the obvious answer
> but that isn't on the error list either :-(

I just return NFS_OK for this one. My logic was that, if the clientid
isn't recognized, then the Delegations for it must have been purged
successfully already. (I see Delegpurge as the client letting the
server know it's ok to get rid of old delegations now, so if there
aren't any, it seems aok to me?)

Have fun and see you in Ann Arbor? rick

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



From exim@www1.ietf.org  Tue Apr  6 16:08:57 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA23618
	for <nfsv4-archive@odin.ietf.org>; Tue, 6 Apr 2004 16:08:57 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAws1-0008NL-Vf
	for nfsv4-archive@odin.ietf.org; Tue, 06 Apr 2004 16:08:30 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i36K8TfJ032191
	for nfsv4-archive@odin.ietf.org; Tue, 6 Apr 2004 16:08:29 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAws1-0008N8-Pi
	for nfsv4-web-archive@optimus.ietf.org; Tue, 06 Apr 2004 16:08:29 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA23523
	for <nfsv4-web-archive@ietf.org>; Tue, 6 Apr 2004 16:08:26 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAws0-0003Eh-00
	for nfsv4-web-archive@ietf.org; Tue, 06 Apr 2004 16:08:28 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAwFV-0004h6-00
	for nfsv4-web-archive@ietf.org; Tue, 06 Apr 2004 15:28:42 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAvRZ-0007QF-00
	for nfsv4-web-archive@ietf.org; Tue, 06 Apr 2004 14:37:06 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BAvRY-0003QP-Av
	for nfsv4-web-archive@ietf.org; Tue, 06 Apr 2004 14:37:04 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAvNl-0002u3-O7; Tue, 06 Apr 2004 14:33:09 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BAtJ1-00061B-Em
	for nfsv4@optimus.ietf.org; Tue, 06 Apr 2004 12:20:07 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA28433
	for <nfsv4@ietf.org>; Tue, 6 Apr 2004 11:22:08 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BAsOw-0000nd-00
	for nfsv4@ietf.org; Tue, 06 Apr 2004 11:22:10 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BAs9L-0005yO-00
	for nfsv4@ietf.org; Tue, 06 Apr 2004 11:06:05 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BArjr-00025R-00
	for nfsv4@ietf.org; Tue, 06 Apr 2004 10:39:43 -0400
Received: from hawk.corp.netapp.com (hawk [10.57.156.122])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i36EdCZh026655
	for <nfsv4@ietf.org>; Tue, 6 Apr 2004 07:39:12 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by hawk.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i36EdCTR024399
	for <nfsv4@ietf.org>; Tue, 6 Apr 2004 07:39:12 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A6D3747@silver.nane.netapp.com>
Thread-Topic: Slight problem in section 8.5
Thread-Index: AcQb5Oc2aQ9687RtQLKg8shC6UGQNA==
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: <nfsv4@ietf.org>
Content-Transfer-Encoding: quoted-printable
Subject: [nfsv4] Slight problem in section 8.5
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 6 Apr 2004 07:39:01 -0700
Date: Tue, 6 Apr 2004 07:39:01 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable

Just noticed the following researching the STATEID-error issues.

RFC3530 (section 8.5) says:
> The following events cause implicit renewal of all of the leases for
> a given client (i.e., all those sharing a given clientid).  Each of
> these is a positive indication that the client is still active and
> that the associated state held at the server, for the client, is
> still valid.
>
> o  An OPEN with a valid clientid.
>
> o  Any operation made with a valid stateid (CLOSE, DELEGPURGE,
>    DELEGRETURN, LOCK, LOCKU, OPEN, OPEN_CONFIRM, OPEN_DOWNGRADE,
>    READ, RENEW, SETATTR, WRITE).  This does not include the special
>    stateids of all bits 0 or all bits 1.

RENEW and DELEGPURGE can't be done with a valid stateid since they
take a client id.  I guess this text didn't get updated when RENEW's
parameters were changed but not sure how the DELEGPURGE thing happened.

I must have looked at this text a dozen times and without noticing the=20
problem.

Given that section 14.2.28 says that RENEW renews the lease (and that
section 8.5 does not say "these events, and only these events") we are
OK on RENEW.

For DELEGPURGE, I guess the spec is telling the server not to renew the=20
lease.  One thing to note, when we try to fix this up, is that if=20
section 8.5 is fixed up in the obvious way, by saying that the lease=20
is to be renwed when DELEGPURGE is done with a valid clientid, it would
imply that if a client did a DELEGPURGE with a valid clientid, the=20
server should renew the lease, even when it returns NFS4ERR_NOTSUPP :-)

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



From exim@www1.ietf.org  Thu Apr  8 19:11:49 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA06264
	for <nfsv4-archive@odin.ietf.org>; Thu, 8 Apr 2004 19:11:49 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBig7-00047G-Tz
	for nfsv4-archive@odin.ietf.org; Thu, 08 Apr 2004 19:11:23 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i38NBNvA015822
	for nfsv4-archive@odin.ietf.org; Thu, 8 Apr 2004 19:11:23 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBig7-000474-Ow
	for nfsv4-web-archive@optimus.ietf.org; Thu, 08 Apr 2004 19:11:23 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA06195
	for <nfsv4-web-archive@ietf.org>; Thu, 8 Apr 2004 19:11:18 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBig3-000283-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 19:11:19 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BBi0C-0005m5-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 18:28:08 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBfyd-0004rB-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 16:18:19 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BBfyd-0002Vm-M7
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 16:18:19 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBfyS-0007df-U8; Thu, 08 Apr 2004 16:18:08 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBfy1-0007Zx-9m
	for nfsv4@optimus.ietf.org; Thu, 08 Apr 2004 16:17:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA17848
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 16:17:36 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBfxx-0004j5-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 16:17:37 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BBcwK-0000d2-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 13:03:45 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBaFy-0005tg-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 10:11:50 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i38EBJZh000816
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 07:11:19 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i38EBJbc003160
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 07:11:19 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548AB80CF2@silver.nane.netapp.com>
Thread-Topic: Making v4.1 a reality
Thread-Index: AcQdc1txGVNDpP4YS/2Y1y5Lafzv9g==
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: <nfsv4@ietf.org>
Content-Transfer-Encoding: quoted-printable
Subject: [nfsv4] Making v4.1 a reality
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 8 Apr 2004 07:11:15 -0700
Date: Thu, 8 Apr 2004 07:11:15 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable

For the very very busy, let me summarize: We need to get going on v4.1
and should be ready, at the June Bakeathon to do the planning for the=20
actual writing of the spec.  I urge you not to hit delete and to keep=20
reading.

There's been a lot of discussion in the past of how to decide when a
minor version was ready to happen.  For a while, we talked about time-
based minor versions and then interest seemed to lag.  Another approach=20
mentioned was to cut off a minor version when it had enough stuff.  I'm=20
going to argue that it has been quite a while and that we have enough=20
stuff and we should be thinking about going ahead with v4.1 and creating

a schedule (yikes!) for actually writing a spec.  The rest of this mail=20
discusses where we are with v4.1, as input to the schedule discussion. =20
At the end, I make some tentative suggestions for the beginnings of a=20
v4.1 schedule.  My main purpose here is not to say that my approach=20
to this issue is the correct one (although of course I think it is :-),
but to get some discussion going with the hope that the working group
can arrive at a consensus.

The most important thing to recognize is that v4.1 has already a made
a lot of progress.  I think we now have a set of content that will=20
represent a significant advance for v4, but which is small enough that=20
making a v4.1 spec a reality is not, or at least should not be, a
daunting=20
task.  We have internet drafts for many significant items that will be=20
included in v4.1.  I would argue that we now have them for *all* the=20
major items of v4.1, i.e. that we should draw a line under the content=20
for v4.1, at least for major items, i.e. things that involve a
significant
protocol development effort.  I think that if we don't draw a line=20
under v4.1 soon, we will be faced with additional content, v4.1 will be=20
delayed, get bigger and bigger, making the minor versioning process=20
more and more difficult.  I think now is the time to act to prevent
that. =20
What does the working group think?=20

Let's look at the existing items on the presumed-to-be-in-v4.1
list.  I want to make sure the group agrees on the content of
the list and that I haven't forgotten anything:

     Sessions

     RDMA
  =20
     CCM
 =20
     Directory Delegations

All of these items have an associated internet draft, so at least we
have a relatively complete proposal.  Unless someone has some other=20
proposal just about ready to submit (are there any?) it is hard to=20
imagine any comparable item not holding up v4.1 a lot.

Of these items, sessions is the farthest along with a number of=20
iterations of the draft and even some significant prototype
implementation
work.  I understand Tom Talpey will be telling the working group about
that.  CCM has not had as much attention but I don't see it as at all
troublesome.  (I'm assuming that CCM needs to be referenced in the
v4.1 spec, but maybe it can be done totally independently.  Can Mike
comment
on this?).  There hasn't been much (or perhaps any) discussion of the
directory delegations draft.  I think we need that discussion to refine
the existing proposal so that we have something that can go into v4.1.
My impression is that there are people who are very interested in having
directory delegations in v4.1.  I urge them to read the directory
delegations draft and comment on what changes they would like to see.
If they think the existing draft is perfect, then they can simply say
that.

RDMA has some associated difficulty because of the charter issue, but
because of how Tom, Spencer and Brent have structured things (Thanks,
guys) the issue can be successfully finessed.  While I'm sure our=20
co-chairs are doing the best they can as the area directors grind=20
exceedingly fine in considering this, there doesn't appear to be any=20
way of coming up with an ETA for the charter change.  My answer is
that we can proceed to writing the v4.1 spec without RDMA for the=20
moment, in the expectation that the area directors will eventually=20
do the right thing.  Since RDMA is just another transport, we can=20
have the v4.1 spec make the point that it may be used with multiple=20
transports.  When and if the charter change comes through, we can be=20
more explicit about the opportunities that certain forms of transport=20
provide.  Until the charter change we cannot refer to RDMA in a working=20
group document, but that does not prevent us from contemplating, purely=20
as individuals, what we might put in a v4.1 spec regarding RDMA, should=20
it happen that such a charter change is approved :-)

So, besides the "major items" what other smaller things might be
included?

One class of things is minor operation extensions.  I think Mike Eisler=20
already has a draft out for SECINFO extensions.  Are there others that=20
a real deadline would bring forth?

Similarly with requests for new attributes.  Any of those that people=20
want to get into V4?

Another class of things is improved spec explanations of some areas. =20
These are not protocol changes for v4.1, but needed changes in the spec
to make things clearer.  Given that there will be a new spec for v4.1,
I think it makes sense to clean up certain areas where the existing=20
spec is not clear enough for people to implement.  In a lot of=20
cases, the necessary information can be ferreted out of the group
archives but the spec would be much preferable.  As an example, I'm=20
working on the changes to define clearly how referrals should be=20
implemented in v4, which a spec deadline could encourage me to=20
actually finish and submit in our lifetimes.  I believe there may=20
be material relating to ACL implementation, that makes sense to=20
include in the v4.1 spec.

So as to the process of writing the spec, I think we have a=20
reasonable base in RFC3530.  Given that the changes are not
enormous (at least compared to the v3-v4 delta), getting a spec
together should not be all that onerous, especially given the
work that has already been done defining the major features
that we want to include.  I think it makes most sense to have=20
the various draft authors be responsible for turning their drafts=20
into the appropriate deltas for turning RFC3530 into a v4.1 spec. =20
The alternative, having Spencer do it all, has a certain attraction,
but it really isn't fair.

So here is my rough guesses at a schedule.  Where am I really off?

    Basic drafts for all major content submitted by April 1.  In=20
    other words, no more.

    Group decisions on major content (what's in, what's out, and
    resolution of any fundamental issues on scope) by May 1.

    Proposals, including relevant protocol details for all changes
    that involve OTW changes by May 1.

    Group consensus on what changes should go into v4.1 and in
    what form by June 1.

    Suggested content for all other spec changes by June 1.  These=20
    should be fairly detailed but do not have to be at the level of
    spec deltas.

This is aggressive but if we can do this then we can get together=20
and discuss the writing of the spec face-to-face at the Bakeathon. =20
I'm talking about a real working session where we plan the actual=20
writing of the spec (i.e. Spencer gives us our writing assignments).
I hope I have not just reduced Bakeathon attendance substantially,=20
but I really think it makes sense to get going on this soon.=20

So to summarize my views:

1) It's time to draw a line under the content of v4.1 at least for=20
   major items.

2) We need to establish a schedule for any smaller additions to the
   v4.1 content.

3) June 1 seems a reasonable date to rap up the v4.1 content, with=20
   any additions thereafter limited to exceptional circumstances.

4) We should start planning on the actual writing of the v4.1 spec
   at the June Bakeathon. (the planning, not the actual writing at
   the Bakeathon)

5) We can (and should) have a reasonable v4.1 draft by the end of
   the year.  There will still be stuff to fix up but we will have=20
   something that people can use for early implementation work.

I'd like to get some discussion on these ideas started.  If you=20
disagree with any or all of these ideas, let's talk about it and
see where the discussion leads (and if you agree with all of them,
then saying that might be nice, too :-).

Thanks for listening.

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



From exim@www1.ietf.org  Thu Apr  8 21:16:38 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA19728
	for <nfsv4-archive@odin.ietf.org>; Thu, 8 Apr 2004 21:16:37 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBkcr-0003I2-S9
	for nfsv4-archive@odin.ietf.org; Thu, 08 Apr 2004 21:16:10 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i391G9Fm012642
	for nfsv4-archive@odin.ietf.org; Thu, 8 Apr 2004 21:16:09 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBkcr-0003Hp-Nt
	for nfsv4-web-archive@optimus.ietf.org; Thu, 08 Apr 2004 21:16:09 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA19626
	for <nfsv4-web-archive@ietf.org>; Thu, 8 Apr 2004 21:16:07 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBkcn-0000nj-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 21:16:05 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BBkKh-0006sr-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 20:57:25 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBk79-0004L8-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 20:43:23 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BBju1-0005Jh-6V
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 20:29:50 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBjtJ-00053U-Em; Thu, 08 Apr 2004 20:29:05 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBjQE-0000V1-QH
	for nfsv4@optimus.ietf.org; Thu, 08 Apr 2004 19:59:04 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA12387
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 19:58:59 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBjQA-0007lT-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 19:58:58 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BBiU9-00017l-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 18:59:02 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBgq3-0004KV-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 17:13:32 -0400
Received: from jurassic.eng.sun.com ([129.146.88.130])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i38LD16N004511
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 14:13:01 -0700 (PDT)
Received: from eng.sun.com (terra.SFBay.Sun.COM [129.146.86.99])
	by jurassic.eng.sun.com (8.12.11+Sun/8.12.11) with ESMTP id i38LD0xU302258
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 14:13:01 -0700 (PDT)
Message-ID: <4075C053.3070504@eng.sun.com>
From: Brent Callaghan <brent@eng.sun.com>
Reply-To: Brent.Callaghan@Sun.COM
Organization: Sun Microsystems
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.5b) Gecko/20030911
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: nfsv4@ietf.org
Subject: Re: [nfsv4] Making v4.1 a reality
References: <C8CF60CFC4D8A74E9945E32CF096548AB80CF2@silver.nane.netapp.com>
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548AB80CF2@silver.nane.netapp.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 08 Apr 2004 14:12:51 -0700
Date: Thu, 08 Apr 2004 14:12:51 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


The IETF process prefers to keep working groups narrowly focused.
Hence a charter with specific accomplishments and a set of milestones
leading to (hopefully) a successful and timely conclusion.

However, the NFSv4 WG seems to have a constantly changing charter,
a smorgasbord of features, and no end in sight.  The NFSv4 WG
should be left to finish what it started: NFSv4.0 - get it to Draft status.

Wouldn't it be better to begin NFSv4.1 work within a new WG
and leverage the IETF process to define what we'll do in it ?

I think Dave's message would be a great kickoff for a BOF at
the next IETF meeting.

	Brent


Noveck, Dave wrote:
> For the very very busy, let me summarize: We need to get going on v4.1
> and should be ready, at the June Bakeathon to do the planning for the 
> actual writing of the spec.  I urge you not to hit delete and to keep 
> reading.
 >
 > <deleted>


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



From exim@www1.ietf.org  Thu Apr  8 22:17:51 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA22950
	for <nfsv4-archive@odin.ietf.org>; Thu, 8 Apr 2004 22:17:51 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBla8-0000g3-2l
	for nfsv4-archive@odin.ietf.org; Thu, 08 Apr 2004 22:17:24 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i392HOgX002599
	for nfsv4-archive@odin.ietf.org; Thu, 8 Apr 2004 22:17:24 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBla7-0000fq-V6
	for nfsv4-web-archive@optimus.ietf.org; Thu, 08 Apr 2004 22:17:24 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA22907
	for <nfsv4-web-archive@ietf.org>; Thu, 8 Apr 2004 22:17:20 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBla4-00055o-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 22:17:20 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BBlXu-0004xu-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 22:15:07 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBlVt-0004qE-00
	for nfsv4-web-archive@ietf.org; Thu, 08 Apr 2004 22:13:01 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBlVt-0000PZ-TX; Thu, 08 Apr 2004 22:13:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BBlVI-0000OS-GA
	for nfsv4@optimus.ietf.org; Thu, 08 Apr 2004 22:12:26 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA22717
	for <nfsv4@ietf.org>; Thu, 8 Apr 2004 22:12:21 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBlVF-0004lR-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 22:12:21 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BBlSa-0004a4-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 22:09:36 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BBlP8-0004Im-00
	for nfsv4@ietf.org; Thu, 08 Apr 2004 22:06:02 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3925OZh004033;
	Thu, 8 Apr 2004 19:05:24 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3925Obc006549;
	Thu, 8 Apr 2004 19:05:24 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: [nfsv4] Making v4.1 a reality
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED45@silver.nane.netapp.com>
Thread-Topic: [nfsv4] Making v4.1 a reality
Thread-Index: AcQdydsmb7iN4c7ZTcqNfFLWloH5YgAAj2XQ
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: <Brent.Callaghan@Sun.COM>, <nfsv4@ietf.org>
Content-Transfer-Encoding: quoted-printable
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 8 Apr 2004 19:05:14 -0700
Date: Thu, 8 Apr 2004 19:05:14 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable

=20
> The IETF process prefers to keep working groups narrowly focused.
> Hence a charter with specific accomplishments and a set of milestones
> leading to (hopefully) a successful and timely conclusion.

> However, the NFSv4 WG seems to have a constantly changing charter,

"constantly changing"?  Maybe I haven't kept up but I am not under
the impression that the charter has changed all that many times,
certainly not constantly or continually.

Brian and Spencer would know the truth of it.  But will they tell us?
Have you guys been continually changing the charter behind our backs?

I was under the impression that we were already chartered to do
stuff for minor versions.  Am I wrong or has that changed/been-changing?

=20
> a smorgasbord of features, and no end in sight.  The NFSv4 WG
> should be left to finish what it started: NFSv4.0 - get it to Draft =
status.

> Wouldn't it be better to begin NFSv4.1 work within a new WG
> and leverage the IETF process to define what we'll do in it ?

Why would you suppose that that would be better?  It sounds like a way
of increasing overhead.  The fact of the matter is that the people
on this "new" working group would be essentially those that are on the
current working group, and the reason for that is that these are minor
versions, which have been prepared for by the minor versioning model
in RFC 3530, which is designed for modest incremental additions to v4.
We would naturally expect that the same set of people, more or less,=20
would be involved.

With the smaller changes, the matter is particular clear.  There is a
problem with SECINFO, that Mike has discussed in this working group and
I presume we would have been fixed in this working group, had we =
recognized
it in time.  We cannot fix it in v4.0 because it is an OTW change but
we'd like to do it when we can, i.e. in v4.1.  Similarly with new=20
recommended attributes.  If the new working group were really a new
working group (i.e. it didn't have about the same membership), would
they care about fixing the v4 working groups issues with the current
protocol.

Other items are a bit bigger, but the reality is the same.  The session
stuff is motivated in large part by the numerous sequence mechanisms
in v4.0, which despite their multiplicity, only do part of the job.
Instead, one mechanism takes care of sequencing/EOS, which is obviously
better (at least I think so).  We made a mistake.  When we figured out=20
how to fix it it was to late in the cycle to make a change like that.  =
So
this is not as minor as an added attribute, but neither is it a =
wholesale
revision to the protocol.  It keeps most of the existing protocol =
intact.
That is, it is an incremental change, which is better dealt with by the
same group of people, whether they are officially constituted as the
v4 working or the v4.1 working group.

Given that this will be the same group of people (people will join or
lose interest but there needs to be an essential continuity), a separate
group administratively just seems like overhead.

> I think Dave's message would be a great kickoff for a BOF at
> the next IETF meeting.

I can't see how you can come to that conclusion.  I would be proposing
that we start a new working group and that the only significant items
on the agenda for the new working group, would be those that had been
discussed before April 1 (whenever this meeting is) in another working
group.  What kind of new working group is that?  Besides the fact that,
as Beepy has pointed out, a lot of the people involved in v4 and =
presumably
v4.1 don't often go to IETF meeting.  This may not be in accord with the
IETF process and spirit but it happens to be the ways things are.

A new working group only makes sense if it has a more expansive charter,
but in that case we would be waiting for v4.1 for a long time, longer =
than
we would find reasonable.  A new working group would make sense for =
NFSv5
but I doubt there would be enough interest in that to actually form a=20
group.  We need a bit of time for people to forget the long slog to get
to v4 (five years for me).  I think most people are interested in =
smaller
incremental changes that build on v4.0.

=20

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



From exim@www1.ietf.org  Fri Apr  9 18:40:08 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA28963
	for <nfsv4-archive@odin.ietf.org>; Fri, 9 Apr 2004 18:40:08 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC4ez-0004SY-JX
	for nfsv4-archive@odin.ietf.org; Fri, 09 Apr 2004 18:39:42 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i39Mdf5U017142
	for nfsv4-archive@odin.ietf.org; Fri, 9 Apr 2004 18:39:41 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC4ex-0004SP-AU
	for nfsv4-web-archive@optimus.ietf.org; Fri, 09 Apr 2004 18:39:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA28903
	for <nfsv4-web-archive@ietf.org>; Fri, 9 Apr 2004 18:39:34 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC4es-0002ad-00
	for nfsv4-web-archive@ietf.org; Fri, 09 Apr 2004 18:39:34 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BC4bu-0002N3-00
	for nfsv4-web-archive@ietf.org; Fri, 09 Apr 2004 18:36:33 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC4Xg-0001zi-00
	for nfsv4-web-archive@ietf.org; Fri, 09 Apr 2004 18:32:08 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC4XZ-0003CY-Fi; Fri, 09 Apr 2004 18:32:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC4Wc-0003Aw-Pm
	for nfsv4@optimus.ietf.org; Fri, 09 Apr 2004 18:31:04 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA28361
	for <nfsv4@ietf.org>; Fri, 9 Apr 2004 18:30:57 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC4WY-0001sK-00
	for nfsv4@ietf.org; Fri, 09 Apr 2004 18:30:58 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BC4Sm-0001St-00
	for nfsv4@ietf.org; Fri, 09 Apr 2004 18:27:07 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC4Mz-0000uh-00
	for nfsv4@ietf.org; Fri, 09 Apr 2004 18:21:05 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i39MKSZh005955;
	Fri, 9 Apr 2004 15:20:28 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i39MKMbc009886;
	Fri, 9 Apr 2004 15:20:22 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C41E80.D78B32A4"
Subject: RE: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED4A@silver.nane.netapp.com>
Thread-Topic: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
Thread-Index: AcQbRI3QR4/Sk94rS0WlayDUpuzOfgDOd37Q
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Spencer Shepler" <spencer.shepler@sun.com>
Cc: "Stevan Steve Allen" <scallen@us.ibm.com>, <nfsv4@ietf.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Fri, 9 Apr 2004 15:20:19 -0700
Date: Fri, 9 Apr 2004 15:20:19 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,HTML_20_30,
	HTML_FONTCOLOR_BLUE,HTML_FONTCOLOR_UNSAFE,HTML_MESSAGE autolearn=no 
	version=2.60

This is a multi-part message in MIME format.

------_=_NextPart_001_01C41E80.D78B32A4
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Spencer wrote:

I would like to reiterate Dave's comment above that the server "do the
best it can".=20

A client will likely treat EXPIRED differently than BAD_STATEID in that
EXPIRED=20

applies to the entire clientid and BAD_STATEID is just for that
particular file (or=20

likely to be that particular file). The recovery paths could apply
different=20

approaches and if a simple timestamp in the stateid provides a directive


then EXPIRED would have greater precedence than BAD_STATEID in=20

my opinion and experience.=20

I think what you are saying/implying is very reasonable, but the spec is
not very=20

clear/forthcoming about these issues.  Section 8.8 talks about
validating your

stateid's when a lease expiration may have occurred, but the section
ends its

discussion of validation with a statement that just talks about failure
generically

and does not discuss the two errors above.  I think it would help (me)
to add =20

to the last paragraph something like:

When the error return is NFS4ERR_EXPIRED, the client is entitled to
assume that

all of the stateid's associated with the same clientid as the one used
have been freed

as a result of the lease expiration.  On the other hand, when the error
is NFS4ERR_BAD_STATEID,

the client is only entitled to assume that that particular stateid is
invalid, presumably due=20

to consequences of the lease expiration, such as loss of a lock to a
conflicting request.

It may not assume that other stateid's associated with the same clientid
have also been lost,

until such information has been determined for the stateid's
individually.  It is helpful for a=20

server to save information about expired leases so that it may give the
NFS4ERR_EXPIRED=20

appropriately, but when when it cannot save such information for
whatever reason, it should

return NFS4ERR_BAD_STATEID in order to not to mislead the client into
releasing lock=20

state that the server might still be hold.

=20

Does that correspond to your understanding?

=20

One other thing is that if you look at the error definitions, the
assumptions that I have been

making (and that I think you are making as well) are not exactly
obvious:

   NFS4ERR_BAD_STATEID   A stateid generated by the current server
                         instance, but which does not designate any
                         locking state (either current or superseded)
                         for a current lockowner-file pair, was used.

  NFS4ERR_EXPIRED       A lease has expired that is being used in the
                         current operation.


But a lease has expired in all the cases we are talking about.  Being
more

explicit here would help I think.


=20

=20

=20

-----Original Message-----
From: Spencer Shepler [mailto:spencer.shepler@sun.com]=20
Sent: Monday, April 05, 2004 3:33 PM
To: Noveck, Dave
Cc: Stevan Steve Allen; nfsv4@ietf.org
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?





On Apr 5, 2004, at 12:36 PM, Noveck, Dave wrote:=20


You can distinguish STALECLIENTID without saving clientid's forever.=20



If you put the server instance (or reboot time) in one half of the
client id then you can determine if the server has rebooted, simply by
comparing that field.=20



The spec text does not talk about EXPIRED with regard to client id's. It
does with respect to stateid's.  However, the ops that list
STALECLIENTID as an error also list EXPIRED so I don't see what else you
could return if you get a clientid you don't recognize and it doesn't
show that you have rebooted.=20



One exception is DELEGPURGE.  It shows STALECLIENTID but not EXPIRED so
it isn't clear what you would do if you get a clientid you don't
recognize and it doesn't look stale.  INVAL would be the obvious answer
but that isn't on the error list either :-(=20



So I think you have to be able to distinguish clientid's you gave out
from those your predecessor instance(s) would have given out essentially
forever.  However, for anything that looks like it cam from the current
server instance, if you don't recognize it, you return EXPIRED and there
is no issue of having to save them or distinguish those that expired
from others.  There is no BAD_CLIENTID error .  This conclusion does
seem to be at variance with the definition of EXPIRED, "A lease has
expired that is being used in the current operation", but there doesn't
seem to be any other error to use.=20

Which brings us to stateid's since there is a BAD_STATEID error.  I
believe you can do the same thing for stateid's that you do for
clientid's to distinguish when to return STALE_STATEID.  This leaves the
question of distinguishing EXPIRED from BAD_STATEID.=20

I don't see where the spec gives any useful guidance on how one is to
distinguish these two cases without storing expired stateid's forever
(have I missed it?).  My answer is to do the best you can but
practically speaking I think clients have to be prepared to get
BAD_STATEID and do what they would have done if they got EXPIRED.
Either one says the server is still up, you lost your lock, and if you
try to re-establish it, you may not succeed and even if you do, you
should be aware that someone may have had a conflicting lock in the
interim, i.e. you cannot assume continuity of your lock possession.=20


I would like to reiterate Dave's comment above that the server "do the
best it can".=20

A client will likely treat EXPIRED differently than BAD_STATEID in that
EXPIRED=20

applies to the entire clientid and BAD_STATEID is just for that
particular file (or=20

likely to be that particular file). The recovery paths could apply
different=20

approaches and if a simple timestamp in the stateid provides a directive


then EXPIRED would have greater precedence than BAD_STATEID in=20

my opinion and experience.=20










-----Original Message-----=20

From: Stevan Steve Allen [mailto:scallen@us.ibm.com]=20

Sent: Monday, April 05, 2004 12:21 PM=20

To: nfsv4@ietf.org=20

Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?=20



Spencer,  I fell off the wagon here.=20


> NFS4ERR_STALE_CLIENTID is only returned when the server=20

> has restarted.=20


Seems the server may not find a server generated clientid for 2
conditions.=20

  o Server restarted=20

  o Clientid was released (freed)=20


Your statement indicates the server has to determine which condition
occurred.  Rick asked how long the clientid has to be kept around (so
separate errors can be returned).=20


Thanks,=20

Stevan C. Allen=20


------_=_NextPart_001_01C41E80.D78B32A4
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=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR></HEAD>
<BODY>
<DIV>
<P><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D643590222-09042004>Spencer=20
wrote:</SPAN></FONT></P>
<P>I would like to reiterate Dave's comment above that the server "do =
the best=20
it can". </P>
<P>A client will likely treat EXPIRED differently than BAD_STATEID in =
that=20
EXPIRED </P>
<P>applies to the entire clientid and BAD_STATEID is just for that =
particular=20
file (or </P>
<P>likely to be that particular file). The recovery paths could apply =
different=20
</P>
<P>approaches and if a simple timestamp in the stateid provides a =
directive </P>
<P>then EXPIRED would have greater precedence than BAD_STATEID in </P>
<P>my opinion and experience. </P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2>I think=20
what you are saying/implying is very reasonable, but the spec is not =
very=20
</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff=20
size=3D2>clear/</FONT></SPAN><SPAN class=3D643590222-09042004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>forthcoming about these issues.&nbsp; Section =
8.8 talks=20
about validating your</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff=20
size=3D2>stateid's when a lease expiration may have occurred, but the =
section ends=20
its</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff=20
size=3D2>discussion of validation with a statement that just talks about =
failure=20
generically</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2>and does=20
not discuss the two errors above.&nbsp; I think it would help (me) to =
add&nbsp;=20
</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2>to the=20
last paragraph something </FONT></SPAN><SPAN =
class=3D643590222-09042004><FONT=20
face=3DArial color=3D#0000ff size=3D2>like:</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2><EM>When=20
the error return is NFS4ERR_EXPIRED, the client is entitled to assume=20
that</EM></FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff size=3D2>all=20
of the stateid's associated with the same clientid as the one used have =
been=20
freed</FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff size=3D2>as a=20
result of the lease expiration.&nbsp; On the other hand, when the error =
is=20
NFS4ERR_BAD_STATEID,</FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff size=3D2>the=20
client is only entitled to assume that that particular stateid is =
invalid,=20
presumably due </FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff size=3D2>to=20
consequences of the lease expiration, such as loss of a lock to a =
conflicting=20
request.</FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff size=3D2>It=20
may not assume that other stateid's associated with the same clientid =
have also=20
been lost,</FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>until such information has been determined for the stateid's=20
individually.&nbsp; It is helpful for a </FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>server to save information about expired leases so that it may =
give the=20
NFS4ERR_EXPIRED </FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>appropriately, but when when it cannot save such information =
for whatever=20
reason, it should</FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>return NFS4ERR_BAD_STATEID in order to not to mislead the =
client into=20
releasing lock </FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>state that the server might still be =
hold.</FONT></EM></SPAN></P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></EM></SPAN>&nbsp;</P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2>Does=20
that correspond to your understanding?</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2>One=20
other thing is that if you look at the error definitions, the =
assumptions that I=20
have been</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff =
size=3D2>making=20
(and that I think you are making as well) are not exactly=20
obvious:</FONT></SPAN></P>
<P><SPAN class=3D643590222-09042004>&nbsp;&nbsp; =
NFS4ERR_BAD_STATEID&nbsp;&nbsp; A=20
stateid generated by the current=20
server<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
instance, but which does not designate=20
any<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
locking state (either current or=20
superseded)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
for a current lockowner-file pair, was used.</SPAN></P><SPAN=20
class=3D643590222-09042004></SPAN></DIV>
<DIV><SPAN class=3D643590222-09042004>&nbsp;=20
NFS4ERR_EXPIRED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A lease has expired =
that is=20
being used in=20
the<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
current operation.<BR>
<P><SPAN class=3D643590222-09042004></SPAN><FONT face=3DArial><FONT=20
color=3D#0000ff><FONT size=3D2>B<SPAN class=3D643590222-09042004>ut a =
lease has=20
expired in all the cases we are talking about.&nbsp; Being=20
more</SPAN></FONT></FONT></FONT></P>
<P><FONT><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D643590222-09042004></SPAN></FONT></FONT></FONT><SPAN=20
class=3D643590222-09042004></SPAN><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2>e<SPAN class=3D643590222-09042004>xplicit here would help I=20
think.</SPAN></FONT></FONT></FONT><BR></P></SPAN>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</P>
<P><SPAN class=3D643590222-09042004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</P>
<P><SPAN class=3D643590222-09042004><EM><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></EM></SPAN>&nbsp;</P></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Spencer Shepler=20
  [mailto:spencer.shepler@sun.com] <BR><B>Sent:</B> Monday, April 05, =
2004 3:33=20
  PM<BR><B>To:</B> Noveck, Dave<BR><B>Cc:</B> Stevan Steve Allen;=20
  nfsv4@ietf.org<BR><B>Subject:</B> Re: [nfsv4] re: NFS4ERR_EXPIRED or=20
  NFS4ERR_STALECLIENTID?<BR><BR></FONT></DIV><BR><BR>
  <P>On Apr 5, 2004, at 12:36 PM, Noveck, Dave wrote: </P><BR>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>You can distinguish =
STALECLIENTID=20
  without saving clientid's forever.</FONT> </P>
  <P> </P>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>If you put the server =
instance (or=20
  reboot time) in one half of the client id then you can determine if =
the server=20
  has rebooted, simply by comparing that field.</FONT> </P>
  <P> </P>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>The spec text does not =
talk about=20
  EXPIRED with regard to client id's. It does with respect to =
stateid's.&nbsp;=20
  However, the ops that list STALECLIENTID as an error also list EXPIRED =
so I=20
  don't see what else you could return if you get a clientid you don't =
recognize=20
  and it doesn't show that you have rebooted.</FONT> </P>
  <P> </P>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>One exception is =
DELEGPURGE.&nbsp; It=20
  shows STALECLIENTID but not EXPIRED so it isn't clear what you would =
do if you=20
  get a clientid you don't recognize and it doesn't look stale.&nbsp; =
INVAL=20
  would be the obvious answer but that isn't on the error list either =
:-(</FONT>=20
  </P>
  <P> </P>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>So I think you have to =
be able to=20
  distinguish clientid's you gave out from those your predecessor =
instance(s)=20
  would have given out essentially forever.&nbsp; However, for anything =
that=20
  looks like it cam from the current server instance, if you don't =
recognize it,=20
  you return EXPIRED and there is no issue of having to save them or =
distinguish=20
  those that expired from others.&nbsp; There is no BAD_CLIENTID=20
  error&nbsp;.&nbsp; This conclusion does seem to be at variance with =
the=20
  definition of EXPIRED, "A lease has expired that is being used in the =
current=20
  operation", but there doesn't seem to be any other error to =
use.</FONT> </P>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>Which brings us to =
stateid's since=20
  there is a BAD_STATEID error.&nbsp; I believe you can do the same =
thing for=20
  stateid's that you do for clientid's to distinguish when to return=20
  STALE_STATEID.&nbsp; This leaves the question&nbsp;of distinguishing =
EXPIRED=20
  from BAD_STATEID.</FONT> </P>
  <P><FONT face=3DArial color=3D#000ff0 size=3D2>I don't see where the =
spec gives any=20
  useful guidance on how one is to distinguish these two cases without =
storing=20
  expired stateid's forever (have I missed it?).&nbsp; My answer is to =
do the=20
  best you can but practically speaking I think clients have to be =
prepared to=20
  get BAD_STATEID and do what they would have done if they got =
EXPIRED.&nbsp;=20
  Either one says the server is still up, you lost your lock, and if you =
try to=20
  re-establish it, you may not succeed and even if you do, you should be =
aware=20
  that someone may have had a conflicting lock in the interim, i.e. you =
cannot=20
  assume continuity of your lock possession.</FONT> </P><BR>
  <P>I would like to reiterate Dave's comment above that the server "do =
the best=20
  it can". </P>
  <P>A client will likely treat EXPIRED differently than BAD_STATEID in =
that=20
  EXPIRED </P>
  <P>applies to the entire clientid and BAD_STATEID is just for that =
particular=20
  file (or </P>
  <P>likely to be that particular file). The recovery paths could apply=20
  different </P>
  <P>approaches and if a simple timestamp in the stateid provides a =
directive=20
  </P>
  <P>then EXPIRED would have greater precedence than BAD_STATEID in </P>
  <P>my opinion and experience. </P><BR>
  <P> </P>
  <P> </P>
  <P> </P>
  <P> </P>
  <P><FONT face=3DTahoma size=3D2>-----Original Message-----</FONT> </P>
  <P><B><FONT face=3DTahoma size=3D2>From:</FONT></B><B></B><B></B><FONT =
face=3DTahoma=20
  size=3D2> Stevan Steve Allen [mailto:scallen@us.ibm.com]</FONT> </P>
  <P><FONT face=3DTahoma size=3D2></FONT><B><FONT face=3DTahoma=20
  size=3D2>Sent:</FONT></B><FONT face=3DTahoma size=3D2> Monday, April =
05, 2004 12:21=20
  PM</FONT> </P>
  <P><B><FONT face=3DTahoma size=3D2>To:</FONT></B><B></B><B></B><FONT =
face=3DTahoma=20
  size=3D2> nfsv4@ietf.org</FONT> </P>
  <P><B><FONT face=3DTahoma =
size=3D2>Subject:</FONT></B><B></B><B></B><FONT=20
  face=3DTahoma size=3D2> Re: [nfsv4] re: NFS4ERR_EXPIRED or=20
  NFS4ERR_STALECLIENTID?</FONT> </P><BR><BR>
  <P><FONT size=3D2>Spencer, &nbsp;I fell off the wagon here.</FONT> =
</P><BR>
  <P><FONT face=3D"Courier New">&gt; NFS4ERR_STALE_CLIENTID is only =
returned when=20
  the server</FONT> </P>
  <P><FONT face=3D"Courier New">&gt; has restarted.</FONT> </P><BR>
  <P><FONT size=3D2>Seems the server may not find a server generated =
clientid for=20
  2 conditions.</FONT> </P>
  <P><FONT size=3D2>&nbsp; o Server restarted</FONT> </P>
  <P><FONT size=3D2>&nbsp; o Clientid was released (freed)</FONT> =
</P><BR>
  <P><FONT size=3D2>Your statement indicates the server has to determine =
which=20
  condition occurred. &nbsp;Rick asked how long the clientid has to be =
kept=20
  around (so separate errors can be returned).</FONT> </P><BR>
  <P><FONT size=3D2>Thanks,</FONT> </P>
  <P><FONT size=3D2>Stevan C. Allen</FONT> =
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C41E80.D78B32A4--

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



From exim@www1.ietf.org  Fri Apr  9 20:34:51 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA02925
	for <nfsv4-archive@odin.ietf.org>; Fri, 9 Apr 2004 20:34:51 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC6Qs-0005Q9-VJ
	for nfsv4-archive@odin.ietf.org; Fri, 09 Apr 2004 20:33:15 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3A0XE7B020833
	for nfsv4-archive@odin.ietf.org; Fri, 9 Apr 2004 20:33:14 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC6Qs-0005Pw-RL
	for nfsv4-web-archive@optimus.ietf.org; Fri, 09 Apr 2004 20:33:14 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA02862
	for <nfsv4-web-archive@ietf.org>; Fri, 9 Apr 2004 20:33:12 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC6Qq-00015C-00
	for nfsv4-web-archive@ietf.org; Fri, 09 Apr 2004 20:33:12 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BC6Pq-0000xI-00
	for nfsv4-web-archive@ietf.org; Fri, 09 Apr 2004 20:32:11 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC6Oj-0000oS-00
	for nfsv4-web-archive@ietf.org; Fri, 09 Apr 2004 20:31:01 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC6Oj-0005Dp-NU; Fri, 09 Apr 2004 20:31:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BC6OJ-0005Ca-PU
	for nfsv4@optimus.ietf.org; Fri, 09 Apr 2004 20:30:37 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA02742
	for <nfsv4@ietf.org>; Fri, 9 Apr 2004 20:30:32 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC6OF-0000hT-00
	for nfsv4@ietf.org; Fri, 09 Apr 2004 20:30:31 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BC6Mp-0000W9-00
	for nfsv4@ietf.org; Fri, 09 Apr 2004 20:29:04 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BC6Lo-0000DX-00
	for nfsv4@ietf.org; Fri, 09 Apr 2004 20:28:00 -0400
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i3A0RH6N013544;
	Fri, 9 Apr 2004 17:27:17 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-113.Central.Sun.COM [129.150.32.113])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3A0RGjW011595;
	Fri, 9 Apr 2004 17:27:16 -0700 (PDT)
In-Reply-To: <Pine.BSO.4.33.0403041429420.7507-100000@citi.umich.edu>
References: <Pine.BSO.4.33.0403041429420.7507-100000@citi.umich.edu>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <323634EE-8A86-11D8-8682-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] Issue with SETCLIENTID ?
To: Fredric Isaman <iisaman@citi.umich.edu>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Fri, 9 Apr 2004 19:29:58 -0500
Date: Fri, 9 Apr 2004 19:29:58 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Mar 4, 2004, at 2:07 PM, Fredric Isaman wrote:

> Assuming I am reading the RFC correctly, I see a problem with 
> SETCLIENTID.
>
> Using the RFC's notation, if a client sends
>
> SETCLIENTID{v,x,k} = {c,s}
> SETCLIENTIDCONFIRM{c,s}
> SETCLIENTID{v,x,l} = {c,t}
> client crashes and loses {c,t} values
>
> Now confirmed and unconfirmed lists on the server are such that a
> SETCLIENTID{u,x,l} with u!=v will not meet ANY condition in the
> implementation on page 210 of RFC 3530.  (The CITI server handles
> this by returning NFS4ERR_INVAL.)

I didn't see a response to this so....

It is covered later in the same section at the bottom of page 212.
In this paragraph:

    o  The server has previously recorded a confirmed { u, x, c, l, s }
       record such that v != u, l may or may not equal k, and recorded an
       unconfirmed { w, x, d, m, t } record such that c != d, t != s, m
       may or may not equal k, m may or may not equal l, and k may or may
       not equal l. Whether w == v or w != v makes no difference.  The
       server simply removes the unconfirmed { w, x, d, m, t } record and
       replaces it with an unconfirmed { v, x, e, k, r } record, such
       that e != d, e != c, r != t, r != s.

       The server returns { e, r }.

       The server awaits confirmation of { e, k } via
       SETCLIENTID_CONFIRM { e, r }.

---
So the unconfirmed record is removed and a new response is provided
to the client and it needs to confirm it.

Spencer


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



From exim@www1.ietf.org  Sat Apr 10 13:13:00 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA12116
	for <nfsv4-archive@odin.ietf.org>; Sat, 10 Apr 2004 13:13:00 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BCM1v-0001uO-IT
	for nfsv4-archive@odin.ietf.org; Sat, 10 Apr 2004 13:12:31 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3AHCVQB007336
	for nfsv4-archive@odin.ietf.org; Sat, 10 Apr 2004 13:12:31 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BCM1v-0001uF-Dk
	for nfsv4-web-archive@optimus.ietf.org; Sat, 10 Apr 2004 13:12:31 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA12089
	for <nfsv4-web-archive@ietf.org>; Sat, 10 Apr 2004 13:12:29 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BCM1s-0006bk-00
	for nfsv4-web-archive@ietf.org; Sat, 10 Apr 2004 13:12:28 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BCLzw-0006Hw-00
	for nfsv4-web-archive@ietf.org; Sat, 10 Apr 2004 13:10:29 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BCLyX-0005vW-00
	for nfsv4-web-archive@ietf.org; Sat, 10 Apr 2004 13:09:01 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BCLyX-0001oM-4e; Sat, 10 Apr 2004 13:09:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BCLxh-0001o4-6F
	for nfsv4@optimus.ietf.org; Sat, 10 Apr 2004 13:08:09 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11951
	for <nfsv4@ietf.org>; Sat, 10 Apr 2004 13:08:04 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BCLxd-0005tR-00
	for nfsv4@ietf.org; Sat, 10 Apr 2004 13:08:05 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BCLwI-0005iv-00
	for nfsv4@ietf.org; Sat, 10 Apr 2004 13:06:43 -0400
Received: from e35.co.us.ibm.com ([32.97.110.133])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BCLvl-0005Xa-00
	for nfsv4@ietf.org; Sat, 10 Apr 2004 13:06:09 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e35.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3AH5Snr119702
	for <nfsv4@ietf.org>; Sat, 10 Apr 2004 13:05:28 -0400
Received: from d03nm116.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3AH5Rta345564
	for <nfsv4@ietf.org>; Sat, 10 Apr 2004 11:05:28 -0600
From: Christopher T Vogan <cvogan@us.ibm.com>
To: nfsv4@ietf.org
Message-ID: <OF3474B00B.95A45DD3-ON87256E72.005DE1E2-87256E72.005DE1E3@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM116/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/10/2004 11:05:28
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=08BBE4E1DFCE67728f9e8a93df938690918c08BBE4E1DFCE6772"
Content-Disposition: inline
Subject: [nfsv4] Christopher T Vogan/San Jose/IBM is out of the office.
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 10 Apr 2004 11:05:26 -0600
Date: Sat, 10 Apr 2004 11:05:26 -0600
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no 
	version=2.60

--0__=08BBE4E1DFCE67728f9e8a93df938690918c08BBE4E1DFCE6772
Content-type: text/plain; charset=US-ASCII





I will be out of the office starting  04/09/2004 and will not return until
04/19/2004.

I will be on vacation till April 18th. Keith Chan will be filling in for my
absences.
--0__=08BBE4E1DFCE67728f9e8a93df938690918c08BBE4E1DFCE6772
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p>I will be out of the office starting  04/09/2004 and will not return until 04/19/2004.<br>
<br>
I will be on vacation till April 18th. Keith Chan will be filling in for my absences.</body></html>
--0__=08BBE4E1DFCE67728f9e8a93df938690918c08BBE4E1DFCE6772--


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



From exim@www1.ietf.org  Mon Apr 12 10:19:36 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA21463
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 10:19:36 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD2HF-0003kn-Rt
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 10:19:09 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CEJ9ua014429
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 10:19:09 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD2HF-0003ke-M5
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 10:19:09 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA21444
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 10:19:05 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD2HD-00073P-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 10:19:07 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD2GC-0006xE-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 10:18:04 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD2FH-0006r2-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 10:17:07 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD2FB-000395-BT; Mon, 12 Apr 2004 10:17:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD2Es-00031H-Gx
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 10:16:44 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA21208
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 10:16:37 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD2Eo-0006lQ-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 10:16:38 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD2Dn-0006aI-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 10:15:36 -0400
Received: from citi.umich.edu ([141.211.133.111])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD2C9-0006UG-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 10:13:53 -0400
Received: by citi.umich.edu (Postfix, from userid 103558)
	id 7251020857; Mon, 12 Apr 2004 10:13:44 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by citi.umich.edu (Postfix) with ESMTP
	id 638BD20341; Mon, 12 Apr 2004 10:13:44 -0400 (EDT)
From: Fredric Isaman <iisaman@citi.umich.edu>
To: Spencer Shepler <spencer.shepler@sun.com>
Cc: <nfsv4@ietf.org>
Subject: Re: [nfsv4] Issue with SETCLIENTID ?
In-Reply-To: <323634EE-8A86-11D8-8682-000A95DBCB70@sun.com>
Message-ID: <Pine.BSO.4.33.0404121009540.12506-100000@citi.umich.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 10:13:44 -0400 (EDT)
Date: Mon, 12 Apr 2004 10:13:44 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60

The problem I was pointing out is that it is NOT covered by the quoted
passage, because of the explicit c!=d condition.  I agree that the most
reasonable response is to allow the possibility that c==d.

		Fred

On Fri, 9 Apr 2004, Spencer Shepler wrote:

>
> On Mar 4, 2004, at 2:07 PM, Fredric Isaman wrote:
>
> > Assuming I am reading the RFC correctly, I see a problem with
> > SETCLIENTID.
> >
> > Using the RFC's notation, if a client sends
> >
> > SETCLIENTID{v,x,k} = {c,s}
> > SETCLIENTIDCONFIRM{c,s}
> > SETCLIENTID{v,x,l} = {c,t}
> > client crashes and loses {c,t} values
> >
> > Now confirmed and unconfirmed lists on the server are such that a
> > SETCLIENTID{u,x,l} with u!=v will not meet ANY condition in the
> > implementation on page 210 of RFC 3530.  (The CITI server handles
> > this by returning NFS4ERR_INVAL.)
>
> I didn't see a response to this so....
>
> It is covered later in the same section at the bottom of page 212.
> In this paragraph:
>
>     o  The server has previously recorded a confirmed { u, x, c, l, s }
>        record such that v != u, l may or may not equal k, and recorded an
>        unconfirmed { w, x, d, m, t } record such that c != d, t != s, m
>        may or may not equal k, m may or may not equal l, and k may or may
>        not equal l. Whether w == v or w != v makes no difference.  The
>        server simply removes the unconfirmed { w, x, d, m, t } record and
>        replaces it with an unconfirmed { v, x, e, k, r } record, such
>        that e != d, e != c, r != t, r != s.
>
>        The server returns { e, r }.
>
>        The server awaits confirmation of { e, k } via
>        SETCLIENTID_CONFIRM { e, r }.
>
> ---
> So the unconfirmed record is removed and a new response is provided
> to the client and it needs to confirm it.
>
> Spencer
>
>



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



From exim@www1.ietf.org  Mon Apr 12 15:27:29 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA08205
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 15:27:29 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD75B-0003fs-El
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 15:27:01 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CJR1XV014120
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 15:27:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD75B-0003ff-Aj
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 15:27:01 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA08141
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 15:26:59 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD759-0007Rk-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 15:26:59 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD73Z-0007Ds-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 15:25:22 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD72K-0006vs-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 15:24:04 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD72J-0003B0-0H; Mon, 12 Apr 2004 15:24:03 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD72B-0003AK-GK
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 15:23:55 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA07696
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 15:23:53 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD729-0006vY-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 15:23:53 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD70i-0006jX-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 15:22:25 -0400
Received: from brmea-mail-3.sun.com ([192.18.98.34])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD6y7-0006PT-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 15:19:43 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id i3CJJYrU001105;
	Mon, 12 Apr 2004 13:19:34 -0600 (MDT)
Received: from [192.168.0.3] (vpn-129-150-32-12.Central.Sun.COM [129.150.32.12])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3CJJXgr010133;
	Mon, 12 Apr 2004 12:19:33 -0700 (PDT)
In-Reply-To: <Pine.BSO.4.33.0404121009540.12506-100000@citi.umich.edu>
References: <Pine.BSO.4.33.0404121009540.12506-100000@citi.umich.edu>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <B7266221-8CB6-11D8-BE3D-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] Issue with SETCLIENTID ?
To: Fredric Isaman <iisaman@citi.umich.edu>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 14:22:19 -0500
Date: Mon, 12 Apr 2004 14:22:19 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 12, 2004, at 9:13 AM, Fredric Isaman wrote:

> The problem I was pointing out is that it is NOT covered by the quoted
> passage, because of the explicit c!=d condition.  I agree that the most
> reasonable response is to allow the possibility that c==d.


So let's recap, the values v,x,k are supplied by the client and the c,s 
values
are returned by the server.  It is not possible for the crashed
client to choose values for c/d and therefore, this should not be an 
issue for the client.
The way I interpret the quoted text previously supplied is that the 
server should
take care in not returning the same value for SETCLIENTID4resok.clientid
for the 3rd SETCLIENTID in this scenario as it did for the 2nd response.

If the server were to return the same values, then the client or server 
may get
confused about what has been confirmed up receipt of 
SETCLIENTID_CONFIRM.


> On Fri, 9 Apr 2004, Spencer Shepler wrote:
>
>>
>> On Mar 4, 2004, at 2:07 PM, Fredric Isaman wrote:
>>
>>> Assuming I am reading the RFC correctly, I see a problem with
>>> SETCLIENTID.
>>>
>>> Using the RFC's notation, if a client sends
>>>
>>> SETCLIENTID{v,x,k} = {c,s}
>>> SETCLIENTIDCONFIRM{c,s}
>>> SETCLIENTID{v,x,l} = {c,t}
>>> client crashes and loses {c,t} values
>>>
>>> Now confirmed and unconfirmed lists on the server are such that a
>>> SETCLIENTID{u,x,l} with u!=v will not meet ANY condition in the
>>> implementation on page 210 of RFC 3530.  (The CITI server handles
>>> this by returning NFS4ERR_INVAL.)
>>
>> I didn't see a response to this so....
>>
>> It is covered later in the same section at the bottom of page 212.
>> In this paragraph:
>>
>>     o  The server has previously recorded a confirmed { u, x, c, l, s 
>> }
>>        record such that v != u, l may or may not equal k, and 
>> recorded an
>>        unconfirmed { w, x, d, m, t } record such that c != d, t != s, 
>> m
>>        may or may not equal k, m may or may not equal l, and k may or 
>> may
>>        not equal l. Whether w == v or w != v makes no difference.  The
>>        server simply removes the unconfirmed { w, x, d, m, t } record 
>> and
>>        replaces it with an unconfirmed { v, x, e, k, r } record, such
>>        that e != d, e != c, r != t, r != s.
>>
>>        The server returns { e, r }.
>>
>>        The server awaits confirmation of { e, k } via
>>        SETCLIENTID_CONFIRM { e, r }.
>>
>> ---
>> So the unconfirmed record is removed and a new response is provided
>> to the client and it needs to confirm it.
>>
>> Spencer
>>
>>
>
>


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



From exim@www1.ietf.org  Mon Apr 12 16:43:54 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA13629
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 16:43:54 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8H7-0000OP-SO
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 16:43:27 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CKhPHN001504
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 16:43:25 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8H6-0000Nk-Lr
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 16:43:25 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA13591
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 16:43:21 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8H3-000125-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 16:43:21 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD7vq-00074V-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 16:21:29 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD7gt-0005Vs-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 16:05:59 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD7d4-0001pD-37; Mon, 12 Apr 2004 16:02:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD7cW-0001bv-4M
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 16:01:35 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA10880
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 16:01:25 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD7cU-00058y-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:01:26 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD7Tj-0003sX-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 15:52:26 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD7Pf-00035f-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 15:48:11 -0400
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BD7O0-0005jW-Gc
	for nfsv4@ietf.org; Mon, 12 Apr 2004 15:46:28 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i3CJjigx004875;
	Mon, 12 Apr 2004 12:45:44 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-12.Central.Sun.COM [129.150.32.12])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3CJjggr015584;
	Mon, 12 Apr 2004 12:45:43 -0700 (PDT)
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED4A@silver.nane.netapp.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED4A@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-2-412893378
Message-Id: <5E7A4D3A-8CBA-11D8-BE3D-000A95DBCB70@sun.com>
Cc: "Stevan Steve Allen" <scallen@us.ibm.com>, <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 14:48:28 -0500
Date: Mon, 12 Apr 2004 14:48:28 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE 
	autolearn=no version=2.60


--Apple-Mail-2-412893378
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


On Apr 9, 2004, at 5:20 PM, Noveck, Dave wrote:

> Spencer wrote:
>
> I would like to reiterate Dave's comment above that the server "do the=20=

> best it can".
>
>  A client will likely treat EXPIRED differently than BAD_STATEID in=20
> that EXPIRED
>
>  applies to the entire clientid and BAD_STATEID is just for that=20
> particular file (or
>
>  likely to be that particular file). The recovery paths could apply=20
> different
>
>  approaches and if a simple timestamp in the stateid provides a=20
> directive
>
>  then EXPIRED would have greater precedence than BAD_STATEID in
>
>  my opinion and experience.
>
>  I think what you are saying/implying is very reasonable, but the spec=20=

> is not very
>
>  clear/forthcoming about these issues.=A0 Section 8.8 talks about=20
> validating your
>
> stateid's when a lease expiration may have occurred, but the section=20=

> ends its
>
> discussion of validation with a statement that just talks about=20
> failure generically
>
> and does not discuss the two errors above.=A0 I think it would help =
(me)=20
> to add=A0
>
>  to the last paragraph something like:
>
> When the error return is NFS4ERR_EXPIRED, the client is entitled to=20
> assume that
>
> all of the stateid's associated with the same clientid as the one used=20=

> have been freed
>
> as a result of the lease expiration.=A0 On the other hand, when the=20
> error is NFS4ERR_BAD_STATEID,
>
> the client is only entitled to assume that that particular stateid is=20=

> invalid, presumably due
>
>  to consequences of the lease expiration, such as loss of a lock to a=20=

> conflicting request.
>
> It may not assume that other stateid's associated with the same=20
> clientid have also been lost,
>
> until such information has been determined for the stateid's=20
> individually.=A0 It is helpful for a
>
>  server to save information about expired leases so that it may give=20=

> the NFS4ERR_EXPIRED
>
>  appropriately, but when when it cannot save such information for=20
> whatever reason, it should
>
> return NFS4ERR_BAD_STATEID in order to not to mislead the client into=20=

> releasing lock
>
>  state that the server might still be hold.
>
> =A0
>
> Does that correspond to your understanding?

With one addition in that the stateid may just be bad; meaning that=20
there has
been an implementation error at the client or server and it is just not=20=

recognizable.
Hard/impossible to recover from other than having the client release=20
all state for itself.
A client may choose (depending on the history of the file) to "reopen"=20=

the file with a new
open_owner to avoid any possible implementation issues.

The "bad" nature of a stateid is mentioned briefly in 8.1.3 when=20
suggesting
an implementation methodology.

>
> =A0
>
> One other thing is that if you look at the error definitions, the=20
> assumptions that I have been
>
> making (and that I think you are making as well) are not exactly=20
> obvious:
>
> =A0=A0 NFS4ERR_BAD_STATEID=A0=A0 A stateid generated by the current =
server
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 instance, but which does not designate any
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 locking state (either current or superseded)
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 for a current lockowner-file pair, was used.
> =A0 NFS4ERR_EXPIRED=A0=A0=A0=A0=A0=A0 A lease has expired that is =
being used in the
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 current operation.
>
>
> But a lease has expired in all the cases we are talking about.=A0 =
Being=20
> more
>
> explicit here would help I think.

The case I am thinking about is that the stateid contains a timestampt
from the server instance and the remainder is some internal identifier.
The server can inspect the timestamp portion and reasonably guess
that it is from its current instantiation but the remainder may not=20
match
any internal mapping it currently has in that it just may not validate=20=

even
without the expiration of a lease.  Therefore, the server could=20
determine
that the lease has or has not expired for that stateid and then validate
the remainder, etc. to determine if BAD_STATEID should be returned.

In any case, I agree that some wording and clarification as has been
given in this thread would be very helpful.

Spencer

>
>
> =A0
>
> =A0
>
> =A0
> -----Original Message-----
> From: Spencer Shepler [mailto:spencer.shepler@sun.com]
>  Sent: Monday, April 05, 2004 3:33 PM
> To: Noveck, Dave
> Cc: Stevan Steve Allen; nfsv4@ietf.org
> Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
>
>
>
>
>
> On Apr 5, 2004, at 12:36 PM, Noveck, Dave wrote:
>
>
>
>  You can distinguish STALECLIENTID without saving clientid's forever.
>
> If you put the server instance (or reboot time) in one half of the=20
> client id then you can determine if the server has rebooted, simply by=20=

> comparing that field.
>
> The spec text does not talk about EXPIRED with regard to client id's.=20=

> It does with respect to stateid's.=A0 However, the ops that list=20
> STALECLIENTID as an error also list EXPIRED so I don't see what else=20=

> you could return if you get a clientid you don't recognize and it=20
> doesn't show that you have rebooted.
>
> One exception is DELEGPURGE.=A0 It shows STALECLIENTID but not EXPIRED=20=

> so it isn't clear what you would do if you get a clientid you don't=20
> recognize and it doesn't look stale.=A0 INVAL would be the obvious=20
> answer but that isn't on the error list either :-(
>
> So I think you have to be able to distinguish clientid's you gave out=20=

> from those your predecessor instance(s) would have given out=20
> essentially forever.=A0 However, for anything that looks like it cam=20=

> from the current server instance, if you don't recognize it, you=20
> return EXPIRED and there is no issue of having to save them or=20
> distinguish those that expired from others.=A0 There is no =
BAD_CLIENTID=20
> error=A0.=A0 This conclusion does seem to be at variance with the=20
> definition of EXPIRED, "A lease has expired that is being used in the=20=

> current operation", but there doesn't seem to be any other error to=20
> use.
>
> Which brings us to stateid's since there is a BAD_STATEID error.=A0 I=20=

> believe you can do the same thing for stateid's that you do for=20
> clientid's to distinguish when to return STALE_STATEID.=A0 This leaves=20=

> the question=A0of distinguishing EXPIRED from BAD_STATEID.
>
> I don't see where the spec gives any useful guidance on how one is to=20=

> distinguish these two cases without storing expired stateid's forever=20=

> (have I missed it?).=A0 My answer is to do the best you can but=20
> practically speaking I think clients have to be prepared to get=20
> BAD_STATEID and do what they would have done if they got EXPIRED.=A0=20=

> Either one says the server is still up, you lost your lock, and if you=20=

> try to re-establish it, you may not succeed and even if you do, you=20
> should be aware that someone may have had a conflicting lock in the=20
> interim, i.e. you cannot assume continuity of your lock possession.
>
>
>
> I would like to reiterate Dave's comment above that the server "do the=20=

> best it can".
>
>  A client will likely treat EXPIRED differently than BAD_STATEID in=20
> that EXPIRED
>
>  applies to the entire clientid and BAD_STATEID is just for that=20
> particular file (or
>
>  likely to be that particular file). The recovery paths could apply=20
> different
>
>  approaches and if a simple timestamp in the stateid provides a=20
> directive
>
>  then EXPIRED would have greater precedence than BAD_STATEID in
>
>  my opinion and experience.
>
>
>
>  -----Original Message-----
>
> From: Stevan Steve Allen [mailto:scallen@us.ibm.com]
>
> Sent: Monday, April 05, 2004 12:21 PM
>
> To: nfsv4@ietf.org
>
> Subject: Re: [nfsv4] re: NFS4ERR_EXPIRED or NFS4ERR_STALECLIENTID?
>
>
>
>
> Spencer, =A0I fell off the wagon here.
>
>
>
> > NFS4ERR_STALE_CLIENTID is only returned when the server
>
> > has restarted.
>
>
>
> Seems the server may not find a server generated clientid for 2=20
> conditions.
>
> =A0 o Server restarted
>
> =A0 o Clientid was released (freed)
>
>
>
> Your statement indicates the server has to determine which condition=20=

> occurred. =A0Rick asked how long the clientid has to be kept around =
(so=20
> separate errors can be returned).
>
>
>
> Thanks,
>
> Stevan C. Allen

--Apple-Mail-2-412893378
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Apr 9, 2004, at 5:20 PM, Noveck, Dave wrote:


=
<excerpt><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</par=
am><smaller>Spencer
wrote:</smaller></color></fontfamily>


I would like to reiterate Dave's comment above that the server "do the
best it can".


 A client will likely treat EXPIRED differently than BAD_STATEID in
that EXPIRED


 applies to the entire clientid and BAD_STATEID is just for that
particular file (or


 likely to be that particular file). The recovery paths could apply
different


 approaches and if a simple timestamp in the stateid provides a
directive


 then EXPIRED would have greater precedence than BAD_STATEID in


 my opinion and experience.



=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>I
think what you are saying/implying is very reasonable, but the spec is
not very</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>
clear/forthcoming about these issues.=A0 Section 8.8 talks about
validating your</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>stateid's
when a lease expiration may have occurred, but the section ends =
its</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>discussion
of validation with a statement that just talks about failure
generically</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>and
does not discuss the two errors above.=A0 I think it would help (me) to
add=A0</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>
to the last paragraph something like:</smaller></color></fontfamily>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>When
the error return is NFS4ERR_EXPIRED, the client is entitled to assume
that</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>all
of the stateid's associated with the same clientid as the one used
have been freed</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>as
a result of the lease expiration.=A0 On the other hand, when the error
is NFS4ERR_BAD_STATEID,</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>the
client is only entitled to assume that that particular stateid is
invalid, presumably due</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>
to consequences of the lease expiration, such as loss of a lock to a
conflicting request.</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>It
may not assume that other stateid's associated with the same clientid
have also been lost,</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>until
such information has been determined for the stateid's individually.=A0
It is helpful for a</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>
server to save information about expired leases so that it may give
the NFS4ERR_EXPIRED</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>
appropriately, but when when it cannot save such information for
whatever reason, it should</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>return
NFS4ERR_BAD_STATEID in order to not to mislead the client into
releasing lock</smaller></color></fontfamily></italic>


=
<italic><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</para=
m><smaller>
state that the server might still be =
hold.</smaller></color></fontfamily></italic>


=A0


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>Does
that correspond to your understanding?</smaller></color></fontfamily>

</excerpt>

With one addition in that the stateid may just be bad; meaning that
there has

been an implementation error at the client or server and it is just
not recognizable.

Hard/impossible to recover from other than having the client release
all state for itself.

A client may choose (depending on the history of the file) to "reopen"
the file with a new

open_owner to avoid any possible implementation issues.


The "bad" nature of a stateid is mentioned briefly in 8.1.3 when
suggesting

an implementation methodology.


<excerpt>

=A0


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>One
other thing is that if you look at the error definitions, the
assumptions that I have been</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>making
(and that I think you are making as well) are not exactly =
obvious:</smaller></color></fontfamily>


=A0=A0 NFS4ERR_BAD_STATEID=A0=A0 A stateid generated by the current =
server

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
instance, but which does not designate any

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
locking state (either current or superseded)

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
for a current lockowner-file pair, was used.

=A0 NFS4ERR_EXPIRED=A0=A0=A0=A0=A0=A0 A lease has expired that is being =
used in the

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
current operation.



=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>But
a lease has expired in all the cases we are talking about.=A0 Being =
more</smaller></color></fontfamily>


=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param><small=
er>explicit
here would help I think.</smaller></color></fontfamily>

</excerpt>

The case I am thinking about is that the stateid contains a timestampt

from the server instance and the remainder is some internal identifier.

The server can inspect the timestamp portion and reasonably guess

that it is from its current instantiation but the remainder may not
match

any internal mapping it currently has in that it just may not validate
even

without the expiration of a lease.  Therefore, the server could
determine

that the lease has or has not expired for that stateid and then
validate

the remainder, etc. to determine if BAD_STATEID should be returned.


In any case, I agree that some wording and clarification as has been

given in this thread would be very helpful.


Spencer


<excerpt>


=A0


=A0


=A0

<fontfamily><param>Tahoma</param><smaller>-----Original =
Message-----</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>From:</smaller></fontfamil=
y></bold><fontfamily><param>Tahoma</param><smaller>
Spencer Shepler [mailto:spencer.shepler@sun.com]</smaller></fontfamily>

<fontfamily><param>Tahoma</param><smaller> <bold>Sent:</bold> Monday,
April 05, 2004 3:33 PM</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>To:</smaller></fontfamily>=
</bold><fontfamily><param>Tahoma</param><smaller>
Noveck, Dave</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>Cc:</smaller></fontfamily>=
</bold><fontfamily><param>Tahoma</param><smaller>
Stevan Steve Allen; nfsv4@ietf.org</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>Subject:</smaller></fontfa=
mily></bold><fontfamily><param>Tahoma</param><smaller>
Re: [nfsv4] re: NFS4ERR_EXPIRED or =
NFS4ERR_STALECLIENTID?</smaller></fontfamily>






On Apr 5, 2004, at 12:36 PM, Noveck, Dave wrote:





=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>You
can distinguish STALECLIENTID without saving clientid's
forever.</smaller></color></fontfamily>=20


=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>If
you put the server instance (or reboot time) in one half of the client
id then you can determine if the server has rebooted, simply by
comparing that field.</smaller></color></fontfamily>=20


=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>The
spec text does not talk about EXPIRED with regard to client id's. It
does with respect to stateid's.=A0 However, the ops that list
STALECLIENTID as an error also list EXPIRED so I don't see what else
you could return if you get a clientid you don't recognize and it
doesn't show that you have rebooted.</smaller></color></fontfamily>=20


=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>One
exception is DELEGPURGE.=A0 It shows STALECLIENTID but not EXPIRED so it
isn't clear what you would do if you get a clientid you don't
recognize and it doesn't look stale.=A0 INVAL would be the obvious
answer but that isn't on the error list either
:-(</smaller></color></fontfamily>=20


=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>So
I think you have to be able to distinguish clientid's you gave out
from those your predecessor instance(s) would have given out
essentially forever.=A0 However, for anything that looks like it cam
from the current server instance, if you don't recognize it, you
return EXPIRED and there is no issue of having to save them or
distinguish those that expired from others.=A0 There is no BAD_CLIENTID
error=A0.=A0 This conclusion does seem to be at variance with the
definition of EXPIRED, "A lease has expired that is being used in the
current operation", but there doesn't seem to be any other error to
use.</smaller></color></fontfamily>=20


=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>Which
brings us to stateid's since there is a BAD_STATEID error.=A0 I believe
you can do the same thing for stateid's that you do for clientid's to
distinguish when to return STALE_STATEID.=A0 This leaves the question=A0of=

distinguishing EXPIRED from
BAD_STATEID.</smaller></color></fontfamily>=20


=
<fontfamily><param>Arial</param><color><param>0000,0F0F,F0F0</param><small=
er>I
don't see where the spec gives any useful guidance on how one is to
distinguish these two cases without storing expired stateid's forever
(have I missed it?).=A0 My answer is to do the best you can but
practically speaking I think clients have to be prepared to get
BAD_STATEID and do what they would have done if they got EXPIRED.=A0
Either one says the server is still up, you lost your lock, and if you
try to re-establish it, you may not succeed and even if you do, you
should be aware that someone may have had a conflicting lock in the
interim, i.e. you cannot assume continuity of your lock
possession.</smaller></color></fontfamily>=20




I would like to reiterate Dave's comment above that the server "do the
best it can".


 A client will likely treat EXPIRED differently than BAD_STATEID in
that EXPIRED


 applies to the entire clientid and BAD_STATEID is just for that
particular file (or


 likely to be that particular file). The recovery paths could apply
different


 approaches and if a simple timestamp in the stateid provides a
directive


 then EXPIRED would have greater precedence than BAD_STATEID in


 my opinion and experience.




 <fontfamily><param>Tahoma</param><smaller>-----Original
Message-----</smaller></fontfamily>=20


=
<bold><fontfamily><param>Tahoma</param><smaller>From:</smaller></fontfamil=
y></bold><fontfamily><param>Tahoma</param><smaller>
Stevan Steve Allen [mailto:scallen@us.ibm.com]</smaller></fontfamily>=20


=
<bold><fontfamily><param>Tahoma</param><smaller>Sent:</smaller></fontfamil=
y></bold><fontfamily><param>Tahoma</param><smaller>
Monday, April 05, 2004 12:21 PM</smaller></fontfamily>=20


=
<bold><fontfamily><param>Tahoma</param><smaller>To:</smaller></fontfamily>=
</bold><fontfamily><param>Tahoma</param><smaller>
nfsv4@ietf.org</smaller></fontfamily>=20


=
<bold><fontfamily><param>Tahoma</param><smaller>Subject:</smaller></fontfa=
mily></bold><fontfamily><param>Tahoma</param><smaller>
Re: [nfsv4] re: NFS4ERR_EXPIRED or
NFS4ERR_STALECLIENTID?</smaller></fontfamily>=20





<smaller>Spencer, =A0I fell off the wagon here.</smaller>=20




<fixed><fontfamily><param>Courier New</param>> NFS4ERR_STALE_CLIENTID
is only returned when the server</fontfamily></fixed>=20


<fixed><fontfamily><param>Courier New</param>> has
restarted.</fontfamily></fixed>=20




<smaller>Seems the server may not find a server generated clientid for
2 conditions.</smaller>=20


<smaller>=A0 o Server restarted</smaller>=20


<smaller>=A0 o Clientid was released (freed)</smaller>=20




<smaller>Your statement indicates the server has to determine which
condition occurred. =A0Rick asked how long the clientid has to be kept
around (so separate errors can be returned).</smaller>=20




<smaller>Thanks,</smaller>=20


<smaller>Stevan C. Allen</smaller>=20

</excerpt>=

--Apple-Mail-2-412893378--


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



From exim@www1.ietf.org  Mon Apr 12 17:33:55 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA16196
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 17:33:55 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD93Y-00063L-Mh
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 17:33:29 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CLXScs023263
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 17:33:28 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD93W-00062d-89
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 17:33:28 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA16173
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 17:33:22 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD93T-0004VU-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 17:33:23 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD8fP-0002ZG-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 17:08:32 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8Dt-0000lS-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 16:40:05 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8Dp-000840-5L; Mon, 12 Apr 2004 16:40:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8DS-0007zp-6o
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 16:39:42 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA13345
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 16:39:35 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8DP-0000ju-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:39:35 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD7tw-0006lY-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:19:29 -0400
Received: from citi.umich.edu ([141.211.133.111])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD7dN-0005CH-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:02:21 -0400
Received: by citi.umich.edu (Postfix, from userid 103558)
	id 1D2C42086F; Mon, 12 Apr 2004 16:02:06 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by citi.umich.edu (Postfix) with ESMTP
	id 1349020341; Mon, 12 Apr 2004 16:02:06 -0400 (EDT)
From: Fredric Isaman <iisaman@citi.umich.edu>
To: Spencer Shepler <spencer.shepler@sun.com>
Cc: <nfsv4@ietf.org>
Subject: Re: [nfsv4] Issue with SETCLIENTID ?
In-Reply-To: <B7266221-8CB6-11D8-BE3D-000A95DBCB70@sun.com>
Message-ID: <Pine.BSO.4.33.0404121534550.12506-100000@citi.umich.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 16:02:06 -0400 (EDT)
Date: Mon, 12 Apr 2004 16:02:06 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60



On Mon, 12 Apr 2004, Spencer Shepler wrote:

>
> On Apr 12, 2004, at 9:13 AM, Fredric Isaman wrote:
>
> > The problem I was pointing out is that it is NOT covered by the quoted
> > passage, because of the explicit c!=d condition.  I agree that the most
> > reasonable response is to allow the possibility that c==d.
>
>
> So let's recap, the values v,x,k are supplied by the client and the c,s
> values
> are returned by the server.  It is not possible for the crashed
> client to choose values for c/d and therefore, this should not be an
> issue for the client.

But there IS a situation where the client can 'choose' the c/d value. The
second bulleted section that starts with "The server checks if it has
recorded a confirmed record for { v, x, c, l, s }, where l may or may not
equal k." allows the client to 'choose' a value equal to the one already
confirmed.

The following sequence sets up a situation where the server's confirmed
and unconfirmed lists almost match with the fourth bulleted section,
except for the c!=d condition contained in it.

SETCLIENTID{u,x,l} = {c,s}
SETCLIENTIDCONFIRM{c,s}
SETCLIENTID{u,x,k} = {c,t}  <- here the client in effect 'chose' c
now the server has a confirmed {u,x,c,l,s} and an unconfirmed {u,x,c,k,t}

client crashes and loses {c,t} values
SETCLIENTID{v,x,k}

Here I agree that the {v,x,k} supplied by the client should be handled
according to the fourth bulleted section which was quoted, and I agree
with your interpretation of the text.  My point is that the text as
given does not allow this case to be used because of the c!=d condition.


	Fred


> The way I interpret the quoted text previously supplied is that the
> server should take care in not returning the same value for
> SETCLIENTID4resok.clientid for the 3rd SETCLIENTID in this scenario as
> it did for the 2nd response.
>
> If the server were to return the same values, then the client or
> server may get confused about what has been confirmed up receipt of
> SETCLIENTID_CONFIRM.
>
>


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



From exim@www1.ietf.org  Mon Apr 12 17:55:55 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA17374
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 17:55:55 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD9Op-0008Vm-6x
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 17:55:29 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CLtR6b032714
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 17:55:27 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD9Om-0008VZ-La
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 17:55:27 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA17343
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 17:55:20 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD9Oj-0005gb-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 17:55:21 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD8sC-0003e0-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 17:21:45 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8WF-0001mU-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 16:59:03 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8WD-0002Mm-0d; Mon, 12 Apr 2004 16:59:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8WB-0002MS-QP
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 16:58:59 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA14457
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 16:58:54 -0400 (EDT)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8W5-0001m3-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:58:53 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD83T-00000x-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:29:19 -0400
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD7oC-00065J-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:13:33 -0400
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id QAA52999
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:13:10 -0400 (EDT)
Message-Id: <200404122013.QAA52999@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 16:13:10 -0400 (EDT)
Date: Mon, 12 Apr 2004 16:13:10 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no 
	version=2.60

Ok, so what about the following scenario:
- client has a delegation and is still able to do compounds on the server
- server attempts Recall of the delegation, which fails, presumably
  because the callback pathway has busted
  - after a timeout (mine is currently 5 * lease duration), the server
    discards the delegation and allows the conflicting request that
    caused the callback
- client uses stateid for discarded delegation
and the server would return NFS4ERR_BADSTATEID? (because, although it
had to discard the delegation, no lease expired)

On the other hand, if the delegation was discarded because the lease
expired (both network paths were partitioned), the error returned
when
- client uses stateid for discarded delegation
would be NFS4ERR_EXPIRED?

Sound right gang? rick

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



From exim@www1.ietf.org  Mon Apr 12 18:09:33 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA18720
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 18:09:33 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD9c3-0005bE-6L
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 18:09:07 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CM97c7021498
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 18:09:07 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD9by-0005Zm-Qz
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 18:09:07 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA18649
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 18:08:58 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD9bv-0006ZQ-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 18:08:59 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD93i-0004Wx-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 17:33:39 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8fz-0002av-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 17:09:07 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8fy-0004C3-6N; Mon, 12 Apr 2004 17:09:06 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BD8fg-00049o-Ep
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 17:08:48 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA14919
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 17:08:41 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD8fZ-0002Zi-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 17:08:41 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD8E4-0000m1-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:40:17 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD7uJ-0006kn-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 16:19:51 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i3CKJE6N025373;
	Mon, 12 Apr 2004 13:19:14 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-12.Central.Sun.COM [129.150.32.12])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3CKJDgr023871;
	Mon, 12 Apr 2004 13:19:13 -0700 (PDT)
In-Reply-To: <Pine.BSO.4.33.0404121534550.12506-100000@citi.umich.edu>
References: <Pine.BSO.4.33.0404121534550.12506-100000@citi.umich.edu>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <0CC4D83D-8CBF-11D8-BE3D-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] Issue with SETCLIENTID ?
To: Fredric Isaman <iisaman@citi.umich.edu>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 15:21:58 -0500
Date: Mon, 12 Apr 2004 15:21:58 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 12, 2004, at 3:02 PM, Fredric Isaman wrote:

>
>
> On Mon, 12 Apr 2004, Spencer Shepler wrote:
>
>>
>> On Apr 12, 2004, at 9:13 AM, Fredric Isaman wrote:
>>
>>> The problem I was pointing out is that it is NOT covered by the 
>>> quoted
>>> passage, because of the explicit c!=d condition.  I agree that the 
>>> most
>>> reasonable response is to allow the possibility that c==d.
>>
>>
>> So let's recap, the values v,x,k are supplied by the client and the 
>> c,s
>> values
>> are returned by the server.  It is not possible for the crashed
>> client to choose values for c/d and therefore, this should not be an
>> issue for the client.
>
> But there IS a situation where the client can 'choose' the c/d value. 
> The
> second bulleted section that starts with "The server checks if it has
> recorded a confirmed record for { v, x, c, l, s }, where l may or may 
> not
> equal k." allows the client to 'choose' a value equal to the one 
> already
> confirmed.
>
> The following sequence sets up a situation where the server's confirmed
> and unconfirmed lists almost match with the fourth bulleted section,
> except for the c!=d condition contained in it.
>
> SETCLIENTID{u,x,l} = {c,s}
> SETCLIENTIDCONFIRM{c,s}
> SETCLIENTID{u,x,k} = {c,t}  <- here the client in effect 'chose' c
> now the server has a confirmed {u,x,c,l,s} and an unconfirmed 
> {u,x,c,k,t}
>
> client crashes and loses {c,t} values
> SETCLIENTID{v,x,k}
>
> Here I agree that the {v,x,k} supplied by the client should be handled
> according to the fourth bulleted section which was quoted, and I agree
> with your interpretation of the text.  My point is that the text as
> given does not allow this case to be used because of the c!=d 
> condition.

Sorry for missing the subtlety of the scenario.  Yes, the text is wrong
and an appropriate errata should be constructed for it.

Spencer


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



From exim@www1.ietf.org  Mon Apr 12 19:47:09 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA25800
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 19:47:09 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDB8S-0007wC-Qi
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 19:46:40 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3CNkeRT030508
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 19:46:40 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDB8S-0007vz-MU
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 19:46:40 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA25777
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 19:46:38 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDB8Q-0005Ou-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 19:46:38 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDAi1-0003sN-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 19:19:22 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDAPP-00026V-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 19:00:07 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BDAPO-0001tW-Sd
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 19:00:07 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDAPK-00049o-B9; Mon, 12 Apr 2004 19:00:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDAOt-00048W-Ek
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 18:59:37 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA23520
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 18:59:30 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDAOq-00022v-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 18:59:32 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BD9wX-0000Bd-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 18:30:17 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BD9SM-0005tC-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 17:59:06 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3CLwMZh027721;
	Mon, 12 Apr 2004 14:58:22 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3CLwMXv029107;
	Mon, 12 Apr 2004 14:58:22 -0700 (PDT)
Subject: RE: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED53@silver.nane.netapp.com>
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Thread-Topic: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
Thread-Index: AcQg0QtOtH7XqKBXSqOye2EkNu52FQABp15A
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: <rick@snowhite.cis.uoguelph.ca>, <nfsv4@ietf.org>
Content-Transfer-Encoding: quoted-printable
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 14:58:15 -0700
Date: Mon, 12 Apr 2004 14:58:15 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable

Excellent example and question.  Here's my take.

> - client uses stateid for discarded delegation
> and the server would return NFS4ERR_BADSTATEID? (because, although it
> had to discard the delegation, no lease expired)

I would say that BAD_STATEID is returned because only a single stateid
was released by the server and because returning EXPIRED would imply,
first that a lease expired, which it hasn't, and second, that all of
the stateid's associated with the lease were released, which also is
not true.

> On the other hand, if the delegation was discarded because the lease
> expired (both network paths were partitioned), the error returned
> when
> - client uses stateid for discarded delegation
> would be NFS4ERR_EXPIRED?

If the stateid was discarded because the lease expired and all of the
stateids associated with the lease were expired at the same time, then
EXPIRED should be returned.

On the other hand, if the lease expired and the delegation were =
discarded
because of a conflicting lock (so that other stateids associated with =
the
same lease might survive and be revived), then BAD_STATEID is to be =
returned,
even if the occasion for discarding the stateid were the lease =
expiration
(e.g. there has been a conflict with the delegation in existence and =
once
the lease expired, that kicked off the discarding).  The critical thing=20
in my view is what the client is able to conclude.  If EXPIRED is =
returned,
he may conclude that all of the associated stateids are gone (because of =
a=20
lease expiration), while with BAD_STATEID, he may only assume that the=20
stateid in question is gone, even if the precipitating event is a lease
expiration.

-----Original Message-----
From: rick@snowhite.cis.uoguelph.ca
[mailto:rick@snowhite.cis.uoguelph.ca]
Sent: Monday, April 12, 2004 4:13 PM
To: nfsv4@ietf.org
Subject: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID


Ok, so what about the following scenario:
- client has a delegation and is still able to do compounds on the =
server
- server attempts Recall of the delegation, which fails, presumably
  because the callback pathway has busted
  - after a timeout (mine is currently 5 * lease duration), the server
    discards the delegation and allows the conflicting request that
    caused the callback
- client uses stateid for discarded delegation
and the server would return NFS4ERR_BADSTATEID? (because, although it
had to discard the delegation, no lease expired)

On the other hand, if the delegation was discarded because the lease
expired (both network paths were partitioned), the error returned
when
- client uses stateid for discarded delegation
would be NFS4ERR_EXPIRED?

Sound right gang? rick

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

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



From exim@www1.ietf.org  Mon Apr 12 21:16:49 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00041
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 21:16:49 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCXF-0005A9-Oi
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 21:16:22 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3D1GLBH019841
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 21:16:21 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCXF-00059w-KC
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 21:16:21 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00014
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 21:16:18 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCXC-0007NH-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:16:18 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDCVG-00073m-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:14:19 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCU1-0006sK-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:13:01 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCU1-0004u4-Jf; Mon, 12 Apr 2004 21:13:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCTe-0004qM-8N
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 21:12:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA29893
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 21:12:33 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCTW-0006rL-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:12:31 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDCSS-0006gA-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:11:24 -0400
Received: from adsl-207-214-87-84.dsl.snfc21.pacbell.net ([207.214.87.84] helo=lade.trondhjem.org)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCQm-0006Dm-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:09:40 -0400
Received: from trondmy by lade.trondhjem.org with local (Exim 4.31)
	id 1BDCPy-00040p-L9
	for nfsv4@ietf.org; Mon, 12 Apr 2004 18:08:50 -0700
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: nfsv4@ietf.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1081818530.11218.58.camel@lade.trondhjem.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6 
Content-Transfer-Encoding: 7bit
Subject: [nfsv4] Basic client delegation code ready for testing...
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 18:08:50 -0700
Date: Mon, 12 Apr 2004 18:08:50 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Grab the latest Bitkeeper release (as of right now), and apply the new
2.6.6-pre1 NFS4_ALL patch from the usual site...

As of yet, there are no actual caching optimizations implemented, but
the basic delegation management code (and callback server) should all be
there.

IOW:
  - SETCLIENTID advertises the callback server
  - CB_GETATTR & CB_RECALL are both implemented on the callback server.

  - OPEN now deals with setting up READ/WRITE delegation state.
  - READs and WRITEs should now use the delegation stateid if we've got
one.
  - DELEGRETURN is implemented.

Cheers,
  Trond

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



From exim@www1.ietf.org  Mon Apr 12 21:25:59 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00284
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 21:25:59 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCg7-0005w1-Mw
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 21:25:31 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3D1PV6E022809
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 21:25:31 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCg7-0005vk-HG
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 21:25:31 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00251
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 21:25:28 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCg4-0000iC-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:25:28 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDCeA-0000PA-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:23:30 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCan-00005D-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:20:01 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCan-0005aa-JS; Mon, 12 Apr 2004 21:20:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCad-0005Zc-ED
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 21:19:53 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00131
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 21:19:48 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCaa-00004r-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:19:48 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDCY7-0007Wj-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:17:16 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCWz-0007L6-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:16:05 -0400
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i3D1FW6N021285;
	Mon, 12 Apr 2004 18:15:32 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-22.Central.Sun.COM [129.150.32.22])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3D1FVjW026977;
	Mon, 12 Apr 2004 18:15:31 -0700 (PDT)
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED53@silver.nane.netapp.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED53@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <71D3B61A-8CE8-11D8-B69B-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: <rick@snowhite.cis.uoguelph.ca>, <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 20:18:17 -0500
Date: Mon, 12 Apr 2004 20:18:17 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 12, 2004, at 4:58 PM, Noveck, Dave wrote:

> Excellent example and question.  Here's my take.
>
>> - client uses stateid for discarded delegation
>> and the server would return NFS4ERR_BADSTATEID? (because, although it
>> had to discard the delegation, no lease expired)
>
> I would say that BAD_STATEID is returned because only a single stateid
> was released by the server and because returning EXPIRED would imply,
> first that a lease expired, which it hasn't, and second, that all of
> the stateid's associated with the lease were released, which also is
> not true.

I agree with this and don't forget NFS4ERR_ADMIN_REVOKED for those
special occasions of administrator NFSv4 angst.

Oh yes, then NFS4ERR_CB_PATH_DOWN for the RENEW where the
server knows or thinks there is a problem with the callback path.

>
>> On the other hand, if the delegation was discarded because the lease
>> expired (both network paths were partitioned), the error returned
>> when
>> - client uses stateid for discarded delegation
>> would be NFS4ERR_EXPIRED?
>
> If the stateid was discarded because the lease expired and all of the
> stateids associated with the lease were expired at the same time, then
> EXPIRED should be returned.
>
> On the other hand, if the lease expired and the delegation were 
> discarded
> because of a conflicting lock (so that other stateids associated with 
> the
> same lease might survive and be revived), then BAD_STATEID is to be 
> returned,
> even if the occasion for discarding the stateid were the lease 
> expiration
> (e.g. there has been a conflict with the delegation in existence and 
> once
> the lease expired, that kicked off the discarding).  The critical thing
> in my view is what the client is able to conclude.  If EXPIRED is 
> returned,
> he may conclude that all of the associated stateids are gone (because 
> of a
> lease expiration), while with BAD_STATEID, he may only assume that the
> stateid in question is gone, even if the precipitating event is a lease
> expiration.


So you are partially describing the scenarios mentioned in
section 8.8 Server Revocation of Locks?

The server can be "nice" in that upon lease expiration it keeps some
of the state active and only releases that which has conflicting 
requests.
In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
However, if the server is not keeping partial, expired state then it 
should
go ahead and return EXPIRED since it will be an additional burden
on the server to keep the extra information about just the state for 
which
there was a conflict.  Just having the server correctly return EXPIRED
is a big step in any case. ;-)

Spencer


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



From exim@www1.ietf.org  Mon Apr 12 21:30:23 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00450
	for <nfsv4-archive@odin.ietf.org>; Mon, 12 Apr 2004 21:30:23 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCkO-0006O3-Mq
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 21:29:56 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3D1Tuof024547
	for nfsv4-archive@odin.ietf.org; Mon, 12 Apr 2004 21:29:56 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCkO-0006Nq-I8
	for nfsv4-web-archive@optimus.ietf.org; Mon, 12 Apr 2004 21:29:56 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00424
	for <nfsv4-web-archive@ietf.org>; Mon, 12 Apr 2004 21:29:53 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCkK-0001MV-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:29:52 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDCi3-00013O-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:27:32 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCgb-0000kB-00
	for nfsv4-web-archive@ietf.org; Mon, 12 Apr 2004 21:26:01 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCgb-00064k-Ho; Mon, 12 Apr 2004 21:26:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDCgS-000638-DJ
	for nfsv4@optimus.ietf.org; Mon, 12 Apr 2004 21:25:52 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA00272
	for <nfsv4@ietf.org>; Mon, 12 Apr 2004 21:25:48 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCgO-0000jX-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:25:48 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDCeU-0000QX-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:23:50 -0400
Received: from adsl-207-214-87-84.dsl.snfc21.pacbell.net ([207.214.87.84] helo=lade.trondhjem.org)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDCbO-00005X-00
	for nfsv4@ietf.org; Mon, 12 Apr 2004 21:20:38 -0400
Received: from trondmy by lade.trondhjem.org with local (Exim 4.31)
	id 1BDCap-00041L-0i
	for nfsv4@ietf.org; Mon, 12 Apr 2004 18:20:03 -0700
Subject: Re: [nfsv4] Basic client delegation code ready for testing...
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: nfsv4@ietf.org
In-Reply-To: <1081818530.11218.58.camel@lade.trondhjem.org>
References: <1081818530.11218.58.camel@lade.trondhjem.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1081819202.11218.61.camel@lade.trondhjem.org>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6 
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 12 Apr 2004 18:20:03 -0700
Date: Mon, 12 Apr 2004 18:20:03 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


Argh... Late in the afternoon, and I'm messing up my list aliases...
This message was supposed to go to CITI's private NFSv4 list..

Apologies to everyone for the noise...
  Trond

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



From exim@www1.ietf.org  Tue Apr 13 10:30:17 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA14769
	for <nfsv4-archive@odin.ietf.org>; Tue, 13 Apr 2004 10:30:17 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDOv8-0000uz-3Q
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 10:29:50 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3DEToT6003530
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 10:29:50 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDOv7-0000ur-Ut
	for nfsv4-web-archive@optimus.ietf.org; Tue, 13 Apr 2004 10:29:50 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA14690
	for <nfsv4-web-archive@ietf.org>; Tue, 13 Apr 2004 10:29:46 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDOv5-0006MD-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 10:29:47 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDOtj-0006Dn-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 10:28:24 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDOsV-000677-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 10:27:07 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDOsP-0000Tp-7M; Tue, 13 Apr 2004 10:27:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDOrc-0000Rm-Fz
	for nfsv4@optimus.ietf.org; Tue, 13 Apr 2004 10:26:16 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA14473
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 10:26:09 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDOrZ-00062Z-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 10:26:09 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDOqO-0005wm-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 10:24:57 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDOpD-0005oR-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 10:23:43 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3DEN4Zh001707;
	Tue, 13 Apr 2004 07:23:06 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3DEN4Xv005591;
	Tue, 13 Apr 2004 07:23:04 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED54@silver.nane.netapp.com>
Thread-Topic: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
Thread-Index: AcQg9OZ7OkF0lsOXQxO5hXe7to4HUQAasuEw
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Spencer Shepler" <spencer.shepler@sun.com>
Cc: <rick@snowhite.cis.uoguelph.ca>, <nfsv4@ietf.org>
Content-Transfer-Encoding: quoted-printable
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 13 Apr 2004 07:23:00 -0700
Date: Tue, 13 Apr 2004 07:23:00 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable

> So you are partially describing the scenarios mentioned in
> section 8.8 Server Revocation of Locks?

Yes.  Those are the possibilities.

> The server can be "nice" in that upon lease expiration it keeps some
> of the state active and only releases that which has conflicting=20
> requests.
> In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
> However, if the server is not keeping partial, expired state then it=20
> should
> go ahead and return EXPIRED since it will be an additional burden
> on the server to keep the extra information about just the state for=20
> which
> there was a conflict.

I agree that the server should return EXPIRED in this case, but I=20
disagree about the reason.

There would be no additional burden to return BAD_STATEID as the
"nice" server does.  That's because if the server simply deallocated
all the state entries along with the locks, when the lease expired,
any reference to the deallocated states would naturally result in
BAD_STATEID, with no extra server effort.

The reason to return EXPIRED is that it avoids making the client=20
probe each of stateids, when you could just tell him (via EXPIRED)
that they all are gone, and save him the effort.  The client has
to be prepared to probe all the stateids because servers may keep
locks and only get rid of them when there is a conflict.  The
limiting case is that the lease may expire, and there may then be
individual conflicts with all of the locks within the lease and
the client has to deal with that possibility.  So if the client
is coded correctly, for the server to throw away all locks at
lease expiration and return BAD_STATEID would work correctly.  It
is just kind of anti-social to make him go to that extra effort=20
when there is no possibility that there is the benefit of getting
some of his locks back.

BTW, there seems to be a third intermediate case between the standard
one (free all locks at lease expiration) and the "nice" one of just
freeing the ones that conflict that seems like it might be a valid=20
choice.  That is, to keep the locks at lease expiration, but as soon
as there is some conflict on any lock, to release all of them, rather
than just the one in conflict.  If the client renewed the lease before
any conflict occurred, he would be OK (as if no expiration happened),
but if a conflict happend first, he would get EXPIRED (I believe) since
the client can use this to know that all of the stateids associated
with the locks are gone, which they would be in this case.  Comments?    =


> Just having the server correctly return EXPIRED
> is a big step in any case. ;-)

-----Original Message-----
From: Spencer Shepler [mailto:spencer.shepler@sun.com]
Sent: Monday, April 12, 2004 9:18 PM
To: Noveck, Dave
Cc: rick@snowhite.cis.uoguelph.ca; nfsv4@ietf.org
Subject: Re: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID



On Apr 12, 2004, at 4:58 PM, Noveck, Dave wrote:

> Excellent example and question.  Here's my take.
>
>> - client uses stateid for discarded delegation
>> and the server would return NFS4ERR_BADSTATEID? (because, although it
>> had to discard the delegation, no lease expired)
>
> I would say that BAD_STATEID is returned because only a single stateid
> was released by the server and because returning EXPIRED would imply,
> first that a lease expired, which it hasn't, and second, that all of
> the stateid's associated with the lease were released, which also is
> not true.

I agree with this and don't forget NFS4ERR_ADMIN_REVOKED for those
special occasions of administrator NFSv4 angst.

Oh yes, then NFS4ERR_CB_PATH_DOWN for the RENEW where the
server knows or thinks there is a problem with the callback path.

>
>> On the other hand, if the delegation was discarded because the lease
>> expired (both network paths were partitioned), the error returned
>> when
>> - client uses stateid for discarded delegation
>> would be NFS4ERR_EXPIRED?
>
> If the stateid was discarded because the lease expired and all of the
> stateids associated with the lease were expired at the same time, then
> EXPIRED should be returned.
>
> On the other hand, if the lease expired and the delegation were=20
> discarded
> because of a conflicting lock (so that other stateids associated with=20
> the
> same lease might survive and be revived), then BAD_STATEID is to be=20
> returned,
> even if the occasion for discarding the stateid were the lease=20
> expiration
> (e.g. there has been a conflict with the delegation in existence and=20
> once
> the lease expired, that kicked off the discarding).  The critical =
thing
> in my view is what the client is able to conclude.  If EXPIRED is=20
> returned,
> he may conclude that all of the associated stateids are gone (because=20
> of a
> lease expiration), while with BAD_STATEID, he may only assume that the
> stateid in question is gone, even if the precipitating event is a =
lease
> expiration.


So you are partially describing the scenarios mentioned in
section 8.8 Server Revocation of Locks?

The server can be "nice" in that upon lease expiration it keeps some
of the state active and only releases that which has conflicting=20
requests.
In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
However, if the server is not keeping partial, expired state then it=20
should
go ahead and return EXPIRED since it will be an additional burden
on the server to keep the extra information about just the state for=20
which
there was a conflict.  Just having the server correctly return EXPIRED
is a big step in any case. ;-)

Spencer


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



From exim@www1.ietf.org  Tue Apr 13 13:14:11 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA22623
	for <nfsv4-archive@odin.ietf.org>; Tue, 13 Apr 2004 13:14:11 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRT3-0006an-Un
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 13:13:02 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3DHD1vK025341
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 13:13:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRMv-0005fg-Sq
	for nfsv4-web-archive@optimus.ietf.org; Tue, 13 Apr 2004 13:06:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA22263
	for <nfsv4-web-archive@ietf.org>; Tue, 13 Apr 2004 13:06:38 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRMt-0003TW-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:06:39 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDRKZ-0003IA-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:04:17 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRIv-00034s-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:02:33 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDREW-0004Ib-Ue; Tue, 13 Apr 2004 12:58:00 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRAJ-0003qB-C7
	for nfsv4@optimus.ietf.org; Tue, 13 Apr 2004 12:53:39 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA21696
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 12:53:34 -0400 (EDT)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRAG-0002EI-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 12:53:36 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDR6C-0001wZ-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 12:49:25 -0400
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDR0y-0001UI-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 12:44:00 -0400
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id MAA65747
	for nfsv4@ietf.org; Tue, 13 Apr 2004 12:43:38 -0400 (EDT)
Message-Id: <200404131643.MAA65747@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] more re: NFS4ERR_EXPIRED
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 13 Apr 2004 12:43:38 -0400 (EDT)
Date: Tue, 13 Apr 2004 12:43:38 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,NO_REAL_NAME autolearn=no 
	version=2.60

> Excellent example and question.  Here's my take.
and a most excellent response. (I have clipped out various sections.)

> I would say that BAD_STATEID is returned because only a single stateid
> was released by the server and because returning EXPIRED would imply,
> first that a lease expired, which it hasn't, and second, that all of
> the stateid's associated with the lease were released, which also is
> not true.
> 
> If the stateid was discarded because the lease expired and all of the
> stateids associated with the lease were expired at the same time, then
> EXPIRED should be returned.

Sounds good to me. (Its what my server currently does.)

> On the other hand, if the lease expired and the delegation were discarded
> because of a conflicting lock (so that other stateids associated with the
> same lease might survive and be revived), then BAD_STATEID is to be returned,
> even if the occasion for discarding the stateid were the lease expiration
> (e.g. there has been a conflict with the delegation in existence and once
> the lease expired, that kicked off the discarding).  The critical thing 
> in my view is what the client is able to conclude.  If EXPIRED is returned,
> he may conclude that all of the associated stateids are gone (because of a 
> lease expiration), while with BAD_STATEID, he may only assume that the 
> stateid in question is gone, even if the precipitating event is a lease
> expiration.

Sounds good also (my server never does this), but I will note that maybe
adding to the definition of NFS4ERR_EXPIRED in Sec. 12 might
be a good idea to help clarify this? Something along the lines of:

	and all state for the clientid and associated stateids has
	been discarded by the server.

I have no idea if such editorial changes are still feasible?

> BTW, there seems to be a third intermediate case between the standard
> one (free all locks at lease expiration) and the "nice" one of just
> freeing the ones that conflict that seems like it might be a valid 
> choice.  That is, to keep the locks at lease expiration, but as soon
> as there is some conflict on any lock, to release all of them, rather
> than just the one in conflict.  If the client renewed the lease before
> any conflict occurred, he would be OK (as if no expiration happened),
> but if a conflict happend first, he would get EXPIRED (I believe) since
> the client can use this to know that all of the stateids associated
> with the locks are gone, which they would be in this case.  Comments?    

This is what my server does. It doesn't free state when a lease expires
(unless the state is "mouldy", ie. several hours->days since lease
 expiration), but does release all the state related to the client when
a conflict needs to be resolved and the lease expires. The only case
where my server frees state for a single stateid for a client, but retains the
other state for the client, is the one where the lease doesn't expire, but the
Recall of a delegation doesn't work. (And I believe that is the only case where
a correctly functioning client would get NFS4ERR_BADSTATEID returned from
my server.)

> I agree with this and don't forget NFS4ERR_ADMIN_REVOKED for those
> special occasions of administrator NFSv4 angst.

My server doesn't yet have an "admin tool". However, it seems that this
implies the revoked state will have to be retained, so that the server
can know to return this error instead of the others? (Not a problem,
imho, but an observation.)

> Oh yes, then NFS4ERR_CB_PATH_DOWN for the RENEW where the
> server knows or thinks there is a problem with the callback path.

Yep, I do that, too. I'll also note that, although I don't recall it being
mentioned in the RFC, that it would be really nice for a client to Return
all outstanding Delegations for that server ASAP. (Maybe a definition
for NFS4ERR_CB_PATH_DOWN could be added to Sec. 12 w.r.t this?)
Sec. 14.2.28 seems clear w.r.t. when NFS4ERR_CB_PATH_DOWN is returned,
but makes no mention of what a client might be expected to do for that
case?

Thanks go to both Dave and Spencer for the responses, rick

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



From exim@www1.ietf.org  Tue Apr 13 13:45:54 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24454
	for <nfsv4-archive@odin.ietf.org>; Tue, 13 Apr 2004 13:45:53 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRuO-00031D-4C
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 13:41:16 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3DHfGoZ011598
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 13:41:16 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRnR-0001eP-G6
	for nfsv4-web-archive@optimus.ietf.org; Tue, 13 Apr 2004 13:34:06 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23985
	for <nfsv4-web-archive@ietf.org>; Tue, 13 Apr 2004 13:34:03 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRnP-0006Fd-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:34:03 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDRkj-0005w1-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:31:18 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRiO-0005gt-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:28:52 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRfd-0000jk-Pp; Tue, 13 Apr 2004 13:26:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRdp-0008Lt-8W
	for nfsv4@optimus.ietf.org; Tue, 13 Apr 2004 13:24:09 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23270
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 13:24:06 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRdl-0005AY-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 13:24:06 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDRaN-0004pB-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 13:20:36 -0400
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRXw-0004T2-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 13:18:04 -0400
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i3DHHSgx015140;
	Tue, 13 Apr 2004 10:17:28 -0700 (PDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3DHHRjW025912;
	Tue, 13 Apr 2004 10:17:27 -0700 (PDT)
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED54@silver.nane.netapp.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED54@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <D347DADC-8D6E-11D8-B69B-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: <rick@snowhite.cis.uoguelph.ca>, <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 13 Apr 2004 12:20:13 -0500
Date: Tue, 13 Apr 2004 12:20:13 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 13, 2004, at 9:23 AM, Noveck, Dave wrote:

>> So you are partially describing the scenarios mentioned in
>> section 8.8 Server Revocation of Locks?
>
> Yes.  Those are the possibilities.
>
>> The server can be "nice" in that upon lease expiration it keeps some
>> of the state active and only releases that which has conflicting
>> requests.
>> In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
>> However, if the server is not keeping partial, expired state then it
>> should
>> go ahead and return EXPIRED since it will be an additional burden
>> on the server to keep the extra information about just the state for
>> which
>> there was a conflict.
>
> I agree that the server should return EXPIRED in this case, but I
> disagree about the reason.
>
> There would be no additional burden to return BAD_STATEID as the
> "nice" server does.  That's because if the server simply deallocated
> all the state entries along with the locks, when the lease expired,
> any reference to the deallocated states would naturally result in
> BAD_STATEID, with no extra server effort.

Are you thinking of a particular server/stateid implementation here?
If so, maybe you could walk through some of the logical checks
that demonstrate the "no additional burden".  In the way the Solaris
server currently implements this, there is additional burden.

> The reason to return EXPIRED is that it avoids making the client
> probe each of stateids, when you could just tell him (via EXPIRED)
> that they all are gone, and save him the effort.  The client has
> to be prepared to probe all the stateids because servers may keep
> locks and only get rid of them when there is a conflict.  The
> limiting case is that the lease may expire, and there may then be
> individual conflicts with all of the locks within the lease and
> the client has to deal with that possibility.  So if the client
> is coded correctly, for the server to throw away all locks at
> lease expiration and return BAD_STATEID would work correctly.  It
> is just kind of anti-social to make him go to that extra effort
> when there is no possibility that there is the benefit of getting
> some of his locks back.

The client may choose to an implementation as you suggest.  It may
also choose an alternate path.  It isn't a requirement for the client
to probe everything upon receive of BAD_STATEID.

> BTW, there seems to be a third intermediate case between the standard
> one (free all locks at lease expiration) and the "nice" one of just
> freeing the ones that conflict that seems like it might be a valid
> choice.  That is, to keep the locks at lease expiration, but as soon
> as there is some conflict on any lock, to release all of them, rather
> than just the one in conflict.  If the client renewed the lease before
> any conflict occurred, he would be OK (as if no expiration happened),
> but if a conflict happend first, he would get EXPIRED (I believe) since
> the client can use this to know that all of the stateids associated
> with the locks are gone, which they would be in this case.  Comments?

Yes.  I agree that there is this third alternative and it is the 
easiest for
the server to implement; okay, next to just removing the state on lease
expiration.

Spencer


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



From exim@www1.ietf.org  Tue Apr 13 13:58:51 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA25020
	for <nfsv4-archive@odin.ietf.org>; Tue, 13 Apr 2004 13:58:51 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDS5a-0004MA-Rl
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 13:52:50 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3DHqoun016742
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 13:52:50 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDS2p-000404-GE
	for nfsv4-web-archive@optimus.ietf.org; Tue, 13 Apr 2004 13:49:59 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24755
	for <nfsv4-web-archive@ietf.org>; Tue, 13 Apr 2004 13:49:57 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDS2l-0007Zl-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:49:55 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDS1B-0007QL-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:48:19 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRz8-0007GN-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 13:46:10 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRv6-00036i-NI; Tue, 13 Apr 2004 13:42:00 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDRoe-0001mc-RI
	for nfsv4@optimus.ietf.org; Tue, 13 Apr 2004 13:35:20 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24046
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 13:35:18 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRoc-0006P0-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 13:35:18 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDRm0-000644-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 13:32:38 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDRjY-0005kF-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 13:30:05 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3DHTJZh008249
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 10:29:24 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3DHTJXv012814
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 10:29:19 -0700 (PDT)
Received: from tmt.netapp.com ([10.97.6.39]) by silver.hq.netapp.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 13 Apr 2004 13:29:16 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C4217C.D8317E00"
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: Re: [nfsv4] more re: NFS4ERR_EXPIRED
Message-ID: <6.1.0.6.2.20040413131556.01cd2398@silver.nane.netapp.com>
Thread-Topic: [nfsv4] more re: NFS4ERR_EXPIRED
Thread-Index: AcQhfNjOzPBzyNZ3TEOOeQddzFl60A==
From: "Talpey, Thomas" <Thomas.Talpey@netapp.com>
To: <nfsv4@ietf.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 13 Apr 2004 10:27:23 -0700
Date: Tue, 13 Apr 2004 10:27:23 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE 
	autolearn=no version=2.60

This is a multi-part message in MIME format.

------_=_NextPart_001_01C4217C.D8317E00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Can someone clarify for me what recovery the client can/should
perform in the various cases we're describing? Do I read Dave
saying that EXPIRED might cause the client to invoke mass
recovery on all its stateids? This would be a pretty big incentive
to be careful with it!

I agree we should be much more explicit about CB_PATH_DOWN
in the doc. There are only two sentences on it in RFC3530, both
referring to the server's responsibility. In fact, since the server
is required to renew leases after returning this, it would seem
to be more of a buying-time thing than an error.

Tom.

At 12:43 PM 4/13/2004, rick@snowhite.cis.uoguelph.ca wrote:
>> Excellent example and question.  Here's my take.
>and a most excellent response. (I have clipped out various sections.)
>
>> I would say that BAD_STATEID is returned because only a single =
stateid
>> was released by the server and because returning EXPIRED would imply,
>> first that a lease expired, which it hasn't, and second, that all of
>> the stateid's associated with the lease were released, which also is
>> not true.
>>=20
>> If the stateid was discarded because the lease expired and all of the
>> stateids associated with the lease were expired at the same time, =
then
>> EXPIRED should be returned.
>
>Sounds good to me. (Its what my server currently does.)
>
>> On the other hand, if the lease expired and the delegation were =
discarded
>> because of a conflicting lock (so that other stateids associated with =
the
>> same lease might survive and be revived), then BAD_STATEID is to be =
returned,
>> even if the occasion for discarding the stateid were the lease =
expiration
>> (e.g. there has been a conflict with the delegation in existence and =
once
>> the lease expired, that kicked off the discarding).  The critical =
thing=20
>> in my view is what the client is able to conclude.  If EXPIRED is =
returned,
>> he may conclude that all of the associated stateids are gone (because =
of a=20
>> lease expiration), while with BAD_STATEID, he may only assume that =
the=20
>> stateid in question is gone, even if the precipitating event is a =
lease
>> expiration.
>
>Sounds good also (my server never does this), but I will note that =
maybe
>adding to the definition of NFS4ERR_EXPIRED in Sec. 12 might
>be a good idea to help clarify this? Something along the lines of:
>
>	and all state for the clientid and associated stateids has
>	been discarded by the server.
>
>I have no idea if such editorial changes are still feasible?
>
>> BTW, there seems to be a third intermediate case between the standard
>> one (free all locks at lease expiration) and the "nice" one of just
>> freeing the ones that conflict that seems like it might be a valid=20
>> choice.  That is, to keep the locks at lease expiration, but as soon
>> as there is some conflict on any lock, to release all of them, rather
>> than just the one in conflict.  If the client renewed the lease =
before
>> any conflict occurred, he would be OK (as if no expiration happened),
>> but if a conflict happend first, he would get EXPIRED (I believe) =
since
>> the client can use this to know that all of the stateids associated
>> with the locks are gone, which they would be in this case.  Comments? =
  =20
>
>This is what my server does. It doesn't free state when a lease expires
>(unless the state is "mouldy", ie. several hours->days since lease
> expiration), but does release all the state related to the client when
>a conflict needs to be resolved and the lease expires. The only case
>where my server frees state for a single stateid for a client, but =
retains the
>other state for the client, is the one where the lease doesn't expire, =
but the
>Recall of a delegation doesn't work. (And I believe that is the only =
case where
>a correctly functioning client would get NFS4ERR_BADSTATEID returned =
from
>my server.)
>
>> I agree with this and don't forget NFS4ERR_ADMIN_REVOKED for those
>> special occasions of administrator NFSv4 angst.
>
>My server doesn't yet have an "admin tool". However, it seems that this
>implies the revoked state will have to be retained, so that the server
>can know to return this error instead of the others? (Not a problem,
>imho, but an observation.)
>
>> Oh yes, then NFS4ERR_CB_PATH_DOWN for the RENEW where the
>> server knows or thinks there is a problem with the callback path.
>
>Yep, I do that, too. I'll also note that, although I don't recall it =
being
>mentioned in the RFC, that it would be really nice for a client to =
Return
>all outstanding Delegations for that server ASAP. (Maybe a definition
>for NFS4ERR_CB_PATH_DOWN could be added to Sec. 12 w.r.t this?)
>Sec. 14.2.28 seems clear w.r.t. when NFS4ERR_CB_PATH_DOWN is returned,
>but makes no mention of what a client might be expected to do for that
>case?
>
>Thanks go to both Dave and Spencer for the responses, rick
>
>_______________________________________________
>nfsv4 mailing list
>nfsv4@ietf.org
>https://www1.ietf.org/mailman/listinfo/nfsv4


------_=_NextPart_001_01C4217C.D8317E00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>Re: [nfsv4] more re: NFS4ERR_EXPIRED</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Can someone clarify for me what recovery the client =
can/should</FONT>

<BR><FONT SIZE=3D2>perform in the various cases we're describing? Do I =
read Dave</FONT>

<BR><FONT SIZE=3D2>saying that EXPIRED might cause the client to invoke =
mass</FONT>

<BR><FONT SIZE=3D2>recovery on all its stateids? This would be a pretty =
big incentive</FONT>

<BR><FONT SIZE=3D2>to be careful with it!</FONT>
</P>

<P><FONT SIZE=3D2>I agree we should be much more explicit about =
CB_PATH_DOWN</FONT>

<BR><FONT SIZE=3D2>in the doc. There are only two sentences on it in =
RFC3530, both</FONT>

<BR><FONT SIZE=3D2>referring to the server's responsibility. In fact, =
since the server</FONT>

<BR><FONT SIZE=3D2>is required to renew leases after returning this, it =
would seem</FONT>

<BR><FONT SIZE=3D2>to be more of a buying-time thing than an =
error.</FONT>
</P>

<P><FONT SIZE=3D2>Tom.</FONT>
</P>

<P><FONT SIZE=3D2>At 12:43 PM 4/13/2004, rick@snowhite.cis.uoguelph.ca =
wrote:</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; Excellent example and question.&nbsp; Here's =
my take.</FONT>

<BR><FONT SIZE=3D2>&gt;and a most excellent response. (I have clipped =
out various sections.)</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; I would say that BAD_STATEID is returned =
because only a single stateid</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; was released by the server and because =
returning EXPIRED would imply,</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; first that a lease expired, which it hasn't, =
and second, that all of</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; the stateid's associated with the lease were =
released, which also is</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; not true.</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; </FONT>

<BR><FONT SIZE=3D2>&gt;&gt; If the stateid was discarded because the =
lease expired and all of the</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; stateids associated with the lease were =
expired at the same time, then</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; EXPIRED should be returned.</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Sounds good to me. (Its what my server currently =
does.)</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; On the other hand, if the lease expired and =
the delegation were discarded</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; because of a conflicting lock (so that other =
stateids associated with the</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; same lease might survive and be revived), =
then BAD_STATEID is to be returned,</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; even if the occasion for discarding the =
stateid were the lease expiration</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; (e.g. there has been a conflict with the =
delegation in existence and once</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; the lease expired, that kicked off the =
discarding).&nbsp; The critical thing </FONT>

<BR><FONT SIZE=3D2>&gt;&gt; in my view is what the client is able to =
conclude.&nbsp; If EXPIRED is returned,</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; he may conclude that all of the associated =
stateids are gone (because of a </FONT>

<BR><FONT SIZE=3D2>&gt;&gt; lease expiration), while with BAD_STATEID, =
he may only assume that the </FONT>

<BR><FONT SIZE=3D2>&gt;&gt; stateid in question is gone, even if the =
precipitating event is a lease</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; expiration.</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Sounds good also (my server never does this), but =
I will note that maybe</FONT>

<BR><FONT SIZE=3D2>&gt;adding to the definition of NFS4ERR_EXPIRED in =
Sec. 12 might</FONT>

<BR><FONT SIZE=3D2>&gt;be a good idea to help clarify this? Something =
along the lines of:</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and all =
state for the clientid and associated stateids has</FONT>

<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; been =
discarded by the server.</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;I have no idea if such editorial changes are =
still feasible?</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; BTW, there seems to be a third intermediate =
case between the standard</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; one (free all locks at lease expiration) and =
the &quot;nice&quot; one of just</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; freeing the ones that conflict that seems =
like it might be a valid </FONT>

<BR><FONT SIZE=3D2>&gt;&gt; choice.&nbsp; That is, to keep the locks at =
lease expiration, but as soon</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; as there is some conflict on any lock, to =
release all of them, rather</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; than just the one in conflict.&nbsp; If the =
client renewed the lease before</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; any conflict occurred, he would be OK (as if =
no expiration happened),</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; but if a conflict happend first, he would =
get EXPIRED (I believe) since</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; the client can use this to know that all of =
the stateids associated</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; with the locks are gone, which they would be =
in this case.&nbsp; Comments?&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;This is what my server does. It doesn't free =
state when a lease expires</FONT>

<BR><FONT SIZE=3D2>&gt;(unless the state is &quot;mouldy&quot;, ie. =
several hours-&gt;days since lease</FONT>

<BR><FONT SIZE=3D2>&gt; expiration), but does release all the state =
related to the client when</FONT>

<BR><FONT SIZE=3D2>&gt;a conflict needs to be resolved and the lease =
expires. The only case</FONT>

<BR><FONT SIZE=3D2>&gt;where my server frees state for a single stateid =
for a client, but retains the</FONT>

<BR><FONT SIZE=3D2>&gt;other state for the client, is the one where the =
lease doesn't expire, but the</FONT>

<BR><FONT SIZE=3D2>&gt;Recall of a delegation doesn't work. (And I =
believe that is the only case where</FONT>

<BR><FONT SIZE=3D2>&gt;a correctly functioning client would get =
NFS4ERR_BADSTATEID returned from</FONT>

<BR><FONT SIZE=3D2>&gt;my server.)</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; I agree with this and don't forget =
NFS4ERR_ADMIN_REVOKED for those</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; special occasions of administrator NFSv4 =
angst.</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;My server doesn't yet have an &quot;admin =
tool&quot;. However, it seems that this</FONT>

<BR><FONT SIZE=3D2>&gt;implies the revoked state will have to be =
retained, so that the server</FONT>

<BR><FONT SIZE=3D2>&gt;can know to return this error instead of the =
others? (Not a problem,</FONT>

<BR><FONT SIZE=3D2>&gt;imho, but an observation.)</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; Oh yes, then NFS4ERR_CB_PATH_DOWN for the =
RENEW where the</FONT>

<BR><FONT SIZE=3D2>&gt;&gt; server knows or thinks there is a problem =
with the callback path.</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Yep, I do that, too. I'll also note that, =
although I don't recall it being</FONT>

<BR><FONT SIZE=3D2>&gt;mentioned in the RFC, that it would be really =
nice for a client to Return</FONT>

<BR><FONT SIZE=3D2>&gt;all outstanding Delegations for that server ASAP. =
(Maybe a definition</FONT>

<BR><FONT SIZE=3D2>&gt;for NFS4ERR_CB_PATH_DOWN could be added to Sec. =
12 w.r.t this?)</FONT>

<BR><FONT SIZE=3D2>&gt;Sec. 14.2.28 seems clear w.r.t. when =
NFS4ERR_CB_PATH_DOWN is returned,</FONT>

<BR><FONT SIZE=3D2>&gt;but makes no mention of what a client might be =
expected to do for that</FONT>

<BR><FONT SIZE=3D2>&gt;case?</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Thanks go to both Dave and Spencer for the =
responses, rick</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT =
SIZE=3D2>&gt;_______________________________________________</FONT>

<BR><FONT SIZE=3D2>&gt;nfsv4 mailing list</FONT>

<BR><FONT SIZE=3D2>&gt;nfsv4@ietf.org</FONT>

<BR><FONT SIZE=3D2>&gt;<A =
HREF=3D"https://www1.ietf.org/mailman/listinfo/nfsv4">https://www1.ietf.o=
rg/mailman/listinfo/nfsv4</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C4217C.D8317E00--

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



From exim@www1.ietf.org  Tue Apr 13 17:17:32 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA09272
	for <nfsv4-archive@odin.ietf.org>; Tue, 13 Apr 2004 17:17:32 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDUzU-0003Pw-D6
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 16:58:44 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3DKwiio013132
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 16:58:44 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDTpV-0004pk-GH
	for nfsv4-web-archive@optimus.ietf.org; Tue, 13 Apr 2004 15:44:25 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA02438
	for <nfsv4-web-archive@ietf.org>; Tue, 13 Apr 2004 15:44:19 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDTpT-0001rB-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 15:44:19 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDTnd-0001b6-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 15:42:26 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDTlz-0001PJ-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 15:40:43 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDTbe-0002Ud-U8; Tue, 13 Apr 2004 15:30:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDTWS-0001hc-DQ
	for nfsv4@optimus.ietf.org; Tue, 13 Apr 2004 15:24:40 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA01069
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 15:24:37 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDTWO-0007fz-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 15:24:36 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDTU9-0007VU-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 15:22:18 -0400
Received: from e31.co.us.ibm.com ([32.97.110.129])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDTTF-0007Kk-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 15:21:21 -0400
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3DJKe5N143612
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 15:20:40 -0400
Received: from d03nm128.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170])
	by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3DJKZbT140860
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 13:20:35 -0600
To: nfsv4@ietf.org
X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
Message-ID: <OFBE9A737B.0C9A6EAC-ON88256E75.006A145C-88256E75.006A37C1@us.ibm.com>
From: Kaukab Uddin <uddin@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM128/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/13/2004 13:20:35
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=07BBE4E6DFF992CC8f9e8a93df938690918c07BBE4E6DFF992CC"
Content-Disposition: inline
Subject: [nfsv4] Question On the seq_window field in a context creation response of the
 RPCSEC_GSS Protocol( RFC 2203)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 13 Apr 2004 12:20:10 -0700
Date: Tue, 13 Apr 2004 12:20:10 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no 
	version=2.60

--0__=07BBE4E6DFF992CC8f9e8a93df938690918c07BBE4E6DFF992CC
Content-type: text/plain; charset=US-ASCII





We would like to validate our interpretation and understanding of the
definition of a context sequence window
(as represented by the seq_window field in a context creation response).

We interpret this to mean the maximum number that could possibly be
supported on a security context and not
necessarily the exact number that needs to be supported on a security
context.

So for example:

1) If seq_window returned by the server  is 'n'.

2) If the client increments its sequence number by '1' for its requests,
then the effective number
    of simultaneous requests supported on this context would in fact be
'n'.

3) However if the client has a sequence number algorithm, that increments
the sequence number
    by more than '1', then the effective number of simultaneous requests
supported on this context
    would actually be less than 'n'

 Is our understanding here correct?

Regards;
Kaukab

--0__=07BBE4E6DFF992CC8f9e8a93df938690918c07BBE4E6DFF992CC
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p>We would like to validate our interpretation and understanding of the definition of a context sequence window<br>
(as represented by the seq_window field in a context creation response).<br>
<br>
We interpret this to mean the maximum number that could possibly be supported on a security context and not<br>
necessarily the exact number that needs to be supported on a security context.  <br>
 <br>
So for example:<br>
<br>
1) If seq_window returned by the server  is 'n'.<br>
<br>
2) If the client increments its sequence number by '1' for its requests, then the effective number<br>
    of simultaneous requests supported on this context would in fact be 'n'.<br>
 <br>
3) However if the client has a sequence number algorithm, that increments the sequence number <br>
    by more than '1', then the effective number of simultaneous requests supported on this context<br>
    would actually be less than 'n'  <br>
<br>
 Is our understanding here correct?<br>
<br>
Regards;<br>
Kaukab<br>
<br>
</body></html>
--0__=07BBE4E6DFF992CC8f9e8a93df938690918c07BBE4E6DFF992CC--


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



From exim@www1.ietf.org  Tue Apr 13 19:09:44 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA18116
	for <nfsv4-archive@odin.ietf.org>; Tue, 13 Apr 2004 19:09:44 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDWzO-0003tA-Na
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 19:06:46 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3DN6k25014941
	for nfsv4-archive@odin.ietf.org; Tue, 13 Apr 2004 19:06:46 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDWqu-0002af-9U
	for nfsv4-web-archive@optimus.ietf.org; Tue, 13 Apr 2004 18:58:00 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA17251
	for <nfsv4-web-archive@ietf.org>; Tue, 13 Apr 2004 18:57:55 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDWqq-0004Tf-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 18:57:56 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDWen-0003UJ-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 18:45:29 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDWP9-0002L1-00
	for nfsv4-web-archive@ietf.org; Tue, 13 Apr 2004 18:29:19 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDWGA-00053n-K5; Tue, 13 Apr 2004 18:20:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDWB2-0002Ff-Ll
	for nfsv4@optimus.ietf.org; Tue, 13 Apr 2004 18:14:44 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA14387
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 18:14:39 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDWAy-000197-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 18:14:40 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDVrO-0007U9-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 17:54:28 -0400
Received: from [207.230.99.20] (helo=eagle.sharedhosting.net)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDVdI-0005rn-00
	for nfsv4@ietf.org; Tue, 13 Apr 2004 17:39:52 -0400
Received: from eisler.com (nat-198-95-226-230.netapp.com [198.95.226.230])
	(authenticated bits=0)
	by eagle.sharedhosting.net (8.12.10/8.12.10) with ESMTP id i3DLd7aq003440
	for <nfsv4@ietf.org>; Tue, 13 Apr 2004 14:39:08 -0700 (PDT)
Message-ID: <407C5E12.5020106@eisler.com>
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: nfsv4@ietf.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Subject: [nfsv4] Re: Question On the seq_window field in a context creation response
 of the RPCSEC_GSS Protocol( RFC 2203)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 13 Apr 2004 14:39:30 -0700
Date: Tue, 13 Apr 2004 14:39:30 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,LINES_OF_YELLING 
	autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

If sequence number in the post establishment phase were
uniformly 2 or more greater than the previous then your
interpretation is correct. Otherwise, in general, your
interpretation is not correct, as this example
illustrates.

seq_window = 10

-> client request w/ sequence number

^ window range on server

A server accepts
D server discards

-> 11  A ^  2 ... 11
->  3  A ^  2 ... 11
->  5  A ^  2 ... 11
->  7  A ^  2 ... 11
->  2  A ^  2 ... 11
->  8  A ^  2 ... 11
-> 10  A ^  2 ... 11
->  9  A ^  2 ... 11
->  6  A ^  2 ... 11
->  4  A ^  2 ... 11

The above shows a seemingly random generation of sequence
numbers, and yet the entire window of 10 is available.

The above might be a consequence of multithreading in
some client operating environments.

-----Original Message-----
From: Kaukab Uddin [mailto:uddin@us.ibm.com]
Sent: Tuesday, April 13, 2004 12:20 PM
To: nfsv4@ietf.org
Subject: [nfsv4] Question On the seq_window field in a context creation response of the RPCSEC_GSS Protocol( RFC 2203)


We would like to validate our interpretation and understanding of the definition of a context sequence window
(as represented by the seq_window field in a context creation response).

We interpret this to mean the maximum number that could possibly be supported on a security context and not
necessarily the exact number that needs to be supported on a security context.

So for example:

1) If seq_window returned by the server is 'n'.

2) If the client increments its sequence number by '1' for its requests, then the effective number
of simultaneous requests supported on this context would in fact be 'n'.

3) However if the client has a sequence number algorithm, that increments the sequence number
by more than '1', then the effective number of simultaneous requests supported on this context
would actually be less than 'n'

Is our understanding here correct?

Regards;
Kaukab




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



From exim@www1.ietf.org  Wed Apr 14 02:27:21 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA29413
	for <nfsv4-archive@odin.ietf.org>; Wed, 14 Apr 2004 02:27:21 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdit-0006fz-Th
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 02:18:12 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3E6IB8q025663
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 02:18:11 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdfC-0004pc-MF
	for nfsv4-web-archive@optimus.ietf.org; Wed, 14 Apr 2004 02:14:22 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA17802
	for <nfsv4-web-archive@ietf.org>; Wed, 14 Apr 2004 02:14:20 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdf9-0004oC-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 02:14:19 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDdeF-0004hX-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 02:13:24 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDddm-0004as-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 02:12:54 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdZC-0002C8-O9; Wed, 14 Apr 2004 02:08:10 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdTW-0006az-6q
	for nfsv4@optimus.ietf.org; Wed, 14 Apr 2004 02:02:18 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA06271
	for <nfsv4@ietf.org>; Wed, 14 Apr 2004 02:02:15 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdTS-000312-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 02:02:14 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDdSZ-0002su-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 02:01:20 -0400
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdRi-0002an-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 02:00:26 -0400
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i3E5xugx014658;
	Tue, 13 Apr 2004 22:59:56 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-47.Central.Sun.COM [129.150.32.47])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3E5xtjW020080;
	Tue, 13 Apr 2004 22:59:55 -0700 (PDT)
In-Reply-To: <200404131643.MAA65747@snowhite.cis.uoguelph.ca>
References: <200404131643.MAA65747@snowhite.cis.uoguelph.ca>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <572A7238-8DD9-11D8-B69B-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more re: NFS4ERR_EXPIRED
To: rick@snowhite.cis.uoguelph.ca
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Wed, 14 Apr 2004 01:02:41 -0500
Date: Wed, 14 Apr 2004 01:02:41 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


<during the thread on EXPIRED and BAD_STATEID errors>

On Apr 13, 2004, at 11:43 AM, rick@snowhite.cis.uoguelph.ca wrote:

> Sounds good also (my server never does this), but I will note that 
> maybe
> adding to the definition of NFS4ERR_EXPIRED in Sec. 12 might
> be a good idea to help clarify this? Something along the lines of:
>
> 	and all state for the clientid and associated stateids has
> 	been discarded by the server.
>
> I have no idea if such editorial changes are still feasible?

RFC3530 is what it is; changes can not be made in the RFC itself.

For error, errata can be submitted to the RFC editor and posted
to the RFC editor's errata pages.  I have an outstanding AI to
gather what has been mentioned to date and get that posted.

For interpretation items, the mailing list is the best place to start.
For large issues, like the ACL mapping, an informational RFC may
be appropriate.

Spencer


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



From exim@www1.ietf.org  Wed Apr 14 02:31:29 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA02564
	for <nfsv4-archive@odin.ietf.org>; Wed, 14 Apr 2004 02:31:29 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdtD-0001Ca-Lm
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 02:28:51 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3E6Sprt004615
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 02:28:51 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdrs-0000k8-G5
	for nfsv4-web-archive@optimus.ietf.org; Wed, 14 Apr 2004 02:27:28 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA29494
	for <nfsv4-web-archive@ietf.org>; Wed, 14 Apr 2004 02:27:25 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdro-0005g6-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 02:27:24 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDdnk-0005Sp-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 02:23:13 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdk7-0005D8-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 02:19:27 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdgq-0005eh-1Z; Wed, 14 Apr 2004 02:16:04 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDdai-0002qG-AF
	for nfsv4@optimus.ietf.org; Wed, 14 Apr 2004 02:09:44 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA13799
	for <nfsv4@ietf.org>; Wed, 14 Apr 2004 02:09:41 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdae-00049l-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 02:09:40 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDdZx-0003zO-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 02:08:58 -0400
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDdYn-0003hu-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 02:07:46 -0400
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i3E67Ggx018659;
	Tue, 13 Apr 2004 23:07:16 -0700 (PDT)
Received: from [192.168.0.3] (vpn-129-150-32-47.Central.Sun.COM [129.150.32.47])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3E67FjW021437;
	Tue, 13 Apr 2004 23:07:15 -0700 (PDT)
In-Reply-To: <6.1.0.6.2.20040413131556.01cd2398@silver.nane.netapp.com>
References: <6.1.0.6.2.20040413131556.01cd2398@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-5-536587471
Message-Id: <5DE7970C-8DDA-11D8-B69B-000A95DBCB70@sun.com>
Cc: <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more re: NFS4ERR_EXPIRED
To: "Talpey, Thomas" <Thomas.Talpey@netapp.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Wed, 14 Apr 2004 01:10:02 -0500
Date: Wed, 14 Apr 2004 01:10:02 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60


--Apple-Mail-5-536587471
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed
Content-Transfer-Encoding: 7bit


On Apr 13, 2004, at 12:27 PM, Talpey, Thomas wrote:

> Can someone clarify for me what recovery the client can/should
>  perform in the various cases we're describing? Do I read Dave
>  saying that EXPIRED might cause the client to invoke mass
>  recovery on all its stateids? This would be a pretty big incentive
>  to be careful with it!

The recovery path the client chooses is its own.  Nothing is
prescribed in the RFC but one would likely expect that a reasonable
client may attempt to reopen files for which it held state at the
time of EXPIRED.  I don't remember specifically if there is suggestion
of how the client may make a reasonable choice about when to
reopen a file.

Things to consider from the client's perspective are things like:
were file locks ever held for the file, was the file ever modified by
the client, a delegation was held but no active opens by applications
were present at the client, etc.  Some clients may choose to be more
aggressive about their recovery patterns to deal with servers that
do not offer a grace period and will therefore respond to client
attempting to open files with CLAIM_PREVIOUS with the NO_GRACE
error.  The reason I mention that here, even though it is a
different scenario, is that it is similar to the case that a client's
lease has expired.

The server should attempt to do its best to avoid returning EXPIRED
but it can not guarantee to do so.

>
> I agree we should be much more explicit about CB_PATH_DOWN
>  in the doc. There are only two sentences on it in RFC3530, both
>  referring to the server's responsibility. In fact, since the server
>  is required to renew leases after returning this, it would seem
>  to be more of a buying-time thing than an error.

A renewal of a lease does not guarantee that the server will
still not choose to revoke a delegation.  It is not required to hold
the delegation forever; it should hold it for one lease period
and most likely it will be longer than that but it does need to
make forward progress and if the client is being stubborn about
returning a delegation (not making forward progress in the form
of flushing modified data for example) then it can revoke the
delegation and move on.

Spencer


--Apple-Mail-5-536587471
Content-Type: text/enriched;
	charset=US-ASCII
Content-Transfer-Encoding: 7bit



On Apr 13, 2004, at 12:27 PM, Talpey, Thomas wrote:


<excerpt><smaller>Can someone clarify for me what recovery the client
can/should</smaller> 

 <smaller>perform in the various cases we're describing? Do I read
Dave</smaller> 

 <smaller>saying that EXPIRED might cause the client to invoke
mass</smaller> 

 <smaller>recovery on all its stateids? This would be a pretty big
incentive</smaller> 

 <smaller>to be careful with it!</smaller> 

</excerpt>

The recovery path the client chooses is its own.  Nothing is

prescribed in the RFC but one would likely expect that a reasonable

client may attempt to reopen files for which it held state at the

time of EXPIRED.  I don't remember specifically if there is suggestion

of how the client may make a reasonable choice about when to 

reopen a file.


Things to consider from the client's perspective are things like:

were file locks ever held for the file, was the file ever modified by

the client, a delegation was held but no active opens by applications

were present at the client, etc.  Some clients may choose to be more

aggressive about their recovery patterns to deal with servers that

do not offer a grace period and will therefore respond to client

attempting to open files with CLAIM_PREVIOUS with the NO_GRACE

error.  The reason I mention that here, even though it is a

different scenario, is that it is similar to the case that a client's

lease has expired.


The server should attempt to do its best to avoid returning EXPIRED

but it can not guarantee to do so.


<excerpt>

<smaller>I agree we should be much more explicit about
CB_PATH_DOWN</smaller> 

 <smaller>in the doc. There are only two sentences on it in RFC3530,
both</smaller> 

 <smaller>referring to the server's responsibility. In fact, since the
server</smaller> 

 <smaller>is required to renew leases after returning this, it would
seem</smaller> 

 <smaller>to be more of a buying-time thing than an error.</smaller> 

</excerpt>

A renewal of a lease does not guarantee that the server will

still not choose to revoke a delegation.  It is not required to hold

the delegation forever; it should hold it for one lease period

and most likely it will be longer than that but it does need to

make forward progress and if the client is being stubborn about

returning a delegation (not making forward progress in the form

of flushing modified data for example) then it can revoke the

delegation and move on.


Spencer



--Apple-Mail-5-536587471--


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



From exim@www1.ietf.org  Wed Apr 14 08:36:13 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA20894
	for <nfsv4-archive@odin.ietf.org>; Wed, 14 Apr 2004 08:36:13 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDjaO-0003ZG-37
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 08:33:48 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3ECXmOJ013714
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 08:33:48 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDjXR-0002p6-2l
	for nfsv4-web-archive@optimus.ietf.org; Wed, 14 Apr 2004 08:30:45 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA20634
	for <nfsv4-web-archive@ietf.org>; Wed, 14 Apr 2004 08:30:42 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDjXP-0002yI-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 08:30:43 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDjWI-0002kk-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 08:29:36 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDjVJ-0002bD-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 08:28:33 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDjOz-0001gM-3v; Wed, 14 Apr 2004 08:22:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDjMg-00010C-5U
	for nfsv4@optimus.ietf.org; Wed, 14 Apr 2004 08:19:38 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA19896
	for <nfsv4@ietf.org>; Wed, 14 Apr 2004 08:19:36 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDjMf-0001Oq-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 08:19:37 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDjLs-0001HF-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 08:18:49 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDjL3-00018X-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 08:17:57 -0400
Received: from hawk.corp.netapp.com (hawk [10.57.156.122])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3ECHQZh017441;
	Wed, 14 Apr 2004 05:17:26 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by hawk.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3ECHPt8006882;
	Wed, 14 Apr 2004 05:17:25 -0700 (PDT)
Received: from tmt.netapp.com ([10.97.6.37]) by silver.hq.netapp.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 14 Apr 2004 08:17:23 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C4221A.70CA0B80"
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
Subject: Re: [nfsv4] more re: NFS4ERR_EXPIRED
Message-ID: <6.1.0.6.2.20040414080423.01d4dec0@silver.nane.netapp.com>
Thread-Topic: [nfsv4] more re: NFS4ERR_EXPIRED
Thread-Index: AcQiGnE00uXhjM1NRiSevIsS69uacQ==
From: "Talpey, Thomas" <Thomas.Talpey@netapp.com>
To: "Spencer Shepler" <spencer.shepler@sun.com>
Cc: <nfsv4@ietf.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Wed, 14 Apr 2004 05:16:23 -0700
Date: Wed, 14 Apr 2004 05:16:23 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,HTML_30_40,HTML_MESSAGE 
	autolearn=no version=2.60

This is a multi-part message in MIME format.

------_=_NextPart_001_01C4221A.70CA0B80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks, all good points. Probably we should undertake an
informational "NFSv4 Client Best Practices" document, using
the knowledge we're amassing.

Let's consider this for discussion at the upcoming Bakeathon.
I'll try to put together some ideas.

Tom.

At 02:10 AM 4/14/2004, Spencer Shepler wrote:
>
>
>On Apr 13, 2004, at 12:27 PM, Talpey, Thomas wrote:=20
>
>
>Can someone clarify for me what recovery the client can/should=20
>
>perform in the various cases we're describing? Do I read Dave=20
>
>saying that EXPIRED might cause the client to invoke mass=20
>
>recovery on all its stateids? This would be a pretty big incentive=20
>
>to be careful with it!=20
>
>
>The recovery path the client chooses is its own. Nothing is=20
>
>prescribed in the RFC but one would likely expect that a reasonable=20
>
>client may attempt to reopen files for which it held state at the=20
>
>time of EXPIRED. I don't remember specifically if there is suggestion=20
>
>of how the client may make a reasonable choice about when to=20
>
>reopen a file.=20
>
>
>Things to consider from the client's perspective are things like:=20
>
>were file locks ever held for the file, was the file ever modified by=20
>
>the client, a delegation was held but no active opens by applications=20
>
>were present at the client, etc. Some clients may choose to be more=20
>
>aggressive about their recovery patterns to deal with servers that=20
>
>do not offer a grace period and will therefore respond to client=20
>
>attempting to open files with CLAIM_PREVIOUS with the NO_GRACE=20
>
>error. The reason I mention that here, even though it is a=20
>
>different scenario, is that it is similar to the case that a client's=20
>
>lease has expired.=20
>
>
>The server should attempt to do its best to avoid returning EXPIRED=20
>
>but it can not guarantee to do so.=20
>
>
>
>I agree we should be much more explicit about CB_PATH_DOWN=20
>
>in the doc. There are only two sentences on it in RFC3530, both=20
>
>referring to the server's responsibility. In fact, since the server=20
>
>is required to renew leases after returning this, it would seem=20
>
>to be more of a buying-time thing than an error.=20
>
>
>A renewal of a lease does not guarantee that the server will=20
>
>still not choose to revoke a delegation. It is not required to hold=20
>
>the delegation forever; it should hold it for one lease period=20
>
>and most likely it will be longer than that but it does need to=20
>
>make forward progress and if the client is being stubborn about=20
>
>returning a delegation (not making forward progress in the form=20
>
>of flushing modified data for example) then it can revoke the=20
>
>delegation and move on.=20
>
>
>Spencer=20


------_=_NextPart_001_01C4221A.70CA0B80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>Re: [nfsv4] more re: NFS4ERR_EXPIRED</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Thanks, all good points. Probably we should undertake =
an</FONT>

<BR><FONT SIZE=3D2>informational &quot;NFSv4 Client Best Practices&quot; =
document, using</FONT>

<BR><FONT SIZE=3D2>the knowledge we're amassing.</FONT>
</P>

<P><FONT SIZE=3D2>Let's consider this for discussion at the upcoming =
Bakeathon.</FONT>

<BR><FONT SIZE=3D2>I'll try to put together some ideas.</FONT>
</P>

<P><FONT SIZE=3D2>Tom.</FONT>
</P>

<P><FONT SIZE=3D2>At 02:10 AM 4/14/2004, Spencer Shepler wrote:</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;On Apr 13, 2004, at 12:27 PM, Talpey, Thomas =
wrote: </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Can someone clarify for me what recovery the =
client can/should </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;perform in the various cases we're describing? Do =
I read Dave </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;saying that EXPIRED might cause the client to =
invoke mass </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;recovery on all its stateids? This would be a =
pretty big incentive </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;to be careful with it! </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;The recovery path the client chooses is its own. =
Nothing is </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;prescribed in the RFC but one would likely expect =
that a reasonable </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;client may attempt to reopen files for which it =
held state at the </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;time of EXPIRED. I don't remember specifically if =
there is suggestion </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;of how the client may make a reasonable choice =
about when to </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;reopen a file. </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Things to consider from the client's perspective =
are things like: </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;were file locks ever held for the file, was the =
file ever modified by </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;the client, a delegation was held but no active =
opens by applications </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;were present at the client, etc. Some clients may =
choose to be more </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;aggressive about their recovery patterns to deal =
with servers that </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;do not offer a grace period and will therefore =
respond to client </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;attempting to open files with CLAIM_PREVIOUS with =
the NO_GRACE </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;error. The reason I mention that here, even =
though it is a </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;different scenario, is that it is similar to the =
case that a client's </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;lease has expired. </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;The server should attempt to do its best to avoid =
returning EXPIRED </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;but it can not guarantee to do so. </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;I agree we should be much more explicit about =
CB_PATH_DOWN </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;in the doc. There are only two sentences on it in =
RFC3530, both </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;referring to the server's responsibility. In =
fact, since the server </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;is required to renew leases after returning this, =
it would seem </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;to be more of a buying-time thing than an error. =
</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;A renewal of a lease does not guarantee that the =
server will </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;still not choose to revoke a delegation. It is =
not required to hold </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;the delegation forever; it should hold it for one =
lease period </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;and most likely it will be longer than that but =
it does need to </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;make forward progress and if the client is being =
stubborn about </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;returning a delegation (not making forward =
progress in the form </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;of flushing modified data for example) then it =
can revoke the </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;delegation and move on. </FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;</FONT>

<BR><FONT SIZE=3D2>&gt;Spencer </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C4221A.70CA0B80--

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



From exim@www1.ietf.org  Wed Apr 14 15:42:53 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA19056
	for <nfsv4-archive@odin.ietf.org>; Wed, 14 Apr 2004 15:42:53 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDqDU-0005E4-6h
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 15:38:36 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3EJca0r020083
	for nfsv4-archive@odin.ietf.org; Wed, 14 Apr 2004 15:38:36 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDq6n-0003SR-Uo
	for nfsv4-web-archive@optimus.ietf.org; Wed, 14 Apr 2004 15:31:42 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18168
	for <nfsv4-web-archive@ietf.org>; Wed, 14 Apr 2004 15:31:39 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDq6m-0002Rq-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 15:31:40 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDq5n-0002PA-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 15:30:40 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDq5L-0002Mg-00
	for nfsv4-web-archive@ietf.org; Wed, 14 Apr 2004 15:30:11 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDq1J-0001xa-0V; Wed, 14 Apr 2004 15:26:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BDpu5-0007GQ-RX
	for nfsv4@optimus.ietf.org; Wed, 14 Apr 2004 15:18:33 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA16953
	for <nfsv4@ietf.org>; Wed, 14 Apr 2004 15:18:31 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDpu4-0001Rk-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 15:18:32 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BDpt7-0001Py-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 15:17:34 -0400
Received: from brmea-mail-3.sun.com ([192.18.98.34])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BDpsi-0001OM-00
	for nfsv4@ietf.org; Wed, 14 Apr 2004 15:17:08 -0400
Received: from engmail1mpk.Eng.Sun.COM ([129.146.11.21])
	by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id i3EJH8rU010330;
	Wed, 14 Apr 2004 13:17:08 -0600 (MDT)
Received: from [129.153.128.195] (dhcp-uaus08-128-195.Central.Sun.COM [129.153.128.195])
	by engmail1mpk.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3EJH7jW013911;
	Wed, 14 Apr 2004 12:17:07 -0700 (PDT)
In-Reply-To: <6.1.0.6.2.20040414080423.01d4dec0@silver.nane.netapp.com>
References: <6.1.0.6.2.20040414080423.01d4dec0@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-1-583980590
Message-Id: <B667A8BA-8E48-11D8-9D15-000A95DBCB70@sun.com>
Cc: <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more re: NFS4ERR_EXPIRED
To: "Talpey, Thomas" <Thomas.Talpey@netapp.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Wed, 14 Apr 2004 14:19:55 -0500
Date: Wed, 14 Apr 2004 14:19:55 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60


--Apple-Mail-1-583980590
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed
Content-Transfer-Encoding: 7bit


Yes.  This seems to be a good idea.

On Apr 14, 2004, at 7:16 AM, Talpey, Thomas wrote:

> Thanks, all good points. Probably we should undertake an
>  informational "NFSv4 Client Best Practices" document, using
>  the knowledge we're amassing.
>
> Let's consider this for discussion at the upcoming Bakeathon.
>  I'll try to put together some ideas.
>
> Tom.
>
> At 02:10 AM 4/14/2004, Spencer Shepler wrote:
> >
>  >
>  >On Apr 13, 2004, at 12:27 PM, Talpey, Thomas wrote:
>  >
>  >
>  >Can someone clarify for me what recovery the client can/should
> >
>  >perform in the various cases we're describing? Do I read Dave
> >
>  >saying that EXPIRED might cause the client to invoke mass
> >
>  >recovery on all its stateids? This would be a pretty big incentive
> >
>  >to be careful with it!
> >
>  >
>  >The recovery path the client chooses is its own. Nothing is
> >
>  >prescribed in the RFC but one would likely expect that a reasonable
> >
>  >client may attempt to reopen files for which it held state at the
> >
>  >time of EXPIRED. I don't remember specifically if there is suggestion
> >
>  >of how the client may make a reasonable choice about when to
> >
>  >reopen a file.
>  >
>  >
>  >Things to consider from the client's perspective are things like:
>  >
>  >were file locks ever held for the file, was the file ever modified by
> >
>  >the client, a delegation was held but no active opens by applications
> >
>  >were present at the client, etc. Some clients may choose to be more
> >
>  >aggressive about their recovery patterns to deal with servers that
> >
>  >do not offer a grace period and will therefore respond to client
> >
>  >attempting to open files with CLAIM_PREVIOUS with the NO_GRACE
> >
>  >error. The reason I mention that here, even though it is a
> >
>  >different scenario, is that it is similar to the case that a client's
> >
>  >lease has expired.
> >
>  >
>  >The server should attempt to do its best to avoid returning EXPIRED
> >
>  >but it can not guarantee to do so.
> >
>  >
>  >
>  >I agree we should be much more explicit about CB_PATH_DOWN
>  >
>  >in the doc. There are only two sentences on it in RFC3530, both
> >
>  >referring to the server's responsibility. In fact, since the server
> >
>  >is required to renew leases after returning this, it would seem
> >
>  >to be more of a buying-time thing than an error.
> >
>  >
>  >A renewal of a lease does not guarantee that the server will
> >
>  >still not choose to revoke a delegation. It is not required to hold
> >
>  >the delegation forever; it should hold it for one lease period
> >
>  >and most likely it will be longer than that but it does need to
> >
>  >make forward progress and if the client is being stubborn about
> >
>  >returning a delegation (not making forward progress in the form
> >
>  >of flushing modified data for example) then it can revoke the
> >
>  >delegation and move on.
> >
>  >
>  >Spencer

--Apple-Mail-1-583980590
Content-Type: text/enriched;
	charset=US-ASCII
Content-Transfer-Encoding: 7bit



Yes.  This seems to be a good idea.


On Apr 14, 2004, at 7:16 AM, Talpey, Thomas wrote:


<excerpt><smaller>Thanks, all good points. Probably we should
undertake an</smaller> 

 <smaller>informational "NFSv4 Client Best Practices" document,
using</smaller> 

 <smaller>the knowledge we're amassing.</smaller> 


<smaller>Let's consider this for discussion at the upcoming
Bakeathon.</smaller> 

 <smaller>I'll try to put together some ideas.</smaller> 


<smaller>Tom.</smaller> 


<smaller>At 02:10 AM 4/14/2004, Spencer Shepler wrote:</smaller> 

<smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>On Apr 13, 2004, at 12:27 PM, Talpey, Thomas
wrote:</smaller> 

 <smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>Can someone clarify for me what recovery the client
can/should </smaller>

<smaller>></smaller> 

 <smaller>>perform in the various cases we're describing? Do I read
Dave </smaller>

<smaller>></smaller> 

 <smaller>>saying that EXPIRED might cause the client to invoke mass </smaller>

<smaller>></smaller> 

 <smaller>>recovery on all its stateids? This would be a pretty big
incentive </smaller>

<smaller>></smaller> 

 <smaller>>to be careful with it! </smaller>

<smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>The recovery path the client chooses is its own. Nothing is </smaller>

<smaller>></smaller> 

 <smaller>>prescribed in the RFC but one would likely expect that a
reasonable </smaller>

<smaller>></smaller> 

 <smaller>>client may attempt to reopen files for which it held state
at the </smaller>

<smaller>></smaller> 

 <smaller>>time of EXPIRED. I don't remember specifically if there is
suggestion </smaller>

<smaller>></smaller> 

 <smaller>>of how the client may make a reasonable choice about when
to </smaller>

<smaller>></smaller> 

 <smaller>>reopen a file.</smaller> 

 <smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>Things to consider from the client's perspective are things
like:</smaller> 

 <smaller>></smaller> 

 <smaller>>were file locks ever held for the file, was the file ever
modified by </smaller>

<smaller>></smaller> 

 <smaller>>the client, a delegation was held but no active opens by
applications </smaller>

<smaller>></smaller> 

 <smaller>>were present at the client, etc. Some clients may choose to
be more </smaller>

<smaller>></smaller> 

 <smaller>>aggressive about their recovery patterns to deal with
servers that </smaller>

<smaller>></smaller> 

 <smaller>>do not offer a grace period and will therefore respond to
client </smaller>

<smaller>></smaller> 

 <smaller>>attempting to open files with CLAIM_PREVIOUS with the
NO_GRACE </smaller>

<smaller>></smaller> 

 <smaller>>error. The reason I mention that here, even though it is a </smaller>

<smaller>></smaller> 

 <smaller>>different scenario, is that it is similar to the case that
a client's </smaller>

<smaller>></smaller> 

 <smaller>>lease has expired. </smaller>

<smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>The server should attempt to do its best to avoid returning
EXPIRED </smaller>

<smaller>></smaller> 

 <smaller>>but it can not guarantee to do so. </smaller>

<smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>I agree we should be much more explicit about
CB_PATH_DOWN</smaller> 

 <smaller>></smaller> 

 <smaller>>in the doc. There are only two sentences on it in RFC3530,
both </smaller>

<smaller>></smaller> 

 <smaller>>referring to the server's responsibility. In fact, since
the server </smaller>

<smaller>></smaller> 

 <smaller>>is required to renew leases after returning this, it would
seem </smaller>

<smaller>></smaller> 

 <smaller>>to be more of a buying-time thing than an error. </smaller>

<smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>A renewal of a lease does not guarantee that the server
will </smaller>

<smaller>></smaller> 

 <smaller>>still not choose to revoke a delegation. It is not required
to hold </smaller>

<smaller>></smaller> 

 <smaller>>the delegation forever; it should hold it for one lease
period </smaller>

<smaller>></smaller> 

 <smaller>>and most likely it will be longer than that but it does
need to </smaller>

<smaller>></smaller> 

 <smaller>>make forward progress and if the client is being stubborn
about </smaller>

<smaller>></smaller> 

 <smaller>>returning a delegation (not making forward progress in the
form </smaller>

<smaller>></smaller> 

 <smaller>>of flushing modified data for example) then it can revoke
the </smaller>

<smaller>></smaller> 

 <smaller>>delegation and move on. </smaller>

<smaller>></smaller> 

 <smaller>></smaller> 

 <smaller>>Spencer</smaller> 

</excerpt>
--Apple-Mail-1-583980590--


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



From exim@www1.ietf.org  Thu Apr 15 06:50:23 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA16324
	for <nfsv4-archive@odin.ietf.org>; Thu, 15 Apr 2004 06:50:23 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE4QR-0002sY-Na
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 06:48:56 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3FAmtk0011066
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 06:48:55 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE4Gs-0000HW-Ms
	for nfsv4-web-archive@optimus.ietf.org; Thu, 15 Apr 2004 06:39:02 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA16082
	for <nfsv4-web-archive@ietf.org>; Thu, 15 Apr 2004 06:38:58 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE4Go-0003OE-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 06:38:58 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BE4Fw-0003Ke-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 06:38:05 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE4F7-0003Gw-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 06:37:13 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE4B4-0006oB-RR; Thu, 15 Apr 2004 06:33:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE48D-0005wv-Ml
	for nfsv4@optimus.ietf.org; Thu, 15 Apr 2004 06:30:06 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA15687
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 06:30:01 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE489-0002hQ-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 06:30:01 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BE47I-0002dv-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 06:29:09 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE46T-0002U2-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 06:28:17 -0400
Received: from frejya.corp.netapp.com (frejya [10.57.157.119])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3FARfZh011403;
	Thu, 15 Apr 2004 03:27:41 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by frejya.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3FAReXv017562;
	Thu, 15 Apr 2004 03:27:40 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED5A@silver.nane.netapp.com>
Thread-Topic: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
Thread-Index: AcQhe0mdvKxUf/LcRLiokjfZ9NaZvgBVYPDw
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Spencer Shepler" <spencer.shepler@sun.com>
Cc: <rick@snowhite.cis.uoguelph.ca>, <nfsv4@ietf.org>
Content-Transfer-Encoding: quoted-printable
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 15 Apr 2004 03:27:37 -0700
Date: Thu, 15 Apr 2004 03:27:37 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable

> >> The server can be "nice" in that upon lease expiration it keeps =
some
> >> of the state active and only releases that which has conflicting
> >> requests.
> >> In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
> >> However, if the server is not keeping partial, expired state then =
it
> >> should
> >> go ahead and return EXPIRED since it will be an additional burden
> >> on the server to keep the extra information about just the state =
for
> >> which
> >> there was a conflict.
> >
> > I agree that the server should return EXPIRED in this case, but I
> > disagree about the reason.
> >
> > There would be no additional burden to return BAD_STATEID as the
> > "nice" server does.  That's because if the server simply deallocated
> > all the state entries along with the locks, when the lease expired,
> > any reference to the deallocated states would naturally result in
> > BAD_STATEID, with no extra server effort.
>=20
> Are you thinking of a particular server/stateid implementation here?
> If so, maybe you could walk through some of the logical checks
> that demonstrate the "no additional burden".  In the way the Solaris
> server currently implements this, there is additional burden.

What I'm thinking of is a stateid that contains a server boot time
(to detect STALE_STATEID), an index into a table of state objects,
and a generation number (number of times the state object at that
index has been alloctated).  Assusming a stateid is not stale, and
that the index is within range, if the state object is marked free,
or the generation number in the object doesn't match that in the
stateid, BAD_STATEID is returned.

With this arranngement, if you deallocate a state object due to a=20
lock conflict where the lock conflicted with is associated with an
expired list, subsequent use of that stateid will get BAD_STATEID,
as a matter of course.

> The client may choose to an implementation as you suggest.  It may
> also choose an alternate path.  It isn't a requirement for the client
> to probe everything upon receive of BAD_STATEID.

Not exactly, but the penultimate paragraph of section 8.8 does say=20
that when the lease period may have expired, the client must=20
(but not "MUST"!) mark the locks unvalidated and then proceed
to validate (i.e probe) them.  So while getting EXPIRED would seem
to me to discharge the obligation ("Hey!  They're all gone, you can
stop validating now!"), BAD_STATEID does not ("That one's gone.  Now
get going and keep validating the rest of them.").

The only reason getting BAD_STATEID might cause you to probe is=20
when you weren't aware that lease period may have expired.  If you
have not messed up and sent a bad stateid, then getting BAD_STATEID
is pretty good evidence that the lease had expired (or else how
was the stateid freed).  And if something has happened then it=20
follows that it was possible (i.e. may have happened).  I think
that's an axiom of modal logic but I can't remember what it's
called.  Anybody know?=20


-----Original Message-----
From: Spencer Shepler [mailto:spencer.shepler@sun.com]
Sent: Tuesday, April 13, 2004 1:20 PM
To: Noveck, Dave
Cc: rick@snowhite.cis.uoguelph.ca; nfsv4@ietf.org
Subject: Re: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID



On Apr 13, 2004, at 9:23 AM, Noveck, Dave wrote:

>> So you are partially describing the scenarios mentioned in
>> section 8.8 Server Revocation of Locks?
>
> Yes.  Those are the possibilities.
>
>> The server can be "nice" in that upon lease expiration it keeps some
>> of the state active and only releases that which has conflicting
>> requests.
>> In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
>> However, if the server is not keeping partial, expired state then it
>> should
>> go ahead and return EXPIRED since it will be an additional burden
>> on the server to keep the extra information about just the state for
>> which
>> there was a conflict.
>
> I agree that the server should return EXPIRED in this case, but I
> disagree about the reason.
>
> There would be no additional burden to return BAD_STATEID as the
> "nice" server does.  That's because if the server simply deallocated
> all the state entries along with the locks, when the lease expired,
> any reference to the deallocated states would naturally result in
> BAD_STATEID, with no extra server effort.

Are you thinking of a particular server/stateid implementation here?
If so, maybe you could walk through some of the logical checks
that demonstrate the "no additional burden".  In the way the Solaris
server currently implements this, there is additional burden.

> The reason to return EXPIRED is that it avoids making the client
> probe each of stateids, when you could just tell him (via EXPIRED)
> that they all are gone, and save him the effort.  The client has
> to be prepared to probe all the stateids because servers may keep
> locks and only get rid of them when there is a conflict.  The
> limiting case is that the lease may expire, and there may then be
> individual conflicts with all of the locks within the lease and
> the client has to deal with that possibility.  So if the client
> is coded correctly, for the server to throw away all locks at
> lease expiration and return BAD_STATEID would work correctly.  It
> is just kind of anti-social to make him go to that extra effort
> when there is no possibility that there is the benefit of getting
> some of his locks back.

The client may choose to an implementation as you suggest.  It may
also choose an alternate path.  It isn't a requirement for the client
to probe everything upon receive of BAD_STATEID.

> BTW, there seems to be a third intermediate case between the standard
> one (free all locks at lease expiration) and the "nice" one of just
> freeing the ones that conflict that seems like it might be a valid
> choice.  That is, to keep the locks at lease expiration, but as soon
> as there is some conflict on any lock, to release all of them, rather
> than just the one in conflict.  If the client renewed the lease before
> any conflict occurred, he would be OK (as if no expiration happened),
> but if a conflict happend first, he would get EXPIRED (I believe) =
since
> the client can use this to know that all of the stateids associated
> with the locks are gone, which they would be in this case.  Comments?

Yes.  I agree that there is this third alternative and it is the=20
easiest for
the server to implement; okay, next to just removing the state on lease
expiration.

Spencer


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



From exim@www1.ietf.org  Thu Apr 15 11:46:59 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA01309
	for <nfsv4-archive@odin.ietf.org>; Thu, 15 Apr 2004 11:46:59 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE8sQ-0004MA-0E
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 11:34:06 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3FFY5Pb016741
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 11:34:05 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE8ml-0002z2-PK
	for nfsv4-web-archive@optimus.ietf.org; Thu, 15 Apr 2004 11:28:15 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA00592
	for <nfsv4-web-archive@ietf.org>; Thu, 15 Apr 2004 11:28:13 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE8mk-000651-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 11:28:14 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BE8lq-0005yw-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 11:27:18 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE8l1-0005sR-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 11:26:27 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE8c1-0007zZ-Cl; Thu, 15 Apr 2004 11:17:09 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BE8Md-0001It-HE
	for nfsv4@optimus.ietf.org; Thu, 15 Apr 2004 11:01:15 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA28912
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 11:01:10 -0400 (EDT)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE8Ma-0002ro-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 11:01:12 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BE8Le-0002n6-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 11:00:15 -0400
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BE8Km-0002gr-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 10:59:21 -0400
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id KAA16003
	for nfsv4@ietf.org; Thu, 15 Apr 2004 10:59:00 -0400 (EDT)
Message-Id: <200404151459.KAA16003@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] more re: NFSERR_EXPIRED vs NFSERR_BADSTATEID
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 15 Apr 2004 10:59:00 -0400 (EDT)
Date: Thu, 15 Apr 2004 10:59:00 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,NO_REAL_NAME autolearn=no 
	version=2.60

> What I'm thinking of is a stateid that contains a server boot time
> (to detect STALE_STATEID), an index into a table of state objects,
> and a generation number (number of times the state object at that
> index has been alloctated).  Assusming a stateid is not stale, and
> that the index is within range, if the state object is marked free,
> or the generation number in the object doesn't match that in the
> stateid, BAD_STATEID is returned.

If the above mentioned "table" is indeed just that, and not actually
some dynamically allocated data structure that varies in size, I would
agree. On the other hand, if the table is really a dynamically allocated
data structure, the expiry allows all entries related to that clientid
to be released at that time, whereas for the above, they must remain
until a conflicting request invalidates them. If the lease has expired,
that suggests either a client crash or network partitioning and, as such,
recovery might be a long time coming. (And, I suspect that conflicting
requests are infrequent, since that would imply concurrent conflicting
access to the file by multiple clients, for this case.)

Is this the additional overhead Spencer was thinking about?
(However, I think you can counter the above argument
with the statement that a server can simply delay deletion of the state
until a conflicting request occurs OR the server becomes memory constrained
and does some garbage collection.)

> ...is pretty good evidence that the lease had expired (or else how
> was the stateid freed). ...
The case of a conflict with a delegation that couldn't be recalled,
occurred, but without lease expiry?
(I think the client can normally avoid this by returning delegations
ASAP upon NFS4ERR_CB_PATH_DOWN, as mentioned in a previous post.)

Although it seems nitpicky, I think that this is an important little
corner of the protocol to have a clear understanding of, in order to
avoid interoperability problems? rick

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



From exim@www1.ietf.org  Thu Apr 15 15:46:21 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA21355
	for <nfsv4-archive@odin.ietf.org>; Thu, 15 Apr 2004 15:46:21 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BECj4-0004nQ-Hq
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 15:40:42 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3FJegxw018432
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 15:40:42 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BECfl-0003e7-W0
	for nfsv4-web-archive@optimus.ietf.org; Thu, 15 Apr 2004 15:37:18 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA19635
	for <nfsv4-web-archive@ietf.org>; Thu, 15 Apr 2004 15:37:15 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BECfk-00058Y-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 15:37:16 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BECep-00056P-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 15:36:20 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BECeD-00054R-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 15:35:41 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BECVx-0001t4-Bv; Thu, 15 Apr 2004 15:27:09 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BECUM-0001Nv-0w
	for nfsv4@optimus.ietf.org; Thu, 15 Apr 2004 15:25:30 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA16000
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 15:25:27 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BECUK-0003ls-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 15:25:28 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BECJS-0002dp-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 15:14:15 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BECId-0002Vj-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 15:13:23 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i3FJCq6N027442;
	Thu, 15 Apr 2004 12:12:52 -0700 (PDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3FJCpgr005909;
	Thu, 15 Apr 2004 12:12:51 -0700 (PDT)
In-Reply-To: <200404151459.KAA16003@snowhite.cis.uoguelph.ca>
References: <200404151459.KAA16003@snowhite.cis.uoguelph.ca>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <4955327F-8F11-11D8-9D15-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more re: NFSERR_EXPIRED vs NFSERR_BADSTATEID
To: rick@snowhite.cis.uoguelph.ca
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 15 Apr 2004 14:15:41 -0500
Date: Thu, 15 Apr 2004 14:15:41 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 15, 2004, at 9:59 AM, rick@snowhite.cis.uoguelph.ca wrote:

>> What I'm thinking of is a stateid that contains a server boot time
>> (to detect STALE_STATEID), an index into a table of state objects,
>> and a generation number (number of times the state object at that
>> index has been alloctated).  Assusming a stateid is not stale, and
>> that the index is within range, if the state object is marked free,
>> or the generation number in the object doesn't match that in the
>> stateid, BAD_STATEID is returned.
>
> If the above mentioned "table" is indeed just that, and not actually
> some dynamically allocated data structure that varies in size, I would
> agree. On the other hand, if the table is really a dynamically 
> allocated
> data structure, the expiry allows all entries related to that clientid
> to be released at that time, whereas for the above, they must remain
> until a conflicting request invalidates them. If the lease has expired,
> that suggests either a client crash or network partitioning and, as 
> such,
> recovery might be a long time coming. (And, I suspect that conflicting
> requests are infrequent, since that would imply concurrent conflicting
> access to the file by multiple clients, for this case.)
>
> Is this the additional overhead Spencer was thinking about?

My question was to ensure I understood the basis for the assertion
and it seems that the assertion about being able to easily return
BAD_STATEID relies on a particular implementation.  You have
phrased my next statement for me well. :-)

> (However, I think you can counter the above argument
> with the statement that a server can simply delay deletion of the state
> until a conflicting request occurs OR the server becomes memory 
> constrained
> and does some garbage collection.)

But this is based on a timeout and that is not reliable and that may
be an issue but I haven't thought enough about it.


>
>> ...is pretty good evidence that the lease had expired (or else how
>> was the stateid freed). ...
> The case of a conflict with a delegation that couldn't be recalled,
> occurred, but without lease expiry?
> (I think the client can normally avoid this by returning delegations
> ASAP upon NFS4ERR_CB_PATH_DOWN, as mentioned in a previous post.)
>
> Although it seems nitpicky, I think that this is an important little
> corner of the protocol to have a clear understanding of, in order to
> avoid interoperability problems? rick

Yes, this does need to be described sufficiently.

Spencer


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



From exim@www1.ietf.org  Thu Apr 15 16:18:57 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA24375
	for <nfsv4-archive@odin.ietf.org>; Thu, 15 Apr 2004 16:18:57 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BED6X-0000uF-5W
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 16:04:57 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3FK4vFC003478
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 16:04:57 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BED3X-0000IT-J6
	for nfsv4-web-archive@optimus.ietf.org; Thu, 15 Apr 2004 16:01:51 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA23196
	for <nfsv4-web-archive@ietf.org>; Thu, 15 Apr 2004 16:01:49 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BED3W-0006dw-1P
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 16:01:50 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BED2X-0006Zu-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 16:00:49 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BED1Z-0006WS-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 15:59:49 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BECvy-0007Cu-Ga; Thu, 15 Apr 2004 15:54:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BECs1-0006Z1-9N
	for nfsv4@optimus.ietf.org; Thu, 15 Apr 2004 15:49:57 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA22141
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 15:49:54 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BECrz-0005zI-Pv
	for nfsv4@ietf.org; Thu, 15 Apr 2004 15:49:55 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BECr6-0005wZ-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 15:49:01 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BECqR-0005qj-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 15:48:19 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i3FJln6N021048;
	Thu, 15 Apr 2004 12:47:49 -0700 (PDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3FJlmgr014218;
	Thu, 15 Apr 2004 12:47:49 -0700 (PDT)
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED5A@silver.nane.netapp.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED5A@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <2B5D7F85-8F16-11D8-9D15-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: <rick@snowhite.cis.uoguelph.ca>, <nfsv4@ietf.org>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more on NFS4ERR_EXPIRED vs NFS4ERR_BADSTATEID
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 15 Apr 2004 14:50:38 -0500
Date: Thu, 15 Apr 2004 14:50:38 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On Apr 15, 2004, at 5:27 AM, Noveck, Dave wrote:

>>>> The server can be "nice" in that upon lease expiration it keeps some
>>>> of the state active and only releases that which has conflicting
>>>> requests.
>>>> In this case, I agree NFS4ERR_BAD_STATEID is the appropriate error.
>>>> However, if the server is not keeping partial, expired state then it
>>>> should
>>>> go ahead and return EXPIRED since it will be an additional burden
>>>> on the server to keep the extra information about just the state for
>>>> which
>>>> there was a conflict.
>>>
>>> I agree that the server should return EXPIRED in this case, but I
>>> disagree about the reason.
>>>
>>> There would be no additional burden to return BAD_STATEID as the
>>> "nice" server does.  That's because if the server simply deallocated
>>> all the state entries along with the locks, when the lease expired,
>>> any reference to the deallocated states would naturally result in
>>> BAD_STATEID, with no extra server effort.
>>
>> Are you thinking of a particular server/stateid implementation here?
>> If so, maybe you could walk through some of the logical checks
>> that demonstrate the "no additional burden".  In the way the Solaris
>> server currently implements this, there is additional burden.
>
> What I'm thinking of is a stateid that contains a server boot time
> (to detect STALE_STATEID), an index into a table of state objects,
> and a generation number (number of times the state object at that
> index has been alloctated).  Assusming a stateid is not stale, and
> that the index is within range, if the state object is marked free,
> or the generation number in the object doesn't match that in the
> stateid, BAD_STATEID is returned.
>
> With this arranngement, if you deallocate a state object due to a
> lock conflict where the lock conflicted with is associated with an
> expired list, subsequent use of that stateid will get BAD_STATEID,
> as a matter of course.

Thanks for the explanation.  As I mentioned in my other email,
it seems we are making too much of an assumption about server
implementation and what it is able to do easily.  I would prefer
to avoid these situations as much as possible to avoid locking server's
into implementation details when they are not needed.

>
>> The client may choose to an implementation as you suggest.  It may
>> also choose an alternate path.  It isn't a requirement for the client
>> to probe everything upon receive of BAD_STATEID.
>
> Not exactly, but the penultimate paragraph of section 8.8 does say
> that when the lease period may have expired, the client must
> (but not "MUST"!) mark the locks unvalidated and then proceed
> to validate (i.e probe) them.  So while getting EXPIRED would seem
> to me to discharge the obligation ("Hey!  They're all gone, you can
> stop validating now!"), BAD_STATEID does not ("That one's gone.  Now
> get going and keep validating the rest of them.").
>
> The only reason getting BAD_STATEID might cause you to probe is
> when you weren't aware that lease period may have expired.  If you
> have not messed up and sent a bad stateid, then getting BAD_STATEID
> is pretty good evidence that the lease had expired (or else how
> was the stateid freed).

That is if the client can figure out it made a mistake vs. the state
being released at the server. :-)

Having written that section, I think it borders on implementation
choice vs. protocol correctness.  There may be clients that choose
to avoid the implementation overhead of a particular solution because
the chosen approach does not adversely affect what the client's
operating environment expects.

So I don't see the prescribed client behavior as a MUST but a must
consider carefully.

Spencer


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



From exim@www1.ietf.org  Thu Apr 15 18:03:53 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA00257
	for <nfsv4-archive@odin.ietf.org>; Thu, 15 Apr 2004 18:03:53 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEElI-0006Dw-97
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 17:51:08 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3FLp8mW023918
	for nfsv4-archive@odin.ietf.org; Thu, 15 Apr 2004 17:51:08 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEEZV-00021U-Kr
	for nfsv4-web-archive@optimus.ietf.org; Thu, 15 Apr 2004 17:38:57 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA29443
	for <nfsv4-web-archive@ietf.org>; Thu, 15 Apr 2004 17:38:53 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BEEZT-00064A-9o
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 17:38:55 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BEEYY-0005zu-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 17:37:59 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BEEXl-0005wD-00
	for nfsv4-web-archive@ietf.org; Thu, 15 Apr 2004 17:37:09 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEDkn-0000th-Qu; Thu, 15 Apr 2004 16:46:33 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEDhG-0008Un-GZ
	for nfsv4@optimus.ietf.org; Thu, 15 Apr 2004 16:42:54 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA25725
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 16:42:51 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BEDhE-0000v8-Dr
	for nfsv4@ietf.org; Thu, 15 Apr 2004 16:42:52 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BEDgI-0000qn-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 16:41:55 -0400
Received: from e33.co.us.ibm.com ([32.97.110.131])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BEDfO-0000ky-00
	for nfsv4@ietf.org; Thu, 15 Apr 2004 16:40:58 -0400
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3FKeRlQ693378
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 16:40:27 -0400
Received: from d03nm113.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170])
	by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3FKeOIY011696
	for <nfsv4@ietf.org>; Thu, 15 Apr 2004 14:40:25 -0600
To: nfsv4@ietf.org
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF5E8A5A06.C70B4247-ON87256E77.006DB866-88256E77.00718D22@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/15/2004 14:40:24,
	Serialize complete at 04/15/2004 14:40:24
Content-Type: multipart/alternative; boundary="=_alternative 00718D1D88256E77_="
Subject: [nfsv4] rdattr_error values
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Thu, 15 Apr 2004 13:40:23 -0700
Date: Thu, 15 Apr 2004 13:40:23 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE,
	LINES_OF_YELLING,LINES_OF_YELLING_2 autolearn=no version=2.60

This is a multipart message in MIME format.
--=_alternative 00718D1D88256E77_=
Content-Type: text/plain; charset="US-ASCII"

READDIR results contain two status areas which may be returned (operation 
status & rdattr_error attribute).   I did not find any mention in the RFC 
or WG archives of restrictions for returned rdattr_error values.  I was 
also not able to determine if READDIR should act like GETATTR and return 
values and bitmask for server supported attrs when unsupported attrs are 
requested on the READDIR operation. 

Are the following errors supported for the rdattr_error attribute? 

NFSERR_ATTRNOTSUPP 
NFSERR_INVAL 
NFSERR_RESOURCE 
NFSERR_SERVERFAULT 
NFS4ERR_DELAY
NFS4ERR_MOVED


Thanks,
Stevan C. Allen

--=_alternative 00718D1D88256E77_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">READDIR results contain two status areas
which may be returned (operation status &amp; rdattr_error attribute).
&nbsp; I did not find any mention in the RFC or WG archives of restrictions
for returned rdattr_error values. &nbsp;I was also not able to determine
if READDIR should act like GETATTR and return values and bitmask for server
supported attrs when unsupported attrs are requested on the READDIR operation.
&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">Are the following errors supported for
the rdattr_error attribute? &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">NFSERR_ATTRNOTSUPP </font>
<br><font size=2 face="sans-serif">NFSERR_INVAL &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">NFSERR_RESOURCE &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">NFSERR_SERVERFAULT </font>
<br><font size=2 face="sans-serif">NFS4ERR_DELAY<br>
NFS4ERR_MOVED<br>
</font>
<br>
<br><font size=2 face="sans-serif">Thanks,<br>
Stevan C. Allen<br>
</font>
--=_alternative 00718D1D88256E77_=--

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



From exim@www1.ietf.org  Fri Apr 16 13:47:43 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24048
	for <nfsv4-archive@odin.ietf.org>; Fri, 16 Apr 2004 13:47:43 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEXMC-0004ne-Kt
	for nfsv4-archive@odin.ietf.org; Fri, 16 Apr 2004 13:42:28 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3GHgSa8018450
	for nfsv4-archive@odin.ietf.org; Fri, 16 Apr 2004 13:42:28 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEXL3-0003x3-V7
	for nfsv4-web-archive@optimus.ietf.org; Fri, 16 Apr 2004 13:41:18 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23708
	for <nfsv4-web-archive@ietf.org>; Fri, 16 Apr 2004 13:41:15 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BEXL1-00073g-J0
	for nfsv4-web-archive@ietf.org; Fri, 16 Apr 2004 13:41:15 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BEXKE-00070Y-00
	for nfsv4-web-archive@ietf.org; Fri, 16 Apr 2004 13:40:27 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BEXJU-0006wv-00
	for nfsv4-web-archive@ietf.org; Fri, 16 Apr 2004 13:39:40 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEX7G-0000CC-7T; Fri, 16 Apr 2004 13:27:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BEWzn-00064a-HX
	for nfsv4@optimus.ietf.org; Fri, 16 Apr 2004 13:19:19 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA22758
	for <nfsv4@ietf.org>; Fri, 16 Apr 2004 13:19:17 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BEWzl-0005Yt-Fc
	for nfsv4@ietf.org; Fri, 16 Apr 2004 13:19:17 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BEWyv-0005W6-00
	for nfsv4@ietf.org; Fri, 16 Apr 2004 13:18:25 -0400
Received: from dsl093-002-214.det1.dsl.speakeasy.net
	([66.93.2.214] helo=pumpkin.fieldses.org ident=Debian-exim)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BEWyc-0005Sb-00
	for nfsv4@ietf.org; Fri, 16 Apr 2004 13:18:06 -0400
Received: from bfields by pumpkin.fieldses.org with local (Exim 4.31)
	id 1BEWyZ-0002m2-Fp; Fri, 16 Apr 2004 13:18:03 -0400
To: Wu Zheng <wzheng@us.ibm.com>
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Connectathon2004, ACL report
Message-ID: <20040416171802.GC10015@fieldses.org>
References: <OF6A52C35C.590BB63F-ON87256E67.005F6558-86256E67.0060F0F1@us.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OF6A52C35C.590BB63F-ON87256E67.005F6558-86256E67.0060F0F1@us.ibm.com>
User-Agent: Mutt/1.5.5.1+cvs20040105i
From: "J. Bruce Fields" <bfields@fieldses.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Fri, 16 Apr 2004 13:18:03 -0400
Date: Fri, 16 Apr 2004 13:18:03 -0400
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60

Sorry for the long-delayed response!

On Tue, Mar 30, 2004 at 10:36:35AM -0700, Wu Zheng wrote:
> The following attachment is a list of ACL related issues which are studied
> and discussed at Connectathon.

In future, could you just send this sort of thing as plain text in the
body of an email rather than as an html attachment?  That would make it
easier to respond to and discuss on a mailing list.

A few comments:

> Any ACL changes on a directory will only affect the
> ACL of its offspring that are created after the acl changes. When a child
> file or directory is created, it inherits its ACL from its parent. After
> the creation, the child's ACL and parent's ACL are independent from each
> other. Altering one will not effect the other.

My impression is that some implementors are going to propagate changes
immediately.  Based on previous discussions on the list, I believe the
concensus is to allow either behavior.

> File owner always has the right to read and write ACL even when ACL denies
> file owner permssion to read/write ACL.

Following the principal that "in all cases ...  the server must not
accept ACLs that appear to make the file more secure than it really
is",  I think the way to enforce this is to return NFS4ERR_ATTRNOTSUPP
(or NFS4ERR_INVAL?) to setattrs with ACLs that don't permit the owner to
modify the ACL, rather than silently allowing such modifications.

> Relationship between ACE4_DELETE and ACE4_DELETE_CHILD
> There are two permission mask bits which control
> the deletion of the a file and directory. One is the ACE4_DELETE_CHILD
> bit in the parent directory's ACL. The other one is the ACE4_DELETE bit
> in the ACL of the file to be deleted. There are two interpretations of
> the relationship between the two bits.
> A) A file/directory can be removed only if the
> process has both ACE4_DELETE_CHILD and ACE4_DELETE permissions.
> B) ACE4_DELETE overrides ACE4_DELETE_CHILD. When
> an ACL explicitly specifies ACE4_DELETE in ALLOW ACE(s) or DENY ACE(s),
> ACE4_DELETE take precedence over ACE4_DELETE_CHILD. If ACE4_DELETE is unspecified,
> then ACE4_DELETE_CHILD defines the permission. In the case both are not
> specified, deny is the default.
> AIX currently implements A). Hummingbird currently
> implements B). Netapp will implement B).

This disagreement makes accurate POSIX<->NFSv4 ACL mapping, and, for
that matter, mode bit/ACL synchronization, impossible.  If a client
supporting POSIX ACLs wishes to set an accurate ACL on a server using
(A), then POSIX mapped ACLs must always explicitly allow ACE4_DELETE.
If the server uses (B), then the client must never explicitly allow or
deny ACE4_DELETE.

So it's important to agree on the meaning of ACE4_DELETE.  I'm inclined
to take something like option (B), since Sergey Klyushin has told me
that this is what windows does, and because I don't think any other
platform has an established use for the DELETE bit.  (Someone correct me
if I'm wrong.)

Actually from the point of view of a POSIX ACL user, it'd still be OK
for a server to do (A), as long as it defaulted to granting DELETE
permissions when they aren't explicitly allowed or denied in an ACL.

In general I think it makes the most sense for POSIX ACL users to never
explicitly allow or deny mode bits that they can't interpret (like
DELETE or SYNCHRONIZE).

> Mode to NFS4 ACL mapping algorithm
> The follow is the mode bits to ACL mapping algorithm
> used by AIX. Similar algorithm is being discussed among connectathon attendees.
> OWNER@ always allow:
> ACE4_WRITE_ACL | ACE4_WRITE_ATTRIBUTES | ACE4_WRITE_NAMED_ATTRIBUTES
> | ACE4_READ_ACL | ACE4_READ_ATTRIBUTES | ACE4_READ_NAMED_ATTRIBUTES | ACE4_DELETE
> GROUP@ and EVERYONE@ always allow:
> ACE4_READ_ACL | ACE4_READ_ATTRIBUTES | ACE4_READ_NAMED_ATTRIBUTES | ACE4_DELETE

Note that on a server taking interpretation (B) for the DELETE bit, this
would have the unintended consequence of allowing unlinks of files
without write permissions on the parent directory.

The NFSv4<->POSIX ACL draft requires that the NAMED_ATTRIBUTES bits be
determined by the read and write bits, just because that appears to be
the way Linux filesystems do it.  Why are you doing it this way instead?

> When a UNIX server maps mode bit to NFS4 ACL, the
> ACE4_SYNCHRONIZE permission mask bit should be set for the ALLOW
> ACEs of OWNER@, GROUP@ and EVERYONE@.
> The ACE4_SYNCHRONIZE mask bit has no meaning to most
> UNIX servers. UNIX does not support threads to wait on a file close event.
> However, there is a possibility the SYNC behavior can be simulated on a
> windows client. The ACE4_SYNCHRONIZE permission might mean something to
> a windows client. Hummingbird developers request that we set the
> ACE4_SYNCHRONIZE bit in ALLOW ACEs of OWNER@, GROUP@ and EVERYONE@.

Could they explain why?  Would it be sufficient just to never set the
bit (either in allow or deny aces)?

--b.

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



From exim@www1.ietf.org  Sat Apr 17 22:54:38 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA11468
	for <nfsv4-archive@odin.ietf.org>; Sat, 17 Apr 2004 22:54:37 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BF2MT-00021U-Me
	for nfsv4-archive@odin.ietf.org; Sat, 17 Apr 2004 22:48:49 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3I2mne8007774
	for nfsv4-archive@odin.ietf.org; Sat, 17 Apr 2004 22:48:49 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BF29D-0004Do-6P
	for nfsv4-web-archive@optimus.ietf.org; Sat, 17 Apr 2004 22:35:07 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA09758
	for <nfsv4-web-archive@ietf.org>; Sat, 17 Apr 2004 22:35:02 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BF299-0002WD-SF
	for nfsv4-web-archive@ietf.org; Sat, 17 Apr 2004 22:35:03 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BF28H-0002JP-00
	for nfsv4-web-archive@ietf.org; Sat, 17 Apr 2004 22:34:10 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BF27Q-00024i-00
	for nfsv4-web-archive@ietf.org; Sat, 17 Apr 2004 22:33:16 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BF1p0-00061s-KJ; Sat, 17 Apr 2004 22:14:14 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BExQA-0006NA-Eq
	for nfsv4@optimus.ietf.org; Sat, 17 Apr 2004 17:32:18 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA27895
	for <nfsv4@ietf.org>; Sat, 17 Apr 2004 17:32:14 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BExQ8-0003L8-1J
	for nfsv4@ietf.org; Sat, 17 Apr 2004 17:32:16 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BExPC-0003DE-00
	for nfsv4@ietf.org; Sat, 17 Apr 2004 17:31:19 -0400
Received: from e32.co.us.ibm.com ([32.97.110.130])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BExOP-0002wu-00
	for nfsv4@ietf.org; Sat, 17 Apr 2004 17:30:29 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e32.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3HLTwkV696134
	for <nfsv4@ietf.org>; Sat, 17 Apr 2004 17:29:58 -0400
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3HLTwLg368486
	for <nfsv4@ietf.org>; Sat, 17 Apr 2004 15:29:58 -0600
To: nfsv4@ietf.org
MIME-Version: 1.0
Subject: Fw: [nfsv4] rdattr_error values
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF10962BCE.1ED97F82-ON88256E79.0070DCB6-88256E79.00761697@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/17/2004 15:29:58,
	Serialize complete at 04/17/2004 15:29:58
Content-Type: multipart/alternative; boundary="=_alternative 0076169388256E79_="
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Sat, 17 Apr 2004 14:29:54 -0700
Date: Sat, 17 Apr 2004 14:29:54 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE,
	LINES_OF_YELLING,LINES_OF_YELLING_2,UPPERCASE_25_50 autolearn=no 
	version=2.60

This is a multipart message in MIME format.
--=_alternative 0076169388256E79_=
Content-Type: text/plain; charset="US-ASCII"

If my previous note is undefined by the group, I propose the following 
text for READDIR.

14.2.24 Operation 26:  READDIR

The following ERRORS apply to both READDIR4res status and fattr4 attribute 
rdattr_error.  If the client READDIR operation requests a read attribute 
which is not supported by the server <getattr copy> or cannot approximate 
a useful value then it must not return the attribute value and must not 
set the attribute bit in the result bitmap.  The server must return an 
error (in READDIR4res status?) if it supports an attribute but cannot 
obtain its value </end getattr copy>  or if the client requests a write 
only attribute such as time_modify_set then the server must return 
NFS4ERR_INVAL in READDIR4res status(any reason not rdattr_error ?). 
<getattr copy>  In that case no attribute values will be returned. </end 
getattr copy>  <readdir copy>

   ERRORS

      NFS4ERR_ACCESS
      NFS4ERR_BADHANDLE
      NFS4ERR_BAD_COOKIE
      NFS4ERR_BADXDR
      NFS4ERR_DELAY
      NFS4ERR_FHEXPIRED
      NFS4ERR_INVAL
      NFS4ERR_IO
      NFS4ERR_MOVED
      NFS4ERR_NOFILEHANDLE
      NFS4ERR_NOTDIR
      NFS4ERR_RESOURCE
      NFS4ERR_SERVERFAULT
      NFS4ERR_STALE
      NFS4ERR_TOOSMALL

</end readdir copy>

note: a less restrictive text change would be to list two sets of ERRORS 
for READDIR.  One for READDIR4res status and one for the new rdattr_error 
attribute .

Thanks,
Stevan C. Allen

----- Forwarded by Stevan Steve Allen/San Jose/IBM on 04/17/2004 01:32 PM 
-----


READDIR results contain two status areas which may be returned (operation 
status & rdattr_error attribute).   I did not find any mention in the RFC 
or WG archives of restrictions for returned rdattr_error values.  I was 
also not able to determine if READDIR should act like GETATTR and return 
values and bitmask for server supported attrs when unsupported attrs are 
requested on the READDIR operation.   

Are the following errors supported for the rdattr_error attribute?   

NFSERR_ATTRNOTSUPP 
NFSERR_INVAL     
NFSERR_RESOURCE     
NFSERR_SERVERFAULT 
NFS4ERR_DELAY
NFS4ERR_MOVED


Thanks,
Stevan C. Allen
--=_alternative 0076169388256E79_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">If my previous note is undefined by
the group, I propose the following text for READDIR.</font>
<br>
<br><font size=2 face="sans-serif">14.2.24 Operation 26: &nbsp;READDIR</font>
<br>
<br><font size=2 face="sans-serif">The following ERRORS apply to both READDIR4res
status and fattr4 attribute rdattr_error. &nbsp;If the client READDIR operation
requests a read attribute which is not supported by the server &lt;getattr
copy&gt; or cannot approximate a useful value then it must not return the
attribute value and must not set the attribute bit in the result bitmap.
&nbsp;The server must return an error (in READDIR4res status?) if it supports
an attribute but cannot obtain its value &lt;/end getattr copy&gt; &nbsp;or
if the client requests a write only attribute such as time_modify_set then
the server must return NFS4ERR_INVAL in READDIR4res status(<i>any reason
not rdattr_error</i> ?). &nbsp;&lt;getattr copy&gt; &nbsp;In that case
no attribute values will be returned. &lt;/end getattr copy&gt; &nbsp;&lt;readdir
copy&gt;</font>
<br><font size=1><tt><br>
 &nbsp; ERRORS<br>
<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_ACCESS<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_BADHANDLE<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_BAD_COOKIE<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_BADXDR<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_DELAY<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_FHEXPIRED<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_INVAL<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_IO<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_MOVED<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_NOFILEHANDLE<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_NOTDIR<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_RESOURCE<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_SERVERFAULT<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_STALE<br>
 &nbsp; &nbsp; &nbsp;NFS4ERR_TOOSMALL<br>
</tt></font>
<br><font size=2><tt>&lt;/end readdir copy&gt;</tt></font>
<br>
<br><font size=2 face="sans-serif">note: a less restrictive text change
would be to list two sets of ERRORS for READDIR. &nbsp;One for READDIR4res
status and one for the new rdattr_error attribute .</font>
<br>
<br><font size=2 face="sans-serif">Thanks,<br>
Stevan C. Allen<br>
</font>
<br><font size=1 color=#800080 face="sans-serif">----- Forwarded by Stevan
Steve Allen/San Jose/IBM on 04/17/2004 01:32 PM -----</font>
<br>
<br><font size=2 face="sans-serif"><br>
READDIR results contain two status areas which may be returned (operation
status &amp; rdattr_error attribute). &nbsp; I did not find any mention
in the RFC or WG archives of restrictions for returned rdattr_error values.
&nbsp;I was also not able to determine if READDIR should act like GETATTR
and return values and bitmask for server supported attrs when unsupported
attrs are requested on the READDIR operation. &nbsp;</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Are the following errors supported for the rdattr_error attribute? &nbsp;</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
NFSERR_ATTRNOTSUPP <br>
NFSERR_INVAL &nbsp; &nbsp;</font><font size=3> </font><font size=2 face="sans-serif"><br>
NFSERR_RESOURCE &nbsp; &nbsp;</font><font size=3> </font><font size=2 face="sans-serif"><br>
NFSERR_SERVERFAULT <br>
NFS4ERR_DELAY<br>
NFS4ERR_MOVED</font><font size=3><br>
<br>
</font><font size=2 face="sans-serif"><br>
Thanks,<br>
Stevan C. Allen</font>
--=_alternative 0076169388256E79_=--

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



From exim@www1.ietf.org  Mon Apr 19 12:01:28 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA18768
	for <nfsv4-archive@odin.ietf.org>; Mon, 19 Apr 2004 12:01:28 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFbAh-0000pa-Sf
	for nfsv4-archive@odin.ietf.org; Mon, 19 Apr 2004 11:59:00 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3JFwx7h003194
	for nfsv4-archive@odin.ietf.org; Mon, 19 Apr 2004 11:58:59 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFb28-0007eZ-8c
	for nfsv4-web-archive@optimus.ietf.org; Mon, 19 Apr 2004 11:50:08 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA17893
	for <nfsv4-web-archive@ietf.org>; Mon, 19 Apr 2004 11:50:05 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BFb27-0007aU-4W
	for nfsv4-web-archive@ietf.org; Mon, 19 Apr 2004 11:50:07 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BFb1J-0007Mu-00
	for nfsv4-web-archive@ietf.org; Mon, 19 Apr 2004 11:49:18 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BFb0L-00079F-00
	for nfsv4-web-archive@ietf.org; Mon, 19 Apr 2004 11:48:17 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFasM-0004zN-BB; Mon, 19 Apr 2004 11:40:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFaig-00033N-JR
	for nfsv4@optimus.ietf.org; Mon, 19 Apr 2004 11:30:02 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA16968
	for <nfsv4@ietf.org>; Mon, 19 Apr 2004 11:30:00 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BFaif-00030F-H2
	for nfsv4@ietf.org; Mon, 19 Apr 2004 11:30:01 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BFahh-0002m3-00
	for nfsv4@ietf.org; Mon, 19 Apr 2004 11:29:02 -0400
Received: from brmea-mail-3.sun.com ([192.18.98.34])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BFagh-0002U7-00
	for nfsv4@ietf.org; Mon, 19 Apr 2004 11:28:00 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id i3JFRx4U017277;
	Mon, 19 Apr 2004 09:27:59 -0600 (MDT)
Received: from [192.168.0.2] (vpn-129-150-33-30.Central.Sun.COM [129.150.33.30])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3JFRsgs013934;
	Mon, 19 Apr 2004 08:27:58 -0700 (PDT)
In-Reply-To: <OF5E8A5A06.C70B4247-ON87256E77.006DB866-88256E77.00718D22@us.ibm.com>
References: <OF5E8A5A06.C70B4247-ON87256E77.006DB866-88256E77.00718D22@us.ibm.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-2-1002156780
Message-Id: <5AD63D78-9216-11D8-A48F-000A95DBCB70@sun.com>
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] rdattr_error values
To: Stevan Steve Allen <scallen@us.ibm.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 19 Apr 2004 10:29:31 -0500
Date: Mon, 19 Apr 2004 10:29:31 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60


--Apple-Mail-2-1002156780
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


On Apr 15, 2004, at 3:40 PM, Stevan Steve Allen wrote:

>
> READDIR results contain two status areas which may be returned=20
> (operation status & rdattr_error attribute). =A0 I did not find any=20
> mention in the RFC or WG archives of restrictions for returned=20
> rdattr_error values. =A0I was also not able to determine if READDIR=20
> should act like GETATTR and return values and bitmask for server=20
> supported attrs when unsupported attrs are requested on the READDIR=20
> operation. =A0
>
> Are the following errors supported for the rdattr_error attribute? =A0
>
> NFSERR_ATTRNOTSUPP
>  NFSERR_INVAL =A0 =A0
> NFSERR_RESOURCE =A0 =A0
> NFSERR_SERVERFAULT
>  NFS4ERR_DELAY
>  NFS4ERR_MOVED

The error return values for fattr4_rdattr_error are the same as for=20
GETATTR.
I believe this is generally accepted.

The errors defined for READDIR are for the reading of a directory only.

As the RFC states, if the client does not ask for fattr4_rdattr_error,=20=

then the
server must return an error for the READDIR operation if one of the
resultant "getattrs" fails for some reason.  Therefore, clients should=20=

make
sure to include fattr4_rdattr_error in their requests if they are=20
requesting
attributes.

Spencer

--Apple-Mail-2-1002156780
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Apr 15, 2004, at 3:40 PM, Stevan Steve Allen wrote:


<excerpt>

<smaller>READDIR results contain two status areas which may be
returned (operation status & rdattr_error attribute). =A0 I did not find
any mention in the RFC or WG archives of restrictions for returned
rdattr_error values. =A0I was also not able to determine if READDIR
should act like GETATTR and return values and bitmask for server
supported attrs when unsupported attrs are requested on the READDIR
operation. =A0</smaller>=20


<smaller>Are the following errors supported for the rdattr_error
attribute? =A0</smaller>=20


<smaller>NFSERR_ATTRNOTSUPP</smaller>=20

 <smaller>NFSERR_INVAL =A0 =A0</smaller>=20

<smaller>NFSERR_RESOURCE =A0 =A0</smaller>=20

<smaller>NFSERR_SERVERFAULT</smaller>=20

 <smaller>NFS4ERR_DELAY</smaller>

<smaller> NFS4ERR_MOVED

</smaller></excerpt>

The error return values for fattr4_rdattr_error are the same as for
GETATTR.

I believe this is generally accepted.


The errors defined for READDIR are for the reading of a directory only.


As the RFC states, if the client does not ask for fattr4_rdattr_error,
then the

server must return an error for the READDIR operation if one of the

resultant "getattrs" fails for some reason.  Therefore, clients should
make

sure to include fattr4_rdattr_error in their requests if they are
requesting

attributes.


Spencer


--Apple-Mail-2-1002156780--


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



From exim@www1.ietf.org  Tue Apr 20 14:20:56 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA09958
	for <nfsv4-archive@odin.ietf.org>; Tue, 20 Apr 2004 14:20:56 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFzgg-0005NZ-Mf
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 14:09:39 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3KI9cHP020677
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 14:09:38 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFzXR-0001n3-E2
	for nfsv4-web-archive@optimus.ietf.org; Tue, 20 Apr 2004 14:00:05 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA08526
	for <nfsv4-web-archive@ietf.org>; Tue, 20 Apr 2004 14:00:02 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BFzXO-0004Ce-Sa
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 14:00:02 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BFzWR-00046C-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 13:59:03 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BFzVT-00042C-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 13:58:03 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFzIq-0004Rg-QT; Tue, 20 Apr 2004 13:45:00 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFz3Q-00060n-33
	for nfsv4@optimus.ietf.org; Tue, 20 Apr 2004 13:29:04 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA06532
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 13:29:02 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BFz3O-0002Mm-0b
	for nfsv4@ietf.org; Tue, 20 Apr 2004 13:29:02 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BFz2P-0002IL-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 13:28:01 -0400
Received: from e35.co.us.ibm.com ([32.97.110.133])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BFz1R-0002BK-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 13:27:01 -0400
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e35.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3KHQSUk507176
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 13:26:29 -0400
Received: from d03nm691.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3KHQQWI107798
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 11:26:26 -0600
In-Reply-To: <4955327F-8F11-11D8-9D15-000A95DBCB70@sun.com>
To: nfsv4@ietf.org
MIME-Version: 1.0
Subject: Re: [nfsv4] more re: NFSERR_EXPIRED 
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OFD60FB2A6.AD5456E7-ON87256E7C.005ED177-86256E7C.005FCD25@us.ibm.com>
From: Paul Mazzurana <pdmazz@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM691/03/M/IBM(Release 6.0.2CF2HF259 | March 11, 2004) at
 04/20/2004 11:26:25,
	Serialize complete at 04/20/2004 11:26:25
Content-Type: multipart/alternative; boundary="=_alternative 005FCD2286256E7C_="
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 20 Apr 2004 12:26:24 -0500
Date: Tue, 20 Apr 2004 12:26:24 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no 
	version=2.60

This is a multipart message in MIME format.
--=_alternative 005FCD2286256E7C_=
Content-Type: text/plain; charset="US-ASCII"

Team,

With all this discussion on NFS4ERR_EXPIRED vs. NFS4ERR_STALE_CLIENTID 
etc., I was checking our implementation and also re-reading the RFC a bit 
closer.

I noticed that the DELEGPURGE operation does not have NFS4ERR_EXPIRED nor 
NFS4ERR_ADMIN_REVOKED as possible error codes. Since a server may mark a 
clientid as expired, it would seem that the server should let the client 
know this on any operation that takes a clientid. Also, for those servers 
that have a whiz-bang admin tool to revoke a client, the server should 
also let the client know on those operations that take a clientid. 

Is it possible to add these 2 error codes to the errata?  OR should the 
server just translate these errors to NFS4ERR_SERVERFAULT (or 
NFS4ERR_STALE_CLIENTID ...though I think that xlate would be misleading). 

thoughts?
--
Paul D. Mazzurana

--=_alternative 005FCD2286256E7C_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Team,</font>
<br>
<br><font size=2 face="sans-serif">With all this discussion on NFS4ERR_EXPIRED
vs. NFS4ERR_STALE_CLIENTID etc., I was checking our implementation and
also re-reading the RFC a bit closer.</font>
<br>
<br><font size=2 face="sans-serif">I noticed that the DELEGPURGE operation
does not have NFS4ERR_EXPIRED nor NFS4ERR_ADMIN_REVOKED as possible error
codes. Since a server may mark a clientid as expired, it would seem that
the server should let the client know this on any operation that takes
a clientid. Also, for those servers that have a whiz-bang admin tool to
revoke a client, the server should also let the client know on those operations
that take a clientid. </font>
<br>
<br><font size=2 face="sans-serif">Is it possible to add these 2 error
codes to the errata? &nbsp;OR should the server just translate these errors
to NFS4ERR_SERVERFAULT (or NFS4ERR_STALE_CLIENTID ...though I think that
xlate would be misleading). </font>
<br>
<br><font size=2 face="sans-serif">thoughts?</font>
<br><font size=2 face="sans-serif">--<br>
Paul D. Mazzurana<br>
</font>
--=_alternative 005FCD2286256E7C_=--

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



From exim@www1.ietf.org  Tue Apr 20 15:00:19 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA12952
	for <nfsv4-archive@odin.ietf.org>; Tue, 20 Apr 2004 15:00:19 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0Ju-00049s-RT
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 14:50:10 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3KIoA0F015970
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 14:50:10 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG08F-0007zX-Co
	for nfsv4-web-archive@optimus.ietf.org; Tue, 20 Apr 2004 14:38:07 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA11060
	for <nfsv4-web-archive@ietf.org>; Tue, 20 Apr 2004 14:38:04 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG08C-0006kx-ON
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 14:38:04 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG07I-0006i8-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 14:37:09 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG06O-0006eV-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 14:36:12 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFzva-0003Au-MB; Tue, 20 Apr 2004 14:25:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BFzoz-0000aM-41
	for nfsv4@optimus.ietf.org; Tue, 20 Apr 2004 14:18:13 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA09858
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 14:18:10 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BFzow-0005Xv-DX
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:18:10 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BFzo6-0005VH-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:17:19 -0400
Received: from mx01.netapp.com ([198.95.226.53])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BFznU-0005QF-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:16:40 -0400
Received: from hawk.corp.netapp.com (hawk [10.57.156.122])
	by mx01.netapp.com (8.12.10/8.12.10/NTAP-1.4) with ESMTP id i3KIGAZh021936;
	Tue, 20 Apr 2004 11:16:10 -0700 (PDT)
Received: from svlexc01.hq.netapp.com (svlexc01.corp.netapp.com [10.57.156.135])
	by hawk.corp.netapp.com (8.12.9/8.12.9/NTAP-1.5) with ESMTP id i3KIG9tA020629;
	Tue, 20 Apr 2004 11:16:09 -0700 (PDT)
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C42703.8805926B"
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: [nfsv4] more re: NFSERR_EXPIRED 
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED67@silver.nane.netapp.com>
Thread-Topic: [nfsv4] more re: NFSERR_EXPIRED 
Thread-Index: AcQnARMo1RUyS6gwTzCfcgE8dx+VbQAAag8A
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Paul Mazzurana" <pdmazz@us.ibm.com>, <nfsv4@ietf.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 20 Apr 2004 11:15:59 -0700
Date: Tue, 20 Apr 2004 11:15:59 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE 
	autolearn=no version=2.60

This is a multi-part message in MIME format.

------_=_NextPart_001_01C42703.8805926B
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

> Is it possible to add these 2 error codes to the errata?  OR should
the server just translate these errors to=20
> NFS4ERR_SERVERFAULT (or NFS4ERR_STALE_CLIENTID ...though I think that
xlate would be misleading).=20
=20
STALE_CLIENTID is wrong unless, the server has rebooted.
=20
I think someone mentioned this issue a while back but I can't remember
who.  I think that person made a
good case (at least in my opinion), that returning OK here does the
least harm.  You are telling the server
to get rid of any delegations that he has for this client, and if he
never heard of the client id, then he has
already got rid of all none of them, and so saying "I did that OK" is
valid. =20



-----Original Message-----
From: Paul Mazzurana [mailto:pdmazz@us.ibm.com]=20
Sent: Tuesday, April 20, 2004 1:26 PM
To: nfsv4@ietf.org
Subject: Re: [nfsv4] more re: NFSERR_EXPIRED=20



Team,=20

With all this discussion on NFS4ERR_EXPIRED vs. NFS4ERR_STALE_CLIENTID
etc., I was checking our implementation and also re-reading the RFC a
bit closer.=20

I noticed that the DELEGPURGE operation does not have NFS4ERR_EXPIRED
nor NFS4ERR_ADMIN_REVOKED as possible error codes. Since a server may
mark a clientid as expired, it would seem that the server should let the
client know this on any operation that takes a clientid. Also, for those
servers that have a whiz-bang admin tool to revoke a client, the server
should also let the client know on those operations that take a
clientid.=20

Is it possible to add these 2 error codes to the errata?  OR should the
server just translate these errors to NFS4ERR_SERVERFAULT (or
NFS4ERR_STALE_CLIENTID ...though I think that xlate would be
misleading).=20

thoughts?=20
--
Paul D. Mazzurana



------_=_NextPart_001_01C42703.8805926B
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=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D054161018-20042004>&gt; </SPAN>Is=20
it possible to add these 2 error codes to the errata? &nbsp;OR should =
the server=20
just translate these errors to&nbsp;</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D054161018-20042004>&gt;=20
</SPAN>NFS4ERR_SERVERFAULT (or NFS4ERR_STALE_CLIENTID ...though I think =
that=20
xlate would be misleading). </FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D054161018-20042004><FONT face=3DArial =
size=3D2>STALE_CLIENTID is=20
wrong unless, the server has rebooted.</FONT></SPAN></DIV>
<DIV><SPAN class=3D054161018-20042004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D054161018-20042004><FONT face=3DArial size=3D2>I =
think someone=20
mentioned this issue a while back but I can't remember who.&nbsp; I =
think that=20
person made&nbsp;a</FONT></SPAN></DIV>
<DIV><SPAN class=3D054161018-20042004><FONT face=3DArial size=3D2>good =
case (at least=20
in my opinion), that returning OK here does the least harm.&nbsp; You =
are=20
telling the server</FONT></SPAN></DIV>
<DIV><SPAN class=3D054161018-20042004><FONT face=3DArial size=3D2>to get =
rid of any=20
delegations that he has for this client, and if he never heard of the =
client id,=20
then he has</FONT></SPAN></DIV>
<DIV><SPAN class=3D054161018-20042004><FONT face=3DArial =
size=3D2>already got rid of=20
all none of them, and so saying "I did that OK" is valid.&nbsp;=20
</FONT></SPAN></DIV>
<DIV><BR><BR></DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> Paul =
Mazzurana=20
  [mailto:pdmazz@us.ibm.com] <BR><B>Sent:</B> Tuesday, April 20, 2004 =
1:26=20
  PM<BR><B>To:</B> nfsv4@ietf.org<BR><B>Subject:</B> Re: [nfsv4] more =
re:=20
  NFSERR_EXPIRED <BR><BR></FONT></DIV><BR><FONT face=3Dsans-serif=20
  size=3D2>Team,</FONT> <BR><BR><FONT face=3Dsans-serif size=3D2>With =
all this=20
  discussion on NFS4ERR_EXPIRED vs. NFS4ERR_STALE_CLIENTID etc., I was =
checking=20
  our implementation and also re-reading the RFC a bit closer.</FONT>=20
  <BR><BR><FONT face=3Dsans-serif size=3D2>I noticed that the DELEGPURGE =
operation=20
  does not have NFS4ERR_EXPIRED nor NFS4ERR_ADMIN_REVOKED as possible =
error=20
  codes. Since a server may mark a clientid as expired, it would seem =
that the=20
  server should let the client know this on any operation that takes a =
clientid.=20
  Also, for those servers that have a whiz-bang admin tool to revoke a =
client,=20
  the server should also let the client know on those operations that =
take a=20
  clientid. </FONT><BR><BR><FONT face=3Dsans-serif size=3D2>Is it =
possible to add=20
  these 2 error codes to the errata? &nbsp;OR should the server just =
translate=20
  these errors to NFS4ERR_SERVERFAULT (or NFS4ERR_STALE_CLIENTID =
...though I=20
  think that xlate would be misleading). </FONT><BR><BR><FONT =
face=3Dsans-serif=20
  size=3D2>thoughts?</FONT> <BR><FONT face=3Dsans-serif =
size=3D2>--<BR>Paul D.=20
  Mazzurana<BR></BLOCKQUOTE></FONT></BODY></HTML>

------_=_NextPart_001_01C42703.8805926B--

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



From exim@www1.ietf.org  Tue Apr 20 15:49:42 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA17710
	for <nfsv4-archive@odin.ietf.org>; Tue, 20 Apr 2004 15:49:41 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0yj-00068w-HR
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 15:32:21 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3KJWLsI023610
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 15:32:21 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0pv-0001po-I5
	for nfsv4-web-archive@optimus.ietf.org; Tue, 20 Apr 2004 15:23:15 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA15893
	for <nfsv4-web-archive@ietf.org>; Tue, 20 Apr 2004 15:23:13 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG0pu-0002nz-2z
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 15:23:14 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG0pD-0002lG-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 15:22:32 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG0oJ-0002gz-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 15:21:35 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0Tr-0000MA-L7; Tue, 20 Apr 2004 15:00:27 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0HF-0002kq-9m
	for nfsv4@optimus.ietf.org; Tue, 20 Apr 2004 14:47:25 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA11980
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 14:47:22 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG0HC-0007YD-9m
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:47:22 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG0GJ-0007UD-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:46:28 -0400
Received: from brmea-mail-3.sun.com ([192.18.98.34])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG0Fp-0007Pa-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:45:57 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id i3KIjv4U007041;
	Tue, 20 Apr 2004 12:45:57 -0600 (MDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3KIjugr007790;
	Tue, 20 Apr 2004 11:45:56 -0700 (PDT)
In-Reply-To: <OFD60FB2A6.AD5456E7-ON87256E7C.005ED177-86256E7C.005FCD25@us.ibm.com>
References: <OFD60FB2A6.AD5456E7-ON87256E7C.005ED177-86256E7C.005FCD25@us.ibm.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-6--1046966280
Message-Id: <5E5099AA-92FB-11D8-96FB-000A95DBCB70@sun.com>
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more re: NFSERR_EXPIRED 
To: Paul Mazzurana <pdmazz@us.ibm.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 20 Apr 2004 13:48:52 -0500
Date: Tue, 20 Apr 2004 13:48:52 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60


--Apple-Mail-6--1046966280
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


On Apr 20, 2004, at 12:26 PM, Paul Mazzurana wrote:

>
> Team,
>
> With all this discussion on NFS4ERR_EXPIRED vs. NFS4ERR_STALE_CLIENTID=20=

> etc., I was checking our implementation and also re-reading the RFC a=20=

> bit closer.
>
> I noticed that the DELEGPURGE operation does not have NFS4ERR_EXPIRED=20=

> nor NFS4ERR_ADMIN_REVOKED as possible error codes. Since a server may=20=

> mark a clientid as expired, it would seem that the server should let=20=

> the client know this on any operation that takes a clientid. Also, for=20=

> those servers that have a whiz-bang admin tool to revoke a client, the=20=

> server should also let the client know on those operations that take a=20=

> clientid.
>
> Is it possible to add these 2 error codes to the errata? =A0OR should=20=

> the server just translate these errors to NFS4ERR_SERVERFAULT (or=20
> NFS4ERR_STALE_CLIENTID ...though I think that xlate would be=20
> misleading).

The client should be notified about administrative action when the
client submits its OPEN request with type CLAIM_DELEGATE_PREV.
The ADMIN_REVOKED error is present for OPEN.

For DELEGPURGE, the clientid should be the current clientid and
therefore, adding NFS4ERR_EXPIRED seems appropriate in case there
is a window between the client's delegation reclaims and the DELEGPURGE.

Spencer


--Apple-Mail-6--1046966280
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Apr 20, 2004, at 12:26 PM, Paul Mazzurana wrote:


<excerpt>

<smaller>Team,</smaller>=20


<smaller>With all this discussion on NFS4ERR_EXPIRED vs.
NFS4ERR_STALE_CLIENTID etc., I was checking our implementation and
also re-reading the RFC a bit closer.</smaller>=20


<smaller>I noticed that the DELEGPURGE operation does not have
NFS4ERR_EXPIRED nor NFS4ERR_ADMIN_REVOKED as possible error codes.
Since a server may mark a clientid as expired, it would seem that the
server should let the client know this on any operation that takes a
clientid. Also, for those servers that have a whiz-bang admin tool to
revoke a client, the server should also let the client know on those
operations that take a clientid. </smaller>


<smaller>Is it possible to add these 2 error codes to the errata? =A0OR
should the server just translate these errors to NFS4ERR_SERVERFAULT
(or NFS4ERR_STALE_CLIENTID ...though I think that xlate would be
misleading). </smaller>

</excerpt>

The client should be notified about administrative action when the

client submits its OPEN request with type CLAIM_DELEGATE_PREV.

The ADMIN_REVOKED error is present for OPEN.


For DELEGPURGE, the clientid should be the current clientid and

therefore, adding NFS4ERR_EXPIRED seems appropriate in case there

is a window between the client's delegation reclaims and the
DELEGPURGE.


Spencer



--Apple-Mail-6--1046966280--


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



From exim@www1.ietf.org  Tue Apr 20 15:49:53 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA17810
	for <nfsv4-archive@odin.ietf.org>; Tue, 20 Apr 2004 15:49:52 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG124-0007jH-Sv
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 15:35:48 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3KJZmKt029706
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 15:35:48 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0uf-00049v-MC
	for nfsv4-web-archive@optimus.ietf.org; Tue, 20 Apr 2004 15:28:09 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA16084
	for <nfsv4-web-archive@ietf.org>; Tue, 20 Apr 2004 15:28:07 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG0ue-00035t-5T
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 15:28:08 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG0ti-00031F-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 15:27:11 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG0so-0002y4-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 15:26:14 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0Tw-0000lu-SZ; Tue, 20 Apr 2004 15:00:32 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG0JK-0003dt-Ks
	for nfsv4@optimus.ietf.org; Tue, 20 Apr 2004 14:49:34 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA12115
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 14:49:31 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG0JH-0007jv-OX
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:49:31 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG0IH-0007eP-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:48:30 -0400
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG0Hn-0007Yp-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 14:47:59 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id i3KIlTms001068;
	Tue, 20 Apr 2004 11:47:29 -0700 (PDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3KIlSgr008202;
	Tue, 20 Apr 2004 11:47:29 -0700 (PDT)
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED67@silver.nane.netapp.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A01C8ED67@silver.nane.netapp.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: multipart/alternative; boundary=Apple-Mail-7--1046874013
Message-Id: <954F545A-92FB-11D8-96FB-000A95DBCB70@sun.com>
Cc: <nfsv4@ietf.org>, "Paul Mazzurana" <pdmazz@us.ibm.com>
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more re: NFSERR_EXPIRED 
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
X-Mailer: Apple Mail (2.613)
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 20 Apr 2004 13:50:24 -0500
Date: Tue, 20 Apr 2004 13:50:24 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE 
	autolearn=no version=2.60


--Apple-Mail-7--1046874013
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed
Content-Transfer-Encoding: quoted-printable


On Apr 20, 2004, at 1:15 PM, Noveck, Dave wrote:

> > Is it possible to add these 2 error codes to the errata? =A0OR =
should=20
> the server just translate these errors to=A0
> > NFS4ERR_SERVERFAULT (or NFS4ERR_STALE_CLIENTID ...though I think=20
> that xlate would be misleading).
>  =A0
> STALE_CLIENTID is wrong unless, the server has rebooted.
> =A0
> I think someone mentioned this issue a while back but I can't remember=20=

> who.=A0 I think that person made=A0a
> good case (at least in my opinion), that returning OK here does the=20
> least harm.=A0 You are telling the server
> to get rid of any delegations that he has for this client, and if he=20=

> never heard of the client id, then he has
> already got rid of all none of them, and so saying "I did that OK" is=20=

> valid.=A0

Ah, yes. I had forgotten about that thread; I withdraw the second=20
portion of what
I mentioned in my previous email.


>
>
>  -----Original Message-----
> From: Paul Mazzurana [mailto:pdmazz@us.ibm.com]
>  Sent: Tuesday, April 20, 2004 1:26 PM
> To: nfsv4@ietf.org
> Subject: Re: [nfsv4] more re: NFSERR_EXPIRED
>
>
>  Team,
>
> With all this discussion on NFS4ERR_EXPIRED vs. NFS4ERR_STALE_CLIENTID=20=

> etc., I was checking our implementation and also re-reading the RFC a=20=

> bit closer.
>
> I noticed that the DELEGPURGE operation does not have NFS4ERR_EXPIRED=20=

> nor NFS4ERR_ADMIN_REVOKED as possible error codes. Since a server may=20=

> mark a clientid as expired, it would seem that the server should let=20=

> the client know this on any operation that takes a clientid. Also, for=20=

> those servers that have a whiz-bang admin tool to revoke a client, the=20=

> server should also let the client know on those operations that take a=20=

> clientid.
>
>  Is it possible to add these 2 error codes to the errata? =A0OR should=20=

> the server just translate these errors to NFS4ERR_SERVERFAULT (or=20
> NFS4ERR_STALE_CLIENTID ...though I think that xlate would be=20
> misleading).
>
>  thoughts?
> --
> Paul D. Mazzurana

--Apple-Mail-7--1046874013
Content-Type: text/enriched;
	charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable



On Apr 20, 2004, at 1:15 PM, Noveck, Dave wrote:


<excerpt><fontfamily><param>Arial</param><smaller>> Is it possible to
add these 2 error codes to the errata? =A0OR should the server just
translate these errors to=A0</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>> NFS4ERR_SERVERFAULT (or
NFS4ERR_STALE_CLIENTID ...though I think that xlate would be
misleading).</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller> </smaller></fontfamily>=A0

<fontfamily><param>Arial</param><smaller>STALE_CLIENTID is wrong
unless, the server has rebooted.</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>I think someone mentioned
this issue a while back but I can't remember who.=A0 I think that person
made=A0a</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>good case (at least in my
opinion), that returning OK here does the least harm.=A0 You are telling
the server</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>to get rid of any delegations
that he has for this client, and if he never heard of the client id,
then he has</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>already got rid of all none
of them, and so saying "I did that OK" is valid.=A0</smaller></fontfamily>=


</excerpt>

Ah, yes. I had forgotten about that thread; I withdraw the second
portion of what

I mentioned in my previous email.



<excerpt>


<fontfamily><param>Arial</param><smaller>
=
</smaller></fontfamily><fontfamily><param>Tahoma</param><smaller>-----Orig=
inal
Message-----</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>From:</smaller></fontfamil=
y></bold><fontfamily><param>Tahoma</param><smaller>
Paul Mazzurana [mailto:pdmazz@us.ibm.com]</smaller></fontfamily>

<fontfamily><param>Tahoma</param><smaller> <bold>Sent:</bold> Tuesday,
April 20, 2004 1:26 PM</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>To:</smaller></fontfamily>=
</bold><fontfamily><param>Tahoma</param><smaller>
nfsv4@ietf.org</smaller></fontfamily>

=
<bold><fontfamily><param>Tahoma</param><smaller>Subject:</smaller></fontfa=
mily></bold><fontfamily><param>Tahoma</param><smaller>
Re: [nfsv4] more re: NFSERR_EXPIRED</smaller></fontfamily>



<fontfamily><param>Tahoma</param><smaller>
</smaller></fontfamily><smaller>Team,</smaller>=20


<smaller>With all this discussion on NFS4ERR_EXPIRED vs.
NFS4ERR_STALE_CLIENTID etc., I was checking our implementation and
also re-reading the RFC a bit closer.</smaller>=20


<smaller>I noticed that the DELEGPURGE operation does not have
NFS4ERR_EXPIRED nor NFS4ERR_ADMIN_REVOKED as possible error codes.
Since a server may mark a clientid as expired, it would seem that the
server should let the client know this on any operation that takes a
clientid. Also, for those servers that have a whiz-bang admin tool to
revoke a client, the server should also let the client know on those
operations that take a clientid.</smaller>


<smaller> Is it possible to add these 2 error codes to the errata? =A0OR
should the server just translate these errors to NFS4ERR_SERVERFAULT
(or NFS4ERR_STALE_CLIENTID ...though I think that xlate would be
misleading).</smaller>


<smaller> thoughts?</smaller>=20

<smaller>--</smaller>

<smaller>Paul D. Mazzurana</smaller>

</excerpt>=

--Apple-Mail-7--1046874013--


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



From exim@www1.ietf.org  Tue Apr 20 18:30:17 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA03697
	for <nfsv4-archive@odin.ietf.org>; Tue, 20 Apr 2004 18:30:17 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG3aM-0001KP-W5
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 18:19:23 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3KMJMks005101
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 18:19:22 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG3Sg-0001E1-Mx
	for nfsv4-web-archive@optimus.ietf.org; Tue, 20 Apr 2004 18:11:28 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA01513
	for <nfsv4-web-archive@ietf.org>; Tue, 20 Apr 2004 18:11:22 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG3Sd-0005bW-UZ
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 18:11:24 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG3Rs-0005XG-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 18:10:37 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG3RR-0005SS-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 18:10:09 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG33r-0000Rd-VK; Tue, 20 Apr 2004 17:45:47 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG2Kx-0000OE-DS
	for nfsv4@optimus.ietf.org; Tue, 20 Apr 2004 16:59:23 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA24390
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 16:59:20 -0400 (EDT)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG2Kv-0005BV-88
	for nfsv4@ietf.org; Tue, 20 Apr 2004 16:59:21 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG2K4-00057U-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 16:58:28 -0400
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG2JZ-000538-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 16:57:57 -0400
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id QAA17907
	for nfsv4@ietf.org; Tue, 20 Apr 2004 16:57:34 -0400 (EDT)
Message-Id: <200404202057.QAA17907@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] re: more on NFSERR_EXPIRED
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 20 Apr 2004 16:57:34 -0400 (EDT)
Date: Tue, 20 Apr 2004 16:57:34 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no 
	version=2.60

> I think someone mentioned this issue a while back but I can't remember
> who.  I think that person made a
> good case (at least in my opinion), that returning OK here does the
> least harm.  You are telling the server
> to get rid of any delegations that he has for this client, and if he
> never heard of the client id, then he has
> already got rid of all none of them, and so saying "I did that OK" is
> valid.

I'm the guilty party. I mentioned that my server returned OK for
basically the reason you mention above. However, I'm not sure I'd argue
that it makes more sense than returning NFS4ERR_EXPIRED, just that, since
NFS4ERR_EXPIRED wasn't on the list, it made more sense than any of the
ones on the list. (If some client writer jumped up and said that
NFS4ERR_EXPIRED returned in this case would make their life easier, I
don't have a problem with adding the error code to Delegpurge.)

rick

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



From exim@www1.ietf.org  Tue Apr 20 18:32:28 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA04031
	for <nfsv4-archive@odin.ietf.org>; Tue, 20 Apr 2004 18:32:27 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG3jP-00069I-Sy
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 18:28:43 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3KMShj7023599
	for nfsv4-archive@odin.ietf.org; Tue, 20 Apr 2004 18:28:43 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG3Xl-0007GY-5D
	for nfsv4-web-archive@optimus.ietf.org; Tue, 20 Apr 2004 18:16:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA02399
	for <nfsv4-web-archive@ietf.org>; Tue, 20 Apr 2004 18:16:37 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG3Xi-0006Q7-4X
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 18:16:38 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG3Vs-00065p-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 18:14:44 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG3Ue-0005qs-00
	for nfsv4-web-archive@ietf.org; Tue, 20 Apr 2004 18:13:28 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG38C-0003Em-Ga; Tue, 20 Apr 2004 17:50:16 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BG2j6-0007wC-N3
	for nfsv4@optimus.ietf.org; Tue, 20 Apr 2004 17:24:20 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA26657
	for <nfsv4@ietf.org>; Tue, 20 Apr 2004 17:24:17 -0400 (EDT)
From: rick@snowhite.cis.uoguelph.ca
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BG2j4-0000Z8-Am
	for nfsv4@ietf.org; Tue, 20 Apr 2004 17:24:18 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BG2iG-0000ST-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 17:23:29 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BG2hI-0000Ip-00
	for nfsv4@ietf.org; Tue, 20 Apr 2004 17:22:29 -0400
Received: from snowhite.cis.uoguelph.ca ([131.104.48.1])
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BG2hJ-0001q4-AG
	for nfsv4@ietf.org; Tue, 20 Apr 2004 17:22:29 -0400
Received: (from rick@localhost)
	by snowhite.cis.uoguelph.ca (8.9.3/8.9.3) id RAA18206
	for nfsv4@ietf.org; Tue, 20 Apr 2004 17:20:54 -0400 (EDT)
Message-Id: <200404202120.RAA18206@snowhite.cis.uoguelph.ca>
To: nfsv4@ietf.org
Subject: [nfsv4] NFSERR_EXPIRED etc
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 20 Apr 2004 17:20:54 -0400 (EDT)
Date: Tue, 20 Apr 2004 17:20:54 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no 
	version=2.60

fyi, I have a file called Readme.quirky-cases that you can anonymous
ftp from snowhite.cis.uoguelph.ca in pub/nfsv4. It mentions the NFS_OK
return for Delegpurge, along with assorted other things that might
interest other nfsv4 implementors. (For example, another Op that takes
a clientid but can't return NFS4ERR_EXPIRED is LockT. For that one I
just assume that none of the locks are for that client when looking for
conflicts.)

Just in case you are interested, rick

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



From exim@www1.ietf.org  Wed Apr 21 19:45:20 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA01513
	for <nfsv4-archive@odin.ietf.org>; Wed, 21 Apr 2004 19:45:20 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGRKK-00004y-HR
	for nfsv4-archive@odin.ietf.org; Wed, 21 Apr 2004 19:40:24 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3LNeOrl000304
	for nfsv4-archive@odin.ietf.org; Wed, 21 Apr 2004 19:40:24 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGR6J-0000lZ-2y
	for nfsv4-web-archive@optimus.ietf.org; Wed, 21 Apr 2004 19:25:55 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA29966
	for <nfsv4-web-archive@ietf.org>; Wed, 21 Apr 2004 19:25:53 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BGR6H-0005tZ-Fn
	for nfsv4-web-archive@ietf.org; Wed, 21 Apr 2004 19:25:53 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BGR57-0005d7-00
	for nfsv4-web-archive@ietf.org; Wed, 21 Apr 2004 19:24:43 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BGR4R-0005PK-00
	for nfsv4-web-archive@ietf.org; Wed, 21 Apr 2004 19:23:59 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGQhH-0003w4-7C; Wed, 21 Apr 2004 19:00:03 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGQPi-00037t-Tu
	for nfsv4@optimus.ietf.org; Wed, 21 Apr 2004 18:41:57 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA26451
	for <nfsv4@ietf.org>; Wed, 21 Apr 2004 18:41:50 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BGQPf-0003vt-P3
	for nfsv4@ietf.org; Wed, 21 Apr 2004 18:41:51 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BGQOi-0003fS-00
	for nfsv4@ietf.org; Wed, 21 Apr 2004 18:40:54 -0400
Received: from e31.co.us.ibm.com ([32.97.110.129])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BGQNq-0003KM-00; Wed, 21 Apr 2004 18:39:58 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3LMcqpj470286;
	Wed, 21 Apr 2004 18:38:52 -0400
Received: from d03nm124.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3LMclxH366492;
	Wed, 21 Apr 2004 16:38:51 -0600
In-Reply-To: <20040416171802.GC10015@fieldses.org>
Subject: Re: [nfsv4] Connectathon2004, ACL report
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: nfsv4@ietf.org, nfsv4-admin@ietf.org
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF95C03474.8A74AE9E-ON87256E7D.007BBE04-86256E7D.007C992D@us.ibm.com>
From: Wu Zheng <wzheng@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM124/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/21/2004 16:38:50
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=08BBE4EEDFE838948f9e8a93df938690918c08BBE4EEDFE83894"
Content-Disposition: inline
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Wed, 21 Apr 2004 17:38:44 -0500
Date: Wed, 21 Apr 2004 17:38:44 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,HTML_MESSAGE autolearn=no 
	version=2.60

--0__=08BBE4EEDFE838948f9e8a93df938690918c08BBE4EEDFE83894
Content-type: text/plain; charset=US-ASCII





See comments bellow.

Wu Zheng
wzheng@us.ibm.com
Phone: (512) 838-0558    T/L: 678-0558
11400 Burnet Road,  Austin, TX 78758


nfsv4-admin@ietf.org wrote on 04/16/2004 12:18:03 PM:

> Sorry for the long-delayed response!
>
> On Tue, Mar 30, 2004 at 10:36:35AM -0700, Wu Zheng wrote:
> > The following attachment is a list of ACL related issues which are
studied
> > and discussed at Connectathon.
>
> In future, could you just send this sort of thing as plain text in the
> body of an email rather than as an html attachment?  That would make it
> easier to respond to and discuss on a mailing list.

Will do

>
> A few comments:
>
> > Any ACL changes on a directory will only affect the
> > ACL of its offspring that are created after the acl changes. When a
child
> > file or directory is created, it inherits its ACL from its parent.
After
> > the creation, the child's ACL and parent's ACL are independent from
each
> > other. Altering one will not effect the other.
>
> My impression is that some implementors are going to propagate changes
> immediately.  Based on previous discussions on the list, I believe the
> concensus is to allow either behavior.

AIX and Netapps (Saadia) feel that it is preferable not to propagate the
changes.
Some vendors may choose to propagate the changes because of limitations in
their
implementation. We can identify who has implemented which option at the
next
Bakethon and document it.

>
> > File owner always has the right to read and write ACL even when ACL
denies
> > file owner permssion to read/write ACL.
>
> Following the principal that "in all cases ...  the server must not
> accept ACLs that appear to make the file more secure than it really
> is",  I think the way to enforce this is to return NFS4ERR_ATTRNOTSUPP
> (or NFS4ERR_INVAL?) to setattrs with ACLs that don't permit the owner to
> modify the ACL, rather than silently allowing such modifications.
>

What you are suggesting will be hard to implement (but not impossible).
We need to consider ACEs for all the groups that OWNER belongs to.
We need to consider the ACEs for EVERYONE@. We need to consider the
case the read/write acl permissions are unspecified (deny by default).
After considering all that and the ACL passes the test, when OWNER@ joins a
new group, or when the file OWNER changes, the OWNER may no longer have
read/write acl permission according to the file's ACL. In that case,
we still need to decide if OWNER has permission to read and write ACL when
the file's ACL does not grant the permission.



> > Relationship between ACE4_DELETE and ACE4_DELETE_CHILD
> > There are two permission mask bits which control
> > the deletion of the a file and directory. One is the ACE4_DELETE_CHILD
> > bit in the parent directory's ACL. The other one is the ACE4_DELETE bit
> > in the ACL of the file to be deleted. There are two interpretations of
> > the relationship between the two bits.
> > A) A file/directory can be removed only if the
> > process has both ACE4_DELETE_CHILD and ACE4_DELETE permissions.
> > B) ACE4_DELETE overrides ACE4_DELETE_CHILD. When
> > an ACL explicitly specifies ACE4_DELETE in ALLOW ACE(s) or DENY ACE(s),
> > ACE4_DELETE take precedence over ACE4_DELETE_CHILD. If ACE4_DELETE
> is unspecified,
> > then ACE4_DELETE_CHILD defines the permission. In the case both are not
> > specified, deny is the default.
> > AIX currently implements A). Hummingbird currently
> > implements B). Netapp will implement B).
>
> This disagreement makes accurate POSIX<->NFSv4 ACL mapping, and, for
> that matter, mode bit/ACL synchronization, impossible.  If a client
> supporting POSIX ACLs wishes to set an accurate ACL on a server using
> (A), then POSIX mapped ACLs must always explicitly allow ACE4_DELETE.
> If the server uses (B), then the client must never explicitly allow or
> deny ACE4_DELETE.
>
> So it's important to agree on the meaning of ACE4_DELETE.  I'm inclined
> to take something like option (B), since Sergey Klyushin has told me
> that this is what windows does, and because I don't think any other
> platform has an established use for the DELETE bit.  (Someone correct me
> if I'm wrong.)
>
> Actually from the point of view of a POSIX ACL user, it'd still be OK
> for a server to do (A), as long as it defaulted to granting DELETE
> permissions when they aren't explicitly allowed or denied in an ACL.
>
> In general I think it makes the most sense for POSIX ACL users to never
> explicitly allow or deny mode bits that they can't interpret (like
> DELETE or SYNCHRONIZE).

I understand your concern. we (AIX) need some time to think this over.
Meanwhile, I think it is good to document our behavior and make it known.


>
> > Mode to NFS4 ACL mapping algorithm
> > The follow is the mode bits to ACL mapping algorithm
> > used by AIX. Similar algorithm is being discussed among
> connectathon attendees.
> > OWNER@ always allow:
> > ACE4_WRITE_ACL | ACE4_WRITE_ATTRIBUTES | ACE4_WRITE_NAMED_ATTRIBUTES
> > | ACE4_READ_ACL | ACE4_READ_ATTRIBUTES |
> ACE4_READ_NAMED_ATTRIBUTES | ACE4_DELETE
> > GROUP@ and EVERYONE@ always allow:
> > ACE4_READ_ACL | ACE4_READ_ATTRIBUTES | ACE4_READ_NAMED_ATTRIBUTES
> | ACE4_DELETE
>
> Note that on a server taking interpretation (B) for the DELETE bit, this
> would have the unintended consequence of allowing unlinks of files
> without write permissions on the parent directory.
>
> The NFSv4<->POSIX ACL draft requires that the NAMED_ATTRIBUTES bits be
> determined by the read and write bits, just because that appears to be
> the way Linux filesystems do it.  Why are you doing it this way instead?

You are right. We remapped the ACE4_WRITE_NAMED_ATTRIBUTES to write
permission and ACE4_READ_NAMED_ATTRIBUTES to read permission. Users will
have ACE4_WRITE_NAMED_ATTRIBUTES and ACE4_READ_NAMED_ATTRIBUTES permissions
when they have read and write permissions.

>
> > When a UNIX server maps mode bit to NFS4 ACL, the
> > ACE4_SYNCHRONIZE permission mask bit should be set for the ALLOW
> > ACEs of OWNER@, GROUP@ and EVERYONE@.
> > The ACE4_SYNCHRONIZE mask bit has no meaning to most
> > UNIX servers. UNIX does not support threads to wait on a file close
event.
> > However, there is a possibility the SYNC behavior can be simulated on a
> > windows client. The ACE4_SYNCHRONIZE permission might mean something to
> > a windows client. Hummingbird developers request that we set the
> > ACE4_SYNCHRONIZE bit in ALLOW ACEs of OWNER@, GROUP@ and EVERYONE@.
>
> Could they explain why?  Would it be sufficient just to never set the
> bit (either in allow or deny aces)?

Unix servers really do not care about the ACE4_SYNCHRONIZE bit. Here we
are trying to accommodate what windows clients need. In AIX implementation,
when a permission is neither allowed nor denied, it is denied by default.
It is likely that the same is true for windows clients. If that is the
case,
and if windows clients want to allow ACE4_SYNCHRONIZE by default, then
we have to set the bit.

>From talking to Sergey Klyushin, I think he wants us to allow
ACE4_SYNCHRONIZE by default.

>
> --b.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www1.ietf.org/mailman/listinfo/nfsv4
--0__=08BBE4EEDFE838948f9e8a93df938690918c08BBE4EEDFE83894
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p>See comments bellow.<br>
<br>
Wu Zheng<br>
wzheng@us.ibm.com<br>
Phone: (512) 838-0558    T/L: 678-0558<br>
11400 Burnet Road,  Austin, TX 78758<br>
<br>
<br>
<tt>nfsv4-admin@ietf.org wrote on 04/16/2004 12:18:03 PM:<br>
<br>
&gt; Sorry for the long-delayed response!<br>
&gt; <br>
&gt; On Tue, Mar 30, 2004 at 10:36:35AM -0700, Wu Zheng wrote:<br>
&gt; &gt; The following attachment is a list of ACL related issues which are studied<br>
&gt; &gt; and discussed at Connectathon.<br>
&gt; <br>
&gt; In future, could you just send this sort of thing as plain text in the<br>
&gt; body of an email rather than as an html attachment? &nbsp;That would make it<br>
&gt; easier to respond to and discuss on a mailing list.<br>
</tt><br>
<tt>Will do</tt><br>
<br>
<tt>&gt; <br>
&gt; A few comments:<br>
&gt; <br>
&gt; &gt; Any ACL changes on a directory will only affect the<br>
&gt; &gt; ACL of its offspring that are created after the acl changes. When a child<br>
&gt; &gt; file or directory is created, it inherits its ACL from its parent. After<br>
&gt; &gt; the creation, the child's ACL and parent's ACL are independent from each<br>
&gt; &gt; other. Altering one will not effect the other.<br>
&gt; <br>
&gt; My impression is that some implementors are going to propagate changes<br>
&gt; immediately. &nbsp;Based on previous discussions on the list, I believe the<br>
&gt; concensus is to allow either behavior.<br>
</tt><br>
<tt>AIX and Netapps (Saadia) feel that it is preferable not to propagate the changes.</tt><br>
<tt>Some vendors may choose to propagate the changes because of limitations in their </tt><br>
<tt>implementation. We can identify who has implemented which option at the next</tt><br>
<tt>Bakethon and document it.</tt><br>
<br>
<tt>&gt; <br>
&gt; &gt; File owner always has the right to read and write ACL even when ACL denies<br>
&gt; &gt; file owner permssion to read/write ACL.<br>
&gt; <br>
&gt; Following the principal that &quot;in all cases ... &nbsp;the server must not<br>
&gt; accept ACLs that appear to make the file more secure than it really<br>
&gt; is&quot;, &nbsp;I think the way to enforce this is to return NFS4ERR_ATTRNOTSUPP<br>
&gt; (or NFS4ERR_INVAL?) to setattrs with ACLs that don't permit the owner to<br>
&gt; modify the ACL, rather than silently allowing such modifications.<br>
&gt; </tt><br>
<br>
<tt>What you are suggesting will be hard to implement (but not impossible).</tt><br>
<tt>We need to consider ACEs for all the groups that OWNER belongs to.</tt><br>
<tt>We need to consider the ACEs for EVERYONE@. We need to consider the </tt><br>
<tt>case the read/write acl permissions are unspecified (deny by default). </tt><br>
<tt>After considering all that and the ACL passes the test, when OWNER@ joins a </tt><br>
<tt>new group, or when the file OWNER changes, the OWNER may no longer have</tt><br>
<tt>read/write acl permission according to the file's ACL. In that case,</tt><br>
<tt>we still need to decide if OWNER has permission to read and write ACL when</tt><br>
<tt>the file's ACL does not grant the permission.</tt><br>
<br>
<br>
<tt><br>
&gt; &gt; Relationship between ACE4_DELETE and ACE4_DELETE_CHILD<br>
&gt; &gt; There are two permission mask bits which control<br>
&gt; &gt; the deletion of the a file and directory. One is the ACE4_DELETE_CHILD<br>
&gt; &gt; bit in the parent directory's ACL. The other one is the ACE4_DELETE bit<br>
&gt; &gt; in the ACL of the file to be deleted. There are two interpretations of<br>
&gt; &gt; the relationship between the two bits.<br>
&gt; &gt; A) A file/directory can be removed only if the<br>
&gt; &gt; process has both ACE4_DELETE_CHILD and ACE4_DELETE permissions.<br>
&gt; &gt; B) ACE4_DELETE overrides ACE4_DELETE_CHILD. When<br>
&gt; &gt; an ACL explicitly specifies ACE4_DELETE in ALLOW ACE(s) or DENY ACE(s),<br>
&gt; &gt; ACE4_DELETE take precedence over ACE4_DELETE_CHILD. If ACE4_DELETE<br>
&gt; is unspecified,<br>
&gt; &gt; then ACE4_DELETE_CHILD defines the permission. In the case both are not<br>
&gt; &gt; specified, deny is the default.<br>
&gt; &gt; AIX currently implements A). Hummingbird currently<br>
&gt; &gt; implements B). Netapp will implement B).<br>
&gt; <br>
&gt; This disagreement makes accurate POSIX&lt;-&gt;NFSv4 ACL mapping, and, for<br>
&gt; that matter, mode bit/ACL synchronization, impossible. &nbsp;If a client<br>
&gt; supporting POSIX ACLs wishes to set an accurate ACL on a server using<br>
&gt; (A), then POSIX mapped ACLs must always explicitly allow ACE4_DELETE.<br>
&gt; If the server uses (B), then the client must never explicitly allow or<br>
&gt; deny ACE4_DELETE.<br>
&gt; <br>
&gt; So it's important to agree on the meaning of ACE4_DELETE. &nbsp;I'm inclined<br>
&gt; to take something like option (B), since Sergey Klyushin has told me<br>
&gt; that this is what windows does, and because I don't think any other<br>
&gt; platform has an established use for the DELETE bit. &nbsp;(Someone correct me<br>
&gt; if I'm wrong.)<br>
&gt; <br>
&gt; Actually from the point of view of a POSIX ACL user, it'd still be OK<br>
&gt; for a server to do (A), as long as it defaulted to granting DELETE<br>
&gt; permissions when they aren't explicitly allowed or denied in an ACL.<br>
&gt; <br>
&gt; In general I think it makes the most sense for POSIX ACL users to never<br>
&gt; explicitly allow or deny mode bits that they can't interpret (like<br>
&gt; DELETE or SYNCHRONIZE).<br>
</tt><br>
<tt>I understand your concern. we (AIX) need some time to think this over. </tt><br>
<tt>Meanwhile, I think it is good to document our behavior and make it known.</tt><br>
<br>
<br>
<tt>&gt; <br>
&gt; &gt; Mode to NFS4 ACL mapping algorithm<br>
&gt; &gt; The follow is the mode bits to ACL mapping algorithm<br>
&gt; &gt; used by AIX. Similar algorithm is being discussed among <br>
&gt; connectathon attendees.<br>
&gt; &gt; OWNER@ always allow:<br>
&gt; &gt; ACE4_WRITE_ACL | ACE4_WRITE_ATTRIBUTES | ACE4_WRITE_NAMED_ATTRIBUTES<br>
&gt; &gt; | ACE4_READ_ACL | ACE4_READ_ATTRIBUTES | <br>
&gt; ACE4_READ_NAMED_ATTRIBUTES | ACE4_DELETE<br>
&gt; &gt; GROUP@ and EVERYONE@ always allow:<br>
&gt; &gt; ACE4_READ_ACL | ACE4_READ_ATTRIBUTES | ACE4_READ_NAMED_ATTRIBUTES <br>
&gt; | ACE4_DELETE<br>
&gt; <br>
&gt; Note that on a server taking interpretation (B) for the DELETE bit, this<br>
&gt; would have the unintended consequence of allowing unlinks of files<br>
&gt; without write permissions on the parent directory.<br>
&gt; <br>
&gt; The NFSv4&lt;-&gt;POSIX ACL draft requires that the NAMED_ATTRIBUTES bits be<br>
&gt; determined by the read and write bits, just because that appears to be<br>
&gt; the way Linux filesystems do it. &nbsp;Why are you doing it this way instead?</tt><br>
<br>
<tt>You are right. We remapped the ACE4_WRITE_NAMED_ATTRIBUTES to write </tt><br>
<tt>permission and ACE4_READ_NAMED_ATTRIBUTES to read permission. Users will</tt><br>
<tt>have ACE4_WRITE_NAMED_ATTRIBUTES and ACE4_READ_NAMED_ATTRIBUTES permissions</tt><br>
<tt>when they have read and write permissions.</tt><br>
<tt><br>
&gt; <br>
&gt; &gt; When a UNIX server maps mode bit to NFS4 ACL, the<br>
&gt; &gt; ACE4_SYNCHRONIZE permission mask bit should be set for the ALLOW<br>
&gt; &gt; ACEs of OWNER@, GROUP@ and EVERYONE@.<br>
&gt; &gt; The ACE4_SYNCHRONIZE mask bit has no meaning to most<br>
&gt; &gt; UNIX servers. UNIX does not support threads to wait on a file close event.<br>
&gt; &gt; However, there is a possibility the SYNC behavior can be simulated on a<br>
&gt; &gt; windows client. The ACE4_SYNCHRONIZE permission might mean something to<br>
&gt; &gt; a windows client. Hummingbird developers request that we set the<br>
&gt; &gt; ACE4_SYNCHRONIZE bit in ALLOW ACEs of OWNER@, GROUP@ and EVERYONE@.<br>
&gt; <br>
&gt; Could they explain why? &nbsp;Would it be sufficient just to never set the<br>
&gt; bit (either in allow or deny aces)?</tt><br>
<br>
<tt>Unix servers really do not care about the ACE4_SYNCHRONIZE bit. Here we</tt><br>
<tt>are trying to accommodate what windows clients need. In AIX implementation,</tt><br>
<tt>when a permission is neither allowed nor denied, it is denied by default.</tt><br>
<tt>It is likely that the same is true for windows clients. If that is the case,</tt><br>
<tt>and if windows clients want to allow ACE4_SYNCHRONIZE by default, then </tt><br>
<tt>we have to set the bit. </tt><br>
<br>
<tt>From talking to Sergey Klyushin, I think he wants us to allow </tt><br>
<tt>ACE4_SYNCHRONIZE by default.</tt><br>
<tt><br>
&gt; <br>
&gt; --b.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; nfsv4@ietf.org<br>
&gt; <a href="https://www1.ietf.org/mailman/listinfo/nfsv4">https://www1.ietf.org/mailman/listinfo/nfsv4</a><br>
</tt></body></html>
--0__=08BBE4EEDFE838948f9e8a93df938690918c08BBE4EEDFE83894--


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



From exim@www1.ietf.org  Wed Apr 21 20:17:26 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA03656
	for <nfsv4-archive@odin.ietf.org>; Wed, 21 Apr 2004 20:17:26 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGRoU-0007Jh-LY
	for nfsv4-archive@odin.ietf.org; Wed, 21 Apr 2004 20:11:34 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3M0BYcr028121
	for nfsv4-archive@odin.ietf.org; Wed, 21 Apr 2004 20:11:34 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGRbh-0007tM-8v
	for nfsv4-web-archive@optimus.ietf.org; Wed, 21 Apr 2004 19:58:21 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA02389
	for <nfsv4-web-archive@ietf.org>; Wed, 21 Apr 2004 19:58:19 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BGRbf-0004v9-DC
	for nfsv4-web-archive@ietf.org; Wed, 21 Apr 2004 19:58:19 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BGRak-0004kg-00
	for nfsv4-web-archive@ietf.org; Wed, 21 Apr 2004 19:57:23 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BGRZt-0004Zx-00
	for nfsv4-web-archive@ietf.org; Wed, 21 Apr 2004 19:56:29 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGROo-0002nE-Dt; Wed, 21 Apr 2004 19:45:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BGRHK-0005v7-Bs
	for nfsv4@optimus.ietf.org; Wed, 21 Apr 2004 19:37:22 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA00849
	for <nfsv4@ietf.org>; Wed, 21 Apr 2004 19:37:16 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BGRHI-0000eg-L9
	for nfsv4@ietf.org; Wed, 21 Apr 2004 19:37:16 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BGRGK-0000So-00
	for nfsv4@ietf.org; Wed, 21 Apr 2004 19:36:17 -0400
Received: from dsl093-002-214.det1.dsl.speakeasy.net
	([66.93.2.214] helo=pumpkin.fieldses.org ident=Debian-exim)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BGRFM-0000BJ-00
	for nfsv4@ietf.org; Wed, 21 Apr 2004 19:35:16 -0400
Received: from bfields by pumpkin.fieldses.org with local (Exim 4.32)
	id 1BGRFE-0002UZ-R4; Wed, 21 Apr 2004 19:35:08 -0400
To: Wu Zheng <wzheng@us.ibm.com>
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] Connectathon2004, ACL report
Message-ID: <20040421233508.GB7859@fieldses.org>
References: <20040416171802.GC10015@fieldses.org> <OF95C03474.8A74AE9E-ON87256E7D.007BBE04-86256E7D.007C992D@us.ibm.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <OF95C03474.8A74AE9E-ON87256E7D.007BBE04-86256E7D.007C992D@us.ibm.com>
User-Agent: Mutt/1.5.5.1+cvs20040105i
From: "J. Bruce Fields" <bfields@fieldses.org>
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Wed, 21 Apr 2004 19:35:08 -0400
Date: Wed, 21 Apr 2004 19:35:08 -0400
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60

On Wed, Apr 21, 2004 at 05:38:44PM -0500, Wu Zheng wrote:
> > > File owner always has the right to read and write ACL even when ACL
> > > denies file owner permssion to read/write ACL.
> >
> > Following the principal that "in all cases ...  the server must not
> > accept ACLs that appear to make the file more secure than it really
> > is",  I think the way to enforce this is to return NFS4ERR_ATTRNOTSUPP
> > (or NFS4ERR_INVAL?) to setattrs with ACLs that don't permit the owner to
> > modify the ACL, rather than silently allowing such modifications.
> 
> What you are suggesting will be hard to implement (but not impossible).
> We need to consider ACEs for all the groups that OWNER belongs to.
> We need to consider the ACEs for EVERYONE@. We need to consider the
> case the read/write acl permissions are unspecified (deny by default).

I agree, that would be a mess.

All I'd consider would be a simple check for whether there is an OWNER@
ACE which allows the WRITE_ACL bit, and which precedes any ace that
denies that bit.

Or maybe, for the sake of clients that don't use OWNER@, you could also
consider an acl acceptable if the acl permits some named user to write
acls.  That way there would still be someone could always delete the
file, even if not the owner.  But again you'd want to insist that this
be done by an ace that isn't preceded by any aces denying the WRITE_ACL
bit; otherwise a change in group membership or change of the owner might
later end up causing a problem.

> > > A) A file/directory can be removed only if the
> > > process has both ACE4_DELETE_CHILD and ACE4_DELETE permissions.
> > > B) ACE4_DELETE overrides ACE4_DELETE_CHILD. When
> > > an ACL explicitly specifies ACE4_DELETE in ALLOW ACE(s) or DENY ACE(s),
> > > ACE4_DELETE take precedence over ACE4_DELETE_CHILD. If ACE4_DELETE
> > > is unspecified,
> > > then ACE4_DELETE_CHILD defines the permission. In the case both are not
> > > specified, deny is the default.
> > > AIX currently implements A). Hummingbird currently
> > > implements B). Netapp will implement B).
> >
> > This disagreement makes accurate POSIX<->NFSv4 ACL mapping, and, for
> > that matter, mode bit/ACL synchronization, impossible.  If a client
> > supporting POSIX ACLs wishes to set an accurate ACL on a server using
> > (A), then POSIX mapped ACLs must always explicitly allow ACE4_DELETE.
> > If the server uses (B), then the client must never explicitly allow or
> > deny ACE4_DELETE.
....
> I understand your concern. we (AIX) need some time to think this over.
> Meanwhile, I think it is good to document our behavior and make it known.

We do need to come to some agreement on this soon.  I think this might
be the only thing holding up the ability to handle mode-bit and
posix-acl mapping in a completely interoperable way.

> You are right. We remapped the ACE4_WRITE_NAMED_ATTRIBUTES to write
> permission and ACE4_READ_NAMED_ATTRIBUTES to read permission. Users will
> have ACE4_WRITE_NAMED_ATTRIBUTES and ACE4_READ_NAMED_ATTRIBUTES permissions
> when they have read and write permissions.

Oh good, I'm glad everyone seems to agree here.

Thanks for following up on this!--b.

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



From exim@www1.ietf.org  Fri Apr 23 17:16:43 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA12718
	for <nfsv4-archive@odin.ietf.org>; Fri, 23 Apr 2004 17:16:43 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BH7rI-00077x-5O
	for nfsv4-archive@odin.ietf.org; Fri, 23 Apr 2004 17:05:16 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3NL5GxW027386
	for nfsv4-archive@odin.ietf.org; Fri, 23 Apr 2004 17:05:16 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BH7SY-00045m-6i
	for nfsv4-web-archive@optimus.ietf.org; Fri, 23 Apr 2004 16:39:42 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA09769
	for <nfsv4-web-archive@ietf.org>; Fri, 23 Apr 2004 16:39:38 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BH7SW-0001EB-6q
	for nfsv4-web-archive@ietf.org; Fri, 23 Apr 2004 16:39:40 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BH7Re-0000vi-00
	for nfsv4-web-archive@ietf.org; Fri, 23 Apr 2004 16:38:48 -0400
Received: from [65.246.255.50] (helo=mx2.foretec.com)
	by ietf-mx with esmtp (Exim 4.12)
	id 1BH7Qn-0000d7-00
	for nfsv4-web-archive@ietf.org; Fri, 23 Apr 2004 16:37:53 -0400
Received: from optimus22.ietf.org ([132.151.6.22] helo=optimus.ietf.org)
	by mx2.foretec.com with esmtp (Exim 4.24)
	id 1BH7Ql-0007t9-Fr
	for nfsv4-web-archive@ietf.org; Fri, 23 Apr 2004 16:37:52 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BH6da-00057g-8G; Fri, 23 Apr 2004 15:47:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BH6a0-0003ZO-N3
	for nfsv4@optimus.ietf.org; Fri, 23 Apr 2004 15:43:20 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA04740
	for <nfsv4@ietf.org>; Fri, 23 Apr 2004 15:43:17 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BH6Zz-0007Cd-6O
	for nfsv4@ietf.org; Fri, 23 Apr 2004 15:43:19 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BH6Ys-0006fK-00
	for nfsv4@ietf.org; Fri, 23 Apr 2004 15:42:12 -0400
Received: from e31.co.us.ibm.com ([32.97.110.129])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BH6Wn-0005ye-00; Fri, 23 Apr 2004 15:40:01 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e31.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3NJcvpj092050;
	Fri, 23 Apr 2004 15:38:57 -0400
Received: from d03nm124.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3NJcub2354030;
	Fri, 23 Apr 2004 13:38:56 -0600
In-Reply-To: <20040421233508.GB7859@fieldses.org>
Subject: Re: [nfsv4] Connectathon2004, ACL report
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: nfsv4@ietf.org, nfsv4-admin@ietf.org, Niteesh Dubey <niteesh@us.ibm.com>,
        Ravi A Shankar <shanravi@us.ibm.com>, Xinya Wang <xinya@us.ibm.com>,
        Brian Dixon <dixonbp@us.ibm.com>
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF1C41DAD6.4BBD4AD1-ON87256E7F.006964DB-86256E7F.006C21F6@us.ibm.com>
From: Wu Zheng <wzheng@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM124/03/M/IBM(Release 6.0.2CF2HF168 | December 5, 2003) at
 04/23/2004 13:38:55
MIME-Version: 1.0
Content-type: multipart/alternative; 
	Boundary="0__=08BBE4ECDFFAE24B8f9e8a93df938690918c08BBE4ECDFFAE24B"
Content-Disposition: inline
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Fri, 23 Apr 2004 14:38:54 -0500
Date: Fri, 23 Apr 2004 14:38:54 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,HTML_MESSAGE autolearn=no 
	version=2.60

--0__=08BBE4ECDFFAE24B8f9e8a93df938690918c08BBE4ECDFFAE24B
Content-type: text/plain; charset=US-ASCII







nfsv4-admin@ietf.org wrote on 04/21/2004 06:35:08 PM:

> On Wed, Apr 21, 2004 at 05:38:44PM -0500, Wu Zheng wrote:
> > > > File owner always has the right to read and write ACL even when ACL
> > > > denies file owner permssion to read/write ACL.
> > >
> > > Following the principal that "in all cases ...  the server must not
> > > accept ACLs that appear to make the file more secure than it really
> > > is",  I think the way to enforce this is to return
NFS4ERR_ATTRNOTSUPP
> > > (or NFS4ERR_INVAL?) to setattrs with ACLs that don't permit the owner
to
> > > modify the ACL, rather than silently allowing such modifications.
> >
> > What you are suggesting will be hard to implement (but not impossible).
> > We need to consider ACEs for all the groups that OWNER belongs to.
> > We need to consider the ACEs for EVERYONE@. We need to consider the
> > case the read/write acl permissions are unspecified (deny by default).
>
> I agree, that would be a mess.
>
> All I'd consider would be a simple check for whether there is an OWNER@
> ACE which allows the WRITE_ACL bit, and which precedes any ace that
> denies that bit.

Very interesting approach. I have to say this one is simple and does make
sure owner always has permission to read and write acl. But it requires
that a user always specify an ace which allows owner to read/write acl.
As a result, users may be trained to always start an acl with the ACE
"allow OWNER@ read/write acl."

An average user is likely to use the following acl with one ace.
    allow EVERYONE@ read data, read named attribute, read attribute, read
acl.
The user will be frustrated when it is rejected as an invalid acl with very
little
information about why.

I hope that we agree that at access checking time, owner always has
permission
to read/write acl. The question is that when we store an acl, do we check
if the
acl allows owner to read/write acl and what kind of check is done.

Right now, I have see three options:
A) allow the file owner to read/write acl silently. Put no restriction on
acl.
B) Put a restriction on ACL to gurentee OWNER@ always has the permission to
read/write acl. For example: 1) "check for whether there is an OWNER@ ACE
which allows the WRITE_ACL bit, and which precedes any ace that
denies that bit."
C) limited check is done to reject some invalid acls. This checking does
not
have to reject all the acls which deny owner's right to read/write acl.
It may even reject some acl which allows owner's right to read/write acl.
Each vendor may have a different algorithm.

AIX (jfs2 and GPFS file system) is currently trying to implement C).
The algorithm is that an acl is rejected when there is an ace which denies
OWNER@
permission to read/write acl. To keep it simple, the order of aces are not
considered. An acl may have an ace which denies the permission after an ace
which allows the permission. As a result of the algorithm, such acl is
rejected even though it does allow owner to read acl. This algorithm
is a compromise between trying to be right and practical.

Personally I like A), because it is consistent and simple for users and
developers.
But I understand that B) conforms to the protocol and C)is attempted and
maybe
preferred by some people.

It is hard to make everyone do the same thing. But it is good to put
options
on the table and document who is doing what. If I attend Bakecthon, I will
update my document to describe the options in detail and write down each
vendor's approach.

>
> Or maybe, for the sake of clients that don't use OWNER@, you could also
> consider an acl acceptable if the acl permits some named user to write
> acls.  That way there would still be someone could always delete the
> file, even if not the owner.  But again you'd want to insist that this
> be done by an ace that isn't preceded by any aces denying the WRITE_ACL
> bit; otherwise a change in group membership or change of the owner might
> later end up causing a problem.

Agree. When a client does not use OWNER@, chown becomes a problem.
By the way, root always has the permission for all operations.

>
> > > > A) A file/directory can be removed only if the
> > > > process has both ACE4_DELETE_CHILD and ACE4_DELETE permissions.
> > > > B) ACE4_DELETE overrides ACE4_DELETE_CHILD. When
> > > > an ACL explicitly specifies ACE4_DELETE in ALLOW ACE(s) or DENY
ACE(s),
> > > > ACE4_DELETE take precedence over ACE4_DELETE_CHILD. If ACE4_DELETE
> > > > is unspecified,
> > > > then ACE4_DELETE_CHILD defines the permission. In the case both are
not
> > > > specified, deny is the default.
> > > > AIX currently implements A). Hummingbird currently
> > > > implements B). Netapp will implement B).
> > >
> > > This disagreement makes accurate POSIX<->NFSv4 ACL mapping, and, for
> > > that matter, mode bit/ACL synchronization, impossible.  If a client
> > > supporting POSIX ACLs wishes to set an accurate ACL on a server using
> > > (A), then POSIX mapped ACLs must always explicitly allow ACE4_DELETE.
> > > If the server uses (B), then the client must never explicitly allow
or
> > > deny ACE4_DELETE.
> ....
> > I understand your concern. we (AIX) need some time to think this over.
> > Meanwhile, I think it is good to document our behavior and make it
known.
>
> We do need to come to some agreement on this soon.  I think this might
> be the only thing holding up the ability to handle mode-bit and
> posix-acl mapping in a completely interoperable way.
>

I will try to follow up on this issue. But it will be sometime before I can
get back to you.

> > You are right. We remapped the ACE4_WRITE_NAMED_ATTRIBUTES to write
> > permission and ACE4_READ_NAMED_ATTRIBUTES to read permission. Users
will
> > have ACE4_WRITE_NAMED_ATTRIBUTES and ACE4_READ_NAMED_ATTRIBUTES
permissions
> > when they have read and write permissions.
>
> Oh good, I'm glad everyone seems to agree here.
>
> Thanks for following up on this!--b.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www1.ietf.org/mailman/listinfo/nfsv4

Wu Zheng
--0__=08BBE4ECDFFAE24B8f9e8a93df938690918c08BBE4ECDFFAE24B
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline

<html><body>
<p><tt>nfsv4-admin@ietf.org wrote on 04/21/2004 06:35:08 PM:<br>
<br>
&gt; On Wed, Apr 21, 2004 at 05:38:44PM -0500, Wu Zheng wrote:<br>
&gt; &gt; &gt; &gt; File owner always has the right to read and write ACL even when ACL<br>
&gt; &gt; &gt; &gt; denies file owner permssion to read/write ACL.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Following the principal that &quot;in all cases ... &nbsp;the server must not<br>
&gt; &gt; &gt; accept ACLs that appear to make the file more secure than it really<br>
&gt; &gt; &gt; is&quot;, &nbsp;I think the way to enforce this is to return NFS4ERR_ATTRNOTSUPP<br>
&gt; &gt; &gt; (or NFS4ERR_INVAL?) to setattrs with ACLs that don't permit the owner to<br>
&gt; &gt; &gt; modify the ACL, rather than silently allowing such modifications.<br>
&gt; &gt; <br>
&gt; &gt; What you are suggesting will be hard to implement (but not impossible).<br>
&gt; &gt; We need to consider ACEs for all the groups that OWNER belongs to.<br>
&gt; &gt; We need to consider the ACEs for EVERYONE@. We need to consider the<br>
&gt; &gt; case the read/write acl permissions are unspecified (deny by default).<br>
&gt; <br>
&gt; I agree, that would be a mess.<br>
&gt; <br>
&gt; All I'd consider would be a simple check for whether there is an OWNER@<br>
&gt; ACE which allows the WRITE_ACL bit, and which precedes any ace that<br>
&gt; denies that bit.</tt><br>
<br>
<tt>Very interesting approach. I have to say this one is simple and does make </tt><br>
<tt>sure owner always has permission to read and write acl. But it requires </tt><br>
<tt>that a user always specify an ace which allows owner to read/write acl. </tt><br>
<tt>As a result, users may be trained to always start an acl with the ACE </tt><br>
<tt>&quot;allow OWNER@ read/write acl.&quot;</tt><br>
<br>
<tt>An average user is likely to use the following acl with one ace.</tt><br>
<tt> &nbsp; &nbsp;allow EVERYONE@ read data, read named attribute, read attribute, read acl.</tt><br>
<tt>The user will be frustrated when it is rejected as an invalid acl with very little </tt><br>
<tt>information about why.</tt><br>
<br>
<tt>I hope that we agree that at access checking time, owner always has permission</tt><br>
<tt>to read/write acl. The question is that when we store an acl, do we check if the</tt><br>
<tt>acl allows owner to read/write acl and what kind of check is done.</tt><br>
<br>
<tt>Right now, I have see three options:</tt><br>
<tt>A) allow the file owner to read/write acl silently. Put no restriction on acl.</tt><br>
<tt>B) Put a restriction on ACL to gurentee OWNER@ always has the permission to</tt><br>
<tt>read/write acl. For example: 1) &quot;check for whether there is an OWNER@ ACE </tt><br>
<tt>which allows the WRITE_ACL bit, and which precedes any ace that<br>
denies that bit.&quot; </tt><br>
<tt>C) limited check is done to reject some invalid acls. This checking does not</tt><br>
<tt>have to reject all the acls which deny owner's right to read/write acl.</tt><br>
<tt>It may even reject some acl which allows owner's right to read/write acl.</tt><br>
<tt>Each vendor may have a different algorithm.</tt><br>
<br>
<tt>AIX (jfs2 and GPFS file system) is currently trying to implement C). </tt><br>
<tt>The algorithm is that an acl is rejected when there is an ace which denies OWNER@ </tt><br>
<tt>permission to read/write acl. To keep it simple, the order of aces are not </tt><br>
<tt>considered. An acl may have an ace which denies the permission after an ace </tt><br>
<tt>which allows the permission. As a result of the algorithm, such acl is </tt><br>
<tt>rejected even though it does allow owner to read acl. This algorithm</tt><br>
<tt>is a compromise between trying to be right and practical.</tt><br>
<br>
<tt>Personally I like A), because it is consistent and simple for users and developers. </tt><br>
<tt>But I understand that B) conforms to the protocol and C)is attempted and maybe </tt><br>
<tt>preferred by some people. </tt><br>
<br>
<tt>It is hard to make everyone do the same thing. But it is good to put options</tt><br>
<tt>on the table and document who is doing what. If I attend Bakecthon, I will </tt><br>
<tt>update my document to describe the options in detail and write down each </tt><br>
<tt>vendor's approach.</tt><br>
<tt><br>
&gt; <br>
&gt; Or maybe, for the sake of clients that don't use OWNER@, you could also<br>
&gt; consider an acl acceptable if the acl permits some named user to write<br>
&gt; acls. &nbsp;That way there would still be someone could always delete the<br>
&gt; file, even if not the owner. &nbsp;But again you'd want to insist that this<br>
&gt; be done by an ace that isn't preceded by any aces denying the WRITE_ACL<br>
&gt; bit; otherwise a change in group membership or change of the owner might<br>
&gt; later end up causing a problem.</tt><br>
<br>
<tt>Agree. When a client does not use OWNER@, chown becomes a problem.</tt><br>
<tt>By the way, root always has the permission for all operations.</tt><br>
<tt><br>
&gt; <br>
&gt; &gt; &gt; &gt; A) A file/directory can be removed only if the<br>
&gt; &gt; &gt; &gt; process has both ACE4_DELETE_CHILD and ACE4_DELETE permissions.<br>
&gt; &gt; &gt; &gt; B) ACE4_DELETE overrides ACE4_DELETE_CHILD. When<br>
&gt; &gt; &gt; &gt; an ACL explicitly specifies ACE4_DELETE in ALLOW ACE(s) or DENY ACE(s),<br>
&gt; &gt; &gt; &gt; ACE4_DELETE take precedence over ACE4_DELETE_CHILD. If ACE4_DELETE<br>
&gt; &gt; &gt; &gt; is unspecified,<br>
&gt; &gt; &gt; &gt; then ACE4_DELETE_CHILD defines the permission. In the case both are not<br>
&gt; &gt; &gt; &gt; specified, deny is the default.<br>
&gt; &gt; &gt; &gt; AIX currently implements A). Hummingbird currently<br>
&gt; &gt; &gt; &gt; implements B). Netapp will implement B).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; This disagreement makes accurate POSIX&lt;-&gt;NFSv4 ACL mapping, and, for<br>
&gt; &gt; &gt; that matter, mode bit/ACL synchronization, impossible. &nbsp;If a client<br>
&gt; &gt; &gt; supporting POSIX ACLs wishes to set an accurate ACL on a server using<br>
&gt; &gt; &gt; (A), then POSIX mapped ACLs must always explicitly allow ACE4_DELETE.<br>
&gt; &gt; &gt; If the server uses (B), then the client must never explicitly allow or<br>
&gt; &gt; &gt; deny ACE4_DELETE.<br>
&gt; ....<br>
&gt; &gt; I understand your concern. we (AIX) need some time to think this over.<br>
&gt; &gt; Meanwhile, I think it is good to document our behavior and make it known.<br>
&gt; <br>
&gt; We do need to come to some agreement on this soon. &nbsp;I think this might<br>
&gt; be the only thing holding up the ability to handle mode-bit and<br>
&gt; posix-acl mapping in a completely interoperable way.<br>
&gt; </tt><br>
<br>
<tt>I will try to follow up on this issue. But it will be sometime before I can </tt><br>
<tt>get back to you.</tt><br>
<tt><br>
&gt; &gt; You are right. We remapped the ACE4_WRITE_NAMED_ATTRIBUTES to write<br>
&gt; &gt; permission and ACE4_READ_NAMED_ATTRIBUTES to read permission. Users will<br>
&gt; &gt; have ACE4_WRITE_NAMED_ATTRIBUTES and ACE4_READ_NAMED_ATTRIBUTES permissions<br>
&gt; &gt; when they have read and write permissions.<br>
&gt; <br>
&gt; Oh good, I'm glad everyone seems to agree here.<br>
&gt; <br>
&gt; Thanks for following up on this!--b.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; nfsv4 mailing list<br>
&gt; nfsv4@ietf.org<br>
&gt; <a href="https://www1.ietf.org/mailman/listinfo/nfsv4">https://www1.ietf.org/mailman/listinfo/nfsv4</a></tt><br>
<tt><br>
</tt>Wu Zheng<br>
</body></html>
--0__=08BBE4ECDFFAE24B8f9e8a93df938690918c08BBE4ECDFFAE24B--


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



From exim@www1.ietf.org  Tue Apr 27 09:50:15 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA01169
	for <nfsv4-archive@odin.ietf.org>; Tue, 27 Apr 2004 09:50:14 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BISuj-0004li-AV
	for nfsv4-archive@odin.ietf.org; Tue, 27 Apr 2004 09:46:21 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3RDkLL2018330
	for nfsv4-archive@odin.ietf.org; Tue, 27 Apr 2004 09:46:21 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BISsU-0004Jl-QE
	for nfsv4-web-archive@optimus.ietf.org; Tue, 27 Apr 2004 09:44:02 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA00761
	for <nfsv4-web-archive@ietf.org>; Tue, 27 Apr 2004 09:43:57 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BISsO-0000Ge-U8
	for nfsv4-web-archive@ietf.org; Tue, 27 Apr 2004 09:43:57 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BISrV-0000En-00
	for nfsv4-web-archive@ietf.org; Tue, 27 Apr 2004 09:43:02 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BISqj-0000CX-00
	for nfsv4-web-archive@ietf.org; Tue, 27 Apr 2004 09:42:13 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BISjm-0002Zu-Dp; Tue, 27 Apr 2004 09:35:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BIScP-0001XG-5p
	for nfsv4@optimus.ietf.org; Tue, 27 Apr 2004 09:27:25 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA29770
	for <nfsv4@ietf.org>; Tue, 27 Apr 2004 09:27:20 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BIScJ-0006nM-DH
	for nfsv4@ietf.org; Tue, 27 Apr 2004 09:27:19 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BISbL-0006XU-00
	for nfsv4@ietf.org; Tue, 27 Apr 2004 09:26:20 -0400
Received: from e33.co.us.ibm.com ([32.97.110.131])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BISam-0006H7-00
	for nfsv4@ietf.org; Tue, 27 Apr 2004 09:25:44 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11])
	by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i3RDPE87584750
	for <nfsv4@ietf.org>; Tue, 27 Apr 2004 09:25:14 -0400
Received: from d03nm691.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i3RDPDfA348652
	for <nfsv4@ietf.org>; Tue, 27 Apr 2004 07:25:14 -0600
To: nfsv4@ietf.org
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF74A9CB6A.BB6073F6-ON87256E83.004908AA-86256E83.0049B721@us.ibm.com>
From: Paul Mazzurana <pdmazz@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM691/03/M/IBM(Release 6.0.2CF2HF259 | March 11, 2004) at
 04/27/2004 07:25:13,
	Serialize complete at 04/27/2004 07:25:13
Content-Type: multipart/alternative; boundary="=_alternative 0049B71C86256E83_="
Subject: [nfsv4] more server error codes
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 27 Apr 2004 08:25:11 -0500
Date: Tue, 27 Apr 2004 08:25:11 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no 
	version=2.60

This is a multipart message in MIME format.
--=_alternative 0049B71C86256E83_=
Content-Type: text/plain; charset="US-ASCII"

Team,

Rick and I exchanged some emails on which error codes the server should 
return and  he suggested I post to the group.


>From pdmazz:
> 1.  what do you return if a client uses a clientid on an OPEN/LOCKT that
> has not yet been confirmed ? In this case, I am returning 
NFS4ERR_EXPIRED.
>     For some reason I thought this had been covered in the working group
> discussion, but I could not find a reference for it to cross check
> against.

reply from rick:
I return NFS4ERR_EXPIRED as well. It might be a good one to ask on the
mailing list, since I can't really see a good argument for it over some
other error. (I guess you could say that an unconfirmed clientid will
eventually be thrown away by the server, since it can't be renewed until
it has been confirmed and will therefore expire?)
The only reason I chose it was I couldn't see a more appropriate error
return listed for the Ops (like Renew) that get a clientid.

from pdmazz:
> 2. what do you return if a client uses a stateid on a read/write/lock
> operation that has not been confirmed AND the server had indicated that 
it
> needed to be confirmed when it returned the stateid to the client on the
> OPEN call?   In this case, I am returning NFS4ERR_BAD_STATEID.

reply from rick:
Same again, and I think the argument is similar to above. (ie There didn't
seem to be a better error return.) It does make sense to me that an
unconfirmed open stateid shouldn't be used for anything else until a
confirm is done on it and NFS4ERR_BAD_STATEID is the only "invalid 
stateid"
error that doesn't have a specific meaning which doesn't apply to this
case.

Well, at least we are consistently incorrect:-) rick
ps: Basically, NFS4ERR_STALE_CLIENTID, NFS4ERR_STALE_STATEID and
NFS4ERR_OLD_STATEID are for specific cases, which leaves
NFS4ERR_BAD_STATEID and NFS4ERR_EXPIRED as the "catch alls"?

--
Paul D. Mazzurana
--=_alternative 0049B71C86256E83_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Team,</font>
<br>
<br><font size=2 face="sans-serif">Rick and I exchanged some emails on
which error codes the server should return and &nbsp;he suggested I post
to the group.</font>
<br>
<br>
<br><font size=2 face="sans-serif">From pdmazz:</font>
<br><font size=2><tt>&gt; 1. &nbsp;what do you return if a client uses
a clientid on an OPEN/LOCKT that<br>
&gt; has not yet been confirmed ? In this case, I am returning NFS4ERR_EXPIRED.<br>
&gt; &nbsp; &nbsp; For some reason I thought this had been covered in the
working group<br>
&gt; discussion, but I could not find a reference for it to cross check<br>
&gt; against.<br>
</tt></font>
<br><font size=2><tt>reply from rick:</tt></font>
<br><font size=2><tt>I return NFS4ERR_EXPIRED as well. It might be a good
one to ask on the<br>
mailing list, since I can't really see a good argument for it over some<br>
other error. (I guess you could say that an unconfirmed clientid will<br>
eventually be thrown away by the server, since it can't be renewed until<br>
it has been confirmed and will therefore expire?)<br>
The only reason I chose it was I couldn't see a more appropriate error<br>
return listed for the Ops (like Renew) that get a clientid.<br>
</tt></font>
<br><font size=2><tt>from pdmazz:</tt></font>
<br><font size=2><tt>&gt; 2. what do you return if a client uses a stateid
on a read/write/lock<br>
&gt; operation that has not been confirmed AND the server had indicated
that it<br>
&gt; needed to be confirmed when it returned the stateid to the client
on the<br>
&gt; OPEN call? &nbsp; In this case, I am returning NFS4ERR_BAD_STATEID.<br>
</tt></font>
<br><font size=2><tt>reply from rick:</tt></font>
<br><font size=2><tt>Same again, and I think the argument is similar to
above. (ie There didn't<br>
seem to be a better error return.) It does make sense to me that an<br>
unconfirmed open stateid shouldn't be used for anything else until a<br>
confirm is done on it and NFS4ERR_BAD_STATEID is the only &quot;invalid
stateid&quot;<br>
error that doesn't have a specific meaning which doesn't apply to this<br>
case.<br>
</tt></font>
<br><font size=2><tt>Well, at least we are consistently incorrect:-) rick<br>
ps: Basically, NFS4ERR_STALE_CLIENTID, NFS4ERR_STALE_STATEID and</tt></font>
<br><font size=2><tt>NFS4ERR_OLD_STATEID are for specific cases, which
leaves<br>
NFS4ERR_BAD_STATEID and NFS4ERR_EXPIRED as the &quot;catch alls&quot;?</tt></font>
<br>
<br><font size=2><tt>--</tt></font>
<br><font size=2><tt>Paul D. Mazzurana</tt></font>
--=_alternative 0049B71C86256E83_=--

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



From exim@www1.ietf.org  Tue Apr 27 12:02:41 2004
Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA09195
	for <nfsv4-archive@odin.ietf.org>; Tue, 27 Apr 2004 12:02:41 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BIUxt-0002i5-Q0
	for nfsv4-archive@odin.ietf.org; Tue, 27 Apr 2004 11:57:46 -0400
Received: (from exim@localhost)
	by www1.ietf.org (8.12.8/8.12.8/Submit) id i3RFvjdU010412
	for nfsv4-archive@odin.ietf.org; Tue, 27 Apr 2004 11:57:45 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BIUlF-0008CL-HB
	for nfsv4-web-archive@optimus.ietf.org; Tue, 27 Apr 2004 11:44:41 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA08083
	for <nfsv4-web-archive@ietf.org>; Tue, 27 Apr 2004 11:44:38 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BIUlC-0006yH-Ds
	for nfsv4-web-archive@ietf.org; Tue, 27 Apr 2004 11:44:38 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BIUkI-0006oj-00
	for nfsv4-web-archive@ietf.org; Tue, 27 Apr 2004 11:43:43 -0400
Received: from optimus.ietf.org ([132.151.1.19])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BIUiZ-0006Zr-00
	for nfsv4-web-archive@ietf.org; Tue, 27 Apr 2004 11:41:55 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BIUTB-0003D9-Qp; Tue, 27 Apr 2004 11:26:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by optimus.ietf.org with esmtp (Exim 4.20)
	id 1BIUIk-0001ME-BR
	for nfsv4@optimus.ietf.org; Tue, 27 Apr 2004 11:15:14 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA06533
	for <nfsv4@ietf.org>; Tue, 27 Apr 2004 11:15:11 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx)
	by ietf-mx with esmtp (Exim 4.32)
	id 1BIUIh-0004yC-E8
	for nfsv4@ietf.org; Tue, 27 Apr 2004 11:15:11 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12)
	id 1BIUHl-0004u3-00
	for nfsv4@ietf.org; Tue, 27 Apr 2004 11:14:14 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by ietf-mx with esmtp (Exim 4.12)
	id 1BIUHF-0004ph-00
	for nfsv4@ietf.org; Tue, 27 Apr 2004 11:13:41 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i3RFDC6b006921;
	Tue, 27 Apr 2004 08:13:12 -0700 (PDT)
Received: from [129.153.128.28] (this.Central.Sun.COM [129.153.128.28])
	by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i3RFDCsp005575;
	Tue, 27 Apr 2004 08:13:12 -0700 (PDT)
In-Reply-To: <OF74A9CB6A.BB6073F6-ON87256E83.004908AA-86256E83.0049B721@us.ibm.com>
References: <OF74A9CB6A.BB6073F6-ON87256E83.004908AA-86256E83.0049B721@us.ibm.com>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Message-Id: <690E9554-985D-11D8-B9B8-000A95DBCB70@sun.com>
Content-Transfer-Encoding: quoted-printable
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] more server error codes
To: Paul Mazzurana <pdmazz@us.ibm.com>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: quoted-printable
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>,
	<mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Tue, 27 Apr 2004 10:13:16 -0500
Date: Tue, 27 Apr 2004 10:13:16 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable


On Apr 27, 2004, at 8:25 AM, Paul Mazzurana wrote:

>
> Team,
>
> Rick and I exchanged some emails on which error codes the server=20
> should return and =A0he suggested I post to the group.
>
>
> =46rom pdmazz:
> > 1. =A0what do you return if a client uses a clientid on an =
OPEN/LOCKT=20
> that
>  > has not yet been confirmed ? In this case, I am returning=20
> NFS4ERR_EXPIRED.
>  > =A0 =A0 For some reason I thought this had been covered in the =
working=20
> group
>  > discussion, but I could not find a reference for it to cross check
>  > against.
>
> reply from rick:
> I return NFS4ERR_EXPIRED as well. It might be a good one to ask on the
>  mailing list, since I can't really see a good argument for it over=20
> some
>  other error. (I guess you could say that an unconfirmed clientid will
>  eventually be thrown away by the server, since it can't be renewed=20
> until
>  it has been confirmed and will therefore expire?)
>  The only reason I chose it was I couldn't see a more appropriate =
error
>  return listed for the Ops (like Renew) that get a clientid.

The Solaris server returns NFS4ERR_EXPIRED as well in these cases.

>
> from pdmazz:
> > 2. what do you return if a client uses a stateid on a =
read/write/lock
>  > operation that has not been confirmed AND the server had indicated=20=

> that it
>  > needed to be confirmed when it returned the stateid to the client=20=

> on the
>  > OPEN call? =A0 In this case, I am returning NFS4ERR_BAD_STATEID.
>
> reply from rick:
> Same again, and I think the argument is similar to above. (ie There=20
> didn't
>  seem to be a better error return.) It does make sense to me that an
>  unconfirmed open stateid shouldn't be used for anything else until a
>  confirm is done on it and NFS4ERR_BAD_STATEID is the only "invalid=20
> stateid"
>  error that doesn't have a specific meaning which doesn't apply to =
this
>  case.
>
> Well, at least we are consistently incorrect:-) rick
>  ps: Basically, NFS4ERR_STALE_CLIENTID, NFS4ERR_STALE_STATEID and
> NFS4ERR_OLD_STATEID are for specific cases, which leaves
>  NFS4ERR_BAD_STATEID and NFS4ERR_EXPIRED as the "catch alls"?

The Solaris server will return NFS4ERR_BAD_STATEID as well when
an unconfirmed stateid is used for operations other than OPEN_CONFIRM.

Spencer


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



