draft-ietf-nfsv4-rfc3530bis-dot-x-24.txt   rfc7531.txt 
NFSv4 T. Haynes, Ed. Internet Engineering Task Force (IETF) T. Haynes, Ed.
Internet-Draft Primary Data Request for Comments: 7531 Primary Data
Intended status: Standards Track D. Noveck, Ed. Category: Standards Track D. Noveck, Ed.
Expires: June 7, 2015 Dell ISSN: 2070-1721 Dell
December 04, 2014 March 2015
Network File System (NFS) Version 4 Network File System (NFS) Version 4
External Data Representation Standard (XDR) Description External Data Representation Standard (XDR) Description
draft-ietf-nfsv4-rfc3530bis-dot-x-24.txt
Abstract Abstract
The Network File System (NFS) version 4 is a distributed filesystem The Network File System (NFS) version 4 protocol is a distributed
protocol which owes its heritage to NFS protocol version 2, RFC 1094, file system protocol that owes its heritage to NFS protocol version 2
and version 3, RFC 1813. Unlike earlier versions, the NFS version 4 (RFC 1094) and version 3 (RFC 1813). Unlike earlier versions, the
protocol supports traditional file access, while integrating support NFS version 4 protocol supports traditional file access while
for file locking and the mount protocol. In addition, support for integrating support for file locking and the MOUNT protocol. In
strong security (and its negotiation), compound operations, client addition, support for strong security (and its negotiation), COMPOUND
caching, and internationalization have been added. Of course, operations, client caching, and internationalization has been added.
attention has been applied to making NFS version 4 operate well in an Of course, attention has been applied to making NFS version 4 operate
Internet environment. well in an Internet environment.
RFC3530bis formally obsoleting RFC 3530. This document, together RFC 7530 formally obsoletes RFC 3530. This document, together with
with RFC3530bis replaces RFC 3530 as the definition of the NFS RFC 7530, replaces RFC 3530 as the definition of the NFS version 4
version 4 protocol. protocol.
Status of This Memo Status of This Memo
This Internet-Draft is submitted in full conformance with the This is an Internet Standards Track document.
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months This document is a product of the Internet Engineering Task Force
and may be updated, replaced, or obsoleted by other documents at any (IETF). It represents the consensus of the IETF community. It has
time. It is inappropriate to use Internet-Drafts as reference received public review and has been approved for publication by the
material or to cite them other than as "work in progress." Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section 2 of RFC 5741.
This Internet-Draft will expire on June 7, 2015. Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc7531.
Copyright Notice Copyright Notice
Copyright (c) 2014 IETF Trust and the persons identified as the Copyright (c) 2015 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as the Trust Legal Provisions and are provided without warranty as
skipping to change at page 2, line 34 skipping to change at page 3, line 7
modifications of such material outside the IETF Standards Process. modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other it for publication as an RFC or to translate it into languages other
than English. than English.
Table of Contents Table of Contents
1. XDR Description of NFSv4.0 . . . . . . . . . . . . . . . . . 2 1. Introduction ...................................................3
2. Security Considerations . . . . . . . . . . . . . . . . . . . 36 2. XDR Description of NFSv4.0 .....................................3
3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 36 3. Security Considerations .......................................39
4. Normative References . . . . . . . . . . . . . . . . . . . . 36 4. Normative References ..........................................39
Appendix A. Acknowledgments . . . . . . . . . . . . . . . . . . 36 Acknowledgments ..................................................39
Appendix B. RFC Editor Notes . . . . . . . . . . . . . . . . . . 36 Authors' Addresses ...............................................39
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 36
1. XDR Description of NFSv4.0 1. Introduction
This document contains the XDR ([RFC4506]) description of NFSv4.0 This document contains the External Data Representation (XDR)
protocol ([RFCNFSv4]). [RFC4506] description of the NFSv4.0 protocol [RFC7530].
2. XDR Description of NFSv4.0
The XDR description is provided in this document in a way that makes The XDR description is provided in this document in a way that makes
it simple for the reader to extract it into ready to compile form. it simple for the reader to extract it into a form that is ready to
The reader can feed this document in the following shell script to compile. The reader can feed this document in the following shell
produce the machine readable XDR description of NFSv4.0: script to produce the machine-readable XDR description of NFSv4.0:
#!/bin/sh #!/bin/sh
grep "^ *///" | sed 's?^ */// ??' | sed 's?^ *///$??' grep "^ *///" | sed 's?^ */// ??' | sed 's?^ *///$??'
I.e. if the above script is stored in a file called "extract.sh", and That is, if the above script is stored in a file called "extract.sh",
this document is in a file called "spec.txt", then the reader can do: and this document is in a file called "spec.txt", then the reader
can do:
sh extract.sh < spec.txt > nfs4_prot.x sh extract.sh < spec.txt > nfs4_prot.x
The effect of the script is to remove leading white space from each The effect of the script is to remove leading white space from each
line, plus a sentinel sequence of "///". line, plus a sentinel sequence of "///".
The XDR description, with the sentinel sequence follows: The XDR description, with the sentinel sequence, follows:
/// /* /// /*
/// * This file was machine generated for /// * This file was machine generated for [RFC7530].
/// * [RFCNFSv4] /// *
/// * [RFC Editor: please update the citation on the line above] /// * Last updated Tue Mar 10 11:51:21 PDT 2015.
/// * Last updated Thu Dec 4 11:31:21 PST 2014
/// */ /// */
///
/// /* /// /*
/// * Copyright (C) The IETF Trust (2009-2011) /// * Copyright (c) 2015 IETF Trust and the persons identified
/// * All Rights Reserved. /// * as authors of the code. All rights reserved.
/// * /// *
/// * Copyright (C) The Internet Society (1998-2011). /// * Redistribution and use in source and binary forms, with
/// * All Rights Reserved. /// * or without modification, are permitted provided that the
/// * following conditions are met:
/// *
/// * - Redistributions of source code must retain the above
/// * copyright notice, this list of conditions and the
/// * following disclaimer.
/// *
/// * - Redistributions in binary form must reproduce the above
/// * copyright notice, this list of conditions and the
/// * following disclaimer in the documentation and/or other
/// * materials provided with the distribution.
/// *
/// * - Neither the name of Internet Society, IETF or IETF
/// * Trust, nor the names of specific contributors, may be
/// * used to endorse or promote products derived from this
/// * software without specific prior written permission.
/// *
/// * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
/// * AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
/// * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
/// * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
/// * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
/// * EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
/// * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
/// * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
/// * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
/// * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
/// * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
/// * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
/// * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
/// * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
/// * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/// */
///
/// /*
/// * This code was derived from RFC 7531.
/// */ /// */
/// ///
/// /* /// /*
/// * nfs4_prot.x /// * nfs4_prot.x
/// * /// *
/// */ /// */
/// ///
/// /* /// /*
/// * Basic typedefs for RFC 1832 data type definitions /// * Basic typedefs for RFC 1832 data type definitions
/// */ /// */
skipping to change at page 4, line 34 skipping to change at page 6, line 15
/// NF4ATTRDIR /// NF4ATTRDIR
/// = 8, /* Attribute Directory */ /// = 8, /* Attribute Directory */
/// NF4NAMEDATTR /// NF4NAMEDATTR
/// = 9 /* Named Attribute */ /// = 9 /* Named Attribute */
/// }; /// };
/// ///
/// /* /// /*
/// * Error status /// * Error status
/// */ /// */
/// enum nfsstat4 { /// enum nfsstat4 {
/// NFS4_OK = 0, /* everything is okay */ /// NFS4_OK = 0, /* everything is okay */
/// NFS4ERR_PERM = 1, /* caller not privileged */ /// NFS4ERR_PERM = 1, /* caller not privileged */
/// NFS4ERR_NOENT = 2, /* no such file/directory */ /// NFS4ERR_NOENT = 2, /* no such file/directory */
/// NFS4ERR_IO = 5, /* hard I/O error */ /// NFS4ERR_IO = 5, /* hard I/O error */
/// NFS4ERR_NXIO = 6, /* no such device */ /// NFS4ERR_NXIO = 6, /* no such device */
/// NFS4ERR_ACCESS = 13, /* access denied */ /// NFS4ERR_ACCESS = 13, /* access denied */
/// NFS4ERR_EXIST = 17, /* file already exists */ /// NFS4ERR_EXIST = 17, /* file already exists */
/// NFS4ERR_XDEV = 18, /* different filesystems */ /// NFS4ERR_XDEV = 18, /* different file systems */
/// /* Unused/reserved 19 */ /// /* Unused/reserved 19 */
/// NFS4ERR_NOTDIR = 20, /* should be a directory */ /// NFS4ERR_NOTDIR = 20, /* should be a directory */
/// NFS4ERR_ISDIR = 21, /* should not be directory */ /// NFS4ERR_ISDIR = 21, /* should not be directory */
/// NFS4ERR_INVAL = 22, /* invalid argument */ /// NFS4ERR_INVAL = 22, /* invalid argument */
/// NFS4ERR_FBIG = 27, /* file exceeds server max */ /// NFS4ERR_FBIG = 27, /* file exceeds server max */
/// NFS4ERR_NOSPC = 28, /* no space on filesystem */ /// NFS4ERR_NOSPC = 28, /* no space on file system */
/// NFS4ERR_ROFS = 30, /* read-only filesystem */ /// NFS4ERR_ROFS = 30, /* read-only file system */
/// NFS4ERR_MLINK = 31, /* too many hard links */ /// NFS4ERR_MLINK = 31, /* too many hard links */
/// NFS4ERR_NAMETOOLONG = 63, /* name exceeds server max */ /// NFS4ERR_NAMETOOLONG = 63, /* name exceeds server max */
/// NFS4ERR_NOTEMPTY = 66, /* directory not empty */ /// NFS4ERR_NOTEMPTY = 66, /* directory not empty */
/// NFS4ERR_DQUOT = 69, /* hard quota limit reached*/ /// NFS4ERR_DQUOT = 69, /* hard quota limit reached */
/// NFS4ERR_STALE = 70, /* file no longer exists */ /// NFS4ERR_STALE = 70, /* file no longer exists */
/// NFS4ERR_BADHANDLE = 10001,/* Illegal filehandle */ /// NFS4ERR_BADHANDLE = 10001,/* Illegal filehandle */
/// NFS4ERR_BAD_COOKIE = 10003,/* READDIR cookie is stale */ /// NFS4ERR_BAD_COOKIE = 10003,/* READDIR cookie is stale */
/// NFS4ERR_NOTSUPP = 10004,/* operation not supported */ /// NFS4ERR_NOTSUPP = 10004,/* operation not supported */
/// NFS4ERR_TOOSMALL = 10005,/* response limit exceeded */ /// NFS4ERR_TOOSMALL = 10005,/* response limit exceeded */
/// NFS4ERR_SERVERFAULT = 10006,/* undefined server error */ /// NFS4ERR_SERVERFAULT = 10006,/* undefined server error */
/// NFS4ERR_BADTYPE = 10007,/* type invalid for CREATE */ /// NFS4ERR_BADTYPE = 10007,/* type invalid for CREATE */
/// NFS4ERR_DELAY = 10008,/* file "busy" - retry */ /// NFS4ERR_DELAY = 10008,/* file "busy" - retry */
/// NFS4ERR_SAME = 10009,/* nverify says attrs same */ /// NFS4ERR_SAME = 10009,/* nverify says attrs same */
/// NFS4ERR_DENIED = 10010,/* lock unavailable */ /// NFS4ERR_DENIED = 10010,/* lock unavailable */
/// NFS4ERR_EXPIRED = 10011,/* lock lease expired */ /// NFS4ERR_EXPIRED = 10011,/* lock lease expired */
/// NFS4ERR_LOCKED = 10012,/* I/O failed due to lock */ /// NFS4ERR_LOCKED = 10012,/* I/O failed due to lock */
/// NFS4ERR_GRACE = 10013,/* in grace period */ /// NFS4ERR_GRACE = 10013,/* in grace period */
/// NFS4ERR_FHEXPIRED = 10014,/* filehandle expired */ /// NFS4ERR_FHEXPIRED = 10014,/* filehandle expired */
/// NFS4ERR_SHARE_DENIED = 10015,/* share reserve denied */ /// NFS4ERR_SHARE_DENIED = 10015,/* share reserve denied */
/// NFS4ERR_WRONGSEC = 10016,/* wrong security flavor */ /// NFS4ERR_WRONGSEC = 10016,/* wrong security flavor */
/// NFS4ERR_CLID_INUSE = 10017,/* clientid in use */ /// NFS4ERR_CLID_INUSE = 10017,/* clientid in use */
/// NFS4ERR_RESOURCE = 10018,/* resource exhaustion */ /// NFS4ERR_RESOURCE = 10018,/* resource exhaustion */
/// NFS4ERR_MOVED = 10019,/* filesystem relocated */ /// NFS4ERR_MOVED = 10019,/* file system relocated */
/// NFS4ERR_NOFILEHANDLE = 10020,/* current FH is not set */ /// NFS4ERR_NOFILEHANDLE = 10020,/* current FH is not set */
/// NFS4ERR_MINOR_VERS_MISMATCH = 10021,/* minor vers not supp */ /// NFS4ERR_MINOR_VERS_MISMATCH = 10021,/* minor vers not supp */
/// NFS4ERR_STALE_CLIENTID = 10022,/* server has rebooted */ /// NFS4ERR_STALE_CLIENTID = 10022,/* server has rebooted */
/// NFS4ERR_STALE_STATEID = 10023,/* server has rebooted */ /// NFS4ERR_STALE_STATEID = 10023,/* server has rebooted */
/// NFS4ERR_OLD_STATEID = 10024,/* state is out of sync */ /// NFS4ERR_OLD_STATEID = 10024,/* state is out of sync */
/// NFS4ERR_BAD_STATEID = 10025,/* incorrect stateid */ /// NFS4ERR_BAD_STATEID = 10025,/* incorrect stateid */
/// NFS4ERR_BAD_SEQID = 10026,/* request is out of seq. */ /// NFS4ERR_BAD_SEQID = 10026,/* request is out of seq. */
/// NFS4ERR_NOT_SAME = 10027,/* verify - attrs not same */ /// NFS4ERR_NOT_SAME = 10027,/* verify - attrs not same */
/// NFS4ERR_LOCK_RANGE = 10028,/* lock range not supported*/ /// NFS4ERR_LOCK_RANGE = 10028,/* lock range not supported */
/// NFS4ERR_SYMLINK = 10029,/* should be file/directory*/ /// NFS4ERR_SYMLINK = 10029,/* should be file/directory */
/// NFS4ERR_RESTOREFH = 10030,/* no saved filehandle */ /// NFS4ERR_RESTOREFH = 10030,/* no saved filehandle */
/// NFS4ERR_LEASE_MOVED = 10031,/* some filesystem moved */ /// NFS4ERR_LEASE_MOVED = 10031,/* some file system moved */
/// NFS4ERR_ATTRNOTSUPP = 10032,/* recommended attr not sup*/ /// NFS4ERR_ATTRNOTSUPP = 10032,/* recommended attr not sup */
/// NFS4ERR_NO_GRACE = 10033,/* reclaim outside of grace*/ /// NFS4ERR_NO_GRACE = 10033,/* reclaim outside of grace */
/// NFS4ERR_RECLAIM_BAD = 10034,/* reclaim error at server */ /// NFS4ERR_RECLAIM_BAD = 10034,/* reclaim error at server */
/// NFS4ERR_RECLAIM_CONFLICT = 10035,/* conflict on reclaim */ /// NFS4ERR_RECLAIM_CONFLICT = 10035,/* conflict on reclaim */
/// NFS4ERR_BADXDR = 10036,/* XDR decode failed */ /// NFS4ERR_BADXDR = 10036,/* XDR decode failed */
/// NFS4ERR_LOCKS_HELD = 10037,/* file locks held at CLOSE*/ /// NFS4ERR_LOCKS_HELD = 10037,/* file locks held at CLOSE */
/// NFS4ERR_OPENMODE = 10038,/* conflict in OPEN and I/O*/ /// NFS4ERR_OPENMODE = 10038,/* conflict in OPEN and I/O */
/// NFS4ERR_BADOWNER = 10039,/* owner translation bad */ /// NFS4ERR_BADOWNER = 10039,/* owner translation bad */
/// NFS4ERR_BADCHAR = 10040,/* utf-8 char not supported*/ /// NFS4ERR_BADCHAR = 10040,/* UTF-8 char not supported */
/// NFS4ERR_BADNAME = 10041,/* name not supported */ /// NFS4ERR_BADNAME = 10041,/* name not supported */
/// NFS4ERR_BAD_RANGE = 10042,/* lock range not supported*/ /// NFS4ERR_BAD_RANGE = 10042,/* lock range not supported */
/// NFS4ERR_LOCK_NOTSUPP = 10043,/* no atomic up/downgrade */ /// NFS4ERR_LOCK_NOTSUPP = 10043,/* no atomic up/downgrade */
/// NFS4ERR_OP_ILLEGAL = 10044,/* undefined operation */ /// NFS4ERR_OP_ILLEGAL = 10044,/* undefined operation */
/// NFS4ERR_DEADLOCK = 10045,/* file locking deadlock */ /// NFS4ERR_DEADLOCK = 10045,/* file locking deadlock */
/// NFS4ERR_FILE_OPEN = 10046,/* open file blocks op. */ /// NFS4ERR_FILE_OPEN = 10046,/* open file blocks op. */
/// NFS4ERR_ADMIN_REVOKED = 10047,/* lockowner state revoked */ /// NFS4ERR_ADMIN_REVOKED = 10047,/* lock-owner state revoked */
/// NFS4ERR_CB_PATH_DOWN = 10048 /* callback path down */ /// NFS4ERR_CB_PATH_DOWN = 10048 /* callback path down */
/// }; /// };
/// ///
/// /* /// /*
/// * Basic data types /// * Basic data types
/// */ /// */
/// typedef opaque attrlist4<>; /// typedef opaque attrlist4<>;
/// typedef uint32_t bitmap4<>; /// typedef uint32_t bitmap4<>;
/// typedef uint64_t changeid4; /// typedef uint64_t changeid4;
/// typedef uint64_t clientid4; /// typedef uint64_t clientid4;
/// typedef uint32_t count4; /// typedef uint32_t count4;
skipping to change at page 7, line 23 skipping to change at page 9, line 5
/// /* /// /*
/// * FSID structure for major/minor /// * FSID structure for major/minor
/// */ /// */
/// struct fsid4 { /// struct fsid4 {
/// uint64_t major; /// uint64_t major;
/// uint64_t minor; /// uint64_t minor;
/// }; /// };
/// ///
/// ///
/// /* /// /*
/// * Filesystem locations attribute for relocation/migration /// * File system locations attribute for relocation/migration
/// */ /// */
/// struct fs_location4 { /// struct fs_location4 {
/// utf8str_cis server<>; /// utf8str_cis server<>;
/// pathname4 rootpath; /// pathname4 rootpath;
/// }; /// };
/// ///
/// struct fs_locations4 { /// struct fs_locations4 {
/// pathname4 fs_root; /// pathname4 fs_root;
/// fs_location4 locations<>; /// fs_location4 locations<>;
/// }; /// };
/// ///
/// ///
/// /* /// /*
/// * Various Access Control Entry definitions /// * Various Access Control Entry definitions
/// */ /// */
/// ///
/// /* /// /*
/// * Mask that indicates which Access Control Entries /// * Mask that indicates which Access Control Entries
/// * are supported. Values for the fattr4_aclsupport attribute. /// * are supported. Values for the fattr4_aclsupport attribute.
/// */ /// */
/// const ACL4_SUPPORT_ALLOW_ACL = 0x00000001; /// const ACL4_SUPPORT_ALLOW_ACL = 0x00000001;
/// const ACL4_SUPPORT_DENY_ACL = 0x00000002; /// const ACL4_SUPPORT_DENY_ACL = 0x00000002;
/// const ACL4_SUPPORT_AUDIT_ACL = 0x00000004; /// const ACL4_SUPPORT_AUDIT_ACL = 0x00000004;
/// const ACL4_SUPPORT_ALARM_ACL = 0x00000008; /// const ACL4_SUPPORT_ALARM_ACL = 0x00000008;
/// ///
/// ///
/// typedef uint32_t acetype4; /// typedef uint32_t acetype4;
/// ///
/// ///
/// /* /// /*
/// * acetype4 values, others can be added as needed. /// * acetype4 values; others can be added as needed.
/// */ /// */
/// const ACE4_ACCESS_ALLOWED_ACE_TYPE = 0x00000000; /// const ACE4_ACCESS_ALLOWED_ACE_TYPE = 0x00000000;
/// const ACE4_ACCESS_DENIED_ACE_TYPE = 0x00000001; /// const ACE4_ACCESS_DENIED_ACE_TYPE = 0x00000001;
/// const ACE4_SYSTEM_AUDIT_ACE_TYPE = 0x00000002; /// const ACE4_SYSTEM_AUDIT_ACE_TYPE = 0x00000002;
/// const ACE4_SYSTEM_ALARM_ACE_TYPE = 0x00000003; /// const ACE4_SYSTEM_ALARM_ACE_TYPE = 0x00000003;
/// ///
/// ///
/// ///
/// /* /// /*
/// * ACE flag /// * ACE flag
skipping to change at page 9, line 16 skipping to change at page 11, line 5
/// const ACE4_WRITE_ATTRIBUTES = 0x00000100; /// const ACE4_WRITE_ATTRIBUTES = 0x00000100;
/// ///
/// const ACE4_DELETE = 0x00010000; /// const ACE4_DELETE = 0x00010000;
/// const ACE4_READ_ACL = 0x00020000; /// const ACE4_READ_ACL = 0x00020000;
/// const ACE4_WRITE_ACL = 0x00040000; /// const ACE4_WRITE_ACL = 0x00040000;
/// const ACE4_WRITE_OWNER = 0x00080000; /// const ACE4_WRITE_OWNER = 0x00080000;
/// const ACE4_SYNCHRONIZE = 0x00100000; /// const ACE4_SYNCHRONIZE = 0x00100000;
/// ///
/// ///
/// /* /// /*
/// * ACE4_GENERIC_READ -- defined as combination of /// * ACE4_GENERIC_READ - defined as a combination of
/// * ACE4_READ_ACL | /// * ACE4_READ_ACL |
/// * ACE4_READ_DATA | /// * ACE4_READ_DATA |
/// * ACE4_READ_ATTRIBUTES | /// * ACE4_READ_ATTRIBUTES |
/// * ACE4_SYNCHRONIZE /// * ACE4_SYNCHRONIZE
/// */ /// */
/// ///
/// const ACE4_GENERIC_READ = 0x00120081; /// const ACE4_GENERIC_READ = 0x00120081;
/// ///
/// /* /// /*
/// * ACE4_GENERIC_WRITE -- defined as combination of /// * ACE4_GENERIC_WRITE - defined as a combination of
/// * ACE4_READ_ACL | /// * ACE4_READ_ACL |
/// * ACE4_WRITE_DATA | /// * ACE4_WRITE_DATA |
/// * ACE4_WRITE_ATTRIBUTES | /// * ACE4_WRITE_ATTRIBUTES |
/// * ACE4_WRITE_ACL | /// * ACE4_WRITE_ACL |
/// * ACE4_APPEND_DATA | /// * ACE4_APPEND_DATA |
/// * ACE4_SYNCHRONIZE /// * ACE4_SYNCHRONIZE
/// */ /// */
/// const ACE4_GENERIC_WRITE = 0x00160106; /// const ACE4_GENERIC_WRITE = 0x00160106;
/// ///
/// ///
/// /* /// /*
/// * ACE4_GENERIC_EXECUTE -- defined as combination of /// * ACE4_GENERIC_EXECUTE - defined as a combination of
/// * ACE4_READ_ACL /// * ACE4_READ_ACL
/// * ACE4_READ_ATTRIBUTES /// * ACE4_READ_ATTRIBUTES
/// * ACE4_EXECUTE /// * ACE4_EXECUTE
/// * ACE4_SYNCHRONIZE /// * ACE4_SYNCHRONIZE
/// */ /// */
/// const ACE4_GENERIC_EXECUTE = 0x001200A0; /// const ACE4_GENERIC_EXECUTE = 0x001200A0;
/// ///
/// ///
/// /* /// /*
/// * Access Control Entry definition /// * Access Control Entry definition
skipping to change at page 10, line 40 skipping to change at page 12, line 35
/// */ /// */
/// struct specdata4 { /// struct specdata4 {
/// uint32_t specdata1; /* major device number */ /// uint32_t specdata1; /* major device number */
/// uint32_t specdata2; /* minor device number */ /// uint32_t specdata2; /* minor device number */
/// }; /// };
/// ///
/// ///
/// /* /// /*
/// * Values for fattr4_fh_expire_type /// * Values for fattr4_fh_expire_type
/// */ /// */
/// const FH4_PERSISTENT = 0x00000000; /// const FH4_PERSISTENT = 0x00000000;
/// const FH4_NOEXPIRE_WITH_OPEN = 0x00000001; /// const FH4_NOEXPIRE_WITH_OPEN = 0x00000001;
/// const FH4_VOLATILE_ANY = 0x00000002; /// const FH4_VOLATILE_ANY = 0x00000002;
/// const FH4_VOL_MIGRATION = 0x00000004; /// const FH4_VOL_MIGRATION = 0x00000004;
/// const FH4_VOL_RENAME = 0x00000008; /// const FH4_VOL_RENAME = 0x00000008;
/// ///
/// ///
/// typedef bitmap4 fattr4_supported_attrs; /// typedef bitmap4 fattr4_supported_attrs;
/// typedef nfs_ftype4 fattr4_type; /// typedef nfs_ftype4 fattr4_type;
/// typedef uint32_t fattr4_fh_expire_type; /// typedef uint32_t fattr4_fh_expire_type;
/// typedef changeid4 fattr4_change; /// typedef changeid4 fattr4_change;
/// typedef uint64_t fattr4_size; /// typedef uint64_t fattr4_size;
/// typedef bool fattr4_link_support; /// typedef bool fattr4_link_support;
/// typedef bool fattr4_symlink_support; /// typedef bool fattr4_symlink_support;
/// typedef bool fattr4_named_attr; /// typedef bool fattr4_named_attr;
skipping to change at page 12, line 11 skipping to change at page 14, line 7
/// typedef settime4 fattr4_time_access_set; /// typedef settime4 fattr4_time_access_set;
/// typedef nfstime4 fattr4_time_backup; /// typedef nfstime4 fattr4_time_backup;
/// typedef nfstime4 fattr4_time_create; /// typedef nfstime4 fattr4_time_create;
/// typedef nfstime4 fattr4_time_delta; /// typedef nfstime4 fattr4_time_delta;
/// typedef nfstime4 fattr4_time_metadata; /// typedef nfstime4 fattr4_time_metadata;
/// typedef nfstime4 fattr4_time_modify; /// typedef nfstime4 fattr4_time_modify;
/// typedef settime4 fattr4_time_modify_set; /// typedef settime4 fattr4_time_modify_set;
/// ///
/// ///
/// /* /// /*
/// * Mandatory Attributes /// * Mandatory attributes
/// */ /// */
/// const FATTR4_SUPPORTED_ATTRS = 0; /// const FATTR4_SUPPORTED_ATTRS = 0;
/// const FATTR4_TYPE = 1; /// const FATTR4_TYPE = 1;
/// const FATTR4_FH_EXPIRE_TYPE = 2; /// const FATTR4_FH_EXPIRE_TYPE = 2;
/// const FATTR4_CHANGE = 3; /// const FATTR4_CHANGE = 3;
/// const FATTR4_SIZE = 4; /// const FATTR4_SIZE = 4;
/// const FATTR4_LINK_SUPPORT = 5; /// const FATTR4_LINK_SUPPORT = 5;
/// const FATTR4_SYMLINK_SUPPORT = 6; /// const FATTR4_SYMLINK_SUPPORT = 6;
/// const FATTR4_NAMED_ATTR = 7; /// const FATTR4_NAMED_ATTR = 7;
/// const FATTR4_FSID = 8; /// const FATTR4_FSID = 8;
/// const FATTR4_UNIQUE_HANDLES = 9; /// const FATTR4_UNIQUE_HANDLES = 9;
/// const FATTR4_LEASE_TIME = 10; /// const FATTR4_LEASE_TIME = 10;
/// const FATTR4_RDATTR_ERROR = 11; /// const FATTR4_RDATTR_ERROR = 11;
/// const FATTR4_FILEHANDLE = 19; /// const FATTR4_FILEHANDLE = 19;
/// ///
/// /* /// /*
/// * Recommended Attributes /// * Recommended attributes
/// */ /// */
/// const FATTR4_ACL = 12; /// const FATTR4_ACL = 12;
/// const FATTR4_ACLSUPPORT = 13; /// const FATTR4_ACLSUPPORT = 13;
/// const FATTR4_ARCHIVE = 14; /// const FATTR4_ARCHIVE = 14;
/// const FATTR4_CANSETTIME = 15; /// const FATTR4_CANSETTIME = 15;
/// const FATTR4_CASE_INSENSITIVE = 16; /// const FATTR4_CASE_INSENSITIVE = 16;
/// const FATTR4_CASE_PRESERVING = 17; /// const FATTR4_CASE_PRESERVING = 17;
/// const FATTR4_CHOWN_RESTRICTED = 18; /// const FATTR4_CHOWN_RESTRICTED = 18;
/// const FATTR4_FILEID = 20; /// const FATTR4_FILEID = 20;
/// const FATTR4_FILES_AVAIL = 21; /// const FATTR4_FILES_AVAIL = 21;
skipping to change at page 17, line 32 skipping to change at page 19, line 35
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// struct GETFH4resok { /// struct GETFH4resok {
/// nfs_fh4 object; /// nfs_fh4 object;
/// }; /// };
/// ///
/// union GETFH4res switch (nfsstat4 status) { /// union GETFH4res switch (nfsstat4 status) {
/// case NFS4_OK: /// case NFS4_OK:
/// GETFH4resok resok4; /// GETFH4resok resok4;
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// struct LINK4args { /// struct LINK4args {
/// /* SAVED_FH: source object */ /// /* SAVED_FH: source object */
/// /* CURRENT_FH: target directory */ /// /* CURRENT_FH: target directory */
/// component4 newname; /// component4 newname;
/// }; /// };
/// ///
/// struct LINK4resok { /// struct LINK4resok {
/// change_info4 cinfo; /// change_info4 cinfo;
skipping to change at page 19, line 42 skipping to change at page 22, line 5
/// struct LOCKU4args { /// struct LOCKU4args {
/// /* CURRENT_FH: file */ /// /* CURRENT_FH: file */
/// nfs_lock_type4 locktype; /// nfs_lock_type4 locktype;
/// seqid4 seqid; /// seqid4 seqid;
/// stateid4 lock_stateid; /// stateid4 lock_stateid;
/// offset4 offset; /// offset4 offset;
/// length4 length; /// length4 length;
/// }; /// };
/// ///
/// union LOCKU4res switch (nfsstat4 status) { /// union LOCKU4res switch (nfsstat4 status) {
/// case NFS4_OK: /// case NFS4_OK:
/// stateid4 lock_stateid; /// stateid4 lock_stateid;
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// struct LOOKUP4args { /// struct LOOKUP4args {
/// /* CURRENT_FH: directory */ /// /* CURRENT_FH: directory */
/// component4 objname; /// component4 objname;
/// }; /// };
/// ///
skipping to change at page 22, line 14 skipping to change at page 24, line 26
/// union open_claim4 switch (open_claim_type4 claim) { /// union open_claim4 switch (open_claim_type4 claim) {
/// /* /// /*
/// * No special rights to file. /// * No special rights to file.
/// * Ordinary OPEN of the specified file. /// * Ordinary OPEN of the specified file.
/// */ /// */
/// case CLAIM_NULL: /// case CLAIM_NULL:
/// /* CURRENT_FH: directory */ /// /* CURRENT_FH: directory */
/// component4 file; /// component4 file;
/// /* /// /*
/// * Right to the file established by an /// * Right to the file established by an
/// * open previous to server reboot. File /// * open previous to server reboot. File
/// * identified by filehandle obtained at /// * identified by filehandle obtained at
/// * that time rather than by name. /// * that time rather than by name.
/// */ /// */
/// case CLAIM_PREVIOUS: /// case CLAIM_PREVIOUS:
/// /* CURRENT_FH: file being reclaimed */ /// /* CURRENT_FH: file being reclaimed */
/// open_delegation_type4 delegate_type; /// open_delegation_type4 delegate_type;
/// ///
/// /* /// /*
/// * Right to file based on a delegation /// * Right to file based on a delegation
/// * granted by the server. File is /// * granted by the server. File is
/// * specified by name. /// * specified by name.
/// */ /// */
/// case CLAIM_DELEGATE_CUR: /// case CLAIM_DELEGATE_CUR:
/// /* CURRENT_FH: directory */ /// /* CURRENT_FH: directory */
/// open_claim_delegate_cur4 delegate_cur_info; /// open_claim_delegate_cur4 delegate_cur_info;
/// ///
/// /* /// /*
/// * Right to file based on a delegation /// * Right to file based on a delegation
/// * granted to a previous boot instance /// * granted to a previous boot instance
/// * of the client. File is specified by name. /// * of the client. File is specified by name.
/// */ /// */
/// case CLAIM_DELEGATE_PREV: /// case CLAIM_DELEGATE_PREV:
/// /* CURRENT_FH: directory */ /// /* CURRENT_FH: directory */
/// component4 file_delegate_prev; /// component4 file_delegate_prev;
/// }; /// };
/// ///
/// /* /// /*
/// * OPEN: Open a file, potentially receiving an open delegation /// * OPEN: Open a file, potentially receiving an open delegation
/// */ /// */
/// struct OPEN4args { /// struct OPEN4args {
/// seqid4 seqid; /// seqid4 seqid;
/// uint32_t share_access; /// uint32_t share_access;
/// uint32_t share_deny; /// uint32_t share_deny;
/// open_owner4 owner; /// open_owner4 owner;
/// openflag4 openhow; /// openflag4 openhow;
/// open_claim4 claim; /// open_claim4 claim;
/// }; /// };
/// ///
/// struct open_read_delegation4 { /// struct open_read_delegation4 {
/// stateid4 stateid; /* Stateid for delegation*/ /// stateid4 stateid; /* Stateid for delegation */
/// bool recall; /* Pre-recalled flag for /// bool recall; /* Pre-recalled flag for
/// delegations obtained /// delegations obtained
/// by reclaim (CLAIM_PREVIOUS) */ /// by reclaim (CLAIM_PREVIOUS). */
/// ///
/// nfsace4 permissions; /* Defines users who don't /// nfsace4 permissions; /* Defines users who don't
/// need an ACCESS call to /// need an ACCESS call to
/// open for read */ /// open for read. */
/// }; /// };
/// ///
/// struct open_write_delegation4 { /// struct open_write_delegation4 {
/// stateid4 stateid; /* Stateid for delegation */ /// stateid4 stateid; /* Stateid for delegation */
/// bool recall; /* Pre-recalled flag for /// bool recall; /* Pre-recalled flag for
/// delegations obtained /// delegations obtained
/// by reclaim /// by reclaim
/// (CLAIM_PREVIOUS) */ /// (CLAIM_PREVIOUS). */
/// ///
/// nfs_space_limit4 /// nfs_space_limit4
/// space_limit; /* Defines condition that /// space_limit; /* Defines condition that
/// the client must check to /// the client must check to
/// determine whether the /// determine whether the
/// file needs to be flushed /// file needs to be flushed
/// to the server on close. */ /// to the server on close. */
/// ///
/// nfsace4 permissions; /* Defines users who don't /// nfsace4 permissions; /* Defines users who don't
/// need an ACCESS call as /// need an ACCESS call as
/// part of a delegated /// part of a delegated
/// open. */ /// open. */
/// }; /// };
/// ///
/// union open_delegation4 /// union open_delegation4
/// switch (open_delegation_type4 delegation_type) { /// switch (open_delegation_type4 delegation_type) {
/// case OPEN_DELEGATE_NONE: /// case OPEN_DELEGATE_NONE:
skipping to change at page 24, line 8 skipping to change at page 26, line 24
/// /* /// /*
/// * Result flags /// * Result flags
/// */ /// */
/// ///
/// /* Client must confirm open */ /// /* Client must confirm open */
/// const OPEN4_RESULT_CONFIRM = 0x00000002; /// const OPEN4_RESULT_CONFIRM = 0x00000002;
/// /* Type of file locking behavior at the server */ /// /* Type of file locking behavior at the server */
/// const OPEN4_RESULT_LOCKTYPE_POSIX = 0x00000004; /// const OPEN4_RESULT_LOCKTYPE_POSIX = 0x00000004;
/// ///
/// struct OPEN4resok { /// struct OPEN4resok {
/// stateid4 stateid; /* Stateid for open */ /// stateid4 stateid; /* Stateid for open */
/// change_info4 cinfo; /* Directory Change Info */ /// change_info4 cinfo; /* Directory change info */
/// uint32_t rflags; /* Result flags */ /// uint32_t rflags; /* Result flags */
/// bitmap4 attrset; /* attribute set for create*/ /// bitmap4 attrset; /* attribute set for create */
/// open_delegation4 delegation; /* Info on any open /// open_delegation4 delegation; /* Info on any open
/// delegation */ /// delegation */
/// }; /// };
/// ///
/// union OPEN4res switch (nfsstat4 status) { /// union OPEN4res switch (nfsstat4 status) {
/// case NFS4_OK: /// case NFS4_OK:
/// /* CURRENT_FH: opened file */ /// /* CURRENT_FH: opened file */
/// OPEN4resok resok4; /// OPEN4resok resok4;
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// struct OPENATTR4args { /// struct OPENATTR4args {
/// /* CURRENT_FH: object */ /// /* CURRENT_FH: object */
/// bool createdir; /// bool createdir;
/// }; /// };
/// ///
/// struct OPENATTR4res { /// struct OPENATTR4res {
/// /* CURRENT_FH: named attr directory */ /// /* CURRENT_FH: named attr directory */
/// nfsstat4 status; /// nfsstat4 status;
skipping to change at page 25, line 15 skipping to change at page 27, line 33
/// stateid4 open_stateid; /// stateid4 open_stateid;
/// seqid4 seqid; /// seqid4 seqid;
/// uint32_t share_access; /// uint32_t share_access;
/// uint32_t share_deny; /// uint32_t share_deny;
/// }; /// };
/// ///
/// struct OPEN_DOWNGRADE4resok { /// struct OPEN_DOWNGRADE4resok {
/// stateid4 open_stateid; /// stateid4 open_stateid;
/// }; /// };
/// ///
/// union OPEN_DOWNGRADE4res switch(nfsstat4 status) { /// union OPEN_DOWNGRADE4res switch (nfsstat4 status) {
/// case NFS4_OK: /// case NFS4_OK:
/// OPEN_DOWNGRADE4resok resok4; /// OPEN_DOWNGRADE4resok resok4;
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// struct PUTFH4args { /// struct PUTFH4args {
/// nfs_fh4 object; /// nfs_fh4 object;
/// }; /// };
/// ///
/// struct PUTFH4res { /// struct PUTFH4res {
/// /* CURRENT_FH: */ /// /* CURRENT_FH: */
skipping to change at page 27, line 40 skipping to change at page 30, line 18
/// component4 newname; /// component4 newname;
/// }; /// };
/// ///
/// struct RENAME4resok { /// struct RENAME4resok {
/// change_info4 source_cinfo; /// change_info4 source_cinfo;
/// change_info4 target_cinfo; /// change_info4 target_cinfo;
/// }; /// };
/// ///
/// union RENAME4res switch (nfsstat4 status) { /// union RENAME4res switch (nfsstat4 status) {
/// case NFS4_OK: /// case NFS4_OK:
/// RENAME4resok resok4; /// RENAME4resok resok4;
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// struct RENEW4args { /// struct RENEW4args {
/// clientid4 clientid; /// clientid4 clientid;
/// }; /// };
/// ///
/// struct RENEW4res { /// struct RENEW4res {
/// nfsstat4 status; /// nfsstat4 status;
/// }; /// };
/// ///
skipping to change at page 28, line 35 skipping to change at page 31, line 19
/// RPC_GSS_SVC_INTEGRITY = 2, /// RPC_GSS_SVC_INTEGRITY = 2,
/// RPC_GSS_SVC_PRIVACY = 3 /// RPC_GSS_SVC_PRIVACY = 3
/// }; /// };
/// ///
/// struct rpcsec_gss_info { /// struct rpcsec_gss_info {
/// sec_oid4 oid; /// sec_oid4 oid;
/// qop4 qop; /// qop4 qop;
/// rpc_gss_svc_t service; /// rpc_gss_svc_t service;
/// }; /// };
/// ///
/// /* RPCSEC_GSS has a value of '6' - See RFC 2203 */ /// /* RPCSEC_GSS has a value of '6'. See RFC 2203 */
/// union secinfo4 switch (uint32_t flavor) { /// union secinfo4 switch (uint32_t flavor) {
/// case RPCSEC_GSS: /// case RPCSEC_GSS:
/// rpcsec_gss_info flavor_info; /// rpcsec_gss_info flavor_info;
/// default: /// default:
/// void; /// void;
/// }; /// };
/// ///
/// typedef secinfo4 SECINFO4resok<>; /// typedef secinfo4 SECINFO4resok<>;
/// ///
/// union SECINFO4res switch (nfsstat4 status) { /// union SECINFO4res switch (nfsstat4 status) {
skipping to change at page 32, line 27 skipping to change at page 35, line 12
/// case OP_READ: READ4args opread; /// case OP_READ: READ4args opread;
/// case OP_READDIR: READDIR4args opreaddir; /// case OP_READDIR: READDIR4args opreaddir;
/// case OP_READLINK: void; /// case OP_READLINK: void;
/// case OP_REMOVE: REMOVE4args opremove; /// case OP_REMOVE: REMOVE4args opremove;
/// case OP_RENAME: RENAME4args oprename; /// case OP_RENAME: RENAME4args oprename;
/// case OP_RENEW: RENEW4args oprenew; /// case OP_RENEW: RENEW4args oprenew;
/// case OP_RESTOREFH: void; /// case OP_RESTOREFH: void;
/// case OP_SAVEFH: void; /// case OP_SAVEFH: void;
/// case OP_SECINFO: SECINFO4args opsecinfo; /// case OP_SECINFO: SECINFO4args opsecinfo;
/// case OP_SETATTR: SETATTR4args opsetattr; /// case OP_SETATTR: SETATTR4args opsetattr;
/// case OP_SETCLIENTID: SETCLIENTID4args opsetclientid; /// case OP_SETCLIENTID: SETCLIENTID4args opsetclientid;
/// case OP_SETCLIENTID_CONFIRM: SETCLIENTID_CONFIRM4args /// case OP_SETCLIENTID_CONFIRM: SETCLIENTID_CONFIRM4args
/// opsetclientid_confirm; /// opsetclientid_confirm;
/// case OP_VERIFY: VERIFY4args opverify; /// case OP_VERIFY: VERIFY4args opverify;
/// case OP_WRITE: WRITE4args opwrite; /// case OP_WRITE: WRITE4args opwrite;
/// case OP_RELEASE_LOCKOWNER: /// case OP_RELEASE_LOCKOWNER:
/// RELEASE_LOCKOWNER4args /// RELEASE_LOCKOWNER4args
/// oprelease_lockowner; /// oprelease_lockowner;
/// case OP_ILLEGAL: void; /// case OP_ILLEGAL: void;
/// }; /// };
/// ///
skipping to change at page 33, line 25 skipping to change at page 36, line 10
/// case OP_READ: READ4res opread; /// case OP_READ: READ4res opread;
/// case OP_READDIR: READDIR4res opreaddir; /// case OP_READDIR: READDIR4res opreaddir;
/// case OP_READLINK: READLINK4res opreadlink; /// case OP_READLINK: READLINK4res opreadlink;
/// case OP_REMOVE: REMOVE4res opremove; /// case OP_REMOVE: REMOVE4res opremove;
/// case OP_RENAME: RENAME4res oprename; /// case OP_RENAME: RENAME4res oprename;
/// case OP_RENEW: RENEW4res oprenew; /// case OP_RENEW: RENEW4res oprenew;
/// case OP_RESTOREFH: RESTOREFH4res oprestorefh; /// case OP_RESTOREFH: RESTOREFH4res oprestorefh;
/// case OP_SAVEFH: SAVEFH4res opsavefh; /// case OP_SAVEFH: SAVEFH4res opsavefh;
/// case OP_SECINFO: SECINFO4res opsecinfo; /// case OP_SECINFO: SECINFO4res opsecinfo;
/// case OP_SETATTR: SETATTR4res opsetattr; /// case OP_SETATTR: SETATTR4res opsetattr;
/// case OP_SETCLIENTID: SETCLIENTID4res opsetclientid; /// case OP_SETCLIENTID: SETCLIENTID4res opsetclientid;
/// case OP_SETCLIENTID_CONFIRM: /// case OP_SETCLIENTID_CONFIRM:
/// SETCLIENTID_CONFIRM4res /// SETCLIENTID_CONFIRM4res
/// opsetclientid_confirm; /// opsetclientid_confirm;
/// case OP_VERIFY: VERIFY4res opverify; /// case OP_VERIFY: VERIFY4res opverify;
/// case OP_WRITE: WRITE4res opwrite; /// case OP_WRITE: WRITE4res opwrite;
/// case OP_RELEASE_LOCKOWNER: /// case OP_RELEASE_LOCKOWNER:
/// RELEASE_LOCKOWNER4res /// RELEASE_LOCKOWNER4res
/// oprelease_lockowner; /// oprelease_lockowner;
/// case OP_ILLEGAL: ILLEGAL4res opillegal; /// case OP_ILLEGAL: ILLEGAL4res opillegal;
/// }; /// };
skipping to change at page 34, line 17 skipping to change at page 37, line 5
/// void /// void
/// NFSPROC4_NULL(void) = 0; /// NFSPROC4_NULL(void) = 0;
/// ///
/// COMPOUND4res /// COMPOUND4res
/// NFSPROC4_COMPOUND(COMPOUND4args) = 1; /// NFSPROC4_COMPOUND(COMPOUND4args) = 1;
/// ///
/// } = 4; /// } = 4;
/// } = 100003; /// } = 100003;
/// ///
/// /* /// /*
/// * NFS4 Callback Procedure Definitions and Program /// * NFS4 callback procedure definitions and program
/// */ /// */
/// struct CB_GETATTR4args { /// struct CB_GETATTR4args {
/// nfs_fh4 fh; /// nfs_fh4 fh;
/// bitmap4 attr_request; /// bitmap4 attr_request;
/// }; /// };
/// ///
/// struct CB_GETATTR4resok { /// struct CB_GETATTR4resok {
/// fattr4 obj_attributes; /// fattr4 obj_attributes;
/// }; /// };
/// ///
skipping to change at page 35, line 7 skipping to change at page 37, line 43
/// /* /// /*
/// * CB_ILLEGAL: Response for illegal operation numbers /// * CB_ILLEGAL: Response for illegal operation numbers
/// */ /// */
/// struct CB_ILLEGAL4res { /// struct CB_ILLEGAL4res {
/// nfsstat4 status; /// nfsstat4 status;
/// }; /// };
/// ///
/// /* /// /*
/// * Various definitions for CB_COMPOUND /// * Various definitions for CB_COMPOUND
/// */ /// */
/// %
/// enum nfs_cb_opnum4 { /// enum nfs_cb_opnum4 {
/// OP_CB_GETATTR = 3, /// OP_CB_GETATTR = 3,
/// OP_CB_RECALL = 4, /// OP_CB_RECALL = 4,
/// OP_CB_ILLEGAL = 10044 /// OP_CB_ILLEGAL = 10044
/// }; /// };
/// ///
/// union nfs_cb_argop4 switch (unsigned argop) { /// union nfs_cb_argop4 switch (unsigned argop) {
/// case OP_CB_GETATTR: /// case OP_CB_GETATTR: CB_GETATTR4args opcbgetattr;
/// CB_GETATTR4args opcbgetattr; /// case OP_CB_RECALL: CB_RECALL4args opcbrecall;
/// case OP_CB_RECALL: /// case OP_CB_ILLEGAL: void;
/// CB_RECALL4args opcbrecall;
/// case OP_CB_ILLEGAL: void;
/// }; /// };
/// ///
/// union nfs_cb_resop4 switch (unsigned resop) { /// union nfs_cb_resop4 switch (unsigned resop) {
/// case OP_CB_GETATTR: CB_GETATTR4res opcbgetattr; /// case OP_CB_GETATTR: CB_GETATTR4res opcbgetattr;
/// case OP_CB_RECALL: CB_RECALL4res opcbrecall; /// case OP_CB_RECALL: CB_RECALL4res opcbrecall;
/// case OP_CB_ILLEGAL: CB_ILLEGAL4res opcbillegal; /// case OP_CB_ILLEGAL: CB_ILLEGAL4res opcbillegal;
/// }; /// };
/// ///
/// ///
/// struct CB_COMPOUND4args { /// struct CB_COMPOUND4args {
/// utf8str_cs tag; /// utf8str_cs tag;
/// uint32_t minorversion; /// uint32_t minorversion;
/// uint32_t callback_ident; /// uint32_t callback_ident;
/// nfs_cb_argop4 argarray<>; /// nfs_cb_argop4 argarray<>;
/// }; /// };
/// ///
/// struct CB_COMPOUND4res { /// struct CB_COMPOUND4res {
/// nfsstat4 status; /// nfsstat4 status;
/// utf8str_cs tag; /// utf8str_cs tag;
/// nfs_cb_resop4 resarray<>; /// nfs_cb_resop4 resarray<>;
/// }; /// };
/// ///
/// ///
/// ///
/// /* /// /*
/// * Program number is in the transient range since the client /// * Program number is in the transient range, since the client
/// * will assign the exact transient program number and provide /// * will assign the exact transient program number and provide
/// * that to the server via the SETCLIENTID operation. /// * that to the server via the SETCLIENTID operation.
/// */ /// */
/// program NFS4_CALLBACK { /// program NFS4_CALLBACK {
/// version NFS_CB { /// version NFS_CB {
/// void /// void
/// CB_NULL(void) = 0; /// CB_NULL(void) = 0;
/// CB_COMPOUND4res /// CB_COMPOUND4res
/// CB_COMPOUND(CB_COMPOUND4args) = 1; /// CB_COMPOUND(CB_COMPOUND4args) = 1;
/// } = 1; /// } = 1;
/// } = 0x40000000; /// } = 0x40000000;
2. Security Considerations 3. Security Considerations
See the Security Considerations section of [RFCNFSv4].
3. IANA Considerations
This document does not have any IANA considerations. See the Security Considerations section of [RFC7530].
4. Normative References 4. Normative References
[RFC4506] Eisler, M., "XDR: External Data Representation Standard", [RFC4506] Eisler, M., Ed., "XDR: External Data Representation
STD 67, RFC 4506, May 2006. Standard", STD 67, RFC 4506, May 2006,
<http://www.rfc-editor.org/info/rfc4506>.
[RFCNFSv4] [RFC7530] Haynes, T., Ed., and D. Noveck, Ed., "Network File System
Haynes, T. and D. Noveck, "NFS Version 4 Protocol", draft- (NFS) Version 4 Protocol", RFC 7530, March 2015,
ietf-nfsv4-rfc3530bis-35 (work in progress), Dec 2014. <http://www.rfc-editor.org/info/rfc7530>.
Appendix A. Acknowledgments Acknowledgments
Tom Haynes would like to thank NetApp, Inc. for its funding of his Tom Haynes would like to thank NetApp, Inc. for its funding of his
time on this project. time on this project.
David Quigley tested the extraction of the .x file from this document David Quigley tested the extraction of the .x file from this document
and corrected the two resulting errors. and corrected the two resulting errors.
Appendix B. RFC Editor Notes
[RFC Editor: please remove this section prior to publishing this
document as an RFC]
[RFC3530bis should be replaced by the RFC number of draft-ietf-
nfsv4-rfc3530bis in this draft.]
[RFC Editor: Please note that there is also a reference entry that
needs to be modified for the companion document.]
Authors' Addresses Authors' Addresses
Thomas Haynes (editor) Thomas Haynes (editor)
Primary Data, Inc. Primary Data, Inc.
4300 El Camino Real Ste 100 4300 El Camino Real Ste 100
Los Altos, CA 94022 Los Altos, CA 94022
USA United States
Phone: +1 408 215 1519 Phone: +1 408 215 1519
Email: thomas.haynes@primarydata.com EMail: thomas.haynes@primarydata.com
David Noveck (editor) David Noveck (editor)
Dell Dell
300 Innovative Way 300 Innovative Way
Nashua, NH 03062 Nashua, NH 03062
US United States
Phone: +1 781 572 8038 Phone: +1 781 572 8038
Email: dave_noveck@dell.com EMail: dave_noveck@dell.com
 End of changes. 71 change blocks. 
201 lines changed or deleted 218 lines changed or added

This html diff was produced by rfcdiff 1.42. The latest version is available from http://tools.ietf.org/tools/rfcdiff/