Re: [Ldap-dir] Concerns about draft-ietf-nfsv4-federated-fs-protocol

Nicolas Williams <Nicolas.Williams@sun.com> Fri, 11 September 2009 17:13 UTC

Return-Path: <Nicolas.Williams@sun.com>
X-Original-To: ldap-dir@core3.amsl.com
Delivered-To: ldap-dir@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E9B503A6892 for <ldap-dir@core3.amsl.com>; Fri, 11 Sep 2009 10:13:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.845
X-Spam-Level:
X-Spam-Status: No, score=-5.845 tagged_above=-999 required=5 tests=[AWL=0.201, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fmDZkNDdqp3C for <ldap-dir@core3.amsl.com>; Fri, 11 Sep 2009 10:13:52 -0700 (PDT)
Received: from brmea-mail-1.sun.com (brmea-mail-1.Sun.COM [192.18.98.31]) by core3.amsl.com (Postfix) with ESMTP id 4F4A528C1E7 for <ldap-dir@ietf.org>; Fri, 11 Sep 2009 10:13:50 -0700 (PDT)
Received: from dm-central-01.central.sun.com ([129.147.62.4]) by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n8BHERYm018954 for <ldap-dir@ietf.org>; Fri, 11 Sep 2009 17:14:27 GMT
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by dm-central-01.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL, v2.2) with ESMTP id n8BHERZI015784 for <ldap-dir@ietf.org>; Fri, 11 Sep 2009 11:14:27 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n8BH3SRj014992; Fri, 11 Sep 2009 12:03:28 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n8BH3QD9014991; Fri, 11 Sep 2009 12:03:26 -0500 (CDT)
X-Authentication-Warning: binky.Central.Sun.COM: nw141292 set sender to Nicolas.Williams@sun.com using -f
Date: Fri, 11 Sep 2009 12:03:26 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Leif Johansson <leifj@it.su.se>
Message-ID: <20090911170326.GK1033@Sun.COM>
References: <20090909160952.GV1048@Sun.COM> <200909101758.10049.leifj@it.su.se> <20090910165239.GN1033@Sun.COM> <200909111001.46140.leifj@it.su.se>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <200909111001.46140.leifj@it.su.se>
User-Agent: Mutt/1.5.7i
X-Mailman-Approved-At: Fri, 11 Sep 2009 10:18:30 -0700
Cc: ldap-dir@ietf.org
Subject: Re: [Ldap-dir] Concerns about draft-ietf-nfsv4-federated-fs-protocol
X-BeenThere: ldap-dir@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: LDAP Directorate <ldap-dir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ldap-dir>, <mailto:ldap-dir-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ldap-dir>
List-Post: <mailto:ldap-dir@ietf.org>
List-Help: <mailto:ldap-dir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ldap-dir>, <mailto:ldap-dir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Sep 2009 17:13:54 -0000

On Fri, Sep 11, 2009 at 10:01:45AM +0200, Leif Johansson wrote:
> 
> > LDAP is supposed to ensure DN uniqueness atomically, is it not?
> >
> 
> Yes but only in a single operation. I suspect (but I may be wrong) that 
> several of the logical operations they need to perform would need to
> span multiple LDAP operations creating race conditions on the name.

I think they do not.

> > You'd create the FSLs first, then the creat/update FSNs to refer to the
> > FSLs.
> 
> That might work unless a semi-populated FSL entry is dangerous. 

An FSL alone is utterly useless and harmless.  An FSN alone too is
utterly useless.  It's only when junctions (which are local to servers)
refer to FSNs, which in turn refer to FSLs, that FSNs and FSLs matter.

Incidentaly the elephant in the I-D that wasn't specifically called out,
but which should have been, is that references to FSNs must be small and
fixed sized.  By using {UUID, NSDB hostname} they were able to keep
references very small: 16 + 256 bytes, or if you intern the NSDB
hostnames, possibly as small as 20 bytes.  This was crucial to my
understanding of the design :(