Skip to contentSkip to conversation

Adjust COMP5 for RFC8276 addition of XATTR ops

PATCH In review Yong Sun 2 participants 2 messages Oct 24, 2024

Subsystems (2)
lore
Share & tools
lore

Yong Sun

author
#0 lore raw

PATCH 1/1 Adjust COMP5 for RFC8276 addition of XATTR ops

The COMP5 test needs to be updated for RFC-8276.
This RFC added some new legal opcodes for NFSv4.2 - number 72,73,74,75. So the '72' should be changed to '76'.

---
 nfs4.1/server41tests/st_compound.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
nfs4.1/server41tests/st_compound.py +1 -1
index fdf73b6..d6bc486 100644
@@ -111,7 +111,7 @@ def testUndefined(t, env):
             except:
                 # If it fails, try to just pack the opcode with void args
                 self.pack_uint32_t(data.argop)
-    for i in [0, 1, 2, 72, OP_ILLEGAL]:
+    for i in [0, 1, 2, OP_REMOVEXATTR+1, OP_ILLEGAL]:
         a = nfs_argop4(argop = i)
         try:
             res = c.compound([a], packer=CustomPacker)
Signature · 1 line
2.43.0
#1 lore raw
Quoted 3 lines · Yong Sun

The COMP5 test needs to be updated for RFC-8276.
This RFC added some new legal opcodes for NFSv4.2 - number 72,73,74,75. So the '72' should be changed to '76'.

Thanks very much indeed. Applied.

I've taken the liberty of adding:

If you submit any more patches, please include that.

thanks again,
calum.

Quoted 17 lines
---
  nfs4.1/server41tests/st_compound.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
nfs4.1/server41tests/st_compound.py +1 -1
index fdf73b6..d6bc486 100644
@@ -111,7 +111,7 @@ def testUndefined(t, env):
              except:
                  # If it fails, try to just pack the opcode with void args
                  self.pack_uint32_t(data.argop)
-    for i in [0, 1, 2, 72, OP_ILLEGAL]:
+    for i in [0, 1, 2, OP_REMOVEXATTR+1, OP_ILLEGAL]:
          a = nfs_argop4(argop = i)
          try:
              res = c.compound([a], packer=CustomPacker)