pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


0001-daemon-Update-comment-FATTR_-OP_-for-new-RFCs.patch
Posted by Anonymous on Mon 15th Sep 2025 10:54
raw | new post

  1. From 9ae717e5301d5bd5913dba819e1c3b2d22fdbe6d Mon Sep 17 00:00:00 2001
  2. From: Cedric Blancher <cedric.blancher@gmail.com>
  3. Date: Sat, 13 Sep 2025 13:17:38 +0200
  4. Subject: [PATCH 1/2] daemon: Update+comment |FATTR_|+|OP_| for new RFCs
  5.  
  6. Update+comment |FATTR_|+|OP_| for new RFCs.
  7.  
  8. Signed-off-by: Roland Mainz <roland.mainz@nrubsig.org>
  9. ---
  10. daemon/nfs41_const.h | 10 +++++++++-
  11.  daemon/nfs41_ops.h   | 10 +++++++++-
  12.  2 files changed, 18 insertions(+), 2 deletions(-)
  13.  
  14. diff --git a/daemon/nfs41_const.h b/daemon/nfs41_const.h
  15. index 74ad31d..04adcc4 100644
  16. --- a/daemon/nfs41_const.h
  17. +++ b/daemon/nfs41_const.h
  18. @@ -369,7 +369,15 @@ enum nfsstat4 {
  19.  #define FATTR4_WORD2_MODE_SET_MASKED    MAKE_WORD2(74)
  20.  #define FATTR4_WORD2_FS_CHARSET_CAP     MAKE_WORD2(76)
  21.  #define FATTR4_WORD2_CLONE_BLKSIZE      MAKE_WORD2(77)
  22. -
  23. +#define FATTR4_WORD2_SPACE_FREED        MAKE_WORD2(78)
  24. +#define FATTR4_WORD2_CHANGE_ATTR_TYPE   MAKE_WORD2(79)
  25. +#define FATTR4_WORD2_SECURITY_LABEL     MAKE_WORD2(80)
  26. +#define FATTR4_WORD2_MODE_UMASK         MAKE_WORD2(81) /* RFC 8275 */
  27. +#define FATTR4_WORD2_XATTR_SUPPORT      MAKE_WORD2(82) /* RFC 8726+Linux XATTR is incompatible with Win32 EA */
  28. +#define FATTR4_WORD2_OFFLINE            MAKE_WORD2(83) /* RFC 9754 */
  29. +#define FATTR4_WORD2_TIME_DELEG_ACCESS  MAKE_WORD2(84)
  30. +#define FATTR4_WORD2_TIME_DELEG_MODIFY  MAKE_WORD2(85)
  31. +#define FATTR4_WORD2_OPEN_ARGUMENTS     MAKE_WORD2(86)
  32.  
  33.  /*
  34.   * File types
  35. diff --git a/daemon/nfs41_ops.h b/daemon/nfs41_ops.h
  36. index bd93fbf..8f2b022 100644
  37. --- a/daemon/nfs41_ops.h
  38. +++ b/daemon/nfs41_ops.h
  39. @@ -104,7 +104,15 @@ enum nfs_opnum4 {
  40.      OP_WRITE_SAME           = 70,
  41.      OP_CLONE                = 71,
  42.  
  43. -    /* xattr support (RFC8726) */
  44. +    /*
  45. +     * xattr support (RFC8726)
  46. +     * Note that RFC8726 XATTRS represent Linux XATTRs and are
  47. +     * semantically incompatible to Windows EA (extended attributes).
  48. +     * Windows EAs can only properly (i.e. pass the Windows HCL
  49. +     * filesystem tests) be implemented via NFSv4 "named attributes"
  50. +     * (OP_OPENATTR)&co, so these will remain no-ops for Windows NFS
  51. +     * clients conformaing to the Win32 specs.
  52. +     */
  53.      OP_GETXATTR             = 72,
  54.      OP_SETXATTR             = 73,
  55.      OP_LISTXATTRS           = 74,
  56. --
  57. 2.51.0

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at