没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
内容概要:本文档由互联网工程任务组(IETF)发布,详细描述了网络文件系统(NFS)版本4的外部数据表示标准(XDR)。NFSv4协议是分布式文件系统协议,继承自NFSv2和NFSv3,但引入了文件锁定、MOUNT协议集成、强安全支持(包括安全协商)、COMPOUND操作、客户端缓存和国际化等新特性。文档还提供了NFSv4协议的XDR描述,包括基本类型定义、错误状态、文件属性、访问控制列表(ACL)、文件操作(如创建、删除、读取、写入等)以及回调机制。此外,文档强调了NFSv4对互联网环境的良好适应性,并取代了RFC 3530作为NFSv4协议的定义。 适合人群:网络管理员、系统架构师、开发人员,尤其是对分布式文件系统和网络协议有研究兴趣的专业人士。 使用场景及目标:①理解NFSv4协议的核心特性和改进;②掌握NFSv4的XDR描述及其在网络通信中的应用;③学习如何在实际环境中配置和优化NFSv4服务;④研究NFSv4的安全机制及其在网络环境中的部署。 其他说明:本文档是互联网标准轨道文件,代表IETF社区的共识,经过公开审查并获得互联网工程指导小组(IESG)批准。文档提供详细的XDR描述,适用于需要深入了解NFSv4协议内部结构和技术细节的专业读者。建议读者结合实际应用场景进行实践,并参考相关RFC文档以获取更多信息。
资源推荐
资源详情
资源评论































Internet Engineering Task Force (IETF) T. Haynes, Ed.
Request for Comments: 7531 Primary Data
Category: Standards Track D. Noveck, Ed.
ISSN: 2070-1721 Dell
March 2015
Network File System (NFS) Version 4
External Data Representation Standard (XDR) Description
Abstract
The Network File System (NFS) version 4 protocol is a distributed
file system protocol that owes its heritage to NFS protocol version 2
(RFC 1094) and version 3 (RFC 1813). Unlike earlier versions, the
NFS version 4 protocol supports traditional file access while
integrating support for file locking and the MOUNT protocol. In
addition, support for strong security (and its negotiation), COMPOUND
operations, client caching, and internationalization has been added.
Of course, attention has been applied to making NFS version 4 operate
well in an Internet environment.
RFC 7530 formally obsoletes RFC 3530. This document, together with
RFC 7530, replaces RFC 3530 as the definition of the NFS version 4
protocol.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section 2 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc7531.
Haynes & Noveck Standards Track [Page 1]

RFC 7531 NFSv4 XDR March 2015
Copyright Notice
Copyright (c) 2015 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust’s Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
Haynes & Noveck Standards Track [Page 2]

RFC 7531 NFSv4 XDR March 2015
Table of Contents
1. Introduction ...................................................3
2. XDR Description of NFSv4.0 .....................................3
3. Security Considerations .......................................39
4. Normative References ..........................................39
Acknowledgments ..................................................39
Authors’ Addresses ...............................................39
1. Introduction
This document contains the External Data Representation (XDR)
[RFC4506] description of the NFSv4.0 protocol [RFC7530].
2. XDR Description of NFSv4.0
The XDR description is provided in this document in a way that makes
it simple for the reader to extract it into a form that is ready to
compile. The reader can feed this document in the following shell
script to produce the machine-readable XDR description of NFSv4.0:
#!/bin/sh
grep "^ *///" | sed ’s?^ */// ??’ | sed ’s?^ *///$??’
That is, if the above script is stored in a file called "extract.sh",
and this document is in a file called "spec.txt", then the reader
can do:
sh extract.sh < spec.txt > nfs4_prot.x
The effect of the script is to remove leading white space from each
line, plus a sentinel sequence of "///".
The XDR description, with the sentinel sequence, follows:
Haynes & Noveck Standards Track [Page 3]

RFC 7531 NFSv4 XDR March 2015
/// /*
/// * This file was machine generated for [RFC7530].
/// *
/// * Last updated Tue Mar 10 11:51:21 PDT 2015.
/// */
///
/// /*
/// * Copyright (c) 2015 IETF Trust and the persons identified
/// * as authors of the code. All rights reserved.
/// *
/// * Redistribution and use in source and binary forms, with
/// * or without modification, are permitted provided that the
/// * following conditions are met:
/// *
/// * - Redistributions of source code must retain the above
/// * copyright notice, this list of conditions and the
/// * following disclaimer.
/// *
/// * - Redistributions in binary form must reproduce the above
/// * copyright notice, this list of conditions and the
/// * following disclaimer in the documentation and/or other
/// * materials provided with the distribution.
/// *
/// * - Neither the name of Internet Society, IETF or IETF
/// * Trust, nor the names of specific contributors, may be
/// * used to endorse or promote products derived from this
/// * software without specific prior written permission.
/// *
/// * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
/// * AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
/// * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
/// * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
/// * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
/// * EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
/// * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
/// * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
/// * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
/// * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
/// * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
/// * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
/// * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
/// * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
/// * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/// */
///
Haynes & Noveck Standards Track [Page 4]

RFC 7531 NFSv4 XDR March 2015
/// /*
/// * This code was derived from RFC 7531.
/// */
///
/// /*
/// * nfs4_prot.x
/// *
/// */
///
/// /*
/// * Basic typedefs for RFC 1832 data type definitions
/// */
/// /*
/// * typedef int int32_t;
/// * typedef unsigned int uint32_t;
/// * typedef hyper int64_t;
/// * typedef unsigned hyper uint64_t;
/// */
///
/// /*
/// * Sizes
/// */
/// const NFS4_FHSIZE = 128;
/// const NFS4_VERIFIER_SIZE = 8;
/// const NFS4_OTHER_SIZE = 12;
/// const NFS4_OPAQUE_LIMIT = 1024;
///
/// const NFS4_INT64_MAX = 0x7fffffffffffffff;
/// const NFS4_UINT64_MAX = 0xffffffffffffffff;
/// const NFS4_INT32_MAX = 0x7fffffff;
/// const NFS4_UINT32_MAX = 0xffffffff;
///
///
/// /*
/// * File types
/// */
/// enum nfs_ftype4 {
/// NF4REG = 1, /* Regular File */
/// NF4DIR = 2, /* Directory */
/// NF4BLK = 3, /* Special File - block device */
/// NF4CHR = 4, /* Special File - character device */
/// NF4LNK = 5, /* Symbolic Link */
/// NF4SOCK = 6, /* Special File - socket */
Haynes & Noveck Standards Track [Page 5]
剩余38页未读,继续阅读
资源评论


HHFQ
- 粉丝: 141
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- (源码)基于 XIAO ESPC3 微控制器的无线 Cyberpuck 鼠标.zip
- 基于COMSOL的单相变压器绕组及铁芯振动形变仿真模型研究与应用
- 基于非支配排序的多目标小龙虾优化算法求解柔性作业车间调度问题(FJSP)的MATLAB实现
- 基于博弈树和NMPC的无信号灯T型路口车辆冲突智能运动规划策略研究 NMPC 终极版
- 移动边缘计算中基于差分进化算法的任务卸载与资源调度研究及MATLAB实现
- 离网风电耦合PEM电解水制氢系统的建模与优化:非并网风电制氢技术的应用研究
- 基于五次多项式的快速自由换道轨迹规划(DLC方法)的MATLAB或Python实现:针对性设计评价成本函数与三车道场景仿真demo
- 基于西门子S7-300PLC与S7-1200PLC的污水处理控制系统全套资料:包含触摸屏仿真画面图纸文档,兼容博图V16及以上版本
- 永磁直驱风力发电系统(PMSG)的并网装置仿真与优化控制策略 2025版
- 燃料电池汽车Cruise-MATLABSimulink联合仿真的多点恒功率控制策略研究
- 基于Lyapunov方法的欠驱动无人船USV路径与轨迹跟踪控制策略实现——11-trans顶刊代码复现 - 非线性控制
- 双馈风力发电机变流器Simulink仿真模型及参数突变研究
- 非奇异快速终端滑模控制(NFTSMC)在三自由度水面艇轨迹跟踪中的应用研究及MatlabSimulink实现
- 基于PLC的S7-1200智能交通灯控制系统:博途编程与Wincc组态仿真及报告研究 WinCC 必备版
- 西门子S7-200PLC与组态王联合打造物料传送带四传送带智能控制系统 终极版
- 西门子S7-200PLC与组态王在三层电梯控制系统中的设计与实现
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
