Re: [nfsv4] possible minor corrections of federated-fs-admin-05

Chuck Lever <chuck.lever@oracle.com> Fri, 24 September 2010 14:23 UTC

Return-Path: <chuck.lever@oracle.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A0D2E3A6B9B for <nfsv4@core3.amsl.com>; Fri, 24 Sep 2010 07:23:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.287
X-Spam-Level:
X-Spam-Status: No, score=-5.287 tagged_above=-999 required=5 tests=[AWL=1.311, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, UNPARSEABLE_RELAY=0.001]
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 7OYbnLT2quHI for <nfsv4@core3.amsl.com>; Fri, 24 Sep 2010 07:23:53 -0700 (PDT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by core3.amsl.com (Postfix) with ESMTP id 82F733A6AD5 for <nfsv4@ietf.org>; Fri, 24 Sep 2010 07:23:53 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o8OEONwf030951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 24 Sep 2010 14:24:24 GMT
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o8O7HRCm012248; Fri, 24 Sep 2010 14:24:22 GMT
Received: from abhmt003.oracle.com by acsmt353.oracle.com with ESMTP id 634358611285338231; Fri, 24 Sep 2010 07:23:51 -0700
Received: from dhcp-adc-twvpn-1-vpnpool-10-154-26-22.vpn.oracle.com (/10.154.26.22) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 24 Sep 2010 07:23:50 -0700
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset="us-ascii"
From: Chuck Lever <chuck.lever@oracle.com>
In-Reply-To: <alpine.LFD.2.00.1009232058360.21841@jlentini-linux.nane.netapp.com>
Date: Fri, 24 Sep 2010 10:23:47 -0400
Content-Transfer-Encoding: 7bit
Message-Id: <634D43CC-60FC-4580-AA8E-38E505036CBB@oracle.com>
References: <18218677-5DBE-4ABB-9FF9-E737AC458533@oracle.com> <alpine.LFD.2.00.1009230935110.21841@jlentini-linux.nane.netapp.com> <D661DECC-FF90-47F7-B880-6104D98DCA27@oracle.com> <alpine.LFD.2.00.1009231621280.21841@jlentini-linux.nane.netapp.com> <92784C19-36B1-47CA-AA26-CE04A63EE7DA@oracle.com> <alpine.LFD.2.00.1009232058360.21841@jlentini-linux.nane.netapp.com>
To: James Lentini <jlentini@netapp.com>
X-Mailer: Apple Mail (2.1081)
Cc: NFSv4 Working Group <nfsv4@ietf.org>
Subject: Re: [nfsv4] possible minor corrections of federated-fs-admin-05
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Sep 2010 14:23:54 -0000

On Sep 23, 2010, at 9:18 PM, James Lentini wrote:

> 
> 
> On Thu, 23 Sep 2010, Chuck Lever wrote:
> 
>> 
>> On Sep 23, 2010, at 4:43 PM, James Lentini wrote:
>> 
> <snip> 
>>> Speaking of that, it doesn't appear that anyone proposed 
>>> names/definitions for those errors during the 9/2/10 FedFS meeting (if 
>>> there was a proposal, I apologize for leaving it out of the meeting 
>>> minutes). Do these definitions capture what we agreed to at that 
>>> meeting?
>>> 
>>> 
>>>  FEDFS_ERR_NO_CACHE:  The fileserver does not implement an FSN-to-FSL
>>>     cache.
>>> 
>>>  FEDFS_ERR_UNKOWN_CACHE:  The software receiving the ONC RPC request
>>>     is unaware if the fileserver implements an FSN-to-FSL cache or
>>>     unable to communicate with the FSN-to-FSL cache if it exists.
>> 
>> Then FEDFS_OK MUST mean that the file server's cache now matches the 
>> results returned by FEDFS_LOOKUP_JUNCTION?
> 
> These error codes are for when FEDFS_LOOKUP_JUNCTION is called with 
> the FEDFS_RESOLVE_CACHE argument.

Ah.  That makes sense now.

> For the case you are asking about, when FEDFS_LOOKUP_JUNCTION is 
> called with the FEDFS_RESOLVE_NSDB argument, we'll need another error 
> code or another result value (as you suggest below).
> 
>> Are these new error codes returned with a FedFsFsl list, or are they 
>> returned with no results?
> 
> No results.
> 
>> It might make more sense to treat these like the returned 
>> ResolveType, instead of using them as the operation's result code, 
>> imo.
> 
> I was thinking of an error code to indicate that the NSDB resolution 
> was successful but the FSN-to-FSL cache was not updated 
> (FEDFS_NO_CACHE_UPDATE?). Something like this:
> 
>    /// struct FedFsLookupResOk {
>    ///         FedFsFsn               fsn;
>    ///         FedFsFsl               fsl<>;
>    /// };
>    ///
>    /// struct FedFsLookupResReferralVal {
>    ///         FedFsNsdbName          targetNsdb;
>    ///         unsigned int           ldapResultCode;
>    /// };
>    ///
>    /// union FedFsLookupRes switch (FedFsStatus status) {
>    ///  case FEDFS_OK:
>    ///  case FEDFS_ERR_NO_CACHE_UPDATE:
>    ///         FedFsLookupResOk           resok;
>    ///  case FEDFS_ERR_NSDB_LDAP_VAL:
>    ///         unsigned int               ldapResultCode;
>    ///  case FEDFS_ERR_NSDB_LDAP_REFERRAL:
>    ///  case FEDFS_ERR_NSDB_PARAMS_LDAP_REFERRAL:
>    ///         FedFsNsdbName              targetNsdb;
>    ///  case FEDFS_ERR_NSDB_LDAP_REFERRAL_VAL:
>    ///         FedFsLookupResReferralVal  resReferralVal;
>    ///  default:
>    ///         void;
>    /// };
> 

Sure, sounds reasonable.

-- 
chuck[dot]lever[at]oracle[dot]com