Re: [nfsv4] [PATCH] Add the ability to extract the new XDR from the draft
David Noveck <davenoveck@gmail.com> Mon, 28 August 2017 16:57 UTC
Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2B7CB13234B for <nfsv4@ietfa.amsl.com>; Mon, 28 Aug 2017 09:57:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2AlP5CuL7Fqi for <nfsv4@ietfa.amsl.com>; Mon, 28 Aug 2017 09:57:30 -0700 (PDT)
Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E11B1321AF for <nfsv4@ietf.org>; Mon, 28 Aug 2017 09:57:30 -0700 (PDT)
Received: by mail-io0-x233.google.com with SMTP id n71so3809911iod.1 for <nfsv4@ietf.org>; Mon, 28 Aug 2017 09:57:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q20BbbdSjKGSJ2JahfOyFWU8zE64X81IFa2aWC1YXWo=; b=hb+4VqZkXNTpuvYTHczt7K7zmzMWvGy+KohizoYAsIFfmqwT1Ay0HkSqMasJNfk5oN lkW4v9K1gm88jbKgbg1CVFjEX5gSEC8kY4IgDJPh55Rc+MBbHoEjxCiuYlixNOzTrEBt e1mrmgbmhOeFn/I0qBHK9zWe6SeWsekzWEwMtxk9v1dTU5CHsEgxw5OCSVcelilalxKk j0mnqZutJKh0j4nzy7XrT3zTovE8ej65AgVhO1IFK9Af3NZPbrNIR1yXohH5B4Hk9sFU 9JgJsscQ1hJwF5acIdCatNS2q0HQCJMwsmUBBcZ/vWelc0pQc0/s3jyVbdgDd2tbPNwI qrxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q20BbbdSjKGSJ2JahfOyFWU8zE64X81IFa2aWC1YXWo=; b=sPWgtoTTT4l0oz1nDSVBBxLkv6Unou5NQhOnNinQtihdCiLtiJuChbLlC3QE+bFH8K knMRjafGvhgFM97AKaV4xfNYfJrnmH7qOeeDNVUtX5rY6xz7kYHBulySiB3ffU9tKXcg 6bPfc47zSJbsilMbSpK+t0lpIfNnoxcgL4ahq4Kt67rmJo8wWzHtZ/81oPjvFHbJbSix qZpKjc724vXCV4eqbHDmybKPxZuGLTccJ1cZBCwQa57ATTsW3Q80OEr4madN1jtXByi+ fpe30wKg3p5awNn1ouYMXYQJgkl7P9z7w78vhPv1VKjlCH8mP6GPDCiJ9DVne5iKDZAP RwIA==
X-Gm-Message-State: AHYfb5j6FxIgLLnxbizjskTmMstHtV3khH0XrjN/MSbILox7BM15x/eO 6mDLLyDUEDEPK9U68aS/f7v8iVcWQg==
X-Received: by 10.36.93.82 with SMTP id w79mr1300681ita.107.1503939449701; Mon, 28 Aug 2017 09:57:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.10.213 with HTTP; Mon, 28 Aug 2017 09:57:29 -0700 (PDT)
In-Reply-To: <1503937958-119533-1-git-send-email-Thomas.Haynes@primarydata.com>
References: <1503937958-119533-1-git-send-email-Thomas.Haynes@primarydata.com>
From: David Noveck <davenoveck@gmail.com>
Date: Mon, 28 Aug 2017 12:57:29 -0400
Message-ID: <CADaq8jcBtZqtOwhzeuFOHNR=2_tmcQoCWTMTxDhEWiWzDj=P4w@mail.gmail.com>
To: Thomas Haynes <Thomas.Haynes@primarydata.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>, "nfsv4@ietf.org" <nfsv4@ietf.org>, Tom Haynes <loghyr@primarydata.com>
Content-Type: multipart/alternative; boundary="001a113a15aaa9ca630557d33018"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/LN4Q1G7pbNf0FF2T4PsBYv6lMYE>
Subject: Re: [nfsv4] [PATCH] Add the ability to extract the new XDR from the draft
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/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: Mon, 28 Aug 2017 16:57:33 -0000
Suggest replacing: The external data representation (XDR) <xref target='RFC4506' /> description embedded in this document can be extracted into a ready-to-compile by feeding this document into the following shell script: By: The additional lines of external data representation (XDR) <xref target='RFC4506' /> description embedded in this document can be extracted by feeding this document into the following shell script: And replacing: Note that the XDR code contained in this document depends on types from the NFSv4.2 nfs42_prot.x file <xref target='RFC7863' />. As such, the reader will need to add the generated XDR to that from <xref target='RFC7863' By: Once that exraction is done, these added lines need to be inseted into an appropiate base XDR including the generated XDR from <xref target="RFC7863">, together with XDR from any additional extensions to be recognized by the implementation. This will result in a ready-to compile XDR description that provides a desctription of NFSv4.2 including this this extensin together with the others included in the base XDR description provided. On Mon, Aug 28, 2017 at 12:32 PM, Thomas Haynes < Thomas.Haynes@primarydata.com> wrote: > From: Tom Haynes <loghyr@primarydata.com> > > Signed-off-by: Tom Haynes <loghyr@primarydata.com> > --- > Makefile | 5 +++-- > umask_back_references.xml | 12 +++++++++++ > umask_middle_attribute.xml | 19 +++++++++++++---- > umask_middle_xdr.xml | 51 ++++++++++++++++++++++++++++++ > ++++++++++++++++ > 4 files changed, 81 insertions(+), 6 deletions(-) > create mode 100644 umask_middle_xdr.xml > > diff --git a/Makefile b/Makefile > index d105830..f587a1e 100755 > --- a/Makefile > +++ b/Makefile > @@ -4,8 +4,8 @@ > YEAR=`date +%Y` > MONTH=`date +%B` > DAY=`date +%d` > -PREVVERS=00 > -VERS=04 > +PREVVERS=04 > +VERS=05 > > XML2RFC=xml2rfc > > @@ -84,6 +84,7 @@ FRONT_PREGEN = ${DOC_PREFIX}_front.xml > IDXMLSRC_BASE = \ > ${DOC_PREFIX}_middle_start.xml \ > ${DOC_PREFIX}_middle_introduction.xml \ > + ${DOC_PREFIX}_middle_xdr.xml \ > ${DOC_PREFIX}_middle_attribute.xml \ > ${DOC_PREFIX}_middle_security.xml \ > ${DOC_PREFIX}_middle_end.xml \ > diff --git a/umask_back_references.xml b/umask_back_references.xml > index bf25df5..2bba1ba 100644 > --- a/umask_back_references.xml > +++ b/umask_back_references.xml > @@ -19,6 +19,18 @@ > </front> > </reference> > > + <reference anchor='RFC4506'> > + <front> > + <title abbrev='XDR'>XDR: External Data Representation Standard</title> > + <author initials='M.' surname='Eisler' fullname='Mike Eisler'> > + <organization>Network Appliance, Inc.</organization> > + </author> > + <date month='May' year='2006'/> > + </front> > + <seriesInfo name='STD' value='67' /> > + <seriesInfo name="RFC" value="4506"/> > + </reference> > + > <reference anchor='RFC7530'> > <front> > <title>Network File System (NFS) version 4 Protocol</title> > diff --git a/umask_middle_attribute.xml b/umask_middle_attribute.xml > index 4355729..4892bd2 100644 > --- a/umask_middle_attribute.xml > +++ b/umask_middle_attribute.xml > @@ -3,14 +3,25 @@ > > <section anchor="sec:solution" title="mode_umask Attribute"> > > + <t> > + <CODE BEGINS> > + </t> > <figure> > <artwork> > - struct mode_umask4 { > - mode4 mu_mode; > - mode4 mu_umask; > - }; > +/// struct mode_umask4 { > +/// mode4 mu_mode; > +/// mode4 mu_umask; > +/// }; > +/// > +/// %/* > +/// % * New For UMASK > +/// % */ > +/// const FATTR4_MODE_UMASK = 81; > </artwork> > </figure> > + <t> > + <CODE ENDS> > + </t> > > <texttable anchor="tbl:rec_attr"> > <ttcol align="left">Name</ttcol> > diff --git a/umask_middle_xdr.xml b/umask_middle_xdr.xml > new file mode 100644 > index 0000000..f6450e9 > --- /dev/null > +++ b/umask_middle_xdr.xml > @@ -0,0 +1,51 @@ > +<!-- Copyright (C) The IETF Trust (2014) --> > +<!-- Copyright (C) The Internet Society (2014) --> > + > +<section anchor="xdr" title="XDR Extraction"> > + <t> > + The external data representation (XDR) > + <xref target='RFC4506' /> description > + embedded in this document can be extracted > + into a ready-to-compile by feeding this document > + into the following shell script: > + </t> > + > + <t> > + <CODE BEGINS> > + </t> > + > + <figure> > + <artwork> > +#!/bin/sh > +grep '^ *///' $* | sed 's?^ */// ??' | sed 's?^ *///$??' > + </artwork> > + </figure> > + > + <t> > + <CODE ENDS> > + </t> > + > + <t> > + That is, if the above script is stored in a file called "extract.sh", > and > + this document is in a file called "umask.txt", then the reader can do: > + </t> > + > + <figure> > + <artwork> > +sh extract.sh < umask.txt > umask.x > + </artwork> > + </figure> > + > + <t> > + The effect of the script is to remove leading white space from each > + line, plus a sentinel sequence of "///". > + </t> > + > + <t> > + Note that the XDR code contained in this document depends on > + types from the NFSv4.2 nfs42_prot.x file <xref target='RFC7863' />. > + As such, the reader will need to add the generated XDR to > + that from <xref target='RFC7863' />. > + </t> > + > +</section> > -- > 2.3.6 > > _______________________________________________ > nfsv4 mailing list > nfsv4@ietf.org > https://www.ietf.org/mailman/listinfo/nfsv4 >
- [nfsv4] [PATCH] Add the ability to extract the ne… Thomas Haynes
- Re: [nfsv4] [PATCH] Add the ability to extract th… David Noveck
- Re: [nfsv4] [PATCH] Add the ability to extract th… Thomas Haynes