File System Extended Attributes in NFSv4
draft-ietf-nfsv4-xattrs-02

The information below is for an old version of the document
Document Type Active Internet-Draft (nfsv4 WG)
Last updated 2016-03-08
Stream IETF
Intended RFC status (None)
Formats pdf htmlized (tools) htmlized bibtex
Reviews
Stream WG state WG Document
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
NFSv4 Working Group                                              M. Naik
Internet Draft                                                   Nutanix
Intended Status: Standards Track                                M. Eshel
Expires: September 8, 2016                                   IBM Almaden
                                                           March 7, 2016

                File System Extended Attributes in NFSv4
                       draft-ietf-nfsv4-xattrs-02

Abstract

   This document proposes extensions to the NFSv4 protocol which allow
   file extended attributes (hereinafter also referred to as xattrs) to
   be manipulated using NFSv4.  An xattr is a file system feature that
   allows opaque metadata, not interpreted by the file system, to be
   associated with files and directories.  Such support is present in
   many modern local file systems.  New file attributes are proposed to
   allow clients to query the server for xattr support, and new
   operations to get and set xattrs on file system objects are provided.

Status of this Memo

   This Internet-Draft is submitted to IETF in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF), its areas, and its working groups.  Note that
   other groups may also distribute working documents as
   Internet-Drafts.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   The list of current Internet-Drafts can be accessed at
   http://www.ietf.org/1id-abstracts.html

   The list of Internet-Draft Shadow Directories can be accessed at
   http://www.ietf.org/shadow.html

Copyright and License Notice

   Copyright (c) 2016 IETF Trust and the persons identified as the
 

Naik & Eshel           Expires September 8, 2016                [Page 1]
Internet Draft        Extended Attributes in NFSv4         March 7, 2016

   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.

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  4
     1.1.  Terminology  . . . . . . . . . . . . . . . . . . . . . . .  4
   2.  Use Cases  . . . . . . . . . . . . . . . . . . . . . . . . . .  5
   3.  File System Support  . . . . . . . . . . . . . . . . . . . . .  6
   4.  Namespaces . . . . . . . . . . . . . . . . . . . . . . . . . .  6
   5.  Differences from Named Attributes  . . . . . . . . . . . . . .  7
   6.  XDR Description  . . . . . . . . . . . . . . . . . . . . . . .  8
     6.1.  Code Components Licensing Notice . . . . . . . . . . . . .  8
   7.  Protocol Extensions  . . . . . . . . . . . . . . . . . . . . . 10
     7.1.  New definitions  . . . . . . . . . . . . . . . . . . . . . 10
     7.2.  New Attribute  . . . . . . . . . . . . . . . . . . . . . . 10
       7.2.1.  xattr_support  . . . . . . . . . . . . . . . . . . . . 11
     7.3.  New Error Definitions  . . . . . . . . . . . . . . . . . . 11
       7.3.1.  NFS4ERR_NOXATTR (Error Code 10095) . . . . . . . . . . 11
       7.3.2.  NFS4ERR_XATTR2BIG (Error Code 10096) . . . . . . . . . 11
     7.4.  New Operations . . . . . . . . . . . . . . . . . . . . . . 11
       7.4.1.  GETXATTR - Get an extended attribute of a file . . . . 12
       7.4.2.  SETXATTR - Set an extended attribute of a file . . . . 14
       7.4.3.  LISTXATTRS - List extended attributes of a file  . . . 15
       7.4.4.  REMOVEXATTR - Remove an extended attribute of a file . 17
       7.4.5.  Valid Errors . . . . . . . . . . . . . . . . . . . . . 18
     7.5.  Modifications to Existing Operations . . . . . . . . . . . 19
     7.6.  Numeric Values Assigned to Protocol Extensions . . . . . . 21
     7.7.  Caching  . . . . . . . . . . . . . . . . . . . . . . . . . 22
     7.8.  Xattrs and File Locking  . . . . . . . . . . . . . . . . . 24
     7.9.  pNFS Considerations  . . . . . . . . . . . . . . . . . . . 24
   8.  Security Considerations  . . . . . . . . . . . . . . . . . . . 25
   9.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 25
   10.  References  . . . . . . . . . . . . . . . . . . . . . . . . . 26
     10.1.  Normative References  . . . . . . . . . . . . . . . . . . 26
Show full document text