From nfs4-wg-request@sunroof.eng.sun.com  Mon Jan  3 11:25:53 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA03653
	for <nfsv4-archive@odin.ietf.org>; Mon, 3 Jan 2000 11:25:52 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA29752;
	Mon, 3 Jan 2000 08:22:56 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA08093;
	Mon, 3 Jan 2000 08:22:27 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e03GM8706755
	for nfs4-wg-distrib; Mon, 3 Jan 2000 08:22:08 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e03GM7Y06752
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 3 Jan 2000 08:22:07 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA28516
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 3 Jan 2000 08:22:07 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id IAA26271
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 3 Jan 2000 08:22:05 -0800 (PST)
Received: (qmail 25599 invoked from network); 3 Jan 2000 16:36:17 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 3 Jan 2000 16:36:17 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id IAA18853
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 3 Jan 2000 08:21:23 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZRKRD>; Mon, 3 Jan 2000 08:21:23 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D3E4@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: seqid in SETCLIENTID
Date: Mon, 3 Jan 2000 08:21:18 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="ISO-8859-1"

Does anyone understand why this is necessary.

In reviewing draft-03, I had been confused about this
and assumed, that it came in in draft-03 with Mike
Eisler's SETCLIENTID_CONFIRM stuff.  In fact the
seqid in SETCLIENTID appears in drafts 01 and 02 as 
well, although it isn't mentioned in the sections
that describe Client ID (8.2.1 in draft-03) or 
Sequencing (8.2.4in draft-03), in any draft.

Given that a client is going to send exactly one
SETCLIENTID to a server, I don't understand why
we have a sequence.  He will send another one,
when he thinks the server has rebooted, but
if the same rules apply as for other sequence 
id's, then the sequence should be reset at this
point.  So, the seqid will always be zero and
why is it there?  Also, if the normal sort of
seq id logic applies on the server, then when 
it gets a new SETCLIENTID, and it has zero for 
the seq-id and the previous SETCLIENTID was 
zero, then it should be ignored, but we most
certainly don't want that to happen if the 
client just rebooted.

If you have a delayed retransmission within a
conversation between a client-instance and a
server instance, the fact that the verififier
is the same will allow to prevent any bad effects.
If the delay is across one or more client reboots
that SETCLIETID_CONFIRM solves the problem if you
have it but seqid adds nothing.

Am I missing something?

If we really need this in the spec, then it has
to explained somewhere.  This is a sequence space
which is different from all the others, which are
lockowner-based, so its rules and logic need to be 
set out somewhere.  Right now they aren't.

Perhaps somebody has a pointer to an explanation of 
what this is for.
 


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan  4 12:57:32 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA03217
	for <nfsv4-archive@odin.ietf.org>; Tue, 4 Jan 2000 12:57:32 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA17135;
	Tue, 4 Jan 2000 09:54:47 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA17972;
	Tue, 4 Jan 2000 09:54:34 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e04Hs3Y07775
	for nfs4-wg-distrib; Tue, 4 Jan 2000 09:54:03 -0800 (PST)
Received: from engmail4.Eng.Sun.COM (engmail4 [129.144.134.6])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e04Hs1Y07772
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Jan 2000 09:54:01 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA27833
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Jan 2000 09:54:01 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id KAA14639
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Jan 2000 10:53:59 -0700 (MST)
Received: (qmail 11726 invoked from network); 4 Jan 2000 18:08:38 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 4 Jan 2000 18:08:38 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id JAA23638;
	Tue, 4 Jan 2000 09:53:57 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZR0TN>; Tue, 4 Jan 2000 09:53:57 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D3EC@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'shepler@eng.sun.com'" <shepler@eng.sun.com>
Cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Changes for Open upgrade/downgrade 
Date: Tue, 4 Jan 2000 09:53:52 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="ISO-8859-1"

These are my suggested changes to address the issue of
upgrade/downgrade of an existing open to deal with the
situation that arises when another open by the same 
lockowner is done with different access/deny bits.
When this happens (and also when such opens are closed),
the new access/deny status needs to be changed on the
server or else share reservation requests by other clients
will be granted or denied incorrectly.

One point to note in dealng with this problem is that the
client may not know, when he issues the OPEN, whether the
file which he is opening is the same as the one he has
already opened.  Also, if the server chooses to give
out multiple different handles for the same file (because
of multiple links or for any other reason), the client
may not know even, even after the open whether the two
files in question are in fact the same.

This is all relative to draft-03.

----

Add a new section following section 8.8:

8.x.  Open upgrade and downgrade

     When an OPEN is done to a file and the lockowner for
     which the open is being done already has the file open,
     the result is to upgrade the open file status maintained
     on the server to include the access and deny bits
     specified by the new OPEN as well as those for the
     existing OPEN.  The result is that there is one open
     file, as far as the protocol is concerned, and it 
     includes the union of the access and deny bits for all
     of the OPEN requests done.  Only a single CLOSE will 
     be done to undo the effects of both OPEN's.  Note 
     that the client, when issuing the OPEN, may not know 
     that the same file is in fact being opened.  The above 
     only applies if both OPEN's result in the OPEN'ed object
     being designated by the same filehandle.

     When the server chooses to export multiple filehandles
     corresponding to the same file object, and returns
     different filehandles on two different OPEN's of the
     same file object, it MUST NOT or together the access 
     and deny bits and coalesce the two open files, but 
     instead must maintain separate OPEN's with separate
     stateid's and will require separate CLOSE's to free
     them.

     When multiple open files on the client are merged into
     a single open file object on the server, the close of
     one of the open files may necessitate change of the
     access and deny status of the open file on the server.
     This is because the union of the access and deny bits
     for the remaining open's may be smaller (i.e. a proper
     subset) than previously.  The OPEN_DOWNGRADE operation
     is used to make the necessary change and the client
     should use it to update the server so that share 
     reservation requests by other clients are handled 
     properly.

Add to section 14.2.17 (OPEN) under DESCRIPTION the following
new paragraph at the end:

     When an OPEN is done and the specified lockowner already
     has the resulting filehandle open, the result is to 
     or together the new share and deny status together with
     the existing status.  In this case, only a single CLOSE
     need be done, even though multiple OPEN's were done.

Add the following new section:

14.2.xx.  Operation yy: OPEN_DOWNGRADE - Reduce open file access

  SYNOPSIS

     (cfh), stateid, seqid, access, deny -> stateid

  ARGUMENT

     struct OPEN_DOWNGRADE4args {
     		/* CURRENT_FH: opened file */
     		stateid4	stateid;
		seqid4	seqid;
		uint32_t	share_access;
		uint32_t	share_deny;
     };

[[Note: all of the OPEN4_SHARE_* constants for share_{access,deny}
  are (not unreasonably) under OPEN.  If they are used in more than
  one op, they may have to be pulled forward somehow and genericized.]]

  RESULT

     struct OPEN_DOWNGRADE4resok {
		stateid4	stateid;
     };

     union OPEN_DOWNGRADE4res switch(nfsstat4 status) {
	case NFS4_OK:
		OPEN_DOWNGRADE4resok	resok4;
	default:
		void;
     };

  DESCRIPTION

     This operation is used to adjust the access and deny bits for
     a given open.  This is necessary when a given lockowner opens
     the same file multiple times with different access and deny
     flags.  In this situation, a close of one of the open's may
     change the appropriate access and deny flags to remove bits
     associated with open's no longer in effect.

     The access and deny bits speicifed in this operation replace
     the current ones for the specified open file.  If either
     the access or the deny mode specified includes bits not
     in effect for the open, the error NFS4ERR_INVAL should be
     returned.  Since access and deny bits are subsets of those
     already granted, it is is not possible for this request to
     denied because of conflicting share reserveations.

     On success, the current filehandle retains its value.
    
  ERRORS

     NFS4ERR_BADHANDLE
     NFS4ERR_BAD_SEQID
     NFS4ERR_BAD_STATEID
     NFS4ERR_EXPIRED
     NFS4ERR_FHEXPIRED
     NFS4ERR_INVAL
     NFS4ERR_MOVED
     NFS4ERR_NOFILEHANDLE
     NFS4ERR_OLD_STATEID
     NFS4ERR_RESOURCE
     NFS4ERR_SERVERFAULT
     NFS4ERR_STALE
     NFS4ERR_STALE_STATEID

Also, corresponding changes in section 17.



From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan  4 14:09:52 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA04241
	for <nfsv4-archive@odin.ietf.org>; Tue, 4 Jan 2000 14:09:46 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA19325;
	Tue, 4 Jan 2000 11:08:01 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA29046;
	Tue, 4 Jan 2000 11:07:32 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e04J7DL07863
	for nfs4-wg-distrib; Tue, 4 Jan 2000 11:07:13 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e04J7BY07860
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Jan 2000 11:07:11 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA04081
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Jan 2000 11:07:11 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id LAA04559
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 4 Jan 2000 11:07:09 -0800 (PST)
Received: (qmail 12235 invoked from network); 4 Jan 2000 19:21:50 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 4 Jan 2000 19:21:50 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id LAA09022;
	Tue, 4 Jan 2000 11:07:07 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZSBV1>; Tue, 4 Jan 2000 11:07:07 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D3ED@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'shepler@eng.sun.com'" <shepler@eng.sun.com>
Cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Changes for CLOSE_ALL operation
Date: Tue, 4 Jan 2000 11:06:59 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="ISO-8859-1"

These are the changes to introduce a CLOSE_ALL operation.
CLOSE_ALL addresses some of the recovery problems that 
arise when you give up on processing on an lcoking-related
RPC.  The problem is that you may wind up unable to access
a stateid in a response to an OPEN (for example) when you
give up on the OPEN RPC.  Thsi means you may not be able
to get rid of the associated lock which is going to be 
subject to implcicit lease renewal with all your other
locks, the ones you know about.

This is all relative to draft-03.

----

Add an new section after 8.5.3:

8.5.4.  Timeout or other aborts of locking RPC's

    In cases where network congestion or other communication
    problems cause significant delays but the problems do not
    constitute a network partition, timing out of a locking
    RPC's or aborting such an RPC when the process for which
    it was issued is terminated (e.g. in UNIX due to a signal),
    may pose recovery issues for the client.

    In the event that the OPEN or LOCK is eventually acted on,
    a lock will be created that the client has no way of knowing
    about and no way of releasing, since it will not know the 
    proper stateid to use.
 
    Such a lock will be included with the clients other locks 
    and so be subject to implicit lease renewal with all of the
    other locks held by the client, the fact that the client has
    no knowledge of such a lock notwithstanding.  The result may
    be to prevent other clients from obtaining locks in conflict
    with the "lost" lock.

    The CLOSE_ALL operation can be used as part of process 
    termination when such a situation may exist.  It allows all
    of the locks for a given lockowner to be released even 
    those that the client may not be aware because RPC's were
    aborted early.

Add a new section:

14.2.xx.  Operation yy: CLOSE_ALL - Release all locks for a lockowner

  SYNOPSIS

     owner ->

  ARGUMENT

     struct CLOSE_ALL4args {
		nfs_lockowner4	owner;
     };

  RESULT

     struct CLOSE_ALL4res {
		nfsstat4	status;
     };

  DESCRIPTION

     The CLOSE_ALL operation release all locks (both record
     locks and share reservations) held by the specified 
     lockowner.  It is intended mainly as a recovery device
     to allow the client to deal with uncertainty as to the
     proper locking state which arises which a locking 
     operations (such as LOCK or OPEN) is part of RPC and
     that RPC is aborted on the client resultng in siutation
     in which the server response is not available to the client. 

  ERRORS

     NFS4ERR_RESOURCE
     NFS4ERR_SERVERFAULT
     NFS4ERR_STALE_CLIENTID


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 16:27:15 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA16295
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 16:27:14 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA12041;
	Wed, 5 Jan 2000 13:25:32 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id NAA09124;
	Wed, 5 Jan 2000 13:25:13 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e05LOnb09358
	for nfs4-wg-distrib; Wed, 5 Jan 2000 13:24:49 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.84.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e05LOlY09355
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 13:24:48 -0800 (PST)
Received: from eng.sun.com (awe171-88.AWE.Sun.COM [192.29.171.88])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA19221;
	Wed, 5 Jan 2000 13:24:45 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3873B65E.C366C81C@eng.sun.com>
Date: Wed, 05 Jan 2000 15:23:42 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "Noveck, Dave" <dave.noveck@netapp.com>
CC: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Section 6.4.  Filehandle recovery for Migration or Replication
References: <4080CE03B682D311B589009027C2286638D3D8@tahoe.corp.netapp.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


Dave,
  So based on your comments below, you are proposing that
in the event of a migration or replication event volatile 
filehandles will be invalid when presented to the new server?
This approach, you state, will avoid the problem the new server
will have in providing the correct FHEXPIRED error to the
client when the old volatile filehandle is presented to the
new server.
  This approach will disallow a server from providing volatile
filehandles in the read-only replication case.  I can imagine
that a set of servers could provide read-only service to a
file system while using volatile filehandles.  The server may
be implemented to use the pathname as the volatile filehandle
and assuming that the servers are the same implementation
and the same filesystem name space is being presented, volatile
filehandles can be used.
  I agree that there is an issue with a client presenting an
old filehandle and the server not being able to provide the
correct error (FHEXPIRED or STALE).  There may be a method
to extend the fh_expire_type attribute to let the client know
if the server can provide the correct interpretation of the
volatile filehandle or if the client should consider the
volatile filehandle invalid on the migration/replication event.
  Is it worth the effort to do this or do we believe that in the case
where servers know about and will transfer the filehandle 
contents that persistent filehandles will be used?

Spencer

"Noveck, Dave" wrote:
> 
> I'm wondering whether the second paragraph of this section
> is really what we want to say.  Right now, it says:
> 
>    The same is true for a file system which is made up of volatile
>    filehandles.  In fact, in this case the client should expect that the
>    new server will return NFS4ERR_FHEXPIRED when old filehandles are
>    presented; the client will need to recover the filehandles
>    appropriately.
> 
> This formulation places on the new server the responsibility of
> recognizing handles generated by the old server, at least to the
> point of reporting FHEXPIRED.  Normally, a server creates
> filehandles and it is the only one who needs to understand
> their format.
> 
> Clearly, migration in the case of persistent filehandles has
> got to be an exception to this.  In that case, two servers have
> got to agree on lots of things (all outside the scope of nfs v4)
> and the format of filehandles has got to be one of them.
> 
> I hadn't expected that those using volatile filehandles and
> particularly those doing replication using volatile filehandles
> would be prepared for the same degree of integration.
> 
> As this paragraph is now written, if two servers which are
> provided a replicated file system are using the volatile form
> of filehandles layed out in section 4.2.4, they would have to,
> 
>      Precisly agree on the position of the boot time field.
> 
>      Agree on the interpretation of the boot time field.
> 
>      Take special measures to make sure that two servers
>      involved in replication do not have the same boot time
>      value.
> 
> If some of these weren't done, a secondary server might think
> that a filehandle generated by a primary was non-expired with
> unpleasant results.  Servers could avoid this in other ways
> such as perpending a server-id to the filehandle to create a
> global handle space, but this all involves at least some level
> of agreement among the servers about the form of filehandles.
> 
> I had originally intended something a little different.  I was
> thinking that at the time of migration or replication-associated
> retargetting, volatile filehandles would expire as part of the
> transfer, obviating any need for the new server to recognize
> handles generated by an old one, unless the servers signed up
> for that complexity by using migration together with persistent
> filehandles.
> 
> I think what is written there now can be made to work but I'm
> wondering whether replication would be more useful if it had
> an implementation that involved less inter-server co-ordination.
> I don't think that making this change would significantly
> add to client complexity.


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 16:49:41 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA16549
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 16:49:39 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA20876;
	Wed, 5 Jan 2000 13:48:20 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id NAA13388;
	Wed, 5 Jan 2000 13:48:08 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e05Llmx09395
	for nfs4-wg-distrib; Wed, 5 Jan 2000 13:47:48 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.85.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e05LlkY09392
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 13:47:47 -0800 (PST)
Received: from eng.sun.com (awe171-88.AWE.Sun.COM [192.29.171.88])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA24173;
	Wed, 5 Jan 2000 13:47:44 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3873BBC0.744DA69E@eng.sun.com>
Date: Wed, 05 Jan 2000 15:46:40 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "Noveck, Dave" <dave.noveck@netapp.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Section 6.4.  Filehandle recovery for Migration or Replication
References: <4080CE03B682D311B589009027C2286638D3D8@tahoe.corp.netapp.com> <3873B65E.C366C81C@eng.sun.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


On second thought....

Let's take your suggestion Dave and state that for volatile
filehandles during a migration or replication event, the
filehandle is considered to be invalid or to have expired
on the m/r event.  In the future, if it is found that there
are server implementations that provide the correct volatile
filehandle transition, then we can use minor versioning to
extend the fh_expire_type attribute definition to include
the new/extended semantics.

This implies that the FH_VOL_MIGRATION bit of fh_expire_type
should be removed.

Thoughts?

Spencer

Spencer Shepler wrote:
> 
> Dave,
>   So based on your comments below, you are proposing that
> in the event of a migration or replication event volatile
> filehandles will be invalid when presented to the new server?
> This approach, you state, will avoid the problem the new server
> will have in providing the correct FHEXPIRED error to the
> client when the old volatile filehandle is presented to the
> new server.
>   This approach will disallow a server from providing volatile
> filehandles in the read-only replication case.  I can imagine
> that a set of servers could provide read-only service to a
> file system while using volatile filehandles.  The server may
> be implemented to use the pathname as the volatile filehandle
> and assuming that the servers are the same implementation
> and the same filesystem name space is being presented, volatile
> filehandles can be used.
>   I agree that there is an issue with a client presenting an
> old filehandle and the server not being able to provide the
> correct error (FHEXPIRED or STALE).  There may be a method
> to extend the fh_expire_type attribute to let the client know
> if the server can provide the correct interpretation of the
> volatile filehandle or if the client should consider the
> volatile filehandle invalid on the migration/replication event.
>   Is it worth the effort to do this or do we believe that in the case
> where servers know about and will transfer the filehandle
> contents that persistent filehandles will be used?
> 
> Spencer
> 
> "Noveck, Dave" wrote:
> >
> > I'm wondering whether the second paragraph of this section
> > is really what we want to say.  Right now, it says:
> >
> >    The same is true for a file system which is made up of volatile
> >    filehandles.  In fact, in this case the client should expect that the
> >    new server will return NFS4ERR_FHEXPIRED when old filehandles are
> >    presented; the client will need to recover the filehandles
> >    appropriately.
> >
> > This formulation places on the new server the responsibility of
> > recognizing handles generated by the old server, at least to the
> > point of reporting FHEXPIRED.  Normally, a server creates
> > filehandles and it is the only one who needs to understand
> > their format.
> >
> > Clearly, migration in the case of persistent filehandles has
> > got to be an exception to this.  In that case, two servers have
> > got to agree on lots of things (all outside the scope of nfs v4)
> > and the format of filehandles has got to be one of them.
> >
> > I hadn't expected that those using volatile filehandles and
> > particularly those doing replication using volatile filehandles
> > would be prepared for the same degree of integration.
> >
> > As this paragraph is now written, if two servers which are
> > provided a replicated file system are using the volatile form
> > of filehandles layed out in section 4.2.4, they would have to,
> >
> >      Precisly agree on the position of the boot time field.
> >
> >      Agree on the interpretation of the boot time field.
> >
> >      Take special measures to make sure that two servers
> >      involved in replication do not have the same boot time
> >      value.
> >
> > If some of these weren't done, a secondary server might think
> > that a filehandle generated by a primary was non-expired with
> > unpleasant results.  Servers could avoid this in other ways
> > such as perpending a server-id to the filehandle to create a
> > global handle space, but this all involves at least some level
> > of agreement among the servers about the form of filehandles.
> >
> > I had originally intended something a little different.  I was
> > thinking that at the time of migration or replication-associated
> > retargetting, volatile filehandles would expire as part of the
> > transfer, obviating any need for the new server to recognize
> > handles generated by an old one, unless the servers signed up
> > for that complexity by using migration together with persistent
> > filehandles.
> >
> > I think what is written there now can be made to work but I'm
> > wondering whether replication would be more useful if it had
> > an implementation that involved less inter-server co-ordination.
> > I don't think that making this change would significantly
> > add to client complexity.


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 16:53:36 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA16591
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 16:53:35 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA22054;
	Wed, 5 Jan 2000 13:51:38 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id NAA20684;
	Wed, 5 Jan 2000 13:51:29 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e05LpKi09413
	for nfs4-wg-distrib; Wed, 5 Jan 2000 13:51:20 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e05LpIY09410
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 13:51:19 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id NAA06850
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 13:51:17 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id NAA07438
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 13:51:16 -0800 (PST)
Received: (qmail 13086 invoked from network); 5 Jan 2000 22:06:24 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 5 Jan 2000 22:06:24 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id NAA12800;
	Wed, 5 Jan 2000 13:51:14 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZS5N0>; Wed, 5 Jan 2000 13:51:13 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D3FF@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Spencer Shepler'" <shepler@eng.sun.com>,
        "Noveck, Dave"
	 <dave.noveck@netapp.com>
Cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio
	n
Date: Wed, 5 Jan 2000 13:51:13 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="ISO-8859-1"

 
>   So based on your comments below, you are proposing that
> in the event of a migration or replication event volatile 
> filehandles will be invalid when presented to the new server?

I'm proposing that the should not be presented to the new server
because the server may not be prepared to recognize them as
invalid, expired or anything else.  I'm supposing that the
client will look up the new file handles as if he had gotten
FHEXPIRED from the new server, without requiring the server
to actually return that.

> This approach, you state, will avoid the problem the new server
> will have in providing the correct FHEXPIRED error to the
> client when the old volatile filehandle is presented to the
> new server.

Right.

>   This approach will disallow a server from providing volatile
> filehandles in the read-only replication case.  I can imagine
> that a set of servers could provide read-only service to a
> file system while using volatile filehandles.  The server may
> be implemented to use the pathname as the volatile filehandle
> and assuming that the servers are the same implementation
> and the same filesystem name space is being presented, volatile
> filehandles can be used.

I don't see that this would prevent that from working.  It would
force an extra filehandle expiration when switchover occurred.
In your scheme that wouldn't be required.

I was thinking more of a different case, in which you took what
were normally persistent filehandles and tried to accomodate 
read-only replication on top of the existing file system.  The
files would be marked as volatile only because they expire at
migration.

In that situation, two files with the same name would have very
different file handles when migrated and you are going to 
want to force expiration on switchover so that you use the 
names to find the new filehandles.  In this case, the issue
is whether the servers have to agree on some elements of
the interpretation of filehandles unless the client is 
allowed to assume that expiration occurred without getting
the FHEXPIRED error from the new server.

>   I agree that there is an issue with a client presenting an
> old filehandle and the server not being able to provide the
> correct error (FHEXPIRED or STALE).  There may be a method
> to extend the fh_expire_type attribute to let the client know
> if the server can provide the correct interpretation of the
> volatile filehandle or if the client should consider the
> volatile filehandle invalid on the migration/replication event.

You could do that.

>   Is it worth the effort to do this or do we believe that in the case
> where servers know about and will transfer the filehandle 
> contents that persistent filehandles will be used?

Don't know.  Based on the overwhelming lack of response so far,
maybe this isn't needed.  Personally, volatile filehandles,
cause a strong allergic reaction.
 


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 17:11:09 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA16887
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 17:11:07 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA28848;
	Wed, 5 Jan 2000 14:09:52 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA24923;
	Wed, 5 Jan 2000 14:09:43 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e05M9Ph09443
	for nfs4-wg-distrib; Wed, 5 Jan 2000 14:09:25 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.86.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e05M9NY09440
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 14:09:23 -0800 (PST)
Received: from teal (awe8-127.Central.Sun.COM [129.147.8.127])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id OAA27323
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 14:09:21 -0800 (PST)
Date: Wed, 5 Jan 2000 14:12:10 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: Re: Section 6.4.  Filehandle recovery for Migration or Replication
To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
In-Reply-To: "Your message with ID" <4080CE03B682D311B589009027C2286638D3D8@tahoe.corp.netapp.com>
Message-ID: <Roam.SIMC.2.0.6.947110330.18064.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> From: "Noveck, Dave" <dave.noveck@netapp.com>
> To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
> Subject: Section 6.4.  Filehandle recovery for Migration or Replication
> Date: Tue, 28 Dec 1999 14:23:35 -0800
[...]
> I'm wondering whether the second paragraph of this section
> is really what we want to say.  Right now, it says:
> 
>    The same is true for a file system which is made up of volatile
>    filehandles.  In fact, in this case the client should expect that the
>    new server will return NFS4ERR_FHEXPIRED when old filehandles are
>    presented; the client will need to recover the filehandles
>    appropriately.

The above paragraph should be struck, because it conflicts with 
the intent of FH3_VOL_MIGRATION bit.
 
> This formulation places on the new server the responsibility of
> recognizing handles generated by the old server, at least to the
> point of reporting FHEXPIRED.  Normally, a server creates
> filehandles and it is the only one who needs to understand 
> their format.
> 
> Clearly, migration in the case of persistent filehandles has
> got to be an exception to this.  In that case, two servers have
> got to agree on lots of things (all outside the scope of nfs v4)
> and the format of filehandles has got to be one of them.

I beleive the current specification covers this.
The FH4_VOL_MIGRATION bit in the mandatory  fh_expire_type is
the way that the server tells the client whether the file handle is good
through a migration. If FH4_VOL_MIGRATION or FH4_VOLATILE_ANY are set,
the client knows it must not expect the file handle to work after
a migration.

Two server's don't have to agree on the format of file handles to allow
migration when volatile file handles are used. The NFS client side failover
feature of Solaris 2.6 and onward proves this.

> Date: Wed, 05 Jan 2000 15:46:40 -0600
> From: Spencer Shepler <shepler@eng.sun.com>
[...]
> This implies that the FH_VOL_MIGRATION bit of fh_expire_type
> should be removed.

Well, we spent lots of time getting to the current FH4_* set of bits,
and I expect that if FH_VOL_MIGRATION is removed now, we'll simply
cover old ground. To summarize that old ground, FH_VOL_MIGRATION is
needed mostly to hande the case when two servers each support persistent
file handles, but during a migration, persistence is lost.



From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 17:57:11 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA17474
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 17:57:11 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id PAA13399;
	Wed, 5 Jan 2000 15:56:52 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA24027;
	Wed, 5 Jan 2000 14:56:46 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e05MubZ09479
	for nfs4-wg-distrib; Wed, 5 Jan 2000 14:56:37 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.81.144] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e05MuaY09476
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 14:56:36 -0800 (PST)
Received: from teal (awe8-127.Central.Sun.COM [129.147.8.127])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id OAA04852;
	Wed, 5 Jan 2000 14:56:36 -0800 (PST)
Date: Wed, 5 Jan 2000 14:59:25 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio n
To: "Noveck, Dave" <dave.noveck@netapp.com>
Cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
In-Reply-To: "Your message with ID" <4080CE03B682D311B589009027C2286638D400@tahoe.corp.netapp.com>
Message-ID: <Roam.SIMC.2.0.6.947113165.2141.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> Right now the spec says that FH4_VOLATILE_MIGRATION says the 
> filehandle "may expire during file system migration".  If the 
> intent is that it "will expire", then we should say that.
> 
> For FH4_VOLATILE_ANY, we may want to add something about
> always expiring at migration or simply allow FH4_VOL_MIGRATION
> to be set even if FH4_VOLATILE_ANY is set.

Agreed.



From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 17:57:28 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA17485
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 17:57:28 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA13997;
	Wed, 5 Jan 2000 14:55:33 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA19258;
	Wed, 5 Jan 2000 14:55:25 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e05Mt4O09473
	for nfs4-wg-distrib; Wed, 5 Jan 2000 14:55:04 -0800 (PST)
Received: from engmail1.Eng.Sun.COM (engmail1 [129.146.1.13])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e05Mt2Y09470
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 14:55:03 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA06061
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 14:55:03 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id PAA12488
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 15:54:44 -0700 (MST)
Received: (qmail 13654 invoked from network); 5 Jan 2000 23:09:26 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 5 Jan 2000 23:09:26 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id OAA25996;
	Wed, 5 Jan 2000 14:54:02 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZS7F3>; Wed, 5 Jan 2000 14:54:02 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D400@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Eisler'" <mre@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'"
	 <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio
	n
Date: Wed, 5 Jan 2000 14:54:01 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="ISO-8859-1"

 
> > From: "Noveck, Dave" <dave.noveck@netapp.com>
> > To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
> > Subject: Section 6.4.  Filehandle recovery for Migration or 
> Replication
> > Date: Tue, 28 Dec 1999 14:23:35 -0800
> [...]
> > I'm wondering whether the second paragraph of this section
> > is really what we want to say.  Right now, it says:
> > 
> >    The same is true for a file system which is made up of volatile
> >    filehandles.  In fact, in this case the client should 
> expect that the
> >    new server will return NFS4ERR_FHEXPIRED when old filehandles are
> >    presented; the client will need to recover the filehandles
> >    appropriately.
> 
> The above paragraph should be struck, because it conflicts with 
> the intent of FH3_VOL_MIGRATION bit.
>  
> > This formulation places on the new server the responsibility of
> > recognizing handles generated by the old server, at least to the
> > point of reporting FHEXPIRED.  Normally, a server creates
> > filehandles and it is the only one who needs to understand 
> > their format.
> > 
> > Clearly, migration in the case of persistent filehandles has
> > got to be an exception to this.  In that case, two servers have
> > got to agree on lots of things (all outside the scope of nfs v4)
> > and the format of filehandles has got to be one of them.
> 
> I beleive the current specification covers this.
> The FH4_VOL_MIGRATION bit in the mandatory  fh_expire_type is
> the way that the server tells the client whether the file 
> handle is good
> through a migration. If FH4_VOL_MIGRATION or FH4_VOLATILE_ANY are set,
> the client knows it must not expect the file handle to work after
> a migration.

Right now the spec says that FH4_VOLATILE_MIGRATION says the 
filehandle "may expire during file system migration".  If the 
intent is that it "will expire", then we should say that.

For FH4_VOLATILE_ANY, we may want to add something about
always expiring at migration or simply allow FH4_VOL_MIGRATION
to be set even if FH4_VOLATILE_ANY is set.

> 
> Two server's don't have to agree on the format of file 
> handles to allow
> migration when volatile file handles are used. The NFS client 
> side failover
> feature of Solaris 2.6 and onward proves this.

Right, but in that case the client is responsible for 
recognizing that expiration has happened and is not 
depending on the server to tell him.  So, it seems that
v4 should handle this the same way.


 


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan  5 20:33:37 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA19304
	for <nfsv4-archive@odin.ietf.org>; Wed, 5 Jan 2000 20:33:30 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id RAA03580;
	Wed, 5 Jan 2000 17:32:11 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id RAA17092;
	Wed, 5 Jan 2000 17:32:04 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e061VjV09715
	for nfs4-wg-distrib; Wed, 5 Jan 2000 17:31:45 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.81.144] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e061VhY09712
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 5 Jan 2000 17:31:43 -0800 (PST)
Received: from pil (pil.Eng.Sun.COM [129.146.86.124])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id RAA01003;
	Wed, 5 Jan 2000 17:31:40 -0800 (PST)
Message-Id: <200001060131.RAA01003@jurassic.eng.sun.com>
Date: Wed, 5 Jan 2000 17:30:47 -0800 (PST)
From: Salit Gazit <Salit.Levy-Gazit@eng.sun.com>
Reply-To: Salit Gazit <Salit.Levy-Gazit@eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio n
To: dave.noveck@netapp.com, mre@eng.sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: ThE6SZKqpLuHDu7lXzNo9A==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4_22 SunOS 5.8.1 sun4u sparc 

>> Right now the spec says that FH4_VOLATILE_MIGRATION says the 
>> filehandle "may expire during file system migration".  If the 
>> intent is that it "will expire", then we should say that.
>> 
>> For FH4_VOLATILE_ANY, we may want to add something about
>> always expiring at migration or simply allow FH4_VOL_MIGRATION
>> to be set even if FH4_VOLATILE_ANY is set.

Why is there this restriction in the first place? Having FH4_VOLALTILE_ANY
set does not contradict having FH4_VOL_MIGRATION or, for that matter,
FH4_VOL_RENAME set. On the other hand, shouldn't there be a
restriction in the protocol from having FH4_PERSISTENT bit set when
any of the other bits (except the migration bit) are set?

Salit




From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 10:30:48 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA14421
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 10:30:39 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA05417;
	Thu, 6 Jan 2000 07:28:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA13991;
	Thu, 6 Jan 2000 07:27:07 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06FQmT09983
	for nfs4-wg-distrib; Thu, 6 Jan 2000 07:26:48 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.87.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06FQkY09980
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 07:26:47 -0800 (PST)
Received: from teal (awe8-125.Central.Sun.COM [129.147.8.125])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id HAA12342;
	Thu, 6 Jan 2000 07:26:46 -0800 (PST)
Date: Thu, 6 Jan 2000 07:29:35 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio n
To: Salit Gazit <Salit.Levy-Gazit@eng.sun.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <200001060131.RAA01003@jurassic.eng.sun.com>
Message-ID: <Roam.SIMC.2.0.6.947172575.13069.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> >> Right now the spec says that FH4_VOLATILE_MIGRATION says the 
> >> filehandle "may expire during file system migration".  If the 
> >> intent is that it "will expire", then we should say that.
> >> 
> >> For FH4_VOLATILE_ANY, we may want to add something about
> >> always expiring at migration or simply allow FH4_VOL_MIGRATION
> >> to be set even if FH4_VOLATILE_ANY is set.
> 
> Why is there this restriction in the first place? Having FH4_VOLALTILE_ANY
> set does not contradict having FH4_VOL_MIGRATION or, for that matter,
> FH4_VOL_RENAME set. On the other hand, shouldn't there be a

What is the purpose is allowing the server to convey redundant information? 

> restriction in the protocol from having FH4_PERSISTENT bit set when
> any of the other bits (except the migration bit) are set?

There is a restriction. FH4_PERSISTENT is a pseudo bit:

   /*
    * Values for fattr4_fh_expire_type
    */
   const   FH4_PERSISTENT          = 0x00000000;
   const   FH4_NOEXPIRE_WITH_OPEN  = 0x00000001;
   const   FH4_VOLATILE_ANY        = 0x00000002;
   const   FH4_VOL_MIGRATION       = 0x00000004;
   const   FH4_VOL_RENAME          = 0x00000008;

i.e. if fattr4_fh_expire_type is non-zero, FH4_PERSISTENT is not "set".

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 12:35:47 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA17615
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 12:35:45 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA02883;
	Thu, 6 Jan 2000 09:33:19 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA19496;
	Thu, 6 Jan 2000 09:33:09 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06HWm910176
	for nfs4-wg-distrib; Thu, 6 Jan 2000 09:32:48 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.83.130] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06HWkY10173
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 09:32:46 -0800 (PST)
Received: from pil-home (awe173-33.AWE.Sun.COM [192.29.173.33])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id JAA27523;
	Thu, 6 Jan 2000 09:32:44 -0800 (PST)
Date: Wed, 5 Jan 2000 16:20:06 -0800 (PST)
From: "Salit.Levy" <Salit.Levy-Gazit@eng.sun.com>
Reply-To: "Salit.Levy" <Salit.Levy-Gazit@eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio n
To: Mike Eisler <mre@eng.sun.com>
Cc: Salit Gazit <Salit.Levy-Gazit@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <Roam.SIMC.2.0.6.947172575.13069.mre@eng.sun.com>
Message-ID: <Roam.SIMC.2.0.6.947118006.21033.salit@jurassic>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> > Why is there this restriction in the first place? Having FH4_VOLALTILE_ANY
> > set does not contradict having FH4_VOL_MIGRATION or, for that matter,
> > FH4_VOL_RENAME set. On the other hand, shouldn't there be a
> 
> What is the purpose is allowing the server to convey redundant information?

For implementation purposes. If it is known that a filehandle will expire
because of a rename or migration, the client can proactively structure the
request accordingly, for instance by adding a lookup after rename. If
the additional bits are not specified, there is no need for the proactive
code, even if the filehandle may still expire for other reasons.
 
> > restriction in the protocol from having FH4_PERSISTENT bit set when
> > any of the other bits (except the migration bit) are set?
> 
> There is a restriction. FH4_PERSISTENT is a pseudo bit:
> 
>    /*
>     * Values for fattr4_fh_expire_type
>     */
>    const   FH4_PERSISTENT          = 0x00000000;
>    const   FH4_NOEXPIRE_WITH_OPEN  = 0x00000001;
>    const   FH4_VOLATILE_ANY        = 0x00000002;
>    const   FH4_VOL_MIGRATION       = 0x00000004;
>    const   FH4_VOL_RENAME          = 0x00000008;
> 
> i.e. if fattr4_fh_expire_type is non-zero, FH4_PERSISTENT is not "set".

Yes, I figured it out after I sent the previous message. But the above is
defined in nfs4_prot.x, not in the protocol draft, and it's not obvious from
the text.

Salit



From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 12:39:59 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA17795
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 12:39:57 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA04792;
	Thu, 6 Jan 2000 09:37:51 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA04856;
	Thu, 6 Jan 2000 09:37:42 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06HbXs10185
	for nfs4-wg-distrib; Thu, 6 Jan 2000 09:37:33 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.88.31])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06HbVY10182
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 09:37:31 -0800 (PST)
Received: from eng.sun.com (awe171-79.AWE.Sun.COM [192.29.171.79])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA28050;
	Thu, 6 Jan 2000 09:37:28 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3874D297.C16ED84E@eng.sun.com>
Date: Thu, 06 Jan 2000 11:36:23 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "Salit.Levy" <Salit.Levy-Gazit@eng.sun.com>
CC: Mike Eisler <mre@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Section 6.4.  Filehandle recovery for Migration or Replicatio n
References: <Roam.SIMC.2.0.6.947118006.21033.salit@jurassic>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

"Salit.Levy" wrote:
> > > restriction in the protocol from having FH4_PERSISTENT bit set when
> > > any of the other bits (except the migration bit) are set?
> >
> > There is a restriction. FH4_PERSISTENT is a pseudo bit:
> >
> >    /*
> >     * Values for fattr4_fh_expire_type
> >     */
> >    const   FH4_PERSISTENT          = 0x00000000;
> >    const   FH4_NOEXPIRE_WITH_OPEN  = 0x00000001;
> >    const   FH4_VOLATILE_ANY        = 0x00000002;
> >    const   FH4_VOL_MIGRATION       = 0x00000004;
> >    const   FH4_VOL_RENAME          = 0x00000008;
> >
> > i.e. if fattr4_fh_expire_type is non-zero, FH4_PERSISTENT is not "set".
> 
> Yes, I figured it out after I sent the previous message. But the above is
> defined in nfs4_prot.x, not in the protocol draft, and it's not obvious from
> the text.

The I-D will be changed to add the clarification.

Spencer


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 12:47:55 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA17992
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 12:47:52 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA08428;
	Thu, 6 Jan 2000 09:46:03 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA22551;
	Thu, 6 Jan 2000 09:45:53 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06HjYk10232
	for nfs4-wg-distrib; Thu, 6 Jan 2000 09:45:34 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.88.31])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06HjWY10229
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 09:45:32 -0800 (PST)
Received: from teal (awe8-125.Central.Sun.COM [129.147.8.125])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id JAA29024;
	Thu, 6 Jan 2000 09:45:31 -0800 (PST)
Date: Thu, 6 Jan 2000 09:48:20 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: RE: Section 6.4.  Filehandle recovery for Migration or Replicatio n
To: "Salit.Levy" <Salit.Levy-Gazit@eng.sun.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <Roam.SIMC.2.0.6.947118006.21033.salit@jurassic>
Message-ID: <Roam.SIMC.2.0.6.947180900.28805.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> > > Why is there this restriction in the first place? Having
> FH4_VOLALTILE_ANY > > set does not contradict having FH4_VOL_MIGRATION or,
> for that matter, > > FH4_VOL_RENAME set. On the other hand, shouldn't there
> be a > 
> > What is the purpose is allowing the server to convey redundant information?
> 
> For implementation purposes. If it is known that a filehandle will expire
> because of a rename or migration, the client can proactively structure the
> request accordingly, for instance by adding a lookup after rename. If
> the additional bits are not specified, there is no need for the proactive
> code, even if the filehandle may still expire for other reasons.

If FH4_VOLATILE_ANY is set, then the client had better add a lookup after
rename if it is caching file handles. If FH4_VOLATLE_ANY is set, the
client is better off not caching file handles.

> > > restriction in the protocol from having FH4_PERSISTENT bit set when
> > > any of the other bits (except the migration bit) are set?
> > 
> > There is a restriction. FH4_PERSISTENT is a pseudo bit:
> > 
> >    /*
> >     * Values for fattr4_fh_expire_type
> >     */
> >    const   FH4_PERSISTENT          = 0x00000000;
> >    const   FH4_NOEXPIRE_WITH_OPEN  = 0x00000001;
> >    const   FH4_VOLATILE_ANY        = 0x00000002;
> >    const   FH4_VOL_MIGRATION       = 0x00000004;
> >    const   FH4_VOL_RENAME          = 0x00000008;
> > 
> > i.e. if fattr4_fh_expire_type is non-zero, FH4_PERSISTENT is not "set".
> 
> Yes, I figured it out after I sent the previous message. But the above is
> defined in nfs4_prot.x, not in the protocol draft, and it's not obvious from
> the text.

I cut and paste the above from the i-d on www.ietf.org.

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 14:33:00 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20630
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 14:32:57 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA22646;
	Thu, 6 Jan 2000 11:31:09 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA28229;
	Thu, 6 Jan 2000 11:29:15 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06JSpJ10500
	for nfs4-wg-distrib; Thu, 6 Jan 2000 11:28:51 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.87.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06JSnY10497
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 11:28:49 -0800 (PST)
Received: from eng.sun.com (awe171-79.AWE.Sun.COM [192.29.171.79])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA19253
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 11:28:48 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3874ECAF.C59C1D3B@eng.sun.com>
Date: Thu, 06 Jan 2000 13:27:43 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
CC: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Changes for CLOSE_ALL operation
References: <4080CE03B682D311B589009027C2286638D3ED@tahoe.corp.netapp.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


I will be adding the following to the I-D but will be
changing the name of the operation to RELEASE_ALL to
differentiate from CLOSE.

Let me know if there are specific or general problems 
with this proposal.

Spencer

"Noveck, Dave" wrote:
> 
> These are the changes to introduce a CLOSE_ALL operation.
> CLOSE_ALL addresses some of the recovery problems that
> arise when you give up on processing on an lcoking-related
> RPC.  The problem is that you may wind up unable to access
> a stateid in a response to an OPEN (for example) when you
> give up on the OPEN RPC.  Thsi means you may not be able
> to get rid of the associated lock which is going to be
> subject to implcicit lease renewal with all your other
> locks, the ones you know about.
> 
> This is all relative to draft-03.
> 
> ----
> 
> Add an new section after 8.5.3:
> 
> 8.5.4.  Timeout or other aborts of locking RPC's
> 
>     In cases where network congestion or other communication
>     problems cause significant delays but the problems do not
>     constitute a network partition, timing out of a locking
>     RPC's or aborting such an RPC when the process for which
>     it was issued is terminated (e.g. in UNIX due to a signal),
>     may pose recovery issues for the client.
> 
>     In the event that the OPEN or LOCK is eventually acted on,
>     a lock will be created that the client has no way of knowing
>     about and no way of releasing, since it will not know the
>     proper stateid to use.
> 
>     Such a lock will be included with the clients other locks
>     and so be subject to implicit lease renewal with all of the
>     other locks held by the client, the fact that the client has
>     no knowledge of such a lock notwithstanding.  The result may
>     be to prevent other clients from obtaining locks in conflict
>     with the "lost" lock.
> 
>     The CLOSE_ALL operation can be used as part of process
>     termination when such a situation may exist.  It allows all
>     of the locks for a given lockowner to be released even
>     those that the client may not be aware because RPC's were
>     aborted early.
> 
> Add a new section:
> 
> 14.2.xx.  Operation yy: CLOSE_ALL - Release all locks for a lockowner
> 
>   SYNOPSIS
> 
>      owner ->
> 
>   ARGUMENT
> 
>      struct CLOSE_ALL4args {
>                 nfs_lockowner4  owner;
>      };
> 
>   RESULT
> 
>      struct CLOSE_ALL4res {
>                 nfsstat4        status;
>      };
> 
>   DESCRIPTION
> 
>      The CLOSE_ALL operation release all locks (both record
>      locks and share reservations) held by the specified
>      lockowner.  It is intended mainly as a recovery device
>      to allow the client to deal with uncertainty as to the
>      proper locking state which arises which a locking
>      operations (such as LOCK or OPEN) is part of RPC and
>      that RPC is aborted on the client resultng in siutation
>      in which the server response is not available to the client.
> 
>   ERRORS
> 
>      NFS4ERR_RESOURCE
>      NFS4ERR_SERVERFAULT
>      NFS4ERR_STALE_CLIENTID


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 14:40:48 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20807
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 14:40:45 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA26108;
	Thu, 6 Jan 2000 11:39:19 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA00575;
	Thu, 6 Jan 2000 11:39:04 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06Jcp510517
	for nfs4-wg-distrib; Thu, 6 Jan 2000 11:38:51 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.87.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06JcnY10514
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 11:38:50 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA21653;
	Thu, 6 Jan 2000 11:38:48 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA998957;
	Thu, 6 Jan 2000 11:38:20 -0800 (PST)
Message-Id: <200001061938.LAA998957@athyra.eng.sun.com>
To: "Noveck, Dave" <dave.noveck@netapp.com>
cc: "'shepler@eng.sun.com'" <shepler@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Changes for Open upgrade/downgrade 
In-reply-to: Your message of "Tue, 04 Jan 2000 09:53:52 PST."
             <4080CE03B682D311B589009027C2286638D3EC@tahoe.corp.netapp.com> 
Date: Thu, 06 Jan 2000 11:38:20 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

This looks like a good (and necessary) change to me.

I have one suggestion about wording.  You suggested the following
text:

     When multiple open files on the client are merged into
     a single open file object on the server, the close of
     one of the open files may necessitate change of the
     access and deny status of the open file on the server.

I would make that

     When multiple open files on the client are merged into a single
     open file object on the server, the close of one of the open
     files (on the client) may necessitate change of the access and
           ^^^^^^^^^^^^^^^
     deny status of the open file on the server.

mike


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 14:45:57 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA20927
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 14:45:54 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA09421;
	Thu, 6 Jan 2000 12:45:22 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA25380;
	Thu, 6 Jan 2000 11:45:13 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06JisH10529
	for nfs4-wg-distrib; Thu, 6 Jan 2000 11:44:54 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06JirY10526
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 11:44:53 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA01245
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 11:44:52 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id MAA09089
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 12:44:50 -0700 (MST)
Received: (qmail 26292 invoked from network); 6 Jan 2000 20:00:22 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 6 Jan 2000 20:00:22 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id LAA16075;
	Thu, 6 Jan 2000 11:44:48 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZTM24>; Thu, 6 Jan 2000 11:44:48 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D409@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Kupfer'" <Mike.Kupfer@eng.sun.com>,
        "Noveck, Dave"
	 <dave.noveck@netapp.com>
Cc: "'shepler@eng.sun.com'" <shepler@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: Changes for Open upgrade/downgrade 
Date: Thu, 6 Jan 2000 11:44:47 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> This looks like a good (and necessary) change to me.
> 
> I have one suggestion about wording.  You suggested the following
> text:
> 
>      When multiple open files on the client are merged into
>      a single open file object on the server, the close of
>      one of the open files may necessitate change of the
>      access and deny status of the open file on the server.
> 
> I would make that
> 
>      When multiple open files on the client are merged into a single
>      open file object on the server, the close of one of the open
>      files (on the client) may necessitate change of the access and
>            ^^^^^^^^^^^^^^^
>      deny status of the open file on the server.
 
Yes.  That's much clearer.


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 14:58:04 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA21226
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 14:58:02 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA02858;
	Thu, 6 Jan 2000 11:55:51 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA26001;
	Thu, 6 Jan 2000 11:55:43 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06JtPf10542
	for nfs4-wg-distrib; Thu, 6 Jan 2000 11:55:25 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.85.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06JtOY10539
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 11:55:24 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA24749;
	Thu, 6 Jan 2000 11:55:23 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA999064;
	Thu, 6 Jan 2000 11:54:55 -0800 (PST)
Message-Id: <200001061954.LAA999064@athyra.eng.sun.com>
To: "Noveck, Dave" <dave.noveck@netapp.com>
cc: "'shepler@eng.sun.com'" <shepler@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Changes for CLOSE_ALL operation 
In-reply-to: Your message of "Tue, 04 Jan 2000 11:06:59 PST."
             <4080CE03B682D311B589009027C2286638D3ED@tahoe.corp.netapp.com> 
Date: Thu, 06 Jan 2000 11:54:55 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

RELEASE_ALL (as Spencer has renamed it) addresses what I expect to be
the common case: the client fails to get the lock and the application
bails out and exits.  That's good.

Unfortunately, it's possible for the application to take a signal
(thereby aborting the current lock request), catch the signal, and
then resume operation.  It seems to me that any time the client aborts
a LOCK or LOCKU call before receiving a reply, it needs to
resynchronize with the server.  After poking through Section 8 a
couple times, I don't see how the client tells the server "there may
be a problem, let's resynchronize locking state".  Am I missing
something, or is this a hole in the protocol?

mike


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 16:48:09 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA22956
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 16:48:02 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA11055;
	Thu, 6 Jan 2000 14:47:36 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id NAA16577;
	Thu, 6 Jan 2000 13:47:30 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06Ll5e10632
	for nfs4-wg-distrib; Thu, 6 Jan 2000 13:47:05 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06Ll2Y10629
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 13:47:02 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id NAA24459
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 13:47:01 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id NAA08695
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 13:46:46 -0800 (PST)
Received: (qmail 19745 invoked from network); 6 Jan 2000 22:02:20 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 6 Jan 2000 22:02:20 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id NAA08400;
	Thu, 6 Jan 2000 13:46:04 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZT3PD>; Thu, 6 Jan 2000 13:46:03 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D40A@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Kupfer'" <Mike.Kupfer@eng.sun.com>
Cc: "'shepler@eng.sun.com'" <shepler@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: Changes for CLOSE_ALL operation 
Date: Thu, 6 Jan 2000 13:46:02 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> RELEASE_ALL (as Spencer has renamed it) addresses what I expect to be
> the common case: the client fails to get the lock and the application
> bails out and exits.  That's good.
> 
> Unfortunately, it's possible for the application to take a signal
> (thereby aborting the current lock request), catch the signal, and
> then resume operation.  It seems to me that any time the client aborts
> a LOCK or LOCKU call before receiving a reply, it needs to
> resynchronize with the server.  After poking through Section 8 a
> couple times, I don't see how the client tells the server "there may
> be a problem, let's resynchronize locking state".  Am I missing
> something, or is this a hole in the protocol?
 
I discussed some issues related to this at my talk at the Washington
IETF meeting.  There is an incompatibility between a lot of 
things that have traditionally been done in NFS implementations
(e.g. giving up on requests) and the fact that nfs v4 is no
longer stateless.  We're not in Kansas anymore (besides believing
in evolution, I mean :-).

If you can give up on a stateful request (LOCK, LOCKU, OPEN, CLOSE)
and continue operation of the lockowner (i.e. process), then 
you have problem.

One answer, which you might not like, is "Don't do that".

If this is too onerous for the user, there is an alternative
but it means changing some of the underlying RPC client-side
infrastructure, which people might not want to do.  From the
protocol point of view, there is really is no reason that
the fact that a process does not want to wait for the reply
to a given request, means that the client as whole has to forget
about it completely, and thus lose the ability to find
out the stateid when the server actually replies.  I suspect
that making such a big change in the implementation
infrastructure is not going to appeal to a lot of people
(I think it's kind of neat, but then I don't have to do
it).

Whether this is truly a hole in the protocol or just an
issue of implementation pragmatics doesn't really matter.
We need to have a protocol that people are going to 
implement.

If "Just say 'No'" isn't acceptable and allowing the 
process to disconnect from an ongoing request isn't
going to fly, then the protocol is going to have to 
help address this.  And since we want to have the
protocol be functionally complete, I think it has to
be now.
  


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 17:05:32 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23239
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 17:05:28 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA16249;
	Thu, 6 Jan 2000 14:03:32 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA21529;
	Thu, 6 Jan 2000 14:03:20 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06M32x10650
	for nfs4-wg-distrib; Thu, 6 Jan 2000 14:03:02 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.89.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06M30Y10647
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 14:03:01 -0800 (PST)
Received: from teal (awe8-125.Central.Sun.COM [129.147.8.125])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id OAA13451
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 14:02:59 -0800 (PST)
Date: Thu, 6 Jan 2000 14:05:47 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: Re: seqid in SETCLIENTID
To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
In-Reply-To: "Your message with ID" <4080CE03B682D311B589009027C2286638D3E4@tahoe.corp.netapp.com>
Message-ID: <Roam.SIMC.2.0.6.947196347.28940.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

"Noveck, Dave" <dave.noveck@netapp.com> writes:

> If we really need this in the spec, then it has
> to explained somewhere.  This is a sequence space
> which is different from all the others, which are
> lockowner-based, so its rules and logic need to be 
> set out somewhere.  Right now they aren't.

I didn't notice that sequence numbers were per nfs_lockowner. So
Dave is right.

If caller doesn't set the confirm boolean to TRUE, then very bad things will
happen if the seqid isn't something like an absolute time stamp. If there is
no seqid present, then there will be frequent instances of the a client's
locks getting blown away. Rather than deal with separate sequence spaces, I
think it would be simpler to make SETCLIENTID confirmation a mandatory feature
... i.e. remove the confirm boolean from SETCLIENT4args, and the associated
sequence numbers from SETCLIENT4args, and SETCLIENT_CONFIRM4args.

BTW, the OPEN confirmation stuff in -03 of the specification doesn't appear to
match my intent. The confirmation step is only needed when the server has no
record of the client's clientid. It looks to me that OPEN4resok always returns
an open confirmation cookie. This isn't desirable due to the extra round
trips.

As a result of some e-mails Dave N. sent me over the holiday break, I've
re-thought the OPEN confirmation stuff a bit. Since a replayed OPEN is only
a danger when the server has freed the record of the client's clientid,
I think that simply adding a new error code:

        NFS4ERR_CLIENTID_NOT_SET

to the list that can be returned by OPEN will suffice. In that case,
the client simply sends a SETCLIENTID operation  and once the clientid set up
is done, re-issues the OPEN with a seqid of zero.

This way OPEN is simpler, and we get rid of OPEN_CONFIRM.

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 17:24:55 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23436
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 17:24:51 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA22690;
	Thu, 6 Jan 2000 14:22:14 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA25117;
	Thu, 6 Jan 2000 14:22:06 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06MLmW10663
	for nfs4-wg-distrib; Thu, 6 Jan 2000 14:21:48 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.89.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06MLlY10660
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 14:21:47 -0800 (PST)
Received: from teal (awe8-125.Central.Sun.COM [129.147.8.125])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id OAA15739;
	Thu, 6 Jan 2000 14:21:46 -0800 (PST)
Date: Thu, 6 Jan 2000 14:24:35 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: RE: Changes for CLOSE_ALL operation 
To: "Noveck, Dave" <dave.noveck@netapp.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <4080CE03B682D311B589009027C2286638D40A@tahoe.corp.netapp.com>
Message-ID: <Roam.SIMC.2.0.6.947197475.3378.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> If you can give up on a stateful request (LOCK, LOCKU, OPEN, CLOSE)
> and continue operation of the lockowner (i.e. process), then 
> you have problem.
> 
> One answer, which you might not like, is "Don't do that".

Perhaps I'm missing something, but it seems to me that if  the client is
capable of maintaining an nfs_lockowner, it is capable of maintaining a record
of the last stateful request on that nfs_lockowner that it gave up on. Once
the client is ready to continue operation, it's free to re-issue the last
request, and if the request is a LOCK or OPEN, issue a LOCKU or CLOSE to
nullify it. One could use this strategy to obviate the need to issue or a
RELEASE_ALL, though I willing to concede that RELEASE_ALL might be simpler for
the common case.

The advantage NFSv4 has over NLM, is in the area of blocking locks. With NLM,
the server would block on the client's behalf. With NFSv4, the
server  doesn't block indefinitely on the client's behalf, and instead
returns success or failure immediately.

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan  6 17:31:18 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA23671
	for <nfsv4-archive@odin.ietf.org>; Thu, 6 Jan 2000 17:31:13 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id OAA25324;
	Thu, 6 Jan 2000 14:29:25 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA02641;
	Thu, 6 Jan 2000 14:29:13 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e06MT3Z10682
	for nfs4-wg-distrib; Thu, 6 Jan 2000 14:29:03 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.89.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e06MT2Y10679
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 6 Jan 2000 14:29:02 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA16774;
	Thu, 6 Jan 2000 14:29:03 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA999780;
	Thu, 6 Jan 2000 14:28:36 -0800 (PST)
Message-Id: <200001062228.OAA999780@athyra.eng.sun.com>
To: Mike Eisler <mre@eng.sun.com>
cc: "Noveck, Dave" <dave.noveck@netapp.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Changes for CLOSE_ALL operation 
In-reply-to: Your message of "Thu, 06 Jan 2000 14:24:35 PST."
             <Roam.SIMC.2.0.6.947197475.3378.mre@eng.sun.com> 
Date: Thu, 06 Jan 2000 14:28:36 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

> Once
> the client is ready to continue operation, it's free to re-issue the last
> request, and if the request is a LOCK or OPEN, issue a LOCKU or CLOSE to
> nullify it. One could use this strategy to obviate the need to issue or a
> RELEASE_ALL, though I willing to concede that RELEASE_ALL might be simpler for
> the common case.

Sounds good to me.

mike


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 09:32:15 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA18656
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 09:32:14 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id GAA05691;
	Fri, 7 Jan 2000 06:29:37 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id GAA13516;
	Fri, 7 Jan 2000 06:29:09 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07ESQg11130
	for nfs4-wg-distrib; Fri, 7 Jan 2000 06:28:26 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07ESOY11127
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 06:28:24 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id GAA17021
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 06:28:21 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id GAA29292
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 06:28:21 -0800 (PST)
Received: (qmail 29958 invoked from network); 7 Jan 2000 14:44:13 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 7 Jan 2000 14:44:13 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id GAA15323;
	Fri, 7 Jan 2000 06:28:20 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZTZC2>; Fri, 7 Jan 2000 06:28:20 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D40C@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Eisler'" <mre@eng.sun.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Changes for CLOSE_ALL operation 
Date: Fri, 7 Jan 2000 06:28:18 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> > If you can give up on a stateful request (LOCK, LOCKU, OPEN, CLOSE)
> > and continue operation of the lockowner (i.e. process), then 
> > you have problem.
> > 
> > One answer, which you might not like, is "Don't do that".
> 
> Perhaps I'm missing something, but it seems to me that if  
> the client is
> capable of maintaining an nfs_lockowner, it is capable of 
> maintaining a record
> of the last stateful request on that nfs_lockowner that it 
> gave up on. Once
> the client is ready to continue operation, it's free to 
> re-issue the last
> request, and if the request is a LOCK or OPEN, issue a LOCKU 
> or CLOSE to
> nullify it. One could use this strategy to obviate the need 
> to issue or a
> RELEASE_ALL, though I willing to concede that RELEASE_ALL 
> might be simpler for
> the common case.

OK.  This works.

I had been worried about seqid management and not knowing the
proper stateid for requests that require them.  Your solution
is very nice because because it takes advantage of the 
existing sequence logic to resolve all that.  If you re-issue
a LOCK or OPEN with the original seqid you'll either have it 
done if it wasn't or get back the response from the original
request, otherwise.  The you have the data to do the CLOSE
or LOCKU properly.  In the case of an interrupted LOCKU or
CLOSE, the same reissue trick works.  Neat.

Maybe the spec should say something about this, for people
(like me) to whom this solution is not as obvious as it 
was to you.
 

 


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 09:44:30 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA18966
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 09:44:29 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA20996;
	Fri, 7 Jan 2000 07:44:26 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id GAA10344;
	Fri, 7 Jan 2000 06:44:19 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07EhvI11165
	for nfs4-wg-distrib; Fri, 7 Jan 2000 06:43:57 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.84.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07EhuY11162
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 06:43:56 -0800 (PST)
Received: from teal (awe8-116.Central.Sun.COM [129.147.8.116])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id GAA05569;
	Fri, 7 Jan 2000 06:43:55 -0800 (PST)
Date: Fri, 7 Jan 2000 06:46:44 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: RE: Changes for CLOSE_ALL operation 
To: "Noveck, Dave" <dave.noveck@netapp.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <4080CE03B682D311B589009027C2286638D40C@tahoe.corp.netapp.com>
Message-ID: <Roam.SIMC.2.0.6.947256404.4249.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> > > If you can give up on a stateful request (LOCK, LOCKU, OPEN, CLOSE)
> > > and continue operation of the lockowner (i.e. process), then 
> > > you have problem.
> > > 
> > > One answer, which you might not like, is "Don't do that".
> > 
> > Perhaps I'm missing something, but it seems to me that if  

I missing something but it wasn't fatal. See below.

> > the client is
> > capable of maintaining an nfs_lockowner, it is capable of 
> > maintaining a record
> > of the last stateful request on that nfs_lockowner that it 
> > gave up on. Once
> > the client is ready to continue operation, it's free to 
> > re-issue the last
> > request, and if the request is a LOCK or OPEN, issue a LOCKU 
> > or CLOSE to
> > nullify it. One could use this strategy to obviate the need 
> > to issue or a
> > RELEASE_ALL, though I willing to concede that RELEASE_ALL 
> > might be simpler for
> > the common case.
> 
> OK.  This works.
> 
> I had been worried about seqid management and not knowing the
> proper stateid for requests that require them.  Your solution
> is very nice because because it takes advantage of the 
> existing sequence logic to resolve all that.  If you re-issue
> a LOCK or OPEN with the original seqid you'll either have it 
> done if it wasn't or get back the response from the original
				^^^^^^^^^^^^^^^^^^^^^

This is the part that was missing. See below.

> request, otherwise.  The you have the data to do the CLOSE
> or LOCKU properly.  In the case of an interrupted LOCKU or
> CLOSE, the same reissue trick works.  Neat.
> 
> Maybe the spec should say something about this, for people
> (like me) to whom this solution is not as obvious as it 
> was to you.

Yes the spec should, but mainly because, on further thought, I also realize
that the server MUST similarly keep track of the last request it received and
responded to, including the requests's seqid (which should be obvious from the
spec), and the request's stateid, and the responses new stateid. Otherwise, we
are relying on the the duplicate request cache to furnish the correct
information, and since dup req caches typically have an LRU algorithm, it is
possible my proposed scheme will fall apart.

Since the server is maintaining state for nfs_lockowner as long as there
are open files, this is not an onerous requirement. Of course, once the
client has issued the last CLOSE, RELEASE_ALL, or LOCKU on its last file,
the server will want to keep the nfs_lockowner around for a while to ensure
that a retried CLOSE, RELEASE_ALL, LOCKU gets the right results. This is
sort of analagous to the TCP state machine that has end-points stay in 
CLOSEWAIT or TIMEWAIT for a while before finally disposing of them.

How strongly do we feel we need RELEASE_ALL then?

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 10:15:32 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA19767
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 10:15:30 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA18748;
	Fri, 7 Jan 2000 07:13:10 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA21267;
	Fri, 7 Jan 2000 07:12:59 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07FCco11213
	for nfs4-wg-distrib; Fri, 7 Jan 2000 07:12:39 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07FCbY11210
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 07:12:37 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA19700
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 07:12:37 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id HAA15561
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 07:12:36 -0800 (PST)
Received: (qmail 23799 invoked from network); 7 Jan 2000 15:28:29 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 7 Jan 2000 15:28:29 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id HAA21018;
	Fri, 7 Jan 2000 07:12:35 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZTZW2>; Fri, 7 Jan 2000 07:12:35 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D40D@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Eisler'" <mre@eng.sun.com>,
        "Noveck, Dave"
	 <dave.noveck@netapp.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Changes for CLOSE_ALL operation 
Date: Fri, 7 Jan 2000 07:12:34 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> > > > If you can give up on a stateful request (LOCK, LOCKU, 
> OPEN, CLOSE)
> > > > and continue operation of the lockowner (i.e. process), then 
> > > > you have problem.
> > > > 
> > > > One answer, which you might not like, is "Don't do that".
> > > 
> > > Perhaps I'm missing something, but it seems to me that if  
> 
> I missing something but it wasn't fatal. See below.
> 
> > > the client is
> > > capable of maintaining an nfs_lockowner, it is capable of 
> > > maintaining a record
> > > of the last stateful request on that nfs_lockowner that it 
> > > gave up on. Once
> > > the client is ready to continue operation, it's free to 
> > > re-issue the last
> > > request, and if the request is a LOCK or OPEN, issue a LOCKU 
> > > or CLOSE to
> > > nullify it. One could use this strategy to obviate the need 
> > > to issue or a
> > > RELEASE_ALL, though I willing to concede that RELEASE_ALL 
> > > might be simpler for
> > > the common case.
> > 
> > OK.  This works.
> > 
> > I had been worried about seqid management and not knowing the
> > proper stateid for requests that require them.  Your solution
> > is very nice because because it takes advantage of the 
> > existing sequence logic to resolve all that.  If you re-issue
> > a LOCK or OPEN with the original seqid you'll either have it 
> > done if it wasn't or get back the response from the original
> 				^^^^^^^^^^^^^^^^^^^^^
> 
> This is the part that was missing. See below.
> 
> > request, otherwise.  The you have the data to do the CLOSE
> > or LOCKU properly.  In the case of an interrupted LOCKU or
> > CLOSE, the same reissue trick works.  Neat.
> > 
> > Maybe the spec should say something about this, for people
> > (like me) to whom this solution is not as obvious as it 
> > was to you.
> 
> Yes the spec should, but mainly because, on further thought, 
> I also realize
> that the server MUST similarly keep track of the last request 
> it received and
> responded to, including the requests's seqid (which should be 
> obvious from the
> spec), and the request's stateid, and the responses new 
> stateid. Otherwise, we
> are relying on the the duplicate request cache to furnish the correct
> information, and since dup req caches typically have an LRU 
> algorithm, it is
> possible my proposed scheme will fall apart.

I think the spec already requires the necessary stuff.  In
section 8.2.4, it says:

    The server maintains the last sequence number (L) 
    received and the response that was returned.

And then later in the same section, it sayd:

    If a duplicate of a last request (r == L) is received,
    the stored response is returned.

This response will have the stateid that you need.  I
assume that this is all separate from any duplicate 
request cache, since the spec doesn't even acknowledge
the existence of duplicate request caches.

One thing, I was missing, is that CLOSE currently doen't
have a seqid so reissuing a CLOSE will not work the same
way.  I think this is probably OK, since if you interrupt a
close, and then reissue, the CLOSE will either work with
the original stateid, if it hadn't really happened or give
you a NFS4ERR_BAD_STATEID.  Right now, the spec says this
error indicates a logic error so that would have to change.

> 
> Since the server is maintaining state for nfs_lockowner as 
> long as there
> are open files, this is not an onerous requirement. Of 
> course, once the
> client has issued the last CLOSE, RELEASE_ALL, or LOCKU on 
> its last file,
> the server will want to keep the nfs_lockowner around for a 
> while to ensure
> that a retried CLOSE, RELEASE_ALL, LOCKU gets the right 
> results. This is
> sort of analagous to the TCP state machine that has 
> end-points stay in 
> CLOSEWAIT or TIMEWAIT for a while before finally disposing of them.

I think the spec now says that LOCKU should be done before the
CLOSE.  If RELEASE_ALL goes away, then CLOSE is the only issue
and I think that it can be done without requiring the server
to maintain sequence state beyond the point at which there are
no locks, although for pragmatic reasons, it obviously would
like not to get rid of this info immediately.

> 
> How strongly do we feel we need RELEASE_ALL then?
 
I'd say that if can agree that we have a method to recover 
from interrupted requests that works, and we maintain that
agreement for 24 consecutive hours, then I don't see the
need for RELEASE_ALL.


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 10:52:43 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA20714
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 10:52:42 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA01912;
	Fri, 7 Jan 2000 07:49:57 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA23835;
	Fri, 7 Jan 2000 07:49:48 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07FnUA11231
	for nfs4-wg-distrib; Fri, 7 Jan 2000 07:49:30 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.85.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07FnTY11228
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 07:49:29 -0800 (PST)
Received: from teal (awe8-116.Central.Sun.COM [129.147.8.116])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id HAA02205;
	Fri, 7 Jan 2000 07:49:28 -0800 (PST)
Date: Fri, 7 Jan 2000 07:52:17 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: RE: Changes for CLOSE_ALL operation 
To: "Noveck, Dave" <dave.noveck@netapp.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: "Your message with ID" <4080CE03B682D311B589009027C2286638D40D@tahoe.corp.netapp.com>
Message-ID: <Roam.SIMC.2.0.6.947260337.19636.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

> One thing, I was missing, is that CLOSE currently doen't
> have a seqid so reissuing a CLOSE will not work the same
	^^^^^^^^^^^^^^^^^^^^^^^^^
> way.  I think this is probably OK, since if you interrupt a
		^^^^^^^^^^^^^^^^^^^^^
> close, and then reissue, the CLOSE will either work with
> the original stateid, if it hadn't really happened or give
> you a NFS4ERR_BAD_STATEID.  Right now, the spec says this
> error indicates a logic error so that would have to change.

> > How strongly do we feel we need RELEASE_ALL then?
>  
> I'd say that if can agree that we have a method to recover 
> from interrupted requests that works, and we maintain that
> agreement for 24 consecutive hours, then I don't see the
> need for RELEASE_ALL.

A while back, in some e-mail I sent to David Robinson and others
that argued for a confirmation step in OPEN/SETCLIENTID I noted:

	CLOSE does not contain a sequence number. There might be a risk
	of an old CLOSE removing the share reservation on a file.
	However, because CLOSE has a stateid, the server
	implementation, if it encodes a generation value in stateid,
	can mitigate this.

It seems to me that there are lots of arguments for including a seqid
with CLOSE and few arguments against. It certainly cannot hurt.
Let's drop RELEASE_ALL and add the seqid to CLOSE4args.
Let the 24 hour clock start now.

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 11:09:01 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA21080
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 11:08:59 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA26306;
	Fri, 7 Jan 2000 09:08:52 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA28461;
	Fri, 7 Jan 2000 08:08:47 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07G8Tr11251
	for nfs4-wg-distrib; Fri, 7 Jan 2000 08:08:29 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07G8RY11248
	for <nfsv4-wg@sunroof.Eng.Sun.COM>; Fri, 7 Jan 2000 08:08:27 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA24402
	for <nfsv4-wg@sunroof.Eng.Sun.COM>; Fri, 7 Jan 2000 08:08:27 -0800 (PST)
Received: from imps0014.us.dg.com (imps0014.us.dg.com [128.221.44.14])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA09524
	for <nfsv4-wg@sunroof.Eng.Sun.COM>; Fri, 7 Jan 2000 08:08:26 -0800 (PST)
Received: by imps0014.us.dg.com with Internet Mail Service (5.5.2650.21)
	id <C1XM7JSZ>; Fri, 7 Jan 2000 11:08:22 -0500
Message-ID: <8BA17A12ACBDD11195FD0000F807D216054314E7@imps0034.us.dg.com>
From: "Vanderputten, Thomas" <tvanderputten@imps0014.us.dg.com>
To: "'nfsv4-wg@sunroof.Eng.Sun.COM'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Subscription Request
Date: Fri, 7 Jan 2000 11:08:20 -0500 
X-Mailer: Internet Mail Service (5.5.2650.21)

SUBSCRIBE


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 11:19:04 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA21318
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 11:19:04 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA11801;
	Fri, 7 Jan 2000 08:16:05 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA26293;
	Fri, 7 Jan 2000 08:15:48 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07GFd011265
	for nfs4-wg-distrib; Fri, 7 Jan 2000 08:15:39 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07GFbY11262
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 08:15:38 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA25257
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 08:15:38 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id IAA13031
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 08:15:36 -0800 (PST)
Received: (qmail 25315 invoked from network); 7 Jan 2000 16:31:31 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 7 Jan 2000 16:31:31 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id IAA00872;
	Fri, 7 Jan 2000 08:15:35 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZT5X2>; Fri, 7 Jan 2000 08:15:35 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D411@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Eisler'" <mre@eng.sun.com>,
        "Noveck, Dave"
	 <dave.noveck@netapp.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Changes for CLOSE_ALL operation 
Date: Fri, 7 Jan 2000 08:15:35 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> > One thing, I was missing, is that CLOSE currently doen't
> > have a seqid so reissuing a CLOSE will not work the same
> 	^^^^^^^^^^^^^^^^^^^^^^^^^
> > way.  I think this is probably OK, since if you interrupt a
> 		^^^^^^^^^^^^^^^^^^^^^
> > close, and then reissue, the CLOSE will either work with
> > the original stateid, if it hadn't really happened or give
> > you a NFS4ERR_BAD_STATEID.  Right now, the spec says this
> > error indicates a logic error so that would have to change.
> 
> > > How strongly do we feel we need RELEASE_ALL then?
> >  
> > I'd say that if can agree that we have a method to recover 
> > from interrupted requests that works, and we maintain that
> > agreement for 24 consecutive hours, then I don't see the
> > need for RELEASE_ALL.
> 
> A while back, in some e-mail I sent to David Robinson and others
> that argued for a confirmation step in OPEN/SETCLIENTID I noted:
> 
> 	CLOSE does not contain a sequence number. There might be a risk
> 	of an old CLOSE removing the share reservation on a file.
> 	However, because CLOSE has a stateid, the server
> 	implementation, if it encodes a generation value in stateid,
> 	can mitigate this.
> 
> It seems to me that there are lots of arguments for including a seqid
> with CLOSE and few arguments against. It certainly cannot hurt.
> Let's drop RELEASE_ALL and add the seqid to CLOSE4args.
> Let the 24 hour clock start now.
 
Agreed.


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 13:05:04 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24360
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 13:05:03 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id KAA26614;
	Fri, 7 Jan 2000 10:04:03 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id KAA13947;
	Fri, 7 Jan 2000 10:03:55 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07I3ai11384
	for nfs4-wg-distrib; Fri, 7 Jan 2000 10:03:36 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.81.144] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07I3YY11381
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 10:03:35 -0800 (PST)
Received: from terra.eng.sun.com (terra.Eng.Sun.COM [129.146.86.99])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA23334
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 10:03:34 -0800 (PST)
Received: (from brent@localhost)
	by terra.eng.sun.com (8.9.3+Sun/8.9.3) id KAA02111
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 7 Jan 2000 10:01:54 -0800 (PST)
Date: Fri, 7 Jan 2000 10:01:54 -0800 (PST)
From: Brent Callaghan <Brent.Callaghan@eng.sun.com>
Message-Id: <200001071801.KAA02111@terra.eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Last Call: LIPKEY - A Low Infrastructure Public Key Mechanism
	 Using SPKM to Proposed Standard
X-Sun-Charset: US-ASCII


Note: LIPKEY is described in the current NFSv4 spec as a required
security mechanism under RPCSEC_GSS along with Kerberos v5.

	Brent


----- Begin Included Message -----

From ietf-123-owner@loki.ietf.org Fri Jan  7 07:08:40 2000
To: IETF-Announce: ;
Cc: cat-ietf@mit.edu
SUBJECT: Last Call: LIPKEY - A Low Infrastructure Public Key Mechanism
	 Using SPKM to Proposed Standard


The IESG has received a request from the Common Authentication
Technology Working Group to consider LIPKEY - A Low Infrastructure
Public Key Mechanism Using SPKM <draft-ietf-cat-lipkey-03.txt> as a
Proposed Standard.

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action.  Please send any comments to the
iesg@ietf.org or ietf@ietf.org mailing lists by January 20, 2000.

Files can be obtained via
http://www.ietf.org/internet-drafts/draft-ietf-cat-lipkey-03.txt



----- End Included Message -----



From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 13:24:55 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA24645
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 13:24:54 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA04191;
	Fri, 7 Jan 2000 11:22:23 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id KAA20924;
	Fri, 7 Jan 2000 10:22:10 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07ILrN11431
	for nfs4-wg-distrib; Fri, 7 Jan 2000 10:21:53 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.87.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07ILpY11428
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 10:21:51 -0800 (PST)
Received: from teal (awe8-116.Central.Sun.COM [129.147.8.116])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with SMTP id KAA25684
	for <nfsv4-wg@sunroof>; Fri, 7 Jan 2000 10:21:51 -0800 (PST)
Date: Fri, 7 Jan 2000 10:24:39 -0800 (PST)
From: Mike Eisler <mre@eng.sun.com>
Reply-To: Mike Eisler <mre@eng.sun.com>
Subject: Re:  seqid in SETCLIENTID
To: nfsv4-wg@sunroof.eng.sun.com
Message-ID: <Roam.SIMC.2.0.6.947269479.22520.mre@eng.sun.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

I wrote yesterday:

> As a result of some e-mails Dave N. sent me over the
> holiday break, I've re-thought the OPEN confirmation stuff
> a bit. Since a replayed OPEN is only a danger when the
> server has freed the record of the client's clientid, I
						^^^^^^
> think that simply adding a new error code:
> 
> 	NFS4ERR_CLIENTID_NOT_SET
> 
> to the list that can be returned by OPEN will suffice. In
> that case, the client simply sends a SETCLIENTID operation
> and once the clientid set up is done, re-issues the OPEN
> with a seqid of zero.
> 
> This way OPEN is simpler, and we get rid of OPEN_CONFIRM.

The above is completely bogus because I -- once again -- confused
nfs_lockowners with clientids. Dave N. pointed out to me that we
already have an NFS4ERR_STALE_CLIENTID error to deal with the case when
the server reboots and has lost the record of the clientid. My original
OPEN_CONFIRM stuff was intended to allow the server to safely delete
nfs_lockowner's when they fell into disuse. Apologies for the
confusion.

So we can *not* get rid of OPEN_CONFIRM. Revision -03 still needs to be
tweaked to only do the OPEN_CONFIRM step when the server asks for it.
What's missing is a bit in the rflags of OPEN4res to tell the client to
do so.

	-mre



From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan  7 14:25:07 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA25533
	for <nfsv4-archive@odin.ietf.org>; Fri, 7 Jan 2000 14:25:06 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA05645;
	Fri, 7 Jan 2000 12:22:16 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA04653;
	Fri, 7 Jan 2000 11:22:00 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) id e07JLgg11539
	for nfs4-wg-distrib; Fri, 7 Jan 2000 11:21:42 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.89.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta10+Sun/8.10.0.Beta10) with ESMTP id e07JLfY11536
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 7 Jan 2000 11:21:41 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA08510;
	Fri, 7 Jan 2000 11:21:40 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA166005;
	Fri, 7 Jan 2000 11:21:13 -0800 (PST)
Message-Id: <200001071921.LAA166005@athyra.eng.sun.com>
To: "Noveck, Dave" <dave.noveck@netapp.com>
cc: "'Mike Eisler'" <mre@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Changes for CLOSE_ALL operation 
In-reply-to: Your message of "Fri, 07 Jan 2000 08:15:35 PST."
             <4080CE03B682D311B589009027C2286638D411@tahoe.corp.netapp.com> 
Date: Fri, 07 Jan 2000 11:21:12 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

> > Let's drop RELEASE_ALL and add the seqid to CLOSE4args.
> > Let the 24 hour clock start now.
>  
> Agreed.

Ditto.

mike


From nfs4-wg-request@sunroof.eng.sun.com  Mon Jan 10 19:35:00 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA15651
	for <nfsv4-archive@odin.ietf.org>; Mon, 10 Jan 2000 19:34:59 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id QAA24211;
	Mon, 10 Jan 2000 16:34:14 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id QAA19501;
	Mon, 10 Jan 2000 16:34:01 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0B0Xew27803
	for nfs4-wg-distrib; Mon, 10 Jan 2000 16:33:40 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.89.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0B0Xdw27800
	for <nfs4-wg@sunroof.eng.sun.com>; Mon, 10 Jan 2000 16:33:39 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA17642
	for <nfs4-wg@sunroof.eng.sun.com>; Mon, 10 Jan 2000 16:33:39 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA258272
	for <nfs4-wg@sunroof>; Mon, 10 Jan 2000 16:33:09 -0800 (PST)
Message-Id: <200001110033.QAA258272@athyra.eng.sun.com>
To: nfs4-wg@sunroof.eng.sun.com
Subject: "indivisible lock" semantics
Date: Mon, 10 Jan 2000 16:33:08 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

Spencer and I exchanged some mail last week about the fact that v4
locks are indivisible (i.e., they follow Windows semantics, rather
than Unix semantics).  The rest of this message contains excerpts from
two messages that I sent to Spencer.

I'm not proposing a change to the protocol, but I would like to put
this on the table for discussion, to see if anyone has further
comments that might impact the protocol or spec.  The reason I'm not
proposing a protocol change is that I think it's rare for Unix
applications to take advantage of "divisible lock" semantics.  Given
the date, I think it's more important to move forward with what we
have.

Excerpt #1:

>>>>> "Mike" == Mike Kupfer <Mike.Kupfer@eng.sun.com> writes:

    Mike> Page 58, Section 8.2.3: for a Unix client talking to a Win32
    Mike> server, some entity, either the client or the server, has to
    Mike> map a Posix locking request to (potentially) a series of
    Mike> Win32 locking requests.  The series of Win32 requests should
    Mike> be atomic.  For example, it is a legal Posix request to
    Mike> unlock a hole out of the middle of an existing lock.  The
    Mike> Win32 API expresses this as removing the old lock and
    Mike> creating two new ones.  The atomicity requirement is that
    Mike> nobody else create a conflicting lock between the time the
    Mike> first lock is removed and the two new locks are created.

    Mike> The I-D places this responsibility on the client, asserting
    Mike> that it is easier for the (Unix) client to do this
    Mike> conversion than it is for the (Win32) server.  I think this
    Mike> is false, particularly in light of the atomicity issue.

    Mike> I don't see any simple ways to deal with the atomicity
    Mike> issue.  Fortunately, it's rare for a Unix application to
    Mike> change subranges of an existing lock, so perhaps the
    Mike> protocol need not provide an atomicity guarantee.  If a
    Mike> conflicting lock is created in the middle of a series of
    Mike> "Win32" operations, the client could simply treat the lock
    Mike> as being lost and notify the application.

    Mike> So I guess I'm asking that the last paragraph of Section
    Mike> 8.2.3 be rewritten to clarify this issue.  Let me know if
    Mike> you want help with specific verbage.

Excerpt #2:

>>>>> "Mike" == Mike Kupfer <Mike.Kupfer@eng.sun.com> writes:

    Mike> Hmm, the more I look at the indivisible locks semantics, the
    Mike> less I like them.  Suppose you have two processes, A and B,
    Mike> each of which has a read lock on a byte range.  Now suppose
    Mike> process A submits a blocking request (F_SETLKW) to upgrade
    Mike> half the region to a write lock.  You can do this with the
    Mike> current NLM protocol.  Process A simply requests the upgrade
    Mike> and goes to sleep until the server grants it.  With
    Mike> indivisible locks, process A goes to sleep and wakes up
    Mike> every now and then to see if there are conflicting locks for
    Mike> the range.  Once there are no more conflicts, process A can
    Mike> release its lock and obtain the 2 new locks (one for the new
    Mike> write-lock range, one for the remaining read-lock range).
    Mike> Yuck.

    Mike> Of course, a Win32 server would have to do something similar
    Mike> if the protocol supported Posix-style locking.  The
    Mike> difference is that with indivisible locks, the client has to
    Mike> poll the server.  (Or I suppose it could submit a dummy
    Mike> write lock request and wait for the server to grant it.)
    Mike> With Posix-style locking, the server only has to poll the
    Mike> local locking interace provided by the OS.

    Mike> I guess the good news is that this can be considered unusual
    Mike> behavior, and that most applications will not split up
    Mike> existing locks like that.

    Mike> Anway, here's a counter-proposal for the first replacement
    Mike> paragraph that you suggested:

    Mike> "The byte range of a lock is indivisible.  A range may be
    Mike> locked or unlocked between read and write but may not have
    Mike> subranges unlocked or changed between read and write.  These
    Mike> are the semantics provided by the Win32 environment but only
    Mike> a subset of the semantics provided by Unix environment.
    Mike> This means that Unix clients may need to emulate a single
    Mike> locking request with multiple NFS calls.  For example, if a
    Mike> subrange is unlocked, the client will need to unlock the
    Mike> entire range and lock the new regions.  This creates a
    Mike> window during which a conflicting lock can be taken by
    Mike> another client.  If this happens, the server will reject the
    Mike> client's attempt to create the new regions, and the client
    Mike> will notify the application that the lock has been lost."

mike


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 11:22:29 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA14177
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 11:22:27 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA28645;
	Tue, 11 Jan 2000 08:19:39 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA28383;
	Tue, 11 Jan 2000 08:19:27 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BGJ8R28701
	for nfs4-wg-distrib; Tue, 11 Jan 2000 08:19:08 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BGJ7w28698
	for <nfs4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 08:19:07 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA28332
	for <nfs4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 08:19:07 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id JAA22647
	for <nfs4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 09:18:57 -0700 (MST)
Received: (qmail 2254 invoked from network); 11 Jan 2000 16:36:33 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 11 Jan 2000 16:36:33 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id IAA19616;
	Tue, 11 Jan 2000 08:18:55 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZVN35>; Tue, 11 Jan 2000 08:18:48 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D421@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Kupfer'" <Mike.Kupfer@eng.sun.com>, nfs4-wg@sunroof.eng.sun.com
Subject: RE: "indivisible lock" semantics
Date: Tue, 11 Jan 2000 08:18:46 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> Spencer and I exchanged some mail last week about the fact that v4
> locks are indivisible (i.e., they follow Windows semantics, rather
> than Unix semantics).  The rest of this message contains excerpts from
> two messages that I sent to Spencer.
> 
> I'm not proposing a change to the protocol, but I would like to put
> this on the table for discussion, to see if anyone has further
> comments that might impact the protocol or spec.  The reason I'm not
> proposing a protocol change is that I think it's rare for Unix
> applications to take advantage of "divisible lock" semantics.  Given
> the date, I think it's more important to move forward with what we
> have.

I agree that this is not something that should cause us to delay the
protocol.  I'm not even sure that we would need to accomodate this
if we had lots of spare time.

I'm curious about the adjective "rare" as opposed to "non-existent".
I'm not saying that such programs don't exist, but I've never
seen one.  Has anybody else?

> 
> Excerpt #1:
> 
> >>>>> "Mike" == Mike Kupfer <Mike.Kupfer@eng.sun.com> writes:
> 
>     Mike> Page 58, Section 8.2.3: for a Unix client talking to a Win32
>     Mike> server, some entity, either the client or the server, has to
>     Mike> map a Posix locking request to (potentially) a series of
>     Mike> Win32 locking requests.  The series of Win32 requests should
>     Mike> be atomic.  For example, it is a legal Posix request to
>     Mike> unlock a hole out of the middle of an existing lock.  The
>     Mike> Win32 API expresses this as removing the old lock and
>     Mike> creating two new ones.  The atomicity requirement is that
>     Mike> nobody else create a conflicting lock between the time the
>     Mike> first lock is removed and the two new locks are created.
> 
>     Mike> The I-D places this responsibility on the client, asserting
>     Mike> that it is easier for the (Unix) client to do this
>     Mike> conversion than it is for the (Win32) server.  I think this
>     Mike> is false, particularly in light of the atomicity issue.
> 
>     Mike> I don't see any simple ways to deal with the atomicity
>     Mike> issue.  Fortunately, it's rare for a Unix application to
>     Mike> change subranges of an existing lock, so perhaps the
>     Mike> protocol need not provide an atomicity guarantee.  If a
>     Mike> conflicting lock is created in the middle of a series of
>     Mike> "Win32" operations, the client could simply treat the lock
>     Mike> as being lost and notify the application.

It wouldn't necessarily know.  It could be that another client got 
a conflicting lock and gave it up before you got around to getting 
the second locked region.  The result would be that you wouldn't
have the atomicity guarantee and you wouldn't know it.

As you say, the assertion that this allows you to duplicate UNIX
semantics is false.  I think the spec should say that the protoocl
allows you to provide a useful subset ("the useful subset" would be
more correct) of UNIX semantics but that atomically unlocking a 
subrange is not possible.

> 
>     Mike> So I guess I'm asking that the last paragraph of Section
>     Mike> 8.2.3 be rewritten to clarify this issue.  Let me know if
>     Mike> you want help with specific verbage.
> 
> Excerpt #2:
> 
> >>>>> "Mike" == Mike Kupfer <Mike.Kupfer@eng.sun.com> writes:
> 
>     Mike> Hmm, the more I look at the indivisible locks semantics, the
>     Mike> less I like them.  Suppose you have two processes, A and B,
>     Mike> each of which has a read lock on a byte range.  Now suppose
>     Mike> process A submits a blocking request (F_SETLKW) to upgrade
>     Mike> half the region to a write lock.  You can do this with the
>     Mike> current NLM protocol.  Process A simply requests the upgrade
>     Mike> and goes to sleep until the server grants it.  With
>     Mike> indivisible locks, process A goes to sleep and wakes up
>     Mike> every now and then to see if there are conflicting locks for
>     Mike> the range.  Once there are no more conflicts, process A can
>     Mike> release its lock and obtain the 2 new locks (one for the new
>     Mike> write-lock range, one for the remaining read-lock range).
>     Mike> Yuck.

I want to be clear about the details here.  Let's suppose that 
region Z consists of two abutting sub-regions: X and Y.

In your example, process A has a read lock on Z and is attempting
to upgrade his lock on the sub-region X to a write lock.

The overall transition [read(Z)] -> [write(X)+read(Y)] is *not*
atomic in the UNIX locking implementations that I've seen.  If
there were two processes trying to do this, they would either 
have to wait forever or get EDEADLCK and I don't think that 
happens.  

In the code I've seen, there are two separate atomic state transitions,
one to unlock X and then one to get the write lock on X.  Conflicting
locks on the region X are not excluded between the two state transitions.

The following are each atomic but the sequence is not atomic (it's
molecular):

    1) [read(X)] -> [read(Z)]
    2) [read(Z)] -> [write(X)+read(Z)]

My understanding is based on the flock implementation in Irix.
I did a rewrite for performance and scalability and so I looked
pretty closely at making sure that I was duplicating the existing
semantics, although this was over a year ago and I may have forgotten
some part of this.  I didn't do an exhaustive comparison but this
aspect of the locking implementation seemed to come over pretty
directly from BSD.

Does anybody have a different understanding of what UNIX semantics
are in this regard?

The question of upgrade poses some issues even apart form the
divisiblity issue.  If you simplify your example to a single region and 
say that two processes are trying to upgrade a lock for the region X
from read to write.  With the spec as it is, what happens?  A and
B both keeps sending upgrade reequests which are denied.  They
continue to poll and maybe do it slower after a while but they 
don't make any progress.

There is no way that the server can ever grant A's request for
upgrade without revoking B's lock.  The conclusion that I draw
is that upgrade should be done by the client using an unlock
followed by getting a write lock.  This is not atomic but I
don't think UNIX has atomicity in this regard now (don't know
about Windows).  There is also a performance issue in that
this turns an upgrade into a two-RPC operation, but maybe upgrade
is not common enough for that to be a worry.

> 
>     Mike> Of course, a Win32 server would have to do something similar
>     Mike> if the protocol supported Posix-style locking.  The
>     Mike> difference is that with indivisible locks, the client has to
>     Mike> poll the server.  (Or I suppose it could submit a dummy
>     Mike> write lock request and wait for the server to grant it.)
>     Mike> With Posix-style locking, the server only has to poll the
>     Mike> local locking interace provided by the OS.
> 
>     Mike> I guess the good news is that this can be considered unusual
>     Mike> behavior, and that most applications will not split up
>     Mike> existing locks like that.
> 
>     Mike> Anway, here's a counter-proposal for the first replacement
>     Mike> paragraph that you suggested:
> 
>     Mike> "The byte range of a lock is indivisible.  A range may be
>     Mike> locked or unlocked between read and write but may not have

locked or unlocked or changed between read and write [but I am still 
unsure about supporting that]

>     Mike> subranges unlocked or changed between read and write.  These
>     Mike> are the semantics provided by the Win32 environment but only
>     Mike> a subset of the semantics provided by Unix environment.
>     Mike> This means that Unix clients may need to emulate a single
>     Mike> locking request with multiple NFS calls.  For example, if a
>     Mike> subrange is unlocked, the client will need to unlock the
>     Mike> entire range and lock the new regions.  This creates a
>     Mike> window during which a conflicting lock can be taken by
>     Mike> another client.  If this happens, the server will reject the
>     Mike> client's attempt to create the new regions, and the client
>     Mike> will notify the application that the lock has been lost."

I would replace the last sentence with the following:

      Thus, atomically unlocking a subrange (as provided locally by
      UNIX systems) may not be possible under NFS version 4.  
 


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 11:33:30 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA14622
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 11:33:29 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA28170;
	Tue, 11 Jan 2000 09:29:32 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA26870;
	Tue, 11 Jan 2000 08:29:13 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BGT1a28714
	for nfs4-wg-distrib; Tue, 11 Jan 2000 08:29:01 -0800 (PST)
Received: from engmail1.Eng.Sun.COM (engmail1 [129.146.1.13])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BGSxw28711
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 08:29:00 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA16979
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 08:28:59 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id IAA28209
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 08:28:58 -0800 (PST)
Received: (qmail 18304 invoked from network); 11 Jan 2000 16:46:31 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 11 Jan 2000 16:46:31 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id IAA21510;
	Tue, 11 Jan 2000 08:28:53 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZVNVL>; Tue, 11 Jan 2000 08:28:46 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D422@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike.Kupfer@eng.sun.com'" <Mike.Kupfer@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: "indivisible lock" semantics
Date: Tue, 11 Jan 2000 08:28:45 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> Spencer and I exchanged some mail last week about the fact that v4
> locks are indivisible (i.e., they follow Windows semantics, rather
> than Unix semantics).  The rest of this message contains excerpts from
> two messages that I sent to Spencer.
> 
> I'm not proposing a change to the protocol, but I would like to put
> this on the table for discussion, to see if anyone has further
> comments that might impact the protocol or spec.  The reason I'm not
> proposing a protocol change is that I think it's rare for Unix
> applications to take advantage of "divisible lock" semantics.  Given
> the date, I think it's more important to move forward with what we
> have.

I agree that this is not something that should cause us to delay the
protocol.  I'm not even sure that we would need to accomodate this
if we had lots of spare time.

I'm curious about the adjective "rare" as opposed to "non-existent".
I'm not saying that such programs don't exist, but I've never
seen one.  Has anybody else?

> 
> Excerpt #1:
> 
> >>>>> "Mike" == Mike Kupfer <Mike.Kupfer@eng.sun.com> writes:
> 
>     Mike> Page 58, Section 8.2.3: for a Unix client talking to a Win32
>     Mike> server, some entity, either the client or the server, has to
>     Mike> map a Posix locking request to (potentially) a series of
>     Mike> Win32 locking requests.  The series of Win32 requests should
>     Mike> be atomic.  For example, it is a legal Posix request to
>     Mike> unlock a hole out of the middle of an existing lock.  The
>     Mike> Win32 API expresses this as removing the old lock and
>     Mike> creating two new ones.  The atomicity requirement is that
>     Mike> nobody else create a conflicting lock between the time the
>     Mike> first lock is removed and the two new locks are created.
> 
>     Mike> The I-D places this responsibility on the client, asserting
>     Mike> that it is easier for the (Unix) client to do this
>     Mike> conversion than it is for the (Win32) server.  I think this
>     Mike> is false, particularly in light of the atomicity issue.
> 
>     Mike> I don't see any simple ways to deal with the atomicity
>     Mike> issue.  Fortunately, it's rare for a Unix application to
>     Mike> change subranges of an existing lock, so perhaps the
>     Mike> protocol need not provide an atomicity guarantee.  If a
>     Mike> conflicting lock is created in the middle of a series of
>     Mike> "Win32" operations, the client could simply treat the lock
>     Mike> as being lost and notify the application.

It wouldn't necessarily know.  It could be that another client got 
a conflicting lock and gave it up before you got around to getting 
the second locked region.  The result would be that you wouldn't
have the atomicity guarantee and you wouldn't know about the conflicting
lock.

As you say, the assertion that this allows you to duplicate UNIX
semantics is false.  I think the spec should say that the protoocl
allows you to provide a useful subset ("the useful subset" would be
more accurate, as far as I can see) of UNIX semantics but that 
atomically unlocking a subrange is not possible.

> 
>     Mike> So I guess I'm asking that the last paragraph of Section
>     Mike> 8.2.3 be rewritten to clarify this issue.  Let me know if
>     Mike> you want help with specific verbage.
> 
> Excerpt #2:
> 
> >>>>> "Mike" == Mike Kupfer <Mike.Kupfer@eng.sun.com> writes:
> 
>     Mike> Hmm, the more I look at the indivisible locks semantics, the
>     Mike> less I like them.  Suppose you have two processes, A and B,
>     Mike> each of which has a read lock on a byte range.  Now suppose
>     Mike> process A submits a blocking request (F_SETLKW) to upgrade
>     Mike> half the region to a write lock.  You can do this with the
>     Mike> current NLM protocol.  Process A simply requests the upgrade
>     Mike> and goes to sleep until the server grants it.  With
>     Mike> indivisible locks, process A goes to sleep and wakes up
>     Mike> every now and then to see if there are conflicting locks for
>     Mike> the range.  Once there are no more conflicts, process A can
>     Mike> release its lock and obtain the 2 new locks (one for the new
>     Mike> write-lock range, one for the remaining read-lock range).
>     Mike> Yuck.

I want to be clear about the details here.  Let's suppose that 
region Z consists of two abutting sub-regions: X and Y.

In your example, process A has a read lock on Z and is attempting
to upgrade his lock on the sub-region X to a write lock.

The overall transition [read(Z)] -> [write(X)+read(Y)] is *not*
atomic in the UNIX locking implementations that I've seen.  If
there were two processes trying to do this, they would either 
have to wait forever or get EDEADLCK and I don't think that 
happens.  

In the code I've seen, there are two separate atomic state transitions,
one to unlock X and then one to get the write lock on X.  Conflicting
locks on the region X are not excluded between the two state transitions.
Region Y does stay locked throughout and no conflicting locks can happen
in this region.

The following are each atomic but the sequence is not atomic (it's
molecular):

    1) [read(X)] -> [read(Z)]
    2) [read(Z)] -> [write(X)+read(Z)]

My understanding is based on the flock implementation in Irix.
I did a rewrite for performance and scalability and so I looked
pretty closely at making sure that I was duplicating the existing
semantics, although this was over a year ago and I may have forgotten
some part of this.  I didn't do an exhaustive comparison but this
aspect of the locking implementation seemed to come over pretty
directly from BSD.

Does anybody have a different understanding of what UNIX semantics
are in this regard?

The question of upgrade poses some issues even apart form the
divisiblity issue.  If you simplify your example to a single region and 
say that two processes are trying to upgrade a lock for the region X
from read to write.  With the spec as it is, what happens?  A and
B both keeps sending upgrade reequests which are denied.  They
continue to poll and maybe do it slower after a while but they 
don't make any progress.

There is no way that the server can ever grant A's request for
upgrade without revoking B's lock.  The conclusion that I draw
is that upgrade should be done by the client using an unlock
followed by getting a write lock.  This is not atomic but I
don't think UNIX has atomicity in this regard now (don't know
about Windows).  There is also a performance issue in that
this turns an upgrade into a two-RPC operation, but maybe upgrade
is not common enough for that to be a worry.

> 
>     Mike> Of course, a Win32 server would have to do something similar
>     Mike> if the protocol supported Posix-style locking.  The
>     Mike> difference is that with indivisible locks, the client has to
>     Mike> poll the server.  (Or I suppose it could submit a dummy
>     Mike> write lock request and wait for the server to grant it.)
>     Mike> With Posix-style locking, the server only has to poll the
>     Mike> local locking interace provided by the OS.
> 
>     Mike> I guess the good news is that this can be considered unusual
>     Mike> behavior, and that most applications will not split up
>     Mike> existing locks like that.
> 
>     Mike> Anway, here's a counter-proposal for the first replacement
>     Mike> paragraph that you suggested:
> 
>     Mike> "The byte range of a lock is indivisible.  A range may be
>     Mike> locked or unlocked between read and write but may not have

locked or unlocked or changed between read and write [but I am still 
unsure about supporting that]

>     Mike> subranges unlocked or changed between read and write.  These
>     Mike> are the semantics provided by the Win32 environment but only
>     Mike> a subset of the semantics provided by Unix environment.
>     Mike> This means that Unix clients may need to emulate a single
>     Mike> locking request with multiple NFS calls.  For example, if a
>     Mike> subrange is unlocked, the client will need to unlock the
>     Mike> entire range and lock the new regions.  This creates a
>     Mike> window during which a conflicting lock can be taken by
>     Mike> another client.  If this happens, the server will reject the
>     Mike> client's attempt to create the new regions, and the client
>     Mike> will notify the application that the lock has been lost."

I would replace the last sentence with the following:

      Thus, atomically unlocking a subrange (as provided locally by
      UNIX systems) may not be possible under NFS version 4.  
 


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 13:34:12 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA18168
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 13:34:09 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id KAA00806;
	Tue, 11 Jan 2000 10:32:38 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id KAA06407;
	Tue, 11 Jan 2000 10:32:30 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BIVuY28896
	for nfs4-wg-distrib; Tue, 11 Jan 2000 10:31:57 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.81.144] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BIVtw28893
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 10:31:55 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA13068;
	Tue, 11 Jan 2000 10:31:54 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA298228;
	Tue, 11 Jan 2000 10:31:24 -0800 (PST)
Message-Id: <200001111831.KAA298228@athyra.eng.sun.com>
To: "Noveck, Dave" <dave.noveck@netapp.com>
cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: "indivisible lock" semantics 
In-reply-to: Your message of "Tue, 11 Jan 2000 08:28:45 PST."
             <4080CE03B682D311B589009027C2286638D422@tahoe.corp.netapp.com> 
Date: Tue, 11 Jan 2000 10:31:24 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

>>>>> "Dave" == Noveck, Dave <dave.noveck@netapp.com> writes:

    Dave> I'm curious about the adjective "rare" as opposed to
    Dave> "non-existent".  I'm not saying that such programs don't
    Dave> exist, but I've never seen one.  Has anybody else?

I can't point to a specific program that expects indivisible locks,
but

1. Mr. Murphy says that as soon as we declare that nobody does that,
someone will come along and do it.

2. I do remember being surprised at some of the locking calls CAD
programs make.

3. I can imagine someone wanting to process a UNIX mail file by
initially read-locking the entire file, then obtaining write locks as
necessary to process user edits.

    Dave> It wouldn't necessarily know.  It could be that another
    Dave> client got a conflicting lock and gave it up before you got
    Dave> around to getting the second locked region.  The result
    Dave> would be that you wouldn't have the atomicity guarantee and
    Dave> you wouldn't know about the conflicting lock.

Gack, you're right.  To be safe, a UNIX v4 client would have to
disallow any locking operations that open a window for a conflicting
lock.

    Dave> I want to be clear about the details here.  Let's suppose
    Dave> that region Z consists of two abutting sub-regions: X and Y.

    Dave> In your example, process A has a read lock on Z and is
    Dave> attempting to upgrade his lock on the sub-region X to a
    Dave> write lock.

    Dave> The overall transition [read(Z)] -> [write(X)+read(Y)] is
    Dave> *not* atomic in the UNIX locking implementations that I've
    Dave> seen.  If there were two processes trying to do this, they
    Dave> would either have to wait forever or get EDEADLCK and I
    Dave> don't think that happens.

The implementation is not the API spec.  My reading of the UNIX '98
spec <http://www.opengroup.org/onlinepubs/007908799/xsh/fcntl.html> is
that if process A attempts such an upgrade (using F_SETLKW) while
process B has region Z read-locked, process A will sleep until process
B releases its lock.  If both processes A and B attempt such an
upgrade, you'll get a deadlock, which the OS might or might not
detect.

    Dave> The question of upgrade poses some issues even apart form
    Dave> the divisiblity issue.  If you simplify your example to a
    Dave> single region and say that two processes are trying to
    Dave> upgrade a lock for the region X from read to write.  With
    Dave> the spec as it is, what happens?  A and B both keeps sending
    Dave> upgrade reequests which are denied.  They continue to poll
    Dave> and maybe do it slower after a while but they don't make any
    Dave> progress.

    Dave> There is no way that the server can ever grant A's request
    Dave> for upgrade without revoking B's lock.  The conclusion that
    Dave> I draw is that upgrade should be done by the client using an
    Dave> unlock followed by getting a write lock.  This is not atomic
    Dave> but I don't think UNIX has atomicity in this regard now
    Dave> (don't know about Windows).  

The UNIX '98 spec is less clear here.  "Atomic" does not appear in the
fcntl documentation.  What it does say is "the previous lock type for
each byte ... will be replaced by the new lock type".  I will contact
our local standards gurus for an interpretation of that phrase.

    Mike> "The byte range of a lock is indivisible.  A range may be
    Mike> locked or unlocked between read and write but may not have

    Dave> locked or unlocked or changed between read and write

Right, thanks.

    Mike> subranges unlocked or changed between read and write.  These
    Mike> are the semantics provided by the Win32 environment but only
    Mike> a subset of the semantics provided by Unix environment.
    Mike> This means that Unix clients may need to emulate a single
    Mike> locking request with multiple NFS calls.  For example, if a
    Mike> subrange is unlocked, the client will need to unlock the
    Mike> entire range and lock the new regions.  This creates a
    Mike> window during which a conflicting lock can be taken by
    Mike> another client.  If this happens, the server will reject the
    Mike> client's attempt to create the new regions, and the client
    Mike> will notify the application that the lock has been lost."

    Dave> I would replace the last sentence with the following:

    Dave>       Thus, atomically unlocking a subrange (as provided
    Dave> locally by UNIX systems) may not be possible under NFS
    Dave> version 4.
 
Yeah, let me see what our Standards folks say about atomicity
requirements.  Then we figure out what to tell UNIX clients they need
to do.

mike


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 14:06:56 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA18789
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 14:06:55 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA27293;
	Tue, 11 Jan 2000 12:03:19 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA28673;
	Tue, 11 Jan 2000 11:03:06 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BJ2l428954
	for nfs4-wg-distrib; Tue, 11 Jan 2000 11:02:47 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.81.144] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJ2kw28951
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:02:46 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA18710;
	Tue, 11 Jan 2000 11:02:45 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA298435;
	Tue, 11 Jan 2000 11:02:15 -0800 (PST)
Message-Id: <200001111902.LAA298435@athyra.eng.sun.com>
To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Cc: kupfer@athyra.eng.sun.com, brent@athyra.eng.sun.com,
        shepler@athyra.eng.sun.com
Subject: test
Date: Tue, 11 Jan 2000 11:02:14 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

Please ignore.  I sent out a response to Dave's mail, and it bounced.

thanks,
mike


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 14:37:50 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA19371
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 14:37:49 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA29577;
	Tue, 11 Jan 2000 11:36:19 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA02984;
	Tue, 11 Jan 2000 11:35:59 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BJZea29133
	for nfs4-wg-distrib; Tue, 11 Jan 2000 11:35:40 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.81.144] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJZdw29130
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:35:39 -0800 (PST)
Received: from eng.sun.com (d-mpk17-85-188.Eng.Sun.COM [129.146.85.188])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA28382;
	Tue, 11 Jan 2000 11:35:38 -0800 (PST)
Message-ID: <387B8A50.8F826DFF@eng.sun.com>
Date: Tue, 11 Jan 2000 13:53:52 -0600
From: Spencer Shepler <shepler@eng.sun.com>
X-Mailer: Mozilla 4.7 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Test (ignore me)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


as the subject says...


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 14:44:39 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA19506
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 14:44:29 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA02160;
	Tue, 11 Jan 2000 11:42:51 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA08553;
	Tue, 11 Jan 2000 11:42:41 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BJgWs29141
	for nfs4-wg-distrib; Tue, 11 Jan 2000 11:42:32 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJgUw29138
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:42:31 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA08487
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:42:29 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id LAA06998
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:42:27 -0800 (PST)
Received: (qmail 1327 invoked from network); 11 Jan 2000 20:00:06 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 11 Jan 2000 20:00:06 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id LAA05094;
	Tue, 11 Jan 2000 11:42:26 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZVS07>; Tue, 11 Jan 2000 11:42:18 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D425@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Kupfer'" <Mike.Kupfer@eng.sun.com>,
        "Noveck, Dave"
	 <dave.noveck@netapp.com>
Cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: "indivisible lock" semantics 
Date: Tue, 11 Jan 2000 11:42:16 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> >>>>> "Dave" == Noveck, Dave <dave.noveck@netapp.com> writes:
> 
>     Dave> I'm curious about the adjective "rare" as opposed to
>     Dave> "non-existent".  I'm not saying that such programs don't
>     Dave> exist, but I've never seen one.  Has anybody else?
> 
> I can't point to a specific program that expects indivisible locks,
> but
> 
> 1. Mr. Murphy says that as soon as we declare that nobody does that,
> someone will come along and do it.
> 
> 2. I do remember being surprised at some of the locking calls CAD
> programs make.
> 
> 3. I can imagine someone wanting to process a UNIX mail file by
> initially read-locking the entire file, then obtaining write locks as
> necessary to process user edits.

I can imagine someone wanting to do that (i.e 3) but I have trouble 
imagining someone actually implementing it and dealing with the deadlock 
issues.

I guess I can't say nobody does this (splitting a lock range).  I guess 
I'll say that I have never seen such a program nor heard any reliable 
report of one.  Sort of like Alien Abductions, I guess :-)

> 
>     Dave> It wouldn't necessarily know.  It could be that another
>     Dave> client got a conflicting lock and gave it up before you got
>     Dave> around to getting the second locked region.  The result
>     Dave> would be that you wouldn't have the atomicity guarantee and
>     Dave> you wouldn't know about the conflicting lock.
> 
> Gack, you're right.  To be safe, a UNIX v4 client would have to
> disallow any locking operations that open a window for a conflicting
> lock.

But these operations (the ones which open a window) are all the ones
we are talking about here, those that change a sub-region.  The
UNIX v4 client can't disallow them, and he can't perform them safely.
I think he has to perform them unsafely.

> 
>     Dave> I want to be clear about the details here.  Let's suppose
>     Dave> that region Z consists of two abutting sub-regions: X and Y.
> 
>     Dave> In your example, process A has a read lock on Z and is
>     Dave> attempting to upgrade his lock on the sub-region X to a
>     Dave> write lock.
> 
>     Dave> The overall transition [read(Z)] -> [write(X)+read(Y)] is
>     Dave> *not* atomic in the UNIX locking implementations that I've
>     Dave> seen.  If there were two processes trying to do this, they
>     Dave> would either have to wait forever or get EDEADLCK and I
>     Dave> don't think that happens.
> 
> The implementation is not the API spec.  My reading of the UNIX '98
> spec <http://www.opengroup.org/onlinepubs/007908799/xsh/fcntl.html> is
> that if process A attempts such an upgrade (using F_SETLKW) while
> process B has region Z read-locked, process A will sleep until process
> B releases its lock.  If both processes A and B attempt such an
> upgrade, you'll get a deadlock, which the OS might or might not
> detect.

I agree that the spec, and the implementations I know about will have
A sleep until B releases its lock.  As far as the simultaneous 
upgrade scenario, I don't see that the spec addresses this one way 
or the other.  It boils down to the same upgrade atomicity question
and the spec simply says that each byte of region X winds up write
locked.  You could argue that the actual language "replaced by
the new lock type" while it doesn't imply atomicity of the entire
operation, does seem to imply that for each byte, the locking type 
does not go through any intermediate state (like unlocked).  If it 
is a fact that most (or all) UNIX implementations don't have this 
property, that would count (for me) as strong evidence that that
interpretation of the spec isn't really a tenable one. 

> 
>     Dave> The question of upgrade poses some issues even apart form
>     Dave> the divisiblity issue.  If you simplify your example to a
>     Dave> single region and say that two processes are trying to
>     Dave> upgrade a lock for the region X from read to write.  With
>     Dave> the spec as it is, what happens?  A and B both keeps sending
>     Dave> upgrade reequests which are denied.  They continue to poll
>     Dave> and maybe do it slower after a while but they don't make any
>     Dave> progress.
> 
>     Dave> There is no way that the server can ever grant A's request
>     Dave> for upgrade without revoking B's lock.  The conclusion that
>     Dave> I draw is that upgrade should be done by the client using an
>     Dave> unlock followed by getting a write lock.  This is not atomic
>     Dave> but I don't think UNIX has atomicity in this regard now
>     Dave> (don't know about Windows).  
> 
> The UNIX '98 spec is less clear here.  "Atomic" does not appear in the
> fcntl documentation.  What it does say is "the previous lock type for
> each byte ... will be replaced by the new lock type".  I will contact
> our local standards gurus for an interpretation of that phrase.

Gee, if it is supposed to be atomic but you don't have to detect 
deadlock, then the protocol as it stands, by causing the client to
loop forver, will be more POSIX-conformant, for this particular
case than what I believe to be the typical UNIX behavior for
local files.

I'm going to try this on some Solaris and Alpha machines and see
how they behave for local files.
 
> 
>     Mike> "The byte range of a lock is indivisible.  A range may be
>     Mike> locked or unlocked between read and write but may not have
> 
>     Dave> locked or unlocked or changed between read and write
> 
> Right, thanks.
> 
>     Mike> subranges unlocked or changed between read and write.  These
>     Mike> are the semantics provided by the Win32 environment but only
>     Mike> a subset of the semantics provided by Unix environment.
>     Mike> This means that Unix clients may need to emulate a single
>     Mike> locking request with multiple NFS calls.  For example, if a
>     Mike> subrange is unlocked, the client will need to unlock the
>     Mike> entire range and lock the new regions.  This creates a
>     Mike> window during which a conflicting lock can be taken by
>     Mike> another client.  If this happens, the server will reject the
>     Mike> client's attempt to create the new regions, and the client
>     Mike> will notify the application that the lock has been lost."
> 
>     Dave> I would replace the last sentence with the following:
> 
>     Dave>       Thus, atomically unlocking a subrange (as provided
>     Dave> locally by UNIX systems) may not be possible under NFS
>     Dave> version 4.
>  
> Yeah, let me see what our Standards folks say about atomicity
> requirements.  Then we figure out what to tell UNIX clients they need
> to do.
 


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 14:52:42 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA19711
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 14:52:41 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA05162;
	Tue, 11 Jan 2000 11:50:48 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA10326;
	Tue, 11 Jan 2000 11:50:38 -0800 (PST)
Received: (from daemon@localhost)
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) id e0BJoVl29164
	for nfs4-wg-distrib; Tue, 11 Jan 2000 11:50:31 -0800 (PST)
Received: from opal.eng.sun.com (opal [129.146.86.88])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJoTw29161
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:50:30 -0800 (PST)
Received: from opal (localhost [127.0.0.1])
	by opal.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJoTS150279
	for <nfsv4-wg@sunroof>; Tue, 11 Jan 2000 11:50:29 -0800 (PST)
Message-Id: <200001111950.e0BJoTS150279@opal.eng.sun.com>
X-Mailer: exmh version 2.1.0 (cvs) May 13, 1999
To: nfsv4-wg@sunroof.eng.sun.com
Subject: test
X-Image-URL: http://playground.sun.com/~jbeck/gif/Misc/john-face.jpg
X-face: gHj79O{]GkM*<G,,bC1:=m7n92VptN3CsFh@>PRXZ%7i`GjT"syg=`<yW0(_yEm]G3iYfZL
 7z%Uc^7QSVD1xo':ZTTb<e[8D3+s|YHoYxIgs.%"ZlgZp&]Gj+!l3Qlr!ty1]n~P#UzZho})z6vyQf
 u/<Gx#nr#E]HJ#YJy,'2{>gl?vV#$rC:R`\u#Au@WAMI:>3hE`sYm+4,C;M}$hxVC?<Q1cN.DUTU3b
 SQSo&#?rI1xLF[eD4A\T(q
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 11 Jan 2000 11:50:29 -0800
From: John Beck <jbeck@eng.sun.com>

test, ignore (Hi Mark)


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 14:59:01 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA19810
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 14:58:58 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA08009;
	Tue, 11 Jan 2000 11:58:10 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA24481;
	Tue, 11 Jan 2000 11:57:58 -0800 (PST)
Received: from opal.eng.sun.com (opal [129.146.86.88])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJvjw29180
	for <nfs4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 11:57:45 -0800 (PST)
Received: from opal (localhost [127.0.0.1])
	by opal.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BJviS150319
	for <nfs4-wg@sunroof>; Tue, 11 Jan 2000 11:57:44 -0800 (PST)
Message-Id: <200001111957.e0BJviS150319@opal.eng.sun.com>
X-Mailer: exmh version 2.1.0 (cvs) May 13, 1999
To: nfs4-wg@sunroof.eng.sun.com
Subject: test 3
X-Image-URL: http://playground.sun.com/~jbeck/gif/Misc/john-face.jpg
X-face: gHj79O{]GkM*<G,,bC1:=m7n92VptN3CsFh@>PRXZ%7i`GjT"syg=`<yW0(_yEm]G3iYfZL
 7z%Uc^7QSVD1xo':ZTTb<e[8D3+s|YHoYxIgs.%"ZlgZp&]Gj+!l3Qlr!ty1]n~P#UzZho})z6vyQf
 u/<Gx#nr#E]HJ#YJy,'2{>gl?vV#$rC:R`\u#Au@WAMI:>3hE`sYm+4,C;M}$hxVC?<Q1cN.DUTU3b
 SQSo&#?rI1xLF[eD4A\T(q
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 11 Jan 2000 11:57:44 -0800
From: John Beck <jbeck@eng.sun.com>

ignore again


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 11 17:33:29 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA22770
	for <nfsv4-archive@odin.ietf.org>; Tue, 11 Jan 2000 17:33:28 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id PAA19037;
	Tue, 11 Jan 2000 15:31:18 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id OAA09348;
	Tue, 11 Jan 2000 14:31:01 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.85.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0BMUHw29422
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 14:30:17 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA24770
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 14:30:17 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA299475
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 11 Jan 2000 14:29:46 -0800 (PST)
Message-Id: <200001112229.OAA299475@athyra.eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: resend: Re: "indivisible lock" semantics 
Date: Tue, 11 Jan 2000 14:29:46 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

(This is a resend of a message that bounced, just to make sure the
entire WG gets to see it.  I'm currently waiting to hear back from our
local standards gurus.  --mike)

>>>>> "Dave" == Noveck, Dave <dave.noveck@netapp.com> writes:

    Dave> I'm curious about the adjective "rare" as opposed to
    Dave> "non-existent".  I'm not saying that such programs don't
    Dave> exist, but I've never seen one.  Has anybody else?

I can't point to a specific program that expects indivisible locks,
but

1. Mr. Murphy says that as soon as we declare that nobody does that,
someone will come along and do it.

2. I do remember being surprised at some of the locking calls CAD
programs make.

3. I can imagine someone wanting to process a UNIX mail file by
initially read-locking the entire file, then obtaining write locks as
necessary to process user edits.

    Dave> It wouldn't necessarily know.  It could be that another
    Dave> client got a conflicting lock and gave it up before you got
    Dave> around to getting the second locked region.  The result
    Dave> would be that you wouldn't have the atomicity guarantee and
    Dave> you wouldn't know about the conflicting lock.

Gack, you're right.  To be safe, a UNIX v4 client would have to
disallow any locking operations that open a window for a conflicting
lock.

    Dave> I want to be clear about the details here.  Let's suppose
    Dave> that region Z consists of two abutting sub-regions: X and Y.

    Dave> In your example, process A has a read lock on Z and is
    Dave> attempting to upgrade his lock on the sub-region X to a
    Dave> write lock.

    Dave> The overall transition [read(Z)] -> [write(X)+read(Y)] is
    Dave> *not* atomic in the UNIX locking implementations that I've
    Dave> seen.  If there were two processes trying to do this, they
    Dave> would either have to wait forever or get EDEADLCK and I
    Dave> don't think that happens.

The implementation is not the API spec.  My reading of the UNIX '98
spec <http://www.opengroup.org/onlinepubs/007908799/xsh/fcntl.html> is
that if process A attempts such an upgrade (using F_SETLKW) while
process B has region Z read-locked, process A will sleep until process
B releases its lock.  If both processes A and B attempt such an
upgrade, you'll get a deadlock, which the OS might or might not
detect.

    Dave> The question of upgrade poses some issues even apart form
    Dave> the divisiblity issue.  If you simplify your example to a
    Dave> single region and say that two processes are trying to
    Dave> upgrade a lock for the region X from read to write.  With
    Dave> the spec as it is, what happens?  A and B both keeps sending
    Dave> upgrade reequests which are denied.  They continue to poll
    Dave> and maybe do it slower after a while but they don't make any
    Dave> progress.

    Dave> There is no way that the server can ever grant A's request
    Dave> for upgrade without revoking B's lock.  The conclusion that
    Dave> I draw is that upgrade should be done by the client using an
    Dave> unlock followed by getting a write lock.  This is not atomic
    Dave> but I don't think UNIX has atomicity in this regard now
    Dave> (don't know about Windows).  

The UNIX '98 spec is less clear here.  "Atomic" does not appear in the
fcntl documentation.  What it does say is "the previous lock type for
each byte ... will be replaced by the new lock type".  I will contact
our local standards gurus for an interpretation of that phrase.

    Mike> "The byte range of a lock is indivisible.  A range may be
    Mike> locked or unlocked between read and write but may not have

    Dave> locked or unlocked or changed between read and write

Right, thanks.

    Mike> subranges unlocked or changed between read and write.  These
    Mike> are the semantics provided by the Win32 environment but only
    Mike> a subset of the semantics provided by Unix environment.
    Mike> This means that Unix clients may need to emulate a single
    Mike> locking request with multiple NFS calls.  For example, if a
    Mike> subrange is unlocked, the client will need to unlock the
    Mike> entire range and lock the new regions.  This creates a
    Mike> window during which a conflicting lock can be taken by
    Mike> another client.  If this happens, the server will reject the
    Mike> client's attempt to create the new regions, and the client
    Mike> will notify the application that the lock has been lost."

    Dave> I would replace the last sentence with the following:

    Dave>       Thus, atomically unlocking a subrange (as provided
    Dave> locally by UNIX systems) may not be possible under NFS
    Dave> version 4.
 
Yeah, let me see what our Standards folks say about atomicity
requirements.  Then we figure out what to tell UNIX clients they need
to do.

mike


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan 12 10:40:00 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA17903
	for <nfsv4-archive@odin.ietf.org>; Wed, 12 Jan 2000 10:39:56 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA06063;
	Wed, 12 Jan 2000 07:38:04 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA20320;
	Wed, 12 Jan 2000 07:37:57 -0800 (PST)
Received: from engmail4.Eng.Sun.COM (engmail4 [129.144.134.6])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0CFbaw29774
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Jan 2000 07:37:37 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA00800
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Jan 2000 07:37:37 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id HAA26965
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Jan 2000 07:37:36 -0800 (PST)
Received: (qmail 17766 invoked from network); 12 Jan 2000 15:55:32 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 12 Jan 2000 15:55:32 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id HAA19578
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 12 Jan 2000 07:37:30 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZWDK9>; Wed, 12 Jan 2000 07:37:21 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D428@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Lock upgrade semantics
Date: Wed, 12 Jan 2000 07:37:20 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

I earlier asserted that lock upgrade was not atomic
and that two competing upgrades could be resolved
because the upgrade was effectively done before 
attempting to get the write lock.  This arose out of,
but was distinct from, Mike Kupfer's issue about the
lock divisibility.  My assertions were based on
what I remembered (or thought I remembered) about
the flock implementation within Irix.

I've just tried this on a nunber of UNIXes (Solaris,
DEC/COMPAQ, LINUX) and find that EDEADLCK is returned
on all of them.  This indicates that on those systems
at least, upgrade is not handled as two separate state 
transitions.  So either I misremembered the Irix 
implementation or Irix is unusual in this regard.

Given this, my worries about upgrade in the current
protocol are misplaced.  Having upgrade on the server
return denial is OK since it is not necessary to
allow one of the two upgraders to succeed.

Never mind.


From nfs4-wg-request@sunroof.eng.sun.com  Thu Jan 13 13:57:47 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA23805
	for <nfsv4-archive@odin.ietf.org>; Thu, 13 Jan 2000 13:57:44 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id KAA15087;
	Thu, 13 Jan 2000 10:56:13 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id KAA20035;
	Thu, 13 Jan 2000 10:55:58 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.82.166] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0DItdw01000
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 13 Jan 2000 10:55:39 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA06915;
	Thu, 13 Jan 2000 10:55:38 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA391988;
	Thu, 13 Jan 2000 10:55:07 -0800 (PST)
Message-Id: <200001131855.KAA391988@athyra.eng.sun.com>
To: "Noveck, Dave" <dave.noveck@netapp.com>
cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Lock upgrade semantics 
In-reply-to: Your message of "Wed, 12 Jan 2000 07:37:20 PST."
             <4080CE03B682D311B589009027C2286638D428@tahoe.corp.netapp.com> 
Date: Thu, 13 Jan 2000 10:55:07 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

Okay, I think this leaves us with what to say about UNIX clients and
splitting locks.

I see the choices as

  1. if an application tries to split a lock, deny the request (e.g.,
  return EINVAL).

  2. If an application tries to split a lock, emulate it by dropping
  the original lock and creating 2 new locks, and hope that nothing
  bad happens.

  3. If an application tries to split a lock, emulate it, but notify
  the application if something went wrong.

I don't think choice 2 is acceptable.  It basically says that under
certain edge conditions it's okay for user data to get silently
corrupted.

If we can come up with a sufficiently strong way to detect that
"something went wrong", I could go with either 1 or 3.  Otherwise, I
think we should go with choice 1.  (And I'm afraid that so far I
haven't come up with anything I'm happy with for detecting that
something went wrong.)

Comments?

mike


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan 14 11:28:36 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA19391
	for <nfsv4-archive@odin.ietf.org>; Fri, 14 Jan 2000 11:28:36 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA27407;
	Fri, 14 Jan 2000 08:25:53 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA20566;
	Fri, 14 Jan 2000 08:25:36 -0800 (PST)
Received: from engmail1.Eng.Sun.COM (engmail1 [129.146.1.13])
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0EGOxw02568
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 14 Jan 2000 08:25:00 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA24509
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 14 Jan 2000 08:25:00 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id JAA26575
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 14 Jan 2000 09:24:55 -0700 (MST)
Received: (qmail 14451 invoked from network); 14 Jan 2000 16:43:43 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 14 Jan 2000 16:43:43 -0000
Received: from tahoe.corp.netapp.com (tahoe.netapp.com [10.10.10.112])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id IAA23583;
	Fri, 14 Jan 2000 08:24:49 -0800 (PST)
Received: by tahoe.corp.netapp.com with Internet Mail Service (5.5.2650.21)
	id <Y5KZX305>; Fri, 14 Jan 2000 08:24:36 -0800
Message-ID: <4080CE03B682D311B589009027C2286638D42F@tahoe.corp.netapp.com>
From: "Noveck, Dave" <dave.noveck@netapp.com>
To: "'Mike Kupfer'" <Mike.Kupfer@eng.sun.com>,
        "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: RE: Lock upgrade semantics 
Date: Fri, 14 Jan 2000 08:24:32 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"

 
> Okay, I think this leaves us with what to say about UNIX clients and
> splitting locks.
> 
> I see the choices as
> 
>   1. if an application tries to split a lock, deny the request (e.g.,
>   return EINVAL).
> 
>   2. If an application tries to split a lock, emulate it by dropping
>   the original lock and creating 2 new locks, and hope that nothing
>   bad happens.
> 
>   3. If an application tries to split a lock, emulate it, but notify
>   the application if something went wrong.
> 
> I don't think choice 2 is acceptable.  It basically says that under
> certain edge conditions it's okay for user data to get silently
> corrupted.

I'm not sure that choice 3 is that much better.  In the situations
in which choice 2 will silently corrupt your data, choice 3 will
corrupt your data and tell you that it might have corrupted your
data.  It's nice to know, but you've still got corrupted file.   

If you adopt choice 3, you are allowing people to develop applications
that use this feature, deploy them using NFS-v4, and then find out, 
when load increases to a certain point, that they just won't work.
I think users would be upset at that.
  
> 
> If we can come up with a sufficiently strong way to detect that
> "something went wrong", I could go with either 1 or 3.  Otherwise, I
> think we should go with choice 1.  (And I'm afraid that so far I
> haven't come up with anything I'm happy with for detecting that
> something went wrong.)
> 
> Comments?
 
I think choice 1 is acceptable, mainly because there are so few uses
of this.  But I guess I'm sufficiently paranoid (or you've made me
sufficiently paranoid :-) to worry that there is someone developing 
an application that does this and that it's destined to be wildly 
popular.

So I'd like to offer choice 4:  Drop the statement about the byte
range of a lock being indivisible.  Allow a server which cannot 
support changes of a subrange (or an otherwise overlapping but
non-identical range) unlocked or changed, to return an error
(say NFS4ERR_LOCK_RANGE).  Right now, the spec implies that
all servers should give an error on this, but doesn't say 
which one.

Servers which can support this functionality would be allowed
to do so.  This would make this feature analogous to renaming
an open file.  Some servers will return an error and some 
won't.  The handling of such requests would be part of file
system semantics and not part of the protocol per se.  I
don't see that this would require any additional changes to
the protocol.  Am I missing something?

This divergence in possible server behavior would not add
complexity to clients.  The client would issue the lock/
unlock request and if it got an error, it would return an
error to the application.  If it worked, the application 
would have the support it needed.  A client would have to 
have a little bit more sophistication in its logic to keep 
track of what locks it had (for the reclaim logic) but it 
would need that only if it intended to take advantage of
this feature.  Clients which did not allow this at the
application level would be free to reject an operation 
on an overlapping but non-identical byte range without 
doing an RPC.

Since Unix clients cannot "simulate modifying subranges",
as draft-03 expects them to be able to do, it makes sense 
to allow them to use servers which support this on the 
server without requiring that all servers do so.

Comments?



From nfs4-wg-request@sunroof.eng.sun.com  Mon Jan 17 13:48:40 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA05481
	for <nfsv4-archive@odin.ietf.org>; Mon, 17 Jan 2000 13:48:39 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA15333;
	Mon, 17 Jan 2000 11:46:32 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id KAA19830;
	Mon, 17 Jan 2000 10:46:02 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.84.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0HIeqw08344
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 17 Jan 2000 10:43:38 -0800 (PST)
Received: from athyra.eng.sun.com (athyra.Eng.Sun.COM [129.146.85.90])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA26505;
	Mon, 17 Jan 2000 10:40:51 -0800 (PST)
Received: from athyra (localhost [127.0.0.1])
	by athyra.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA517818;
	Mon, 17 Jan 2000 10:40:17 -0800 (PST)
Message-Id: <200001171840.KAA517818@athyra.eng.sun.com>
To: "Noveck, Dave" <dave.noveck@netapp.com>
cc: "'nfsv4-wg@sunroof.eng.sun.com'" <nfsv4-wg@sunroof.eng.sun.com>
Subject: Re: Lock upgrade semantics 
In-reply-to: Your message of "Fri, 14 Jan 2000 08:24:32 PST."
             <4080CE03B682D311B589009027C2286638D42F@tahoe.corp.netapp.com> 
Date: Mon, 17 Jan 2000 10:40:17 -0800
From: Mike Kupfer <Mike.Kupfer@eng.sun.com>

> So I'd like to offer choice 4:  Drop the statement about the byte
> range of a lock being indivisible.

Sounds good to me.

> I
> don't see that this would require any additional changes to
> the protocol.  Am I missing something?

I can't think of any technical changes.

In terms of editorial changes, the only thing I can think of would be
to add some text about reclaims, to discourage clients from coalescing
adjacent regions into a single reclaim request.

mike


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 18 13:14:46 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA04157
	for <nfsv4-archive@odin.ietf.org>; Tue, 18 Jan 2000 13:14:45 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id KAA06241;
	Tue, 18 Jan 2000 10:12:52 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id KAA14860;
	Tue, 18 Jan 2000 10:12:37 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.86.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta11+Sun/8.10.0.Beta11) with ESMTP id e0IICJw09453
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 18 Jan 2000 10:12:19 -0800 (PST)
Received: from terra.eng.sun.com (terra.Eng.Sun.COM [129.146.86.99])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA04013
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 18 Jan 2000 10:12:18 -0800 (PST)
Received: (from brent@localhost)
	by terra.eng.sun.com (8.9.3+Sun/8.9.3) id KAA10563
	for nfsv4-wg@sunroof.eng.sun.com; Tue, 18 Jan 2000 10:12:15 -0800 (PST)
Date: Tue, 18 Jan 2000 10:12:15 -0800 (PST)
From: Brent Callaghan <Brent.Callaghan@eng.sun.com>
Message-Id: <200001181812.KAA10563@terra.eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Change to mailing list archives
X-Sun-Charset: US-ASCII


The mailing list archives located at:

	http://playground.sun.com/pub/nfsv4/nfsv4-wg-archive

were becoming a bit unwieldy with over 2,000 messages over 5 years.
Last week I had to grab a new version of Hypermail when the old
one crashed at 2,000 messages.

I've reorganized the archives as follows:

	o The URL (above) now takes you to an index page
	  from which you can select the archive year.

	o You can select Hypermail archives (as before)

	o You can select flat text archives for any
	  particular year (for those who don't want
	  Hypermail).

	o You can select a large flat file (now 7MB) that
	  contains all of the mail for the last 5 years.

You should now be able to look at the most recent messages
more quickly - since you don't have to download message
headers from the last 4 years.

Sorry, but URLs that select individual messages within the
old archive will no longer be valid.

Let me know if you have any problems/suggestions.

	Thanks
		Brent


From nfs4-wg-request@sunroof.eng.sun.com  Sun Jan 23 18:19:36 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA12330
	for <nfsv4-archive@odin.ietf.org>; Sun, 23 Jan 2000 18:19:36 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id QAA02778;
	Sun, 23 Jan 2000 16:17:31 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id PAA27997;
	Sun, 23 Jan 2000 15:15:58 -0800 (PST)
Received: from engmail4.Eng.Sun.COM (engmail4 [129.144.134.6])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0NNFdj14865
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 23 Jan 2000 15:15:40 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id PAA27988
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 23 Jan 2000 15:15:40 -0800 (PST)
Received: from hermes.hrz.uni-giessen.de (hermes.hrz.uni-giessen.de [134.176.2.15])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id PAA24742
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 23 Jan 2000 15:15:38 -0800 (PST)
Received: from [141.50.227.69] by hermes.hrz.uni-giessen.de with ESMTP; Mon, 24 Jan 2000 00:15:28 +0100
Sender: gisburn@venus.Sun.COM
Message-Id: <388B8B8F.C9597EFA@informatik.med.uni-giessen.de>
Date: Mon, 24 Jan 2000 00:15:28 +0100
From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Does NFSv4 support file change notification ?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


Hi !

----

Does NFSv4 support change "notifications" a file/directory, e.g. if
someone modifies the file or directory the filesystem sends a
signal/message to the requesting client ?

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o) Roland.Mainz@informatik.med.uni-giessen.de
  \__\/\/__/  gisburn@informatik.med.uni-giessen.de
  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 (0) 641/99-13193 FAX +49 (0) 641/99-41359





From nfs4-wg-request@sunroof.eng.sun.com  Sun Jan 23 20:04:23 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA12892
	for <nfsv4-archive@odin.ietf.org>; Sun, 23 Jan 2000 20:04:21 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id RAA00783;
	Sun, 23 Jan 2000 17:03:42 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id RAA20478;
	Sun, 23 Jan 2000 17:03:11 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.85.31] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0O12cj14912
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 23 Jan 2000 17:02:38 -0800 (PST)
Received: from eng.sun.com (awe195-96.AWE.Sun.COM [192.29.195.96])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA21121
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 23 Jan 2000 17:02:38 -0800 (PST)
Sender: Brent.Callaghan@eng.sun.com
Message-ID: <388BA475.E48A24C5@eng.sun.com>
Date: Sun, 23 Jan 2000 17:01:41 -0800
From: Brent <brent@eng.sun.com>
Organization: NFS Whackers
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.8 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Does NFSv4 support file change notification ?
References: <388B8B8F.C9597EFA@informatik.med.uni-giessen.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Roland Mainz wrote:
> Does NFSv4 support change "notifications" a file/directory, e.g. if
> someone modifies the file or directory the filesystem sends a
> signal/message to the requesting client ?

No.  Change notification doesn't scale.  Imagine the scenario of
several hundred clients registering notification on a single file
followed by one or more clients changing that file frequently.

NFSv4 does support the server notifying a client that another
client needs access to a delegated file - but I don't think
that's what you're after.

	Brent


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 25 14:27:39 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA06554
	for <nfsv4-archive@odin.ietf.org>; Tue, 25 Jan 2000 14:27:36 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA12385;
	Tue, 25 Jan 2000 11:25:10 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA08526;
	Tue, 25 Jan 2000 11:25:02 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0PJOgj16325
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 11:24:42 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA08439
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 11:24:41 -0800 (PST)
Received: from hermes.hrz.uni-giessen.de (hermes.hrz.uni-giessen.de [134.176.2.15])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA04305
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 12:24:40 -0700 (MST)
Received: from [141.50.227.69] by hermes.hrz.uni-giessen.de with ESMTP; Tue, 25 Jan 2000 20:24:04 +0100
Sender: gisburn@lukla.Sun.COM
Message-Id: <388DF853.A7B315CB@informatik.med.uni-giessen.de>
Date: Tue, 25 Jan 2000 20:24:03 +0100
From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Mike Eisler <mre@eng.sun.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Does NFSv4 support file change notification ?
References: <Roam.SIMC.2.0.6.948737677.6408.mre@eng.sun.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Mike Eisler wrote:

> sortof. nfsv4 has delegations which a client can use to
> force the server to tell when another client wants to make a change.

This doesn't fit in the needs of many applications (example CDE's dtfile
or Win32 explorer, which both fequently POLLs (!!) manually if something
as been changed) which may run on _multiple_ clients.
Best would be a way that the server sends such messages to the
requesting clients if there was a change instead of wasting network
bandwidth with such polls.

For example (no flames, please) the old AmigaDOS 2.0 had such a
functionality. Vertitas has it (according to a note in
news:comp.unix.solaris - which contains a reference to an offical
standard spec - but I can't find the article at DejaNews due lack of
swap space in my brain...), too.
Now we need such a integragration in the network protocols...

One idea would be:
handle = notifyme( whichActions, timeout, notifydelay, filename,
callback, cb_userdata );
whichActions = which actions to watch (read/write/etc.)
timeout = timeout of the notification request, e.g. if the client
doesn't refresh the request after <timeout>, the server deletes it, but
send a "notification timeout" message to the requesting client
filename = (no comment :-)
callback = handler function to call if something changes
cb_userdata = application data passed to the callback

Then we need functions to removeNotification(), verifyNotification()
[check if the server is still OK and knows about it's job to notify the
client] and so on...

Any comments ?

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o) Roland.Mainz@informatik.med.uni-giessen.de
  \__\/\/__/  gisburn@informatik.med.uni-giessen.de
  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 (0) 641/99-13193 FAX +49 (0) 641/99-41359





From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 25 14:54:30 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA06973
	for <nfsv4-archive@odin.ietf.org>; Tue, 25 Jan 2000 14:54:29 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA19801;
	Tue, 25 Jan 2000 12:51:44 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id LAA08206;
	Tue, 25 Jan 2000 11:51:33 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.88.31])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0PJpEj16347
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 11:51:14 -0800 (PST)
Received: from eng.sun.com (awe171-78.AWE.Sun.COM [192.29.171.78])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA11774;
	Tue, 25 Jan 2000 11:51:10 -0800 (PST)
Sender: root@jurassic.eng.sun.com
Message-ID: <388DFEB5.CB703DC6@eng.sun.com>
Date: Tue, 25 Jan 2000 13:51:17 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-4 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
CC: Mike Eisler <mre@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Does NFSv4 support file change notification ?
References: <Roam.SIMC.2.0.6.948737677.6408.mre@eng.sun.com> <388DF853.A7B315CB@informatik.med.uni-giessen.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Roland Mainz wrote:
> 
> Mike Eisler wrote:
> 
> > sortof. nfsv4 has delegations which a client can use to
> > force the server to tell when another client wants to make a change.
> 
> This doesn't fit in the needs of many applications (example CDE's dtfile
> or Win32 explorer, which both fequently POLLs (!!) manually if something
> as been changed) which may run on _multiple_ clients.
> Best would be a way that the server sends such messages to the
> requesting clients if there was a change instead of wasting network
> bandwidth with such polls.

Are there POSIX file system APIs that provide the type of notification
that you suggest?  If not, then the CDE dtfile example doesn't seem reasonable.
What about the waste of network bandwidth used for the nofiications?

> For example (no flames, please) the old AmigaDOS 2.0 had such a
> functionality. Vertitas has it (according to a note in
> news:comp.unix.solaris - which contains a reference to an offical
> standard spec - but I can't find the article at DejaNews due lack of
> swap space in my brain...), too.
> Now we need such a integragration in the network protocols...

I am not convinced.

> One idea would be:
> handle = notifyme( whichActions, timeout, notifydelay, filename,
> callback, cb_userdata );
> whichActions = which actions to watch (read/write/etc.)
> timeout = timeout of the notification request, e.g. if the client
> doesn't refresh the request after <timeout>, the server deletes it, but
> send a "notification timeout" message to the requesting client
> filename = (no comment :-)
> callback = handler function to call if something changes
> cb_userdata = application data passed to the callback

Callbacks are not guaranteed or required to work for the NFSv4 client
to function properly.  The delegation feature in NFSv4 uses callbacks
but if the server is unable to successfully establish a callback path
to the client, the client continues to function properly but
potentially more slowly.

Therefore, the callback for your notification idea would need to
do the same.  In this case, if the client is unable to obtain the
notification registration, it will return to its polling for change
at the server.  

> Then we need functions to removeNotification(), verifyNotification()
> [check if the server is still OK and knows about it's job to notify the
> client] and so on...
> 
> Any comments ?

In my mind the notification mechanism doesn't scale for the Internet.
There is the potential of having 10s of thousands of clients and each
client may have notification events registered.  Does it make sense
to require the server to notify each of the clients each time
a particular file or directory is written to?

As a practical matter, the NFSv4 specification is currently closed
to new functionality and is going through final reviews on its way
to the IESG (new version NFSv4 draft should be out in a day or two).
NFSv4 does have a minor versioning mechanism.  Therefore, if, at a
later time, notification becomes a hard requirement with reasonably
scalable solutions, the functionality can be added to NFSv4.

> 
> Bye,
> Roland
> 

Spencer


From nfs4-wg-request@sunroof.eng.sun.com  Tue Jan 25 19:58:40 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA11759
	for <nfsv4-archive@odin.ietf.org>; Tue, 25 Jan 2000 19:58:39 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id QAA23442;
	Tue, 25 Jan 2000 16:58:00 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id QAA18804;
	Tue, 25 Jan 2000 16:57:48 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0Q0vUj16735
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 16:57:31 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id QAA03073
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 16:57:30 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id QAA18250
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 16:57:28 -0800 (PST)
Received: (qmail 27237 invoked from network); 26 Jan 2000 01:00:19 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 26 Jan 2000 01:00:19 -0000
Received: from tooting (tooting.eng.netapp.com [10.100.4.46])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id QAA03728;
	Tue, 25 Jan 2000 16:57:24 -0800 (PST)
From: Guy Harris <guy@netapp.com>
Received: (from guy@localhost)
	by tooting (SMI-8.6/8.9.1) id QAA26940;
	Tue, 25 Jan 2000 16:57:24 -0800
Message-Id: <200001260057.QAA26940@tooting>
Subject: Re: Does NFSv4 support file change notification ?
In-Reply-To: <388DFEB5.CB703DC6@eng.sun.com> from Spencer Shepler at "Jan 25,
 2000 01:51:17 pm"
To: Spencer Shepler <shepler@eng.sun.com>
Date: Tue, 25 Jan 2000 16:57:24 -0800 (PST)
CC: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>,
        Mike Eisler <mre@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
X-Mailer: ELM [version 2.4ME++ PL59 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

> Are there POSIX file system APIs that provide the type of notification
> that you suggest?

None that I know of.  A while ago, I came up with the idea that a
"select()" for an "exception" condition, on a plain file, should return
when the file changes, but I don't know of any implementations of that.

> If not, then the CDE dtfile example doesn't seem reasonable.

"dtfile" is probably just repeatedly "stat()"ting the file.

The Windows explorer, however, is probably using the Win32
change-notification API, and CIFS *does* have a callback mechanism for
that.

> In my mind the notification mechanism doesn't scale for the Internet.

CIFS was originally just Boring Old SMB, which was a LAN protocol; the
SMB change notification mechanism may, indeed, not scale if it's used as
a Common Internet File System.


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan 26 01:46:01 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id BAA19913
	for <nfsv4-archive@odin.ietf.org>; Wed, 26 Jan 2000 01:46:00 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id WAA06225;
	Tue, 25 Jan 2000 22:45:00 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id WAA14910;
	Tue, 25 Jan 2000 22:44:31 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0Q6iCj16912
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 22:44:13 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id WAA05490
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 22:44:10 -0800 (PST)
Received: from penguin.wise.edt.ericsson.se (penguin-ext.wise.edt.ericsson.se [194.237.142.110])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id WAA18438
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 25 Jan 2000 22:44:10 -0800 (PST)
Received: from ms.uab.ericsson.se (ms.uab.ericsson.se [134.138.201.16])
	by penguin.wise.edt.ericsson.se (8.9.3/8.9.3/WIREfire-1.5) with ESMTP id HAA15997
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 07:44:08 +0100 (MET)
Received: from uab.ericsson.se (uabmesa@uabasc1c12 [134.138.21.59])
	by ms.uab.ericsson.se (8.9.3/8.9.3/uab-2.21) with ESMTP id HAA19836
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 07:44:07 +0100 (MET)
Sender: Michael.Salmon@uab.ericsson.se
Message-ID: <388E97B6.439C6959@uab.ericsson.se>
Date: Wed, 26 Jan 2000 07:44:06 +0100
From: Michael Salmon <Michael.Salmon@uab.ericsson.se>
Organization: Ericsson Utvecklings AB
X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i586)
X-Accept-Language: sv, en-GB, en-US, en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Does NFSv4 support file change notification ?
References: <Roam.SIMC.2.0.6.948737677.6408.mre@eng.sun.com> <388DF853.A7B315CB@informatik.med.uni-giessen.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Roland Mainz wrote:
> 
> Mike Eisler wrote:
> 
> > sortof. nfsv4 has delegations which a client can use to
> > force the server to tell when another client wants to make a change.
> 
> This doesn't fit in the needs of many applications (example CDE's dtfile
> or Win32 explorer, which both fequently POLLs (!!) manually if something
> as been changed) which may run on _multiple_ clients.
> Best would be a way that the server sends such messages to the
> requesting clients if there was a change instead of wasting network
> bandwidth with such polls.
> 
> For example (no flames, please) the old AmigaDOS 2.0 had such a
> functionality. Vertitas has it (according to a note in
> news:comp.unix.solaris - which contains a reference to an offical
> standard spec - but I can't find the article at DejaNews due lack of
> swap space in my brain...), too.
> Now we need such a integragration in the network protocols...
> 
> One idea would be:
> handle = notifyme( whichActions, timeout, notifydelay, filename,
> callback, cb_userdata );
> whichActions = which actions to watch (read/write/etc.)
> timeout = timeout of the notification request, e.g. if the client
> doesn't refresh the request after <timeout>, the server deletes it, but
> send a "notification timeout" message to the requesting client
> filename = (no comment :-)
> callback = handler function to call if something changes
> cb_userdata = application data passed to the callback
> 
> Then we need functions to removeNotification(), verifyNotification()
> [check if the server is still OK and knows about it's job to notify the
> client] and so on...
> 
> Any comments ?

Instead of having a callback wouldn't it be better to have a
changedSince call. If implemented it could return false if a directory
tree or file has not changed since the specified time. True would not
necessarily mean that changes had occurred.

/Michael


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan 26 09:39:41 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA04788
	for <nfsv4-archive@odin.ietf.org>; Wed, 26 Jan 2000 09:39:40 -0500 (EST)
Received: from engmail1.Eng.Sun.COM ([129.146.1.13])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id GAA15739;
	Wed, 26 Jan 2000 06:38:34 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail1.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id GAA08236;
	Wed, 26 Jan 2000 06:38:26 -0800 (PST)
Received: from engmail4.Eng.Sun.COM (engmail4 [129.144.134.6])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0QEbhj17693
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 06:37:59 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id GAA25674
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 06:37:44 -0800 (PST)
Received: from sco.sco.COM (sco.sco.COM [132.147.128.9])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id GAA11221
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 06:37:43 -0800 (PST)
Received: from ellen.pdev.sco.COM(132.147.67.179), claiming to be "sco.com"
 via SMTP by sco.sco.COM, id smtpdAAAa0058s; Wed Jan 26 06:36:37 2000
Sender: bkorb@sco.COM
Message-ID: <388F07C2.832F23D9@sco.com>
Date: Wed, 26 Jan 2000 06:42:10 -0800
From: Bruce Korb <bkorb@sco.COM>
Organization: Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; I; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: New e-address....
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Hi,

Sorry, I forgot the list management engine's address.
My old address was either korb@datadesign.com or
korbb@datadesign.com.  My new address is BKorb@sco.com.
Would someone please be kind enough to do the add/delete?

Thanks!

 - Bruce


From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan 26 10:27:35 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA05469
	for <nfsv4-archive@odin.ietf.org>; Wed, 26 Jan 2000 10:27:33 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA05932;
	Wed, 26 Jan 2000 07:26:37 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA17718;
	Wed, 26 Jan 2000 07:26:19 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0QFPvj17737
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 07:25:58 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id HAA17657
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 07:25:58 -0800 (PST)
Received: from mail-na.netmanage.com (mail-na.netmanage.com [156.27.24.10])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id HAA03832
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 07:25:57 -0800 (PST)
Received: from godot (godot.netmanage.com [128.127.124.202])
	by mail-na.netmanage.com (8.9.1/8.9.1) with ESMTP id KAA06531
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 10:24:25 -0500 (EST)
Message-Id: <4.2.1.20000126102347.00c49b00@mail-na.netmanage.com>
X-Sender: ira@mail-na.netmanage.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.1 
Date: Wed, 26 Jan 2000 10:26:06 -0500
To: nfsv4-wg@sunroof.eng.sun.com
From: Irina Slutskaia <Irina.Slutskaia@netmanage.com>
Subject: Re: Does NFSv4 support file change notification ?
In-Reply-To: <388E97B6.439C6959@uab.ericsson.se>
References: <Roam.SIMC.2.0.6.948737677.6408.mre@eng.sun.com>
 <388DF853.A7B315CB@informatik.med.uni-giessen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 07:44 AM 1/26/00 +0100, Michael Salmon wrote:
>Roland Mainz wrote:

He is asking about uplock notifications on directories.
Didn't we discussed this topic many many times?

                                         Ira.



From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan 26 12:13:25 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA06908
	for <nfsv4-archive@odin.ietf.org>; Wed, 26 Jan 2000 12:13:24 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA24388;
	Wed, 26 Jan 2000 09:11:53 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA10502;
	Wed, 26 Jan 2000 09:11:46 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0QHBLj17779
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 09:11:21 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA20292
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 09:11:20 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id JAA03370
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 09:11:16 -0800 (PST)
Received: (qmail 28282 invoked from network); 26 Jan 2000 17:14:23 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 26 Jan 2000 17:14:23 -0000
Received: from black.eng.netapp.com (black.eng.netapp.com [10.100.4.79])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id JAA15429;
	Wed, 26 Jan 2000 09:11:10 -0800 (PST)
Received: by black.eng.netapp.com with Internet Mail Service (5.5.2650.21)
	id <DG2BVYQM>; Wed, 26 Jan 2000 09:11:09 -0800
Message-ID: <641BC3DDCEB3D3118C3700902745938E07E9E0@black.eng.netapp.com>
From: "Yoder, Alan" <alan.yoder@netapp.com>
To: "'Brent'" <brent@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: Does NFSv4 support file change notification ?
Date: Wed, 26 Jan 2000 09:11:08 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"


> Roland Mainz wrote:
> > Does NFSv4 support change "notifications" a file/directory, e.g. if
> > someone modifies the file or directory the filesystem sends a
> > signal/message to the requesting client ?
> 
> No.  Change notification doesn't scale.  Imagine the scenario of
> several hundred clients registering notification on a single file
> followed by one or more clients changing that file frequently.

   NT does this, though, as Guy mentioned.  How compatible with NT 
does the group want to be?  Doing GUI exploration--from a Win32 
interface--of an NFSv4 volume without change notification won't 
work the same as exploration of an NTFS volume.  And any other
NT apps that depend on change notification to decide when to take
some action won't work correctly when the filesystem is NFSv4.
   Furthermore, I've seen very little evidence that the pathological 
cases you mention actually happen very often in practice. 

   All that said....

> As a practical matter, the NFSv4 specification is currently closed
> to new functionality and is going through final reviews on its way
> to the IESG (new version NFSv4 draft should be out in a day or two).
> NFSv4 does have a minor versioning mechanism.  Therefore, if, at a
> later time, notification becomes a hard requirement with reasonably
> scalable solutions, the functionality can be added to NFSv4.

   I agree that this is the wrong time to be discussing it.

Alan

===============================================================
Alan G. Yoder                                    agy@netapp.com
Network Appliance, Inc.                           
Santa Clara, CA                                    408-822-6919
===============================================================    





From nfs4-wg-request@sunroof.eng.sun.com  Wed Jan 26 15:30:11 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA10941
	for <nfsv4-archive@odin.ietf.org>; Wed, 26 Jan 2000 15:30:09 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA21434;
	Wed, 26 Jan 2000 12:24:52 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id MAA01776;
	Wed, 26 Jan 2000 12:24:23 -0800 (PST)
Received: from engmail2.Eng.Sun.COM (engmail2 [129.146.1.25])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0QKO3j18053
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 12:24:03 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id MAA20302
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 12:24:02 -0800 (PST)
Received: from mx01-ext.netapp.com (mx01-ext.netapp.com [198.95.224.34])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id NAA09378
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 26 Jan 2000 13:23:42 -0700 (MST)
Received: (qmail 20434 invoked from network); 26 Jan 2000 20:23:15 -0000
Received: from herra.netapp.com (HELO herra.corp.netapp.com) (198.95.224.184)
  by mx01-ext.netapp.com with SMTP; 26 Jan 2000 20:23:15 -0000
Received: from tooting (tooting.eng.netapp.com [10.100.4.46])
	by herra.corp.netapp.com (8.9.3/8.9.3/NTAP-1.0) with ESMTP id MAA12714;
	Wed, 26 Jan 2000 12:19:56 -0800 (PST)
From: Guy Harris <guy@netapp.com>
Received: (from guy@localhost)
	by tooting (SMI-8.6/8.9.1) id MAA09450;
	Wed, 26 Jan 2000 12:19:53 -0800
Message-Id: <200001262019.MAA09450@tooting>
Subject: Re: Does NFSv4 support file change notification ?
In-Reply-To: <641BC3DDCEB3D3118C3700902745938E07E9E0@black.eng.netapp.com> from
 "Yoder, Alan" at "Jan 26, 2000 09:11:08 am"
To: "Yoder, Alan" <alan.yoder@netapp.com>
Date: Wed, 26 Jan 2000 12:19:52 -0800 (PST)
CC: "'Brent'" <brent@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
X-Mailer: ELM [version 2.4ME++ PL59 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

>    NT does this, though, as Guy mentioned.  How compatible with NT 
> does the group want to be?  Doing GUI exploration--from a Win32 
> interface--of an NFSv4 volume without change notification won't 
> work the same as exploration of an NTFS volume.

Only if the NT or W9x NFS client in question doesn't support change
notification; it could do change notification by periodically doing "get
attributes" requests on all the files it needs to look at.  Given that
V2 and V3 have no change notification mechanism, I wouldn't be surprised
to hear that at least some NT or W9x NFS clients do exactly that.

Note that the Win32 change-notification request can say not only "let me
know if anything in this directory changes" (change notifications are
posted on directories, not files, as I remember), it can also say "let
me know if anything in this directory *or any of its subdirectories*
changes.


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan 28 06:43:50 2000
Received: from lukla.Sun.COM (lukla.Sun.COM [192.18.98.31])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA05804
	for <nfsv4-archive@odin.ietf.org>; Fri, 28 Jan 2000 06:43:49 -0500 (EST)
Received: from engmail4.Eng.Sun.COM ([129.144.134.6])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id EAA06199;
	Fri, 28 Jan 2000 04:42:58 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail4.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id DAA18657;
	Fri, 28 Jan 2000 03:42:36 -0800 (PST)
Received: from engmail3.Eng.Sun.COM (engmail3 [129.144.170.5])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0SBgKj21689
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 03:42:21 -0800 (PST)
Received: from venus.Sun.COM (venus.EBay.Sun.COM [129.150.69.5])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id DAA10672
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 03:42:19 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176])
	by venus.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id DAA04650
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 03:42:18 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA05730;
	Fri, 28 Jan 2000 06:42:17 -0500 (EST)
Message-Id: <200001281142.GAA05730@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: nfsv4-wg@sunroof.eng.sun.com
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-nfsv4-04.txt
Date: Fri, 28 Jan 2000 06:42:16 -0500
Sender: nsyracus@cnri.reston.va.us

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Network File System Version 4 Working Group of the IETF.

	Title		: NFS version 4 Protocol
	Author(s)	: S. Shepler,  C. Beame,  B. Callaghan,
                          M. Eisler, D. Noveck,  D. Robinson,  R. Thurlow
	Filename	: draft-ietf-nfsv4-04.txt
	Pages		: 247
	Date		: 27-Jan-00
	
NFS version 4 is a distributed file system protocol which owes
heritage to NFS protocol versions 2 [RFC1094] and 3 [RFC1813].
Unlike earlier versions, the NFS version 4 protocol supports
traditional file access while integrating support for file locking
and the mount protocol.  In addition, support for strong security
(and its negotiation), compound operations, client caching, and
internationalization have been added.  Of course, attention has been
applied to making NFS version 4 operate well in an Internet
environment.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-nfsv4-04.txt

Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-nfsv4-04.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-nfsv4-04.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<20000127130103.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-nfsv4-04.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-nfsv4-04.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<20000127130103.I-D@ietf.org>

--OtherAccess--

--NextPart--




From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan 28 11:03:24 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA16864
	for <nfsv4-archive@odin.ietf.org>; Fri, 28 Jan 2000 11:03:23 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA15436;
	Fri, 28 Jan 2000 08:02:21 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA28719;
	Fri, 28 Jan 2000 08:02:00 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.82.166] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0SG1ej21857
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 08:01:40 -0800 (PST)
Received: from eng.sun.com (awe171-9.AWE.Sun.COM [192.29.171.9])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA21779;
	Fri, 28 Jan 2000 08:01:40 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3891BD09.48426EE8@eng.sun.com>
Date: Fri, 28 Jan 2000 10:00:09 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: new NFSv4 draft; location of diffs and summary of changes
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


As you can tell from the recent announcement, a new version of
the NFSv4 I-D is available.  A copy of the draft and a draft
including change bars is located in the following directory:

http://playground.sun.com/nfsv4/draft04

You will also find the latest .x file located there as well.

Below you will find the highlights of the changes made in -04.


Spencer

-----

- changeid4 data type added for correct definition of change_info4

- verifier4 data type added to use as common verifier/cookie type

- section added to describe callback rpc authentication

- volatile filehandle semantics for migration have been clarified

- section added discussing when server may release clientid

- section added discussing when server may release nfs_lockowner state

- change to allow lock sub-ranges and definition of error if server
	does not support

- recovery from timeout or abort of lock requests

- OPEN upgrade/downgrade added - new OPEN_DOWNGRADE operation

- NFS4ERR_JUKEBOX error changed to NFS4ERR_DELAY

- new NFS4ERR_NOT_SAME error for VERIFY operation

- CLOSE operation now takes a sequence id

- when LOCK operation is denied, offset nad length of blocking lock 
	is returned

- OPEN/OPEN_CONFIRM mechanism clarified with addition of flag in OPEN
	and confirmation needs to be done on first use of nfs_lockowner

- use of SETCLIENTID_CONFIRM is now required

- IANA considerations section added


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan 28 11:06:05 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA16968
	for <nfsv4-archive@odin.ietf.org>; Fri, 28 Jan 2000 11:06:03 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA16590;
	Fri, 28 Jan 2000 08:04:44 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA28963;
	Fri, 28 Jan 2000 08:04:36 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.82.166] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0SG4Pj21861
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 08:04:25 -0800 (PST)
Received: from eng.sun.com (awe171-9.AWE.Sun.COM [192.29.171.9])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA22221;
	Fri, 28 Jan 2000 08:04:24 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3891BDAE.C2B51C46@eng.sun.com>
Date: Fri, 28 Jan 2000 10:02:54 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "nfsv4-wg@sunroof.eng.sun.com" <nfsv4-wg@sunroof.eng.sun.com>
Subject: prototype move to draft-04 version of nfs4_prot.x
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


For those working on prototypes and are planning on attending
Connectathon at the beginning of March (www.connectathon.org),
I propose that we move our prototypes to the most recent
version of the nfs4_prot.x file.  A copy of it is located at:

http://playground.sun.com/nfsv4/draft04/nfs4_prot.x

This is what we will be doing for the Solaris prototype.

Spencer


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan 28 11:09:06 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA17092
	for <nfsv4-archive@odin.ietf.org>; Fri, 28 Jan 2000 11:09:05 -0500 (EST)
Received: from engmail2.Eng.Sun.COM ([129.146.1.25])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id IAA18095;
	Fri, 28 Jan 2000 08:08:08 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail2.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id IAA26710;
	Fri, 28 Jan 2000 08:07:59 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.82.166] (may be forged))
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0SG7mj21870
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 08:07:48 -0800 (PST)
Received: from eng.sun.com (awe171-9.AWE.Sun.COM [192.29.171.9])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA22613;
	Fri, 28 Jan 2000 08:07:48 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3891BE79.DB336DEA@eng.sun.com>
Date: Fri, 28 Jan 2000 10:06:17 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "nfsv4-wg@sunroof.eng.sun.com" <nfsv4-wg@sunroof.eng.sun.com>
Subject: WG last call for NFSv4 draft
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit



With the announcement of draft-ietf-nfsv4-04.txt, I would like
to submit this version to the WG for the 2 week last call of
the NFSv4 protocol.

Therefore, the last call would end at the close of business
Friday, February 11th.

Thanks,
Spencer


From nfs4-wg-request@sunroof.eng.sun.com  Fri Jan 28 12:21:39 2000
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20057
	for <nfsv4-archive@odin.ietf.org>; Fri, 28 Jan 2000 12:21:38 -0500 (EST)
Received: from engmail3.Eng.Sun.COM ([129.144.170.5])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id JAA24560;
	Fri, 28 Jan 2000 09:19:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.Eng.Sun.COM [129.146.168.88])
	by engmail3.Eng.Sun.COM (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6) with ESMTP id JAA10655;
	Fri, 28 Jan 2000 09:19:09 -0800 (PST)
Received: from jurassic.eng.sun.com (jurassic [129.146.88.31])
	by sunroof.eng.sun.com (8.10.0.Beta12+Sun/8.10.0.Beta12) with ESMTP id e0SHIoj22026
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 28 Jan 2000 09:18:50 -0800 (PST)
Received: from eng.sun.com (awe171-9.AWE.Sun.COM [192.29.171.9])
	by jurassic.eng.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA09778;
	Fri, 28 Jan 2000 09:18:46 -0800 (PST)
Sender: Spencer.Shepler@eng.sun.com
Message-ID: <3891CF1C.61BEAFC0@eng.sun.com>
Date: Fri, 28 Jan 2000 11:17:16 -0600
From: Spencer Shepler <shepler@eng.sun.com>
Organization: Sun Microsystems, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "nfsv4-wg@sunroof.eng.sun.com" <nfsv4-wg@sunroof.eng.sun.com>
Subject: NFS4ERR_READDIR_NOSPC missing from .x
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit


I hope this is not an indication of how the last call will go but... :-)

It has been pointed out that the error NFS4ERR_READDIR_NOSPC is
missing from the RPC definition file (.x), section 18.

Therefore, I will add the following to the enum nfsstat4 definition.

	NFS4ERR_READDIR_NOSPC	= 10030


This and other minor issues or typos and their resolution
should not have an effect on the last call deadline.

Thanks,
Spencer


