From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan  8 04:42:38 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA15223
	for <nfsv4-archive@lists.ietf.org>; Wed, 8 Jan 2003 04:42:38 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA00871;
	Wed, 8 Jan 2003 02:41:47 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h089eruk025912;
	Wed, 8 Jan 2003 01:40:53 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h089eh16026300
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 8 Jan 2003 01:40:43 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h089egXP026299
	for nfsv4-wg-dist; Wed, 8 Jan 2003 01:40:42 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h089ef16026292
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 01:40:41 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h089enuk025888
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 01:40:49 -0800 (PST)
Received: from mailscanout256k.tataelxsi.co.in ([203.197.168.150])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with SMTP id CAA14823
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 02:40:41 -0700 (MST)
Received: FROM mail.tataelxsi.co.in BY mailscanout256k.tataelxsi.co.in ; Wed Jan 08 15:12:20 2003 +0500
Received: from tataelxsi.co.in ([10.1.30.53]) by mail.tataelxsi.co.in
          (Netscape Messaging Server 3.6)  with ESMTP id AAA186050;
          Wed, 8 Jan 2003 15:10:03 +0530
X-Mailer: exmh version 2.5_20030104 01/04/2003 with nmh-1.0.4
To: Brent.Callaghan@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Design of NLM 
In-reply-to: Your message of "Mon, 23 Dec 2002 09:57:00 PST."
             <3E074E6C.1030008@eng.sun.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 08 Jan 2003 15:08:51 +0000
From: "Koundinya" <koundinya@tataelxsi.co.in>
Message-ID: <776384F9FA3.AAA186050@mail.tataelxsi.co.in>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

--------
Hi,
	Thanks a lot. I just got a copy of your book purchased and it's 
really informative. I have been doing some reading on NFS to 
study NFS implementations for various NAS Boxes available in the 
market today and the issues surrounding them in areas of 
locking. I have some doubts, which if you can clarify would be 
helpful to me:

One some UNIX Flavors like Tru64, IRIX etc there seems to be no 
lockd or statd and I suppose that tells that they do not have 
the Lock Manager or Status Monitor Protocol implemented. While 
on Solaris I do see these. In case these protocols are not 
implemented, then how is locking achieved and what type of 
locking probably they would follow.

For NAS boxes most often not much is spoken about the NFS 
implementation. Do you have any idea as to how they would be 
handling the locking issues ?.

Thanks for any information.

Koundinya

P.S: Please mark a copy of this mail to my e-mail id also. 


>>>>> On Mon, 23 Dec 2002, "Brent" == Brent Callaghan wrote:

  Brent> Take a look at Chapter 10 of "NFS Illustrated".  It
  Brent> describes the NLM protocol and illustrates its use.

  Brent> Brent

  Brent> Koundinya wrote:

  +> Hi all, I have been making a comparison study of locking in
  +> NFS. I have gone through several archives in the mailing
  +> list.I have also browsed through the specifications of the
  +> NFS v4 but there's not too much given about the NLM. Where
  +> can I find a good description of this.

  +> Thanks for any information.

  +> Koundinya




From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan  8 07:06:08 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA17592
	for <nfsv4-archive@lists.ietf.org>; Wed, 8 Jan 2003 07:06:08 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA11608;
	Wed, 8 Jan 2003 05:05:36 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h08C4Ouk013561;
	Wed, 8 Jan 2003 04:04:24 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h08C4C16026680
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 8 Jan 2003 04:04:12 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h08C4ChD026679
	for nfsv4-wg-dist; Wed, 8 Jan 2003 04:04:12 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h08C4A16026672
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 04:04:10 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h08C4Juk013536
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 04:04:19 -0800 (PST)
Received: from mailscanout256k.tataelxsi.co.in ([203.197.168.150])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with SMTP id FAA22711
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 05:04:11 -0700 (MST)
Received: FROM mail.tataelxsi.co.in BY mailscanout256k.tataelxsi.co.in ; Wed Jan 08 17:35:49 2003 +0500
Received: from tataelxsi.co.in ([10.1.30.53]) by mail.tataelxsi.co.in
          (Netscape Messaging Server 3.6)  with ESMTP id AAA18CDE8;
          Wed, 8 Jan 2003 17:33:29 +0530
X-Mailer: exmh version 2.5_20030104 01/04/2003 with nmh-1.0.4
To: Mike Eisler <mike@eisler.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Design of NLM 
In-reply-to: Your message of "Tue, 24 Dec 2002 19:20:03 PST."
             <3E0923E3.8010206@eisler.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 08 Jan 2003 17:32:14 +0000
From: "Koundinya" <koundinya@tataelxsi.co.in>
Message-ID: <776384FC148.AAA18CDE8@mail.tataelxsi.co.in>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

--------
Hi,
	Managing NFS and NIS, 2nd Edition is a good back to get the 
basics of NFS and the chapter on Locking is also good. 
Supplementing this with Callaghan's book, I'm glad that NFS is 
now really now de-mystified.

Thank You,

Koundinya
	
>>>>> On Tue, 24 Dec 2002, "Mike" == Mike Eisler wrote:

  Mike> I doubt you'll find a single good description of NLM
  Mike> anywhere, though the pointers given by Robinson and
  Mike> Callaghan are good starts. Also, chapter 11 of my book,
  Mike> Managing NFS and NIS, 2nd Edition, has a discussion of
  Mike> NLM and the status monitor, albeit at a level aimed at
  Mike> sysadmins.

  Mike> Koundinya wrote:

  +> Hi all, I have been making a comparison study of locking in
  +> NFS. I have gone through several archives in the mailing
  +> list.I have also browsed through the specifications of the
  +> NFS v4 but there's not too much given about the NLM. Where
  +> can I find a good description of this.

  +> Thanks for any information.

  +> Koundinya




From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan  8 14:35:15 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA03796
	for <nfsv4-archive@lists.ietf.org>; Wed, 8 Jan 2003 14:35:15 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA23854;
	Wed, 8 Jan 2003 11:31:40 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h08JTpuk021236;
	Wed, 8 Jan 2003 11:29:51 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h08JTc16000537
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 8 Jan 2003 11:29:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h08JTcui000535
	for nfsv4-wg-dist; Wed, 8 Jan 2003 11:29:38 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h08JTZ16000527
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 11:29:35 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h08JTiuk021167
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 11:29:44 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA24026
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 8 Jan 2003 12:29:38 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h08JTcYW014736;
	Wed, 8 Jan 2003 11:29:38 -0800 (PST)
Received: from cranford-be.eng (cranford-fe.eng.netapp.com [10.56.10.106])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h08JTbLq011290;
	Wed, 8 Jan 2003 11:29:38 -0800 (PST)
Received: (from guy@localhost)
	by cranford-be.eng (8.11.6+Sun/8.10.2) id h08JTaG04283;
	Wed, 8 Jan 2003 11:29:36 -0800 (PST)
Date: Wed, 8 Jan 2003 11:29:36 -0800
From: Guy Harris <guy@netapp.com>
To: Koundinya <koundinya@tataelxsi.co.in>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Design of NLM
Message-ID: <20030108112936.A27893@cranford.netapp.com>
References: <3E074E6C.1030008@eng.sun.com> <776384F9FA3.AAA186050@mail.tataelxsi.co.in>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <776384F9FA3.AAA186050@mail.tataelxsi.co.in>; from koundinya@tataelxsi.co.in on Wed, Jan 08, 2003 at 03:08:51PM +0000
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Wed, Jan 08, 2003 at 03:08:51PM +0000, Koundinya wrote:
> One some UNIX Flavors like Tru64, IRIX etc there seems to be no 
> lockd or statd and I suppose that tells that they do not have 
> the Lock Manager or Status Monitor Protocol implemented.

No, the only thing that will tell you that would be a command such as
"rpcinfo" - run "rpcinfo -p" on the Tru64 or IRIX machine that has NFS
enabled, and see if it reports programs 100021 and 100024.  If it does,
they are implementing the lock manager and status monitor, even if they
don't happen to do it with "lockd" or "statd" programs.

> For NAS boxes most often not much is spoken about the NFS 
> implementation. Do you have any idea as to how they would be 
> handling the locking issues ?.

Well, we handle the locking issues with processes that implement the
lock manager and status monitor protocols.  I suspect other NAS
appliance vendors do the same.


From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan  9 13:57:44 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA21476
	for <nfsv4-archive@lists.ietf.org>; Thu, 9 Jan 2003 13:57:43 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA05358;
	Thu, 9 Jan 2003 11:58:12 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h09Iv3Xq005805;
	Thu, 9 Jan 2003 10:57:03 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h09Iuq16008969
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 9 Jan 2003 10:56:52 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h09IupxY008968
	for nfsv4-wg-dist; Thu, 9 Jan 2003 10:56:51 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h09Iuo16008961
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 9 Jan 2003 10:56:50 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h09IuwXq005729
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 9 Jan 2003 10:56:58 -0800 (PST)
Received: from zmamail03.zma.compaq.com (zmamail03.zma.compaq.com [161.114.64.103])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA23672
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 9 Jan 2003 10:56:52 -0800 (PST)
Received: from mailrelay01.cac.cpqcorp.net (mailrelay01.cac.cpqcorp.net [16.47.132.152])
	by zmamail03.zma.compaq.com (Postfix) with ESMTP
	id 1E55364A1; Thu,  9 Jan 2003 13:56:52 -0500 (EST)
Received: from anw.zk3.dec.com (and.zk3.dec.com [16.140.64.3])
	by mailrelay01.cac.cpqcorp.net (Postfix) with ESMTP
	id C16DE19C2; Thu,  9 Jan 2003 10:56:47 -0800 (PST)
Received: from localhost by anw.zk3.dec.com (8.11.1/1.1.22.2/08Sep98-0251PM)
	id h09Iugo0001612064; Thu, 9 Jan 2003 13:56:47 -0500 (EST)
From: Eric Werme USG <werme@zk3.dec.com>
Message-Id: <200301091856.h09Iugo0001612064@anw.zk3.dec.com>
To: "Koundinya" <koundinya@tataelxsi.co.in>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Design of NLM 
In-reply-to: Your message of "Wed, 08 Jan 2003 15:08:51 GMT."
             <776384F9FA3.AAA186050@mail.tataelxsi.co.in> 
Date: Thu, 09 Jan 2003 13:56:42 -0500
X-Mts: smtp
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

   One some UNIX Flavors like Tru64, IRIX etc there seems to be no 
   lockd or statd and I suppose that tells that they do not have 
   the Lock Manager or Status Monitor Protocol implemented.

Not at all.  As Guy Harris mentioned, "rpcinfo -p" is authoritative,
though I prefer "rpcinfo -u" or "rpcinfo -t" because that actually
contacts the service by sending a NULL request.

In Tru64's case, we have supported locking since day one:

  $ ps ax | grep rpc
   485 ??       I        0:00.03 /usr/sbin/rpc.statd
   487 ??       I        0:00.07 /usr/sbin/rpc.lockd

Our sysadmin tools allow _not_ running them, so keep in mind that
rpcinfo will reports only that the service is currently available.
It has no way to check whether support has been implemented but is
not in use on a particular system.

Irix also supports locking.  In general, any credible UNIX NFS
implementation has locking, and any NFS toaster sold in the Unix
market has locking.

 While 
   on Solaris I do see these. In case these protocols are not 
   implemented, then how is locking achieved and what type of 
   locking probably they would follow.

There are some classic (and mostly deprecated) locking forms, but
they generally lock an entire file, don't work well over reboots,
and in general cause more problems than record locking does.

This is off-topic for the V4 mail list.  If you have other questions about
NFS in Tru64 Unix, please contact HP support or me directly.

	-Ric Werme


From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan 15 21:45:31 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA18856
	for <nfsv4-archive@lists.ietf.org>; Wed, 15 Jan 2003 21:45:31 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id TAA13165;
	Wed, 15 Jan 2003 19:46:17 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0G2jVgE009952;
	Wed, 15 Jan 2003 18:45:31 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0G2jR16016285
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 15 Jan 2003 18:45:27 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0G2jREn016284
	for nfsv4-wg-dist; Wed, 15 Jan 2003 18:45:27 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0G2jP16016277
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 15 Jan 2003 18:45:25 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0G2jP4w026581
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 15 Jan 2003 18:45:25 -0800 (PST)
Received: from yucs.org (w089.z209220022.nyc-ny.dsl.cnc.net [209.220.22.89])
	by patan.sun.com (8.9.3+Sun/8.9.3) with SMTP id TAA00751
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 15 Jan 2003 19:45:19 -0700 (MST)
Received: (qmail 9397 invoked from network); 16 Jan 2003 02:47:29 -0000
Received: from unknown (HELO ?192.168.0.102?) (spotter@66.65.53.53)
  by w089.z209220022.nyc-ny.dsl.cnc.net with SMTP; 16 Jan 2003 02:47:29 -0000
From: Shaya Potter <spotter@cs.columbia.edu>
To: nfsv4-wg@sunroof.eng.sun.com
Content-Type: text/plain
Message-Id: <1042685023.32623.202.camel@zaphod>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.1 
Date: 15 Jan 2003 21:43:44 -0500
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

(apologies in advance if this is the wrong forum for these questions)

I'm trying to understand the NFSv4 Security model, and am wondering if
anyone has any good pointers (beyond the RFC) on it (papers, talk
slides...)

also a simple question.  Is the security model made in a way that allows
one to authenticate the entire client machine i.e. get the security one
would get from running current NFS over ipsec, but w/o the ipsec
requirement. (uid/gid pair of process of client determines access
rights)

thanks,

shaya potter



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 12:52:38 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA17913
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 12:52:37 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA08301;
	Thu, 16 Jan 2003 10:53:21 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GHq54w007801;
	Thu, 16 Jan 2003 09:52:05 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GHps16019824
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 09:51:54 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GHpsxN019823
	for nfsv4-wg-dist; Thu, 16 Jan 2003 09:51:54 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GHpq16019816
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 09:51:52 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GHpx4w007743
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 09:51:59 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA07393
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 10:51:53 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0GHpkYW017724;
	Thu, 16 Jan 2003 09:51:46 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0GHpkLq007495;
	Thu, 16 Jan 2003 09:51:46 -0800 (PST)
Received: from eisler.com (10.58.48.72 [10.58.48.72]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id CTJFM657; Thu, 16 Jan 2003 09:51:31 -0800
Message-ID: <3E26F126.6090907@eisler.com>
Date: Thu, 16 Jan 2003 09:51:34 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Shaya Potter <spotter@cs.columbia.edu>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: NFSv4 security model
References: <1042685023.32623.202.camel@zaphod>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Shaya Potter wrote:

>(apologies in advance if this is the wrong forum for these questions)
>

This is the correct forum.

>
>
>I'm trying to understand the NFSv4 Security model, and am wondering if
>anyone has any good pointers (beyond the RFC) on it (papers, talk
>slides...)
>
At www.connectathon.org there are talks from 1995 onward
that deal with security for NFS and RPC. Authors of interest include
Dan Nessett, Lin Ling, Ram Marti, Jack Kabat, and Mike Eisler. There's
nothing specific about the security model because the model
is essentially that of NFS over AUTH_DES (since renamed to AUTH_DH,
and now deprecated). The white paper by Goldberg and
Taylor from the Summer 1986 USENIX Conference has a clean description
of the model.

>
>
>also a simple question.  Is the security model made in a way that allows
>one to authenticate the entire client machine i.e. get the security one
>would get from running current NFS over ipsec, but w/o the ipsec
>requirement. (uid/gid pair of process of client determines access
>rights)
>

NFSv4 mandates the implementation of RPCSEC_GSS
w/ Kerberos V5, SPKM-3, and LIPKEY.
Like AUTH_DH, the mandatory security mechanisms are oriented toward
authenticating individual users, and not
client machines. There's nothing preventing one from deploying
security mechanisms for NFSv4 that authenticate machines, but
since those mechanisms are not mandatory, the in theory the chances of
achieving interoperability are lower. That said, I'm sad to say
that AUTH_SYS and its de-facto trusted client model are likely
to be used with NFSv4 for a long time, simply because it
it is trivial to set up compared to anything that is actually
secure.

    -mre






From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 13:36:34 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA19821
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 13:36:33 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA19294;
	Thu, 16 Jan 2003 11:37:22 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GIaEgE015820;
	Thu, 16 Jan 2003 10:36:14 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GIa316020151
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 10:36:03 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GIa3VI020150
	for nfsv4-wg-dist; Thu, 16 Jan 2003 10:36:03 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GIa116020143
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 10:36:01 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GIa5gE015734
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 10:36:05 -0800 (PST)
Received: from yucs.org (w089.z209220022.nyc-ny.dsl.cnc.net [209.220.22.89])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with SMTP id KAA07618
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 10:35:59 -0800 (PST)
Received: (qmail 16023 invoked from network); 16 Jan 2003 18:38:12 -0000
Received: from unknown (HELO ?192.168.0.102?) (spotter@66.65.53.53)
  by w089.z209220022.nyc-ny.dsl.cnc.net with SMTP; 16 Jan 2003 18:38:12 -0000
Subject: Re: NFSv4 security model
From: Shaya Potter <spotter@cs.columbia.edu>
To: Mike Eisler <mike@eisler.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: <3E26F126.6090907@eisler.com>
References: <1042685023.32623.202.camel@zaphod>
	 <3E26F126.6090907@eisler.com>
Content-Type: text/plain
Message-Id: <1042742061.32390.252.camel@zaphod>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.1 
Date: 16 Jan 2003 13:34:22 -0500
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

On Thu, 2003-01-16 at 12:51, Mike Eisler wrote:
> Shaya Potter wrote:
> >
> >I'm trying to understand the NFSv4 Security model, and am wondering if
> >anyone has any good pointers (beyond the RFC) on it (papers, talk
> >slides...)
> >
> At www.connectathon.org there are talks from 1995 onward
> that deal with security for NFS and RPC. Authors of interest include
> Dan Nessett, Lin Ling, Ram Marti, Jack Kabat, and Mike Eisler. There's
> nothing specific about the security model because the model
> is essentially that of NFS over AUTH_DES (since renamed to AUTH_DH,
> and now deprecated). The white paper by Goldberg and
> Taylor from the Summer 1986 USENIX Conference has a clean description
> of the model.
> 

thanks, I'll take a look.

> >
> >also a simple question.  Is the security model made in a way that allows
> >one to authenticate the entire client machine i.e. get the security one
> >would get from running current NFS over ipsec, but w/o the ipsec
> >requirement. (uid/gid pair of process of client determines access
> >rights)
> >
> 
> NFSv4 mandates the implementation of RPCSEC_GSS
> w/ Kerberos V5, SPKM-3, and LIPKEY.
> Like AUTH_DH, the mandatory security mechanisms are oriented toward
> authenticating individual users, and not
> client machines. There's nothing preventing one from deploying
> security mechanisms for NFSv4 that authenticate machines, but
> since those mechanisms are not mandatory, the in theory the chances of
> achieving interoperability are lower. That said, I'm sad to say
> that AUTH_SYS and its de-facto trusted client model are likely
> to be used with NFSv4 for a long time, simply because it
> it is trivial to set up compared to anything that is actually
> secure.

ok, this might be a stupid question, but it seems accepted that AUTH_SYS
doesn't provide any real security (except if one is using IPSEC or has
extreme physical security) as one could easily impersonate a machine, so
why wasn't their any middle ground taken, such as an AUTH_SYS that
supported secrecy/privacy and integrity, much like the RPCSEC_GSS module
does.

Is the reason nothing like this has been done because "if you want that,
just use AUTH_SYS with IPSEC" or is there a different reason.

thanks,

shaya potter



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 14:56:18 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA22256
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 14:56:18 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA02596;
	Thu, 16 Jan 2003 11:52:49 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GJpu4w016687;
	Thu, 16 Jan 2003 11:51:56 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GJpj16020558
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 11:51:45 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GJpj57020557
	for nfsv4-wg-dist; Thu, 16 Jan 2003 11:51:45 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GJph16020550
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 11:51:43 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GJppgE009244
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 11:51:51 -0800 (PST)
Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.132])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA24960
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:51:45 -0700 (MST)
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.194.23])
	by e34.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0GJpi3f020466
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 14:51:44 -0500
Received: from d03nm004.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0GJpgaV079258
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:51:42 -0700
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
Subject: Mandatory vs. Advisory
To: <nfsv4-wg@sunroof.eng.sun.com>
Message-ID: <OF8ABC8B8C.1AAD2DBF-ON88256CB0.0007BF69@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 16 Jan 2003 11:51:52 -0800
X-MIMETrack: Serialize by Router on D03NM004/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 01/16/2003 12:51:42
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




At my location we are attempting to evaluate the need to add NLM support to
our NFSv3 client due to NFSv4 mandatory locking...

Someone locally made the statement that NFSv4 mandatory locking is provided
solely to insure "data integrity".  And data integrity can only be provided
if everyone (all NFS versions) performs locking (e.g. no advisory locking
allowed).  To provide data integrity, a server implementation may decide to
enforce mandatory locking for NFSv3.  The last statement contradicts the
original NFSv3 protocol which assumes the nfs server is unaware of what
locks are held (by lockd) while processing a client read or write request.

The questions are:

o) Is anyone planning to enforce mandatory locking on their server for
NFSv3?
o) If a NFSv3 client does not support NLM and an NFSv3 server requires
mandatory locking (describes a failure case with no user bypass), are
both/neither considered to be abiding by the NFSv3 protocol?
o) Is it expected that all NFSv3 clients need to support NLM (or
unmonitored locking) because of mandatory locking?

Thanks for any clarification.



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 15:19:59 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA22924
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 15:19:58 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA20108;
	Thu, 16 Jan 2003 12:16:41 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKFUgE016570;
	Thu, 16 Jan 2003 12:15:30 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKFK16020863
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:15:20 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GKFKBa020862
	for nfsv4-wg-dist; Thu, 16 Jan 2003 12:15:20 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from phys-hanwk16-1.ebay.sun.com (root@phys-hanwk16-1.EBay.Sun.COM [129.149.1.5])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKFG16020855
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:15:18 -0800 (PST)
Received: from jetsun (jetsun.Central.Sun.COM [129.153.128.60])
	by phys-hanwk16-1.ebay.sun.com (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id h0GKFJL14322;
	Thu, 16 Jan 2003 12:15:19 -0800 (PST)
Message-Id: <200301162015.h0GKFJL14322@phys-hanwk16-1.ebay.sun.com>
Date: Thu, 16 Jan 2003 14:15:19 -0600 (CST)
From: David Robinson <David.Robinson@sun.com>
Reply-To: David Robinson <David.Robinson@sun.com>
Subject: Re: Mandatory vs. Advisory
To: nfsv4-wg@sunroof.eng.sun.com, scallen@us.ibm.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: pFVL8OsCcamrYvA7HXYyvw==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> Someone locally made the statement that NFSv4 mandatory locking is provided
> solely to insure "data integrity".

This is not correct, there is a fundemental programming model
difference between advisory locking and mandatory locking.
While it is likely that you can take an application
written for advisory locking and have it work correctly
with mandatory locking, the reverse is not likely to be
true. The purpose of mandatory locking is not to
provide data integrity in the face of non-participating
applications, it cannot provide that. What it does
allow is participating applications to control other
participating applications data access without some
applications explicitly acquiring locks. Unix/POSIX
people are mostly unfamilar with this model, but it
is common in Windows and other environments.

I am not currently implementing NFSv4, but here are some
theoretical answers:

> o) Is anyone planning to enforce mandatory locking on their server for
> NFSv3?

Not technically possible. There is no mechanism for an NFSv3
server to control an I/O operation. It can't know if the
request came from the identify that owns the lock. Not
to mention also sorts of issues like replay.

> o) If a NFSv3 client does not support NLM and an NFSv3 server requires
> mandatory locking (describes a failure case with no user bypass), are
> both/neither considered to be abiding by the NFSv3 protocol?

A NFSv3 server can't require manadatory locking, so the question is moot.

> o) Is it expected that all NFSv3 clients need to support NLM (or
> unmonitored locking) because of mandatory locking?

Again moot. Many clients (and servers) don't support NLM, their
success or failure appears to be dictated by market forces.

The whole interaction of non-NFSv4 clients and servers with
other protocols or local access is undefined.  As an example
of an attempt to handle the semantics of two different
protocols, see NetApp's paper on the handling of CIFS and NFSv3.

	-David
	



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 15:25:40 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA23064
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 15:25:39 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA15747;
	Thu, 16 Jan 2003 13:26:13 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKOv4w026603;
	Thu, 16 Jan 2003 12:24:57 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKOk16020893
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:24:47 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GKOk2r020892
	for nfsv4-wg-dist; Thu, 16 Jan 2003 12:24:46 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKOi16020885
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:24:44 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKOq4w026551
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:24:52 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA07389
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 13:24:44 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0GKNrYW028894;
	Thu, 16 Jan 2003 12:23:53 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0GKNrLq010491;
	Thu, 16 Jan 2003 12:23:53 -0800 (PST)
Received: from eisler.com (10.58.48.72 [10.58.48.72]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id CTJFNDXX; Thu, 16 Jan 2003 12:23:38 -0800
Message-ID: <3E2714CF.8040804@eisler.com>
Date: Thu, 16 Jan 2003 12:23:43 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Shaya Potter <spotter@cs.columbia.edu>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: NFSv4 security model
References: <1042685023.32623.202.camel@zaphod>	 <3E26F126.6090907@eisler.com> <1042742061.32390.252.camel@zaphod>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

>
>
>
>>>also a simple question.  Is the security model made in a way that allows
>>>one to authenticate the entire client machine i.e. get the security one
>>>would get from running current NFS over ipsec, but w/o the ipsec
>>>requirement. (uid/gid pair of process of client determines access
>>>rights)
>>>
>>NFSv4 mandates the implementation of RPCSEC_GSS
>>w/ Kerberos V5, SPKM-3, and LIPKEY.
>>Like AUTH_DH, the mandatory security mechanisms are oriented toward
>>authenticating individual users, and not
>>client machines. There's nothing preventing one from deploying
>>security mechanisms for NFSv4 that authenticate machines, but
>>since those mechanisms are not mandatory, the in theory the chances of
>>achieving interoperability are lower. That said, I'm sad to say
>>that AUTH_SYS and its de-facto trusted client model are likely
>>to be used with NFSv4 for a long time, simply because it
>>it is trivial to set up compared to anything that is actually
>>secure.
>>
>
>ok, this might be a stupid question, but it seems accepted that AUTH_SYS
>doesn't provide any real security (except if one is using IPSEC or has
>extreme physical security) as one could easily impersonate a machine, so
>

Even if running IPsec, AUTH_SYS still doesn't prevent Mallet from 
impersonating
Alice. Trivial ways include:
    Mallet, who knows the root password, su's to Alice
    Mallet, who knows how to use rpcgen, produces a user level
        NFS client in a matter of hours, and accesses Alice's data.
        (Or Mallet simple uses google to find a user level NFS client
        source code).


>
>why wasn't their any middle ground taken, such as an AUTH_SYS that
>supported secrecy/privacy and integrity, much like the RPCSEC_GSS module
>does.
>

Several things in no particular order:
-   Those NFS developers among us who were involved with or aware of
    the activities around adding AUTH_DH and then AUTH_KERB
    (Kerberos V4), got fed up with cryptographers publishing papers
    sooner after telling the world that the crypto system was too
    weak. We wanted to build file access protocols, not rewrite our
    implementations to add yet another security flavor. With
    RPCSEC_GSS, we've got a generic flavor that is flexible
    enough to add stronger crypto without changing the NFS
    implementation again.

    So if one wants something equivalent to AUTH_SYS with privacy and
    integrity without IPsec, one can still use RPCSEC_GSS.
    Just design and implement a security mechanism plug in (call it
    "mech_sys_plus" for the GSS-API, and it will all "just work".
    But for the reasons that follow, that wasn't consider sufficient.

-   as noted above, AUTH_SYS with IPsec or its own
    integrity/privacy still doesn't provide
    authentication at the granularity of the user.

-   For some people, host granularity integrity/privacy might not be enough.
    Since all traffic for all users uses the same IPsec session key, that
    offers Mallet more ciphertext to perform cryptanalysis with.

-   AUTH_SYS uses 32 bit uids, and is limited to 16
    groups. These limits may ultimately may force the move from AUTH_SYS
    to the mandated security mechanisms which:
    - uses string based principal names, hence allow an infinite number
      of users.
    - don't send group ids on the wire, so the server maps the principal
      tp whatver groups the user is in.




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 15:43:16 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA23391
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 15:43:15 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA16644;
	Thu, 16 Jan 2003 13:44:12 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKh34w001646;
	Thu, 16 Jan 2003 12:43:03 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKgm16020935
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:42:48 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GKgmbG020934
	for nfsv4-wg-dist; Thu, 16 Jan 2003 12:42:48 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKgk16020927
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:42:46 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKgo4w001604
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:42:54 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA25606
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 13:42:45 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0GKgiYW029900;
	Thu, 16 Jan 2003 12:42:44 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0GKghLq014443;
	Thu, 16 Jan 2003 12:42:44 -0800 (PST)
Received: from eisler.com (10.58.48.72 [10.58.48.72]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id CTJFNFAP; Thu, 16 Jan 2003 12:42:27 -0800
Message-ID: <3E271939.6070104@eisler.com>
Date: Thu, 16 Jan 2003 12:42:33 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Stevan Steve Allen <scallen@us.ibm.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Mandatory vs. Advisory
References: <OF8ABC8B8C.1AAD2DBF-ON88256CB0.0007BF69@us.ibm.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Stevan Steve Allen wrote:

>
>
>At my location we are attempting to evaluate the need to add NLM support to
>our NFSv3 client due to NFSv4 mandatory locking...
>
>Someone locally made the statement that NFSv4 mandatory locking is provided
>solely to insure "data integrity".  And data integrity can only be provided
>

I disagree. It's there because there are Windows and UNIX APIs that use
it. Of course, those who created those APIs might argue they did so for
the sake of data integrity. But they would be wrong. Advisory locking
works just fine for preserving data integrity, and as I point out
below, for NFS, it actually works better than mandatory locking.

>
>if everyone (all NFS versions) performs locking (e.g. no advisory locking
>allowed).  To provide data integrity, a server implementation may decide to
>
Where is that written?

>
>enforce mandatory locking for NFSv3.  The last statement contradicts the
>

Adding mandatory locking to NFSv3 can't work, because if the client has
used NLM to lock the affected range, the server can't tell if the client 
process
that is writing to the file is the same one that locked the affected range.
This is one reason why, in NFSv4,  I/O operations include a stateid
to identify the "lock owner" (aka, the UNIX process id) that is
doing the I/O in order to compare it to the lock owner than
got the lock.

>
>original NFSv3 protocol which assumes the nfs server is unaware of what
>locks are held (by lockd) while processing a client read or write request.
>
>The questions are:
>
>o) Is anyone planning to enforce mandatory locking on their server for
>NFSv3?
>
I hope not.

>
>o) If a NFSv3 client does not support NLM and an NFSv3 server requires
>mandatory locking (describes a failure case with no user bypass), are
>both/neither considered to be abiding by the NFSv3 protocol?
>

I know of no such NFSv3 servers that require mandatory locking.
If the mandatory lock bit is on the file, then typically the server
disallows access to the file.

I can imagine some NFSv4 servers might attempt to get
a non-blocking lock on the affected range, but it's rather
pointless since the data integrity argument only holds if
client locks the file through a critical section involving multiple I/Os.
And since NFSv3 will require the client to break a
large write() or read() request into several I/Os, having the
server locking  and unlocking each affected range
is useless.

>
>o) Is it expected that all NFSv3 clients need to support NLM (or
>unmonitored locking) because of mandatory locking?
>

No.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 15:46:23 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA23492
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 15:46:22 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA09816;
	Thu, 16 Jan 2003 12:42:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKfQgE027800;
	Thu, 16 Jan 2003 12:41:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKfF16020915
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:41:15 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GKfE2b020914
	for nfsv4-wg-dist; Thu, 16 Jan 2003 12:41:14 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GKfD16020907
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:41:13 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GKfKgE027757
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:41:20 -0800 (PST)
Received: from yucs.org (w089.z209220022.nyc-ny.dsl.cnc.net [209.220.22.89])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with SMTP id MAA08884
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 12:41:14 -0800 (PST)
Received: (qmail 17054 invoked from network); 16 Jan 2003 20:43:28 -0000
Received: from unknown (HELO ?192.168.0.102?) (spotter@66.65.53.53)
  by w089.z209220022.nyc-ny.dsl.cnc.net with SMTP; 16 Jan 2003 20:43:28 -0000
Subject: Re: NFSv4 security model
From: Shaya Potter <spotter@cs.columbia.edu>
To: Mike Eisler <mike@eisler.com>
Cc: nfsv4-wg@sunroof.eng.sun.com
In-Reply-To: <3E2714CF.8040804@eisler.com>
References: <1042685023.32623.202.camel@zaphod>
	 <3E26F126.6090907@eisler.com> <1042742061.32390.252.camel@zaphod>
	 <3E2714CF.8040804@eisler.com>
Content-Type: text/plain
Message-Id: <1042749577.32408.331.camel@zaphod>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.1 
Date: 16 Jan 2003 15:39:37 -0500
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

thanks for the response, gives me what to think about.

On Thu, 2003-01-16 at 15:23, Mike Eisler wrote:
> >
> >
> >
> >>>also a simple question.  Is the security model made in a way that allows
> >>>one to authenticate the entire client machine i.e. get the security one
> >>>would get from running current NFS over ipsec, but w/o the ipsec
> >>>requirement. (uid/gid pair of process of client determines access
> >>>rights)
> >>>
> >>NFSv4 mandates the implementation of RPCSEC_GSS
> >>w/ Kerberos V5, SPKM-3, and LIPKEY.
> >>Like AUTH_DH, the mandatory security mechanisms are oriented toward
> >>authenticating individual users, and not
> >>client machines. There's nothing preventing one from deploying
> >>security mechanisms for NFSv4 that authenticate machines, but
> >>since those mechanisms are not mandatory, the in theory the chances of
> >>achieving interoperability are lower. That said, I'm sad to say
> >>that AUTH_SYS and its de-facto trusted client model are likely
> >>to be used with NFSv4 for a long time, simply because it
> >>it is trivial to set up compared to anything that is actually
> >>secure.
> >>
> >
> >ok, this might be a stupid question, but it seems accepted that AUTH_SYS
> >doesn't provide any real security (except if one is using IPSEC or has
> >extreme physical security) as one could easily impersonate a machine, so
> >
> 
> Even if running IPsec, AUTH_SYS still doesn't prevent Mallet from 
> impersonating
> Alice. Trivial ways include:
>     Mallet, who knows the root password, su's to Alice
>     Mallet, who knows how to use rpcgen, produces a user level
>         NFS client in a matter of hours, and accesses Alice's data.
>         (Or Mallet simple uses google to find a user level NFS client
>         source code).
> 
> 
> >
> >why wasn't their any middle ground taken, such as an AUTH_SYS that
> >supported secrecy/privacy and integrity, much like the RPCSEC_GSS module
> >does.
> >
> 
> Several things in no particular order:
> -   Those NFS developers among us who were involved with or aware of
>     the activities around adding AUTH_DH and then AUTH_KERB
>     (Kerberos V4), got fed up with cryptographers publishing papers
>     sooner after telling the world that the crypto system was too
>     weak. We wanted to build file access protocols, not rewrite our
>     implementations to add yet another security flavor. With
>     RPCSEC_GSS, we've got a generic flavor that is flexible
>     enough to add stronger crypto without changing the NFS
>     implementation again.
> 
>     So if one wants something equivalent to AUTH_SYS with privacy and
>     integrity without IPsec, one can still use RPCSEC_GSS.
>     Just design and implement a security mechanism plug in (call it
>     "mech_sys_plus" for the GSS-API, and it will all "just work".
>     But for the reasons that follow, that wasn't consider sufficient.
> 
> -   as noted above, AUTH_SYS with IPsec or its own
>     integrity/privacy still doesn't provide
>     authentication at the granularity of the user.
> 
> -   For some people, host granularity integrity/privacy might not be enough.
>     Since all traffic for all users uses the same IPsec session key, that
>     offers Mallet more ciphertext to perform cryptanalysis with.
> 
> -   AUTH_SYS uses 32 bit uids, and is limited to 16
>     groups. These limits may ultimately may force the move from AUTH_SYS
>     to the mandated security mechanisms which:
>     - uses string based principal names, hence allow an infinite number
>       of users.
>     - don't send group ids on the wire, so the server maps the principal
>       tp whatver groups the user is in.
> 



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 16 19:01:05 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA26959
	for <nfsv4-archive@lists.ietf.org>; Thu, 16 Jan 2003 19:01:04 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA14351;
	Thu, 16 Jan 2003 15:57:13 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GNuD4w001256;
	Thu, 16 Jan 2003 15:56:13 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GNu216021674
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 16 Jan 2003 15:56:02 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0GNu2pL021673
	for nfsv4-wg-dist; Thu, 16 Jan 2003 15:56:02 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0GNu016021666
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 15:56:00 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0GNu8gE000709
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 15:56:08 -0800 (PST)
Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.131])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA22816
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 16:56:03 -0700 (MST)
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e33.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0GNu2t6053032
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 18:56:02 -0500
Received: from d03nm004.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0H005eK219042
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 16 Jan 2003 17:00:05 -0700
Subject: Re: Mandatory vs. Advisory
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Message-ID: <OF2A88B4E4.D68758B3-ON88256CB0.0083557B@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 16 Jan 2003 15:56:00 -0800
X-MIMETrack: Serialize by Router on D03NM004/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 01/16/2003 16:56:01
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




Mike, David.  Those were the answers I was looking for.  Thank you sirs.



From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 17 19:00:49 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA07855
	for <nfsv4-archive@lists.ietf.org>; Fri, 17 Jan 2003 19:00:49 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA25253;
	Fri, 17 Jan 2003 15:57:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0HNun4w012492;
	Fri, 17 Jan 2003 15:56:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0HNuc16025782
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 17 Jan 2003 15:56:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0HNucZa025781
	for nfsv4-wg-dist; Fri, 17 Jan 2003 15:56:38 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0HNuZ16025768
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 17 Jan 2003 15:56:35 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0HNuigE003581
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 17 Jan 2003 15:56:44 -0800 (PST)
Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.131])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA29075
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 17 Jan 2003 16:56:39 -0700 (MST)
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.194.23])
	by e33.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0HNuct6066216
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 17 Jan 2003 18:56:38 -0500
Received: from d03nm004.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0HNubWt227094
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 17 Jan 2003 16:56:38 -0700
Subject: Re: Mandatory vs. Advisory
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Message-ID: <OF87C77190.C41333AF-ON87256CB1.007D982A@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Fri, 17 Jan 2003 15:56:35 -0800
X-MIMETrack: Serialize by Router on D03NM004/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 01/17/2003 16:56:37
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




David,

I believe your prior post describes a basic environment where applications
decide if locking (control) is needed and there is no checking by the pfs
level or file server.  In this environment, locking is never required by
the pfs/file server to access data (hence nothing to do with data
integrity).  The NFS supported locking model does not provide data
integrity, instead it is a communication vehicle for remote applications to
control each other.  Customers may attempt<?> to impose data integrity by
controlling access to only those applications which provide the necessary
lock requests for the level of integrity needed by the customer solution.

I have Brent's illustrated book (which we seem to have misinterpreted), do
you recommend any other material describing the control model you mention?

The application control model you describe below is not true in the
"locking" model we are familiar with.

"it is likely that you can take an application written for advisory locking
and have it work correctly with mandatory locking"

I suspect we are incorrectly imposed our locking model onto the NLM/v4
protocols.  Our prior experience comes from an required locking model
designed to guaranteed transactional data integrity in a shared
environment.  In our previous environment, locks were verified at the
remote pfs layer which may reject or provide implicit locking for a file
data request.  In such an environment, an application deciding not to lock
may be incompatible with the pfs layer access controls and fail.

Your application centered control model is interesting and I shiver at the
thought of removing the check in the remote pfs layer thereby allowing
possible data corruption due to a poorly coded application not protecting
data.  But hey, I'm open to new ideas.

Thanks,
Stevan C. Allen


                      Winston Churchill:
" A Riddle wrapped in a mystery inside enigma."



From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 17 20:30:10 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA08672
	for <nfsv4-archive@lists.ietf.org>; Fri, 17 Jan 2003 20:30:10 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA05133;
	Fri, 17 Jan 2003 17:27:21 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0I1QV4w008454;
	Fri, 17 Jan 2003 17:26:31 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0I1QJ16026074
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 17 Jan 2003 17:26:19 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0I1QJqd026073
	for nfsv4-wg-dist; Fri, 17 Jan 2003 17:26:19 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from phys-hanwk16-1.ebay.sun.com (root@phys-hanwk16-1.EBay.Sun.COM [129.149.1.5])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0I1QH16026066
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 17 Jan 2003 17:26:17 -0800 (PST)
Received: from Sun.COM (jetsun.Central.Sun.COM [129.153.128.60])
	by phys-hanwk16-1.ebay.sun.com (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with ESMTP id h0I1QLL23263;
	Fri, 17 Jan 2003 17:26:21 -0800 (PST)
Message-ID: <3E28AD3C.3030904@Sun.COM>
Date: Fri, 17 Jan 2003 19:26:20 -0600
From: David Robinson <David.Robinson@sun.com>
Reply-To: David.Robinson@sun.com
Organization: Sun Microsystems, Inc.
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Stevan Steve Allen <scallen@us.ibm.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Mandatory vs. Advisory
References: <OF87C77190.C41333AF-ON87256CB1.007D982A@us.ibm.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Stevan Steve Allen wrote:
> I believe your prior post describes a basic environment where applications
> decide if locking (control) is needed and there is no checking by the pfs
> level or file server.  In this environment, locking is never required by
> the pfs/file server to access data (hence nothing to do with data
> integrity).  The NFS supported locking model does not provide data
> integrity, instead it is a communication vehicle for remote applications to
> control each other.  Customers may attempt<?> to impose data integrity by
> controlling access to only those applications which provide the necessary
> lock requests for the level of integrity needed by the customer solution.

Maybe it will help to describe an example of how NFSv4 cannot provide
data integrity unless all applications are cooperating. Two processes
are working on a file, both have the file open read/write and also
allow other read/writers (otherwise both couldn't have gotten two
read/write access). In sharing the file each process grabs the
necessary write lock before it modifies the data and drops it when
finished to allow the other process to have access. In the mandatory
locking model, the process can either grab the explicit lock which will
guarentee read access without concern for an interposing write, or it
can simply read the data and if there is a conflicting lock the read
will return an error and the process can decide how to proceed (i.e.
error, sleep and retry, whatever). But even in the case of two
cooperating processes, each explicitly grabbing locks before doing an
I/O, which makes the data between them consistent, there is still the
issue of a third process opening the file and causing corruption.
Because the act of unlocking part of a file and allowing another to grab
a lock is not atomic, the third process can get an operation in
(possibly an I/O without a lock being held) that will corrupt the data.

At best, NFSv4 can only use access control to restrict who
can OPEN a file and thus get access to a file.

> I have Brent's illustrated book (which we seem to have misinterpreted), do
> you recommend any other material describing the control model you mention?

The NFSv4 locking model is a hybrid of the standard POSIX advisory
locking model and the Windows file locking model. It does not however
incorporate the SYS V mandatory locking model. Reading publications
on those is probably your best bet.

> The application control model you describe below is not true in the
> "locking" model we are familiar with.
> 
> "it is likely that you can take an application written for advisory locking
> and have it work correctly with mandatory locking"
> 
> I suspect we are incorrectly imposed our locking model onto the NLM/v4
> protocols.  Our prior experience comes from an required locking model
> designed to guaranteed transactional data integrity in a shared
> environment.  In our previous environment, locks were verified at the
> remote pfs layer which may reject or provide implicit locking for a file
> data request.  In such an environment, an application deciding not to lock
> may be incompatible with the pfs layer access controls and fail.
> 
> Your application centered control model is interesting and I shiver at the
> thought of removing the check in the remote pfs layer thereby allowing
> possible data corruption due to a poorly coded application not protecting
> data.  But hey, I'm open to new ideas.

I don't know the "pfs" model, but I suspect that you may be used to
a locking model where all I/O operations must be performed under
and explicit lock with strong controls on who can access a file.
That was not put into NFSv4 because it would be difficult to
implement under both Unix and Windows. There was language in earlier
drafts that talked about "implicit" locks, but that led to confusion
and wrong conclusions that an I/O operation caused a lock to be
obtained even without an explicit lock request. In the Unix world
if an application can open a file, it can write all over it and
destroy your data (e.g. "cat foo > bar"). Even worse, if you
restrict access to only known applications, a coding error can
cause an app to read or write data without holding a lock which
could corrupt data, its the Unix/POSIX/Windows way.

I have not seen requests for a stronger locking model, but I can
imagine extending the existing semantics to prohibit an I/O
operation unless the stateid in the request corresponds to
a state where the lock_owner has explicitly gotten the necessary
lock. COMPOUND would make this easy for a client to implement
and it wouldn't be hard for a server to check. But it might
break lots of existing applications. You might be able to
create a vendor specific share/export option that enforces such
really strict behavior by the client, but turning it on would
break interoperability. But even such an option would not
be sufficient to handle the recovery semantics needed, once
NFSv4's lease/grace period has expired new I/O's are
allowed, even if the crash caused a "transaction" not
to complete leading to data corruption.

In general, these sorts of stricting locking semantics have
been punted by the file systems designers to the applications
themselves. As an example, Oracle Parallel server maintains
its own distributed lock manager to achieve tight consistency
and has its own dedicated algorithms to handle recovery.

I suspect you are trying to use NFSv4 in a manner it was
simply not designed for....

	-David



From owner-nfsv4-wg@sunroof.eng.sun.com  Sat Jan 18 11:12:50 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA28309
	for <nfsv4-archive@lists.ietf.org>; Sat, 18 Jan 2003 11:12:50 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA07885;
	Sat, 18 Jan 2003 08:09:19 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0IG7ggE005431;
	Sat, 18 Jan 2003 08:07:42 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0IG7V16027946
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sat, 18 Jan 2003 08:07:31 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0IG7UoJ027945
	for nfsv4-wg-dist; Sat, 18 Jan 2003 08:07:30 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0IG7S16027938
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 18 Jan 2003 08:07:29 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0IG7b4w001625
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 18 Jan 2003 08:07:37 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA18413
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 18 Jan 2003 09:07:32 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0IG7VYW017525;
	Sat, 18 Jan 2003 08:07:31 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0IG7ULq028630;
	Sat, 18 Jan 2003 08:07:30 -0800 (PST)
Received: from eisler.com (10.58.48.97 [10.58.48.97]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id CTJFPL53; Sat, 18 Jan 2003 08:07:13 -0800
Message-ID: <3E297BB8.7030202@eisler.com>
Date: Sat, 18 Jan 2003 08:07:20 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: David.Robinson@sun.com
CC: Stevan Steve Allen <scallen@us.ibm.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: Mandatory vs. Advisory
References: <OF87C77190.C41333AF-ON87256CB1.007D982A@us.ibm.com> <3E28AD3C.3030904@Sun.COM>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


David Robinson wrote:

> Stevan Steve Allen wrote:
>
>> I believe your prior post describes a basic environment where 
>> applications
>> decide if locking (control) is needed and there is no checking by the 
>> pfs
>> level or file server.  In this environment, locking is never required by
>> the pfs/file server to access data (hence nothing to do with data
>> integrity).  The NFS supported locking model does not provide data
>> integrity, instead it is a communication vehicle for remote 
>> applications to
>> control each other.  Customers may attempt<?> to impose data 
>> integrity by
>> controlling access to only those applications which provide the 
>> necessary
>> lock requests for the level of integrity needed by the customer 
>> solution.
>
>
> Maybe it will help to describe an example of how NFSv4 cannot provide
> data integrity unless all applications are cooperating. Two processes
> are working on a file, both have the file open read/write and also
> allow other read/writers (otherwise both couldn't have gotten two
> read/write access). In sharing the file each process grabs the
> necessary write lock before it modifies the data and drops it when
> finished to allow the other process to have access. In the mandatory
> locking model, the process can either grab the explicit lock which will
> guarentee read access without concern for an interposing write, or it
> can simply read the data and if there is a conflicting lock the read
> will return an error and the process can decide how to proceed (i.e.
> error, sleep and retry, whatever). But even in the case of two
> cooperating processes, each explicitly grabbing locks before doing an
> I/O, which makes the data between them consistent, there is still the
> issue of a third process opening the file and causing corruption.
> Because the act of unlocking part of a file and allowing another to grab
> a lock is not atomic, the third process can get an operation in
> (possibly an I/O without a lock being held) that will corrupt the data.
>
> At best, NFSv4 can only use access control to restrict who
> can OPEN a file and thus get access to a file. 


I agree, but your example applies to three processes on
the same system each accessing the same file
on the same local filesystem.

>
>
>> I have Brent's illustrated book (which we seem to have 
>> misinterpreted), do
>> you recommend any other material describing the control model you 
>> mention?
>
>
> The NFSv4 locking model is a hybrid of the standard POSIX advisory
> locking model and the Windows file locking model. It does not however
> incorporate the SYS V mandatory locking model. Reading publications
> on those is probably your best bet. 


I disagree. I think the System V mandatory locking model is supportable.
When the server performs aconflicting  I/O on a file with the mandatory
lock bit set, it can use the stateid of the request to see if the
requester has the conflicting lock. If the requester has the conflicting
lock, and the lock doesn't need to be upgraded (e.g. read to write,
range extension), then the server can allow the I/O. Otherwise,
it can simply return NFS4ERR_LOCKED, and the client
can then acquire the necessary lock on behalf of its process.

At least this was how RFS worked in System V Release 3.2. Since the
System V Verification Suite (SVVS) passed on System V R3.2 over RFS
(and not on System V R3.0), I conclude that an NFSv4 client
and server implementing System mandatory locking would
pass SVVS. And that's good enough proof that NFSv4 supports
System V mandatory locking.

BTW, this issue was discussed at length at the Ann Arbor bakeoff
last August, and as a result, text was added to the specification
to clarifiy, as well as eliminating the rather useless mandatory
lock flag from the OPEN results. (It was eliminated because
in the System V world, the mand lock bit can come on
any time. Therefore, NFS4ERR_LOCKED is the only
consistent indicator that mandatory locking is on.

See http://www.nfsv4.org/rfc3010updates/issue218/issue218.html

I don't know what Stevan's client's locking model is, but if the
client represents a significant platform in terms of numbers of users
(given the number of different platforms IBM has, and the size of
IBM's business, a real possibility), future minor revisions of NFSv4
ought to consider extending NFSv4 locking accordingly, if it is feasible.




From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan 22 15:16:27 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA05775
	for <nfsv4-archive@lists.ietf.org>; Wed, 22 Jan 2003 15:16:27 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA15492;
	Wed, 22 Jan 2003 12:12:47 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0MKC9gE001715;
	Wed, 22 Jan 2003 12:12:09 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0MKBw16024390
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 22 Jan 2003 12:11:58 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0MKBwIo024389
	for nfsv4-wg-dist; Wed, 22 Jan 2003 12:11:58 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0MKBu16024382
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 22 Jan 2003 12:11:56 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0MKC44w000563
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 22 Jan 2003 12:12:04 -0800 (PST)
Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.131])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA12921
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 22 Jan 2003 12:11:58 -0800 (PST)
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.194.23])
	by e33.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0MKBuBX024424
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 22 Jan 2003 15:11:57 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0MKBhiU246488
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 22 Jan 2003 13:11:54 -0700
Subject: Re: NFSv4 Advisory vs. Mandatory locking issues
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Message-ID: <OF14A04926.5D07E3FE-ON88256CB6.005549B0@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Wed, 22 Jan 2003 13:11:47 -0700
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 01/22/2003 13:11:54
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




We are examining the ability to implement various locking models in the
NFSv4 server to support our various customer needs.  I am posting here to
verify we are not disturbing any NFS rules or verbiage.  Please read the
entire post before replying to specifics.

This post is attempting to answer the following two questions.  With the
introduction of NFSv4 mandatory locking support, what are the implications
to unix applications using advisory locking in v3 and v4 environments, and
what are the implications of sharing a file between v3 and v4 users.

This post also introduces an important distinction that an NFSv4 server
customer may now have the ability to decide which locking model is to be
utilized for his solution.

-----------------------------------------

With the introduction of v4 mandatory locking support, nothing has changed
for applications using NFSv3 (locks are still not checked and temporary
implicit locks will not be obtained by the server on the clients behalf).
To support customer solutions where mandatory locking is required, NFS
versions supporting NLM can not be used.  (e.g. A v3 enabled server will
not verify or obtain the implicit lock needed to support the customers
mandatory locking solution)

Comment: I do not find a problem scenario where the solution is to provide
both NFS v3 advisory locking and NFS v4 mandatory locking to simultaneously
access the same file.  Allowing both advisory & mandatory access may be the
default server environment but I see no benefit or problem being solved
with this approach.

Mandatory locking model.  Mandatory locking was introduced in NFSv4 to
support customer solutions which could not be satisfied using an advisory
locking model.  Describing NFSv4 as a hybrid locking model is not
recommended, instead NFS attempts to provide a conduit for existing locking
models to be negotiated between a server and client, where current and
future enhancements to NFS locking are attempts to support most or all
common locking models implemented by various platforms and allow a given
model to be negotiated between dissimilar client/server platforms.

In NFSv3, the need to lock can not be controlled or enforced by the NFS
server.  Unlike v3, v4 now allows the customer to implement on the server
platform the ability to restrict which locking models are allowed in the
distributed environment based on a files access needs, platform
requirements, or the requirements of a given solution.  The NFSv4 protocol
now provides an NFS server customer (probably the storage admin) the choice
to decide on a file by file, file system, or NFS server basis the locking
model needed by a given solution, and enforce that model from the server
end.  This is contrary to the UNIX world where the application decides if
locks are needed.  NFSv4 locking therefore allows the server customer to
implement platform specific locking solutions which may refuse access to
clients using different locking solutions.  This is not true in an NFSv3
environment.

We are examining the following NFSv4 server solution.  Verbiage may be
specific to our platform.

The NFSv4 draft does not describe (or exclude) the differences between
various mandatory locking models implemented on various server platforms.
On a file by file basis, an NFS server customer may select one of the
following locking models supported by NFSv4.

  o Advisory Locking
  o Mandatory where a lock will be obtained on behalf of the client
    for implicit lock operations (using advisory locking)
  o Mandatory where implicit locking is not allowed (fail request)
    option describes a solution where strong locking is needed.

An interesting clarification is that a v4 client/appl does not know
beforehand if the server is supporting advisory or mandatory locks.  An
unprotected request will not conflict with locks if the server is running
v3, or v4 in advisory mode.  If the request is v4 with the server
implementing mandatory w/ implicit locks, the unprotected i/o request may
now fail (conflicting lock) where it would have been successful using
advisory locking.  If the request is v4 with the server implementing
mandatory w/ only explicit locks allowed, an unprotected request will
always fail.  If the server has disabled NFSv2/v3 access and has
implemented a v4 mandatory locking solution, v2/v3 requests will fail while
v4 implicit requests may have the lock obtained on their behalf, or the
request failed if explicit locking is required.


Thanks,
Stevan C. Allen


            Winston Churchill:
"A Riddle wrapped in a mystery inside enigma."




From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan 22 15:46:24 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA06684
	for <nfsv4-archive@lists.ietf.org>; Wed, 22 Jan 2003 15:46:23 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA28889;
	Wed, 22 Jan 2003 13:46:58 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0MKk9gE016488;
	Wed, 22 Jan 2003 12:46:09 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0MKjw16024935
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 22 Jan 2003 12:45:58 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0MKjwuw024934
	for nfsv4-wg-dist; Wed, 22 Jan 2003 12:45:58 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from phys-hanwk16-1.ebay.sun.com (root@phys-hanwk16-1.EBay.Sun.COM [129.149.1.5])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0MKju16024927
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 22 Jan 2003 12:45:56 -0800 (PST)
Received: from jetsun (jetsun.Central.Sun.COM [129.153.128.60])
	by phys-hanwk16-1.ebay.sun.com (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id h0MKk0L15771;
	Wed, 22 Jan 2003 12:46:00 -0800 (PST)
Message-Id: <200301222046.h0MKk0L15771@phys-hanwk16-1.ebay.sun.com>
Date: Wed, 22 Jan 2003 14:45:59 -0600 (CST)
From: David Robinson <David.Robinson@sun.com>
Reply-To: David Robinson <David.Robinson@sun.com>
Subject: Re: NFSv4 Advisory vs. Mandatory locking issues
To: nfsv4-wg@sunroof.eng.sun.com, scallen@us.ibm.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: DtcM98Xj2ZdGBUXJ9LOVIQ==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

I have trouble with the notion of "implicit locking." NFSv4
has no such notion and an I/O operation should not fail
wity NFS4ERR_LOCKED unless there is an explicit lock. Internally
many implementations will acquire a per file mutex to serialize
I/O requests necessary for some file system semantics
such as those specified by POSIX.  However, the
serialization should only cause an increase in latency
for the reply to the client, not an error.

Realistically the NFSv4 server has only two choices:

	1) Implement advisory locking which allows I/O to
	   complete even in the face of a "conflicting" lock
	   
	2) Implement mandatory locking, causing I/O operations
	   to error if an explicit lock conflicts.

There is no third choice of having the server obtain implicit locks.

If you have a client OS that maintains the model that all I/O
operations occur only within the control of a lock, I would
suggest that the solution should be implemented on the
client.  For all I/O requests, form a COMPOUND operation
that obtains the necessary lock, does I/O and unlocks.
For example <PUTFH, LOCK, READ, LOCKU>. While this will not
prevent an uncooperative client from doing I/O without a
lock, through export/share controls you can limit those clients
from having access.  The advantage is that your application will
get the right semantics with a standard server.

With this approach, you could add the non-standard feature to
the server that it will reject any I/O that is not done within
an explicit lock range. This will of course break standard client's
access, but it is much more civilized than trying to implement
"implicit" locks. The latter will result in a standard client
seeing some operations suceed and some fail depending on
what other I/O operations are being performed, even in
the abscence of explicit locks. With this non-standard feature
all I/Os will deterministically fail without an explicit lock.
For non-standard features, this is the lesser of two evils.

	-David
	



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 10:31:45 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA10315
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 10:31:43 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA21658;
	Thu, 23 Jan 2003 07:28:27 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NFR74w017208;
	Thu, 23 Jan 2003 07:27:07 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NFQs16002922
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 07:26:54 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NFQsj2002921
	for nfsv4-wg-dist; Thu, 23 Jan 2003 07:26:54 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NFQq16002914
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 07:26:52 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NFR1gE007931
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 07:27:01 -0800 (PST)
Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.132])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA25909
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 08:26:56 -0700 (MST)
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e34.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0NFQtiD009266
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 10:26:56 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0NFUkXA105654
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 08:31:08 -0700
X-Mailer: Lotus Notes Release 5.0.7  March 21, 2001
Subject: Re: NFSv4 Advisory vs. Mandatory locking issues
To: <nfsv4-wg@sunroof.eng.sun.com>
Message-ID: <OF53538004.4A2FD3F9-ON88256CB7.0013178B@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 23 Jan 2003 07:24:59 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 01/23/2003 08:26:54
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>




Thanks David,  for what I am asking I summarized your post as follows.

For I/O requests in an NFSv4  mandatory locking environment many NFS server
implementations may serialize the I/O requests by acquiring a file mutex.
Mutex describes serialization semantics where each object successfully
completes.  To support mandatory locking solutions, the NFSv4 protocol
introduced locked based failure conditions not supported by the mutex
serialization model for which I/O requests are failed. If an I/O request
passes the locking conditions described in the NFSv4 draft a standard NFS
server implementation will satisfy the requests locking requirements.
Additional lock based failure conditions other than those described in the
NFSv4 draft to support customer solutions such as strong locking are
considered non-standard NFS implementations. Non-standard deviations of the
NFSv4 locking protocol should be documented by the implementing product.
The NFSv4 protocol does not support or restrict the use of non-standard NFS
implementations to satisfy customer solutions.

My view may be narrow in this case, I assume the external behavior for
"implicit locking" is not agreed upon.

Thanks,
Stevan C. Allen




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 12:26:15 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA13978
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 12:26:15 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA29493;
	Thu, 23 Jan 2003 09:22:04 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NHL9gE007671;
	Thu, 23 Jan 2003 09:21:09 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NHL616003601
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 09:21:06 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NHL6l1003600
	for nfsv4-wg-dist; Thu, 23 Jan 2003 09:21:06 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from phys-hanwk16-1.ebay.sun.com (root@phys-hanwk16-1.EBay.Sun.COM [129.149.1.5])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NHL416003593
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 09:21:04 -0800 (PST)
Received: from jetsun (jetsun.Central.Sun.COM [129.153.128.60])
	by phys-hanwk16-1.ebay.sun.com (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id h0NHKxL23284;
	Thu, 23 Jan 2003 09:20:59 -0800 (PST)
Message-Id: <200301231720.h0NHKxL23284@phys-hanwk16-1.ebay.sun.com>
Date: Thu, 23 Jan 2003 11:20:59 -0600 (CST)
From: David Robinson <David.Robinson@sun.com>
Reply-To: David Robinson <David.Robinson@sun.com>
Subject: Re: NFSv4 Advisory vs. Mandatory locking issues
To: nfsv4-wg@sunroof.eng.sun.com, scallen@us.ibm.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: JR9QQGpTBeBb4tQtgUcCiw==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> The NFSv4 protocol does not support or restrict the use of non-standard NFS
> implementations to satisfy customer solutions.

As a clarification, non-standard implementations are by definition
not "NFSv4" and should not be called NFSv4.  This is a common
confusion in the IETF, if you use the term NFSv4 it is
standards conforming, anything else should have it's own
name (e.g. Bob's FS). Otherwise there is no way to distinguish
between an implementation that has changed just one required
feature and another that is loosely based on NFSv4 (think DAFS).
	
> My view may be narrow in this case, I assume the external behavior for
> "implicit locking" is not agreed upon.

There isn't any concept of "implicit locking" to be agreed upon. There
is no requirement in the protocol for ordering or preventing
interleaving between I/O requests.  It is just that most
server's implementations have inherent file systems semantics
that provide per request atomicity.

	-David
	



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 14:36:42 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA18076
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 14:36:42 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA14684;
	Thu, 23 Jan 2003 11:33:35 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NJXHgE023361;
	Thu, 23 Jan 2003 11:33:17 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NJXE16004832
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 11:33:14 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NJXEru004831
	for nfsv4-wg-dist; Thu, 23 Jan 2003 11:33:14 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NJXC16004824
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 11:33:12 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NJXBln011551
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:33:12 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.6+Sun/8.12.6) with ESMTP id h0NJVRgp100490
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 13:31:27 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.6+Sun/8.12.6/Submit) id h0NJVRaW100489
	for nfsv4-wg@sunroof.eng.sun.com; Thu, 23 Jan 2003 13:31:27 -0600 (CST)
Date: Thu, 23 Jan 2003 13:31:27 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: what is a server to do... (current filehandle != file/stateid)
Message-ID: <20030123193127.GG100402@dhcp-uaus08-128-228.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.99i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

So it is possible that a client makes a mistake and sends over a
request such that the current filehandle does not match the
file/stateid for a particular operation.  What should a server do?

Our server is currently returning NFS4ERR_BAD_STATEID.  At one point
this seemed appropriate since the client had just made a mis-match
error in constructing its request.

The alternate choice is to have the server return another error.
NFS4ERR_INVAL seems most appropriate since we don't have a
NFS4ERR_FILEHANDLE_STATEID_MISMATCH error.  The implication in
returning NFS4ERR_INVAL is that the server will need to bump the
sequence id.  This seems odd to me since there is a mismatch error in
the request but I am not wedded to one method or the other.

The operations that would have this check all have NFS4ERR_INVAL
available to them and obviously not all have to deal with incrementing
the sequence id.  CLOSE, DELEGRETURN, LOCK, LOCKU, OPEN_CONFIRM,
OPEN_DOWNGRADE, READ, SETATTR, WRITE

Opinions?

-- 
Spencer



From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 15:30:31 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA19368
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 15:30:31 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA28428;
	Thu, 23 Jan 2003 13:30:42 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKU0gE017300;
	Thu, 23 Jan 2003 12:30:00 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKTr16005095
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:29:53 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NKTqeK005094
	for nfsv4-wg-dist; Thu, 23 Jan 2003 12:29:52 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKTf16005087
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:29:51 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKTe4w024315
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:29:40 -0800 (PST)
Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.131])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA13850
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 13:29:33 -0700 (MST)
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32])
	by e33.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0NKTUBX028354
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 15:29:30 -0500
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82])
	by westrelay04.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0NKXeX9195980
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 13:33:42 -0700
Subject: Fw: NFSv4 Advisory vs. Mandatory locking issues
To: nfsv4-wg@sunroof.eng.sun.com
X-Mailer: Lotus Notes Release 6.0 September 26, 2002
Message-ID: <OFC933542D.13F8FC5A-ON88256CB7.006846EE-88256CB7.007024A8@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
Date: Thu, 23 Jan 2003 12:24:54 -0800
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0 [IBM]|December 16, 2002) at
 01/23/2003 13:29:27
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>





David wrote:

>> The NFSv4 protocol does not support or restrict the use of nonstandard
NFS
>> implementations to satisfy customer solutions.
>
>As a clarification, nonstandard implementations are by definition
>not "NFSv4" and should not be called NFSv4.  This is a common
>confusion in the IETF, if you use the term NFSv4 it is
>standards conforming, anything else should have it's own
>name (e.g. Bob's FS). Otherwise there is no way to distinguish
>between an implementation that has changed just one required
>feature and another that is loosely based on NFSv4 (think DAFS).

This is the area I'm unfamiliar with and appreciate your responses.

I support the IETF/WG need to draw the line and define boundaries.  From
the
protocol perspective, the only real "NFS" server product are those that
support all the procedures and provide the expected results outlined in
the draft.  Nothing more, nothing less.

Where we got into trouble is certain platforms may not be able to support a
particular NFS draft item and therefore implemented a failure type
restriction "I can't do that" which is not defined in the protocol.  An
example would be a server not able to support delegation for reasons
entirely
of it's own, or not support file share semantics.

The problem is deciding if this product can still be labeled NFS, or
does IETF/WG not accept this as an NFS product because of the restriction.
The answer of not NFS may affect the goal of NFS acceptance and
availability.
It seems like we are at a point where restrictive offerings may call
themselves NFS without anyone forcing them to change their name to Bob's
FS.
Even though by protocol definition they are not NFS due to their
restrictive
nature.  I'm only describing restricting function, not adding additional
function.

What are the ramifications of incorporating non-NFS restrictions to satisfy
platform limitations or limitations to support customer requirements and
labeling your product as NFS?








The problem
in defining "NFS" products


             -David





From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 15:32:03 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA19416
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 15:32:02 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA23446;
	Thu, 23 Jan 2003 12:28:02 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKREgE012342;
	Thu, 23 Jan 2003 12:27:14 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKRB16005081
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:27:11 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NKRBtT005080
	for nfsv4-wg-dist; Thu, 23 Jan 2003 12:27:11 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKR916005073
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:27:09 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKR94w023779
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:27:09 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA22822
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 13:27:03 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0NKR2YW001570;
	Thu, 23 Jan 2003 12:27:02 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0NKR2Lq028729;
	Thu, 23 Jan 2003 12:27:02 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK90PF1>; Thu, 23 Jan 2003 12:27:02 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A3B@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'spencer.shepler@sun.com'" <spencer.shepler@sun.com>,
        nfsv4-wg@sunroof.eng.sun.com
Subject: RE: what is a server to do... (current filehandle != file/stateid
	)
Date: Thu, 23 Jan 2003 12:27:00 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
 

> So it is possible that a client makes a mistake and sends over a
> request such that the current filehandle does not match the
> file/stateid for a particular operation.  What should a server do?

> Our server is currently returning NFS4ERR_BAD_STATEID.

That's what our server does as well.  My logic is that in the current 
context, as set by the current file handle, that stateid isn't valid.  

> At one point
> this seemed appropriate since the client had just made a mis-match
> error in constructing its request.

> The alternate choice is to have the server return another error.
> NFS4ERR_INVAL seems most appropriate since we don't have a
> NFS4ERR_FILEHANDLE_STATEID_MISMATCH error.  The implication in
> returning NFS4ERR_INVAL is that the server will need to bump the
> sequence id.  This seems odd to me since there is a mismatch error in
> the request but I am not wedded to one method or the other.

INVAL is kind of annoying since it tells you something is wrong
without any hint about what.

And bumping the sequence-id when somebody sent you something 
erroneous doesn't seem very nice either.

Given that the spec is silent on this, one can't say that the
server is wrong to return INVAL, but likewise a strong case can
be made for BAD_STATEID.  So, given that, I would say that both
are valid (i.e. a testing program should accept both) and I 
can't see that client implementations will really depend on 
which error is returned when they do this.

Even though both are OK, my subjective feeling is that 
BAD_STATEID is "better".  

> The operations that would have this check all have NFS4ERR_INVAL
> available to them and obviously not all have to deal with incrementing
> the sequence id.  CLOSE, DELEGRETURN, LOCK, LOCKU, OPEN_CONFIRM,
> OPEN_DOWNGRADE, READ, SETATTR, WRITE
>
> Opinions?




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 15:57:37 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA19837
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 15:57:37 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA22979;
	Thu, 23 Jan 2003 13:58:38 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKvL4w002030;
	Thu, 23 Jan 2003 12:57:21 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKvI16005144
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:57:18 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NKvIip005143
	for nfsv4-wg-dist; Thu, 23 Jan 2003 12:57:18 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKvG16005136
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:57:16 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKvGgE025955
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:57:16 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA24683
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 13:57:11 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0NKvAYW003496;
	Thu, 23 Jan 2003 12:57:10 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0NKvALq004308;
	Thu, 23 Jan 2003 12:57:10 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK90PSL>; Thu, 23 Jan 2003 12:57:10 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A3C@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Stevan Steve Allen'" <scallen@us.ibm.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: NFSv4 Advisory vs. Mandatory locking issues
Date: Thu, 23 Jan 2003 12:57:05 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
 

> David [Robinson] wrote:
>
> >> The NFSv4 protocol does not support or restrict the use of nonstandard
NFS
> >> implementations to satisfy customer solutions.
> >
> >As a clarification, nonstandard implementations are by definition
> >not "NFSv4" and should not be called NFSv4.  This is a common
> >confusion in the IETF, if you use the term NFSv4 it is
> >standards conforming, anything else should have it's own
> >name (e.g. Bob's FS). Otherwise there is no way to distinguish
> >between an implementation that has changed just one required
> >feature and another that is loosely based on NFSv4 (think DAFS).
> 
> This is the area I'm unfamiliar with and appreciate your responses.
>
> I support the IETF/WG need to draw the line and define boundaries.  From
> the
> protocol perspective, the only real "NFS" server product are those that
> support all the procedures and provide the expected results outlined in
> the draft.  Nothing more, nothing less.

The spec is not very rigid as far as a lot of expected results.  In part,
this is because of the idea that NFS-v4 is not supposed to define 
file system semantics but is merely a protocol so that the client can 
make requests and results as defined by the servers semaantics refelcted
to the client.  I actually think a larger part is due to the fact that 
we'd like the spec to be under a thousand pages.  Nevertheless, the
spec does contain a lot of material that sure seems like semantics to
me.  I'm not saying this apparent contradiction cannot be resolved,
but I am saying that I can only do it in a limited set of cases. 

> Where we got into trouble is certain platforms may not be able to support a
> particular NFS draft item and therefore implemented a failure type
> restriction "I can't do that" which is not defined in the protocol.  

I think you have to stay within the errors defined for a given op.
Otherwise you are not obeying the protocol.  Usually you can find an
error that sort of works.

> An
> example would be a server not able to support delegation for reasons
> entirely
> of it's own, 

Delegations are not a required feature.  The protocol is so constructed
that you are not obliged to return delegations.  It is up to the server.
If he doesn't want to return one in any given situation or all situations,
the spec offers no reproaches.

> or not support file share semantics.

I don't see why a server is not able to do this, at least within the
context of other v4 opens?  I can see that it might be problematic to
exclude non-v4 opens but I think the basic idea is that the spec doesn't
cover that (Although angry customers might have their own opinions).

> The problem is deciding if this product can still be labeled NFS, or
> does IETF/WG not accept this as an NFS product because of the restriction.
> The answer of not NFS may affect the goal of NFS acceptance and
> availability.
> It seems like we are at a point where restrictive offerings may call
> themselves NFS without anyone forcing them to change their name to Bob's
> FS.

I've never heard of the IETF forcing someone to change the name of
their product because they returned NOTSUPP is some case not mandated
by the spec.  But I'm not really up on IETF lore.

> Even though by protocol definition they are not NFS due to their
> restrictive
> nature.  I'm only describing restricting function, not adding additional
> function.
>
> What are the ramifications of incorporating non-NFS restrictions to satisfy
> platform limitations or limitations to support customer requirements and
> labeling your product as NFS?

 








The problem
in defining "NFS" products


             -David




From owner-nfsv4-wg@sunroof.eng.sun.com  Thu Jan 23 16:03:20 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA19973
	for <nfsv4-archive@lists.ietf.org>; Thu, 23 Jan 2003 16:03:20 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA24313;
	Thu, 23 Jan 2003 12:59:24 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKx6gE026441;
	Thu, 23 Jan 2003 12:59:06 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKx416005155
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:59:04 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0NKx33V005154
	for nfsv4-wg-dist; Thu, 23 Jan 2003 12:59:03 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0NKx116005147
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 12:59:02 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0NKx1ln012600
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 13:59:01 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.6+Sun/8.12.6) with ESMTP id h0NKvHgp100597
	for <nfsv4-wg@sunroof.eng.sun.com>; Thu, 23 Jan 2003 14:57:17 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.6+Sun/8.12.6/Submit) id h0NKvHeT100596
	for nfsv4-wg@sunroof.eng.sun.com; Thu, 23 Jan 2003 14:57:17 -0600 (CST)
Date: Thu, 23 Jan 2003 14:57:17 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: what is a server to do... (current filehandle != file/stateid )
Message-ID: <20030123205716.GQ100402@dhcp-uaus08-128-228.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3B@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A3B@SILVER.nane.netapp.com>
User-Agent: Mutt/1.3.99i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Thu, Noveck, Dave wrote:
> 
> Even though both are OK, my subjective feeling is that 
> BAD_STATEID is "better".  

Then you and I are in alignment on this.

Spencer


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 10:15:19 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA22153
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 10:15:18 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA05830;
	Fri, 24 Jan 2003 08:16:19 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OFFwgE006306;
	Fri, 24 Jan 2003 07:15:59 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OFFl16008540
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 07:15:47 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OFFktO008539
	for nfsv4-wg-dist; Fri, 24 Jan 2003 07:15:46 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from shepler.eng.sun.com (vpn-129-147-153-1.Central.Sun.COM [129.147.153.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OFFh16008532
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 07:15:43 -0800 (PST)
Received: from shepler.eng.sun.com (localhost [127.0.0.1])
	by shepler.eng.sun.com (8.12.6+Sun/8.12.6) with ESMTP id h0OFE6OS100511
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 09:14:06 -0600 (CST)
Received: (from shepler@localhost)
	by shepler.eng.sun.com (8.12.6+Sun/8.12.6/Submit) id h0OFE6DF100510
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 24 Jan 2003 09:14:06 -0600 (CST)
Date: Fri, 24 Jan 2003 09:14:06 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030124151406.GA100497@shepler.eng.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="8GpibOaaTibBMecb"
Content-Disposition: inline
User-Agent: Mutt/1.3.99i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

--8GpibOaaTibBMecb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Forwarding on behalf of Dan.

-- 
Spencer


--8GpibOaaTibBMecb
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <Dan.Oscarsson@kiconsulting.se>
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk.Eng.Sun.COM [129.146.1.45])
	by jurassic.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0I9giL5516974
	for <shepler@jurassic.Eng.Sun.COM>; Sat, 18 Jan 2003 01:42:44 -0800 (PST)
Received: from sunmail2.sfbay.sun.com (sunmail2.SFBay.Sun.COM [129.149.246.180])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0I9gigE017900
	for <spencer.shepler@eng.sun.com>; Sat, 18 Jan 2003 01:42:44 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by sunmail2.sfbay.sun.com (8.11.6+Sun/8.11.6/ENSMAIL,v2.2) with ESMTP id h0I9ghk28225
	for <spencer.shepler@sun.com>; Sat, 18 Jan 2003 01:42:43 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA10315
	for <spencer.shepler@sun.com>; Sat, 18 Jan 2003 02:42:42 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h0I9gZn02930 for <spencer.shepler@sun.com>; Sat, 18 Jan 2003 10:42:35 +0100 (MET)
Message-Id: <200301180942.h0I9gZn02930@malmo.trab.se>
Date: Sat, 18 Jan 2003 10:45:13 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Comments on NFSv4 rfc3010bis-05 draft
To: spencer.shepler@sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: 8r0pO/lLBWGleL39s2LFDw==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 

This is a comment on draft-ietf-nfsv4-rfc3010bis-05

I have for many years worked with internationalisation and when I
look at the internationalisation section 11 in the draft I do not
understand the choice made.

First you have to separate the format used in the protocol from
the way to match strings in server or client. It is somewhat
unclear in the document.

Looking at the most important string: utf8str_cs which is used in
naming components and pathnames, I see that you do not specify a
normalisation form. Why not?

To create simple and effcient implementations it is very good
if all strings are normalised. As names are important to people,
normalisation form KC cannot be used. Instead normalisation
form C MUST be used. This will allow all special forms of a character
that a person what to have in a name be preserved. At the same time
if will give a compact format to transmitt over the net and ONE
single format to decode/encode in implementations.
The "stringprep" document was created to handle matching of
names in DNS, it is not generally suitable.

If utf8str_cs strings need to be compared case insensitively,
you have to use form KC and single character lower casing.
The case mapping in stringprep will result in names that
should be different will be matched as equivalent (this is due
to going to far in case mapping).
The table B.2 which the draft says to use when doing
case insensitiv matching is only usefull if normalisation form KC
has been used before. It cannot be used on unnormalised or
form C text.

As an implementor of programs handling UCS I want to have
a simple efficient export/import of text as well as a good
case insensitive matching. By always requiring normalisation
form C I get simpler code and that form will never destroy
any data in the text. In addition to from C I would
prefer to have most of form KC applied, but only the part
that equivalences equivalent characters. Form KC unfortunately
does equivalencing of characters that are not equivalent and
forcing some to be decomposed.

I am sure that not mandating a normalisation form in NFSv4
will result in more complex code and more failurs due to
mismatch between client/server handling.
So why not normalise?

Regards,

   Dan


--8GpibOaaTibBMecb--


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 11:48:53 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA24627
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 11:48:52 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA04966;
	Fri, 24 Jan 2003 09:47:27 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OGl7gE001142;
	Fri, 24 Jan 2003 08:47:07 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OGkt16008858
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 08:46:55 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OGktn3008857
	for nfsv4-wg-dist; Fri, 24 Jan 2003 08:46:55 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OGkr16008850
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 08:46:53 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OGl17L023436;
	Fri, 24 Jan 2003 09:47:01 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0OGjQQx013435;
	Fri, 24 Jan 2003 08:45:26 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0OGjQOD013434;
	Fri, 24 Jan 2003 10:45:26 -0600 (CST)
Date: Fri, 24 Jan 2003 10:45:26 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030124104526.R16765@binky.central.sun.com>
References: <20030124151406.GA100497@shepler.eng.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20030124151406.GA100497@shepler.eng.sun.com>; from shepler@eng.sun.com on Fri, Jan 24, 2003 at 09:14:06AM -0600
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Oh boy.  I've been thinking about the Unicode issues as well.

My thoughts:

 - By specifying _a_ Unicode normalization form for filename components
   on the wire we can avoid the need to normalize strings in the kernel.

   Checking that inputs are normalized is a lot simpler and less
   resource consuming than actually performing normalization.

   Obviously, changing utf8str_cs to specify a normalization form may
   require a new error code and may be an incompatible change.

   If the WG cannot reach consensus about such a change then a
   recommendation that a given normalization form be used should help
   prevent unnecessary normalization operations by NFSv4 clients/servers
   that heed the recommendation (a norm. form could even be
   "negotiated", but let's not go there).

 - I prefer normalization forms D or KD.  Normalization forms C and KC
   involve normalization to form D first (decomposition), followed by
   recomposition (but only using composed codepoints from Unicode
   version 3.0).

   All we need for NFSv4 is a canonical normalization form; form D being
   lighter weight than form C makes form D more desirable.

   On the other hand, the native norm. form produced by input mechanisms
   at the clients may be preferred by this WG, whatever it may be, as
   long as all/most clients are consistent.  By using the normalization
   form imposed at the earliest stage possible we may avoid the need to
   re-normalize most of the time and get away with checking for
   normalized strings in the libraries and in the kernel with occasional
   normalization in the libraries.

 - I'm not sure that I care about avoiding the K forms (as suggested by
   Dan Oscarsson) as I see the K forms as merely slightly reducing the
   available namespace in exchange for reducing the scope for confusion.

   The typical example of a K normalization is conversion of ligatures
   such as "fi" or "ae" (one codepoint each) to the visually related
   codepoints that make them up ('f' and 'i' for "fi" and 'a' and 'e'
   for "ae"); there may be other form K substitutions that may actually
   be offensive to speakers of live languages, so further study of the
   matter may be warranted.  But then, this is a network filesystem
   protocol, some compromises have to be made.

Comments?

Nico
-- 

On Fri, Jan 24, 2003 at 09:14:06AM -0600, Spencer Shepler wrote:
> 
> Forwarding on behalf of Dan.
> 
> -- 
> Spencer
> 

> Date: Sat, 18 Jan 2003 10:45:13 +0100 (CET)
> From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
> Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
> Subject: Comments on NFSv4 rfc3010bis-05 draft
> To: spencer.shepler@sun.com
> X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
> 
> This is a comment on draft-ietf-nfsv4-rfc3010bis-05
> 
> I have for many years worked with internationalisation and when I
> look at the internationalisation section 11 in the draft I do not
> understand the choice made.
> 
> First you have to separate the format used in the protocol from
> the way to match strings in server or client. It is somewhat
> unclear in the document.
> 
> Looking at the most important string: utf8str_cs which is used in
> naming components and pathnames, I see that you do not specify a
> normalisation form. Why not?
> 
> To create simple and effcient implementations it is very good
> if all strings are normalised. As names are important to people,
> normalisation form KC cannot be used. Instead normalisation
> form C MUST be used. This will allow all special forms of a character
> that a person what to have in a name be preserved. At the same time
> if will give a compact format to transmitt over the net and ONE
> single format to decode/encode in implementations.
> The "stringprep" document was created to handle matching of
> names in DNS, it is not generally suitable.
> 
> If utf8str_cs strings need to be compared case insensitively,
> you have to use form KC and single character lower casing.
> The case mapping in stringprep will result in names that
> should be different will be matched as equivalent (this is due
> to going to far in case mapping).
> The table B.2 which the draft says to use when doing
> case insensitiv matching is only usefull if normalisation form KC
> has been used before. It cannot be used on unnormalised or
> form C text.
> 
> As an implementor of programs handling UCS I want to have
> a simple efficient export/import of text as well as a good
> case insensitive matching. By always requiring normalisation
> form C I get simpler code and that form will never destroy
> any data in the text. In addition to from C I would
> prefer to have most of form KC applied, but only the part
> that equivalences equivalent characters. Form KC unfortunately
> does equivalencing of characters that are not equivalent and
> forcing some to be decomposed.
> 
> I am sure that not mandating a normalisation form in NFSv4
> will result in more complex code and more failurs due to
> mismatch between client/server handling.
> So why not normalise?
> 
> Regards,
> 
>    Dan
> 



From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 12:39:44 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA26045
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 12:39:43 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA10704;
	Fri, 24 Jan 2003 10:40:39 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OHdt4w011791;
	Fri, 24 Jan 2003 09:39:55 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OHdh16008911
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 09:39:43 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OHdgaq008910
	for nfsv4-wg-dist; Fri, 24 Jan 2003 09:39:42 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OHdf16008903
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 09:39:41 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OHdogE019721
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 09:39:50 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA11804;
	Fri, 24 Jan 2003 09:39:45 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0OHdiYW027555;
	Fri, 24 Jan 2003 09:39:44 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0OHdiLq001361;
	Fri, 24 Jan 2003 09:39:44 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK90YY9>; Fri, 24 Jan 2003 09:39:44 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>,
        Spencer Shepler
	 <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	05 draft]
Date: Fri, 24 Jan 2003 09:39:39 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
 

> Oh boy.  I've been thinking about the Unicode issues as well.
>
> My thoughts:
>
> - By specifying _a_ Unicode normalization form for filename components
>   on the wire we can avoid the need to normalize strings in the kernel.
>
>   Checking that inputs are normalized is a lot simpler and less
>   resource consuming than actually performing normalization.
>
>   Obviously, changing utf8str_cs to specify a normalization form may
>   require a new error code and may be an incompatible change.

As far as the error code goes, I would think you could use NFS4ERR_BADNAME.

>   If the WG cannot reach consensus about such a change then a
>   recommendation that a given normalization form be used should help
>   prevent unnecessary normalization operations by NFSv4 clients/servers
>   that heed the recommendation (a norm. form could even be
>   "negotiated", but let's not go there).

My worry about this is the whole issue of existing file systems and
their contents.  I'm sure that there are file systems out there that 
do not normalize and thus there may be directories which contain multiple
files that would map to the same string under any given normalization 
form.  If you impose a normalization form, then you have the issue of
dealing with that legacy data.

> - I prefer normalization forms D or KD.  Normalization forms C and KC
>   involve normalization to form D first (decomposition), followed by
>   recomposition (but only using composed codepoints from Unicode
>   version 3.0).

At least I feel the need for a "Normalization Forms for Dummies" document.
Maybe other working group members do as well.  Any pointers to something
that will explain this stuff to those who have not already immersed
themsleves in this area.

>   All we need for NFSv4 is a canonical normalization form; form D being
>   lighter weight than form C makes form D more desirable.
>
>   On the other hand, the native norm. form produced by input mechanisms
>   at the clients may be preferred by this WG, whatever it may be, as
>   long as all/most clients are consistent.  

Dream on.

By the way does anybody know what CIFS does about the normalization issue?

>   By using the normalization
>   form imposed at the earliest stage possible we may avoid the need to
>   re-normalize most of the time and get away with checking for
>   normalized strings in the libraries and in the kernel with occasional
>   normalization in the libraries.

I think my point is the earliest possible point was when the files were
created, i.e. it may be long gone.

>  - I'm not sure that I care about avoiding the K forms (as suggested by
>    Dan Oscarsson) as I see the K forms as merely slightly reducing the
>    available namespace in exchange for reducing the scope for confusion.
>
>    The typical example of a K normalization is conversion of ligatures
>    such as "fi" or "ae" (one codepoint each) to the visually related
>    codepoints that make them up ('f' and 'i' for "fi" and 'a' and 'e'
>    for "ae"); there may be other form K substitutions that may actually
>    be offensive to speakers of live languages, so further study of the
>    matter may be warranted.  But then, this is a network filesystem
>    protocol, some compromises have to be made.

Although I have not studied this area and so I may be missing the 
justification for some of this, this strikes me as strange.  If
someone names a file with the ligature fi, then maybe he did it for a
reason, such as the fact that it is about the ligature fi.  He could 
have named it ordinary fi, but chose not to for his own reasons.  It 
seems wierd to change it to ordinary fi and that file may also exist.  
Visual similarity seems a strange basis to map characters.  Are you 
going to map Cyrillic Veh to Roman B, because they look the same?



> Nico
> -- 

On Fri, Jan 24, 2003 at 09:14:06AM -0600, Spencer Shepler wrote:
> 
> Forwarding on behalf of Dan.
> 
> -- 
> Spencer
> 

> Date: Sat, 18 Jan 2003 10:45:13 +0100 (CET)
> From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
> Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
> Subject: Comments on NFSv4 rfc3010bis-05 draft
> To: spencer.shepler@sun.com
> X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
> 
> This is a comment on draft-ietf-nfsv4-rfc3010bis-05
> 
> I have for many years worked with internationalisation and when I
> look at the internationalisation section 11 in the draft I do not
> understand the choice made.
> 
> First you have to separate the format used in the protocol from
> the way to match strings in server or client. It is somewhat
> unclear in the document.
> 
> Looking at the most important string: utf8str_cs which is used in
> naming components and pathnames, I see that you do not specify a
> normalisation form. Why not?
> 
> To create simple and effcient implementations it is very good
> if all strings are normalised. As names are important to people,
> normalisation form KC cannot be used. Instead normalisation
> form C MUST be used. This will allow all special forms of a character
> that a person what to have in a name be preserved. At the same time
> if will give a compact format to transmitt over the net and ONE
> single format to decode/encode in implementations.
> The "stringprep" document was created to handle matching of
> names in DNS, it is not generally suitable.
> 
> If utf8str_cs strings need to be compared case insensitively,
> you have to use form KC and single character lower casing.
> The case mapping in stringprep will result in names that
> should be different will be matched as equivalent (this is due
> to going to far in case mapping).
> The table B.2 which the draft says to use when doing
> case insensitiv matching is only usefull if normalisation form KC
> has been used before. It cannot be used on unnormalised or
> form C text.
> 
> As an implementor of programs handling UCS I want to have
> a simple efficient export/import of text as well as a good
> case insensitive matching. By always requiring normalisation
> form C I get simpler code and that form will never destroy
> any data in the text. In addition to from C I would
> prefer to have most of form KC applied, but only the part
> that equivalences equivalent characters. Form KC unfortunately
> does equivalencing of characters that are not equivalent and
> forcing some to be decomposed.
> 
> I am sure that not mandating a normalisation form in NFSv4
> will result in more complex code and more failurs due to
> mismatch between client/server handling.
> So why not normalise?
> 
> Regards,
> 
>    Dan
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 13:00:50 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA26835
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 13:00:49 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA27154;
	Fri, 24 Jan 2003 11:02:00 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OI164w023504;
	Fri, 24 Jan 2003 10:01:06 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OI0s16009134
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:00:54 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OI0sDG009133
	for nfsv4-wg-dist; Fri, 24 Jan 2003 10:00:54 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OI0q16009126
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:00:52 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OI107L027723;
	Fri, 24 Jan 2003 11:01:00 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0OHxOQx013477;
	Fri, 24 Jan 2003 09:59:24 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0OHxOa5013476;
	Fri, 24 Jan 2003 11:59:24 -0600 (CST)
Date: Fri, 24 Jan 2003 11:59:24 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
Message-ID: <20030124115924.U16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Fri, Jan 24, 2003 at 09:39:39AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Fri, Jan 24, 2003 at 09:39:39AM -0800, Noveck, Dave wrote:
>  
> > Oh boy.  I've been thinking about the Unicode issues as well.
> >
> > My thoughts:
> >
> > - By specifying _a_ Unicode normalization form for filename components
> >   on the wire we can avoid the need to normalize strings in the kernel.
> >
> >   Checking that inputs are normalized is a lot simpler and less
> >   resource consuming than actually performing normalization.
> >
> >   Obviously, changing utf8str_cs to specify a normalization form may
> >   require a new error code and may be an incompatible change.
> 
> As far as the error code goes, I would think you could use NFS4ERR_BADNAME.

*nod*

> >   If the WG cannot reach consensus about such a change then a
> >   recommendation that a given normalization form be used should help
> >   prevent unnecessary normalization operations by NFSv4 clients/servers
> >   that heed the recommendation (a norm. form could even be
> >   "negotiated", but let's not go there).
> 
> My worry about this is the whole issue of existing file systems and
> their contents.  I'm sure that there are file systems out there that 
> do not normalize and thus there may be directories which contain multiple
> files that would map to the same string under any given normalization 
> form.  If you impose a normalization form, then you have the issue of
> dealing with that legacy data.

Er, no, utf8str_cs requires that a normalization form be used, just not
on the wire.  So the problem of legacy filesystems remains even if we do
not act to recommend or require a specific normalization form on the
wire.

As for the legacy filesystems, the problem is far worse than you
suggest, since some filesystems allow arbitrary 8-bit data in filenames,
including arbitrary non-UTF-8 encodings, without any codeset tagging
whatsoever.  But this is not relevant to the matter of whether
utf8str_cs should mandate a specific normalization form for filenames on
the wire.

> At least I feel the need for a "Normalization Forms for Dummies" document.
> Maybe other working group members do as well.  Any pointers to something
> that will explain this stuff to those who have not already immersed
> themsleves in this area.

There are several books with "Unicode" in the title (none in my office
right now).  And the Unicode home page is a good place to start:

http://www.unicode.org/

> >   On the other hand, the native norm. form produced by input mechanisms
> >   at the clients may be preferred by this WG, whatever it may be, as
> >   long as all/most clients are consistent.  
> 
> Dream on.

Heh.  I didn't want to dismiss that out of hand, see?  I don't profess
to know what y'all do :)

[...]

> I think my point is the earliest possible point was when the files were
> created, i.e. it may be long gone.

"Normalization form" is a concept specific to Unicode (well, to any
codeset which has multiple equivalent encodings for the same character,
which mostly means Unicode).

Legacy filesystems don't even use a single codeset consistently, much
less a single Unicode normalization form.

Log in to some *nix system with one locale using Latin-1 as the codeset
and create some file with a name including an accented character.  Then
log out and log in again using a locale with a UTF-8 codeset and try it
again.  You should end up with the two files with the same name, each of
which does not display correctly or at all unless you're using the
correct locale.  Fun, fun, fun!

But I insist: the legacy issue has nothing to do with selecting a single
required normalization form for filenames on the wire.  The legacy
filesystem issues should be addressed in a separate thread. See above.

> >  - I'm not sure that I care about avoiding the K forms (as suggested by
> >    Dan Oscarsson) as I see the K forms as merely slightly reducing the
> >    available namespace in exchange for reducing the scope for confusion.
> >
> >    The typical example of a K normalization is conversion of ligatures
> >    such as "fi" or "ae" (one codepoint each) to the visually related
> >    codepoints that make them up ('f' and 'i' for "fi" and 'a' and 'e'
> >    for "ae"); there may be other form K substitutions that may actually
> >    be offensive to speakers of live languages, so further study of the
> >    matter may be warranted.  But then, this is a network filesystem
> >    protocol, some compromises have to be made.
> 
> Although I have not studied this area and so I may be missing the 
> justification for some of this, this strikes me as strange.  If
> someone names a file with the ligature fi, then maybe he did it for a
> reason, such as the fact that it is about the ligature fi.  He could 
> have named it ordinary fi, but chose not to for his own reasons.  It 
> seems wierd to change it to ordinary fi and that file may also exist.  
> Visual similarity seems a strange basis to map characters.  Are you 
> going to map Cyrillic Veh to Roman B, because they look the same?

If that's what Unicode specifies for the K normalization forms, yes.

Think of a group of users using a shared directory: one user may know
how to enter a ligature, many may not even be able to tell that some
filename uses a ligature - they may not know what a ligature is, how to
recognize one, much less how to type one in.  Doesn't it then make sense
to use the K compatibility mappings for ligatures?  Obviously, for the
single-user case the answer is "no", but for the multi-user case the
answer is not clear.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 13:35:08 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA27957
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 13:35:08 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA16565;
	Fri, 24 Jan 2003 11:34:17 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OIXSgE011524;
	Fri, 24 Jan 2003 10:33:28 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OIXF16009335
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:33:16 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OIXFqU009334
	for nfsv4-wg-dist; Fri, 24 Jan 2003 10:33:15 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OIXD16009327
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:33:14 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OIXMgE011471;
	Fri, 24 Jan 2003 10:33:22 -0800 (PST)
Received: from dhcp.eisler.com (nat-198-95-226-231.netapp.com [198.95.226.231])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA05862;
	Fri, 24 Jan 2003 11:33:13 -0700 (MST)
Received: from eisler.com (localhost.localdomain [127.0.0.1])
	by dhcp.eisler.com (8.11.6/8.11.6) with ESMTP id h0OIXBd12196;
	Fri, 24 Jan 2003 10:33:11 -0800
Message-ID: <3E3186E6.F6848482@eisler.com>
Date: Fri, 24 Jan 2003 10:33:10 -0800
From: Mike Eisler <mike@eisler.com>
Reply-To: mike@eisler.com
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@sun.com>
CC: "Noveck, Dave" <Dave.Noveck@netapp.com>,
        Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 
 draft]
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com> <20030124115924.U16765@binky.central.sun.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Nicolas Williams wrote:

> Er, no, utf8str_cs requires that a normalization form be used, just not
> on the wire.  So the problem of legacy filesystems remains even if we do
> not act to recommend or require a specific normalization form on the
> wire.

It requires a normalization form only if the server is case insensitive.

> > At least I feel the need for a "Normalization Forms for Dummies" document.
> > Maybe other working group members do as well.  Any pointers to something
> > that will explain this stuff to those who have not already immersed
> > themsleves in this area.
> 
> There are several books with "Unicode" in the title (none in my office
> right now).  And the Unicode home page is a good place to start:
> 
> http://www.unicode.org/

I find each visit to unicode.org ever more confusing. My most
recent visit revealed that "16 bit" Unicode now has over 2^64 characters.
It is absolutely impenetrable.

The nfsv4 i18n follows the lead of IETF's stringprep RFC (which we
were asked to do by IESG). Presumably the folks who wrote it were
experts, and they strongly recommend KC for case insensitive matching.
Now we have two other experts in the last 24 hours disagree, but with
two more opinions.

Clearly, no matter what we do in this area, it is highly
probable we'll get it wrong.

Just as clearly, normalization is not well thought out by the
people specifying this; otherwise it would be much easier to grasp.

So what do we want to do with the i-d that IESG has approved for
publication. My inclination is to leave it alone, since I suspect we
could delay it for 12 more months and still not reach consensus.
Only via real experience will a practical truth emerge ... it may that
IESG is right, it may be that Dan is right, Nico is right, Dave is right. My
guess is it will be none of the above. Fixed in NFSv4.x (x > 0).

	-mre


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 13:42:17 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA28272
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 13:42:17 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA08485;
	Fri, 24 Jan 2003 11:43:00 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OIfigE015881;
	Fri, 24 Jan 2003 10:41:44 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OIfW16009356
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:41:32 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OIfWCf009355
	for nfsv4-wg-dist; Fri, 24 Jan 2003 10:41:32 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OIfU16009348
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:41:30 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OIfb4w007896;
	Fri, 24 Jan 2003 10:41:38 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA21590;
	Fri, 24 Jan 2003 11:41:32 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0OIfVYW001906;
	Fri, 24 Jan 2003 10:41:32 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0OIfVLq013638;
	Fri, 24 Jan 2003 10:41:31 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK90ZYY>; Fri, 24 Jan 2003 10:41:31 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A40@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>,
        "Noveck, Dave"
	 <Dave.Noveck@netapp.com>
Cc: Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05 draft]
Date: Fri, 24 Jan 2003 10:41:25 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
 

> > >   If the WG cannot reach consensus about such a change then a
> > >   recommendation that a given normalization form be used should help
> > >   prevent unnecessary normalization operations by NFSv4 clients/servers
> > >   that heed the recommendation (a norm. form could even be
> > >   "negotiated", but let's not go there).
> > 
> > My worry about this is the whole issue of existing file systems and
> > their contents.  I'm sure that there are file systems out there that 
> > do not normalize and thus there may be directories which contain multiple
> > files that would map to the same string under any given normalization 
> > form.  If you impose a normalization form, then you have the issue of
> > dealing with that legacy data.
>
> Er, no, utf8str_cs requires that a normalization form be used, just not
> on the wire.  So the problem of legacy filesystems remains even if we do
> not act to recommend or require a specific normalization form on the
> wire.

In that case, there doesn't seem to be any reason not to pick one 
form, assuming we can agree on what that is.

So it appears that we are supposed to map utf8str_cs "equivalent" strings
to the same filename, but what is the form of equivalence for which this 
is required, cannonical equivalence or compatibility equivalence?  This
affects the normalization forms that we may choose among.

> As for the legacy filesystems, the problem is far worse than you
> suggest, since some filesystems allow arbitrary 8-bit data in filenames,
> including arbitrary non-UTF-8 encodings, without any codeset tagging
> whatsoever.  But this is not relevant to the matter of whether
> utf8str_cs should mandate a specific normalization form for filenames on
> the wire.

OK. Sigh.

> > At least I feel the need for a "Normalization Forms for Dummies" document.
> > Maybe other working group members do as well.  Any pointers to something
> > that will explain this stuff to those who have not already immersed
> > themsleves in this area.

> There are several books with "Unicode" in the title (none in my office
> right now).  And the Unicode home page is a good place to start:

> http://www.unicode.org/

I used http://www.unicode.org/reports/tr15/ which was helpful.

> > >   On the other hand, the native norm. form produced by input mechanisms
> > >   at the clients may be preferred by this WG, whatever it may be, as
> > >   long as all/most clients are consistent.  
> > 
> > Dream on.
> 
> Heh.  I didn't want to dismiss that out of hand, see?  I don't profess
> to know what y'all do :)
>
> [...]

> I think my point is the earliest possible point was when the files were
> created, i.e. it may be long gone.

> "Normalization form" is a concept specific to Unicode (well, to any
> codeset which has multiple equivalent encodings for the same character,
> which mostly means Unicode).

It hurts when you do that, so my advice would have been "don't do that".

> Legacy filesystems don't even use a single codeset consistently, much
> less a single Unicode normalization form.

> Log in to some *nix system with one locale using Latin-1 as the codeset
> and create some file with a name including an accented character.  Then
> log out and log in again using a locale with a UTF-8 codeset and try it
> again.  You should end up with the two files with the same name, each of
> which does not display correctly or at all unless you're using the
> correct locale.  Fun, fun, fun!
>
> But I insist: the legacy issue has nothing to do with selecting a single
> required normalization form for filenames on the wire.  The legacy
> filesystem issues should be addressed in a separate thread. See above.

At this point I'm thinking a suicide counseling hotline would be the 
appropriate forum, but it'll pass.

> > >  - I'm not sure that I care about avoiding the K forms (as suggested by
> > >    Dan Oscarsson) as I see the K forms as merely slightly reducing the
> > >    available namespace in exchange for reducing the scope for confusion.
> > >
> > >    The typical example of a K normalization is conversion of ligatures
> > >    such as "fi" or "ae" (one codepoint each) to the visually related
> > >    codepoints that make them up ('f' and 'i' for "fi" and 'a' and 'e'
> > >    for "ae"); there may be other form K substitutions that may actually
> > >    be offensive to speakers of live languages, so further study of the
> > >    matter may be warranted.  But then, this is a network filesystem
> > >    protocol, some compromises have to be made.
> > 
> > Although I have not studied this area and so I may be missing the 
> > justification for some of this, this strikes me as strange.  If
> > someone names a file with the ligature fi, then maybe he did it for a
> > reason, such as the fact that it is about the ligature fi.  He could 
> > have named it ordinary fi, but chose not to for his own reasons.  It 
> > seems wierd to change it to ordinary fi and that file may also exist.  
> > Visual similarity seems a strange basis to map characters.  Are you 
> > going to map Cyrillic Veh to Roman B, because they look the same?

> If that's what Unicode specifies for the K normalization forms, yes.

But it doesn't.

> Think of a group of users using a shared directory: one user may know
> how to enter a ligature, many may not even be able to tell that some
> filename uses a ligature - they may not know what a ligature is, how to
> recognize one, much less how to type one in.  Doesn't it then make sense
> to use the K compatibility mappings for ligatures?  Obviously, for the
> single-user case the answer is "no", but for the multi-user case the
> answer is not clear.

But I may not know how to enter a Cyrillic Veh, either, or recognize the 
difference between that and a B, cause there isn't one.  If there are 
other cyrillic characters I might have a clue, but I kind of think that
asking the file system to deal with that problem would not be appropriate,
as it would also not be appropriate to ask it to deal with my confusion 
about ligatures.    

Anyway, if I have a choice, I would go for something that doesn't, on
dubious grounds, add additional equivalences, to what we are forced to 
have.  So I would prefer fundamental equivalence to canonical equivalence
to compatibility equivalence, consistent with with what the existing 
spec requires.  And on the grounds you offered, I would prefer D to C
and thus KD to KC.  Given the choice beween D and KD (do I have that?),
I would go for D and leave compatibility equivalence out of the picture.


 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 13:44:45 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA28339
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 13:44:44 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA24697;
	Fri, 24 Jan 2003 11:46:05 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OIjPgE018368;
	Fri, 24 Jan 2003 10:45:25 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OIjD16009372
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:45:13 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OIjCwU009371
	for nfsv4-wg-dist; Fri, 24 Jan 2003 10:45:12 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OIjB16009364
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:45:11 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OIjKgE018222
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:45:20 -0800 (PST)
Received: from dhcp.eisler.com (nat-198-95-226-231.netapp.com [198.95.226.231])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA10194
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 11:45:14 -0700 (MST)
Received: from eisler.com (localhost.localdomain [127.0.0.1])
	by dhcp.eisler.com (8.11.6/8.11.6) with ESMTP id h0OIjEd12203
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 10:45:14 -0800
Message-ID: <3E3189BA.4E535701@eisler.com>
Date: Fri, 24 Jan 2003 10:45:14 -0800
From: Mike Eisler <mike@eisler.com>
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 
 draft]
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com> <20030124115924.U16765@binky.central.sun.com> <3E3186E6.F6848482@eisler.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Mike Eisler wrote:
> 
> Nicolas Williams wrote:
> 
> > Er, no, utf8str_cs requires that a normalization form be used, just not
> > on the wire.  So the problem of legacy filesystems remains even if we do
> > not act to recommend or require a specific normalization form on the
> > wire.
> 
> It requires a normalization form only if the server is case insensitive.
> 
> > > At least I feel the need for a "Normalization Forms for Dummies" document.
> > > Maybe other working group members do as well.  Any pointers to something
> > > that will explain this stuff to those who have not already immersed
> > > themsleves in this area.
> >
> > There are several books with "Unicode" in the title (none in my office
> > right now).  And the Unicode home page is a good place to start:
> >
> > http://www.unicode.org/
> 
> I find each visit to unicode.org ever more confusing. My most
> recent visit revealed that "16 bit" Unicode now has over 2^64 characters.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

try: "over 2^16 characters". Point holds though.


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 14:33:03 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA29891
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 14:33:02 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA01588;
	Fri, 24 Jan 2003 12:33:54 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OJX5gE011425;
	Fri, 24 Jan 2003 11:33:05 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OJWq16009709
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 11:32:52 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OJWq93009708
	for nfsv4-wg-dist; Fri, 24 Jan 2003 11:32:52 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OJWo16009701
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 11:32:50 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OJWoln017830;
	Fri, 24 Jan 2003 12:32:51 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0OJVEQx013531;
	Fri, 24 Jan 2003 11:31:14 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0OJVEhu013530;
	Fri, 24 Jan 2003 13:31:14 -0600 (CST)
Date: Fri, 24 Jan 2003 13:31:14 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
Message-ID: <20030124133114.Y16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A40@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A40@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Fri, Jan 24, 2003 at 10:41:25AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Fri, Jan 24, 2003 at 10:41:25AM -0800, Noveck, Dave wrote:
> > Er, no, utf8str_cs requires that a normalization form be used, just not
> > on the wire.  So the problem of legacy filesystems remains even if we do
> > not act to recommend or require a specific normalization form on the
> > wire.
> 
> In that case, there doesn't seem to be any reason not to pick one 
> form, assuming we can agree on what that is.

Right.

> So it appears that we are supposed to map utf8str_cs "equivalent" strings
> to the same filename, but what is the form of equivalence for which this 
> is required, cannonical equivalence or compatibility equivalence?  This
> affects the normalization forms that we may choose among.

The draft leaves it to the server implementation.  This means that
servers must be able to normalize, not merely check for normalized
input.

> > As for the legacy filesystems, the problem is far worse than you
> > suggest, since some filesystems allow arbitrary 8-bit data in filenames,
> > including arbitrary non-UTF-8 encodings, without any codeset tagging
> > whatsoever.  But this is not relevant to the matter of whether
> > utf8str_cs should mandate a specific normalization form for filenames on
> > the wire.
> 
> OK. Sigh.

I don't think you are not the first to get that blow to the stomach,
sinking feeling.

> > "Normalization form" is a concept specific to Unicode (well, to any
> > codeset which has multiple equivalent encodings for the same character,
> > which mostly means Unicode).
> 
> It hurts when you do that, so my advice would have been "don't do that".

We're not going to get anywhere arguing that Unicode should or should
not have had more than one normalization form :)

> > But I insist: the legacy issue has nothing to do with selecting a single
> > required normalization form for filenames on the wire.  The legacy
> > filesystem issues should be addressed in a separate thread. See above.
> 
> At this point I'm thinking a suicide counseling hotline would be the 
> appropriate forum, but it'll pass.

It'll pass.  There will be more than one vendor / implementor who will
have to deal with this and in the context of more than one IETF protocol
(Kerberos i18n comes to mind - look at the KRB WG archives for a good
example of the legacy issues).

> > Think of a group of users using a shared directory: one user may know
> > how to enter a ligature, many may not even be able to tell that some
> > filename uses a ligature - they may not know what a ligature is, how to
> > recognize one, much less how to type one in.  Doesn't it then make sense
> > to use the K compatibility mappings for ligatures?  Obviously, for the
> > single-user case the answer is "no", but for the multi-user case the
> > answer is not clear.
> 
> But I may not know how to enter a Cyrillic Veh, either, or recognize the 
> difference between that and a B, cause there isn't one.  If there are 
> other cyrillic characters I might have a clue, but I kind of think that
> asking the file system to deal with that problem would not be appropriate,
> as it would also not be appropriate to ask it to deal with my confusion 
> about ligatures.    

Indeed.  I'm not attached to the K forms.  It's certainly easiest to
just specify normalization form D - that would require the least space
for Unicode-related data structures and the least number of CPU cycles
to implement (the C forms always start with the D forms).

> Anyway, if I have a choice, I would go for something that doesn't, on
> dubious grounds, add additional equivalences, to what we are forced to 
> have.  So I would prefer fundamental equivalence to canonical equivalence
> to compatibility equivalence, consistent with with what the existing 
> spec requires.  And on the grounds you offered, I would prefer D to C
> and thus KD to KC.  Given the choice beween D and KD (do I have that?),
> I would go for D and leave compatibility equivalence out of the picture.

Agreed.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 15:11:35 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA00984
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 15:11:35 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA07410;
	Fri, 24 Jan 2003 12:08:40 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OK7m4w028229;
	Fri, 24 Jan 2003 12:07:48 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OK7a16010511
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:07:36 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OK7aXn010510
	for nfsv4-wg-dist; Fri, 24 Jan 2003 12:07:36 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OK7Y16010503
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:07:34 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OK7c7L015085;
	Fri, 24 Jan 2003 13:07:38 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0OK63Qx013546;
	Fri, 24 Jan 2003 12:06:03 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0OK63QV013545;
	Fri, 24 Jan 2003 14:06:03 -0600 (CST)
Date: Fri, 24 Jan 2003 14:06:03 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Mike Eisler <mike@eisler.com>
Cc: "Noveck, Dave" <Dave.Noveck@netapp.com>,
        Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
Message-ID: <20030124140603.Z16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com> <20030124115924.U16765@binky.central.sun.com> <3E3186E6.F6848482@eisler.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3E3186E6.F6848482@eisler.com>; from mike@eisler.com on Fri, Jan 24, 2003 at 10:33:10AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Fri, Jan 24, 2003 at 10:33:10AM -0800, Mike Eisler wrote:
> Nicolas Williams wrote:
> 
> > Er, no, utf8str_cs requires that a normalization form be used, just not
> > on the wire.  So the problem of legacy filesystems remains even if we do
> > not act to recommend or require a specific normalization form on the
> > wire.
> 
> It requires a normalization form only if the server is case insensitive.

This is not my reading of the draft.

Section 11.1.1 clearly specifies what to do with respect to filenames
with equal names but different encoding [due to different normalization
forms used by the clients that create them].  Section 11.1.1 necessarily
requires that the server perform normalization of client inputs to some
form of the server's choosing.

The other utf8str_* types are not claimed to be useable for filenames:

 - "The utf8str_cis type is a case insensitive string of UTF-8
    characters.  Its primary use in NFS Version 4 is for naming NFS
    servers."

 - "The utf8str_mixed type is a string of UTF-8 characters, with a
    prefix that is case sensitive, a separator equal to '@', and a
    suffix that is fully qualified domain name.  Its primary use in NFS
    Version 4 is for naming principals identified in an Access Control
    Entry."

Only utf8str_cs is said to be useable for filename components.

So, my reading is that utf8str_cs is for filename components, that the
server must normalize client filename component inputs to some
normalization form preferred by the server, and that duplicate filenames
are not allowed.

> > > At least I feel the need for a "Normalization Forms for Dummies" document.
> > > Maybe other working group members do as well.  Any pointers to something
> > > that will explain this stuff to those who have not already immersed
> > > themsleves in this area.
> > 
> > There are several books with "Unicode" in the title (none in my office
> > right now).  And the Unicode home page is a good place to start:
> > 
> > http://www.unicode.org/
> 
> I find each visit to unicode.org ever more confusing. My most
> recent visit revealed that "16 bit" Unicode now has over 2^64 characters.
> It is absolutely impenetrable.

?? There's no such thing as 16-bit Unicode.  There's UTF-16, an encoding
for Unicode; UTF-16 is not limited to 2^16 codepoints: it can, at the
very least, represent 2^21 codepoints, including all of the BMP.

UTF-8 can represent all of the codepoint space (2^31), though it's been
recently restricted to just 2^21, since that now seems to be all that
will ever be necessary (ha! where have we heard that before? still,
seems reasonable).

> The nfsv4 i18n follows the lead of IETF's stringprep RFC (which we
> were asked to do by IESG). Presumably the folks who wrote it were
> experts, and they strongly recommend KC for case insensitive matching.
> Now we have two other experts in the last 24 hours disagree, but with
> two more opinions.

Er, form KC is the form recommended by the IETF, yes.  That does not
change the fact that form D is lighter weight, nor does the NFSv4 draft
specify any form for utf8str_cs.

> Clearly, no matter what we do in this area, it is highly
> probable we'll get it wrong.

It's not clear that what NFSv4 specifies is wrong; utf8str_cs is
certainly sub-optimal, but it's not incorrect.

> Just as clearly, normalization is not well thought out by the
> people specifying this; otherwise it would be much easier to grasp.

I disagree.

And note that my preference for form D over C has to do with code bloat
and performance; I think that case-insensitive comparisons can be made
of Unicode strings normalized with form D just as well as with form C
(just to be sure I'll hit the books again).

> So what do we want to do with the i-d that IESG has approved for
> publication. My inclination is to leave it alone, since I suspect we
> could delay it for 12 more months and still not reach consensus.
> Only via real experience will a practical truth emerge ... it may that
> IESG is right, it may be that Dan is right, Nico is right, Dave is right. My
> guess is it will be none of the above. Fixed in NFSv4.x (x > 0).

I'd like to see the WG RECOMMEND to clients _a_ normalization form for
utf8str_cs.

I think we may not be able to change the spec to require that that norm
form be used on the wire for utf8str_cs types, not at this late a date,
though that is what I would have preferred.  Problem is, I don't think
it will ever be possible or worthwhile anymore to make this change later
if we don't do it now.  Is that a big deal?  Well, only if you think
that having full-blown Unicode normalization facilities in the server
implementations of NFSv4 (which may be required for multi-protocol
servers anyways) is a big deal.  Hindsight is 20/20...

So, if nothing else, we're all aware now that NFSv4 i18n is tricky to
implement correctly; being aware is better than nothing, and if that's
all that comes out of this thread it will still be worth having had it.

Also, at some point we need to test i18n at Connectathon.


> 	-mre


Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 15:15:23 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA01176
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 15:15:23 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA10807;
	Fri, 24 Jan 2003 12:12:46 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OKCQ4w029655;
	Fri, 24 Jan 2003 12:12:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OKCD16010632
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:12:13 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OKCDQY010631
	for nfsv4-wg-dist; Fri, 24 Jan 2003 12:12:13 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OKCB16010624
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:12:11 -0800 (PST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (dhcp-uaus08-128-228.Central.Sun.COM [129.153.128.228])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OKCKln004397
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:12:20 -0700 (MST)
Received: from dhcp-uaus08-128-228.Central.Sun.COM (localhost [127.0.0.1])
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.6+Sun/8.12.6) with ESMTP id h0OKAamx100510
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 14:10:36 -0600 (CST)
Received: (from shepler@localhost)
	by dhcp-uaus08-128-228.Central.Sun.COM (8.12.6+Sun/8.12.6/Submit) id h0OKAa10100509
	for nfsv4-wg@sunroof.eng.sun.com; Fri, 24 Jan 2003 14:10:36 -0600 (CST)
Date: Fri, 24 Jan 2003 14:10:36 -0600
From: Spencer Shepler <shepler@eng.sun.com>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
Message-ID: <20030124201035.GK100402@dhcp-uaus08-128-228.sun.com>
Reply-To: spencer.shepler@sun.com
Mail-Followup-To: Spencer Shepler <shepler@eng.sun.com>,
	nfsv4-wg@sunroof.eng.sun.com
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com> <20030124115924.U16765@binky.central.sun.com> <3E3186E6.F6848482@eisler.com> <20030124140603.Z16765@binky.central.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030124140603.Z16765@binky.central.sun.com>
User-Agent: Mutt/1.3.99i
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Fri, Nicolas Williams wrote:
>
> > So what do we want to do with the i-d that IESG has approved for
> > publication. My inclination is to leave it alone, since I suspect we
> > could delay it for 12 more months and still not reach consensus.
> > Only via real experience will a practical truth emerge ... it may that
> > IESG is right, it may be that Dan is right, Nico is right, Dave is right. My
> > guess is it will be none of the above. Fixed in NFSv4.x (x > 0).
> 
> I'd like to see the WG RECOMMEND to clients _a_ normalization form for
> utf8str_cs.
> 
> I think we may not be able to change the spec to require that that norm
> form be used on the wire for utf8str_cs types, not at this late a date,
> though that is what I would have preferred.  Problem is, I don't think
> it will ever be possible or worthwhile anymore to make this change later
> if we don't do it now.  Is that a big deal?  Well, only if you think
> that having full-blown Unicode normalization facilities in the server
> implementations of NFSv4 (which may be required for multi-protocol
> servers anyways) is a big deal.  Hindsight is 20/20...

I would prefer to leave the current I-D as is and let it become an
RFC.  We can continue to build consensus around this issue and either
publish a seperate RFC covering this specific issue and/or incorporate
the work into the Draft version of the NFSv4 RFC.

Spencer


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 15:22:16 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA01364
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 15:22:15 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA02120;
	Fri, 24 Jan 2003 13:23:35 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OKMkgE026868;
	Fri, 24 Jan 2003 12:22:46 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OKMY16010798
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:22:34 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OKMXXm010797
	for nfsv4-wg-dist; Fri, 24 Jan 2003 12:22:33 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OKMV16010790
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:22:32 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OKMe4w002874
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:22:40 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA01662;
	Fri, 24 Jan 2003 13:22:35 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0OKMYYW008798;
	Fri, 24 Jan 2003 12:22:34 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0OKMYLq005518;
	Fri, 24 Jan 2003 12:22:34 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK906KD>; Fri, 24 Jan 2003 12:22:34 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A379095@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'spencer.shepler@sun.com'" <spencer.shepler@sun.com>,
        nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05 draft]
Date: Fri, 24 Jan 2003 12:22:29 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

I agree that we should not change anything in the spec.

But I am going to say that:
> We can continue to build consensus around this issue

is over-sanguine.  Maybe we can try to build consensus
around this issue.  Right now the only consensus is that
this whole issue is one big pain!

-----Original Message-----
From: Spencer Shepler [mailto:shepler@eng.sun.com]
Sent: Friday, January 24, 2003 3:11 PM
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis- 05 draft]


On Fri, Nicolas Williams wrote:
>
> > So what do we want to do with the i-d that IESG has approved for
> > publication. My inclination is to leave it alone, since I suspect we
> > could delay it for 12 more months and still not reach consensus.
> > Only via real experience will a practical truth emerge ... it may that
> > IESG is right, it may be that Dan is right, Nico is right, Dave is right. My
> > guess is it will be none of the above. Fixed in NFSv4.x (x > 0).
> 
> I'd like to see the WG RECOMMEND to clients _a_ normalization form for
> utf8str_cs.
> 
> I think we may not be able to change the spec to require that that norm
> form be used on the wire for utf8str_cs types, not at this late a date,
> though that is what I would have preferred.  Problem is, I don't think
> it will ever be possible or worthwhile anymore to make this change later
> if we don't do it now.  Is that a big deal?  Well, only if you think
> that having full-blown Unicode normalization facilities in the server
> implementations of NFSv4 (which may be required for multi-protocol
> servers anyways) is a big deal.  Hindsight is 20/20...

I would prefer to leave the current I-D as is and let it become an
RFC.  We can continue to build consensus around this issue and either
publish a seperate RFC covering this specific issue and/or incorporate
the work into the Draft version of the NFSv4 RFC.

Spencer


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 15:34:48 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA01662
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 15:34:47 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA22735;
	Fri, 24 Jan 2003 12:32:01 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OKVB4w005533;
	Fri, 24 Jan 2003 12:31:15 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OKUs16010878
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:30:54 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OKUsUF010877
	for nfsv4-wg-dist; Fri, 24 Jan 2003 12:30:54 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OKUo16010870
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:30:52 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OKUxgE003258
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 12:30:59 -0800 (PST)
Received: from mxic2.corp.emc.com (mxic2.corp.emc.com [128.221.31.40])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA24736
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:30:52 -0700 (MST)
From: Dai_Peng@emc.com
Received: by mxic2.corp.emc.com with Internet Mail Service (5.5.2653.19)
	id <CTZ7ZAAV>; Fri, 24 Jan 2003 15:30:26 -0500
Message-ID: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF4B@CORPUSMX2>
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: NFSv4 security model
Date: Fri, 24 Jan 2003 15:29:49 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>Even if running IPsec, AUTH_SYS still doesn't prevent Mallet from 
>impersonating 
>Alice. Trivial ways include: 
>Mallet, who knows the root password, su's to Alice 

There is no question about the security RPCSEC_GSS/kerberos provides
over AUTH_SYS. But the above example does not establish that.

Once the client machine is compromised, meaning the root password is
leaked, then all bets are off. In this case, neither AUTH_SYS nor 
RPCSEC_GSS/kerberos can provide the proper protection for the user.
For example, with root privilege, a trojan horse (a modified kinit in the
case of kerberos) can be installed on the client machine to intercept the
user secret. The host krb5.keytab is also at risk.

>Mallet, who knows how to use rpcgen, produces a user level 
>NFS client in a matter of hours, and accesses Alice's data. 

This does not require local root privilege. But if the NFS client can be
somewhat restricted locally, saying by the server requiring the client
requests originating from restricted ports, then it can be prevented.

Even if the above can be done, there is still significant difference
between AUTH_SYS/IPSec and RPCSEC_GSS/kerberos. The
former approach relies on the client machine to properly authenticate
the user (the uid/gids are credentials acquired as a result of the
authentication);
while the latter relies on the server machine to do that. So using the
first approach, compromising one machine would affect all users;
while in the second approach, only users using the compromised
machine are affected.



From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 16:00:41 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA02246
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 16:00:40 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA22118;
	Fri, 24 Jan 2003 14:01:47 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OL0v4w013956;
	Fri, 24 Jan 2003 13:00:57 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OL0j16011008
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:00:45 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OL0ike011007
	for nfsv4-wg-dist; Fri, 24 Jan 2003 13:00:44 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OL0g16010997
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:00:42 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OL0p4w013861
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:00:51 -0800 (PST)
Received: from dhcp.eisler.com (nat-198-95-226-231.netapp.com [198.95.226.231])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA10796
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:00:46 -0800 (PST)
Received: from eisler.com (localhost.localdomain [127.0.0.1])
	by dhcp.eisler.com (8.11.6/8.11.6) with ESMTP id h0OL0hd12257;
	Fri, 24 Jan 2003 13:00:43 -0800
Message-ID: <3E31A97B.3F88645C@eisler.com>
Date: Fri, 24 Jan 2003 13:00:43 -0800
From: Mike Eisler <mike@eisler.com>
Reply-To: mike@eisler.com
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@sun.com>
CC: "Noveck, Dave" <Dave.Noveck@netapp.com>,
        Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 
 draft]
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com> <20030124115924.U16765@binky.central.sun.com> <3E3186E6.F6848482@eisler.com> <20030124140603.Z16765@binky.central.sun.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Nicolas Williams wrote:
> 
> On Fri, Jan 24, 2003 at 10:33:10AM -0800, Mike Eisler wrote:
> > Nicolas Williams wrote:
> >
> > > Er, no, utf8str_cs requires that a normalization form be used, just not
> > > on the wire.  So the problem of legacy filesystems remains even if we do
> > > not act to recommend or require a specific normalization form on the
> > > wire.
> >
> > It requires a normalization form only if the server is case insensitive.
> 
> This is not my reading of the draft.
> 
> Section 11.1.1 clearly specifies what to do with respect to filenames
> with equal names but different encoding [due to different normalization
> forms used by the clients that create them].  Section 11.1.1 necessarily
> requires that the server perform normalization of client inputs to some
> form of the server's choosing.

I don't see the text. Section  11.1.4 says no normalization
form is specified. Stringprep has tables B1 and B2. B1 is required
to be processed, but I didn't see anything in stringprep that said that
normalization went with table B1. Table B2 explicitly says KC, and B2
is for dealing with case insensitive stuff. Section 3 of stringprpe (now
RFC 3454) refers to Appendix B and the various tables. It says nothing
about normization for B1, whereas it does say something about normalization
with respect to B2 and B3.

Now I am admittably quite ignorant on this topic, but it seems rather
odd that B1 requires normalization (and according to RFC 3454, B1 is
mandatory), and yet B3 is specified to allow applications to not use
normalization when case matching. Section 2 of RFC 3454 distinguishes between
the mapping phase and the normalization phase, and mapping is the topic
of section 3 and appendix B. So if your reading is correct,
then it seems to me RFC 3454 has a paradox.

We apparently need an "RFC 3454 for Dummies" document.

	-mre


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 16:17:43 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA02703
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 16:17:42 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA20566;
	Fri, 24 Jan 2003 13:14:50 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OLDx4w017763;
	Fri, 24 Jan 2003 13:13:59 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OLDl16011066
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:13:47 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0OLDl1p011065
	for nfsv4-wg-dist; Fri, 24 Jan 2003 13:13:47 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0OLDj16011058
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 13:13:45 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0OLDrln027878;
	Fri, 24 Jan 2003 14:13:53 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0OLCIQx013598;
	Fri, 24 Jan 2003 13:12:18 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0OLCIH1013597;
	Fri, 24 Jan 2003 15:12:18 -0600 (CST)
Date: Fri, 24 Jan 2003 15:12:18 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Mike Eisler <mike@eisler.com>
Cc: "Noveck, Dave" <Dave.Noveck@netapp.com>,
        Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
Message-ID: <20030124151218.E16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A3F@SILVER.nane.netapp.com> <20030124115924.U16765@binky.central.sun.com> <3E3186E6.F6848482@eisler.com> <20030124140603.Z16765@binky.central.sun.com> <3E31A97B.3F88645C@eisler.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <3E31A97B.3F88645C@eisler.com>; from mike@eisler.com on Fri, Jan 24, 2003 at 01:00:43PM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 8bit

On Fri, Jan 24, 2003 at 01:00:43PM -0800, Mike Eisler wrote:
> Nicolas Williams wrote:
> > This is not my reading of the draft.
> > 
> > Section 11.1.1 clearly specifies what to do with respect to filenames
> > with equal names but different encoding [due to different normalization
> > forms used by the clients that create them].  Section 11.1.1 necessarily
> > requires that the server perform normalization of client inputs to some
> > form of the server's choosing.
> 
> I don't see the text. Section  11.1.4 says no normalization
> form is specified. Stringprep has tables B1 and B2. B1 is required
> to be processed, but I didn't see anything in stringprep that said that
> normalization went with table B1. Table B2 explicitly says KC, and B2
> is for dealing with case insensitive stuff. Section 3 of stringprpe (now
> RFC 3454) refers to Appendix B and the various tables. It says nothing
> about normization for B1, whereas it does say something about normalization
> with respect to B2 and B3.

Yes, but the requirements from section 11.1.1 about duplicate filenames
imply normalization, if not for stored file names, then during
comparison of file names.

> Now I am admittably quite ignorant on this topic, but it seems rather
> odd that B1 requires normalization (and according to RFC 3454, B1 is
> mandatory), and yet B3 is specified to allow applications to not use
> normalization when case matching. Section 2 of RFC 3454 distinguishes between
> the mapping phase and the normalization phase, and mapping is the topic
> of section 3 and appendix B. So if your reading is correct,
> then it seems to me RFC 3454 has a paradox.
> 
> We apparently need an "RFC 3454 for Dummies" document.

I was only referring to section 11.1.1, specifically: "Two valid
distinct UTF-8 strings might be the same after processing via the
utf8str_cs profile. If the strings are two names inside a directory, the
NFS version 4 server will need to either: ..."

If the server allows two (or more) files to have the same names but
different byte sequences (say, one UTF-8, NFD, the other UTF-8, NFC),
then we'll have the "how do I delete a file named '-i'?" problem
magnified to "I see a file named 'bár' but when I type 'rm bár' it
doesn't work".  Or am I missing some text about utf8str_cs comparisons
having to be done over normalized forms of the comparison inputs??

(yes, above I did not use UTF-8 for "bár" - my apologies)

> 	-mre

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Fri Jan 24 18:37:26 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA05456
	for <nfsv4-archive@lists.ietf.org>; Fri, 24 Jan 2003 18:37:25 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA17794;
	Fri, 24 Jan 2003 16:38:43 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0ONbS4w004537;
	Fri, 24 Jan 2003 15:37:28 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0ONbP16012068
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Fri, 24 Jan 2003 15:37:25 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0ONbPl0012067
	for nfsv4-wg-dist; Fri, 24 Jan 2003 15:37:25 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0ONbN16012060
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 15:37:23 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0ONbMgE000802
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 15:37:23 -0800 (PST)
Received: from dhcp.eisler.com (nat-198-95-226-231.netapp.com [198.95.226.231])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id QAA15054
	for <nfsv4-wg@sunroof.eng.sun.com>; Fri, 24 Jan 2003 16:37:17 -0700 (MST)
Received: from eisler.com (localhost.localdomain [127.0.0.1])
	by dhcp.eisler.com (8.11.6/8.11.6) with ESMTP id h0ONb8d12330;
	Fri, 24 Jan 2003 15:37:09 -0800
Message-ID: <3E31CE24.22EAA6EC@eisler.com>
Date: Fri, 24 Jan 2003 15:37:08 -0800
From: Mike Eisler <mike@eisler.com>
Reply-To: mike@eisler.com
X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Dai_Peng@emc.com
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: NFSv4 security model
References: <6335CBB2F69AD411AD3100D0B7BA38E30CF0BF4B@CORPUSMX2>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

Dai_Peng@emc.com wrote:

> Even if the above can be done, there is still significant difference
> between AUTH_SYS/IPSec and RPCSEC_GSS/kerberos. The
> former approach relies on the client machine to properly authenticate
> the user (the uid/gids are credentials acquired as a result of the
> authentication);
> while the latter relies on the server machine to do that. So using the
> first approach, compromising one machine would affect all users;
> while in the second approach, only users using the compromised
> machine are affected.

I think we are in violent agreement then.


From owner-nfsv4-wg@sunroof.eng.sun.com  Sat Jan 25 21:39:14 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA01882
	for <nfsv4-archive@lists.ietf.org>; Sat, 25 Jan 2003 21:39:13 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id TAA02684;
	Sat, 25 Jan 2003 19:39:15 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0Q2cQgE010538;
	Sat, 25 Jan 2003 18:38:26 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0Q2cF16018362
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sat, 25 Jan 2003 18:38:15 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0Q2cE1o018361
	for nfsv4-wg-dist; Sat, 25 Jan 2003 18:38:14 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0Q2cD16018354
	for <nfsv4-wg@sunroof.eng.sun.com>; Sat, 25 Jan 2003 18:38:13 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0Q2cK4w006335;
	Sat, 25 Jan 2003 18:38:20 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id SAA22843;
	Sat, 25 Jan 2003 18:38:15 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0Q2cEYW001707;
	Sat, 25 Jan 2003 18:38:14 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0Q2cELq003465;
	Sat, 25 Jan 2003 18:38:14 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0AA4X>; Sat, 25 Jan 2003 18:38:14 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A48@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'mike@eisler.com'" <mike@eisler.com>,
        Nicolas Williams
	 <Nicolas.Williams@sun.com>
Cc: "Noveck, Dave" <Dave.Noveck@netapp.com>,
        Spencer Shepler
	 <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05  draft]
Date: Sat, 25 Jan 2003 18:38:10 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> The nfsv4 i18n follows the lead of IETF's stringprep RFC (which we
> were asked to do by IESG). Presumably the folks who wrote it were
> experts, and they strongly recommend KC for case insensitive matching.

I'm not an expert but my understanding of normalization form KC
is that under it "file" (that is, ascii f, ascii i, ascii l, ascii e)
would be an invalid file name.  Can anyone who is familiar with this
stuff confirm or deny?



-----Original Message-----
From: Mike Eisler [mailto:mike@eisler.com]
Sent: Friday, January 24, 2003 1:33 PM
To: Nicolas Williams
Cc: Noveck, Dave; Spencer Shepler; nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis- 05 draft]


Nicolas Williams wrote:

> Er, no, utf8str_cs requires that a normalization form be used, just not
> on the wire.  So the problem of legacy filesystems remains even if we do
> not act to recommend or require a specific normalization form on the
> wire.

It requires a normalization form only if the server is case insensitive.

> > At least I feel the need for a "Normalization Forms for Dummies" document.
> > Maybe other working group members do as well.  Any pointers to something
> > that will explain this stuff to those who have not already immersed
> > themsleves in this area.
> 
> There are several books with "Unicode" in the title (none in my office
> right now).  And the Unicode home page is a good place to start:
> 
> http://www.unicode.org/

I find each visit to unicode.org ever more confusing. My most
recent visit revealed that "16 bit" Unicode now has over 2^64 characters.
It is absolutely impenetrable.

The nfsv4 i18n follows the lead of IETF's stringprep RFC (which we
were asked to do by IESG). Presumably the folks who wrote it were
experts, and they strongly recommend KC for case insensitive matching.
Now we have two other experts in the last 24 hours disagree, but with
two more opinions.

Clearly, no matter what we do in this area, it is highly
probable we'll get it wrong.

Just as clearly, normalization is not well thought out by the
people specifying this; otherwise it would be much easier to grasp.

So what do we want to do with the i-d that IESG has approved for
publication. My inclination is to leave it alone, since I suspect we
could delay it for 12 more months and still not reach consensus.
Only via real experience will a practical truth emerge ... it may that
IESG is right, it may be that Dan is right, Nico is right, Dave is right. My
guess is it will be none of the above. Fixed in NFSv4.x (x > 0).

	-mre


From owner-nfsv4-wg@sunroof.eng.sun.com  Sun Jan 26 11:32:43 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA19571
	for <nfsv4-archive@lists.ietf.org>; Sun, 26 Jan 2003 11:32:42 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA14120;
	Sun, 26 Jan 2003 09:29:58 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QGTG4w016460;
	Sun, 26 Jan 2003 08:29:17 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QGT316020032
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 26 Jan 2003 08:29:03 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0QGT37U020031
	for nfsv4-wg-dist; Sun, 26 Jan 2003 08:29:03 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QGT116020024
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 08:29:01 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QGTB4w016438
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 08:29:11 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA13544
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 08:29:04 -0800 (PST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h0QGT2n27419 for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 17:29:02 +0100 (MET)
Message-Id: <200301261629.h0QGT2n27419@malmo.trab.se>
Date: Sun, 26 Jan 2003 17:31:46 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: 8VM53pnHzbCynFfhnHDBfw==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

As I stated this I will try to give you some answers.
There is a lot to say and I expect now when trying to write it
down I will forget many important aspects or facts, but hopefully it
will give you some answers.
(for your background, I have worked with internationalisation for a 
long time, both implementing in software (like filesharing from
unix with MS Windows and MacOS) and in IETF groups (like the
internationalisation of DNS).
-


The international standard ISO 10646 defines UCS (Universal Character
Set).  The Unicode definition and ISO 10646 are kept in sync.  The
Unicode group adds more semantics to handling characters which is not
covered by the ISO standard.  Unfortunately during its creation many
ways to encode the same character was introduced.  This is due to how
characters were included from legacy character sets and because of the
combining characters the Unicode group wanted to use everywhere.
Because of this there is more than one way to encode some of the
characters making it difficult to handle matching and sorting.  There
are case where the same character have two code points (binary
values), for example "A with ring above" and "Angstrom sign".  And
there are cases where a character can be represented by a single code
point or by multiple by using combining code points, for example "A
with ring above" or as "A" plus "combining ring above".  To be able to
compare or sort characters you need to normalise the character
encoding.  To normalise means to get only ONE representation for each
character.

Unicode defines four normalisation forms:  D, KD, C and KC.  D stands
for decomposed, C for composed, K for compatibility.  The D forms
decompose that is, they split each glyph that can be split into a base
character and one or more combining ones.  The C form does the
oposite, it combines sequences of base+combining characters into a
single character (code point).  In the K forms they add
"compatibility" mapping where all "compatible" characters are mapped
into one representation (for example:  "angstrom sign" into "a with
ring above").  Unicode and the normalisation forms have several
inconsistensies.  Generally the ASCII characters are treated
inconsistenly.  For example:  The letter "a with ring above" can be
decomposed but the letter "i" cannot.  "a with ring above" is a vowel
in Swedish and is as much a letter as "i" is.  And stand alone accents
in the ASCII range cannot be decomposed but stand alone accents in the
ISO 8859-1 range (code values 0-255) can be.

The reason I and many others prefer the C form is that it is close to
legacy character sets (ASCII and ISO 8859-1 are true subsets sharing
code points with UCS) and how characters are handled in many legacy
systems.  And it is also compact resulting in smaller storage and less
data sent over the wire.  The W3C have selected form C as the the one
to be used for the webb.  For many form C is much lighter than form D.
It can easily be handled during client input and closely matches
legacy encodings.  There is no need to first use D-forms
(decomposition) to get text normalised using the compact (C) forms.
It is often very easy to just directely enter characters in form C or
KC when they are input into the system.  The decomposed D form is
probably better for a few languages and for very advanced word
processing systems handling all characters at the same time.  All
systems using ASCII or ISO 8859-1 already have the data in form C.

At little about why I am not sure the K form is good:  The K forms
removes "compatible" characters and replace them by ONE single code
representation.  But what do "compatible" mean?  In one of the
comments to my original comments there is a talk about ligatures.
Yes, "fi" is a ligature (a typographical form) and is decomposed by
the K form into "f" and "i".  But "ae" is not a ligature, it is a
letter, and is not decomposed by the K form.  This is as it should be.
But the K form also replaces som characters with a different code
point that may change the meaning of the character or replacing a
singe code point with several (even in form KC).  This may be disliked
by some people as a string is changed and will make KC not directly
compatible with ISO 8859-1.  Form C do not destroy any information but
will result in multiple representations of one character.  And
multiple representation is very bad.  So if we want to have a defined
"standard" to follow, form KC is probably best despite resulting in
some semantic information lost (though I think this only happens in
special characters, not those that normaly are used in a name).

"stringprep" was created for use with the internationalisation of DNS.
If may not be perfect for all systems.  The W3C have selected form C
to be used instead of KC which "stringprep" prefers.  - The basic
thing I want to say is that for two systems to interoperate they have
to speak the same language.  Inside a system any laguage can be used,
but when talking to the other system you have to use the same
language.

To avoid complex and CPU consuming software you want to have
normalised text.  If you do not require that, each NFS server and
client need to have server to handle unnormalised character strings
resulting in a lot of code and CPU time.  If instead you have one well
defined character order having only one representation of a character,
the code gets much simpler.  Normalisation can be done at the input
end, servers can expect all data to already be normalised.  From all I
have read and studied, form C or KC is the preferred choice.  If form
C is selected all "equivalent" glyphs should be forbidden to avoid
more than one representation of a code point.  I do not want to write
code to test for matches with multiple representation of a character.
(there have been a lot of discussion of things like Cyrillic
characters being equivalent to Latin ones.  While some look the same
and have the same historic origin most do not want to make them
"equivalent".  This will result in confused users, but I see no easy
solution to that).  Not normalising and just comparing bytes, means
that a directory can store the same filename several times as a
character can be represented by different byte sequences.  But the
user may see them as exactely the same.

- About legacy character sets.  If the protocol says that all
filenames are to be transmitted in the NFS protocol using UCS form KC
(or C), the NFS servers and clients must convert from the character
set encoding used on the system.  Otherwise it will not work well.
For example, on my Solaris system I use ISO 8859-1 as the character
set in use.  This means that all filenames in my system is encoded
using ISO 8859-1 (latin-1).  When my files are mounted using NFSv3 on
a MacOS system, filenames gets corrupted due to no standard on
character set.  If my NFSv3 server had converted the filenames from
ISO 8859-1 into UTF-8 and the MacOS had handled that, or if the MacOS
client side had an option telling it that the filenames shoudl be in
ISO 8859-1, it would have worked.  But to avoid everybody having to
implement all character sets in the world, it is easiest to use ONE
encoding on the wire.

- Comparing names:  When you do case insensitive comparing of
characters it gets even more complex.  For example, the "small letter
german sharp s" can be equivalent to "SS" and is treated so by the
"stringprep" document.  But there are German words that have different
meaning if written as "ss" or "small letter german sharp s".  And
Chinese have a set of character that are equivalent but those are not
handled by the "stringprep" document.  I think doing one to one case
insensivititi after the Unicode tables combined the the Chinese SC/TC
equivalence is best (and fastest to implement and use).

-
In summary:
I think NFSv4 must require ONE encoding of character data.
UCS normalised using form KC or form C with forbidden characters,
encoded as UTF-8. It is the responsibility of the server/client
to convert between local system encoding and the protocol
format.

I will try to answer your coming questions, but it may be a day or two
between them as I have a lot to do, at the moment.


   Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Sun Jan 26 15:18:05 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA21337
	for <nfsv4-archive@lists.ietf.org>; Sun, 26 Jan 2003 15:18:05 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA23860;
	Sun, 26 Jan 2003 12:14:24 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QKDW4w009921;
	Sun, 26 Jan 2003 12:13:32 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QKDJ16020421
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 26 Jan 2003 12:13:19 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0QKDJwX020420
	for nfsv4-wg-dist; Sun, 26 Jan 2003 12:13:19 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QKDH16020413
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 12:13:17 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QKDP7L028671;
	Sun, 26 Jan 2003 13:13:26 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0QKBnQx014462;
	Sun, 26 Jan 2003 12:11:49 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0QKBlSv014461;
	Sun, 26 Jan 2003 14:11:47 -0600 (CST)
Date: Sun, 26 Jan 2003 14:11:47 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: "'mike@eisler.com'" <mike@eisler.com>,
        Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05  draft]
Message-ID: <20030126141147.S16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A48@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A48@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Sat, Jan 25, 2003 at 06:38:10PM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

No, ASCII text is a legal sub-set of UTF-8.

8859-1/2, non-ASCII text, is NOT legal UTF-8.

Cheers,

Nico

On Sat, Jan 25, 2003 at 06:38:10PM -0800, Noveck, Dave wrote:
> I'm not an expert but my understanding of normalization form KC
> is that under it "file" (that is, ascii f, ascii i, ascii l, ascii e)
> would be an invalid file name.  Can anyone who is familiar with this
> stuff confirm or deny?


From owner-nfsv4-wg@sunroof.eng.sun.com  Sun Jan 26 15:29:21 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA21434
	for <nfsv4-archive@lists.ietf.org>; Sun, 26 Jan 2003 15:29:21 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA19707;
	Sun, 26 Jan 2003 12:25:09 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QKOIgE029613;
	Sun, 26 Jan 2003 12:24:18 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QKO516020448
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 26 Jan 2003 12:24:05 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0QKO5VQ020447
	for nfsv4-wg-dist; Sun, 26 Jan 2003 12:24:05 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QKO316020440
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 12:24:03 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QKOC7L000601;
	Sun, 26 Jan 2003 13:24:12 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0QKMaQx014478;
	Sun, 26 Jan 2003 12:22:36 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0QKMZ1s014477;
	Sun, 26 Jan 2003 14:22:35 -0600 (CST)
Date: Sun, 26 Jan 2003 14:22:35 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030126142235.U16765@binky.central.sun.com>
References: <200301261629.h0QGT2n27419@malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200301261629.h0QGT2n27419@malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Sun, Jan 26, 2003 at 05:31:46PM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Sun, Jan 26, 2003 at 05:31:46PM +0100, Dan Oscarsson wrote:
> In summary:
> I think NFSv4 must require ONE encoding of character data.
> UCS normalised using form KC or form C with forbidden characters,
> encoded as UTF-8. It is the responsibility of the server/client
> to convert between local system encoding and the protocol
> format.

I think NFSv4 must require at the very least that filenames be stored
normalized to some form (we should probably specify if it can be a K
form or not, but D vs. C is not so important) and let clients and
servers deal with that.  This is pretty much what the draft says or
implies.

My concern is that specifying an on-the-wire normalization form could
have limited the amount of normalization code needed in OS kernels
(they'd only have to check normalization, rather than perform it).  As
such I think that NFSv4's utf8str_cs spec is correct, but sub-optimal.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Sun Jan 26 15:47:07 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA21560
	for <nfsv4-archive@lists.ietf.org>; Sun, 26 Jan 2003 15:47:07 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id NAA02301;
	Sun, 26 Jan 2003 13:47:07 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QKkO4w013402;
	Sun, 26 Jan 2003 12:46:24 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QKkC16020543
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 26 Jan 2003 12:46:12 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0QKkCBJ020542
	for nfsv4-wg-dist; Sun, 26 Jan 2003 12:46:12 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0QKkA16020535
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 12:46:10 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0QKkJgE005852;
	Sun, 26 Jan 2003 12:46:19 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id NAA13054;
	Sun, 26 Jan 2003 13:46:13 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0QKkCYW029620;
	Sun, 26 Jan 2003 12:46:12 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0QKkCLq003178;
	Sun, 26 Jan 2003 12:46:12 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0ACD7>; Sun, 26 Jan 2003 12:46:12 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A49@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>,
        "Noveck, Dave"
	 <Dave.Noveck@netapp.com>
Cc: "'mike@eisler.com'" <mike@eisler.com>,
        Spencer Shepler
	 <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05  draft]
Date: Sun, 26 Jan 2003 12:46:06 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

OK, so where did I go wrong?

     a) ligature fi followed by "le" and the string "file" are 
        compatibility equivalent.

     b) If two strings are compatibility equivalent, then
        under a K-style normalization form, only one of them
        can be valid.
 
     c) The compatibility composition of "file" is the ligature
        fi followed by "le".

     d) Thus ligature fi followed by the string "le" is valid 
        under normalization form KC.

     e) The string "file" is invalid under normalization form KC.

QED.

So if the result e) is false, which of a), b), c), d) are false?

-----Original Message-----
From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
Sent: Sunday, January 26, 2003 3:12 PM
To: Noveck, Dave
Cc: 'mike@eisler.com'; Spencer Shepler; nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis- 05 draft]


No, ASCII text is a legal sub-set of UTF-8.

8859-1/2, non-ASCII text, is NOT legal UTF-8.

Cheers,

Nico

On Sat, Jan 25, 2003 at 06:38:10PM -0800, Noveck, Dave wrote:
> I'm not an expert but my understanding of normalization form KC
> is that under it "file" (that is, ascii f, ascii i, ascii l, ascii e)
> would be an invalid file name.  Can anyone who is familiar with this
> stuff confirm or deny?


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 02:55:34 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA09289
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 02:55:34 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id AAA21288;
	Mon, 27 Jan 2003 00:56:47 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0R7toVL001399;
	Sun, 26 Jan 2003 23:55:50 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0R7tc16022683
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Sun, 26 Jan 2003 23:55:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0R7tbjY022682
	for nfsv4-wg-dist; Sun, 26 Jan 2003 23:55:37 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0R7ta16022675
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 23:55:36 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0R7tjVK003373
	for <nfsv4-wg@sunroof.eng.sun.com>; Sun, 26 Jan 2003 23:55:45 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id AAA11919;
	Mon, 27 Jan 2003 00:55:39 -0700 (MST)
Received: from valinor.malmo.trab.se (valinor [131.115.48.20]) by malmo.trab.se (8.10.1/TRAB-primary-2) with ESMTP id h0R7tbn00972; Mon, 27 Jan 2003 08:55:37 +0100 (MET)
Received: from valinor by valinor.malmo.trab.se (8.12.5+Sun/TRM-1-KLIENT); Mon, 27 Jan 2003 08:55:37 +0100 (CET) (MET)
Message-Id: <200301270755.h0R7tHAT007430@valinor.malmo.trab.se>
Date: Mon, 27 Jan 2003 08:55:37 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: Nicolas.Williams@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: omkpUJ9LKLDSiZTPawRXCw==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5.3 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>I think NFSv4 must require at the very least that filenames be stored
>normalized to some form (we should probably specify if it can be a K
>form or not, but D vs. C is not so important) and let clients and
>servers deal with that.  This is pretty much what the draft says or
>implies.

The Open Source Unix and Linux community have for internationalisation
selected UCS normalised using form C and encoded using UTF-8 as
the standard to be used on Unix and Linux.
The same form and encoding have been selected by W3C for the webb.

So there is a lot of software that does or will handle form C encoded
text. From what I have seen there will be very little software
that will handle or use normalisation form D, KD or KC.

So NFSv4 should use the same as most do (or will do):  normalising form C.

But we cannot require it in storage, only on the wire.
It is on the wire, that is between systems, that it must be standardised
to one simple format. Systems can use any format they want.
A system which uses normalising form C as its local format for staorage
will have a simpler implementation than others, and that will help
push system vendors to move to the most common format used.
UCS normalising form C is compact and do not destroy any information,
so it is best. The K forms destroy data and the D form takes more space and
breaks the semantic concept of letter on some letters.

Yes, it may result in additional code in servers, but many system can
create very efficient code to convert between legacy character set
and UCS normalising form C. So I think it will not be that expensive.

   Dan




From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 09:05:41 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA16082
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 09:05:40 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id GAA12574;
	Mon, 27 Jan 2003 06:02:49 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RE26VL020104;
	Mon, 27 Jan 2003 06:02:06 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RE1s16024509
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 06:01:54 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RE1sAJ024508
	for nfsv4-wg-dist; Mon, 27 Jan 2003 06:01:54 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RE1q16024501
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 06:01:52 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RE20VL020055
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 06:02:00 -0800 (PST)
Received: from citi.umich.edu (citi.umich.edu [141.211.92.141])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA27825
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 07:01:54 -0700 (MST)
Received: from citi.umich.edu (dsl093-001-248.det1.dsl.speakeasy.net [66.93.1.248])
	by citi.umich.edu (Postfix) with ESMTP id 23061207DF
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:01:54 -0500 (EST)
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft] 
To: nfsv4-wg@sunroof.eng.sun.com
From: Jim Rees <rees@umich.edu>
In-Reply-To: Dan Oscarsson, Mon, 27 Jan 2003 08:55:37 +0100
Date: Mon, 27 Jan 2003 09:01:53 -0500
Message-Id: <20030127140154.23061207DF@citi.umich.edu>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Form C sounds right to me.  Is there free sample normalization code
available somewhere?  How about for the other forms?


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 09:22:12 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA16329
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 09:22:12 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA01586;
	Mon, 27 Jan 2003 07:22:17 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0REL8VK028414;
	Mon, 27 Jan 2003 06:21:08 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0REKu16024541
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 06:20:56 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0REKuo0024540
	for nfsv4-wg-dist; Mon, 27 Jan 2003 06:20:56 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0REKs16024533
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 06:20:54 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0REL2VL022712
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 06:21:02 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA05835
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 07:20:57 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0REKuYW028646;
	Mon, 27 Jan 2003 06:20:56 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0REKuLq029460;
	Mon, 27 Jan 2003 06:20:56 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0A1YF>; Mon, 27 Jan 2003 06:20:56 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A4C@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Jim Rees'" <rees@umich.edu>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	05 draft] 
Date: Mon, 27 Jan 2003 06:20:51 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

I'm OK with C *provisionally*.  Let me explain.  I think
one of the problems that we have had in this area is that
we are too quick to agree to some of this stuff, before we
understand the full implications.

I believe this what happened when the stringprep went in.  
You can argue (endlessly) whether this was a good idea or not
but I think it is clear that we did not really understand
the implications.  I think the reason was that most of us
find this stuff really complicated and unpleasant and we'd
rather just get it out of the way go on to talk about something 
else.

Let's not repeat our mistake and settle on something until 
we have done enough implementation work to be sure that we
are really OK with the implications in actual filesystems.

So one question that we need to examine is our old friend
linktext4.  Are we saying that a server MUST reject creation
of a symlink if it doesn't obey the rules of normalization 
form C, and if so, with what error?  If not, are we saying
that we should normalize to form C on readlink.  And of course
there is the issue of those existing symlinks on existing
filesystems, even those that are encoded in UTF-8.  If they
don't match form C, should we fail (what error), normalize to
C, or just the return the damn data?  Enquiring minds want to
know.



-----Original Message-----
From: Jim Rees [mailto:rees@umich.edu]
Sent: Monday, January 27, 2003 9:02 AM
To: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis-05 draft] 


Form C sounds right to me.  Is there free sample normalization code
available somewhere?  How about for the other forms?


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:04:49 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA19681
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:04:48 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA18134;
	Mon, 27 Jan 2003 09:01:32 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RH0MVL025989;
	Mon, 27 Jan 2003 09:00:23 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RH0B16026248
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:00:11 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RH0Ba8026247
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:00:11 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RH0916026240
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:00:09 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RH0Gln009309;
	Mon, 27 Jan 2003 10:00:16 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0RGwcQx014807;
	Mon, 27 Jan 2003 08:58:38 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0RGwbMn014806;
	Mon, 27 Jan 2003 10:58:37 -0600 (CST)
Date: Mon, 27 Jan 2003 10:58:37 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: "'mike@eisler.com'" <mike@eisler.com>,
        Spencer Shepler <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05  draft]
Message-ID: <20030127105837.V16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A49@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A49@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Sun, Jan 26, 2003 at 12:46:06PM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Form K would replace the ligature with "f" and "i" - not the other way
around.

Nico

On Sun, Jan 26, 2003 at 12:46:06PM -0800, Noveck, Dave wrote:
> OK, so where did I go wrong?
> 
>      a) ligature fi followed by "le" and the string "file" are 
>         compatibility equivalent.
> 
>      b) If two strings are compatibility equivalent, then
>         under a K-style normalization form, only one of them
>         can be valid.
>  
>      c) The compatibility composition of "file" is the ligature
>         fi followed by "le".
> 
>      d) Thus ligature fi followed by the string "le" is valid 
>         under normalization form KC.
> 
>      e) The string "file" is invalid under normalization form KC.
> 
> QED.
> 
> So if the result e) is false, which of a), b), c), d) are false?


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:08:11 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA19779
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:08:10 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA21129;
	Mon, 27 Jan 2003 10:08:27 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RH7lVL028405;
	Mon, 27 Jan 2003 09:07:47 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RH7Z16026264
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:07:35 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RH7ZJv026263
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:07:35 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RH7X16026256
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:07:33 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RH7fVK007211;
	Mon, 27 Jan 2003 09:07:41 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA23801;
	Mon, 27 Jan 2003 09:07:36 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RH7ZYW009585;
	Mon, 27 Jan 2003 09:07:35 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RH7YLq027841;
	Mon, 27 Jan 2003 09:07:34 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0AHCY>; Mon, 27 Jan 2003 09:07:34 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A3790A5@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>,
        "Noveck, Dave"
	 <Dave.Noveck@netapp.com>
Cc: "'mike@eisler.com'" <mike@eisler.com>,
        Spencer Shepler
	 <shepler@eng.sun.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05  draft]
Date: Mon, 27 Jan 2003 09:07:28 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

OK, I see.

Form KC consists of a compatibility decomposition followed
by a *canonical* composition.  Never mind.

-----Original Message-----
From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
Sent: Monday, January 27, 2003 11:59 AM
To: Noveck, Dave
Cc: 'mike@eisler.com'; Spencer Shepler; nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis- 05 draft]


Form K would replace the ligature with "f" and "i" - not the other way
around.

Nico

On Sun, Jan 26, 2003 at 12:46:06PM -0800, Noveck, Dave wrote:
> OK, so where did I go wrong?
> 
>      a) ligature fi followed by "le" and the string "file" are 
>         compatibility equivalent.
> 
>      b) If two strings are compatibility equivalent, then
>         under a K-style normalization form, only one of them
>         can be valid.
>  
>      c) The compatibility composition of "file" is the ligature
>         fi followed by "le".
> 
>      d) Thus ligature fi followed by the string "le" is valid 
>         under normalization form KC.
> 
>      e) The string "file" is invalid under normalization form KC.
> 
> QED.
> 
> So if the result e) is false, which of a), b), c), d) are false?


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:16:15 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA19923
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:16:15 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA27764;
	Mon, 27 Jan 2003 09:12:48 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHBxVK008465;
	Mon, 27 Jan 2003 09:11:59 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHBm16026277
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:11:48 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RHBmU9026276
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:11:48 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHBk16026269
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:11:46 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHBsln016278;
	Mon, 27 Jan 2003 10:11:54 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0RHAHQx014816;
	Mon, 27 Jan 2003 09:10:17 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0RHAHvY014815;
	Mon, 27 Jan 2003 11:10:17 -0600 (CST)
Date: Mon, 27 Jan 2003 11:10:17 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030127111016.W16765@binky.central.sun.com>
References: <200301270755.h0R7tHAT007430@valinor.malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200301270755.h0R7tHAT007430@valinor.malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Mon, Jan 27, 2003 at 08:55:37AM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Mon, Jan 27, 2003 at 08:55:37AM +0100, Dan Oscarsson wrote:
> 
> >I think NFSv4 must require at the very least that filenames be stored
> >normalized to some form (we should probably specify if it can be a K
> >form or not, but D vs. C is not so important) and let clients and
> >servers deal with that.  This is pretty much what the draft says or
> >implies.
> 
> The Open Source Unix and Linux community have for internationalisation
> selected UCS normalised using form C and encoded using UTF-8 as
> the standard to be used on Unix and Linux.
> The same form and encoding have been selected by W3C for the webb.
> 
> So there is a lot of software that does or will handle form C encoded
> text. From what I have seen there will be very little software
> that will handle or use normalisation form D, KD or KC.
> 
> So NFSv4 should use the same as most do (or will do):  normalising form C.

Normalization form C ALWAYS starts with decomposition, that is,
normalization form D.

Any software which can perform normalization form C can also perform
normalization form D.

> But we cannot require it in storage, only on the wire.

In storage we must leave the fileserver free to do as it pleases, but
for one restriction: it must use a reasonably canonical form in storage,
otherwise equal filenames with unequal encodings could be allowed.

I believe that this is what the draft specifies.  An on-the-wire
normalization form specification would be an optimization, but is not
absolutely necessary.

> It is on the wire, that is between systems, that it must be standardised
> to one simple format. Systems can use any format they want.

I remain unconvinced.

> A system which uses normalising form C as its local format for staorage
> will have a simpler implementation than others, and that will help
> push system vendors to move to the most common format used.
> UCS normalising form C is compact and do not destroy any information,
> so it is best. The K forms destroy data and the D form takes more space and
> breaks the semantic concept of letter on some letters.

Normalization form C is limited to composed characters defined in
Unicode 3.0 (we're past 3.0); as such it really means "composed for
these characters, decomposed for everything else" - so why not just
decomposed then?

I don't thing encoding length is that big a deal, but cycles spent in
normalization, space dedicated to normalization data structures, *that*
is a big deal.

This is why I'm for form D (on the wire as an optimization).

> Yes, it may result in additional code in servers, but many system can
> create very efficient code to convert between legacy character set
> and UCS normalising form C. So I think it will not be that expensive.

I have no figures close at hand, but I don't think that Unicode
normalization data structures and code are small (remember, we're
talking about kernel constraints here, complete with small stacks).

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:23:41 2003
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20131
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:23:41 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA02589;
	Mon, 27 Jan 2003 09:19:25 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHIaVK010694;
	Mon, 27 Jan 2003 09:18:36 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHIP16026290
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:18:25 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RHIOw2026289
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:18:24 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHIM16026282
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:18:23 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHIUln019575;
	Mon, 27 Jan 2003 10:18:31 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0RHGrQx014831;
	Mon, 27 Jan 2003 09:16:53 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0RHGrqj014830;
	Mon, 27 Jan 2003 11:16:53 -0600 (CST)
Date: Mon, 27 Jan 2003 11:16:53 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030127111653.Y16765@binky.central.sun.com>
References: <200301270755.h0R7tHAT007430@valinor.malmo.trab.se> <20030127111016.W16765@binky.central.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20030127111016.W16765@binky.central.sun.com>; from Nicolas.Williams@sun.com on Mon, Jan 27, 2003 at 11:10:17AM -0600
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Mon, Jan 27, 2003 at 11:10:17AM -0600, Nicolas Williams wrote:
> I remain unconvinced.

BTW, I can see one argument for form C over D in this case (as in my
initial response): that user-land client code normalizes early to form
C.  Then form C becomes an optimization over form D.

Normalizing on the wire and using a given form - those are all
optimizations.  And it seems that it's too late to add them; we can
later recommend a form, in the hopes that most implementations will use
it and save some cycles that way, but it looks as though we won't be
able to fix the standard to require the use of a form on the wire.

Cheers,

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:40:55 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20451
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:40:55 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA15327;
	Mon, 27 Jan 2003 10:40:52 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHdgVK017164;
	Mon, 27 Jan 2003 09:39:42 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHdU16026342
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:39:30 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RHdU06026341
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:39:30 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHdR16026334
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:39:27 -0800 (PST)
Received: from nwkea-mail-2.sun.com ([192.18.42.14])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHdaVL006650
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:39:36 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-2.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA17283;
	Mon, 27 Jan 2003 09:39:30 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RHVwYW011330;
	Mon, 27 Jan 2003 09:31:58 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RHVvLq002452;
	Mon, 27 Jan 2003 09:31:58 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0AHQ1>; Mon, 27 Jan 2003 09:31:57 -0800
Message-ID: <6440EA1A6AA1D5118C6900902745938E07470B57@black.eng.netapp.com>
From: "Yoder, Alan" <agy@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>,
        Dan Oscarsson
	 <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	05 draft]
Date: Mon, 27 Jan 2003 09:31:51 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

I'm confused.  Is Dan talking about filenames,
or about the actual contents of files?

Alan

===============================================================
Alan G. Yoder, Ph.D.                             agy@netapp.com
Technical Staff                          
Network Appliance, Inc.                            408-822-6919
=============================================================== 

> -----Original Message-----
> From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
> Sent: Monday, January 27, 2003 9:10 AM
> To: Dan Oscarsson
> Cc: nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
> rfc3010bis-05 draft]
> 
> 
> On Mon, Jan 27, 2003 at 08:55:37AM +0100, Dan Oscarsson wrote:
> > 
> > >I think NFSv4 must require at the very least that 
> filenames be stored
> > >normalized to some form (we should probably specify if it 
> can be a K
> > >form or not, but D vs. C is not so important) and let clients and
> > >servers deal with that.  This is pretty much what the draft says or
> > >implies.
> > 
> > The Open Source Unix and Linux community have for 
> internationalisation
> > selected UCS normalised using form C and encoded using UTF-8 as
> > the standard to be used on Unix and Linux.
> > The same form and encoding have been selected by W3C for the webb.
> > 
> > So there is a lot of software that does or will handle form 
> C encoded
> > text. From what I have seen there will be very little software
> > that will handle or use normalisation form D, KD or KC.
> > 
> > So NFSv4 should use the same as most do (or will do):  
> normalising form C.
> 
> Normalization form C ALWAYS starts with decomposition, that is,
> normalization form D.
> 
> Any software which can perform normalization form C can also perform
> normalization form D.
> 
> > But we cannot require it in storage, only on the wire.
> 
> In storage we must leave the fileserver free to do as it pleases, but
> for one restriction: it must use a reasonably canonical form 
> in storage,
> otherwise equal filenames with unequal encodings could be allowed.
> 
> I believe that this is what the draft specifies.  An on-the-wire
> normalization form specification would be an optimization, but is not
> absolutely necessary.
> 
> > It is on the wire, that is between systems, that it must be 
> standardised
> > to one simple format. Systems can use any format they want.
> 
> I remain unconvinced.
> 
> > A system which uses normalising form C as its local format 
> for staorage
> > will have a simpler implementation than others, and that will help
> > push system vendors to move to the most common format used.
> > UCS normalising form C is compact and do not destroy any 
> information,
> > so it is best. The K forms destroy data and the D form 
> takes more space and
> > breaks the semantic concept of letter on some letters.
> 
> Normalization form C is limited to composed characters defined in
> Unicode 3.0 (we're past 3.0); as such it really means "composed for
> these characters, decomposed for everything else" - so why not just
> decomposed then?
> 
> I don't thing encoding length is that big a deal, but cycles spent in
> normalization, space dedicated to normalization data 
> structures, *that*
> is a big deal.
> 
> This is why I'm for form D (on the wire as an optimization).
> 
> > Yes, it may result in additional code in servers, but many 
> system can
> > create very efficient code to convert between legacy character set
> > and UCS normalising form C. So I think it will not be that 
> expensive.
> 
> I have no figures close at hand, but I don't think that Unicode
> normalization data structures and code are small (remember, we're
> talking about kernel constraints here, complete with small stacks).
> 
> Nico
> -- 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:57:50 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA20985
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:57:50 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA13684;
	Mon, 27 Jan 2003 10:56:34 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHtLVK022450;
	Mon, 27 Jan 2003 09:55:21 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHtA16026371
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:55:10 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RHtASH026370
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:55:10 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHt816026363
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:55:08 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHtGVL011286
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:55:16 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA24686;
	Mon, 27 Jan 2003 10:55:11 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RHldYW012497;
	Mon, 27 Jan 2003 09:47:39 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RHldLq005824;
	Mon, 27 Jan 2003 09:47:39 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0AHZD>; Mon, 27 Jan 2003 09:47:39 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A51@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Nicolas Williams'" <Nicolas.Williams@sun.com>,
        Dan Oscarsson
	 <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	05 draft]
Date: Mon, 27 Jan 2003 09:47:27 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

> > But we cannot require it in storage, only on the wire.
>
> In storage we must leave the fileserver free to do as it pleases, but
> for one restriction: it must use a reasonably canonical form in storage,
> otherwise equal filenames with unequal encodings could be allowed.

How would define "reasonably canonical".  The requirement you are talking
about is that you cannot have two different files in the same directory
with canonically equivalent strings as name.  That affects the format
that will be used in storage but leave it to the implementation to 
decide exactly how.

> I believe that this is what the draft specifies.  An on-the-wire
> normalization form specification would be an optimization, but is not
> absolutely necessary.

> > It is on the wire, that is between systems, that it must be standardised
> > to one simple format. Systems can use any format they want.
> 
> I remain unconvinced.

> > A system which uses normalising form C as its local format for staorage
> > will have a simpler implementation than others, and that will help
> > push system vendors to move to the most common format used.
> > UCS normalising form C is compact and do not destroy any information,
> > so it is best. The K forms destroy data and the D form takes more space and
> > breaks the semantic concept of letter on some letters.
>
> Normalization form C is limited to composed characters defined in
> Unicode 3.0 (we're past 3.0); as such it really means "composed for
> these characters, decomposed for everything else" - so why not just
> decomposed then?

> I don't thing encoding length is that big a deal, 

Clearly not.  If we cared that much about bytes sent,
we wouldn't have four bytes for each op on the request
and the reply, we wouldn't have four bytes of error code
that almost always has zero in it, etc.  The percentage of
additional bytes sent under any reasonable circumstances
by doign D as apposed to C is going to be very small.  

> but cycles spent in
> normalization, space dedicated to normalization data structures, *that*
> is a big deal.

If it's spent on the client, no problem.  Time spent on the server
on the other hand is very important :-)

> This is why I'm for form D (on the wire as an optimization).

It seems that form D can be checked by just looking for decomposable
characters and rejecting if any is found.  On the other hand, it
seems, that you need some kind of state machine to check form C. 

> > Yes, it may result in additional code in servers, but many system can
> > create very efficient code to convert between legacy character set
> > and UCS normalising form C. So I think it will not be that expensive.

> I have no figures close at hand, but I don't think that Unicode
> normalization data structures and code are small (remember, we're
> talking about kernel constraints here, complete with small stacks).

I think kernel and non-kernel people tend to have different view of 
what is considered too expensive. 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 12:58:44 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA21034
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 12:58:43 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA23312;
	Mon, 27 Jan 2003 10:59:15 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHw3VL012277;
	Mon, 27 Jan 2003 09:58:03 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHvq16026395
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:57:52 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RHvq9X026394
	for nfsv4-wg-dist; Mon, 27 Jan 2003 09:57:52 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RHvo16026387
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:57:50 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RHvwVL012190
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 09:57:58 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA26335;
	Mon, 27 Jan 2003 10:57:53 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RHoLYW012718;
	Mon, 27 Jan 2003 09:50:21 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RHoLLq006388;
	Mon, 27 Jan 2003 09:50:21 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0AH55>; Mon, 27 Jan 2003 09:50:21 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A53@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "Yoder, Alan" <agy@netapp.com>,
        "'Nicolas Williams'"
	 <Nicolas.Williams@sun.com>,
        Dan Oscarsson
	 <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05 draft]
Date: Mon, 27 Jan 2003 09:50:14 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

If he is not talking only about filenames (and possibly the
contents of symlinks), then we *really* have a failure
to communicate.

-----Original Message-----
From: Yoder, Alan [mailto:agy@netapp.com]
Sent: Monday, January 27, 2003 12:32 PM
To: 'Nicolas Williams'; Dan Oscarsson
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
rfc3010bis- 05 draft]


I'm confused.  Is Dan talking about filenames,
or about the actual contents of files?

Alan

===============================================================
Alan G. Yoder, Ph.D.                             agy@netapp.com
Technical Staff                          
Network Appliance, Inc.                            408-822-6919
=============================================================== 

> -----Original Message-----
> From: Nicolas Williams [mailto:Nicolas.Williams@sun.com]
> Sent: Monday, January 27, 2003 9:10 AM
> To: Dan Oscarsson
> Cc: nfsv4-wg@sunroof.eng.sun.com
> Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
> rfc3010bis-05 draft]
> 
> 
> On Mon, Jan 27, 2003 at 08:55:37AM +0100, Dan Oscarsson wrote:
> > 
> > >I think NFSv4 must require at the very least that 
> filenames be stored
> > >normalized to some form (we should probably specify if it 
> can be a K
> > >form or not, but D vs. C is not so important) and let clients and
> > >servers deal with that.  This is pretty much what the draft says or
> > >implies.
> > 
> > The Open Source Unix and Linux community have for 
> internationalisation
> > selected UCS normalised using form C and encoded using UTF-8 as
> > the standard to be used on Unix and Linux.
> > The same form and encoding have been selected by W3C for the webb.
> > 
> > So there is a lot of software that does or will handle form 
> C encoded
> > text. From what I have seen there will be very little software
> > that will handle or use normalisation form D, KD or KC.
> > 
> > So NFSv4 should use the same as most do (or will do):  
> normalising form C.
> 
> Normalization form C ALWAYS starts with decomposition, that is,
> normalization form D.
> 
> Any software which can perform normalization form C can also perform
> normalization form D.
> 
> > But we cannot require it in storage, only on the wire.
> 
> In storage we must leave the fileserver free to do as it pleases, but
> for one restriction: it must use a reasonably canonical form 
> in storage,
> otherwise equal filenames with unequal encodings could be allowed.
> 
> I believe that this is what the draft specifies.  An on-the-wire
> normalization form specification would be an optimization, but is not
> absolutely necessary.
> 
> > It is on the wire, that is between systems, that it must be 
> standardised
> > to one simple format. Systems can use any format they want.
> 
> I remain unconvinced.
> 
> > A system which uses normalising form C as its local format 
> for staorage
> > will have a simpler implementation than others, and that will help
> > push system vendors to move to the most common format used.
> > UCS normalising form C is compact and do not destroy any 
> information,
> > so it is best. The K forms destroy data and the D form 
> takes more space and
> > breaks the semantic concept of letter on some letters.
> 
> Normalization form C is limited to composed characters defined in
> Unicode 3.0 (we're past 3.0); as such it really means "composed for
> these characters, decomposed for everything else" - so why not just
> decomposed then?
> 
> I don't thing encoding length is that big a deal, but cycles spent in
> normalization, space dedicated to normalization data 
> structures, *that*
> is a big deal.
> 
> This is why I'm for form D (on the wire as an optimization).
> 
> > Yes, it may result in additional code in servers, but many 
> system can
> > create very efficient code to convert between legacy character set
> > and UCS normalising form C. So I think it will not be that 
> expensive.
> 
> I have no figures close at hand, but I don't think that Unicode
> normalization data structures and code are small (remember, we're
> talking about kernel constraints here, complete with small stacks).
> 
> Nico
> -- 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 14:16:06 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA23312
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 14:16:05 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA12022;
	Mon, 27 Jan 2003 12:16:40 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RJFmVL007413;
	Mon, 27 Jan 2003 11:15:48 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RJFb16027043
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 11:15:37 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RJFbHY027042
	for nfsv4-wg-dist; Mon, 27 Jan 2003 11:15:37 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail2brm.Central.Sun.COM (centralmail2brm.Central.Sun.COM [129.147.62.14])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RJFY16027032
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 11:15:34 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail2brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RJFfln009241;
	Mon, 27 Jan 2003 12:15:41 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0RJE4Qx014974;
	Mon, 27 Jan 2003 11:14:04 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0RJE4Oq014973;
	Mon, 27 Jan 2003 13:14:04 -0600 (CST)
Date: Mon, 27 Jan 2003 13:14:03 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
Cc: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>,
        nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
Message-ID: <20030127131403.C16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A51@SILVER.nane.netapp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <C8CF60CFC4D8A74E9945E32CF096548A072A51@SILVER.nane.netapp.com>; from Dave.Noveck@netapp.com on Mon, Jan 27, 2003 at 09:47:27AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Mon, Jan 27, 2003 at 09:47:27AM -0800, Noveck, Dave wrote:
> 
> > > But we cannot require it in storage, only on the wire.
> >
> > In storage we must leave the fileserver free to do as it pleases, but
> > for one restriction: it must use a reasonably canonical form in storage,
> > otherwise equal filenames with unequal encodings could be allowed.
> 
> How would define "reasonably canonical".  The requirement you are talking
> about is that you cannot have two different files in the same directory
> with canonically equivalent strings as name.  That affects the format
> that will be used in storage but leave it to the implementation to 
> decide exactly how.

Forms D, C, KD and KC are canonical, but the K forms could be said to be
more canonical (visually).

> > but cycles spent in
> > normalization, space dedicated to normalization data structures, *that*
> > is a big deal.
> 
> If it's spent on the client, no problem.  Time spent on the server
> on the other hand is very important :-)

My point exactly.

> > This is why I'm for form D (on the wire as an optimization).
> 
> It seems that form D can be checked by just looking for decomposable
> characters and rejecting if any is found.  On the other hand, it
> seems, that you need some kind of state machine to check form C. 

D also specifies an order for combining marks; this order has to be
checked and enforced.  Even when decomposing as a first step to
re-compose (for form C) this order has to be correct so as to minimize
the tables needed for composition (else they get ridiculously large).

> I think kernel and non-kernel people tend to have different view of 
> what is considered too expensive. 

Absolutely.

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 14:49:24 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA24294
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 14:49:24 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA24956;
	Mon, 27 Jan 2003 12:50:03 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RJmrVL018163;
	Mon, 27 Jan 2003 11:48:53 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RJmf16027323
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 11:48:41 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0RJmf8q027322
	for nfsv4-wg-dist; Mon, 27 Jan 2003 11:48:41 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0RJmd16027315
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 11:48:39 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0RJmmVK001091
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 11:48:48 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA13028
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 12:48:42 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RJmgYW021806
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 11:48:42 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0RJmgLq002542;
	Mon, 27 Jan 2003 11:48:42 -0800 (PST)
Received: from eisler.com (10.58.48.127 [10.58.48.127]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id DQTK57H7; Mon, 27 Jan 2003 11:48:09 -0800
Message-ID: <3E358D11.9040607@eisler.com>
Date: Mon, 27 Jan 2003 11:48:33 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Noveck, Dave" <Dave.Noveck@netapp.com>
CC: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-	05 draft]
References: <C8CF60CFC4D8A74E9945E32CF096548A072A4C@SILVER.nane.netapp.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit

This  is why I deliberately choose a conservative
route:

    - the forms that included domain names followed IETF's standards for
        i81n of DNS domain names.

    - the filename form doesn't  mandate a normalization form
        (Nico and I will have to agree to disagree on this one)
        for case sensistive file name handling

    - the filename forms does mandate KC for case sensistive
        handling, since stringprep listed KC for
        case insensistive handling as a SHOULD. Given that
        DNS domains are case insensitive, it seemed illogical
        to me that an operating environment would use KC for
        case insensitive handling in one namespace (DNS),
        and something else for another (files).

As for symlinks they are pretty much a bag of bits that are
meaningful only to client (and even then not  necessarily)
that created them. I don't think servers should be
modifying them during CREATE or READSYMLINK.


    -mre

Noveck, Dave wrote:

>I'm OK with C *provisionally*.  Let me explain.  I think
>one of the problems that we have had in this area is that
>we are too quick to agree to some of this stuff, before we
>understand the full implications.
>
>I believe this what happened when the stringprep went in.  
>You can argue (endlessly) whether this was a good idea or not
>but I think it is clear that we did not really understand
>the implications.  I think the reason was that most of us
>find this stuff really complicated and unpleasant and we'd
>rather just get it out of the way go on to talk about something 
>else.
>
>Let's not repeat our mistake and settle on something until 
>we have done enough implementation work to be sure that we
>are really OK with the implications in actual filesystems.
>
>So one question that we need to examine is our old friend
>linktext4.  Are we saying that a server MUST reject creation
>of a symlink if it doesn't obey the rules of normalization 
>form C, and if so, with what error?  If not, are we saying
>that we should normalize to form C on readlink.  And of course
>there is the issue of those existing symlinks on existing
>filesystems, even those that are encoded in UTF-8.  If they
>don't match form C, should we fail (what error), normalize to
>C, or just the return the damn data?  Enquiring minds want to
>know.
>
>
>
>-----Original Message-----
>From: Jim Rees [mailto:rees@umich.edu]
>Sent: Monday, January 27, 2003 9:02 AM
>To: nfsv4-wg@sunroof.eng.sun.com
>Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
>rfc3010bis-05 draft] 
>
>
>Form C sounds right to me.  Is there free sample normalization code
>available somewhere?  How about for the other forms?
>





From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 19:47:06 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA01959
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 19:47:06 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA12856;
	Mon, 27 Jan 2003 17:47:49 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0S0l0VK009398;
	Mon, 27 Jan 2003 16:47:00 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0S0km16029246
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 16:46:48 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7/Submit) id h0S0kmsA029245
	for nfsv4-wg-dist; Mon, 27 Jan 2003 16:46:48 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.7+Sun/8.12.7) with ESMTP id h0S0kk16029238
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 16:46:46 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0S0ks7L016556;
	Mon, 27 Jan 2003 17:46:54 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0S0jHQx015166;
	Mon, 27 Jan 2003 16:45:17 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0S0jGum015165;
	Mon, 27 Jan 2003 18:45:16 -0600 (CST)
Date: Mon, 27 Jan 2003 18:45:16 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Mike Eisler <mike@eisler.com>
Cc: "Noveck, Dave" <Dave.Noveck@netapp.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-	05 draft]
Message-ID: <20030127184516.G16765@binky.central.sun.com>
References: <C8CF60CFC4D8A74E9945E32CF096548A072A4C@SILVER.nane.netapp.com> <3E358D11.9040607@eisler.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3E358D11.9040607@eisler.com>; from mike@eisler.com on Mon, Jan 27, 2003 at 11:48:33AM -0800
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Mike,

Clarify this for me (I'm pretty sure of the answer, but perhaps I'm
reading too much into section 11.1.1):

  Must the server prevent equal filenames with unequal encodings from
  being created?

  Is the server allowed or required to normalize, to a form of its
  choosing, filenames referenced by the clients?

Thanks,

Nico

On Mon, Jan 27, 2003 at 11:48:33AM -0800, Mike Eisler wrote:
> This  is why I deliberately choose a conservative
> route:
> 
>     - the forms that included domain names followed IETF's standards for
>         i81n of DNS domain names.
> 
>     - the filename form doesn't  mandate a normalization form
>         (Nico and I will have to agree to disagree on this one)
>         for case sensistive file name handling
> 
>     - the filename forms does mandate KC for case sensistive
>         handling, since stringprep listed KC for
>         case insensistive handling as a SHOULD. Given that
>         DNS domains are case insensitive, it seemed illogical
>         to me that an operating environment would use KC for
>         case insensitive handling in one namespace (DNS),
>         and something else for another (files).
> 
> As for symlinks they are pretty much a bag of bits that are
> meaningful only to client (and even then not  necessarily)
> that created them. I don't think servers should be
> modifying them during CREATE or READSYMLINK.
> 
> 
>     -mre
> 
> Noveck, Dave wrote:
> 
> >I'm OK with C *provisionally*.  Let me explain.  I think
> >one of the problems that we have had in this area is that
> >we are too quick to agree to some of this stuff, before we
> >understand the full implications.
> >
> >I believe this what happened when the stringprep went in.  
> >You can argue (endlessly) whether this was a good idea or not
> >but I think it is clear that we did not really understand
> >the implications.  I think the reason was that most of us
> >find this stuff really complicated and unpleasant and we'd
> >rather just get it out of the way go on to talk about something 
> >else.
> >
> >Let's not repeat our mistake and settle on something until 
> >we have done enough implementation work to be sure that we
> >are really OK with the implications in actual filesystems.
> >
> >So one question that we need to examine is our old friend
> >linktext4.  Are we saying that a server MUST reject creation
> >of a symlink if it doesn't obey the rules of normalization 
> >form C, and if so, with what error?  If not, are we saying
> >that we should normalize to form C on readlink.  And of course
> >there is the issue of those existing symlinks on existing
> >filesystems, even those that are encoded in UTF-8.  If they
> >don't match form C, should we fail (what error), normalize to
> >C, or just the return the damn data?  Enquiring minds want to
> >know.
> >
> >
> >
> >-----Original Message-----
> >From: Jim Rees [mailto:rees@umich.edu]
> >Sent: Monday, January 27, 2003 9:02 AM
> >To: nfsv4-wg@sunroof.eng.sun.com
> >Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4
> >rfc3010bis-05 draft] 
> >
> >
> >Form C sounds right to me.  Is there free sample normalization code
> >available somewhere?  How about for the other forms?
> >
> 
> 
> 


From owner-nfsv4-wg@sunroof.eng.sun.com  Mon Jan 27 20:48:52 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA02704
	for <nfsv4-archive@lists.ietf.org>; Mon, 27 Jan 2003 20:48:51 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA04599;
	Mon, 27 Jan 2003 17:45:46 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0S1ipVL010334;
	Mon, 27 Jan 2003 17:44:51 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0S1inQb029843
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Mon, 27 Jan 2003 17:44:49 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0S1inXb029842
	for nfsv4-wg-dist; Mon, 27 Jan 2003 17:44:49 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0S1iiQb029835
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 17:44:44 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0S1ihVK026658
	for <nfsv4-wg@sunroof.eng.sun.com>; Mon, 27 Jan 2003 17:44:43 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id SAA21850;
	Mon, 27 Jan 2003 18:44:38 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0S1ibYW015422;
	Mon, 27 Jan 2003 17:44:37 -0800 (PST)
Received: from tahoe.corp.netapp.com (tahoe.corp.netapp.com [10.10.22.112])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0S1ibLq014707;
	Mon, 27 Jan 2003 17:44:37 -0800 (PST)
Received: from eisler.com (10.58.48.62 [10.58.48.62]) by tahoe.corp.netapp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id DQTK6MPF; Mon, 27 Jan 2003 17:44:05 -0800
Message-ID: <3E35E07A.8060105@eisler.com>
Date: Mon, 27 Jan 2003 17:44:26 -0800
From: Mike Eisler <mike@eisler.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
X-Accept-Language: en-us
MIME-Version: 1.0
To: Nicolas Williams <Nicolas.Williams@sun.com>
CC: "Noveck, Dave" <Dave.Noveck@netapp.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-	05 draft]
References: <C8CF60CFC4D8A74E9945E32CF096548A072A4C@SILVER.nane.netapp.com> <3E358D11.9040607@eisler.com> <20030127184516.G16765@binky.central.sun.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 7bit


Nicolas Williams wrote:

>Mike,
>
>Clarify this for me (I'm pretty sure of the answer, but perhaps I'm
>reading too much into section 11.1.1):
>
>  Must the server prevent equal filenames with unequal encodings from
>  being created?
>
Yes, under limited circumstances.

The profile for NFSv4 file names refers to RFC3454, and specifically
tables B.1. Any characters the server receives from the client that are in
Table B.1 of RFC3454 MUST be mapped to nothing.  So filenames containing
any of these few dozen or characters have the offending characters
removed before processing LOOJUP, OPEN, CREATE, et. al.

If the NFSv4 server is performing case insensitive matching, then
after processing table B.1 mapping, table B.2 mapping (to map
case) is then done. The results are then normalized with form KC.
(Section 2 of RFC3454 clearly distinguishes mapping steps from
Unicode normalization steps).

If the server is not doing case insensitive matching, then NFSv4 servers
are not required to do normalization.

I could have written the NFSv4 specification to say that no
normalization for case insenstive matching was required, and
thus the mapping phase would use Table B.3. But as
I've written before, it seemed silly that the strings with
domain names would use KC, and other strings would
not use KC (and a different mapping table).

>
>
>  Is the server allowed or required to normalize, to a form of its
>  choosing, filenames referenced by the clients?
>

If the server advertised that it is supporting one of the case insensitive
attributes, it MUST use form KC. If neither of the case
attributes is supported by the server, then normalization is
optional by the implementation and
could be made a SHOULD or MUST in a future
revision of the specification, such as advancement to DRAFT
status, or in a minor revision. Given
that that we are riding RFC3454, the only
normalization form we could use in the future is KC.
See section 4 of RFC3454. One excerpt is
constructed in an interesting way. After
previously stating that the choices for protocols
are no normalization or use KC,
the section says:

   There is a third form of normalization, Unicode normalization with
   form C.  If a profile is going to use a Unicode normalization, it
   MUST use Unicode normalization form KC.

It is pretty clear to me that form C is not
permissable for any IETF protocol that
makes a normative reference to RFC3454.
I infered from IESG's comments on the
NFSv4 specification ( before it approved
the version that refered to RFC3454)
that compliance with RFC3454
was not an option for us. The whole discussion
about using form C or not is seems
a like the earlier discussions as to whether to use
UDP or not. It is irrelevant because of the direction
IESG has mandated.

    -mre




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 09:30:09 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA26581
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 09:30:08 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA22816;
	Tue, 28 Jan 2003 07:30:46 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SETqVL016519;
	Tue, 28 Jan 2003 06:29:52 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SETcQb003608
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 06:29:38 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SETbmM003607
	for nfsv4-wg-dist; Tue, 28 Jan 2003 06:29:37 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SETaQb003600
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 06:29:36 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SEThVK016116
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 06:29:43 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA09864;
	Tue, 28 Jan 2003 07:29:38 -0700 (MST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0SETaYW011140;
	Tue, 28 Jan 2003 06:29:37 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0SETaLr006651;
	Tue, 28 Jan 2003 06:29:36 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0ARG7>; Tue, 28 Jan 2003 06:29:35 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A54@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Mike Eisler'" <mike@eisler.com>,
        Nicolas Williams
	 <Nicolas.Williams@sun.com>
Cc: "Noveck, Dave" <Dave.Noveck@netapp.com>, nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
		05 draft]
Date: Tue, 28 Jan 2003 06:29:24 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Mike Eisler wrote: 
> If the server advertised that it is supporting one of the case insensitive
> attributes, it MUST use form KC. If neither of the case
> attributes is supported by the server, then normalization is
> optional by the implementation and
> could be made a SHOULD or MUST in a future
> revision of the specification, such as advancement to DRAFT
> status, or in a minor revision. Given
> that that we are riding RFC3454, the only
> normalization form we could use in the future is KC.

Here's what the unicode technical report says about form KC
(and KD):

> Normalization forms KC and KD must not be blindly applied to arbitrary 
> text. Since they erase many formatting distinctions, they will prevent 
> round-trip conversion to and from many legacy character sets, and unless 
> supplanted by formatting markup, may remove distinctions that are important
> to the semantics of the text. The best way to think of these normalization
> forms is like uppercase or lowercase mappings: useful in certain contexts
> for identifying core meanings, but also performing modifications to the 
> text that may not always be appropriate. They can be applied more freely
> to domains with restricted character sets, such as in Annex 7: Programming
> Language Identifiers.

My impression is that filenames in v4 are much more like "arbitrary text"
and don't fit the restricted model that would be implied by the Programming 
Language Identifer analogy.

I understand Mike's point that we don't have free choice in this area.

The basic thrust of the protocol with regard to naming has been that this
is pretty much part of the filesystem semantics (the filesystem may not 
support the full character range, may have other restrictions on what
names are valid, etc.).  With the stringprep stuff we deviated from that
model, and at least in the case of case-insensitive mapping, imposed very
detailed requirements on the filesystem.  It looks like we didn't have a 
choice.

Most of us are going to be doing case-sensitive matching where I think
the basic v4 model remains.  Unless forced to do so, I would hope that
we would not go down the path of imposing detailed requirements on the
naming architecture of the filesystem, without a clear understanding of
the consequences.  I'm pretty sure I don't have such an understanding
now, and it's not clear to me that I will ever have such an understanding.

As the protocol stands now, I believe filesystems (if case-sensitive
matching is in effect) MAY map canonically equivalent filename strings
to the same file.  They might even do so for compatibility equivalent
strings.  If it doesn't impose a normalization form (except internally),
then we don't run afoul of the IESG.  At some point, we could have 
enough implementation experience to make a reasonable decision about
what to do with regard to this area. 

 
 


From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 11:21:04 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA29693
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 11:21:03 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA12644;
	Tue, 28 Jan 2003 09:22:08 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SGKuVL009950;
	Tue, 28 Jan 2003 08:20:56 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SGKkQb004058
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:20:46 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SGKkB1004057
	for nfsv4-wg-dist; Tue, 28 Jan 2003 08:20:46 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SGKiQb004050
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:20:44 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SGKpVK011875
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:20:51 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA27708
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 09:20:45 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h0SGKan25636; Tue, 28 Jan 2003 17:20:36 +0100 (MET)
Message-Id: <200301281620.h0SGKan25636@malmo.trab.se>
Date: Tue, 28 Jan 2003 17:23:22 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft] 
To: rees@umich.edu
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: 9zmSmGWGuGuzwcJ4FGP9nQ==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>Form C sounds right to me.  Is there free sample normalization code
>available somewhere?  How about for the other forms?

Yes. I have not checked where the best are. There is code for Perl (in CPAN).
IBM has a big library for handling Unicode.
And I am sure you can find some more by a quick search through a
search engine, on the web.

   Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 11:24:25 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA29779
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 11:24:23 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA01020;
	Tue, 28 Jan 2003 09:25:30 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SGOJVK012820;
	Tue, 28 Jan 2003 08:24:19 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SGO8Qb004071
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:24:08 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SGO8sa004070
	for nfsv4-wg-dist; Tue, 28 Jan 2003 08:24:08 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SGO6Qb004063
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:24:06 -0800 (PST)
Received: from kathmandu.sun.com (kathmandu.Central.Sun.COM [129.147.5.36])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SGODVK012763
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:24:13 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA13949
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 09:24:07 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h0SGO4n25802; Tue, 28 Jan 2003 17:24:04 +0100 (MET)
Message-Id: <200301281624.h0SGO4n25802@malmo.trab.se>
Date: Tue, 28 Jan 2003 17:26:49 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
To: agy@netapp.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: xyjgJ9vvOGBaB1Y1VvD47g==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>I'm confused.  Is Dan talking about filenames,
>or about the actual contents of files?
>

Filenames. Even though it would have been very nice to have
NFSv4 translate contents of text files (which I have helped implement
in the CAP software for AppleTalk file sharing) I think it is
outside the scope of NFSv4.

   Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 11:51:42 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA01019
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 11:51:41 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA22201;
	Tue, 28 Jan 2003 09:53:02 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SGqAVL017733;
	Tue, 28 Jan 2003 08:52:10 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SGpxQb004198
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:51:59 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SGpx5U004197
	for nfsv4-wg-dist; Tue, 28 Jan 2003 08:51:59 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SGpvQb004190
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:51:58 -0800 (PST)
Received: from pheriche.sun.com (pheriche.Central.Sun.COM [129.147.5.34])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SGq5VL017678
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 08:52:05 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA29305;
	Tue, 28 Jan 2003 09:51:59 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h0SGpqn28528; Tue, 28 Jan 2003 17:51:52 +0100 (MET)
Message-Id: <200301281651.h0SGpqn28528@malmo.trab.se>
Date: Tue, 28 Jan 2003 17:54:37 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: Nicolas.Williams@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: /jvHVLi0jYOp2UbijQ8tVw==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>Normalization form C ALWAYS starts with decomposition, that is,
>normalization form D.
>
>Any software which can perform normalization form C can also perform
>normalization form D.

That depends on what you normalise from. If you start with any of the
ISO 8859-1 character sets then converting and normalising into
UCS form C is easy done without any knowledge on form D.

As a very large set of character sets in use today are, in Unicode
concepts "precomposed", translation to UCS form C can be done
without any form D normalisation.

If you from the beginning start by defining that the final result
is UCS form C, conversion/input/normalisation can very often
easily be done very directely. No need to being able to handle
normalisation D.

>
>> But we cannot require it in storage, only on the wire.
>
>In storage we must leave the fileserver free to do as it pleases, but
>for one restriction: it must use a reasonably canonical form in storage,
>otherwise equal filenames with unequal encodings could be allowed.
>
>I believe that this is what the draft specifies.  An on-the-wire
>normalization form specification would be an optimization, but is not
>absolutely necessary.

OK. What will happen if we do not require it?
I assume the same as that which happens now with NFSv3.
I have a user working on a Mac that have mounted a file system
through NFSv3 from our Unix machine. When a file name is created
on the Mac it is written as UTF-8 encoded names of some form of Unicode.
When I look at the same file from my Unix machine the name is a mess.
All my software on Unix uses ISO 8859-1.

If instead the Mac NFS client did know that ISO 8859-1 was the standard
to be used, it could have translated the names when sending
to the Unix system and translated it back when reading from the Unix
host.


>Normalization form C is limited to composed characters defined in
>Unicode 3.0 (we're past 3.0); as such it really means "composed for
>these characters, decomposed for everything else" - so why not just
>decomposed then?

Normalisation form C is for the current version of Unicode (3.2).
Form C have most characters that have been "precomposed" before in
that form (in legacy character sets). People are used to working with
precomposed characters.

>
>I don't thing encoding length is that big a deal, but cycles spent in
>normalization, space dedicated to normalization data structures, *that*
>is a big deal.
>
>This is why I'm for form D (on the wire as an optimization).

Why would form D result in smaller tables?
Most text today is already in precomposed form.

All programs I have (and all open source I have fetched) handles
text using precomposed characters.

>
>> Yes, it may result in additional code in servers, but many system can
>> create very efficient code to convert between legacy character set
>> and UCS normalising form C. So I think it will not be that expensive.
>
>I have no figures close at hand, but I don't think that Unicode
>normalization data structures and code are small (remember, we're
>talking about kernel constraints here, complete with small stacks).

I cannot say how small they can be, but I think they need not be that
big.

But if we do like is intended in web and DNS to have the normalisation
done by sender, the server can assume that incoming data on the wire
is in the correct format and need not do any normalisation or
checking on it. You can assume it is correct, it not, server routines
to compare filenames (case sensitive or case insensitive) will fail
to match.

But you always still have to handle the encoding used in the file system
on the server. If the file server uses EBCDIC in the file system,
the NFS server have to convert between EBCDIC and UCS form C.
I can see no way to avoid that (except doing the bad solution
in DNS were everything is encoded using ASCII characters forcing every
application handling file names on the system to be rewritten).
And as you have to do that, the simplest is to have only one
standard character set and form to convert to/from.

   Dan




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 12:16:02 2003
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA01468
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 12:16:01 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id JAA19866;
	Tue, 28 Jan 2003 09:12:51 -0800 (PST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SHBIVL022908;
	Tue, 28 Jan 2003 09:11:18 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SHB7Qb004293
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 09:11:07 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SHB7Gc004292
	for nfsv4-wg-dist; Tue, 28 Jan 2003 09:11:07 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SHB5Qb004285
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 09:11:05 -0800 (PST)
Received: from lukla.Sun.COM (lukla.Central.Sun.COM [129.147.5.31])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SHB9VL022832
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 09:11:10 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id KAA03147
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 10:11:02 -0700 (MST)
Received: from terra (terra.malmo.kicore.net [217.212.0.22]) by malmo.trab.se (8.10.1/TRAB-primary-2) with SMTP id h0SHAbn00166; Tue, 28 Jan 2003 18:10:37 +0100 (MET)
Message-Id: <200301281710.h0SHAbn00166@malmo.trab.se>
Date: Tue, 28 Jan 2003 18:13:23 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft]
To: mike@eisler.com
Cc: Dave.Noveck@netapp.com, nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=ISO-8859-1
Content-MD5: L5hbr8VAauHGeoFxTKuBYA==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5 SunOS 5.9 sun4u sparc 
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by sunroof.eng.sun.com id h0SHB5Qb004286
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>
Content-Transfer-Encoding: 8bit

>It is pretty clear to me that form C is not
>permissable for any IETF protocol that
>makes a normative reference to RFC3454.
>I infered from IESG's comments on the
>NFSv4 specification ( before it approved
>the version that refered to RFC3454)
>that compliance with RFC3454
>was not an option for us. The whole discussion
>about using form C or not is seems
>a like the earlier discussions as to whether to use
>UDP or not. It is irrelevant because of the direction
>IESG has mandated.

Why are you following RFC 3454?
It is created to support encoding domain names into ASCII to allow
legacy systems handle non-ASCII domain names.

It is not good for everything.

Form C is good because it preserves all sematics on the text.
If somebody creates a file name "aČ" (a followed by superscript 2),
is that file names going to match file name "a2"?
That is what happens if you use form KC.
And should you be allowed to have a file named "aČ" (a followed by
superscript 2)? If you use KC as format for storage you can only
store a file named "a2" (so the user creating the file as "aČ"
will when listing the directory se that it has changed name to "a2").
Names are very important to people. Maybe we should also
normalise all letters to lower case?

While RFC 3454 have some good points about forbidden characters (those
mapped to nothing), normalisation form C is much more suitable for
file names than form KC.
When matching names for equality, you might use KC but as that
requires internal tables in the kernel and CPU power. 
To preserve CPU power, you could just match those characters
that have a one to one code point match. That would be enough for
most and work well.
Also doing case insensitive matching you can choose to use only
the one to one letter matching instead of also including the
one to many letters matching that is also available. That would also
be possible with less CPU and smaller tables, and be fine for most
people.

RFC 3454 "stringprep" is fine for the attributes in the NFSv4 protocol,
not for handling file names. 

   Dan




From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 13:38:31 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA03306
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 13:38:29 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA18599;
	Tue, 28 Jan 2003 11:39:41 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SIcRVL021087;
	Tue, 28 Jan 2003 10:38:27 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SIcHQb004732
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 10:38:17 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SIcHBK004731
	for nfsv4-wg-dist; Tue, 28 Jan 2003 10:38:17 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SIcFQb004724
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 10:38:15 -0800 (PST)
Received: from nwkea-mail-1.sun.com ([192.18.42.13])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SIcMVK027728
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 10:38:23 -0800 (PST)
Received: from mx01.netapp.com (mx01.netapp.com [198.95.226.53])
	by nwkea-mail-1.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA01078
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 10:38:17 -0800 (PST)
Received: from frejya.corp.netapp.com (frejya [10.10.20.91])
	by mx01.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0SIUjYW027533;
	Tue, 28 Jan 2003 10:30:45 -0800 (PST)
Received: from ussvlexc01.corp.netapp.com (ussvlexc01.corp.netapp.com [10.10.22.169])
	by frejya.corp.netapp.com (8.12.6/8.12.6/NTAP-1.4) with ESMTP id h0SIUiLq020750;
	Tue, 28 Jan 2003 10:30:44 -0800 (PST)
Received: by ussvlexc01.corp.netapp.com with Internet Mail Service (5.5.2653.19)
	id <CTK0A49J>; Tue, 28 Jan 2003 10:30:44 -0800
Message-ID: <C8CF60CFC4D8A74E9945E32CF096548A072A55@SILVER.nane.netapp.com>
From: "Noveck, Dave" <Dave.Noveck@netapp.com>
To: "'Dan Oscarsson'" <Dan.Oscarsson@kiconsulting.se>, mike@eisler.com
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: RE: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-
	 05 draft]
Date: Tue, 28 Jan 2003 10:30:41 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

Dan Oscarsson wrote:
> RFC 3454 "stringprep" is fine for the attributes in the NFSv4 protocol,
> not for handling file names. 

Attributes?  All the names of the mandatory and recommended attributes in 
v4 are pure ascii so I don't see where all the stringprep stuff would have
any applicability at all.  I guess there is no absolute guarantee that 
would stay true in future minor versions but that's a really good bet.

Or are you talking about named attributes?  These are essentially filenames
in a special directory so if stringprep isn't good for filenames then
why would it be good for named attributes?

 


From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 14:03:12 2003
Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA03855
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 14:03:11 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA01870;
	Tue, 28 Jan 2003 12:04:10 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SJ3TVL000086;
	Tue, 28 Jan 2003 11:03:29 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SJ3JQb004818
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 11:03:19 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SJ3JJX004817
	for nfsv4-wg-dist; Tue, 28 Jan 2003 11:03:19 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail2sun.Eng.Sun.COM (engmail2sun [129.144.134.19])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SJ3GQb004810
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 11:03:16 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SJ3NVL000018
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 11:03:24 -0800 (PST)
Received: from citi.umich.edu (citi.umich.edu [141.211.92.141])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA27945
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 12:03:18 -0700 (MST)
Received: from citi.umich.edu (dsl093-001-248.det1.dsl.speakeasy.net [66.93.1.248])
	by citi.umich.edu (Postfix) with ESMTP id 59A76207CE
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 14:03:17 -0500 (EST)
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis- 05 draft] 
To: nfsv4-wg@sunroof.eng.sun.com
From: Jim Rees <rees@umich.edu>
In-Reply-To: Dan Oscarsson, Tue, 28 Jan 2003 17:26:49 +0100
Date: Tue, 28 Jan 2003 14:03:16 -0500
Message-Id: <20030128190317.59A76207CE@citi.umich.edu>
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

It would not have been nice at all to have NFSv4 translate contents of text
files.  In fact, this would have made it useless to unix clients.


From owner-nfsv4-wg@sunroof.eng.sun.com  Tue Jan 28 14:34:54 2003
Received: from patan.sun.com (patan.Sun.COM [192.18.98.43])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA04698
	for <nfsv4-archive@lists.ietf.org>; Tue, 28 Jan 2003 14:34:54 -0500 (EST)
Received: from engmail1mpk.Eng.Sun.COM ([129.146.1.45])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id MAA20068;
	Tue, 28 Jan 2003 12:35:46 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SJYtVK017057;
	Tue, 28 Jan 2003 11:34:55 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SJYjQb005177
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Tue, 28 Jan 2003 11:34:45 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0SJYjDM005176
	for nfsv4-wg-dist; Tue, 28 Jan 2003 11:34:45 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0SJYhQb005169
	for <nfsv4-wg@sunroof.eng.sun.com>; Tue, 28 Jan 2003 11:34:43 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0SJYo7L012537;
	Tue, 28 Jan 2003 12:34:50 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0SJXCQx015676;
	Tue, 28 Jan 2003 11:33:12 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0SJXCBO015675;
	Tue, 28 Jan 2003 13:33:12 -0600 (CST)
Date: Tue, 28 Jan 2003 13:33:12 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030128133311.J16765@binky.central.sun.com>
References: <200301281651.h0SGpqn28528@malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200301281651.h0SGpqn28528@malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Tue, Jan 28, 2003 at 05:54:37PM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Tue, Jan 28, 2003 at 05:54:37PM +0100, Dan Oscarsson wrote:
> >Normalization form C ALWAYS starts with decomposition, that is,
> >normalization form D.
> >
> >Any software which can perform normalization form C can also perform
> >normalization form D.
> 
> That depends on what you normalise from. If you start with any of the
> ISO 8859-1 character sets then converting and normalising into
> UCS form C is easy done without any knowledge on form D.

That's codeset conversion.  In the NFSv4 case we're talking about the
client sending unnormalized UTF-8 (therefore Unicode) filename strings.
The server has to then normalize to a canonical form (to prevent equal
name / unequal encoding conflicts).  This process ALWAYS starts with
normalization to form D; end of story.

It may well be that the majority of clients are doing early
normalization (possibly by converting from other codesets straight to
UTF-8, Unicode form C.  This may be and, if so, means that one form may
be better than another because it is most commonly used.  But this is
not relevant to the above statememnt that you took issue with :)

> >I believe that this is what the draft specifies.  An on-the-wire
> >normalization form specification would be an optimization, but is not
> >absolutely necessary.
> 
> OK. What will happen if we do not require it?

The server has to normalize the client's filenames to avoid equal name /
unequal encoding conflicts.

If it were required the server would only have to check that clients
send normalized filenames and return some error if they don't.

In order words: nothing.  I.e., NFSv4 is NOT broken wrt i18n by not
specifying an on-the-wire normalization form for filenames.  I've said
this now more than once now - do you take issue with this statement?

> I assume the same as that which happens now with NFSv3.

Oh no, not at all.  NFSv4 uses UTF-8, and therefore Unicode, on the
wire for filenames - not so for NFSv3.  Big difference.

> I have a user working on a Mac that have mounted a file system
> through NFSv3 from our Unix machine. When a file name is created
> on the Mac it is written as UTF-8 encoded names of some form of Unicode.
> When I look at the same file from my Unix machine the name is a mess.
> All my software on Unix uses ISO 8859-1.

See above.  NFSv4 clients are responsbile for any conversions to/from
the users' locales' codesets.

It seems clear to me that you have not read the NFSv4 draft and thought
this through carefully.

> >Normalization form C is limited to composed characters defined in
> >Unicode 3.0 (we're past 3.0); as such it really means "composed for
> >these characters, decomposed for everything else" - so why not just
> >decomposed then?
> 
> Normalisation form C is for the current version of Unicode (3.2).
> Form C have most characters that have been "precomposed" before in
> that form (in legacy character sets). People are used to working with
> precomposed characters.

No, normalization form C is limited to using composed characters defined
in Unicode 3.0.  I'll search for a reference tonight and post it
tomorrow, but I'm quite sure of this.

> >
> >I don't thing encoding length is that big a deal, but cycles spent in
> >normalization, space dedicated to normalization data structures, *that*
> >is a big deal.
> >
> >This is why I'm for form D (on the wire as an optimization).
> 
> Why would form D result in smaller tables?
> Most text today is already in precomposed form.

See way above.  We're talking about the server appying a normalization
form to UTF-8 encoded filenames sent by the client; we're NOT talking
about codeset conversion.  Normalization to form D unquestionably
requires less data than normalization to form C.

[...]
> But if we do like is intended in web and DNS to have the normalisation
> done by sender, the server can assume that incoming data on the wire
> is in the correct format and need not do any normalisation or
> checking on it. You can assume it is correct, it not, server routines
> to compare filenames (case sensitive or case insensitive) will fail
> to match.

This is true, we could do this, but I would rather not trust that all
clients will be well behaved, particularly considering that the current
NFSv4 draft does not specify a normalization that clients MUST use for
case-sensitive filenames.

> But you always still have to handle the encoding used in the file system
> on the server. If the file server uses EBCDIC in the file system,
> the NFS server have to convert between EBCDIC and UCS form C.

This is an implementation-specific issue and has little or nothing to do
with the NFSv4 spec.  Legacy filesystems (as has been pointed out in
this thread) will be particularly problematic because a mixture of
codesets can and is used on legacy filesystems to begin with.  In fact,
the legacy issue is present even outside the context of NFSv4.

> I can see no way to avoid that (except doing the bad solution
> in DNS were everything is encoded using ASCII characters forcing every
> application handling file names on the system to be rewritten).
> And as you have to do that, the simplest is to have only one
> standard character set and form to convert to/from.

The solution is to use only UTF-8 on disk for filenames for all new
filesystems and give users conversion tools for legacy systems.

Nico
-- 


From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan 29 05:03:56 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA14605
	for <nfsv4-archive@lists.ietf.org>; Wed, 29 Jan 2003 05:03:55 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA03489;
	Wed, 29 Jan 2003 03:04:12 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0TA3JVL022635;
	Wed, 29 Jan 2003 02:03:19 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0TA37Qb008114
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 29 Jan 2003 02:03:07 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0TA37L4008113
	for nfsv4-wg-dist; Wed, 29 Jan 2003 02:03:07 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from engmail1mpk.Eng.Sun.COM (engmail1mpk [129.146.1.45])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0TA35Qb008106
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 29 Jan 2003 02:03:05 -0800 (PST)
Received: from patan.sun.com (patan.Central.Sun.COM [129.147.5.43])
	by engmail1mpk.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0TA3EVK013500
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 29 Jan 2003 02:03:14 -0800 (PST)
Received: from malmo.trab.se (malmo.kicore.net [131.115.48.10])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA13260;
	Wed, 29 Jan 2003 03:03:07 -0700 (MST)
Received: from valinor.malmo.trab.se (valinor [131.115.48.20]) by malmo.trab.se (8.10.1/TRAB-primary-2) with ESMTP id h0TA35n10844; Wed, 29 Jan 2003 11:03:06 +0100 (MET)
Received: from valinor by valinor.malmo.trab.se (8.12.5+Sun/TRM-1-KLIENT); Wed, 29 Jan 2003 11:03:05 +0100 (CET) (MET)
Message-Id: <200301291003.h0TA35AT016339@valinor.malmo.trab.se>
Date: Wed, 29 Jan 2003 11:03:05 +0100 (CET)
From: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Reply-To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
To: Nicolas.Williams@sun.com
Cc: nfsv4-wg@sunroof.eng.sun.com
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: YklY67mY57WIVplQDYiPFA==
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5.3 SunOS 5.9 sun4u sparc 
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

>> That depends on what you normalise from. If you start with any of the
>> ISO 8859-1 character sets then converting and normalising into
>> UCS form C is easy done without any knowledge on form D.
>
>That's codeset conversion.  In the NFSv4 case we're talking about the
>client sending unnormalized UTF-8 (therefore Unicode) filename strings.
>The server has to then normalize to a canonical form (to prevent equal
>name / unequal encoding conflicts).  This process ALWAYS starts with
>normalization to form D; end of story.

Even so, when doing normalisation to C I expect you can combine
the normalisation D part as a part in normalisation to C that do
not give any (or very little) addition. I doubt that normalisation
form C need to take more data than form D. Form D can take a lot
more data space from the kernel so it is not suitable if
we have kernels with little available memory to work in.



>> >I believe that this is what the draft specifies.  An on-the-wire
>> >normalization form specification would be an optimization, but is not
>> >absolutely necessary.
>> 
>> OK. What will happen if we do not require it?
>
>The server has to normalize the client's filenames to avoid equal name /
>unequal encoding conflicts.
>
>If it were required the server would only have to check that clients
>send normalized filenames and return some error if they don't.
>
>In order words: nothing.  I.e., NFSv4 is NOT broken wrt i18n by not
>specifying an on-the-wire normalization form for filenames.  I've said
>this now more than once now - do you take issue with this statement?

It is not broken, but it will make it a lot more difficult to
implement and increase possible failure. It will result in big
tables for normalisation everywhere, as the format will never
match a systems internal needs (except those using unnormalised
data which must be very rare). Optimising will be difficult.
The end mounting a file system from a server will both need code
to handle normalisation and conversion to local character set.


>> I assume the same as that which happens now with NFSv3.
>
>Oh no, not at all.  NFSv4 uses UTF-8, and therefore Unicode, on the
>wire for filenames - not so for NFSv3.  Big difference.

I would not call it big. I get problems with NFSv3 due to not having a
standardised character set and encoding.
With NFSv4, if the mounted file system do not normalise and convert into
my legacy character set, it will be just as bad.
Even if I switched to UTF-8 as my local character set it will fail, if
the UTF-8 encoded text is not normalised form C. No other form
is acceptible to use due to things like invalid semantics, to
much data space and complex and CPU consuming handling of that format.

You cannot expect systems to switch to unnormalised UTF-8 in their
file system to help NFSv4. It will break most applications.

Just like all other protocols that communicate between systems, NFS
need to convert between local and on the wire format at the end points
of the communication link. And looking at history and common sense,
allowing more than one possible format on the wire results in
failed communication. I can create compact and fast conversion and handling
for one format. I do not have time to write code to handle everything.

(I tried to find out what CIFS have. From what I could find out
Microsoft uses UCS-2/UTF-16 with precomposed characters - that is closest
to form C).


>> Normalisation form C is for the current version of Unicode (3.2).
>> Form C have most characters that have been "precomposed" before in
>> that form (in legacy character sets). People are used to working with
>> precomposed characters.
>
>No, normalization form C is limited to using composed characters defined
>in Unicode 3.0.  I'll search for a reference tonight and post it
>tomorrow, but I'm quite sure of this.

Normalisation form C is driven by the tables that Unicode define for each
version. So it automatically follows each version.

-
So I still think NFSv4 will be much better and easier to implement
by defining that all UCS data should be in form C. I am sure I will
get interoperability problems otherwise.

   Dan



From owner-nfsv4-wg@sunroof.eng.sun.com  Wed Jan 29 13:22:49 2003
Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA25296
	for <nfsv4-archive@lists.ietf.org>; Wed, 29 Jan 2003 13:22:49 -0500 (EST)
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19])
	by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id LAA10886;
	Wed, 29 Jan 2003 11:23:15 -0700 (MST)
Received: from sunroof.eng.sun.com (sunroof.SFBay.Sun.COM [129.146.168.88])
	by engmail2sun.Eng.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0TIMMVL004179;
	Wed, 29 Jan 2003 10:22:22 -0800 (PST)
Received: from sunroof.eng.sun.com (localhost [127.0.0.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0TIM9Qb009946
	for <nfsv4-wg-dist@sunroof.eng.sun.com>; Wed, 29 Jan 2003 10:22:09 -0800 (PST)
Received: (from majordomo@localhost)
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8/Submit) id h0TIM9Go009945
	for nfsv4-wg-dist; Wed, 29 Jan 2003 10:22:09 -0800 (PST)
X-Authentication-Warning: sunroof.eng.sun.com: majordomo set sender to owner-nfsv4-wg@sunroof.eng.sun.com using -f
Received: from centralmail1brm.Central.Sun.COM (centralmail1brm.Central.Sun.COM [129.147.62.1])
	by sunroof.eng.sun.com (8.12.8+Sun/8.12.8) with ESMTP id h0TIM7Qb009937
	for <nfsv4-wg@sunroof.eng.sun.com>; Wed, 29 Jan 2003 10:22:07 -0800 (PST)
Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104])
	by centralmail1brm.Central.Sun.COM (8.12.2+Sun/8.12.2/ENSMAIL,v2.2) with ESMTP id h0TIMG7L013990;
	Wed, 29 Jan 2003 11:22:16 -0700 (MST)
Received: from binky.central.sun.com (localhost [127.0.0.1])
	by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h0TIKcQx016797;
	Wed, 29 Jan 2003 10:20:38 -0800 (PST)
Received: (from nw141292@localhost)
	by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h0TIKbUJ016796;
	Wed, 29 Jan 2003 12:20:37 -0600 (CST)
Date: Wed, 29 Jan 2003 12:20:37 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Dan Oscarsson <Dan.Oscarsson@kiconsulting.se>
Cc: nfsv4-wg@sunroof.eng.sun.com
Subject: Re: [Dan.Oscarsson@kiconsulting.se: Comments on NFSv4 rfc3010bis-05 draft]
Message-ID: <20030129122037.B16765@binky.central.sun.com>
References: <200301291003.h0TA35AT016339@valinor.malmo.trab.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200301291003.h0TA35AT016339@valinor.malmo.trab.se>; from Dan.Oscarsson@kiconsulting.se on Wed, Jan 29, 2003 at 11:03:05AM +0100
Sender: owner-nfsv4-wg@sunroof.eng.sun.com
Precedence: bulk
List-Archive: </var/mail/nfsv4-wg.archive/>
List-Owner: <mailto:owner-nfsv4-wg@sunroof.eng.sun.com>
List-Subscribe: <mailto:majordomo@sunroof.eng.sun.com?body=subscribe>
List-Unsubscribe: <mailto:majordomo@sunroof.eng.sun.com?body=unsubscribe>

On Wed, Jan 29, 2003 at 11:03:05AM +0100, Dan Oscarsson wrote:
> >> That depends on what you normalise from. If you start with any of the
> >> ISO 8859-1 character sets then converting and normalising into
> >> UCS form C is easy done without any knowledge on form D.
> >
> >That's codeset conversion.  In the NFSv4 case we're talking about the
> >client sending unnormalized UTF-8 (therefore Unicode) filename strings.
> >The server has to then normalize to a canonical form (to prevent equal
> >name / unequal encoding conflicts).  This process ALWAYS starts with
> >normalization to form D; end of story.
> 
> Even so, when doing normalisation to C I expect you can combine
> the normalisation D part as a part in normalisation to C that do
> not give any (or very little) addition. I doubt that normalisation
> form C need to take more data than form D. Form D can take a lot
> more data space from the kernel so it is not suitable if
> we have kernels with little available memory to work in.

Normalization form D is the first step in normalizing to form C.  The
reason is that to map decomposed characters to composed ones one needs
to look up {composed char, combining mark} tuples in a table, but to
keep the number of entries in the table down (there can be many legal,
composeable combinations) one must first make sure that the input
consists of decomposed characters with combining marks ordered correctly
(the order of combining marks is not important outside this context).

So, normalization form C requires composition tables which are not
required for normalization form D and requires normalizing form D as the
first step to nomalizing to form C.  So normalization form C requires
more infrastructure (and tables - data) than form D.  My source: chapter
14, page 569 of "Unicode Demystified" (I highly recommend this book).


> >In order words: nothing.  I.e., NFSv4 is NOT broken wrt i18n by not
> >specifying an on-the-wire normalization form for filenames.  I've said
> >this now more than once now - do you take issue with this statement?
> 
> It is not broken, but it will make it a lot more difficult to
> implement and increase possible failure. It will result in big
> tables for normalisation everywhere, as the format will never
> match a systems internal needs (except those using unnormalised
> data which must be very rare). Optimising will be difficult.
> The end mounting a file system from a server will both need code
> to handle normalisation and conversion to local character set.

Given Mike Eisler's answers to my questions yesterday, I think we could
get by with a future recommendation to clients that they use a given
normalization form, but otherwise do no normalization or checking at the
server, which would allow euqal name / unequal encoding filenames, but,
if all clients are well behaved, then it won't happen and all would be
happy (my security instincts say that nonetheless the server should
enforce a normalization form, but I can't yet find a convincing security
argument).

> >> I assume the same as that which happens now with NFSv3.
> >
> >Oh no, not at all.  NFSv4 uses UTF-8, and therefore Unicode, on the
> >wire for filenames - not so for NFSv3.  Big difference.
> 
> I would not call it big. I get problems with NFSv3 due to not having a
> standardised character set and encoding.
> With NFSv4, if the mounted file system do not normalise and convert into
> my legacy character set, it will be just as bad.

Legacy is another issue.  It is an issue regardless of whether you use
NFSv4, unless you convert your filesystems and somehow determine the
codeset of non-ASCII filenames.

> Even if I switched to UTF-8 as my local character set it will fail, if
> the UTF-8 encoded text is not normalised form C. No other form
> is acceptible to use due to things like invalid semantics, to
> much data space and complex and CPU consuming handling of that format.

User-level code will have to be able to cope with unnormalized Unicode
text [by normalizing as necessary], with or w/o NFSv4.

> You cannot expect systems to switch to unnormalised UTF-8 in their
> file system to help NFSv4. It will break most applications.

The C runtime environment will have to do as much normalization as is
necessary under the hood, yes.

> >No, normalization form C is limited to using composed characters defined
> >in Unicode 3.0.  I'll search for a reference tonight and post it
> >tomorrow, but I'm quite sure of this.
> 
> Normalisation form C is driven by the tables that Unicode define for each
> version. So it automatically follows each version.

Pages 572 and 573 of the same book mentioned above make it very clear to
me that composites added after Unicode 3.0 are disalloed in text
normalized to form C.  The book references Unicode Annex #15.

Cheers,

Nico
-- 


