| 1 |
<pre>Internet Engineering Task Force (IETF) S. Shepler, Ed. |
| 2 |
Request for Comments: 5662 Storspeed, Inc. |
| 3 |
Category: Standards Track M. Eisler, Ed. |
| 4 |
ISSN: 2070-1721 D. Noveck, Ed. |
| 5 |
NetApp |
| 6 |
January 2010 |
| 7 |
|
| 8 |
|
| 9 |
<span class="h1">Network File System (NFS) Version 4 Minor Version 1</span> |
| 10 |
<span class="h1">External Data Representation Standard (XDR) Description</span> |
| 11 |
|
| 12 |
Abstract |
| 13 |
|
| 14 |
This document provides the External Data Representation Standard |
| 15 |
(XDR) description for Network File System version 4 (NFSv4) minor |
| 16 |
version 1. |
| 17 |
|
| 18 |
Status of This Memo |
| 19 |
|
| 20 |
This is an Internet Standards Track document. |
| 21 |
|
| 22 |
This document is a product of the Internet Engineering Task Force |
| 23 |
(IETF). It represents the consensus of the IETF community. It has |
| 24 |
received public review and has been approved for publication by the |
| 25 |
Internet Engineering Steering Group (IESG). Further information on |
| 26 |
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>. |
| 27 |
|
| 28 |
Information about the current status of this document, any errata, |
| 29 |
and how to provide feedback on it may be obtained at |
| 30 |
<a href="http://www.rfc-editor.org/info/rfc5662">http://www.rfc-editor.org/info/rfc5662</a>. |
| 31 |
|
| 32 |
Copyright Notice |
| 33 |
|
| 34 |
Copyright (c) 2010 IETF Trust and the persons identified as the |
| 35 |
document authors. All rights reserved. |
| 36 |
|
| 37 |
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal |
| 38 |
Provisions Relating to IETF Documents |
| 39 |
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of |
| 40 |
publication of this document. Please review these documents |
| 41 |
carefully, as they describe your rights and restrictions with respect |
| 42 |
to this document. Code Components extracted from this document must |
| 43 |
include Simplified BSD License text as described in Section 4.e of |
| 44 |
the Trust Legal Provisions and are provided without warranty as |
| 45 |
described in the Simplified BSD License. |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
<span class="grey">Shepler, et al. Standards Track [Page 1]</span></pre> |
| 53 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span> |
| 54 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 55 |
|
| 56 |
|
| 57 |
Table of Contents |
| 58 |
|
| 59 |
|
| 60 |
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a> |
| 61 |
<a href="#section-1.1">1.1</a>. Requirements Language ......................................<a href="#page-2">2</a> |
| 62 |
<a href="#section-1.2">1.2</a>. Code Components Licensing Notice ...........................<a href="#page-2">2</a> |
| 63 |
<a href="#section-2">2</a>. XDR Description of NFSv4.1 ......................................<a href="#page-2">2</a> |
| 64 |
<a href="#section-3">3</a>. Security Considerations ........................................<a href="#page-72">72</a> |
| 65 |
<a href="#section-4">4</a>. IANA Considerations ............................................<a href="#page-72">72</a> |
| 66 |
<a href="#section-5">5</a>. Normative References ...........................................<a href="#page-72">72</a> |
| 67 |
<a href="#appendix-A">Appendix A</a>. Acknowledgments .......................................<a href="#page-73">73</a> |
| 68 |
|
| 69 |
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span> |
| 70 |
|
| 71 |
This document provides the External Data Representation Standard |
| 72 |
(XDR) description for Network File System version 4 (NFSv4) minor |
| 73 |
version 1. |
| 74 |
|
| 75 |
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Requirements Language</span> |
| 76 |
|
| 77 |
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", |
| 78 |
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this |
| 79 |
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-1" title=""Key words for use in RFCs to Indicate Requirement Levels"">1</a>]. |
| 80 |
|
| 81 |
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Code Components Licensing Notice</span> |
| 82 |
|
| 83 |
The XDR description and scripts for extracting the XDR description |
| 84 |
are Code Components as described in <a href="#section-4">Section 4</a> of "Legal Provisions |
| 85 |
Relating to IETF Documents" [<a href="#ref-2" title=""Legal Provisions Relating to IETF Documents"">2</a>]. |
| 86 |
|
| 87 |
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. XDR Description of NFSv4.1</span> |
| 88 |
|
| 89 |
This document contains the XDR ([<a href="#ref-3" title=""XDR: External Data Representation Standard"">3</a>]) description of NFSv4.1 protocol |
| 90 |
([<a href="#ref-4" title=""Network File System (NFS) Version 4 Minor Version 1 Protocol"">4</a>]). In order to facilitate implementations that support both |
| 91 |
NFSv4.0 and NFSv4.1, the description includes operations and other |
| 92 |
features of NFSv4.0 that do not apply to NFSv4.1. |
| 93 |
|
| 94 |
The XDR description is provided in this document in a way that makes |
| 95 |
it simple for the reader to extract into ready-to-compile form. The |
| 96 |
reader can feed this document in the following shell script to |
| 97 |
produce the machine readable XDR description of NFSv4.1: |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
<span class="grey">Shepler, et al. Standards Track [Page 2]</span></pre> |
| 109 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span> |
| 110 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 111 |
|
| 112 |
|
| 113 |
<CODE BEGINS> |
| 114 |
|
| 115 |
#!/bin/sh |
| 116 |
grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??' |
| 117 |
|
| 118 |
<CODE ENDS> |
| 119 |
|
| 120 |
That is, if the above script is stored in a file called "extract.sh", |
| 121 |
and this document is in a file called "spec.txt", then the reader can |
| 122 |
do: |
| 123 |
|
| 124 |
<CODE BEGINS> |
| 125 |
|
| 126 |
sh extract.sh < spec.txt > nfs4_prot.x |
| 127 |
|
| 128 |
<CODE ENDS> |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
<span class="grey">Shepler, et al. Standards Track [Page 3]</span></pre> |
| 165 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span> |
| 166 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 167 |
|
| 168 |
|
| 169 |
The effect of the script is to remove leading white space from each |
| 170 |
line, plus a sentinel sequence of "///". |
| 171 |
|
| 172 |
The XDR description, with the sentinel sequence follows: |
| 173 |
|
| 174 |
<CODE BEGINS> |
| 175 |
|
| 176 |
/// /* |
| 177 |
/// * Copyright (c) 2010 IETF Trust and the persons identified |
| 178 |
/// * as the document authors. All rights reserved. |
| 179 |
/// * |
| 180 |
/// * The document authors are identified in <a href="./rfc3530">RFC 3530</a> and |
| 181 |
/// * <a href="./rfc5661">RFC 5661</a>. |
| 182 |
/// * |
| 183 |
/// * Redistribution and use in source and binary forms, with |
| 184 |
/// * or without modification, are permitted provided that the |
| 185 |
/// * following conditions are met: |
| 186 |
/// * |
| 187 |
/// * - Redistributions of source code must retain the above |
| 188 |
/// * copyright notice, this list of conditions and the |
| 189 |
/// * following disclaimer. |
| 190 |
/// * |
| 191 |
/// * - Redistributions in binary form must reproduce the above |
| 192 |
/// * copyright notice, this list of conditions and the |
| 193 |
/// * following disclaimer in the documentation and/or other |
| 194 |
/// * materials provided with the distribution. |
| 195 |
/// * |
| 196 |
/// * - Neither the name of Internet Society, IETF or IETF |
| 197 |
/// * Trust, nor the names of specific contributors, may be |
| 198 |
/// * used to endorse or promote products derived from this |
| 199 |
/// * software without specific prior written permission. |
| 200 |
/// * |
| 201 |
/// * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS |
| 202 |
/// * AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED |
| 203 |
/// * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 204 |
/// * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 205 |
/// * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| 206 |
/// * EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 207 |
/// * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 208 |
/// * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 209 |
/// * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 210 |
/// * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 211 |
/// * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 212 |
/// * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 213 |
/// * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 214 |
/// * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 215 |
/// * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 216 |
/// */ |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
<span class="grey">Shepler, et al. Standards Track [Page 4]</span></pre> |
| 221 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span> |
| 222 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 223 |
|
| 224 |
|
| 225 |
/// /* |
| 226 |
/// * This code was derived from <a href="./rfc3530">RFC 3530</a>. Please |
| 227 |
/// * reproduce this note if possible. |
| 228 |
/// * |
| 229 |
/// * This code was derived from <a href="./rfc5661">RFC 5661</a>. Please |
| 230 |
/// * reproduce this note if possible. |
| 231 |
/// * |
| 232 |
/// * This file was machine generated from <a href="./rfc5662">RFC 5662</a>. |
| 233 |
/// */ |
| 234 |
/// /* |
| 235 |
/// * nfs4_prot.x |
| 236 |
/// */ |
| 237 |
/// |
| 238 |
/// %#ifndef _AUTH_SYS_DEFINE_FOR_NFSv41 |
| 239 |
/// %#define _AUTH_SYS_DEFINE_FOR_NFSv41 |
| 240 |
/// %#include <rpc/auth_sys.h> |
| 241 |
/// %typedef struct authsys_parms authsys_parms; |
| 242 |
/// %#endif /* _AUTH_SYS_DEFINE_FOR_NFSv41 */ |
| 243 |
/// |
| 244 |
/// /* |
| 245 |
/// * Basic typedefs for <a href="./rfc1832">RFC 1832</a> data type definitions |
| 246 |
/// */ |
| 247 |
/// |
| 248 |
/// /* |
| 249 |
/// * typedef int int32_t; |
| 250 |
/// * typedef unsigned int uint32_t; |
| 251 |
/// * typedef hyper int64_t; |
| 252 |
/// * typedef unsigned hyper uint64_t; |
| 253 |
/// */ |
| 254 |
/// |
| 255 |
/// /* |
| 256 |
/// * Sizes |
| 257 |
/// */ |
| 258 |
/// const NFS4_FHSIZE = 128; |
| 259 |
/// const NFS4_VERIFIER_SIZE = 8; |
| 260 |
/// const NFS4_OPAQUE_LIMIT = 1024; |
| 261 |
/// const NFS4_SESSIONID_SIZE = 16; |
| 262 |
/// |
| 263 |
/// const NFS4_INT64_MAX = 0x7fffffffffffffff; |
| 264 |
/// const NFS4_UINT64_MAX = 0xffffffffffffffff; |
| 265 |
/// const NFS4_INT32_MAX = 0x7fffffff; |
| 266 |
/// const NFS4_UINT32_MAX = 0xffffffff; |
| 267 |
/// |
| 268 |
/// const NFS4_MAXFILELEN = 0xffffffffffffffff; |
| 269 |
/// const NFS4_MAXFILEOFF = 0xfffffffffffffffe; |
| 270 |
/// |
| 271 |
/// |
| 272 |
/// /* |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
<span class="grey">Shepler, et al. Standards Track [Page 5]</span></pre> |
| 277 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span> |
| 278 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 279 |
|
| 280 |
|
| 281 |
/// * File types |
| 282 |
/// */ |
| 283 |
/// enum nfs_ftype4 { |
| 284 |
/// NF4REG = 1, /* Regular File */ |
| 285 |
/// NF4DIR = 2, /* Directory */ |
| 286 |
/// NF4BLK = 3, /* Special File - block device */ |
| 287 |
/// NF4CHR = 4, /* Special File - character device */ |
| 288 |
/// NF4LNK = 5, /* Symbolic Link */ |
| 289 |
/// NF4SOCK = 6, /* Special File - socket */ |
| 290 |
/// NF4FIFO = 7, /* Special File - fifo */ |
| 291 |
/// NF4ATTRDIR |
| 292 |
/// = 8, /* Attribute Directory */ |
| 293 |
/// NF4NAMEDATTR |
| 294 |
/// = 9 /* Named Attribute */ |
| 295 |
/// }; |
| 296 |
/// |
| 297 |
/// /* |
| 298 |
/// * Error status |
| 299 |
/// */ |
| 300 |
/// enum nfsstat4 { |
| 301 |
/// NFS4_OK = 0, /* everything is okay */ |
| 302 |
/// NFS4ERR_PERM = 1, /* caller not privileged */ |
| 303 |
/// NFS4ERR_NOENT = 2, /* no such file/directory */ |
| 304 |
/// NFS4ERR_IO = 5, /* hard I/O error */ |
| 305 |
/// NFS4ERR_NXIO = 6, /* no such device */ |
| 306 |
/// NFS4ERR_ACCESS = 13, /* access denied */ |
| 307 |
/// NFS4ERR_EXIST = 17, /* file already exists */ |
| 308 |
/// NFS4ERR_XDEV = 18, /* different filesystems */ |
| 309 |
/// |
| 310 |
/// /* |
| 311 |
/// * Please do not allocate value 19; it was used in NFSv3 |
| 312 |
/// * and we do not want a value in NFSv3 to have a different |
| 313 |
/// * meaning in NFSv4.x. |
| 314 |
/// */ |
| 315 |
/// |
| 316 |
/// NFS4ERR_NOTDIR = 20, /* should be a directory */ |
| 317 |
/// NFS4ERR_ISDIR = 21, /* should not be directory */ |
| 318 |
/// NFS4ERR_INVAL = 22, /* invalid argument */ |
| 319 |
/// NFS4ERR_FBIG = 27, /* file exceeds server max */ |
| 320 |
/// NFS4ERR_NOSPC = 28, /* no space on filesystem */ |
| 321 |
/// NFS4ERR_ROFS = 30, /* read-only filesystem */ |
| 322 |
/// NFS4ERR_MLINK = 31, /* too many hard links */ |
| 323 |
/// NFS4ERR_NAMETOOLONG = 63, /* name exceeds server max */ |
| 324 |
/// NFS4ERR_NOTEMPTY = 66, /* directory not empty */ |
| 325 |
/// NFS4ERR_DQUOT = 69, /* hard quota limit reached*/ |
| 326 |
/// NFS4ERR_STALE = 70, /* file no longer exists */ |
| 327 |
/// NFS4ERR_BADHANDLE = 10001,/* Illegal filehandle */ |
| 328 |
/// NFS4ERR_BAD_COOKIE = 10003,/* READDIR cookie is stale */ |
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
<span class="grey">Shepler, et al. Standards Track [Page 6]</span></pre> |
| 333 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span> |
| 334 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 335 |
|
| 336 |
|
| 337 |
/// NFS4ERR_NOTSUPP = 10004,/* operation not supported */ |
| 338 |
/// NFS4ERR_TOOSMALL = 10005,/* response limit exceeded */ |
| 339 |
/// NFS4ERR_SERVERFAULT = 10006,/* undefined server error */ |
| 340 |
/// NFS4ERR_BADTYPE = 10007,/* type invalid for CREATE */ |
| 341 |
/// NFS4ERR_DELAY = 10008,/* file "busy" - retry */ |
| 342 |
/// NFS4ERR_SAME = 10009,/* nverify says attrs same */ |
| 343 |
/// NFS4ERR_DENIED = 10010,/* lock unavailable */ |
| 344 |
/// NFS4ERR_EXPIRED = 10011,/* lock lease expired */ |
| 345 |
/// NFS4ERR_LOCKED = 10012,/* I/O failed due to lock */ |
| 346 |
/// NFS4ERR_GRACE = 10013,/* in grace period */ |
| 347 |
/// NFS4ERR_FHEXPIRED = 10014,/* filehandle expired */ |
| 348 |
/// NFS4ERR_SHARE_DENIED = 10015,/* share reserve denied */ |
| 349 |
/// NFS4ERR_WRONGSEC = 10016,/* wrong security flavor */ |
| 350 |
/// NFS4ERR_CLID_INUSE = 10017,/* clientid in use */ |
| 351 |
/// |
| 352 |
/// /* NFS4ERR_RESOURCE is not a valid error in NFSv4.1 */ |
| 353 |
/// NFS4ERR_RESOURCE = 10018,/* resource exhaustion */ |
| 354 |
/// |
| 355 |
/// NFS4ERR_MOVED = 10019,/* filesystem relocated */ |
| 356 |
/// NFS4ERR_NOFILEHANDLE = 10020,/* current FH is not set */ |
| 357 |
/// NFS4ERR_MINOR_VERS_MISMATCH= 10021,/* minor vers not supp */ |
| 358 |
/// NFS4ERR_STALE_CLIENTID = 10022,/* server has rebooted */ |
| 359 |
/// NFS4ERR_STALE_STATEID = 10023,/* server has rebooted */ |
| 360 |
/// NFS4ERR_OLD_STATEID = 10024,/* state is out of sync */ |
| 361 |
/// NFS4ERR_BAD_STATEID = 10025,/* incorrect stateid */ |
| 362 |
/// NFS4ERR_BAD_SEQID = 10026,/* request is out of seq. */ |
| 363 |
/// NFS4ERR_NOT_SAME = 10027,/* verify - attrs not same */ |
| 364 |
/// NFS4ERR_LOCK_RANGE = 10028,/* overlapping lock range */ |
| 365 |
/// NFS4ERR_SYMLINK = 10029,/* should be file/directory*/ |
| 366 |
/// NFS4ERR_RESTOREFH = 10030,/* no saved filehandle */ |
| 367 |
/// NFS4ERR_LEASE_MOVED = 10031,/* some filesystem moved */ |
| 368 |
/// NFS4ERR_ATTRNOTSUPP = 10032,/* recommended attr not sup*/ |
| 369 |
/// NFS4ERR_NO_GRACE = 10033,/* reclaim outside of grace*/ |
| 370 |
/// NFS4ERR_RECLAIM_BAD = 10034,/* reclaim error at server */ |
| 371 |
/// NFS4ERR_RECLAIM_CONFLICT= 10035,/* conflict on reclaim */ |
| 372 |
/// NFS4ERR_BADXDR = 10036,/* XDR decode failed */ |
| 373 |
/// NFS4ERR_LOCKS_HELD = 10037,/* file locks held at CLOSE*/ |
| 374 |
/// NFS4ERR_OPENMODE = 10038,/* conflict in OPEN and I/O*/ |
| 375 |
/// NFS4ERR_BADOWNER = 10039,/* owner translation bad */ |
| 376 |
/// NFS4ERR_BADCHAR = 10040,/* utf-8 char not supported*/ |
| 377 |
/// NFS4ERR_BADNAME = 10041,/* name not supported */ |
| 378 |
/// NFS4ERR_BAD_RANGE = 10042,/* lock range not supported*/ |
| 379 |
/// NFS4ERR_LOCK_NOTSUPP = 10043,/* no atomic up/downgrade */ |
| 380 |
/// NFS4ERR_OP_ILLEGAL = 10044,/* undefined operation */ |
| 381 |
/// NFS4ERR_DEADLOCK = 10045,/* file locking deadlock */ |
| 382 |
/// NFS4ERR_FILE_OPEN = 10046,/* open file blocks op. */ |
| 383 |
/// NFS4ERR_ADMIN_REVOKED = 10047,/* lockowner state revoked */ |
| 384 |
/// NFS4ERR_CB_PATH_DOWN = 10048,/* callback path down */ |
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
<span class="grey">Shepler, et al. Standards Track [Page 7]</span></pre> |
| 389 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span> |
| 390 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 391 |
|
| 392 |
|
| 393 |
/// |
| 394 |
/// /* NFSv4.1 errors start here. */ |
| 395 |
/// |
| 396 |
/// NFS4ERR_BADIOMODE = 10049, |
| 397 |
/// NFS4ERR_BADLAYOUT = 10050, |
| 398 |
/// NFS4ERR_BAD_SESSION_DIGEST = 10051, |
| 399 |
/// NFS4ERR_BADSESSION = 10052, |
| 400 |
/// NFS4ERR_BADSLOT = 10053, |
| 401 |
/// NFS4ERR_COMPLETE_ALREADY = 10054, |
| 402 |
/// NFS4ERR_CONN_NOT_BOUND_TO_SESSION = 10055, |
| 403 |
/// NFS4ERR_DELEG_ALREADY_WANTED = 10056, |
| 404 |
/// NFS4ERR_BACK_CHAN_BUSY = 10057,/*backchan reqs outstanding*/ |
| 405 |
/// NFS4ERR_LAYOUTTRYLATER = 10058, |
| 406 |
/// NFS4ERR_LAYOUTUNAVAILABLE = 10059, |
| 407 |
/// NFS4ERR_NOMATCHING_LAYOUT = 10060, |
| 408 |
/// NFS4ERR_RECALLCONFLICT = 10061, |
| 409 |
/// NFS4ERR_UNKNOWN_LAYOUTTYPE = 10062, |
| 410 |
/// NFS4ERR_SEQ_MISORDERED = 10063,/* unexpected seq.ID in req*/ |
| 411 |
/// NFS4ERR_SEQUENCE_POS = 10064,/* [CB_]SEQ. op not 1st op */ |
| 412 |
/// NFS4ERR_REQ_TOO_BIG = 10065,/* request too big */ |
| 413 |
/// NFS4ERR_REP_TOO_BIG = 10066,/* reply too big */ |
| 414 |
/// NFS4ERR_REP_TOO_BIG_TO_CACHE =10067,/* rep. not all cached*/ |
| 415 |
/// NFS4ERR_RETRY_UNCACHED_REP =10068,/* retry & rep. uncached*/ |
| 416 |
/// NFS4ERR_UNSAFE_COMPOUND =10069,/* retry/recovery too hard */ |
| 417 |
/// NFS4ERR_TOO_MANY_OPS = 10070,/*too many ops in [CB_]COMP*/ |
| 418 |
/// NFS4ERR_OP_NOT_IN_SESSION =10071,/* op needs [CB_]SEQ. op */ |
| 419 |
/// NFS4ERR_HASH_ALG_UNSUPP = 10072, /* hash alg. not supp. */ |
| 420 |
/// /* Error 10073 is unused. */ |
| 421 |
/// NFS4ERR_CLIENTID_BUSY = 10074,/* clientid has state */ |
| 422 |
/// NFS4ERR_PNFS_IO_HOLE = 10075,/* IO to _SPARSE file hole */ |
| 423 |
/// NFS4ERR_SEQ_FALSE_RETRY= 10076,/* Retry != original req. */ |
| 424 |
/// NFS4ERR_BAD_HIGH_SLOT = 10077,/* req has bad highest_slot*/ |
| 425 |
/// NFS4ERR_DEADSESSION = 10078,/*new req sent to dead sess*/ |
| 426 |
/// NFS4ERR_ENCR_ALG_UNSUPP= 10079,/* encr alg. not supp. */ |
| 427 |
/// NFS4ERR_PNFS_NO_LAYOUT = 10080,/* I/O without a layout */ |
| 428 |
/// NFS4ERR_NOT_ONLY_OP = 10081,/* addl ops not allowed */ |
| 429 |
/// NFS4ERR_WRONG_CRED = 10082,/* op done by wrong cred */ |
| 430 |
/// NFS4ERR_WRONG_TYPE = 10083,/* op on wrong type object */ |
| 431 |
/// NFS4ERR_DIRDELEG_UNAVAIL=10084,/* delegation not avail. */ |
| 432 |
/// NFS4ERR_REJECT_DELEG = 10085,/* cb rejected delegation */ |
| 433 |
/// NFS4ERR_RETURNCONFLICT = 10086,/* layout get before return*/ |
| 434 |
/// NFS4ERR_DELEG_REVOKED = 10087 /* deleg./layout revoked */ |
| 435 |
/// }; |
| 436 |
/// |
| 437 |
/// /* |
| 438 |
/// * Basic data types |
| 439 |
/// */ |
| 440 |
/// typedef opaque attrlist4<>; |
| 441 |
|
| 442 |
|
| 443 |
|
| 444 |
<span class="grey">Shepler, et al. Standards Track [Page 8]</span></pre> |
| 445 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span> |
| 446 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 447 |
|
| 448 |
|
| 449 |
/// typedef uint32_t bitmap4<>; |
| 450 |
/// typedef uint64_t changeid4; |
| 451 |
/// typedef uint64_t clientid4; |
| 452 |
/// typedef uint32_t count4; |
| 453 |
/// typedef uint64_t length4; |
| 454 |
/// typedef uint32_t mode4; |
| 455 |
/// typedef uint64_t nfs_cookie4; |
| 456 |
/// typedef opaque nfs_fh4<NFS4_FHSIZE>; |
| 457 |
/// typedef uint64_t offset4; |
| 458 |
/// typedef uint32_t qop4; |
| 459 |
/// typedef opaque sec_oid4<>; |
| 460 |
/// typedef uint32_t sequenceid4; |
| 461 |
/// typedef uint32_t seqid4; |
| 462 |
/// typedef opaque sessionid4[NFS4_SESSIONID_SIZE]; |
| 463 |
/// typedef uint32_t slotid4; |
| 464 |
/// typedef opaque utf8string<>; |
| 465 |
/// typedef utf8string utf8str_cis; |
| 466 |
/// typedef utf8string utf8str_cs; |
| 467 |
/// typedef utf8string utf8str_mixed; |
| 468 |
/// typedef utf8str_cs component4; |
| 469 |
/// typedef utf8str_cs linktext4; |
| 470 |
/// typedef component4 pathname4<>; |
| 471 |
/// typedef opaque verifier4[NFS4_VERIFIER_SIZE]; |
| 472 |
/// |
| 473 |
/// /* |
| 474 |
/// * Timeval |
| 475 |
/// */ |
| 476 |
/// struct nfstime4 { |
| 477 |
/// int64_t seconds; |
| 478 |
/// uint32_t nseconds; |
| 479 |
/// }; |
| 480 |
/// |
| 481 |
/// enum time_how4 { |
| 482 |
/// SET_TO_SERVER_TIME4 = 0, |
| 483 |
/// SET_TO_CLIENT_TIME4 = 1 |
| 484 |
/// }; |
| 485 |
/// |
| 486 |
/// union settime4 switch (time_how4 set_it) { |
| 487 |
/// case SET_TO_CLIENT_TIME4: |
| 488 |
/// nfstime4 time; |
| 489 |
/// default: |
| 490 |
/// void; |
| 491 |
/// }; |
| 492 |
/// |
| 493 |
/// |
| 494 |
/// typedef uint32_t nfs_lease4; |
| 495 |
/// |
| 496 |
/// /* |
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
<span class="grey">Shepler, et al. Standards Track [Page 9]</span></pre> |
| 501 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span> |
| 502 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 503 |
|
| 504 |
|
| 505 |
/// * File attribute definitions |
| 506 |
/// */ |
| 507 |
/// |
| 508 |
/// /* |
| 509 |
/// * FSID structure for major/minor |
| 510 |
/// */ |
| 511 |
/// struct fsid4 { |
| 512 |
/// uint64_t major; |
| 513 |
/// uint64_t minor; |
| 514 |
/// }; |
| 515 |
/// |
| 516 |
/// /* |
| 517 |
/// * Filesystem locations attribute |
| 518 |
/// * for relocation/migration and |
| 519 |
/// * related attributes. |
| 520 |
/// */ |
| 521 |
/// struct change_policy4 { |
| 522 |
/// uint64_t cp_major; |
| 523 |
/// uint64_t cp_minor; |
| 524 |
/// }; |
| 525 |
/// |
| 526 |
/// struct fs_location4 { |
| 527 |
/// utf8str_cis server<>; |
| 528 |
/// pathname4 rootpath; |
| 529 |
/// }; |
| 530 |
/// |
| 531 |
/// struct fs_locations4 { |
| 532 |
/// pathname4 fs_root; |
| 533 |
/// fs_location4 locations<>; |
| 534 |
/// }; |
| 535 |
/// |
| 536 |
/// /* |
| 537 |
/// * Various Access Control Entry definitions |
| 538 |
/// */ |
| 539 |
/// |
| 540 |
/// /* |
| 541 |
/// * Mask that indicates which |
| 542 |
/// * Access Control Entries are supported. |
| 543 |
/// * Values for the fattr4_aclsupport attribute. |
| 544 |
/// */ |
| 545 |
/// const ACL4_SUPPORT_ALLOW_ACL = 0x00000001; |
| 546 |
/// const ACL4_SUPPORT_DENY_ACL = 0x00000002; |
| 547 |
/// const ACL4_SUPPORT_AUDIT_ACL = 0x00000004; |
| 548 |
/// const ACL4_SUPPORT_ALARM_ACL = 0x00000008; |
| 549 |
/// |
| 550 |
/// |
| 551 |
/// typedef uint32_t acetype4; |
| 552 |
/// |
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
<span class="grey">Shepler, et al. Standards Track [Page 10]</span></pre> |
| 557 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span> |
| 558 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 559 |
|
| 560 |
|
| 561 |
/// |
| 562 |
/// /* |
| 563 |
/// * acetype4 values, others can be added as needed. |
| 564 |
/// */ |
| 565 |
/// const ACE4_ACCESS_ALLOWED_ACE_TYPE = 0x00000000; |
| 566 |
/// const ACE4_ACCESS_DENIED_ACE_TYPE = 0x00000001; |
| 567 |
/// const ACE4_SYSTEM_AUDIT_ACE_TYPE = 0x00000002; |
| 568 |
/// const ACE4_SYSTEM_ALARM_ACE_TYPE = 0x00000003; |
| 569 |
/// |
| 570 |
/// |
| 571 |
/// |
| 572 |
/// /* |
| 573 |
/// * ACE flag |
| 574 |
/// */ |
| 575 |
/// typedef uint32_t aceflag4; |
| 576 |
/// |
| 577 |
/// |
| 578 |
/// /* |
| 579 |
/// * ACE flag values |
| 580 |
/// */ |
| 581 |
/// const ACE4_FILE_INHERIT_ACE = 0x00000001; |
| 582 |
/// const ACE4_DIRECTORY_INHERIT_ACE = 0x00000002; |
| 583 |
/// const ACE4_NO_PROPAGATE_INHERIT_ACE = 0x00000004; |
| 584 |
/// const ACE4_INHERIT_ONLY_ACE = 0x00000008; |
| 585 |
/// const ACE4_SUCCESSFUL_ACCESS_ACE_FLAG = 0x00000010; |
| 586 |
/// const ACE4_FAILED_ACCESS_ACE_FLAG = 0x00000020; |
| 587 |
/// const ACE4_IDENTIFIER_GROUP = 0x00000040; |
| 588 |
/// const ACE4_INHERITED_ACE = 0x00000080; |
| 589 |
/// |
| 590 |
/// |
| 591 |
/// |
| 592 |
/// /* |
| 593 |
/// * ACE mask |
| 594 |
/// */ |
| 595 |
/// typedef uint32_t acemask4; |
| 596 |
/// |
| 597 |
/// |
| 598 |
/// /* |
| 599 |
/// * ACE mask values |
| 600 |
/// */ |
| 601 |
/// const ACE4_READ_DATA = 0x00000001; |
| 602 |
/// const ACE4_LIST_DIRECTORY = 0x00000001; |
| 603 |
/// const ACE4_WRITE_DATA = 0x00000002; |
| 604 |
/// const ACE4_ADD_FILE = 0x00000002; |
| 605 |
/// const ACE4_APPEND_DATA = 0x00000004; |
| 606 |
/// const ACE4_ADD_SUBDIRECTORY = 0x00000004; |
| 607 |
/// const ACE4_READ_NAMED_ATTRS = 0x00000008; |
| 608 |
/// const ACE4_WRITE_NAMED_ATTRS = 0x00000010; |
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
<span class="grey">Shepler, et al. Standards Track [Page 11]</span></pre> |
| 613 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span> |
| 614 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 615 |
|
| 616 |
|
| 617 |
/// const ACE4_EXECUTE = 0x00000020; |
| 618 |
/// const ACE4_DELETE_CHILD = 0x00000040; |
| 619 |
/// const ACE4_READ_ATTRIBUTES = 0x00000080; |
| 620 |
/// const ACE4_WRITE_ATTRIBUTES = 0x00000100; |
| 621 |
/// const ACE4_WRITE_RETENTION = 0x00000200; |
| 622 |
/// const ACE4_WRITE_RETENTION_HOLD = 0x00000400; |
| 623 |
/// |
| 624 |
/// const ACE4_DELETE = 0x00010000; |
| 625 |
/// const ACE4_READ_ACL = 0x00020000; |
| 626 |
/// const ACE4_WRITE_ACL = 0x00040000; |
| 627 |
/// const ACE4_WRITE_OWNER = 0x00080000; |
| 628 |
/// const ACE4_SYNCHRONIZE = 0x00100000; |
| 629 |
/// |
| 630 |
/// |
| 631 |
/// /* |
| 632 |
/// * ACE4_GENERIC_READ -- defined as combination of |
| 633 |
/// * ACE4_READ_ACL | |
| 634 |
/// * ACE4_READ_DATA | |
| 635 |
/// * ACE4_READ_ATTRIBUTES | |
| 636 |
/// * ACE4_SYNCHRONIZE |
| 637 |
/// */ |
| 638 |
/// |
| 639 |
/// const ACE4_GENERIC_READ = 0x00120081; |
| 640 |
/// |
| 641 |
/// /* |
| 642 |
/// * ACE4_GENERIC_WRITE -- defined as combination of |
| 643 |
/// * ACE4_READ_ACL | |
| 644 |
/// * ACE4_WRITE_DATA | |
| 645 |
/// * ACE4_WRITE_ATTRIBUTES | |
| 646 |
/// * ACE4_WRITE_ACL | |
| 647 |
/// * ACE4_APPEND_DATA | |
| 648 |
/// * ACE4_SYNCHRONIZE |
| 649 |
/// */ |
| 650 |
/// const ACE4_GENERIC_WRITE = 0x00160106; |
| 651 |
/// |
| 652 |
/// |
| 653 |
/// /* |
| 654 |
/// * ACE4_GENERIC_EXECUTE -- defined as combination of |
| 655 |
/// * ACE4_READ_ACL |
| 656 |
/// * ACE4_READ_ATTRIBUTES |
| 657 |
/// * ACE4_EXECUTE |
| 658 |
/// * ACE4_SYNCHRONIZE |
| 659 |
/// */ |
| 660 |
/// const ACE4_GENERIC_EXECUTE = 0x001200A0; |
| 661 |
/// |
| 662 |
/// |
| 663 |
/// /* |
| 664 |
/// * Access Control Entry definition |
| 665 |
|
| 666 |
|
| 667 |
|
| 668 |
<span class="grey">Shepler, et al. Standards Track [Page 12]</span></pre> |
| 669 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span> |
| 670 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 671 |
|
| 672 |
|
| 673 |
/// */ |
| 674 |
/// struct nfsace4 { |
| 675 |
/// acetype4 type; |
| 676 |
/// aceflag4 flag; |
| 677 |
/// acemask4 access_mask; |
| 678 |
/// utf8str_mixed who; |
| 679 |
/// }; |
| 680 |
/// |
| 681 |
/// |
| 682 |
/// /* |
| 683 |
/// * ACL flag |
| 684 |
/// */ |
| 685 |
/// |
| 686 |
/// typedef uint32_t aclflag4; |
| 687 |
/// |
| 688 |
/// /* |
| 689 |
/// * ACL flag values |
| 690 |
/// */ |
| 691 |
/// const ACL4_AUTO_INHERIT = 0x00000001; |
| 692 |
/// const ACL4_PROTECTED = 0x00000002; |
| 693 |
/// const ACL4_DEFAULTED = 0x00000004; |
| 694 |
/// |
| 695 |
/// |
| 696 |
/// /* |
| 697 |
/// * Version 4.1 Access Control List definition |
| 698 |
/// */ |
| 699 |
/// struct nfsacl41 { |
| 700 |
/// aclflag4 na41_flag; |
| 701 |
/// nfsace4 na41_aces<>; |
| 702 |
/// }; |
| 703 |
/// |
| 704 |
/// |
| 705 |
/// /* |
| 706 |
/// * Field definitions for the fattr4_mode |
| 707 |
/// * and fattr4_mode_set_masked attributes. |
| 708 |
/// */ |
| 709 |
/// const MODE4_SUID = 0x800; /* set user id on execution */ |
| 710 |
/// const MODE4_SGID = 0x400; /* set group id on execution */ |
| 711 |
/// const MODE4_SVTX = 0x200; /* save text even after use */ |
| 712 |
/// const MODE4_RUSR = 0x100; /* read permission: owner */ |
| 713 |
/// const MODE4_WUSR = 0x080; /* write permission: owner */ |
| 714 |
/// const MODE4_XUSR = 0x040; /* execute permission: owner */ |
| 715 |
/// const MODE4_RGRP = 0x020; /* read permission: group */ |
| 716 |
/// const MODE4_WGRP = 0x010; /* write permission: group */ |
| 717 |
/// const MODE4_XGRP = 0x008; /* execute permission: group */ |
| 718 |
/// const MODE4_ROTH = 0x004; /* read permission: other */ |
| 719 |
/// const MODE4_WOTH = 0x002; /* write permission: other */ |
| 720 |
/// const MODE4_XOTH = 0x001; /* execute permission: other */ |
| 721 |
|
| 722 |
|
| 723 |
|
| 724 |
<span class="grey">Shepler, et al. Standards Track [Page 13]</span></pre> |
| 725 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span> |
| 726 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 727 |
|
| 728 |
|
| 729 |
/// |
| 730 |
/// |
| 731 |
/// /* |
| 732 |
/// * Masked mode for the mode_set_masked attribute. |
| 733 |
/// */ |
| 734 |
/// struct mode_masked4 { |
| 735 |
/// mode4 mm_value_to_set; /* Values of bits |
| 736 |
/// to set or reset |
| 737 |
/// in mode. */ |
| 738 |
/// |
| 739 |
/// mode4 mm_mask_bits; /* Mask of bits to |
| 740 |
/// set or reset |
| 741 |
/// in mode. */ |
| 742 |
/// }; |
| 743 |
/// |
| 744 |
/// /* |
| 745 |
/// * Special data/attribute associated with |
| 746 |
/// * file types NF4BLK and NF4CHR. |
| 747 |
/// */ |
| 748 |
/// struct specdata4 { |
| 749 |
/// uint32_t specdata1; /* major device number */ |
| 750 |
/// uint32_t specdata2; /* minor device number */ |
| 751 |
/// }; |
| 752 |
/// |
| 753 |
/// /* |
| 754 |
/// * Values for fattr4_fh_expire_type |
| 755 |
/// */ |
| 756 |
/// const FH4_PERSISTENT = 0x00000000; |
| 757 |
/// const FH4_NOEXPIRE_WITH_OPEN = 0x00000001; |
| 758 |
/// const FH4_VOLATILE_ANY = 0x00000002; |
| 759 |
/// const FH4_VOL_MIGRATION = 0x00000004; |
| 760 |
/// const FH4_VOL_RENAME = 0x00000008; |
| 761 |
/// |
| 762 |
/// |
| 763 |
/// struct netaddr4 { |
| 764 |
/// /* see struct rpcb in <a href="./rfc1833">RFC 1833</a> */ |
| 765 |
/// string na_r_netid<>; /* network id */ |
| 766 |
/// string na_r_addr<>; /* universal address */ |
| 767 |
/// }; |
| 768 |
/// |
| 769 |
/// /* |
| 770 |
/// * data structures new to NFSv4.1 |
| 771 |
/// */ |
| 772 |
/// |
| 773 |
/// struct nfs_impl_id4 { |
| 774 |
/// utf8str_cis nii_domain; |
| 775 |
/// utf8str_cs nii_name; |
| 776 |
/// nfstime4 nii_date; |
| 777 |
|
| 778 |
|
| 779 |
|
| 780 |
<span class="grey">Shepler, et al. Standards Track [Page 14]</span></pre> |
| 781 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span> |
| 782 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 783 |
|
| 784 |
|
| 785 |
/// }; |
| 786 |
/// |
| 787 |
/// |
| 788 |
/// /* |
| 789 |
/// * Stateid |
| 790 |
/// */ |
| 791 |
/// struct stateid4 { |
| 792 |
/// uint32_t seqid; |
| 793 |
/// opaque other[12]; |
| 794 |
/// }; |
| 795 |
/// |
| 796 |
/// enum layouttype4 { |
| 797 |
/// LAYOUT4_NFSV4_1_FILES = 0x1, |
| 798 |
/// LAYOUT4_OSD2_OBJECTS = 0x2, |
| 799 |
/// LAYOUT4_BLOCK_VOLUME = 0x3 |
| 800 |
/// }; |
| 801 |
/// |
| 802 |
/// struct layout_content4 { |
| 803 |
/// layouttype4 loc_type; |
| 804 |
/// opaque loc_body<>; |
| 805 |
/// }; |
| 806 |
/// |
| 807 |
/// |
| 808 |
/// %/* |
| 809 |
/// % * LAYOUT4_OSD2_OBJECTS loc_body description |
| 810 |
/// % * is in a separate .x file |
| 811 |
/// % */ |
| 812 |
/// % |
| 813 |
/// %/* |
| 814 |
/// % * LAYOUT4_BLOCK_VOLUME loc_body description |
| 815 |
/// % * is in a separate .x file |
| 816 |
/// % */ |
| 817 |
/// |
| 818 |
/// struct layouthint4 { |
| 819 |
/// layouttype4 loh_type; |
| 820 |
/// opaque loh_body<>; |
| 821 |
/// }; |
| 822 |
/// |
| 823 |
/// enum layoutiomode4 { |
| 824 |
/// LAYOUTIOMODE4_READ = 1, |
| 825 |
/// LAYOUTIOMODE4_RW = 2, |
| 826 |
/// LAYOUTIOMODE4_ANY = 3 |
| 827 |
/// }; |
| 828 |
/// |
| 829 |
/// struct layout4 { |
| 830 |
/// offset4 lo_offset; |
| 831 |
/// length4 lo_length; |
| 832 |
/// layoutiomode4 lo_iomode; |
| 833 |
|
| 834 |
|
| 835 |
|
| 836 |
<span class="grey">Shepler, et al. Standards Track [Page 15]</span></pre> |
| 837 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span> |
| 838 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 839 |
|
| 840 |
|
| 841 |
/// layout_content4 lo_content; |
| 842 |
/// }; |
| 843 |
/// |
| 844 |
/// const NFS4_DEVICEID4_SIZE = 16; |
| 845 |
/// |
| 846 |
/// typedef opaque deviceid4[NFS4_DEVICEID4_SIZE]; |
| 847 |
/// |
| 848 |
/// struct device_addr4 { |
| 849 |
/// layouttype4 da_layout_type; |
| 850 |
/// opaque da_addr_body<>; |
| 851 |
/// }; |
| 852 |
/// |
| 853 |
/// |
| 854 |
/// struct layoutupdate4 { |
| 855 |
/// layouttype4 lou_type; |
| 856 |
/// opaque lou_body<>; |
| 857 |
/// }; |
| 858 |
/// |
| 859 |
/// % |
| 860 |
/// /* Constants used for LAYOUTRETURN and CB_LAYOUTRECALL */ |
| 861 |
/// const LAYOUT4_RET_REC_FILE = 1; |
| 862 |
/// const LAYOUT4_RET_REC_FSID = 2; |
| 863 |
/// const LAYOUT4_RET_REC_ALL = 3; |
| 864 |
/// % |
| 865 |
/// enum layoutreturn_type4 { |
| 866 |
/// LAYOUTRETURN4_FILE = LAYOUT4_RET_REC_FILE, |
| 867 |
/// LAYOUTRETURN4_FSID = LAYOUT4_RET_REC_FSID, |
| 868 |
/// LAYOUTRETURN4_ALL = LAYOUT4_RET_REC_ALL |
| 869 |
/// }; |
| 870 |
/// |
| 871 |
/// struct layoutreturn_file4 { |
| 872 |
/// offset4 lrf_offset; |
| 873 |
/// length4 lrf_length; |
| 874 |
/// stateid4 lrf_stateid; |
| 875 |
/// % /* layouttype4 specific data */ |
| 876 |
/// opaque lrf_body<>; |
| 877 |
/// }; |
| 878 |
/// |
| 879 |
/// union layoutreturn4 switch(layoutreturn_type4 lr_returntype) { |
| 880 |
/// case LAYOUTRETURN4_FILE: |
| 881 |
/// layoutreturn_file4 lr_layout; |
| 882 |
/// default: |
| 883 |
/// void; |
| 884 |
/// }; |
| 885 |
/// % |
| 886 |
/// |
| 887 |
/// enum fs4_status_type { |
| 888 |
/// STATUS4_FIXED = 1, |
| 889 |
|
| 890 |
|
| 891 |
|
| 892 |
<span class="grey">Shepler, et al. Standards Track [Page 16]</span></pre> |
| 893 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span> |
| 894 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 895 |
|
| 896 |
|
| 897 |
/// STATUS4_UPDATED = 2, |
| 898 |
/// STATUS4_VERSIONED = 3, |
| 899 |
/// STATUS4_WRITABLE = 4, |
| 900 |
/// STATUS4_REFERRAL = 5 |
| 901 |
/// }; |
| 902 |
/// |
| 903 |
/// struct fs4_status { |
| 904 |
/// bool fss_absent; |
| 905 |
/// fs4_status_type fss_type; |
| 906 |
/// utf8str_cs fss_source; |
| 907 |
/// utf8str_cs fss_current; |
| 908 |
/// int32_t fss_age; |
| 909 |
/// nfstime4 fss_version; |
| 910 |
/// }; |
| 911 |
/// |
| 912 |
/// |
| 913 |
/// const TH4_READ_SIZE = 0; |
| 914 |
/// const TH4_WRITE_SIZE = 1; |
| 915 |
/// const TH4_READ_IOSIZE = 2; |
| 916 |
/// const TH4_WRITE_IOSIZE = 3; |
| 917 |
/// |
| 918 |
/// typedef length4 threshold4_read_size; |
| 919 |
/// typedef length4 threshold4_write_size; |
| 920 |
/// typedef length4 threshold4_read_iosize; |
| 921 |
/// typedef length4 threshold4_write_iosize; |
| 922 |
/// |
| 923 |
/// struct threshold_item4 { |
| 924 |
/// layouttype4 thi_layout_type; |
| 925 |
/// bitmap4 thi_hintset; |
| 926 |
/// opaque thi_hintlist<>; |
| 927 |
/// }; |
| 928 |
/// |
| 929 |
/// struct mdsthreshold4 { |
| 930 |
/// threshold_item4 mth_hints<>; |
| 931 |
/// }; |
| 932 |
/// |
| 933 |
/// const RET4_DURATION_INFINITE = 0xffffffffffffffff; |
| 934 |
/// struct retention_get4 { |
| 935 |
/// uint64_t rg_duration; |
| 936 |
/// nfstime4 rg_begin_time<1>; |
| 937 |
/// }; |
| 938 |
/// |
| 939 |
/// struct retention_set4 { |
| 940 |
/// bool rs_enable; |
| 941 |
/// uint64_t rs_duration<1>; |
| 942 |
/// }; |
| 943 |
/// |
| 944 |
/// const FSCHARSET_CAP4_CONTAINS_NON_UTF8 = 0x1; |
| 945 |
|
| 946 |
|
| 947 |
|
| 948 |
<span class="grey">Shepler, et al. Standards Track [Page 17]</span></pre> |
| 949 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span> |
| 950 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 951 |
|
| 952 |
|
| 953 |
/// const FSCHARSET_CAP4_ALLOWS_ONLY_UTF8 = 0x2; |
| 954 |
/// |
| 955 |
/// typedef uint32_t fs_charset_cap4; |
| 956 |
/// |
| 957 |
/// |
| 958 |
/// /* |
| 959 |
/// * NFSv4.1 attributes |
| 960 |
/// */ |
| 961 |
/// typedef bitmap4 fattr4_supported_attrs; |
| 962 |
/// typedef nfs_ftype4 fattr4_type; |
| 963 |
/// typedef uint32_t fattr4_fh_expire_type; |
| 964 |
/// typedef changeid4 fattr4_change; |
| 965 |
/// typedef uint64_t fattr4_size; |
| 966 |
/// typedef bool fattr4_link_support; |
| 967 |
/// typedef bool fattr4_symlink_support; |
| 968 |
/// typedef bool fattr4_named_attr; |
| 969 |
/// typedef fsid4 fattr4_fsid; |
| 970 |
/// typedef bool fattr4_unique_handles; |
| 971 |
/// typedef nfs_lease4 fattr4_lease_time; |
| 972 |
/// typedef nfsstat4 fattr4_rdattr_error; |
| 973 |
/// typedef nfsace4 fattr4_acl<>; |
| 974 |
/// typedef uint32_t fattr4_aclsupport; |
| 975 |
/// typedef bool fattr4_archive; |
| 976 |
/// typedef bool fattr4_cansettime; |
| 977 |
/// typedef bool fattr4_case_insensitive; |
| 978 |
/// typedef bool fattr4_case_preserving; |
| 979 |
/// typedef bool fattr4_chown_restricted; |
| 980 |
/// typedef uint64_t fattr4_fileid; |
| 981 |
/// typedef uint64_t fattr4_files_avail; |
| 982 |
/// typedef nfs_fh4 fattr4_filehandle; |
| 983 |
/// typedef uint64_t fattr4_files_free; |
| 984 |
/// typedef uint64_t fattr4_files_total; |
| 985 |
/// typedef fs_locations4 fattr4_fs_locations; |
| 986 |
/// typedef bool fattr4_hidden; |
| 987 |
/// typedef bool fattr4_homogeneous; |
| 988 |
/// typedef uint64_t fattr4_maxfilesize; |
| 989 |
/// typedef uint32_t fattr4_maxlink; |
| 990 |
/// typedef uint32_t fattr4_maxname; |
| 991 |
/// typedef uint64_t fattr4_maxread; |
| 992 |
/// typedef uint64_t fattr4_maxwrite; |
| 993 |
/// typedef utf8str_cs fattr4_mimetype; |
| 994 |
/// typedef mode4 fattr4_mode; |
| 995 |
/// typedef mode_masked4 fattr4_mode_set_masked; |
| 996 |
/// typedef uint64_t fattr4_mounted_on_fileid; |
| 997 |
/// typedef bool fattr4_no_trunc; |
| 998 |
/// typedef uint32_t fattr4_numlinks; |
| 999 |
/// typedef utf8str_mixed fattr4_owner; |
| 1000 |
/// typedef utf8str_mixed fattr4_owner_group; |
| 1001 |
|
| 1002 |
|
| 1003 |
|
| 1004 |
<span class="grey">Shepler, et al. Standards Track [Page 18]</span></pre> |
| 1005 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span> |
| 1006 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1007 |
|
| 1008 |
|
| 1009 |
/// typedef uint64_t fattr4_quota_avail_hard; |
| 1010 |
/// typedef uint64_t fattr4_quota_avail_soft; |
| 1011 |
/// typedef uint64_t fattr4_quota_used; |
| 1012 |
/// typedef specdata4 fattr4_rawdev; |
| 1013 |
/// typedef uint64_t fattr4_space_avail; |
| 1014 |
/// typedef uint64_t fattr4_space_free; |
| 1015 |
/// typedef uint64_t fattr4_space_total; |
| 1016 |
/// typedef uint64_t fattr4_space_used; |
| 1017 |
/// typedef bool fattr4_system; |
| 1018 |
/// typedef nfstime4 fattr4_time_access; |
| 1019 |
/// typedef settime4 fattr4_time_access_set; |
| 1020 |
/// typedef nfstime4 fattr4_time_backup; |
| 1021 |
/// typedef nfstime4 fattr4_time_create; |
| 1022 |
/// typedef nfstime4 fattr4_time_delta; |
| 1023 |
/// typedef nfstime4 fattr4_time_metadata; |
| 1024 |
/// typedef nfstime4 fattr4_time_modify; |
| 1025 |
/// typedef settime4 fattr4_time_modify_set; |
| 1026 |
/// /* |
| 1027 |
/// * attributes new to NFSv4.1 |
| 1028 |
/// */ |
| 1029 |
/// typedef bitmap4 fattr4_suppattr_exclcreat; |
| 1030 |
/// typedef nfstime4 fattr4_dir_notif_delay; |
| 1031 |
/// typedef nfstime4 fattr4_dirent_notif_delay; |
| 1032 |
/// typedef layouttype4 fattr4_fs_layout_types<>; |
| 1033 |
/// typedef fs4_status fattr4_fs_status; |
| 1034 |
/// typedef fs_charset_cap4 fattr4_fs_charset_cap; |
| 1035 |
/// typedef uint32_t fattr4_layout_alignment; |
| 1036 |
/// typedef uint32_t fattr4_layout_blksize; |
| 1037 |
/// typedef layouthint4 fattr4_layout_hint; |
| 1038 |
/// typedef layouttype4 fattr4_layout_types<>; |
| 1039 |
/// typedef mdsthreshold4 fattr4_mdsthreshold; |
| 1040 |
/// typedef retention_get4 fattr4_retention_get; |
| 1041 |
/// typedef retention_set4 fattr4_retention_set; |
| 1042 |
/// typedef retention_get4 fattr4_retentevt_get; |
| 1043 |
/// typedef retention_set4 fattr4_retentevt_set; |
| 1044 |
/// typedef uint64_t fattr4_retention_hold; |
| 1045 |
/// typedef nfsacl41 fattr4_dacl; |
| 1046 |
/// typedef nfsacl41 fattr4_sacl; |
| 1047 |
/// typedef change_policy4 fattr4_change_policy; |
| 1048 |
/// |
| 1049 |
/// %/* |
| 1050 |
/// % * REQUIRED Attributes |
| 1051 |
/// % */ |
| 1052 |
/// const FATTR4_SUPPORTED_ATTRS = 0; |
| 1053 |
/// const FATTR4_TYPE = 1; |
| 1054 |
/// const FATTR4_FH_EXPIRE_TYPE = 2; |
| 1055 |
/// const FATTR4_CHANGE = 3; |
| 1056 |
/// const FATTR4_SIZE = 4; |
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
<span class="grey">Shepler, et al. Standards Track [Page 19]</span></pre> |
| 1061 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span> |
| 1062 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1063 |
|
| 1064 |
|
| 1065 |
/// const FATTR4_LINK_SUPPORT = 5; |
| 1066 |
/// const FATTR4_SYMLINK_SUPPORT = 6; |
| 1067 |
/// const FATTR4_NAMED_ATTR = 7; |
| 1068 |
/// const FATTR4_FSID = 8; |
| 1069 |
/// const FATTR4_UNIQUE_HANDLES = 9; |
| 1070 |
/// const FATTR4_LEASE_TIME = 10; |
| 1071 |
/// const FATTR4_RDATTR_ERROR = 11; |
| 1072 |
/// const FATTR4_FILEHANDLE = 19; |
| 1073 |
/// %/* new to NFSV4.1 */ |
| 1074 |
/// const FATTR4_SUPPATTR_EXCLCREAT = 75; |
| 1075 |
/// |
| 1076 |
/// %/* |
| 1077 |
/// % * RECOMMENDED Attributes |
| 1078 |
/// % */ |
| 1079 |
/// const FATTR4_ACL = 12; |
| 1080 |
/// const FATTR4_ACLSUPPORT = 13; |
| 1081 |
/// const FATTR4_ARCHIVE = 14; |
| 1082 |
/// const FATTR4_CANSETTIME = 15; |
| 1083 |
/// const FATTR4_CASE_INSENSITIVE = 16; |
| 1084 |
/// const FATTR4_CASE_PRESERVING = 17; |
| 1085 |
/// const FATTR4_CHOWN_RESTRICTED = 18; |
| 1086 |
/// const FATTR4_FILEID = 20; |
| 1087 |
/// const FATTR4_FILES_AVAIL = 21; |
| 1088 |
/// const FATTR4_FILES_FREE = 22; |
| 1089 |
/// const FATTR4_FILES_TOTAL = 23; |
| 1090 |
/// const FATTR4_FS_LOCATIONS = 24; |
| 1091 |
/// const FATTR4_HIDDEN = 25; |
| 1092 |
/// const FATTR4_HOMOGENEOUS = 26; |
| 1093 |
/// const FATTR4_MAXFILESIZE = 27; |
| 1094 |
/// const FATTR4_MAXLINK = 28; |
| 1095 |
/// const FATTR4_MAXNAME = 29; |
| 1096 |
/// const FATTR4_MAXREAD = 30; |
| 1097 |
/// const FATTR4_MAXWRITE = 31; |
| 1098 |
/// const FATTR4_MIMETYPE = 32; |
| 1099 |
/// const FATTR4_MODE = 33; |
| 1100 |
/// const FATTR4_NO_TRUNC = 34; |
| 1101 |
/// const FATTR4_NUMLINKS = 35; |
| 1102 |
/// const FATTR4_OWNER = 36; |
| 1103 |
/// const FATTR4_OWNER_GROUP = 37; |
| 1104 |
/// const FATTR4_QUOTA_AVAIL_HARD = 38; |
| 1105 |
/// const FATTR4_QUOTA_AVAIL_SOFT = 39; |
| 1106 |
/// const FATTR4_QUOTA_USED = 40; |
| 1107 |
/// const FATTR4_RAWDEV = 41; |
| 1108 |
/// const FATTR4_SPACE_AVAIL = 42; |
| 1109 |
/// const FATTR4_SPACE_FREE = 43; |
| 1110 |
/// const FATTR4_SPACE_TOTAL = 44; |
| 1111 |
/// const FATTR4_SPACE_USED = 45; |
| 1112 |
/// const FATTR4_SYSTEM = 46; |
| 1113 |
|
| 1114 |
|
| 1115 |
|
| 1116 |
<span class="grey">Shepler, et al. Standards Track [Page 20]</span></pre> |
| 1117 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span> |
| 1118 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1119 |
|
| 1120 |
|
| 1121 |
/// const FATTR4_TIME_ACCESS = 47; |
| 1122 |
/// const FATTR4_TIME_ACCESS_SET = 48; |
| 1123 |
/// const FATTR4_TIME_BACKUP = 49; |
| 1124 |
/// const FATTR4_TIME_CREATE = 50; |
| 1125 |
/// const FATTR4_TIME_DELTA = 51; |
| 1126 |
/// const FATTR4_TIME_METADATA = 52; |
| 1127 |
/// const FATTR4_TIME_MODIFY = 53; |
| 1128 |
/// const FATTR4_TIME_MODIFY_SET = 54; |
| 1129 |
/// const FATTR4_MOUNTED_ON_FILEID = 55; |
| 1130 |
/// % |
| 1131 |
/// %/* new to NFSV4.1 */ |
| 1132 |
/// % |
| 1133 |
/// const FATTR4_DIR_NOTIF_DELAY = 56; |
| 1134 |
/// const FATTR4_DIRENT_NOTIF_DELAY = 57; |
| 1135 |
/// const FATTR4_DACL = 58; |
| 1136 |
/// const FATTR4_SACL = 59; |
| 1137 |
/// const FATTR4_CHANGE_POLICY = 60; |
| 1138 |
/// const FATTR4_FS_STATUS = 61; |
| 1139 |
/// const FATTR4_FS_LAYOUT_TYPES = 62; |
| 1140 |
/// const FATTR4_LAYOUT_HINT = 63; |
| 1141 |
/// const FATTR4_LAYOUT_TYPES = 64; |
| 1142 |
/// const FATTR4_LAYOUT_BLKSIZE = 65; |
| 1143 |
/// const FATTR4_LAYOUT_ALIGNMENT = 66; |
| 1144 |
/// const FATTR4_FS_LOCATIONS_INFO = 67; |
| 1145 |
/// const FATTR4_MDSTHRESHOLD = 68; |
| 1146 |
/// const FATTR4_RETENTION_GET = 69; |
| 1147 |
/// const FATTR4_RETENTION_SET = 70; |
| 1148 |
/// const FATTR4_RETENTEVT_GET = 71; |
| 1149 |
/// const FATTR4_RETENTEVT_SET = 72; |
| 1150 |
/// const FATTR4_RETENTION_HOLD = 73; |
| 1151 |
/// const FATTR4_MODE_SET_MASKED = 74; |
| 1152 |
/// const FATTR4_FS_CHARSET_CAP = 76; |
| 1153 |
/// |
| 1154 |
/// /* |
| 1155 |
/// * File attribute container |
| 1156 |
/// */ |
| 1157 |
/// struct fattr4 { |
| 1158 |
/// bitmap4 attrmask; |
| 1159 |
/// attrlist4 attr_vals; |
| 1160 |
/// }; |
| 1161 |
/// |
| 1162 |
/// /* |
| 1163 |
/// * Change info for the client |
| 1164 |
/// */ |
| 1165 |
/// struct change_info4 { |
| 1166 |
/// bool atomic; |
| 1167 |
/// changeid4 before; |
| 1168 |
/// changeid4 after; |
| 1169 |
|
| 1170 |
|
| 1171 |
|
| 1172 |
<span class="grey">Shepler, et al. Standards Track [Page 21]</span></pre> |
| 1173 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span> |
| 1174 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1175 |
|
| 1176 |
|
| 1177 |
/// }; |
| 1178 |
/// |
| 1179 |
/// typedef netaddr4 clientaddr4; |
| 1180 |
/// |
| 1181 |
/// /* |
| 1182 |
/// * Callback program info as provided by the client |
| 1183 |
/// */ |
| 1184 |
/// struct cb_client4 { |
| 1185 |
/// uint32_t cb_program; |
| 1186 |
/// netaddr4 cb_location; |
| 1187 |
/// }; |
| 1188 |
/// |
| 1189 |
/// /* |
| 1190 |
/// * NFSv4.0 Long Hand Client ID |
| 1191 |
/// */ |
| 1192 |
/// struct nfs_client_id4 { |
| 1193 |
/// verifier4 verifier; |
| 1194 |
/// opaque id<NFS4_OPAQUE_LIMIT>; |
| 1195 |
/// }; |
| 1196 |
/// |
| 1197 |
/// /* |
| 1198 |
/// * NFSv4.1 Client Owner (aka long hand client ID) |
| 1199 |
/// */ |
| 1200 |
/// struct client_owner4 { |
| 1201 |
/// verifier4 co_verifier; |
| 1202 |
/// opaque co_ownerid<NFS4_OPAQUE_LIMIT>; |
| 1203 |
/// }; |
| 1204 |
/// |
| 1205 |
/// |
| 1206 |
/// /* |
| 1207 |
/// * NFSv4.1 server Owner |
| 1208 |
/// */ |
| 1209 |
/// struct server_owner4 { |
| 1210 |
/// uint64_t so_minor_id; |
| 1211 |
/// opaque so_major_id<NFS4_OPAQUE_LIMIT>; |
| 1212 |
/// }; |
| 1213 |
/// |
| 1214 |
/// |
| 1215 |
/// struct state_owner4 { |
| 1216 |
/// clientid4 clientid; |
| 1217 |
/// opaque owner<NFS4_OPAQUE_LIMIT>; |
| 1218 |
/// }; |
| 1219 |
/// |
| 1220 |
/// typedef state_owner4 open_owner4; |
| 1221 |
/// typedef state_owner4 lock_owner4; |
| 1222 |
/// |
| 1223 |
/// |
| 1224 |
/// enum nfs_lock_type4 { |
| 1225 |
|
| 1226 |
|
| 1227 |
|
| 1228 |
<span class="grey">Shepler, et al. Standards Track [Page 22]</span></pre> |
| 1229 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span> |
| 1230 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1231 |
|
| 1232 |
|
| 1233 |
/// READ_LT = 1, |
| 1234 |
/// WRITE_LT = 2, |
| 1235 |
/// READW_LT = 3, /* blocking read */ |
| 1236 |
/// WRITEW_LT = 4 /* blocking write */ |
| 1237 |
/// }; |
| 1238 |
/// |
| 1239 |
/// |
| 1240 |
/// % |
| 1241 |
/// %/* Input for computing subkeys */ |
| 1242 |
/// enum ssv_subkey4 { |
| 1243 |
/// SSV4_SUBKEY_MIC_I2T = 1, |
| 1244 |
/// SSV4_SUBKEY_MIC_T2I = 2, |
| 1245 |
/// SSV4_SUBKEY_SEAL_I2T = 3, |
| 1246 |
/// SSV4_SUBKEY_SEAL_T2I = 4 |
| 1247 |
/// }; |
| 1248 |
/// % |
| 1249 |
/// |
| 1250 |
/// % |
| 1251 |
/// %/* Input for computing smt_hmac */ |
| 1252 |
/// struct ssv_mic_plain_tkn4 { |
| 1253 |
/// uint32_t smpt_ssv_seq; |
| 1254 |
/// opaque smpt_orig_plain<>; |
| 1255 |
/// }; |
| 1256 |
/// % |
| 1257 |
/// |
| 1258 |
/// % |
| 1259 |
/// %/* SSV GSS PerMsgToken token */ |
| 1260 |
/// struct ssv_mic_tkn4 { |
| 1261 |
/// uint32_t smt_ssv_seq; |
| 1262 |
/// opaque smt_hmac<>; |
| 1263 |
/// }; |
| 1264 |
/// % |
| 1265 |
/// |
| 1266 |
/// % |
| 1267 |
/// %/* Input for computing ssct_encr_data and ssct_hmac */ |
| 1268 |
/// struct ssv_seal_plain_tkn4 { |
| 1269 |
/// opaque sspt_confounder<>; |
| 1270 |
/// uint32_t sspt_ssv_seq; |
| 1271 |
/// opaque sspt_orig_plain<>; |
| 1272 |
/// opaque sspt_pad<>; |
| 1273 |
/// }; |
| 1274 |
/// % |
| 1275 |
/// |
| 1276 |
/// % |
| 1277 |
/// %/* SSV GSS SealedMessage token */ |
| 1278 |
/// struct ssv_seal_cipher_tkn4 { |
| 1279 |
/// uint32_t ssct_ssv_seq; |
| 1280 |
/// opaque ssct_iv<>; |
| 1281 |
|
| 1282 |
|
| 1283 |
|
| 1284 |
<span class="grey">Shepler, et al. Standards Track [Page 23]</span></pre> |
| 1285 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span> |
| 1286 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1287 |
|
| 1288 |
|
| 1289 |
/// opaque ssct_encr_data<>; |
| 1290 |
/// opaque ssct_hmac<>; |
| 1291 |
/// }; |
| 1292 |
/// % |
| 1293 |
/// |
| 1294 |
/// /* |
| 1295 |
/// * Defines an individual server replica |
| 1296 |
/// */ |
| 1297 |
/// struct fs_locations_server4 { |
| 1298 |
/// int32_t fls_currency; |
| 1299 |
/// opaque fls_info<>; |
| 1300 |
/// utf8str_cis fls_server; |
| 1301 |
/// }; |
| 1302 |
/// |
| 1303 |
/// /* |
| 1304 |
/// * Byte indices of items within |
| 1305 |
/// * fls_info: flag fields, class numbers, |
| 1306 |
/// * bytes indicating ranks and orders. |
| 1307 |
/// */ |
| 1308 |
/// const FSLI4BX_GFLAGS = 0; |
| 1309 |
/// const FSLI4BX_TFLAGS = 1; |
| 1310 |
/// |
| 1311 |
/// const FSLI4BX_CLSIMUL = 2; |
| 1312 |
/// const FSLI4BX_CLHANDLE = 3; |
| 1313 |
/// const FSLI4BX_CLFILEID = 4; |
| 1314 |
/// const FSLI4BX_CLWRITEVER = 5; |
| 1315 |
/// const FSLI4BX_CLCHANGE = 6; |
| 1316 |
/// const FSLI4BX_CLREADDIR = 7; |
| 1317 |
/// |
| 1318 |
/// const FSLI4BX_READRANK = 8; |
| 1319 |
/// const FSLI4BX_WRITERANK = 9; |
| 1320 |
/// const FSLI4BX_READORDER = 10; |
| 1321 |
/// const FSLI4BX_WRITEORDER = 11; |
| 1322 |
/// |
| 1323 |
/// /* |
| 1324 |
/// * Bits defined within the general flag byte. |
| 1325 |
/// */ |
| 1326 |
/// const FSLI4GF_WRITABLE = 0x01; |
| 1327 |
/// const FSLI4GF_CUR_REQ = 0x02; |
| 1328 |
/// const FSLI4GF_ABSENT = 0x04; |
| 1329 |
/// const FSLI4GF_GOING = 0x08; |
| 1330 |
/// const FSLI4GF_SPLIT = 0x10; |
| 1331 |
/// |
| 1332 |
/// /* |
| 1333 |
/// * Bits defined within the transport flag byte. |
| 1334 |
/// */ |
| 1335 |
/// const FSLI4TF_RDMA = 0x01; |
| 1336 |
/// |
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
<span class="grey">Shepler, et al. Standards Track [Page 24]</span></pre> |
| 1341 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span> |
| 1342 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1343 |
|
| 1344 |
|
| 1345 |
/// /* |
| 1346 |
/// * Defines a set of replicas sharing |
| 1347 |
/// * a common value of the root path |
| 1348 |
/// * with in the corresponding |
| 1349 |
/// * single-server namespaces. |
| 1350 |
/// */ |
| 1351 |
/// struct fs_locations_item4 { |
| 1352 |
/// fs_locations_server4 fli_entries<>; |
| 1353 |
/// pathname4 fli_rootpath; |
| 1354 |
/// }; |
| 1355 |
/// |
| 1356 |
/// /* |
| 1357 |
/// * Defines the overall structure of |
| 1358 |
/// * the fs_locations_info attribute. |
| 1359 |
/// */ |
| 1360 |
/// struct fs_locations_info4 { |
| 1361 |
/// uint32_t fli_flags; |
| 1362 |
/// int32_t fli_valid_for; |
| 1363 |
/// pathname4 fli_fs_root; |
| 1364 |
/// fs_locations_item4 fli_items<>; |
| 1365 |
/// }; |
| 1366 |
/// |
| 1367 |
/// /* |
| 1368 |
/// * Flag bits in fli_flags. |
| 1369 |
/// */ |
| 1370 |
/// const FSLI4IF_VAR_SUB = 0x00000001; |
| 1371 |
/// |
| 1372 |
/// typedef fs_locations_info4 fattr4_fs_locations_info; |
| 1373 |
/// |
| 1374 |
/// const NFL4_UFLG_MASK = 0x0000003F; |
| 1375 |
/// const NFL4_UFLG_DENSE = 0x00000001; |
| 1376 |
/// const NFL4_UFLG_COMMIT_THRU_MDS = 0x00000002; |
| 1377 |
/// const NFL4_UFLG_STRIPE_UNIT_SIZE_MASK |
| 1378 |
/// = 0xFFFFFFC0; |
| 1379 |
/// |
| 1380 |
/// typedef uint32_t nfl_util4; |
| 1381 |
/// |
| 1382 |
/// % |
| 1383 |
/// |
| 1384 |
/// enum filelayout_hint_care4 { |
| 1385 |
/// NFLH4_CARE_DENSE = NFL4_UFLG_DENSE, |
| 1386 |
/// |
| 1387 |
/// NFLH4_CARE_COMMIT_THRU_MDS |
| 1388 |
/// = NFL4_UFLG_COMMIT_THRU_MDS, |
| 1389 |
/// |
| 1390 |
/// NFLH4_CARE_STRIPE_UNIT_SIZE |
| 1391 |
/// = 0x00000040, |
| 1392 |
/// |
| 1393 |
|
| 1394 |
|
| 1395 |
|
| 1396 |
<span class="grey">Shepler, et al. Standards Track [Page 25]</span></pre> |
| 1397 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span> |
| 1398 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1399 |
|
| 1400 |
|
| 1401 |
/// NFLH4_CARE_STRIPE_COUNT = 0x00000080 |
| 1402 |
/// }; |
| 1403 |
/// % |
| 1404 |
/// %/* Encoded in the loh_body field of data type layouthint4: */ |
| 1405 |
/// % |
| 1406 |
/// struct nfsv4_1_file_layouthint4 { |
| 1407 |
/// uint32_t nflh_care; |
| 1408 |
/// nfl_util4 nflh_util; |
| 1409 |
/// count4 nflh_stripe_count; |
| 1410 |
/// }; |
| 1411 |
/// |
| 1412 |
/// % |
| 1413 |
/// |
| 1414 |
/// % |
| 1415 |
/// typedef netaddr4 multipath_list4<>; |
| 1416 |
/// % |
| 1417 |
/// %/* |
| 1418 |
/// % * Encoded in the da_addr_body field of |
| 1419 |
/// % * data type device_addr4: |
| 1420 |
/// % */ |
| 1421 |
/// struct nfsv4_1_file_layout_ds_addr4 { |
| 1422 |
/// uint32_t nflda_stripe_indices<>; |
| 1423 |
/// multipath_list4 nflda_multipath_ds_list<>; |
| 1424 |
/// }; |
| 1425 |
/// |
| 1426 |
/// % |
| 1427 |
/// |
| 1428 |
/// % |
| 1429 |
/// %/* |
| 1430 |
/// % * Encoded in the loc_body field of |
| 1431 |
/// % * data type layout_content4: |
| 1432 |
/// % */ |
| 1433 |
/// struct nfsv4_1_file_layout4 { |
| 1434 |
/// deviceid4 nfl_deviceid; |
| 1435 |
/// nfl_util4 nfl_util; |
| 1436 |
/// uint32_t nfl_first_stripe_index; |
| 1437 |
/// offset4 nfl_pattern_offset; |
| 1438 |
/// nfs_fh4 nfl_fh_list<>; |
| 1439 |
/// }; |
| 1440 |
/// |
| 1441 |
/// % |
| 1442 |
/// |
| 1443 |
/// %/* |
| 1444 |
/// % * Encoded in the lou_body field of data type layoutupdate4: |
| 1445 |
/// % * Nothing. lou_body is a zero length array of bytes. |
| 1446 |
/// % */ |
| 1447 |
/// % |
| 1448 |
/// |
| 1449 |
|
| 1450 |
|
| 1451 |
|
| 1452 |
<span class="grey">Shepler, et al. Standards Track [Page 26]</span></pre> |
| 1453 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span> |
| 1454 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1455 |
|
| 1456 |
|
| 1457 |
/// %/* |
| 1458 |
/// % * Encoded in the lrf_body field of |
| 1459 |
/// % * data type layoutreturn_file4: |
| 1460 |
/// % * Nothing. lrf_body is a zero length array of bytes. |
| 1461 |
/// % */ |
| 1462 |
/// % |
| 1463 |
/// |
| 1464 |
/// |
| 1465 |
/// const ACCESS4_READ = 0x00000001; |
| 1466 |
/// const ACCESS4_LOOKUP = 0x00000002; |
| 1467 |
/// const ACCESS4_MODIFY = 0x00000004; |
| 1468 |
/// const ACCESS4_EXTEND = 0x00000008; |
| 1469 |
/// const ACCESS4_DELETE = 0x00000010; |
| 1470 |
/// const ACCESS4_EXECUTE = 0x00000020; |
| 1471 |
/// |
| 1472 |
/// struct ACCESS4args { |
| 1473 |
/// /* CURRENT_FH: object */ |
| 1474 |
/// uint32_t access; |
| 1475 |
/// }; |
| 1476 |
/// |
| 1477 |
/// struct ACCESS4resok { |
| 1478 |
/// uint32_t supported; |
| 1479 |
/// uint32_t access; |
| 1480 |
/// }; |
| 1481 |
/// |
| 1482 |
/// union ACCESS4res switch (nfsstat4 status) { |
| 1483 |
/// case NFS4_OK: |
| 1484 |
/// ACCESS4resok resok4; |
| 1485 |
/// default: |
| 1486 |
/// void; |
| 1487 |
/// }; |
| 1488 |
/// |
| 1489 |
/// struct CLOSE4args { |
| 1490 |
/// /* CURRENT_FH: object */ |
| 1491 |
/// seqid4 seqid; |
| 1492 |
/// stateid4 open_stateid; |
| 1493 |
/// }; |
| 1494 |
/// |
| 1495 |
/// union CLOSE4res switch (nfsstat4 status) { |
| 1496 |
/// case NFS4_OK: |
| 1497 |
/// stateid4 open_stateid; |
| 1498 |
/// default: |
| 1499 |
/// void; |
| 1500 |
/// }; |
| 1501 |
/// |
| 1502 |
/// struct COMMIT4args { |
| 1503 |
/// /* CURRENT_FH: file */ |
| 1504 |
/// offset4 offset; |
| 1505 |
|
| 1506 |
|
| 1507 |
|
| 1508 |
<span class="grey">Shepler, et al. Standards Track [Page 27]</span></pre> |
| 1509 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span> |
| 1510 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1511 |
|
| 1512 |
|
| 1513 |
/// count4 count; |
| 1514 |
/// }; |
| 1515 |
/// |
| 1516 |
/// struct COMMIT4resok { |
| 1517 |
/// verifier4 writeverf; |
| 1518 |
/// }; |
| 1519 |
/// |
| 1520 |
/// union COMMIT4res switch (nfsstat4 status) { |
| 1521 |
/// case NFS4_OK: |
| 1522 |
/// COMMIT4resok resok4; |
| 1523 |
/// default: |
| 1524 |
/// void; |
| 1525 |
/// }; |
| 1526 |
/// |
| 1527 |
/// union createtype4 switch (nfs_ftype4 type) { |
| 1528 |
/// case NF4LNK: |
| 1529 |
/// linktext4 linkdata; |
| 1530 |
/// case NF4BLK: |
| 1531 |
/// case NF4CHR: |
| 1532 |
/// specdata4 devdata; |
| 1533 |
/// case NF4SOCK: |
| 1534 |
/// case NF4FIFO: |
| 1535 |
/// case NF4DIR: |
| 1536 |
/// void; |
| 1537 |
/// default: |
| 1538 |
/// void; /* server should return NFS4ERR_BADTYPE */ |
| 1539 |
/// }; |
| 1540 |
/// |
| 1541 |
/// struct CREATE4args { |
| 1542 |
/// /* CURRENT_FH: directory for creation */ |
| 1543 |
/// createtype4 objtype; |
| 1544 |
/// component4 objname; |
| 1545 |
/// fattr4 createattrs; |
| 1546 |
/// }; |
| 1547 |
/// |
| 1548 |
/// struct CREATE4resok { |
| 1549 |
/// change_info4 cinfo; |
| 1550 |
/// bitmap4 attrset; /* attributes set */ |
| 1551 |
/// }; |
| 1552 |
/// |
| 1553 |
/// union CREATE4res switch (nfsstat4 status) { |
| 1554 |
/// case NFS4_OK: |
| 1555 |
/// /* new CURRENTFH: created object */ |
| 1556 |
/// CREATE4resok resok4; |
| 1557 |
/// default: |
| 1558 |
/// void; |
| 1559 |
/// }; |
| 1560 |
/// |
| 1561 |
|
| 1562 |
|
| 1563 |
|
| 1564 |
<span class="grey">Shepler, et al. Standards Track [Page 28]</span></pre> |
| 1565 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span> |
| 1566 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1567 |
|
| 1568 |
|
| 1569 |
/// struct DELEGPURGE4args { |
| 1570 |
/// clientid4 clientid; |
| 1571 |
/// }; |
| 1572 |
/// |
| 1573 |
/// struct DELEGPURGE4res { |
| 1574 |
/// nfsstat4 status; |
| 1575 |
/// }; |
| 1576 |
/// |
| 1577 |
/// struct DELEGRETURN4args { |
| 1578 |
/// /* CURRENT_FH: delegated object */ |
| 1579 |
/// stateid4 deleg_stateid; |
| 1580 |
/// }; |
| 1581 |
/// |
| 1582 |
/// struct DELEGRETURN4res { |
| 1583 |
/// nfsstat4 status; |
| 1584 |
/// }; |
| 1585 |
/// |
| 1586 |
/// struct GETATTR4args { |
| 1587 |
/// /* CURRENT_FH: object */ |
| 1588 |
/// bitmap4 attr_request; |
| 1589 |
/// }; |
| 1590 |
/// |
| 1591 |
/// struct GETATTR4resok { |
| 1592 |
/// fattr4 obj_attributes; |
| 1593 |
/// }; |
| 1594 |
/// |
| 1595 |
/// union GETATTR4res switch (nfsstat4 status) { |
| 1596 |
/// case NFS4_OK: |
| 1597 |
/// GETATTR4resok resok4; |
| 1598 |
/// default: |
| 1599 |
/// void; |
| 1600 |
/// }; |
| 1601 |
/// |
| 1602 |
/// struct GETFH4resok { |
| 1603 |
/// nfs_fh4 object; |
| 1604 |
/// }; |
| 1605 |
/// |
| 1606 |
/// union GETFH4res switch (nfsstat4 status) { |
| 1607 |
/// case NFS4_OK: |
| 1608 |
/// GETFH4resok resok4; |
| 1609 |
/// default: |
| 1610 |
/// void; |
| 1611 |
/// }; |
| 1612 |
/// |
| 1613 |
/// struct LINK4args { |
| 1614 |
/// /* SAVED_FH: source object */ |
| 1615 |
/// /* CURRENT_FH: target directory */ |
| 1616 |
/// component4 newname; |
| 1617 |
|
| 1618 |
|
| 1619 |
|
| 1620 |
<span class="grey">Shepler, et al. Standards Track [Page 29]</span></pre> |
| 1621 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span> |
| 1622 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1623 |
|
| 1624 |
|
| 1625 |
/// }; |
| 1626 |
/// |
| 1627 |
/// struct LINK4resok { |
| 1628 |
/// change_info4 cinfo; |
| 1629 |
/// }; |
| 1630 |
/// |
| 1631 |
/// union LINK4res switch (nfsstat4 status) { |
| 1632 |
/// case NFS4_OK: |
| 1633 |
/// LINK4resok resok4; |
| 1634 |
/// default: |
| 1635 |
/// void; |
| 1636 |
/// }; |
| 1637 |
/// |
| 1638 |
/// /* |
| 1639 |
/// * For LOCK, transition from open_stateid and lock_owner |
| 1640 |
/// * to a lock stateid. |
| 1641 |
/// */ |
| 1642 |
/// struct open_to_lock_owner4 { |
| 1643 |
/// seqid4 open_seqid; |
| 1644 |
/// stateid4 open_stateid; |
| 1645 |
/// seqid4 lock_seqid; |
| 1646 |
/// lock_owner4 lock_owner; |
| 1647 |
/// }; |
| 1648 |
/// |
| 1649 |
/// /* |
| 1650 |
/// * For LOCK, existing lock stateid continues to request new |
| 1651 |
/// * file lock for the same lock_owner and open_stateid. |
| 1652 |
/// */ |
| 1653 |
/// struct exist_lock_owner4 { |
| 1654 |
/// stateid4 lock_stateid; |
| 1655 |
/// seqid4 lock_seqid; |
| 1656 |
/// }; |
| 1657 |
/// |
| 1658 |
/// union locker4 switch (bool new_lock_owner) { |
| 1659 |
/// case TRUE: |
| 1660 |
/// open_to_lock_owner4 open_owner; |
| 1661 |
/// case FALSE: |
| 1662 |
/// exist_lock_owner4 lock_owner; |
| 1663 |
/// }; |
| 1664 |
/// |
| 1665 |
/// /* |
| 1666 |
/// * LOCK/LOCKT/LOCKU: Record lock management |
| 1667 |
/// */ |
| 1668 |
/// struct LOCK4args { |
| 1669 |
/// /* CURRENT_FH: file */ |
| 1670 |
/// nfs_lock_type4 locktype; |
| 1671 |
/// bool reclaim; |
| 1672 |
/// offset4 offset; |
| 1673 |
|
| 1674 |
|
| 1675 |
|
| 1676 |
<span class="grey">Shepler, et al. Standards Track [Page 30]</span></pre> |
| 1677 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span> |
| 1678 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1679 |
|
| 1680 |
|
| 1681 |
/// length4 length; |
| 1682 |
/// locker4 locker; |
| 1683 |
/// }; |
| 1684 |
/// |
| 1685 |
/// struct LOCK4denied { |
| 1686 |
/// offset4 offset; |
| 1687 |
/// length4 length; |
| 1688 |
/// nfs_lock_type4 locktype; |
| 1689 |
/// lock_owner4 owner; |
| 1690 |
/// }; |
| 1691 |
/// |
| 1692 |
/// struct LOCK4resok { |
| 1693 |
/// stateid4 lock_stateid; |
| 1694 |
/// }; |
| 1695 |
/// |
| 1696 |
/// union LOCK4res switch (nfsstat4 status) { |
| 1697 |
/// case NFS4_OK: |
| 1698 |
/// LOCK4resok resok4; |
| 1699 |
/// case NFS4ERR_DENIED: |
| 1700 |
/// LOCK4denied denied; |
| 1701 |
/// default: |
| 1702 |
/// void; |
| 1703 |
/// }; |
| 1704 |
/// |
| 1705 |
/// struct LOCKT4args { |
| 1706 |
/// /* CURRENT_FH: file */ |
| 1707 |
/// nfs_lock_type4 locktype; |
| 1708 |
/// offset4 offset; |
| 1709 |
/// length4 length; |
| 1710 |
/// lock_owner4 owner; |
| 1711 |
/// }; |
| 1712 |
/// |
| 1713 |
/// union LOCKT4res switch (nfsstat4 status) { |
| 1714 |
/// case NFS4ERR_DENIED: |
| 1715 |
/// LOCK4denied denied; |
| 1716 |
/// case NFS4_OK: |
| 1717 |
/// void; |
| 1718 |
/// default: |
| 1719 |
/// void; |
| 1720 |
/// }; |
| 1721 |
/// |
| 1722 |
/// struct LOCKU4args { |
| 1723 |
/// /* CURRENT_FH: file */ |
| 1724 |
/// nfs_lock_type4 locktype; |
| 1725 |
/// seqid4 seqid; |
| 1726 |
/// stateid4 lock_stateid; |
| 1727 |
/// offset4 offset; |
| 1728 |
/// length4 length; |
| 1729 |
|
| 1730 |
|
| 1731 |
|
| 1732 |
<span class="grey">Shepler, et al. Standards Track [Page 31]</span></pre> |
| 1733 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span> |
| 1734 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1735 |
|
| 1736 |
|
| 1737 |
/// }; |
| 1738 |
/// |
| 1739 |
/// union LOCKU4res switch (nfsstat4 status) { |
| 1740 |
/// case NFS4_OK: |
| 1741 |
/// stateid4 lock_stateid; |
| 1742 |
/// default: |
| 1743 |
/// void; |
| 1744 |
/// }; |
| 1745 |
/// |
| 1746 |
/// struct LOOKUP4args { |
| 1747 |
/// /* CURRENT_FH: directory */ |
| 1748 |
/// component4 objname; |
| 1749 |
/// }; |
| 1750 |
/// |
| 1751 |
/// struct LOOKUP4res { |
| 1752 |
/// /* New CURRENT_FH: object */ |
| 1753 |
/// nfsstat4 status; |
| 1754 |
/// }; |
| 1755 |
/// |
| 1756 |
/// struct LOOKUPP4res { |
| 1757 |
/// /* new CURRENT_FH: parent directory */ |
| 1758 |
/// nfsstat4 status; |
| 1759 |
/// }; |
| 1760 |
/// |
| 1761 |
/// struct NVERIFY4args { |
| 1762 |
/// /* CURRENT_FH: object */ |
| 1763 |
/// fattr4 obj_attributes; |
| 1764 |
/// }; |
| 1765 |
/// |
| 1766 |
/// struct NVERIFY4res { |
| 1767 |
/// nfsstat4 status; |
| 1768 |
/// }; |
| 1769 |
/// |
| 1770 |
/// /* |
| 1771 |
/// * Various definitions for OPEN |
| 1772 |
/// */ |
| 1773 |
/// enum createmode4 { |
| 1774 |
/// UNCHECKED4 = 0, |
| 1775 |
/// GUARDED4 = 1, |
| 1776 |
/// /* Deprecated in NFSv4.1. */ |
| 1777 |
/// EXCLUSIVE4 = 2, |
| 1778 |
/// /* |
| 1779 |
/// * New to NFSv4.1. If session is persistent, |
| 1780 |
/// * GUARDED4 MUST be used. Otherwise, use |
| 1781 |
/// * EXCLUSIVE4_1 instead of EXCLUSIVE4. |
| 1782 |
/// */ |
| 1783 |
/// EXCLUSIVE4_1 = 3 |
| 1784 |
/// }; |
| 1785 |
|
| 1786 |
|
| 1787 |
|
| 1788 |
<span class="grey">Shepler, et al. Standards Track [Page 32]</span></pre> |
| 1789 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span> |
| 1790 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1791 |
|
| 1792 |
|
| 1793 |
/// |
| 1794 |
/// struct creatverfattr { |
| 1795 |
/// verifier4 cva_verf; |
| 1796 |
/// fattr4 cva_attrs; |
| 1797 |
/// }; |
| 1798 |
/// |
| 1799 |
/// union createhow4 switch (createmode4 mode) { |
| 1800 |
/// case UNCHECKED4: |
| 1801 |
/// case GUARDED4: |
| 1802 |
/// fattr4 createattrs; |
| 1803 |
/// case EXCLUSIVE4: |
| 1804 |
/// verifier4 createverf; |
| 1805 |
/// case EXCLUSIVE4_1: |
| 1806 |
/// creatverfattr ch_createboth; |
| 1807 |
/// }; |
| 1808 |
/// |
| 1809 |
/// enum opentype4 { |
| 1810 |
/// OPEN4_NOCREATE = 0, |
| 1811 |
/// OPEN4_CREATE = 1 |
| 1812 |
/// }; |
| 1813 |
/// |
| 1814 |
/// union openflag4 switch (opentype4 opentype) { |
| 1815 |
/// case OPEN4_CREATE: |
| 1816 |
/// createhow4 how; |
| 1817 |
/// default: |
| 1818 |
/// void; |
| 1819 |
/// }; |
| 1820 |
/// |
| 1821 |
/// /* Next definitions used for OPEN delegation */ |
| 1822 |
/// enum limit_by4 { |
| 1823 |
/// NFS_LIMIT_SIZE = 1, |
| 1824 |
/// NFS_LIMIT_BLOCKS = 2 |
| 1825 |
/// /* others as needed */ |
| 1826 |
/// }; |
| 1827 |
/// |
| 1828 |
/// struct nfs_modified_limit4 { |
| 1829 |
/// uint32_t num_blocks; |
| 1830 |
/// uint32_t bytes_per_block; |
| 1831 |
/// }; |
| 1832 |
/// |
| 1833 |
/// union nfs_space_limit4 switch (limit_by4 limitby) { |
| 1834 |
/// /* limit specified as file size */ |
| 1835 |
/// case NFS_LIMIT_SIZE: |
| 1836 |
/// uint64_t filesize; |
| 1837 |
/// /* limit specified by number of blocks */ |
| 1838 |
/// case NFS_LIMIT_BLOCKS: |
| 1839 |
/// nfs_modified_limit4 mod_blocks; |
| 1840 |
/// } ; |
| 1841 |
|
| 1842 |
|
| 1843 |
|
| 1844 |
<span class="grey">Shepler, et al. Standards Track [Page 33]</span></pre> |
| 1845 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span> |
| 1846 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1847 |
|
| 1848 |
|
| 1849 |
/// |
| 1850 |
/// /* |
| 1851 |
/// * Share Access and Deny constants for open argument |
| 1852 |
/// */ |
| 1853 |
/// const OPEN4_SHARE_ACCESS_READ = 0x00000001; |
| 1854 |
/// const OPEN4_SHARE_ACCESS_WRITE = 0x00000002; |
| 1855 |
/// const OPEN4_SHARE_ACCESS_BOTH = 0x00000003; |
| 1856 |
/// |
| 1857 |
/// const OPEN4_SHARE_DENY_NONE = 0x00000000; |
| 1858 |
/// const OPEN4_SHARE_DENY_READ = 0x00000001; |
| 1859 |
/// const OPEN4_SHARE_DENY_WRITE = 0x00000002; |
| 1860 |
/// const OPEN4_SHARE_DENY_BOTH = 0x00000003; |
| 1861 |
/// |
| 1862 |
/// |
| 1863 |
/// /* new flags for share_access field of OPEN4args */ |
| 1864 |
/// const OPEN4_SHARE_ACCESS_WANT_DELEG_MASK = 0xFF00; |
| 1865 |
/// const OPEN4_SHARE_ACCESS_WANT_NO_PREFERENCE = 0x0000; |
| 1866 |
/// const OPEN4_SHARE_ACCESS_WANT_READ_DELEG = 0x0100; |
| 1867 |
/// const OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG = 0x0200; |
| 1868 |
/// const OPEN4_SHARE_ACCESS_WANT_ANY_DELEG = 0x0300; |
| 1869 |
/// const OPEN4_SHARE_ACCESS_WANT_NO_DELEG = 0x0400; |
| 1870 |
/// const OPEN4_SHARE_ACCESS_WANT_CANCEL = 0x0500; |
| 1871 |
/// |
| 1872 |
/// const |
| 1873 |
/// OPEN4_SHARE_ACCESS_WANT_SIGNAL_DELEG_WHEN_RESRC_AVAIL |
| 1874 |
/// = 0x10000; |
| 1875 |
/// |
| 1876 |
/// const |
| 1877 |
/// OPEN4_SHARE_ACCESS_WANT_PUSH_DELEG_WHEN_UNCONTENDED |
| 1878 |
/// = 0x20000; |
| 1879 |
/// |
| 1880 |
/// enum open_delegation_type4 { |
| 1881 |
/// OPEN_DELEGATE_NONE = 0, |
| 1882 |
/// OPEN_DELEGATE_READ = 1, |
| 1883 |
/// OPEN_DELEGATE_WRITE = 2, |
| 1884 |
/// OPEN_DELEGATE_NONE_EXT = 3 /* new to v4.1 */ |
| 1885 |
/// }; |
| 1886 |
/// |
| 1887 |
/// enum open_claim_type4 { |
| 1888 |
/// /* |
| 1889 |
/// * Not a reclaim. |
| 1890 |
/// */ |
| 1891 |
/// CLAIM_NULL = 0, |
| 1892 |
/// |
| 1893 |
/// CLAIM_PREVIOUS = 1, |
| 1894 |
/// CLAIM_DELEGATE_CUR = 2, |
| 1895 |
/// CLAIM_DELEGATE_PREV = 3, |
| 1896 |
/// |
| 1897 |
|
| 1898 |
|
| 1899 |
|
| 1900 |
<span class="grey">Shepler, et al. Standards Track [Page 34]</span></pre> |
| 1901 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span> |
| 1902 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1903 |
|
| 1904 |
|
| 1905 |
/// /* |
| 1906 |
/// * Not a reclaim. |
| 1907 |
/// * |
| 1908 |
/// * Like CLAIM_NULL, but object identified |
| 1909 |
/// * by the current filehandle. |
| 1910 |
/// */ |
| 1911 |
/// CLAIM_FH = 4, /* new to v4.1 */ |
| 1912 |
/// |
| 1913 |
/// /* |
| 1914 |
/// * Like CLAIM_DELEGATE_CUR, but object identified |
| 1915 |
/// * by current filehandle. |
| 1916 |
/// */ |
| 1917 |
/// CLAIM_DELEG_CUR_FH = 5, /* new to v4.1 */ |
| 1918 |
/// |
| 1919 |
/// /* |
| 1920 |
/// * Like CLAIM_DELEGATE_PREV, but object identified |
| 1921 |
/// * by current filehandle. |
| 1922 |
/// */ |
| 1923 |
/// CLAIM_DELEG_PREV_FH = 6 /* new to v4.1 */ |
| 1924 |
/// }; |
| 1925 |
/// |
| 1926 |
/// struct open_claim_delegate_cur4 { |
| 1927 |
/// stateid4 delegate_stateid; |
| 1928 |
/// component4 file; |
| 1929 |
/// }; |
| 1930 |
/// |
| 1931 |
/// union open_claim4 switch (open_claim_type4 claim) { |
| 1932 |
/// /* |
| 1933 |
/// * No special rights to file. |
| 1934 |
/// * Ordinary OPEN of the specified file. |
| 1935 |
/// */ |
| 1936 |
/// case CLAIM_NULL: |
| 1937 |
/// /* CURRENT_FH: directory */ |
| 1938 |
/// component4 file; |
| 1939 |
/// /* |
| 1940 |
/// * Right to the file established by an |
| 1941 |
/// * open previous to server reboot. File |
| 1942 |
/// * identified by filehandle obtained at |
| 1943 |
/// * that time rather than by name. |
| 1944 |
/// */ |
| 1945 |
/// case CLAIM_PREVIOUS: |
| 1946 |
/// /* CURRENT_FH: file being reclaimed */ |
| 1947 |
/// open_delegation_type4 delegate_type; |
| 1948 |
/// |
| 1949 |
/// /* |
| 1950 |
/// * Right to file based on a delegation |
| 1951 |
/// * granted by the server. File is |
| 1952 |
/// * specified by name. |
| 1953 |
|
| 1954 |
|
| 1955 |
|
| 1956 |
<span class="grey">Shepler, et al. Standards Track [Page 35]</span></pre> |
| 1957 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span> |
| 1958 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 1959 |
|
| 1960 |
|
| 1961 |
/// */ |
| 1962 |
/// case CLAIM_DELEGATE_CUR: |
| 1963 |
/// /* CURRENT_FH: directory */ |
| 1964 |
/// open_claim_delegate_cur4 delegate_cur_info; |
| 1965 |
/// |
| 1966 |
/// /* |
| 1967 |
/// * Right to file based on a delegation |
| 1968 |
/// * granted to a previous boot instance |
| 1969 |
/// * of the client. File is specified by name. |
| 1970 |
/// */ |
| 1971 |
/// case CLAIM_DELEGATE_PREV: |
| 1972 |
/// /* CURRENT_FH: directory */ |
| 1973 |
/// component4 file_delegate_prev; |
| 1974 |
/// |
| 1975 |
/// /* |
| 1976 |
/// * Like CLAIM_NULL. No special rights |
| 1977 |
/// * to file. Ordinary OPEN of the |
| 1978 |
/// * specified file by current filehandle. |
| 1979 |
/// */ |
| 1980 |
/// case CLAIM_FH: /* new to v4.1 */ |
| 1981 |
/// /* CURRENT_FH: regular file to open */ |
| 1982 |
/// void; |
| 1983 |
/// |
| 1984 |
/// /* |
| 1985 |
/// * Like CLAIM_DELEGATE_PREV. Right to file based on a |
| 1986 |
/// * delegation granted to a previous boot |
| 1987 |
/// * instance of the client. File is identified by |
| 1988 |
/// * by filehandle. |
| 1989 |
/// */ |
| 1990 |
/// case CLAIM_DELEG_PREV_FH: /* new to v4.1 */ |
| 1991 |
/// /* CURRENT_FH: file being opened */ |
| 1992 |
/// void; |
| 1993 |
/// |
| 1994 |
/// /* |
| 1995 |
/// * Like CLAIM_DELEGATE_CUR. Right to file based on |
| 1996 |
/// * a delegation granted by the server. |
| 1997 |
/// * File is identified by filehandle. |
| 1998 |
/// */ |
| 1999 |
/// case CLAIM_DELEG_CUR_FH: /* new to v4.1 */ |
| 2000 |
/// /* CURRENT_FH: file being opened */ |
| 2001 |
/// stateid4 oc_delegate_stateid; |
| 2002 |
/// |
| 2003 |
/// }; |
| 2004 |
/// |
| 2005 |
/// /* |
| 2006 |
/// * OPEN: Open a file, potentially receiving an open delegation |
| 2007 |
/// */ |
| 2008 |
/// struct OPEN4args { |
| 2009 |
|
| 2010 |
|
| 2011 |
|
| 2012 |
<span class="grey">Shepler, et al. Standards Track [Page 36]</span></pre> |
| 2013 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span> |
| 2014 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2015 |
|
| 2016 |
|
| 2017 |
/// seqid4 seqid; |
| 2018 |
/// uint32_t share_access; |
| 2019 |
/// uint32_t share_deny; |
| 2020 |
/// open_owner4 owner; |
| 2021 |
/// openflag4 openhow; |
| 2022 |
/// open_claim4 claim; |
| 2023 |
/// }; |
| 2024 |
/// |
| 2025 |
/// struct open_read_delegation4 { |
| 2026 |
/// stateid4 stateid; /* Stateid for delegation*/ |
| 2027 |
/// bool recall; /* Pre-recalled flag for |
| 2028 |
/// delegations obtained |
| 2029 |
/// by reclaim (CLAIM_PREVIOUS) */ |
| 2030 |
/// |
| 2031 |
/// nfsace4 permissions; /* Defines users who don't |
| 2032 |
/// need an ACCESS call to |
| 2033 |
/// open for read */ |
| 2034 |
/// }; |
| 2035 |
/// |
| 2036 |
/// struct open_write_delegation4 { |
| 2037 |
/// stateid4 stateid; /* Stateid for delegation */ |
| 2038 |
/// bool recall; /* Pre-recalled flag for |
| 2039 |
/// delegations obtained |
| 2040 |
/// by reclaim |
| 2041 |
/// (CLAIM_PREVIOUS) */ |
| 2042 |
/// |
| 2043 |
/// nfs_space_limit4 |
| 2044 |
/// space_limit; /* Defines condition that |
| 2045 |
/// the client must check to |
| 2046 |
/// determine whether the |
| 2047 |
/// file needs to be flushed |
| 2048 |
/// to the server on close. */ |
| 2049 |
/// |
| 2050 |
/// nfsace4 permissions; /* Defines users who don't |
| 2051 |
/// need an ACCESS call as |
| 2052 |
/// part of a delegated |
| 2053 |
/// open. */ |
| 2054 |
/// }; |
| 2055 |
/// |
| 2056 |
/// |
| 2057 |
/// enum why_no_delegation4 { /* new to v4.1 */ |
| 2058 |
/// WND4_NOT_WANTED = 0, |
| 2059 |
/// WND4_CONTENTION = 1, |
| 2060 |
/// WND4_RESOURCE = 2, |
| 2061 |
/// WND4_NOT_SUPP_FTYPE = 3, |
| 2062 |
/// WND4_WRITE_DELEG_NOT_SUPP_FTYPE = 4, |
| 2063 |
/// WND4_NOT_SUPP_UPGRADE = 5, |
| 2064 |
/// WND4_NOT_SUPP_DOWNGRADE = 6, |
| 2065 |
|
| 2066 |
|
| 2067 |
|
| 2068 |
<span class="grey">Shepler, et al. Standards Track [Page 37]</span></pre> |
| 2069 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span> |
| 2070 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2071 |
|
| 2072 |
|
| 2073 |
/// WND4_CANCELLED = 7, |
| 2074 |
/// WND4_IS_DIR = 8 |
| 2075 |
/// }; |
| 2076 |
/// |
| 2077 |
/// union open_none_delegation4 /* new to v4.1 */ |
| 2078 |
/// switch (why_no_delegation4 ond_why) { |
| 2079 |
/// case WND4_CONTENTION: |
| 2080 |
/// bool ond_server_will_push_deleg; |
| 2081 |
/// case WND4_RESOURCE: |
| 2082 |
/// bool ond_server_will_signal_avail; |
| 2083 |
/// default: |
| 2084 |
/// void; |
| 2085 |
/// }; |
| 2086 |
/// |
| 2087 |
/// union open_delegation4 |
| 2088 |
/// switch (open_delegation_type4 delegation_type) { |
| 2089 |
/// case OPEN_DELEGATE_NONE: |
| 2090 |
/// void; |
| 2091 |
/// case OPEN_DELEGATE_READ: |
| 2092 |
/// open_read_delegation4 read; |
| 2093 |
/// case OPEN_DELEGATE_WRITE: |
| 2094 |
/// open_write_delegation4 write; |
| 2095 |
/// case OPEN_DELEGATE_NONE_EXT: /* new to v4.1 */ |
| 2096 |
/// open_none_delegation4 od_whynone; |
| 2097 |
/// }; |
| 2098 |
/// |
| 2099 |
/// /* |
| 2100 |
/// * Result flags |
| 2101 |
/// */ |
| 2102 |
/// |
| 2103 |
/// /* Client must confirm open */ |
| 2104 |
/// const OPEN4_RESULT_CONFIRM = 0x00000002; |
| 2105 |
/// /* Type of file locking behavior at the server */ |
| 2106 |
/// const OPEN4_RESULT_LOCKTYPE_POSIX = 0x00000004; |
| 2107 |
/// /* Server will preserve file if removed while open */ |
| 2108 |
/// const OPEN4_RESULT_PRESERVE_UNLINKED = 0x00000008; |
| 2109 |
/// |
| 2110 |
/// /* |
| 2111 |
/// * Server may use CB_NOTIFY_LOCK on locks |
| 2112 |
/// * derived from this open |
| 2113 |
/// */ |
| 2114 |
/// const OPEN4_RESULT_MAY_NOTIFY_LOCK = 0x00000020; |
| 2115 |
/// |
| 2116 |
/// struct OPEN4resok { |
| 2117 |
/// stateid4 stateid; /* Stateid for open */ |
| 2118 |
/// change_info4 cinfo; /* Directory Change Info */ |
| 2119 |
/// uint32_t rflags; /* Result flags */ |
| 2120 |
/// bitmap4 attrset; /* attribute set for create*/ |
| 2121 |
|
| 2122 |
|
| 2123 |
|
| 2124 |
<span class="grey">Shepler, et al. Standards Track [Page 38]</span></pre> |
| 2125 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span> |
| 2126 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2127 |
|
| 2128 |
|
| 2129 |
/// open_delegation4 delegation; /* Info on any open |
| 2130 |
/// delegation */ |
| 2131 |
/// }; |
| 2132 |
/// |
| 2133 |
/// union OPEN4res switch (nfsstat4 status) { |
| 2134 |
/// case NFS4_OK: |
| 2135 |
/// /* New CURRENT_FH: opened file */ |
| 2136 |
/// OPEN4resok resok4; |
| 2137 |
/// default: |
| 2138 |
/// void; |
| 2139 |
/// }; |
| 2140 |
/// |
| 2141 |
/// struct OPENATTR4args { |
| 2142 |
/// /* CURRENT_FH: object */ |
| 2143 |
/// bool createdir; |
| 2144 |
/// }; |
| 2145 |
/// |
| 2146 |
/// struct OPENATTR4res { |
| 2147 |
/// /* |
| 2148 |
/// * If status is NFS4_OK, |
| 2149 |
/// * new CURRENT_FH: named attribute |
| 2150 |
/// * directory |
| 2151 |
/// */ |
| 2152 |
/// nfsstat4 status; |
| 2153 |
/// }; |
| 2154 |
/// |
| 2155 |
/// /* obsolete in NFSv4.1 */ |
| 2156 |
/// struct OPEN_CONFIRM4args { |
| 2157 |
/// /* CURRENT_FH: opened file */ |
| 2158 |
/// stateid4 open_stateid; |
| 2159 |
/// seqid4 seqid; |
| 2160 |
/// }; |
| 2161 |
/// |
| 2162 |
/// struct OPEN_CONFIRM4resok { |
| 2163 |
/// stateid4 open_stateid; |
| 2164 |
/// }; |
| 2165 |
/// |
| 2166 |
/// union OPEN_CONFIRM4res switch (nfsstat4 status) { |
| 2167 |
/// case NFS4_OK: |
| 2168 |
/// OPEN_CONFIRM4resok resok4; |
| 2169 |
/// default: |
| 2170 |
/// void; |
| 2171 |
/// }; |
| 2172 |
/// |
| 2173 |
/// struct OPEN_DOWNGRADE4args { |
| 2174 |
/// /* CURRENT_FH: opened file */ |
| 2175 |
/// stateid4 open_stateid; |
| 2176 |
/// seqid4 seqid; |
| 2177 |
|
| 2178 |
|
| 2179 |
|
| 2180 |
<span class="grey">Shepler, et al. Standards Track [Page 39]</span></pre> |
| 2181 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span> |
| 2182 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2183 |
|
| 2184 |
|
| 2185 |
/// uint32_t share_access; |
| 2186 |
/// uint32_t share_deny; |
| 2187 |
/// }; |
| 2188 |
/// |
| 2189 |
/// struct OPEN_DOWNGRADE4resok { |
| 2190 |
/// stateid4 open_stateid; |
| 2191 |
/// }; |
| 2192 |
/// |
| 2193 |
/// union OPEN_DOWNGRADE4res switch(nfsstat4 status) { |
| 2194 |
/// case NFS4_OK: |
| 2195 |
/// OPEN_DOWNGRADE4resok resok4; |
| 2196 |
/// default: |
| 2197 |
/// void; |
| 2198 |
/// }; |
| 2199 |
/// |
| 2200 |
/// struct PUTFH4args { |
| 2201 |
/// nfs_fh4 object; |
| 2202 |
/// }; |
| 2203 |
/// |
| 2204 |
/// struct PUTFH4res { |
| 2205 |
/// /* |
| 2206 |
/// * If status is NFS4_OK, |
| 2207 |
/// * new CURRENT_FH: argument to PUTFH |
| 2208 |
/// */ |
| 2209 |
/// nfsstat4 status; |
| 2210 |
/// }; |
| 2211 |
/// |
| 2212 |
/// struct PUTPUBFH4res { |
| 2213 |
/// /* |
| 2214 |
/// * If status is NFS4_OK, |
| 2215 |
/// * new CURRENT_FH: public fh |
| 2216 |
/// */ |
| 2217 |
/// nfsstat4 status; |
| 2218 |
/// }; |
| 2219 |
/// |
| 2220 |
/// struct PUTROOTFH4res { |
| 2221 |
/// /* |
| 2222 |
/// * If status is NFS4_OK, |
| 2223 |
/// * new CURRENT_FH: root fh |
| 2224 |
/// */ |
| 2225 |
/// nfsstat4 status; |
| 2226 |
/// }; |
| 2227 |
/// |
| 2228 |
/// struct READ4args { |
| 2229 |
/// /* CURRENT_FH: file */ |
| 2230 |
/// stateid4 stateid; |
| 2231 |
/// offset4 offset; |
| 2232 |
/// count4 count; |
| 2233 |
|
| 2234 |
|
| 2235 |
|
| 2236 |
<span class="grey">Shepler, et al. Standards Track [Page 40]</span></pre> |
| 2237 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span> |
| 2238 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2239 |
|
| 2240 |
|
| 2241 |
/// }; |
| 2242 |
/// |
| 2243 |
/// struct READ4resok { |
| 2244 |
/// bool eof; |
| 2245 |
/// opaque data<>; |
| 2246 |
/// }; |
| 2247 |
/// |
| 2248 |
/// union READ4res switch (nfsstat4 status) { |
| 2249 |
/// case NFS4_OK: |
| 2250 |
/// READ4resok resok4; |
| 2251 |
/// default: |
| 2252 |
/// void; |
| 2253 |
/// }; |
| 2254 |
/// |
| 2255 |
/// struct READDIR4args { |
| 2256 |
/// /* CURRENT_FH: directory */ |
| 2257 |
/// nfs_cookie4 cookie; |
| 2258 |
/// verifier4 cookieverf; |
| 2259 |
/// count4 dircount; |
| 2260 |
/// count4 maxcount; |
| 2261 |
/// bitmap4 attr_request; |
| 2262 |
/// }; |
| 2263 |
/// |
| 2264 |
/// struct entry4 { |
| 2265 |
/// nfs_cookie4 cookie; |
| 2266 |
/// component4 name; |
| 2267 |
/// fattr4 attrs; |
| 2268 |
/// entry4 *nextentry; |
| 2269 |
/// }; |
| 2270 |
/// |
| 2271 |
/// struct dirlist4 { |
| 2272 |
/// entry4 *entries; |
| 2273 |
/// bool eof; |
| 2274 |
/// }; |
| 2275 |
/// |
| 2276 |
/// struct READDIR4resok { |
| 2277 |
/// verifier4 cookieverf; |
| 2278 |
/// dirlist4 reply; |
| 2279 |
/// }; |
| 2280 |
/// |
| 2281 |
/// |
| 2282 |
/// union READDIR4res switch (nfsstat4 status) { |
| 2283 |
/// case NFS4_OK: |
| 2284 |
/// READDIR4resok resok4; |
| 2285 |
/// default: |
| 2286 |
/// void; |
| 2287 |
/// }; |
| 2288 |
/// |
| 2289 |
|
| 2290 |
|
| 2291 |
|
| 2292 |
<span class="grey">Shepler, et al. Standards Track [Page 41]</span></pre> |
| 2293 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span> |
| 2294 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2295 |
|
| 2296 |
|
| 2297 |
/// |
| 2298 |
/// struct READLINK4resok { |
| 2299 |
/// linktext4 link; |
| 2300 |
/// }; |
| 2301 |
/// |
| 2302 |
/// union READLINK4res switch (nfsstat4 status) { |
| 2303 |
/// case NFS4_OK: |
| 2304 |
/// READLINK4resok resok4; |
| 2305 |
/// default: |
| 2306 |
/// void; |
| 2307 |
/// }; |
| 2308 |
/// |
| 2309 |
/// struct REMOVE4args { |
| 2310 |
/// /* CURRENT_FH: directory */ |
| 2311 |
/// component4 target; |
| 2312 |
/// }; |
| 2313 |
/// |
| 2314 |
/// struct REMOVE4resok { |
| 2315 |
/// change_info4 cinfo; |
| 2316 |
/// }; |
| 2317 |
/// |
| 2318 |
/// union REMOVE4res switch (nfsstat4 status) { |
| 2319 |
/// case NFS4_OK: |
| 2320 |
/// REMOVE4resok resok4; |
| 2321 |
/// default: |
| 2322 |
/// void; |
| 2323 |
/// }; |
| 2324 |
/// |
| 2325 |
/// struct RENAME4args { |
| 2326 |
/// /* SAVED_FH: source directory */ |
| 2327 |
/// component4 oldname; |
| 2328 |
/// /* CURRENT_FH: target directory */ |
| 2329 |
/// component4 newname; |
| 2330 |
/// }; |
| 2331 |
/// |
| 2332 |
/// struct RENAME4resok { |
| 2333 |
/// change_info4 source_cinfo; |
| 2334 |
/// change_info4 target_cinfo; |
| 2335 |
/// }; |
| 2336 |
/// |
| 2337 |
/// union RENAME4res switch (nfsstat4 status) { |
| 2338 |
/// case NFS4_OK: |
| 2339 |
/// RENAME4resok resok4; |
| 2340 |
/// default: |
| 2341 |
/// void; |
| 2342 |
/// }; |
| 2343 |
/// |
| 2344 |
/// /* Obsolete in NFSv4.1 */ |
| 2345 |
|
| 2346 |
|
| 2347 |
|
| 2348 |
<span class="grey">Shepler, et al. Standards Track [Page 42]</span></pre> |
| 2349 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span> |
| 2350 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2351 |
|
| 2352 |
|
| 2353 |
/// struct RENEW4args { |
| 2354 |
/// clientid4 clientid; |
| 2355 |
/// }; |
| 2356 |
/// |
| 2357 |
/// struct RENEW4res { |
| 2358 |
/// nfsstat4 status; |
| 2359 |
/// }; |
| 2360 |
/// |
| 2361 |
/// struct RESTOREFH4res { |
| 2362 |
/// /* |
| 2363 |
/// * If status is NFS4_OK, |
| 2364 |
/// * new CURRENT_FH: value of saved fh |
| 2365 |
/// */ |
| 2366 |
/// nfsstat4 status; |
| 2367 |
/// }; |
| 2368 |
/// |
| 2369 |
/// struct SAVEFH4res { |
| 2370 |
/// /* |
| 2371 |
/// * If status is NFS4_OK, |
| 2372 |
/// * new SAVED_FH: value of current fh |
| 2373 |
/// */ |
| 2374 |
/// nfsstat4 status; |
| 2375 |
/// }; |
| 2376 |
/// |
| 2377 |
/// struct SECINFO4args { |
| 2378 |
/// /* CURRENT_FH: directory */ |
| 2379 |
/// component4 name; |
| 2380 |
/// }; |
| 2381 |
/// |
| 2382 |
/// /* |
| 2383 |
/// * From <a href="./rfc2203">RFC 2203</a> |
| 2384 |
/// */ |
| 2385 |
/// enum rpc_gss_svc_t { |
| 2386 |
/// RPC_GSS_SVC_NONE = 1, |
| 2387 |
/// RPC_GSS_SVC_INTEGRITY = 2, |
| 2388 |
/// RPC_GSS_SVC_PRIVACY = 3 |
| 2389 |
/// }; |
| 2390 |
/// |
| 2391 |
/// struct rpcsec_gss_info { |
| 2392 |
/// sec_oid4 oid; |
| 2393 |
/// qop4 qop; |
| 2394 |
/// rpc_gss_svc_t service; |
| 2395 |
/// }; |
| 2396 |
/// |
| 2397 |
/// /* RPCSEC_GSS has a value of '6' - See <a href="./rfc2203">RFC 2203</a> */ |
| 2398 |
/// union secinfo4 switch (uint32_t flavor) { |
| 2399 |
/// case RPCSEC_GSS: |
| 2400 |
/// rpcsec_gss_info flavor_info; |
| 2401 |
|
| 2402 |
|
| 2403 |
|
| 2404 |
<span class="grey">Shepler, et al. Standards Track [Page 43]</span></pre> |
| 2405 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span> |
| 2406 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2407 |
|
| 2408 |
|
| 2409 |
/// default: |
| 2410 |
/// void; |
| 2411 |
/// }; |
| 2412 |
/// |
| 2413 |
/// typedef secinfo4 SECINFO4resok<>; |
| 2414 |
/// |
| 2415 |
/// union SECINFO4res switch (nfsstat4 status) { |
| 2416 |
/// case NFS4_OK: |
| 2417 |
/// /* CURRENTFH: consumed */ |
| 2418 |
/// SECINFO4resok resok4; |
| 2419 |
/// default: |
| 2420 |
/// void; |
| 2421 |
/// }; |
| 2422 |
/// |
| 2423 |
/// struct SETATTR4args { |
| 2424 |
/// /* CURRENT_FH: target object */ |
| 2425 |
/// stateid4 stateid; |
| 2426 |
/// fattr4 obj_attributes; |
| 2427 |
/// }; |
| 2428 |
/// |
| 2429 |
/// struct SETATTR4res { |
| 2430 |
/// nfsstat4 status; |
| 2431 |
/// bitmap4 attrsset; |
| 2432 |
/// }; |
| 2433 |
/// |
| 2434 |
/// /* Obsolete in NFSv4.1 */ |
| 2435 |
/// struct SETCLIENTID4args { |
| 2436 |
/// nfs_client_id4 client; |
| 2437 |
/// cb_client4 callback; |
| 2438 |
/// uint32_t callback_ident; |
| 2439 |
/// }; |
| 2440 |
/// |
| 2441 |
/// struct SETCLIENTID4resok { |
| 2442 |
/// clientid4 clientid; |
| 2443 |
/// verifier4 setclientid_confirm; |
| 2444 |
/// }; |
| 2445 |
/// |
| 2446 |
/// union SETCLIENTID4res switch (nfsstat4 status) { |
| 2447 |
/// case NFS4_OK: |
| 2448 |
/// SETCLIENTID4resok resok4; |
| 2449 |
/// case NFS4ERR_CLID_INUSE: |
| 2450 |
/// clientaddr4 client_using; |
| 2451 |
/// default: |
| 2452 |
/// void; |
| 2453 |
/// }; |
| 2454 |
/// |
| 2455 |
/// /* Obsolete in NFSv4.1 */ |
| 2456 |
/// struct SETCLIENTID_CONFIRM4args { |
| 2457 |
|
| 2458 |
|
| 2459 |
|
| 2460 |
<span class="grey">Shepler, et al. Standards Track [Page 44]</span></pre> |
| 2461 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span> |
| 2462 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2463 |
|
| 2464 |
|
| 2465 |
/// clientid4 clientid; |
| 2466 |
/// verifier4 setclientid_confirm; |
| 2467 |
/// }; |
| 2468 |
/// |
| 2469 |
/// struct SETCLIENTID_CONFIRM4res { |
| 2470 |
/// nfsstat4 status; |
| 2471 |
/// }; |
| 2472 |
/// |
| 2473 |
/// struct VERIFY4args { |
| 2474 |
/// /* CURRENT_FH: object */ |
| 2475 |
/// fattr4 obj_attributes; |
| 2476 |
/// }; |
| 2477 |
/// |
| 2478 |
/// struct VERIFY4res { |
| 2479 |
/// nfsstat4 status; |
| 2480 |
/// }; |
| 2481 |
/// |
| 2482 |
/// enum stable_how4 { |
| 2483 |
/// UNSTABLE4 = 0, |
| 2484 |
/// DATA_SYNC4 = 1, |
| 2485 |
/// FILE_SYNC4 = 2 |
| 2486 |
/// }; |
| 2487 |
/// |
| 2488 |
/// struct WRITE4args { |
| 2489 |
/// /* CURRENT_FH: file */ |
| 2490 |
/// stateid4 stateid; |
| 2491 |
/// offset4 offset; |
| 2492 |
/// stable_how4 stable; |
| 2493 |
/// opaque data<>; |
| 2494 |
/// }; |
| 2495 |
/// |
| 2496 |
/// struct WRITE4resok { |
| 2497 |
/// count4 count; |
| 2498 |
/// stable_how4 committed; |
| 2499 |
/// verifier4 writeverf; |
| 2500 |
/// }; |
| 2501 |
/// |
| 2502 |
/// union WRITE4res switch (nfsstat4 status) { |
| 2503 |
/// case NFS4_OK: |
| 2504 |
/// WRITE4resok resok4; |
| 2505 |
/// default: |
| 2506 |
/// void; |
| 2507 |
/// }; |
| 2508 |
/// |
| 2509 |
/// /* Obsolete in NFSv4.1 */ |
| 2510 |
/// struct RELEASE_LOCKOWNER4args { |
| 2511 |
/// lock_owner4 lock_owner; |
| 2512 |
/// }; |
| 2513 |
|
| 2514 |
|
| 2515 |
|
| 2516 |
<span class="grey">Shepler, et al. Standards Track [Page 45]</span></pre> |
| 2517 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-46" ></span> |
| 2518 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2519 |
|
| 2520 |
|
| 2521 |
/// |
| 2522 |
/// struct RELEASE_LOCKOWNER4res { |
| 2523 |
/// nfsstat4 status; |
| 2524 |
/// }; |
| 2525 |
/// |
| 2526 |
/// struct ILLEGAL4res { |
| 2527 |
/// nfsstat4 status; |
| 2528 |
/// }; |
| 2529 |
/// |
| 2530 |
/// typedef opaque gsshandle4_t<>; |
| 2531 |
/// |
| 2532 |
/// struct gss_cb_handles4 { |
| 2533 |
/// rpc_gss_svc_t gcbp_service; /* <a href="./rfc2203">RFC 2203</a> */ |
| 2534 |
/// gsshandle4_t gcbp_handle_from_server; |
| 2535 |
/// gsshandle4_t gcbp_handle_from_client; |
| 2536 |
/// }; |
| 2537 |
/// |
| 2538 |
/// union callback_sec_parms4 switch (uint32_t cb_secflavor) { |
| 2539 |
/// case AUTH_NONE: |
| 2540 |
/// void; |
| 2541 |
/// case AUTH_SYS: |
| 2542 |
/// authsys_parms cbsp_sys_cred; /* <a href="./rfc1831">RFC 1831</a> */ |
| 2543 |
/// case RPCSEC_GSS: |
| 2544 |
/// gss_cb_handles4 cbsp_gss_handles; |
| 2545 |
/// }; |
| 2546 |
/// |
| 2547 |
/// struct BACKCHANNEL_CTL4args { |
| 2548 |
/// uint32_t bca_cb_program; |
| 2549 |
/// callback_sec_parms4 bca_sec_parms<>; |
| 2550 |
/// }; |
| 2551 |
/// |
| 2552 |
/// struct BACKCHANNEL_CTL4res { |
| 2553 |
/// nfsstat4 bcr_status; |
| 2554 |
/// }; |
| 2555 |
/// |
| 2556 |
/// enum channel_dir_from_client4 { |
| 2557 |
/// CDFC4_FORE = 0x1, |
| 2558 |
/// CDFC4_BACK = 0x2, |
| 2559 |
/// CDFC4_FORE_OR_BOTH = 0x3, |
| 2560 |
/// CDFC4_BACK_OR_BOTH = 0x7 |
| 2561 |
/// }; |
| 2562 |
/// |
| 2563 |
/// struct BIND_CONN_TO_SESSION4args { |
| 2564 |
/// sessionid4 bctsa_sessid; |
| 2565 |
/// |
| 2566 |
/// channel_dir_from_client4 |
| 2567 |
/// bctsa_dir; |
| 2568 |
/// |
| 2569 |
|
| 2570 |
|
| 2571 |
|
| 2572 |
<span class="grey">Shepler, et al. Standards Track [Page 46]</span></pre> |
| 2573 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-47" ></span> |
| 2574 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2575 |
|
| 2576 |
|
| 2577 |
/// bool bctsa_use_conn_in_rdma_mode; |
| 2578 |
/// }; |
| 2579 |
/// |
| 2580 |
/// enum channel_dir_from_server4 { |
| 2581 |
/// CDFS4_FORE = 0x1, |
| 2582 |
/// CDFS4_BACK = 0x2, |
| 2583 |
/// CDFS4_BOTH = 0x3 |
| 2584 |
/// }; |
| 2585 |
/// |
| 2586 |
/// struct BIND_CONN_TO_SESSION4resok { |
| 2587 |
/// sessionid4 bctsr_sessid; |
| 2588 |
/// |
| 2589 |
/// channel_dir_from_server4 |
| 2590 |
/// bctsr_dir; |
| 2591 |
/// |
| 2592 |
/// bool bctsr_use_conn_in_rdma_mode; |
| 2593 |
/// }; |
| 2594 |
/// |
| 2595 |
/// union BIND_CONN_TO_SESSION4res |
| 2596 |
/// switch (nfsstat4 bctsr_status) { |
| 2597 |
/// |
| 2598 |
/// case NFS4_OK: |
| 2599 |
/// BIND_CONN_TO_SESSION4resok |
| 2600 |
/// bctsr_resok4; |
| 2601 |
/// |
| 2602 |
/// default: void; |
| 2603 |
/// }; |
| 2604 |
/// |
| 2605 |
/// const EXCHGID4_FLAG_SUPP_MOVED_REFER = 0x00000001; |
| 2606 |
/// const EXCHGID4_FLAG_SUPP_MOVED_MIGR = 0x00000002; |
| 2607 |
/// |
| 2608 |
/// const EXCHGID4_FLAG_BIND_PRINC_STATEID = 0x00000100; |
| 2609 |
/// |
| 2610 |
/// const EXCHGID4_FLAG_USE_NON_PNFS = 0x00010000; |
| 2611 |
/// const EXCHGID4_FLAG_USE_PNFS_MDS = 0x00020000; |
| 2612 |
/// const EXCHGID4_FLAG_USE_PNFS_DS = 0x00040000; |
| 2613 |
/// |
| 2614 |
/// const EXCHGID4_FLAG_MASK_PNFS = 0x00070000; |
| 2615 |
/// |
| 2616 |
/// const EXCHGID4_FLAG_UPD_CONFIRMED_REC_A = 0x40000000; |
| 2617 |
/// const EXCHGID4_FLAG_CONFIRMED_R = 0x80000000; |
| 2618 |
/// |
| 2619 |
/// struct state_protect_ops4 { |
| 2620 |
/// bitmap4 spo_must_enforce; |
| 2621 |
/// bitmap4 spo_must_allow; |
| 2622 |
/// }; |
| 2623 |
/// |
| 2624 |
/// struct ssv_sp_parms4 { |
| 2625 |
|
| 2626 |
|
| 2627 |
|
| 2628 |
<span class="grey">Shepler, et al. Standards Track [Page 47]</span></pre> |
| 2629 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-48" ></span> |
| 2630 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2631 |
|
| 2632 |
|
| 2633 |
/// state_protect_ops4 ssp_ops; |
| 2634 |
/// sec_oid4 ssp_hash_algs<>; |
| 2635 |
/// sec_oid4 ssp_encr_algs<>; |
| 2636 |
/// uint32_t ssp_window; |
| 2637 |
/// uint32_t ssp_num_gss_handles; |
| 2638 |
/// }; |
| 2639 |
/// |
| 2640 |
/// enum state_protect_how4 { |
| 2641 |
/// SP4_NONE = 0, |
| 2642 |
/// SP4_MACH_CRED = 1, |
| 2643 |
/// SP4_SSV = 2 |
| 2644 |
/// }; |
| 2645 |
/// |
| 2646 |
/// union state_protect4_a switch(state_protect_how4 spa_how) { |
| 2647 |
/// case SP4_NONE: |
| 2648 |
/// void; |
| 2649 |
/// case SP4_MACH_CRED: |
| 2650 |
/// state_protect_ops4 spa_mach_ops; |
| 2651 |
/// case SP4_SSV: |
| 2652 |
/// ssv_sp_parms4 spa_ssv_parms; |
| 2653 |
/// }; |
| 2654 |
/// |
| 2655 |
/// struct EXCHANGE_ID4args { |
| 2656 |
/// client_owner4 eia_clientowner; |
| 2657 |
/// uint32_t eia_flags; |
| 2658 |
/// state_protect4_a eia_state_protect; |
| 2659 |
/// nfs_impl_id4 eia_client_impl_id<1>; |
| 2660 |
/// }; |
| 2661 |
/// |
| 2662 |
/// struct ssv_prot_info4 { |
| 2663 |
/// state_protect_ops4 spi_ops; |
| 2664 |
/// uint32_t spi_hash_alg; |
| 2665 |
/// uint32_t spi_encr_alg; |
| 2666 |
/// uint32_t spi_ssv_len; |
| 2667 |
/// uint32_t spi_window; |
| 2668 |
/// gsshandle4_t spi_handles<>; |
| 2669 |
/// }; |
| 2670 |
/// |
| 2671 |
/// union state_protect4_r switch(state_protect_how4 spr_how) { |
| 2672 |
/// case SP4_NONE: |
| 2673 |
/// void; |
| 2674 |
/// case SP4_MACH_CRED: |
| 2675 |
/// state_protect_ops4 spr_mach_ops; |
| 2676 |
/// case SP4_SSV: |
| 2677 |
/// ssv_prot_info4 spr_ssv_info; |
| 2678 |
/// }; |
| 2679 |
/// |
| 2680 |
/// struct EXCHANGE_ID4resok { |
| 2681 |
|
| 2682 |
|
| 2683 |
|
| 2684 |
<span class="grey">Shepler, et al. Standards Track [Page 48]</span></pre> |
| 2685 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-49" ></span> |
| 2686 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2687 |
|
| 2688 |
|
| 2689 |
/// clientid4 eir_clientid; |
| 2690 |
/// sequenceid4 eir_sequenceid; |
| 2691 |
/// uint32_t eir_flags; |
| 2692 |
/// state_protect4_r eir_state_protect; |
| 2693 |
/// server_owner4 eir_server_owner; |
| 2694 |
/// opaque eir_server_scope<NFS4_OPAQUE_LIMIT>; |
| 2695 |
/// nfs_impl_id4 eir_server_impl_id<1>; |
| 2696 |
/// }; |
| 2697 |
/// |
| 2698 |
/// union EXCHANGE_ID4res switch (nfsstat4 eir_status) { |
| 2699 |
/// case NFS4_OK: |
| 2700 |
/// EXCHANGE_ID4resok eir_resok4; |
| 2701 |
/// |
| 2702 |
/// default: |
| 2703 |
/// void; |
| 2704 |
/// }; |
| 2705 |
/// |
| 2706 |
/// struct channel_attrs4 { |
| 2707 |
/// count4 ca_headerpadsize; |
| 2708 |
/// count4 ca_maxrequestsize; |
| 2709 |
/// count4 ca_maxresponsesize; |
| 2710 |
/// count4 ca_maxresponsesize_cached; |
| 2711 |
/// count4 ca_maxoperations; |
| 2712 |
/// count4 ca_maxrequests; |
| 2713 |
/// uint32_t ca_rdma_ird<1>; |
| 2714 |
/// }; |
| 2715 |
/// |
| 2716 |
/// const CREATE_SESSION4_FLAG_PERSIST = 0x00000001; |
| 2717 |
/// const CREATE_SESSION4_FLAG_CONN_BACK_CHAN = 0x00000002; |
| 2718 |
/// const CREATE_SESSION4_FLAG_CONN_RDMA = 0x00000004; |
| 2719 |
/// |
| 2720 |
/// struct CREATE_SESSION4args { |
| 2721 |
/// clientid4 csa_clientid; |
| 2722 |
/// sequenceid4 csa_sequence; |
| 2723 |
/// |
| 2724 |
/// uint32_t csa_flags; |
| 2725 |
/// |
| 2726 |
/// channel_attrs4 csa_fore_chan_attrs; |
| 2727 |
/// channel_attrs4 csa_back_chan_attrs; |
| 2728 |
/// |
| 2729 |
/// uint32_t csa_cb_program; |
| 2730 |
/// callback_sec_parms4 csa_sec_parms<>; |
| 2731 |
/// }; |
| 2732 |
/// |
| 2733 |
/// struct CREATE_SESSION4resok { |
| 2734 |
/// sessionid4 csr_sessionid; |
| 2735 |
/// sequenceid4 csr_sequence; |
| 2736 |
/// |
| 2737 |
|
| 2738 |
|
| 2739 |
|
| 2740 |
<span class="grey">Shepler, et al. Standards Track [Page 49]</span></pre> |
| 2741 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-50" ></span> |
| 2742 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2743 |
|
| 2744 |
|
| 2745 |
/// uint32_t csr_flags; |
| 2746 |
/// |
| 2747 |
/// channel_attrs4 csr_fore_chan_attrs; |
| 2748 |
/// channel_attrs4 csr_back_chan_attrs; |
| 2749 |
/// }; |
| 2750 |
/// |
| 2751 |
/// union CREATE_SESSION4res switch (nfsstat4 csr_status) { |
| 2752 |
/// case NFS4_OK: |
| 2753 |
/// CREATE_SESSION4resok csr_resok4; |
| 2754 |
/// default: |
| 2755 |
/// void; |
| 2756 |
/// }; |
| 2757 |
/// |
| 2758 |
/// struct DESTROY_SESSION4args { |
| 2759 |
/// sessionid4 dsa_sessionid; |
| 2760 |
/// }; |
| 2761 |
/// |
| 2762 |
/// struct DESTROY_SESSION4res { |
| 2763 |
/// nfsstat4 dsr_status; |
| 2764 |
/// }; |
| 2765 |
/// |
| 2766 |
/// struct FREE_STATEID4args { |
| 2767 |
/// stateid4 fsa_stateid; |
| 2768 |
/// }; |
| 2769 |
/// |
| 2770 |
/// struct FREE_STATEID4res { |
| 2771 |
/// nfsstat4 fsr_status; |
| 2772 |
/// }; |
| 2773 |
/// |
| 2774 |
/// |
| 2775 |
/// typedef nfstime4 attr_notice4; |
| 2776 |
/// |
| 2777 |
/// struct GET_DIR_DELEGATION4args { |
| 2778 |
/// /* CURRENT_FH: delegated directory */ |
| 2779 |
/// bool gdda_signal_deleg_avail; |
| 2780 |
/// bitmap4 gdda_notification_types; |
| 2781 |
/// attr_notice4 gdda_child_attr_delay; |
| 2782 |
/// attr_notice4 gdda_dir_attr_delay; |
| 2783 |
/// bitmap4 gdda_child_attributes; |
| 2784 |
/// bitmap4 gdda_dir_attributes; |
| 2785 |
/// }; |
| 2786 |
/// struct GET_DIR_DELEGATION4resok { |
| 2787 |
/// verifier4 gddr_cookieverf; |
| 2788 |
/// /* Stateid for get_dir_delegation */ |
| 2789 |
/// stateid4 gddr_stateid; |
| 2790 |
/// /* Which notifications can the server support */ |
| 2791 |
/// bitmap4 gddr_notification; |
| 2792 |
/// bitmap4 gddr_child_attributes; |
| 2793 |
|
| 2794 |
|
| 2795 |
|
| 2796 |
<span class="grey">Shepler, et al. Standards Track [Page 50]</span></pre> |
| 2797 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-51" ></span> |
| 2798 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2799 |
|
| 2800 |
|
| 2801 |
/// bitmap4 gddr_dir_attributes; |
| 2802 |
/// }; |
| 2803 |
/// |
| 2804 |
/// enum gddrnf4_status { |
| 2805 |
/// GDD4_OK = 0, |
| 2806 |
/// GDD4_UNAVAIL = 1 |
| 2807 |
/// }; |
| 2808 |
/// |
| 2809 |
/// union GET_DIR_DELEGATION4res_non_fatal |
| 2810 |
/// switch (gddrnf4_status gddrnf_status) { |
| 2811 |
/// case GDD4_OK: |
| 2812 |
/// GET_DIR_DELEGATION4resok gddrnf_resok4; |
| 2813 |
/// case GDD4_UNAVAIL: |
| 2814 |
/// bool gddrnf_will_signal_deleg_avail; |
| 2815 |
/// }; |
| 2816 |
/// |
| 2817 |
/// union GET_DIR_DELEGATION4res |
| 2818 |
/// switch (nfsstat4 gddr_status) { |
| 2819 |
/// case NFS4_OK: |
| 2820 |
/// GET_DIR_DELEGATION4res_non_fatal gddr_res_non_fatal4; |
| 2821 |
/// default: |
| 2822 |
/// void; |
| 2823 |
/// }; |
| 2824 |
/// |
| 2825 |
/// struct GETDEVICEINFO4args { |
| 2826 |
/// deviceid4 gdia_device_id; |
| 2827 |
/// layouttype4 gdia_layout_type; |
| 2828 |
/// count4 gdia_maxcount; |
| 2829 |
/// bitmap4 gdia_notify_types; |
| 2830 |
/// }; |
| 2831 |
/// |
| 2832 |
/// struct GETDEVICEINFO4resok { |
| 2833 |
/// device_addr4 gdir_device_addr; |
| 2834 |
/// bitmap4 gdir_notification; |
| 2835 |
/// }; |
| 2836 |
/// |
| 2837 |
/// union GETDEVICEINFO4res switch (nfsstat4 gdir_status) { |
| 2838 |
/// case NFS4_OK: |
| 2839 |
/// GETDEVICEINFO4resok gdir_resok4; |
| 2840 |
/// case NFS4ERR_TOOSMALL: |
| 2841 |
/// count4 gdir_mincount; |
| 2842 |
/// default: |
| 2843 |
/// void; |
| 2844 |
/// }; |
| 2845 |
/// |
| 2846 |
/// struct GETDEVICELIST4args { |
| 2847 |
/// /* CURRENT_FH: object belonging to the file system */ |
| 2848 |
/// layouttype4 gdla_layout_type; |
| 2849 |
|
| 2850 |
|
| 2851 |
|
| 2852 |
<span class="grey">Shepler, et al. Standards Track [Page 51]</span></pre> |
| 2853 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-52" ></span> |
| 2854 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2855 |
|
| 2856 |
|
| 2857 |
/// |
| 2858 |
/// /* number of deviceIDs to return */ |
| 2859 |
/// count4 gdla_maxdevices; |
| 2860 |
/// |
| 2861 |
/// nfs_cookie4 gdla_cookie; |
| 2862 |
/// verifier4 gdla_cookieverf; |
| 2863 |
/// }; |
| 2864 |
/// |
| 2865 |
/// struct GETDEVICELIST4resok { |
| 2866 |
/// nfs_cookie4 gdlr_cookie; |
| 2867 |
/// verifier4 gdlr_cookieverf; |
| 2868 |
/// deviceid4 gdlr_deviceid_list<>; |
| 2869 |
/// bool gdlr_eof; |
| 2870 |
/// }; |
| 2871 |
/// |
| 2872 |
/// union GETDEVICELIST4res switch (nfsstat4 gdlr_status) { |
| 2873 |
/// case NFS4_OK: |
| 2874 |
/// GETDEVICELIST4resok gdlr_resok4; |
| 2875 |
/// default: |
| 2876 |
/// void; |
| 2877 |
/// }; |
| 2878 |
/// |
| 2879 |
/// union newtime4 switch (bool nt_timechanged) { |
| 2880 |
/// case TRUE: |
| 2881 |
/// nfstime4 nt_time; |
| 2882 |
/// case FALSE: |
| 2883 |
/// void; |
| 2884 |
/// }; |
| 2885 |
/// |
| 2886 |
/// union newoffset4 switch (bool no_newoffset) { |
| 2887 |
/// case TRUE: |
| 2888 |
/// offset4 no_offset; |
| 2889 |
/// case FALSE: |
| 2890 |
/// void; |
| 2891 |
/// }; |
| 2892 |
/// |
| 2893 |
/// struct LAYOUTCOMMIT4args { |
| 2894 |
/// /* CURRENT_FH: file */ |
| 2895 |
/// offset4 loca_offset; |
| 2896 |
/// length4 loca_length; |
| 2897 |
/// bool loca_reclaim; |
| 2898 |
/// stateid4 loca_stateid; |
| 2899 |
/// newoffset4 loca_last_write_offset; |
| 2900 |
/// newtime4 loca_time_modify; |
| 2901 |
/// layoutupdate4 loca_layoutupdate; |
| 2902 |
/// }; |
| 2903 |
/// union newsize4 switch (bool ns_sizechanged) { |
| 2904 |
/// case TRUE: |
| 2905 |
|
| 2906 |
|
| 2907 |
|
| 2908 |
<span class="grey">Shepler, et al. Standards Track [Page 52]</span></pre> |
| 2909 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-53" ></span> |
| 2910 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2911 |
|
| 2912 |
|
| 2913 |
/// length4 ns_size; |
| 2914 |
/// case FALSE: |
| 2915 |
/// void; |
| 2916 |
/// }; |
| 2917 |
/// |
| 2918 |
/// struct LAYOUTCOMMIT4resok { |
| 2919 |
/// newsize4 locr_newsize; |
| 2920 |
/// }; |
| 2921 |
/// |
| 2922 |
/// union LAYOUTCOMMIT4res switch (nfsstat4 locr_status) { |
| 2923 |
/// case NFS4_OK: |
| 2924 |
/// LAYOUTCOMMIT4resok locr_resok4; |
| 2925 |
/// default: |
| 2926 |
/// void; |
| 2927 |
/// }; |
| 2928 |
/// |
| 2929 |
/// struct LAYOUTGET4args { |
| 2930 |
/// /* CURRENT_FH: file */ |
| 2931 |
/// bool loga_signal_layout_avail; |
| 2932 |
/// layouttype4 loga_layout_type; |
| 2933 |
/// layoutiomode4 loga_iomode; |
| 2934 |
/// offset4 loga_offset; |
| 2935 |
/// length4 loga_length; |
| 2936 |
/// length4 loga_minlength; |
| 2937 |
/// stateid4 loga_stateid; |
| 2938 |
/// count4 loga_maxcount; |
| 2939 |
/// }; |
| 2940 |
/// struct LAYOUTGET4resok { |
| 2941 |
/// bool logr_return_on_close; |
| 2942 |
/// stateid4 logr_stateid; |
| 2943 |
/// layout4 logr_layout<>; |
| 2944 |
/// }; |
| 2945 |
/// |
| 2946 |
/// union LAYOUTGET4res switch (nfsstat4 logr_status) { |
| 2947 |
/// case NFS4_OK: |
| 2948 |
/// LAYOUTGET4resok logr_resok4; |
| 2949 |
/// case NFS4ERR_LAYOUTTRYLATER: |
| 2950 |
/// bool logr_will_signal_layout_avail; |
| 2951 |
/// default: |
| 2952 |
/// void; |
| 2953 |
/// }; |
| 2954 |
/// |
| 2955 |
/// |
| 2956 |
/// struct LAYOUTRETURN4args { |
| 2957 |
/// /* CURRENT_FH: file */ |
| 2958 |
/// bool lora_reclaim; |
| 2959 |
/// layouttype4 lora_layout_type; |
| 2960 |
/// layoutiomode4 lora_iomode; |
| 2961 |
|
| 2962 |
|
| 2963 |
|
| 2964 |
<span class="grey">Shepler, et al. Standards Track [Page 53]</span></pre> |
| 2965 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-54" ></span> |
| 2966 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 2967 |
|
| 2968 |
|
| 2969 |
/// layoutreturn4 lora_layoutreturn; |
| 2970 |
/// }; |
| 2971 |
/// |
| 2972 |
/// |
| 2973 |
/// union layoutreturn_stateid switch (bool lrs_present) { |
| 2974 |
/// case TRUE: |
| 2975 |
/// stateid4 lrs_stateid; |
| 2976 |
/// case FALSE: |
| 2977 |
/// void; |
| 2978 |
/// }; |
| 2979 |
/// |
| 2980 |
/// union LAYOUTRETURN4res switch (nfsstat4 lorr_status) { |
| 2981 |
/// case NFS4_OK: |
| 2982 |
/// layoutreturn_stateid lorr_stateid; |
| 2983 |
/// default: |
| 2984 |
/// void; |
| 2985 |
/// }; |
| 2986 |
/// |
| 2987 |
/// enum secinfo_style4 { |
| 2988 |
/// SECINFO_STYLE4_CURRENT_FH = 0, |
| 2989 |
/// SECINFO_STYLE4_PARENT = 1 |
| 2990 |
/// }; |
| 2991 |
/// |
| 2992 |
/// /* CURRENT_FH: object or child directory */ |
| 2993 |
/// typedef secinfo_style4 SECINFO_NO_NAME4args; |
| 2994 |
/// |
| 2995 |
/// /* CURRENTFH: consumed if status is NFS4_OK */ |
| 2996 |
/// typedef SECINFO4res SECINFO_NO_NAME4res; |
| 2997 |
/// |
| 2998 |
/// struct SEQUENCE4args { |
| 2999 |
/// sessionid4 sa_sessionid; |
| 3000 |
/// sequenceid4 sa_sequenceid; |
| 3001 |
/// slotid4 sa_slotid; |
| 3002 |
/// slotid4 sa_highest_slotid; |
| 3003 |
/// bool sa_cachethis; |
| 3004 |
/// }; |
| 3005 |
/// |
| 3006 |
/// const SEQ4_STATUS_CB_PATH_DOWN = 0x00000001; |
| 3007 |
/// const SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING = 0x00000002; |
| 3008 |
/// const SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED = 0x00000004; |
| 3009 |
/// const SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED = 0x00000008; |
| 3010 |
/// const SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED = 0x00000010; |
| 3011 |
/// const SEQ4_STATUS_ADMIN_STATE_REVOKED = 0x00000020; |
| 3012 |
/// const SEQ4_STATUS_RECALLABLE_STATE_REVOKED = 0x00000040; |
| 3013 |
/// const SEQ4_STATUS_LEASE_MOVED = 0x00000080; |
| 3014 |
/// const SEQ4_STATUS_RESTART_RECLAIM_NEEDED = 0x00000100; |
| 3015 |
/// const SEQ4_STATUS_CB_PATH_DOWN_SESSION = 0x00000200; |
| 3016 |
/// const SEQ4_STATUS_BACKCHANNEL_FAULT = 0x00000400; |
| 3017 |
|
| 3018 |
|
| 3019 |
|
| 3020 |
<span class="grey">Shepler, et al. Standards Track [Page 54]</span></pre> |
| 3021 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-55" ></span> |
| 3022 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3023 |
|
| 3024 |
|
| 3025 |
/// const SEQ4_STATUS_DEVID_CHANGED = 0x00000800; |
| 3026 |
/// const SEQ4_STATUS_DEVID_DELETED = 0x00001000; |
| 3027 |
/// |
| 3028 |
/// struct SEQUENCE4resok { |
| 3029 |
/// sessionid4 sr_sessionid; |
| 3030 |
/// sequenceid4 sr_sequenceid; |
| 3031 |
/// slotid4 sr_slotid; |
| 3032 |
/// slotid4 sr_highest_slotid; |
| 3033 |
/// slotid4 sr_target_highest_slotid; |
| 3034 |
/// uint32_t sr_status_flags; |
| 3035 |
/// }; |
| 3036 |
/// |
| 3037 |
/// union SEQUENCE4res switch (nfsstat4 sr_status) { |
| 3038 |
/// case NFS4_OK: |
| 3039 |
/// SEQUENCE4resok sr_resok4; |
| 3040 |
/// default: |
| 3041 |
/// void; |
| 3042 |
/// }; |
| 3043 |
/// |
| 3044 |
/// struct ssa_digest_input4 { |
| 3045 |
/// SEQUENCE4args sdi_seqargs; |
| 3046 |
/// }; |
| 3047 |
/// |
| 3048 |
/// struct SET_SSV4args { |
| 3049 |
/// opaque ssa_ssv<>; |
| 3050 |
/// opaque ssa_digest<>; |
| 3051 |
/// }; |
| 3052 |
/// |
| 3053 |
/// struct ssr_digest_input4 { |
| 3054 |
/// SEQUENCE4res sdi_seqres; |
| 3055 |
/// }; |
| 3056 |
/// |
| 3057 |
/// struct SET_SSV4resok { |
| 3058 |
/// opaque ssr_digest<>; |
| 3059 |
/// }; |
| 3060 |
/// |
| 3061 |
/// union SET_SSV4res switch (nfsstat4 ssr_status) { |
| 3062 |
/// case NFS4_OK: |
| 3063 |
/// SET_SSV4resok ssr_resok4; |
| 3064 |
/// default: |
| 3065 |
/// void; |
| 3066 |
/// }; |
| 3067 |
/// |
| 3068 |
/// struct TEST_STATEID4args { |
| 3069 |
/// stateid4 ts_stateids<>; |
| 3070 |
/// }; |
| 3071 |
/// |
| 3072 |
/// struct TEST_STATEID4resok { |
| 3073 |
|
| 3074 |
|
| 3075 |
|
| 3076 |
<span class="grey">Shepler, et al. Standards Track [Page 55]</span></pre> |
| 3077 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-56" ></span> |
| 3078 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3079 |
|
| 3080 |
|
| 3081 |
/// nfsstat4 tsr_status_codes<>; |
| 3082 |
/// }; |
| 3083 |
/// |
| 3084 |
/// union TEST_STATEID4res switch (nfsstat4 tsr_status) { |
| 3085 |
/// case NFS4_OK: |
| 3086 |
/// TEST_STATEID4resok tsr_resok4; |
| 3087 |
/// default: |
| 3088 |
/// void; |
| 3089 |
/// }; |
| 3090 |
/// |
| 3091 |
/// union deleg_claim4 switch (open_claim_type4 dc_claim) { |
| 3092 |
/// /* |
| 3093 |
/// * No special rights to object. Ordinary delegation |
| 3094 |
/// * request of the specified object. Object identified |
| 3095 |
/// * by filehandle. |
| 3096 |
/// */ |
| 3097 |
/// case CLAIM_FH: /* new to v4.1 */ |
| 3098 |
/// /* CURRENT_FH: object being delegated */ |
| 3099 |
/// void; |
| 3100 |
/// |
| 3101 |
/// /* |
| 3102 |
/// * Right to file based on a delegation granted |
| 3103 |
/// * to a previous boot instance of the client. |
| 3104 |
/// * File is specified by filehandle. |
| 3105 |
/// */ |
| 3106 |
/// case CLAIM_DELEG_PREV_FH: /* new to v4.1 */ |
| 3107 |
/// /* CURRENT_FH: object being delegated */ |
| 3108 |
/// void; |
| 3109 |
/// |
| 3110 |
/// /* |
| 3111 |
/// * Right to the file established by an open previous |
| 3112 |
/// * to server reboot. File identified by filehandle. |
| 3113 |
/// * Used during server reclaim grace period. |
| 3114 |
/// */ |
| 3115 |
/// case CLAIM_PREVIOUS: |
| 3116 |
/// /* CURRENT_FH: object being reclaimed */ |
| 3117 |
/// open_delegation_type4 dc_delegate_type; |
| 3118 |
/// }; |
| 3119 |
/// |
| 3120 |
/// struct WANT_DELEGATION4args { |
| 3121 |
/// uint32_t wda_want; |
| 3122 |
/// deleg_claim4 wda_claim; |
| 3123 |
/// }; |
| 3124 |
/// |
| 3125 |
/// union WANT_DELEGATION4res switch (nfsstat4 wdr_status) { |
| 3126 |
/// case NFS4_OK: |
| 3127 |
/// open_delegation4 wdr_resok4; |
| 3128 |
/// default: |
| 3129 |
|
| 3130 |
|
| 3131 |
|
| 3132 |
<span class="grey">Shepler, et al. Standards Track [Page 56]</span></pre> |
| 3133 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-57" ></span> |
| 3134 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3135 |
|
| 3136 |
|
| 3137 |
/// void; |
| 3138 |
/// }; |
| 3139 |
/// |
| 3140 |
/// struct DESTROY_CLIENTID4args { |
| 3141 |
/// clientid4 dca_clientid; |
| 3142 |
/// }; |
| 3143 |
/// |
| 3144 |
/// struct DESTROY_CLIENTID4res { |
| 3145 |
/// nfsstat4 dcr_status; |
| 3146 |
/// }; |
| 3147 |
/// |
| 3148 |
/// struct RECLAIM_COMPLETE4args { |
| 3149 |
/// /* |
| 3150 |
/// * If rca_one_fs TRUE, |
| 3151 |
/// * |
| 3152 |
/// * CURRENT_FH: object in |
| 3153 |
/// * filesystem reclaim is |
| 3154 |
/// * complete for. |
| 3155 |
/// */ |
| 3156 |
/// bool rca_one_fs; |
| 3157 |
/// }; |
| 3158 |
/// |
| 3159 |
/// struct RECLAIM_COMPLETE4res { |
| 3160 |
/// nfsstat4 rcr_status; |
| 3161 |
/// }; |
| 3162 |
/// |
| 3163 |
/// /* |
| 3164 |
/// * Operation arrays |
| 3165 |
/// */ |
| 3166 |
/// |
| 3167 |
/// enum nfs_opnum4 { |
| 3168 |
/// OP_ACCESS = 3, |
| 3169 |
/// OP_CLOSE = 4, |
| 3170 |
/// OP_COMMIT = 5, |
| 3171 |
/// OP_CREATE = 6, |
| 3172 |
/// OP_DELEGPURGE = 7, |
| 3173 |
/// OP_DELEGRETURN = 8, |
| 3174 |
/// OP_GETATTR = 9, |
| 3175 |
/// OP_GETFH = 10, |
| 3176 |
/// OP_LINK = 11, |
| 3177 |
/// OP_LOCK = 12, |
| 3178 |
/// OP_LOCKT = 13, |
| 3179 |
/// OP_LOCKU = 14, |
| 3180 |
/// OP_LOOKUP = 15, |
| 3181 |
/// OP_LOOKUPP = 16, |
| 3182 |
/// OP_NVERIFY = 17, |
| 3183 |
/// OP_OPEN = 18, |
| 3184 |
/// OP_OPENATTR = 19, |
| 3185 |
|
| 3186 |
|
| 3187 |
|
| 3188 |
<span class="grey">Shepler, et al. Standards Track [Page 57]</span></pre> |
| 3189 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-58" ></span> |
| 3190 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3191 |
|
| 3192 |
|
| 3193 |
/// OP_OPEN_CONFIRM = 20, /* Mandatory not-to-implement */ |
| 3194 |
/// OP_OPEN_DOWNGRADE = 21, |
| 3195 |
/// OP_PUTFH = 22, |
| 3196 |
/// OP_PUTPUBFH = 23, |
| 3197 |
/// OP_PUTROOTFH = 24, |
| 3198 |
/// OP_READ = 25, |
| 3199 |
/// OP_READDIR = 26, |
| 3200 |
/// OP_READLINK = 27, |
| 3201 |
/// OP_REMOVE = 28, |
| 3202 |
/// OP_RENAME = 29, |
| 3203 |
/// OP_RENEW = 30, /* Mandatory not-to-implement */ |
| 3204 |
/// OP_RESTOREFH = 31, |
| 3205 |
/// OP_SAVEFH = 32, |
| 3206 |
/// OP_SECINFO = 33, |
| 3207 |
/// OP_SETATTR = 34, |
| 3208 |
/// OP_SETCLIENTID = 35, /* Mandatory not-to-implement */ |
| 3209 |
/// OP_SETCLIENTID_CONFIRM = 36, /* Mandatory not-to-implement */ |
| 3210 |
/// OP_VERIFY = 37, |
| 3211 |
/// OP_WRITE = 38, |
| 3212 |
/// OP_RELEASE_LOCKOWNER = 39, /* Mandatory not-to-implement */ |
| 3213 |
/// % |
| 3214 |
/// %/* new operations for NFSv4.1 */ |
| 3215 |
/// % |
| 3216 |
/// OP_BACKCHANNEL_CTL = 40, |
| 3217 |
/// OP_BIND_CONN_TO_SESSION = 41, |
| 3218 |
/// OP_EXCHANGE_ID = 42, |
| 3219 |
/// OP_CREATE_SESSION = 43, |
| 3220 |
/// OP_DESTROY_SESSION = 44, |
| 3221 |
/// OP_FREE_STATEID = 45, |
| 3222 |
/// OP_GET_DIR_DELEGATION = 46, |
| 3223 |
/// OP_GETDEVICEINFO = 47, |
| 3224 |
/// OP_GETDEVICELIST = 48, |
| 3225 |
/// OP_LAYOUTCOMMIT = 49, |
| 3226 |
/// OP_LAYOUTGET = 50, |
| 3227 |
/// OP_LAYOUTRETURN = 51, |
| 3228 |
/// OP_SECINFO_NO_NAME = 52, |
| 3229 |
/// OP_SEQUENCE = 53, |
| 3230 |
/// OP_SET_SSV = 54, |
| 3231 |
/// OP_TEST_STATEID = 55, |
| 3232 |
/// OP_WANT_DELEGATION = 56, |
| 3233 |
/// OP_DESTROY_CLIENTID = 57, |
| 3234 |
/// OP_RECLAIM_COMPLETE = 58, |
| 3235 |
/// OP_ILLEGAL = 10044 |
| 3236 |
/// }; |
| 3237 |
/// |
| 3238 |
/// union nfs_argop4 switch (nfs_opnum4 argop) { |
| 3239 |
/// case OP_ACCESS: ACCESS4args opaccess; |
| 3240 |
/// case OP_CLOSE: CLOSE4args opclose; |
| 3241 |
|
| 3242 |
|
| 3243 |
|
| 3244 |
<span class="grey">Shepler, et al. Standards Track [Page 58]</span></pre> |
| 3245 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-59" ></span> |
| 3246 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3247 |
|
| 3248 |
|
| 3249 |
/// case OP_COMMIT: COMMIT4args opcommit; |
| 3250 |
/// case OP_CREATE: CREATE4args opcreate; |
| 3251 |
/// case OP_DELEGPURGE: DELEGPURGE4args opdelegpurge; |
| 3252 |
/// case OP_DELEGRETURN: DELEGRETURN4args opdelegreturn; |
| 3253 |
/// case OP_GETATTR: GETATTR4args opgetattr; |
| 3254 |
/// case OP_GETFH: void; |
| 3255 |
/// case OP_LINK: LINK4args oplink; |
| 3256 |
/// case OP_LOCK: LOCK4args oplock; |
| 3257 |
/// case OP_LOCKT: LOCKT4args oplockt; |
| 3258 |
/// case OP_LOCKU: LOCKU4args oplocku; |
| 3259 |
/// case OP_LOOKUP: LOOKUP4args oplookup; |
| 3260 |
/// case OP_LOOKUPP: void; |
| 3261 |
/// case OP_NVERIFY: NVERIFY4args opnverify; |
| 3262 |
/// case OP_OPEN: OPEN4args opopen; |
| 3263 |
/// case OP_OPENATTR: OPENATTR4args opopenattr; |
| 3264 |
/// |
| 3265 |
/// /* Not for NFSv4.1 */ |
| 3266 |
/// case OP_OPEN_CONFIRM: OPEN_CONFIRM4args opopen_confirm; |
| 3267 |
/// |
| 3268 |
/// case OP_OPEN_DOWNGRADE: |
| 3269 |
/// OPEN_DOWNGRADE4args opopen_downgrade; |
| 3270 |
/// |
| 3271 |
/// case OP_PUTFH: PUTFH4args opputfh; |
| 3272 |
/// case OP_PUTPUBFH: void; |
| 3273 |
/// case OP_PUTROOTFH: void; |
| 3274 |
/// case OP_READ: READ4args opread; |
| 3275 |
/// case OP_READDIR: READDIR4args opreaddir; |
| 3276 |
/// case OP_READLINK: void; |
| 3277 |
/// case OP_REMOVE: REMOVE4args opremove; |
| 3278 |
/// case OP_RENAME: RENAME4args oprename; |
| 3279 |
/// |
| 3280 |
/// /* Not for NFSv4.1 */ |
| 3281 |
/// case OP_RENEW: RENEW4args oprenew; |
| 3282 |
/// |
| 3283 |
/// case OP_RESTOREFH: void; |
| 3284 |
/// case OP_SAVEFH: void; |
| 3285 |
/// case OP_SECINFO: SECINFO4args opsecinfo; |
| 3286 |
/// case OP_SETATTR: SETATTR4args opsetattr; |
| 3287 |
/// |
| 3288 |
/// /* Not for NFSv4.1 */ |
| 3289 |
/// case OP_SETCLIENTID: SETCLIENTID4args opsetclientid; |
| 3290 |
/// |
| 3291 |
/// /* Not for NFSv4.1 */ |
| 3292 |
/// case OP_SETCLIENTID_CONFIRM: SETCLIENTID_CONFIRM4args |
| 3293 |
/// opsetclientid_confirm; |
| 3294 |
/// case OP_VERIFY: VERIFY4args opverify; |
| 3295 |
/// case OP_WRITE: WRITE4args opwrite; |
| 3296 |
/// |
| 3297 |
|
| 3298 |
|
| 3299 |
|
| 3300 |
<span class="grey">Shepler, et al. Standards Track [Page 59]</span></pre> |
| 3301 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-60" ></span> |
| 3302 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3303 |
|
| 3304 |
|
| 3305 |
/// /* Not for NFSv4.1 */ |
| 3306 |
/// case OP_RELEASE_LOCKOWNER: |
| 3307 |
/// RELEASE_LOCKOWNER4args |
| 3308 |
/// oprelease_lockowner; |
| 3309 |
/// |
| 3310 |
/// /* Operations new to NFSv4.1 */ |
| 3311 |
/// case OP_BACKCHANNEL_CTL: |
| 3312 |
/// BACKCHANNEL_CTL4args opbackchannel_ctl; |
| 3313 |
/// |
| 3314 |
/// case OP_BIND_CONN_TO_SESSION: |
| 3315 |
/// BIND_CONN_TO_SESSION4args |
| 3316 |
/// opbind_conn_to_session; |
| 3317 |
/// |
| 3318 |
/// case OP_EXCHANGE_ID: EXCHANGE_ID4args opexchange_id; |
| 3319 |
/// |
| 3320 |
/// case OP_CREATE_SESSION: |
| 3321 |
/// CREATE_SESSION4args opcreate_session; |
| 3322 |
/// |
| 3323 |
/// case OP_DESTROY_SESSION: |
| 3324 |
/// DESTROY_SESSION4args opdestroy_session; |
| 3325 |
/// |
| 3326 |
/// case OP_FREE_STATEID: FREE_STATEID4args opfree_stateid; |
| 3327 |
/// |
| 3328 |
/// case OP_GET_DIR_DELEGATION: |
| 3329 |
/// GET_DIR_DELEGATION4args |
| 3330 |
/// opget_dir_delegation; |
| 3331 |
/// |
| 3332 |
/// case OP_GETDEVICEINFO: GETDEVICEINFO4args opgetdeviceinfo; |
| 3333 |
/// case OP_GETDEVICELIST: GETDEVICELIST4args opgetdevicelist; |
| 3334 |
/// case OP_LAYOUTCOMMIT: LAYOUTCOMMIT4args oplayoutcommit; |
| 3335 |
/// case OP_LAYOUTGET: LAYOUTGET4args oplayoutget; |
| 3336 |
/// case OP_LAYOUTRETURN: LAYOUTRETURN4args oplayoutreturn; |
| 3337 |
/// |
| 3338 |
/// case OP_SECINFO_NO_NAME: |
| 3339 |
/// SECINFO_NO_NAME4args opsecinfo_no_name; |
| 3340 |
/// |
| 3341 |
/// case OP_SEQUENCE: SEQUENCE4args opsequence; |
| 3342 |
/// case OP_SET_SSV: SET_SSV4args opset_ssv; |
| 3343 |
/// case OP_TEST_STATEID: TEST_STATEID4args optest_stateid; |
| 3344 |
/// |
| 3345 |
/// case OP_WANT_DELEGATION: |
| 3346 |
/// WANT_DELEGATION4args opwant_delegation; |
| 3347 |
/// |
| 3348 |
/// case OP_DESTROY_CLIENTID: |
| 3349 |
/// DESTROY_CLIENTID4args |
| 3350 |
/// opdestroy_clientid; |
| 3351 |
/// |
| 3352 |
/// case OP_RECLAIM_COMPLETE: |
| 3353 |
|
| 3354 |
|
| 3355 |
|
| 3356 |
<span class="grey">Shepler, et al. Standards Track [Page 60]</span></pre> |
| 3357 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-61" ></span> |
| 3358 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3359 |
|
| 3360 |
|
| 3361 |
/// RECLAIM_COMPLETE4args |
| 3362 |
/// opreclaim_complete; |
| 3363 |
/// |
| 3364 |
/// /* Operations not new to NFSv4.1 */ |
| 3365 |
/// case OP_ILLEGAL: void; |
| 3366 |
/// }; |
| 3367 |
/// |
| 3368 |
/// union nfs_resop4 switch (nfs_opnum4 resop) { |
| 3369 |
/// case OP_ACCESS: ACCESS4res opaccess; |
| 3370 |
/// case OP_CLOSE: CLOSE4res opclose; |
| 3371 |
/// case OP_COMMIT: COMMIT4res opcommit; |
| 3372 |
/// case OP_CREATE: CREATE4res opcreate; |
| 3373 |
/// case OP_DELEGPURGE: DELEGPURGE4res opdelegpurge; |
| 3374 |
/// case OP_DELEGRETURN: DELEGRETURN4res opdelegreturn; |
| 3375 |
/// case OP_GETATTR: GETATTR4res opgetattr; |
| 3376 |
/// case OP_GETFH: GETFH4res opgetfh; |
| 3377 |
/// case OP_LINK: LINK4res oplink; |
| 3378 |
/// case OP_LOCK: LOCK4res oplock; |
| 3379 |
/// case OP_LOCKT: LOCKT4res oplockt; |
| 3380 |
/// case OP_LOCKU: LOCKU4res oplocku; |
| 3381 |
/// case OP_LOOKUP: LOOKUP4res oplookup; |
| 3382 |
/// case OP_LOOKUPP: LOOKUPP4res oplookupp; |
| 3383 |
/// case OP_NVERIFY: NVERIFY4res opnverify; |
| 3384 |
/// case OP_OPEN: OPEN4res opopen; |
| 3385 |
/// case OP_OPENATTR: OPENATTR4res opopenattr; |
| 3386 |
/// /* Not for NFSv4.1 */ |
| 3387 |
/// case OP_OPEN_CONFIRM: OPEN_CONFIRM4res opopen_confirm; |
| 3388 |
/// |
| 3389 |
/// case OP_OPEN_DOWNGRADE: |
| 3390 |
/// OPEN_DOWNGRADE4res |
| 3391 |
/// opopen_downgrade; |
| 3392 |
/// |
| 3393 |
/// case OP_PUTFH: PUTFH4res opputfh; |
| 3394 |
/// case OP_PUTPUBFH: PUTPUBFH4res opputpubfh; |
| 3395 |
/// case OP_PUTROOTFH: PUTROOTFH4res opputrootfh; |
| 3396 |
/// case OP_READ: READ4res opread; |
| 3397 |
/// case OP_READDIR: READDIR4res opreaddir; |
| 3398 |
/// case OP_READLINK: READLINK4res opreadlink; |
| 3399 |
/// case OP_REMOVE: REMOVE4res opremove; |
| 3400 |
/// case OP_RENAME: RENAME4res oprename; |
| 3401 |
/// /* Not for NFSv4.1 */ |
| 3402 |
/// case OP_RENEW: RENEW4res oprenew; |
| 3403 |
/// case OP_RESTOREFH: RESTOREFH4res oprestorefh; |
| 3404 |
/// case OP_SAVEFH: SAVEFH4res opsavefh; |
| 3405 |
/// case OP_SECINFO: SECINFO4res opsecinfo; |
| 3406 |
/// case OP_SETATTR: SETATTR4res opsetattr; |
| 3407 |
/// /* Not for NFSv4.1 */ |
| 3408 |
/// case OP_SETCLIENTID: SETCLIENTID4res opsetclientid; |
| 3409 |
|
| 3410 |
|
| 3411 |
|
| 3412 |
<span class="grey">Shepler, et al. Standards Track [Page 61]</span></pre> |
| 3413 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-62" ></span> |
| 3414 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3415 |
|
| 3416 |
|
| 3417 |
/// |
| 3418 |
/// /* Not for NFSv4.1 */ |
| 3419 |
/// case OP_SETCLIENTID_CONFIRM: |
| 3420 |
/// SETCLIENTID_CONFIRM4res |
| 3421 |
/// opsetclientid_confirm; |
| 3422 |
/// case OP_VERIFY: VERIFY4res opverify; |
| 3423 |
/// case OP_WRITE: WRITE4res opwrite; |
| 3424 |
/// |
| 3425 |
/// /* Not for NFSv4.1 */ |
| 3426 |
/// case OP_RELEASE_LOCKOWNER: |
| 3427 |
/// RELEASE_LOCKOWNER4res |
| 3428 |
/// oprelease_lockowner; |
| 3429 |
/// |
| 3430 |
/// /* Operations new to NFSv4.1 */ |
| 3431 |
/// case OP_BACKCHANNEL_CTL: |
| 3432 |
/// BACKCHANNEL_CTL4res |
| 3433 |
/// opbackchannel_ctl; |
| 3434 |
/// |
| 3435 |
/// case OP_BIND_CONN_TO_SESSION: |
| 3436 |
/// BIND_CONN_TO_SESSION4res |
| 3437 |
/// opbind_conn_to_session; |
| 3438 |
/// |
| 3439 |
/// case OP_EXCHANGE_ID: EXCHANGE_ID4res opexchange_id; |
| 3440 |
/// |
| 3441 |
/// case OP_CREATE_SESSION: |
| 3442 |
/// CREATE_SESSION4res |
| 3443 |
/// opcreate_session; |
| 3444 |
/// |
| 3445 |
/// case OP_DESTROY_SESSION: |
| 3446 |
/// DESTROY_SESSION4res |
| 3447 |
/// opdestroy_session; |
| 3448 |
/// |
| 3449 |
/// case OP_FREE_STATEID: FREE_STATEID4res |
| 3450 |
/// opfree_stateid; |
| 3451 |
/// |
| 3452 |
/// case OP_GET_DIR_DELEGATION: |
| 3453 |
/// GET_DIR_DELEGATION4res |
| 3454 |
/// opget_dir_delegation; |
| 3455 |
/// |
| 3456 |
/// case OP_GETDEVICEINFO: GETDEVICEINFO4res |
| 3457 |
/// opgetdeviceinfo; |
| 3458 |
/// |
| 3459 |
/// case OP_GETDEVICELIST: GETDEVICELIST4res |
| 3460 |
/// opgetdevicelist; |
| 3461 |
/// |
| 3462 |
/// case OP_LAYOUTCOMMIT: LAYOUTCOMMIT4res oplayoutcommit; |
| 3463 |
/// case OP_LAYOUTGET: LAYOUTGET4res oplayoutget; |
| 3464 |
/// case OP_LAYOUTRETURN: LAYOUTRETURN4res oplayoutreturn; |
| 3465 |
|
| 3466 |
|
| 3467 |
|
| 3468 |
<span class="grey">Shepler, et al. Standards Track [Page 62]</span></pre> |
| 3469 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-63" ></span> |
| 3470 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3471 |
|
| 3472 |
|
| 3473 |
/// |
| 3474 |
/// case OP_SECINFO_NO_NAME: |
| 3475 |
/// SECINFO_NO_NAME4res |
| 3476 |
/// opsecinfo_no_name; |
| 3477 |
/// |
| 3478 |
/// case OP_SEQUENCE: SEQUENCE4res opsequence; |
| 3479 |
/// case OP_SET_SSV: SET_SSV4res opset_ssv; |
| 3480 |
/// case OP_TEST_STATEID: TEST_STATEID4res optest_stateid; |
| 3481 |
/// |
| 3482 |
/// case OP_WANT_DELEGATION: |
| 3483 |
/// WANT_DELEGATION4res |
| 3484 |
/// opwant_delegation; |
| 3485 |
/// |
| 3486 |
/// case OP_DESTROY_CLIENTID: |
| 3487 |
/// DESTROY_CLIENTID4res |
| 3488 |
/// opdestroy_clientid; |
| 3489 |
/// |
| 3490 |
/// case OP_RECLAIM_COMPLETE: |
| 3491 |
/// RECLAIM_COMPLETE4res |
| 3492 |
/// opreclaim_complete; |
| 3493 |
/// |
| 3494 |
/// /* Operations not new to NFSv4.1 */ |
| 3495 |
/// case OP_ILLEGAL: ILLEGAL4res opillegal; |
| 3496 |
/// }; |
| 3497 |
/// |
| 3498 |
/// struct COMPOUND4args { |
| 3499 |
/// utf8str_cs tag; |
| 3500 |
/// uint32_t minorversion; |
| 3501 |
/// nfs_argop4 argarray<>; |
| 3502 |
/// }; |
| 3503 |
/// |
| 3504 |
/// struct COMPOUND4res { |
| 3505 |
/// nfsstat4 status; |
| 3506 |
/// utf8str_cs tag; |
| 3507 |
/// nfs_resop4 resarray<>; |
| 3508 |
/// }; |
| 3509 |
/// |
| 3510 |
/// |
| 3511 |
/// /* |
| 3512 |
/// * Remote file service routines |
| 3513 |
/// */ |
| 3514 |
/// program NFS4_PROGRAM { |
| 3515 |
/// version NFS_V4 { |
| 3516 |
/// void |
| 3517 |
/// NFSPROC4_NULL(void) = 0; |
| 3518 |
/// |
| 3519 |
/// COMPOUND4res |
| 3520 |
/// NFSPROC4_COMPOUND(COMPOUND4args) = 1; |
| 3521 |
|
| 3522 |
|
| 3523 |
|
| 3524 |
<span class="grey">Shepler, et al. Standards Track [Page 63]</span></pre> |
| 3525 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-64" ></span> |
| 3526 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3527 |
|
| 3528 |
|
| 3529 |
/// |
| 3530 |
/// } = 4; |
| 3531 |
/// } = 100003; |
| 3532 |
/// |
| 3533 |
/// /* |
| 3534 |
/// * NFS4 Callback Procedure Definitions and Program |
| 3535 |
/// */ |
| 3536 |
/// struct CB_GETATTR4args { |
| 3537 |
/// nfs_fh4 fh; |
| 3538 |
/// bitmap4 attr_request; |
| 3539 |
/// }; |
| 3540 |
/// |
| 3541 |
/// struct CB_GETATTR4resok { |
| 3542 |
/// fattr4 obj_attributes; |
| 3543 |
/// }; |
| 3544 |
/// |
| 3545 |
/// union CB_GETATTR4res switch (nfsstat4 status) { |
| 3546 |
/// case NFS4_OK: |
| 3547 |
/// CB_GETATTR4resok resok4; |
| 3548 |
/// default: |
| 3549 |
/// void; |
| 3550 |
/// }; |
| 3551 |
/// |
| 3552 |
/// struct CB_RECALL4args { |
| 3553 |
/// stateid4 stateid; |
| 3554 |
/// bool truncate; |
| 3555 |
/// nfs_fh4 fh; |
| 3556 |
/// }; |
| 3557 |
/// |
| 3558 |
/// struct CB_RECALL4res { |
| 3559 |
/// nfsstat4 status; |
| 3560 |
/// }; |
| 3561 |
/// |
| 3562 |
/// /* |
| 3563 |
/// * CB_ILLEGAL: Response for illegal operation numbers |
| 3564 |
/// */ |
| 3565 |
/// struct CB_ILLEGAL4res { |
| 3566 |
/// nfsstat4 status; |
| 3567 |
/// }; |
| 3568 |
/// |
| 3569 |
/// /* |
| 3570 |
/// * NFSv4.1 callback arguments and results |
| 3571 |
/// */ |
| 3572 |
/// |
| 3573 |
/// enum layoutrecall_type4 { |
| 3574 |
/// LAYOUTRECALL4_FILE = LAYOUT4_RET_REC_FILE, |
| 3575 |
/// LAYOUTRECALL4_FSID = LAYOUT4_RET_REC_FSID, |
| 3576 |
/// LAYOUTRECALL4_ALL = LAYOUT4_RET_REC_ALL |
| 3577 |
|
| 3578 |
|
| 3579 |
|
| 3580 |
<span class="grey">Shepler, et al. Standards Track [Page 64]</span></pre> |
| 3581 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-65" ></span> |
| 3582 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3583 |
|
| 3584 |
|
| 3585 |
/// }; |
| 3586 |
/// |
| 3587 |
/// struct layoutrecall_file4 { |
| 3588 |
/// nfs_fh4 lor_fh; |
| 3589 |
/// offset4 lor_offset; |
| 3590 |
/// length4 lor_length; |
| 3591 |
/// stateid4 lor_stateid; |
| 3592 |
/// }; |
| 3593 |
/// |
| 3594 |
/// union layoutrecall4 switch(layoutrecall_type4 lor_recalltype) { |
| 3595 |
/// case LAYOUTRECALL4_FILE: |
| 3596 |
/// layoutrecall_file4 lor_layout; |
| 3597 |
/// case LAYOUTRECALL4_FSID: |
| 3598 |
/// fsid4 lor_fsid; |
| 3599 |
/// case LAYOUTRECALL4_ALL: |
| 3600 |
/// void; |
| 3601 |
/// }; |
| 3602 |
/// |
| 3603 |
/// struct CB_LAYOUTRECALL4args { |
| 3604 |
/// layouttype4 clora_type; |
| 3605 |
/// layoutiomode4 clora_iomode; |
| 3606 |
/// bool clora_changed; |
| 3607 |
/// layoutrecall4 clora_recall; |
| 3608 |
/// }; |
| 3609 |
/// struct CB_LAYOUTRECALL4res { |
| 3610 |
/// nfsstat4 clorr_status; |
| 3611 |
/// }; |
| 3612 |
/// |
| 3613 |
/// /* |
| 3614 |
/// * Directory notification types. |
| 3615 |
/// */ |
| 3616 |
/// enum notify_type4 { |
| 3617 |
/// NOTIFY4_CHANGE_CHILD_ATTRS = 0, |
| 3618 |
/// NOTIFY4_CHANGE_DIR_ATTRS = 1, |
| 3619 |
/// NOTIFY4_REMOVE_ENTRY = 2, |
| 3620 |
/// NOTIFY4_ADD_ENTRY = 3, |
| 3621 |
/// NOTIFY4_RENAME_ENTRY = 4, |
| 3622 |
/// NOTIFY4_CHANGE_COOKIE_VERIFIER = 5 |
| 3623 |
/// }; |
| 3624 |
/// |
| 3625 |
/// /* Changed entry information. */ |
| 3626 |
/// struct notify_entry4 { |
| 3627 |
/// component4 ne_file; |
| 3628 |
/// fattr4 ne_attrs; |
| 3629 |
/// }; |
| 3630 |
/// |
| 3631 |
/// /* Previous entry information */ |
| 3632 |
/// struct prev_entry4 { |
| 3633 |
|
| 3634 |
|
| 3635 |
|
| 3636 |
<span class="grey">Shepler, et al. Standards Track [Page 65]</span></pre> |
| 3637 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-66" ></span> |
| 3638 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3639 |
|
| 3640 |
|
| 3641 |
/// notify_entry4 pe_prev_entry; |
| 3642 |
/// /* what READDIR returned for this entry */ |
| 3643 |
/// nfs_cookie4 pe_prev_entry_cookie; |
| 3644 |
/// }; |
| 3645 |
/// |
| 3646 |
/// struct notify_remove4 { |
| 3647 |
/// notify_entry4 nrm_old_entry; |
| 3648 |
/// nfs_cookie4 nrm_old_entry_cookie; |
| 3649 |
/// }; |
| 3650 |
/// |
| 3651 |
/// struct notify_add4 { |
| 3652 |
/// /* |
| 3653 |
/// * Information on object |
| 3654 |
/// * possibly renamed over. |
| 3655 |
/// */ |
| 3656 |
/// notify_remove4 nad_old_entry<1>; |
| 3657 |
/// notify_entry4 nad_new_entry; |
| 3658 |
/// /* what READDIR would have returned for this entry */ |
| 3659 |
/// nfs_cookie4 nad_new_entry_cookie<1>; |
| 3660 |
/// prev_entry4 nad_prev_entry<1>; |
| 3661 |
/// bool nad_last_entry; |
| 3662 |
/// }; |
| 3663 |
/// |
| 3664 |
/// struct notify_attr4 { |
| 3665 |
/// notify_entry4 na_changed_entry; |
| 3666 |
/// }; |
| 3667 |
/// |
| 3668 |
/// struct notify_rename4 { |
| 3669 |
/// notify_remove4 nrn_old_entry; |
| 3670 |
/// notify_add4 nrn_new_entry; |
| 3671 |
/// }; |
| 3672 |
/// |
| 3673 |
/// struct notify_verifier4 { |
| 3674 |
/// verifier4 nv_old_cookieverf; |
| 3675 |
/// verifier4 nv_new_cookieverf; |
| 3676 |
/// }; |
| 3677 |
/// |
| 3678 |
/// /* |
| 3679 |
/// * Objects of type notify_<>4 and |
| 3680 |
/// * notify_device_<>4 are encoded in this. |
| 3681 |
/// */ |
| 3682 |
/// typedef opaque notifylist4<>; |
| 3683 |
/// |
| 3684 |
/// struct notify4 { |
| 3685 |
/// /* composed from notify_type4 or notify_deviceid_type4 */ |
| 3686 |
/// bitmap4 notify_mask; |
| 3687 |
/// notifylist4 notify_vals; |
| 3688 |
/// }; |
| 3689 |
|
| 3690 |
|
| 3691 |
|
| 3692 |
<span class="grey">Shepler, et al. Standards Track [Page 66]</span></pre> |
| 3693 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-67" ></span> |
| 3694 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3695 |
|
| 3696 |
|
| 3697 |
/// |
| 3698 |
/// struct CB_NOTIFY4args { |
| 3699 |
/// stateid4 cna_stateid; |
| 3700 |
/// nfs_fh4 cna_fh; |
| 3701 |
/// notify4 cna_changes<>; |
| 3702 |
/// }; |
| 3703 |
/// |
| 3704 |
/// struct CB_NOTIFY4res { |
| 3705 |
/// nfsstat4 cnr_status; |
| 3706 |
/// }; |
| 3707 |
/// |
| 3708 |
/// struct CB_PUSH_DELEG4args { |
| 3709 |
/// nfs_fh4 cpda_fh; |
| 3710 |
/// open_delegation4 cpda_delegation; |
| 3711 |
/// |
| 3712 |
/// }; |
| 3713 |
/// |
| 3714 |
/// struct CB_PUSH_DELEG4res { |
| 3715 |
/// nfsstat4 cpdr_status; |
| 3716 |
/// }; |
| 3717 |
/// |
| 3718 |
/// const RCA4_TYPE_MASK_RDATA_DLG = 0; |
| 3719 |
/// const RCA4_TYPE_MASK_WDATA_DLG = 1; |
| 3720 |
/// const RCA4_TYPE_MASK_DIR_DLG = 2; |
| 3721 |
/// const RCA4_TYPE_MASK_FILE_LAYOUT = 3; |
| 3722 |
/// const RCA4_TYPE_MASK_BLK_LAYOUT = 4; |
| 3723 |
/// const RCA4_TYPE_MASK_OBJ_LAYOUT_MIN = 8; |
| 3724 |
/// const RCA4_TYPE_MASK_OBJ_LAYOUT_MAX = 9; |
| 3725 |
/// const RCA4_TYPE_MASK_OTHER_LAYOUT_MIN = 12; |
| 3726 |
/// const RCA4_TYPE_MASK_OTHER_LAYOUT_MAX = 15; |
| 3727 |
/// |
| 3728 |
/// struct CB_RECALL_ANY4args { |
| 3729 |
/// uint32_t craa_objects_to_keep; |
| 3730 |
/// bitmap4 craa_type_mask; |
| 3731 |
/// }; |
| 3732 |
/// |
| 3733 |
/// struct CB_RECALL_ANY4res { |
| 3734 |
/// nfsstat4 crar_status; |
| 3735 |
/// }; |
| 3736 |
/// |
| 3737 |
/// typedef CB_RECALL_ANY4args CB_RECALLABLE_OBJ_AVAIL4args; |
| 3738 |
/// |
| 3739 |
/// struct CB_RECALLABLE_OBJ_AVAIL4res { |
| 3740 |
/// nfsstat4 croa_status; |
| 3741 |
/// }; |
| 3742 |
/// |
| 3743 |
/// struct CB_RECALL_SLOT4args { |
| 3744 |
/// slotid4 rsa_target_highest_slotid; |
| 3745 |
|
| 3746 |
|
| 3747 |
|
| 3748 |
<span class="grey">Shepler, et al. Standards Track [Page 67]</span></pre> |
| 3749 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-68" ></span> |
| 3750 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3751 |
|
| 3752 |
|
| 3753 |
/// }; |
| 3754 |
/// |
| 3755 |
/// struct CB_RECALL_SLOT4res { |
| 3756 |
/// nfsstat4 rsr_status; |
| 3757 |
/// }; |
| 3758 |
/// |
| 3759 |
/// struct referring_call4 { |
| 3760 |
/// sequenceid4 rc_sequenceid; |
| 3761 |
/// slotid4 rc_slotid; |
| 3762 |
/// }; |
| 3763 |
/// |
| 3764 |
/// struct referring_call_list4 { |
| 3765 |
/// sessionid4 rcl_sessionid; |
| 3766 |
/// referring_call4 rcl_referring_calls<>; |
| 3767 |
/// }; |
| 3768 |
/// |
| 3769 |
/// struct CB_SEQUENCE4args { |
| 3770 |
/// sessionid4 csa_sessionid; |
| 3771 |
/// sequenceid4 csa_sequenceid; |
| 3772 |
/// slotid4 csa_slotid; |
| 3773 |
/// slotid4 csa_highest_slotid; |
| 3774 |
/// bool csa_cachethis; |
| 3775 |
/// referring_call_list4 csa_referring_call_lists<>; |
| 3776 |
/// }; |
| 3777 |
/// |
| 3778 |
/// struct CB_SEQUENCE4resok { |
| 3779 |
/// sessionid4 csr_sessionid; |
| 3780 |
/// sequenceid4 csr_sequenceid; |
| 3781 |
/// slotid4 csr_slotid; |
| 3782 |
/// slotid4 csr_highest_slotid; |
| 3783 |
/// slotid4 csr_target_highest_slotid; |
| 3784 |
/// }; |
| 3785 |
/// |
| 3786 |
/// union CB_SEQUENCE4res switch (nfsstat4 csr_status) { |
| 3787 |
/// case NFS4_OK: |
| 3788 |
/// CB_SEQUENCE4resok csr_resok4; |
| 3789 |
/// default: |
| 3790 |
/// void; |
| 3791 |
/// }; |
| 3792 |
/// |
| 3793 |
/// struct CB_WANTS_CANCELLED4args { |
| 3794 |
/// bool cwca_contended_wants_cancelled; |
| 3795 |
/// bool cwca_resourced_wants_cancelled; |
| 3796 |
/// }; |
| 3797 |
/// |
| 3798 |
/// struct CB_WANTS_CANCELLED4res { |
| 3799 |
/// nfsstat4 cwcr_status; |
| 3800 |
/// }; |
| 3801 |
|
| 3802 |
|
| 3803 |
|
| 3804 |
<span class="grey">Shepler, et al. Standards Track [Page 68]</span></pre> |
| 3805 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-69" ></span> |
| 3806 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3807 |
|
| 3808 |
|
| 3809 |
/// |
| 3810 |
/// struct CB_NOTIFY_LOCK4args { |
| 3811 |
/// nfs_fh4 cnla_fh; |
| 3812 |
/// lock_owner4 cnla_lock_owner; |
| 3813 |
/// }; |
| 3814 |
/// |
| 3815 |
/// struct CB_NOTIFY_LOCK4res { |
| 3816 |
/// nfsstat4 cnlr_status; |
| 3817 |
/// }; |
| 3818 |
/// |
| 3819 |
/// /* |
| 3820 |
/// * Device notification types. |
| 3821 |
/// */ |
| 3822 |
/// enum notify_deviceid_type4 { |
| 3823 |
/// NOTIFY_DEVICEID4_CHANGE = 1, |
| 3824 |
/// NOTIFY_DEVICEID4_DELETE = 2 |
| 3825 |
/// }; |
| 3826 |
/// |
| 3827 |
/// /* For NOTIFY4_DEVICEID4_DELETE */ |
| 3828 |
/// struct notify_deviceid_delete4 { |
| 3829 |
/// layouttype4 ndd_layouttype; |
| 3830 |
/// deviceid4 ndd_deviceid; |
| 3831 |
/// }; |
| 3832 |
/// |
| 3833 |
/// /* For NOTIFY4_DEVICEID4_CHANGE */ |
| 3834 |
/// struct notify_deviceid_change4 { |
| 3835 |
/// layouttype4 ndc_layouttype; |
| 3836 |
/// deviceid4 ndc_deviceid; |
| 3837 |
/// bool ndc_immediate; |
| 3838 |
/// }; |
| 3839 |
/// |
| 3840 |
/// struct CB_NOTIFY_DEVICEID4args { |
| 3841 |
/// notify4 cnda_changes<>; |
| 3842 |
/// }; |
| 3843 |
/// |
| 3844 |
/// struct CB_NOTIFY_DEVICEID4res { |
| 3845 |
/// nfsstat4 cndr_status; |
| 3846 |
/// }; |
| 3847 |
/// |
| 3848 |
/// /* |
| 3849 |
/// * Various definitions for CB_COMPOUND |
| 3850 |
/// */ |
| 3851 |
/// % |
| 3852 |
/// enum nfs_cb_opnum4 { |
| 3853 |
/// OP_CB_GETATTR = 3, |
| 3854 |
/// OP_CB_RECALL = 4, |
| 3855 |
/// %/* Callback operations new to NFSv4.1 */ |
| 3856 |
/// OP_CB_LAYOUTRECALL = 5, |
| 3857 |
|
| 3858 |
|
| 3859 |
|
| 3860 |
<span class="grey">Shepler, et al. Standards Track [Page 69]</span></pre> |
| 3861 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-70" ></span> |
| 3862 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3863 |
|
| 3864 |
|
| 3865 |
/// OP_CB_NOTIFY = 6, |
| 3866 |
/// OP_CB_PUSH_DELEG = 7, |
| 3867 |
/// OP_CB_RECALL_ANY = 8, |
| 3868 |
/// OP_CB_RECALLABLE_OBJ_AVAIL = 9, |
| 3869 |
/// OP_CB_RECALL_SLOT = 10, |
| 3870 |
/// OP_CB_SEQUENCE = 11, |
| 3871 |
/// OP_CB_WANTS_CANCELLED = 12, |
| 3872 |
/// OP_CB_NOTIFY_LOCK = 13, |
| 3873 |
/// OP_CB_NOTIFY_DEVICEID = 14, |
| 3874 |
/// |
| 3875 |
/// OP_CB_ILLEGAL = 10044 |
| 3876 |
/// }; |
| 3877 |
/// |
| 3878 |
/// union nfs_cb_argop4 switch (unsigned argop) { |
| 3879 |
/// case OP_CB_GETATTR: |
| 3880 |
/// CB_GETATTR4args opcbgetattr; |
| 3881 |
/// case OP_CB_RECALL: |
| 3882 |
/// CB_RECALL4args opcbrecall; |
| 3883 |
/// case OP_CB_LAYOUTRECALL: |
| 3884 |
/// CB_LAYOUTRECALL4args opcblayoutrecall; |
| 3885 |
/// case OP_CB_NOTIFY: |
| 3886 |
/// CB_NOTIFY4args opcbnotify; |
| 3887 |
/// case OP_CB_PUSH_DELEG: |
| 3888 |
/// CB_PUSH_DELEG4args opcbpush_deleg; |
| 3889 |
/// case OP_CB_RECALL_ANY: |
| 3890 |
/// CB_RECALL_ANY4args opcbrecall_any; |
| 3891 |
/// case OP_CB_RECALLABLE_OBJ_AVAIL: |
| 3892 |
/// CB_RECALLABLE_OBJ_AVAIL4args opcbrecallable_obj_avail; |
| 3893 |
/// case OP_CB_RECALL_SLOT: |
| 3894 |
/// CB_RECALL_SLOT4args opcbrecall_slot; |
| 3895 |
/// case OP_CB_SEQUENCE: |
| 3896 |
/// CB_SEQUENCE4args opcbsequence; |
| 3897 |
/// case OP_CB_WANTS_CANCELLED: |
| 3898 |
/// CB_WANTS_CANCELLED4args opcbwants_cancelled; |
| 3899 |
/// case OP_CB_NOTIFY_LOCK: |
| 3900 |
/// CB_NOTIFY_LOCK4args opcbnotify_lock; |
| 3901 |
/// case OP_CB_NOTIFY_DEVICEID: |
| 3902 |
/// CB_NOTIFY_DEVICEID4args opcbnotify_deviceid; |
| 3903 |
/// case OP_CB_ILLEGAL: void; |
| 3904 |
/// }; |
| 3905 |
/// |
| 3906 |
/// union nfs_cb_resop4 switch (unsigned resop) { |
| 3907 |
/// case OP_CB_GETATTR: CB_GETATTR4res opcbgetattr; |
| 3908 |
/// case OP_CB_RECALL: CB_RECALL4res opcbrecall; |
| 3909 |
/// |
| 3910 |
/// /* new NFSv4.1 operations */ |
| 3911 |
/// case OP_CB_LAYOUTRECALL: |
| 3912 |
/// CB_LAYOUTRECALL4res |
| 3913 |
|
| 3914 |
|
| 3915 |
|
| 3916 |
<span class="grey">Shepler, et al. Standards Track [Page 70]</span></pre> |
| 3917 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-71" ></span> |
| 3918 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3919 |
|
| 3920 |
|
| 3921 |
/// opcblayoutrecall; |
| 3922 |
/// |
| 3923 |
/// case OP_CB_NOTIFY: CB_NOTIFY4res opcbnotify; |
| 3924 |
/// |
| 3925 |
/// case OP_CB_PUSH_DELEG: CB_PUSH_DELEG4res |
| 3926 |
/// opcbpush_deleg; |
| 3927 |
/// |
| 3928 |
/// case OP_CB_RECALL_ANY: CB_RECALL_ANY4res |
| 3929 |
/// opcbrecall_any; |
| 3930 |
/// |
| 3931 |
/// case OP_CB_RECALLABLE_OBJ_AVAIL: |
| 3932 |
/// CB_RECALLABLE_OBJ_AVAIL4res |
| 3933 |
/// opcbrecallable_obj_avail; |
| 3934 |
/// |
| 3935 |
/// case OP_CB_RECALL_SLOT: |
| 3936 |
/// CB_RECALL_SLOT4res |
| 3937 |
/// opcbrecall_slot; |
| 3938 |
/// |
| 3939 |
/// case OP_CB_SEQUENCE: CB_SEQUENCE4res opcbsequence; |
| 3940 |
/// |
| 3941 |
/// case OP_CB_WANTS_CANCELLED: |
| 3942 |
/// CB_WANTS_CANCELLED4res |
| 3943 |
/// opcbwants_cancelled; |
| 3944 |
/// |
| 3945 |
/// case OP_CB_NOTIFY_LOCK: |
| 3946 |
/// CB_NOTIFY_LOCK4res |
| 3947 |
/// opcbnotify_lock; |
| 3948 |
/// |
| 3949 |
/// case OP_CB_NOTIFY_DEVICEID: |
| 3950 |
/// CB_NOTIFY_DEVICEID4res |
| 3951 |
/// opcbnotify_deviceid; |
| 3952 |
/// |
| 3953 |
/// /* Not new operation */ |
| 3954 |
/// case OP_CB_ILLEGAL: CB_ILLEGAL4res opcbillegal; |
| 3955 |
/// }; |
| 3956 |
/// |
| 3957 |
/// |
| 3958 |
/// struct CB_COMPOUND4args { |
| 3959 |
/// utf8str_cs tag; |
| 3960 |
/// uint32_t minorversion; |
| 3961 |
/// uint32_t callback_ident; |
| 3962 |
/// nfs_cb_argop4 argarray<>; |
| 3963 |
/// }; |
| 3964 |
/// |
| 3965 |
/// struct CB_COMPOUND4res { |
| 3966 |
/// nfsstat4 status; |
| 3967 |
/// utf8str_cs tag; |
| 3968 |
/// nfs_cb_resop4 resarray<>; |
| 3969 |
|
| 3970 |
|
| 3971 |
|
| 3972 |
<span class="grey">Shepler, et al. Standards Track [Page 71]</span></pre> |
| 3973 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-72" ></span> |
| 3974 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 3975 |
|
| 3976 |
|
| 3977 |
/// }; |
| 3978 |
/// |
| 3979 |
/// |
| 3980 |
/// |
| 3981 |
/// /* |
| 3982 |
/// * Program number is in the transient range since the client |
| 3983 |
/// * will assign the exact transient program number and provide |
| 3984 |
/// * that to the server via the SETCLIENTID operation. |
| 3985 |
/// */ |
| 3986 |
/// program NFS4_CALLBACK { |
| 3987 |
/// version NFS_CB { |
| 3988 |
/// void |
| 3989 |
/// CB_NULL(void) = 0; |
| 3990 |
/// CB_COMPOUND4res |
| 3991 |
/// CB_COMPOUND(CB_COMPOUND4args) = 1; |
| 3992 |
/// } = 1; |
| 3993 |
/// } = 0x40000000; |
| 3994 |
|
| 3995 |
<CODE ENDS> |
| 3996 |
|
| 3997 |
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Security Considerations</span> |
| 3998 |
|
| 3999 |
See the Security Considerations section of [<a href="#ref-4" title=""Network File System (NFS) Version 4 Minor Version 1 Protocol"">4</a>]. |
| 4000 |
|
| 4001 |
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span> |
| 4002 |
|
| 4003 |
See the IANA Considerations section of [<a href="#ref-4" title=""Network File System (NFS) Version 4 Minor Version 1 Protocol"">4</a>]. |
| 4004 |
|
| 4005 |
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Normative References</span> |
| 4006 |
|
| 4007 |
[<a id="ref-1">1</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement |
| 4008 |
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997. |
| 4009 |
|
| 4010 |
[<a id="ref-2">2</a>] IETF Trust, "Legal Provisions Relating to IETF Documents", |
| 4011 |
November 2008. |
| 4012 |
|
| 4013 |
[<a id="ref-3">3</a>] Eisler, M., "XDR: External Data Representation Standard", |
| 4014 |
STD 67, <a href="./rfc4506">RFC 4506</a>, May 2006. |
| 4015 |
|
| 4016 |
[<a id="ref-4">4</a>] Shepler, S., Ed., Eisler, M., Ed., and D. Noveck, Ed., "Network |
| 4017 |
File System (NFS) Version 4 Minor Version 1 Protocol", <a href="./rfc5661">RFC 5661</a>, |
| 4018 |
January 2010. |
| 4019 |
|
| 4020 |
[<a id="ref-5">5</a>] Shepler, S., Callaghan, B., Robinson, D., Thurlow, R., Beame, |
| 4021 |
C., Eisler, M., and D. Noveck, "Network File System (NFS) |
| 4022 |
version 4 Protocol", <a href="./rfc3530">RFC 3530</a>, April 2003. |
| 4023 |
|
| 4024 |
|
| 4025 |
|
| 4026 |
|
| 4027 |
|
| 4028 |
<span class="grey">Shepler, et al. Standards Track [Page 72]</span></pre> |
| 4029 |
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-73" ></span> |
| 4030 |
<span class="grey"><a href="./rfc5662">RFC 5662</a> NFSv4.1 XDR Description January 2010</span> |
| 4031 |
|
| 4032 |
|
| 4033 |
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Acknowledgments</span> |
| 4034 |
|
| 4035 |
The authors are grateful to Lars Eggert for navigating the |
| 4036 |
intellectual property issues of this document. |
| 4037 |
|
| 4038 |
Authors' Addresses |
| 4039 |
|
| 4040 |
Spencer Shepler (editor) |
| 4041 |
Storspeed, Inc. |
| 4042 |
7808 Moonflower Drive |
| 4043 |
Austin, TX 78750 |
| 4044 |
USA |
| 4045 |
|
| 4046 |
Phone: +1-512-402-5811 ext 8530 |
| 4047 |
EMail: [email protected] |
| 4048 |
|
| 4049 |
|
| 4050 |
Mike Eisler (editor) |
| 4051 |
NetApp |
| 4052 |
5765 Chase Point Circle |
| 4053 |
Colorado Springs, CO 80919 |
| 4054 |
USA |
| 4055 |
|
| 4056 |
Phone: +1-719-599-9026 |
| 4057 |
EMail: [email protected] |
| 4058 |
|
| 4059 |
|
| 4060 |
David Noveck (editor) |
| 4061 |
NetApp |
| 4062 |
1601 Trapelo Road, Suite 16 |
| 4063 |
Waltham, MA 02451 |
| 4064 |
USA |
| 4065 |
|
| 4066 |
Phone: +1-781-768-5347 |
| 4067 |
EMail: [email protected] |
| 4068 |
|
| 4069 |
|
| 4070 |
|
| 4071 |
|
| 4072 |
|
| 4073 |
|
| 4074 |
|
| 4075 |
|
| 4076 |
|
| 4077 |
|
| 4078 |
|
| 4079 |
|
| 4080 |
|
| 4081 |
|
| 4082 |
|
| 4083 |
|
| 4084 |
Shepler, et al. Standards Track [Page 73] |
| 4085 |
</pre> |