pynfs: add CB_GETATTR tests and tests for delegated timestamps
Subsystems (2)
Jeff Layton
maintainerv2 cover pynfs: add CB_GETATTR tests and tests for delegated timestamps
I sent these a month or so ago, but Calum was on PTO. Sending again, with some additions.
This patchset adds a couple of CB_GETATTR tests, and then updates them to also test delegated mtime support. There is also a patch to make the nfsv4.1 tests default to minorversion 2
---
Changes in v2:
- check timestamps in WRT18, and pass_warn if they don't change
- have v4.1 tests default to minorversion 2
- have DELEG2 open the file r/w
- add support for the "delstid" draft symbols
- test delegated timestamps in new CB_GETATTR tests
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Jeff Layton (7):
WRT18: have it also check the ctime between writes
DELEG2: fix write delegation test to open the file RW
pynfs: update maintainer info
nfs4.1: add two CB_GETATTR tests
nfs4.1: default to minorversion 2
nfs4.1: add support for the "delstid" draft
st_deleg: test delegated timestamps in CB_GETATTR
CONTRIBUTING | 6 +- nfs4.0/servertests/st_write.py | 28 ++++++--- nfs4.1/nfs4client.py | 8 ++- nfs4.1/nfs4lib.py | 3 + nfs4.1/server41tests/environment.py | 3 + nfs4.1/server41tests/st_delegation.py | 102 ++++++++++++++++++++++++++++++- nfs4.1/testserver.py | 2 +- nfs4.1/xdrdef/nfs4.x | 111 ++++++++++++++++++++++++++++++++-- 8 files changed, 242 insertions(+), 21 deletions(-)
---
base-commit: c75f65983498a3254e3970da86eb6954415cac01
change-id: 20240905-cb_getattr-8db184a5b4bf
Best regards,
Signature · 1 line
Jeff Layton <[email protected]>
Jeff Layton
maintainerPATCH v2 1/7 WRT18: have it also check the ctime between writes
On many servers, the ctime doesn't have sufficient granularity to show an apparent change between rapid writes, but some are able to do so. Have the test also check the ctimes here and pass_warn if it doesn't change after every write.
--- nfs4.0/servertests/st_write.py | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-)
nfs4.0/servertests/st_write.py +18 -10
@@ -497,19 +497,27 @@ def testChangeGranularityWrite(t, env): c = env.c1 c.init_connection() fh, stateid = c.create_confirm(t.word()) - ops = c.use_obj(fh) + [c.getattr([FATTR4_CHANGE])] \ - + [op.write(stateid, 0, UNSTABLE4, _text)] + [c.getattr([FATTR4_CHANGE])] \ - + [op.write(stateid, 10, UNSTABLE4, _text)] + [c.getattr([FATTR4_CHANGE])] \ - + [op.write(stateid, 20, UNSTABLE4, _text)] + [c.getattr([FATTR4_CHANGE])] \ - + [op.write(stateid, 30, UNSTABLE4, _text)] + [c.getattr([FATTR4_CHANGE])] + attrlist = [FATTR4_CHANGE, FATTR4_TIME_METADATA] + ops = c.use_obj(fh) + [c.getattr(attrlist)] \ + + [op.write(stateid, 0, UNSTABLE4, _text)] + [c.getattr(attrlist)] \ + + [op.write(stateid, 10, UNSTABLE4, _text)] + [c.getattr(attrlist)] \ + + [op.write(stateid, 20, UNSTABLE4, _text)] + [c.getattr(attrlist)] \ + + [op.write(stateid, 30, UNSTABLE4, _text)] + [c.getattr(attrlist)] res = c.compound(ops) check(res) - chattr1 = res.resarray[1].obj_attributes - chattr2 = res.resarray[3].obj_attributes - chattr3 = res.resarray[5].obj_attributes - chattr4 = res.resarray[7].obj_attributes + chattr1 = res.resarray[1].obj_attributes[FATTR4_CHANGE] + chattr2 = res.resarray[3].obj_attributes[FATTR4_CHANGE] + chattr3 = res.resarray[5].obj_attributes[FATTR4_CHANGE] + chattr4 = res.resarray[7].obj_attributes[FATTR4_CHANGE] if chattr1 == chattr2 or chattr2 == chattr3 or chattr3 == chattr4: - t.fail("consecutive SETATTR(mode)'s don't all change change attribute") + t.fail("consecutive WRITE's don't change change attribute") + + ctime1 = res.resarray[1].obj_attributes[FATTR4_TIME_METADATA] + ctime2 = res.resarray[3].obj_attributes[FATTR4_TIME_METADATA] + ctime3 = res.resarray[5].obj_attributes[FATTR4_TIME_METADATA] + ctime4 = res.resarray[7].obj_attributes[FATTR4_TIME_METADATA] + if compareTimes(ctime1, ctime2) == 0 or compareTimes(ctime2, ctime3) == 0 or compareTimes(ctime3, ctime4) == 0: + t.pass_warn("consecutive WRITE's don't all change time_metadata") def testStolenStateid(t, env): """WRITE with incorrect permissions and somebody else's stateid
Signature · 1 line
2.47.0
Jeff Layton
maintainerPATCH v2 2/7 DELEG2: fix write delegation test to open the file RW
In reply to Jeff LaytonThe Linux NFS server currently will only grant a write delegation on a r/w open, so this test fails to get a delegation there. The test should work just as well with a r/w open.
--- nfs4.1/server41tests/st_delegation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
nfs4.1/server41tests/st_delegation.py +1 -1
@@ -79,7 +79,7 @@ def testWriteDeleg(t, env): FLAGS: writedelegations deleg CODE: DELEG2 """ - _testDeleg(t, env, OPEN4_SHARE_ACCESS_WRITE, + _testDeleg(t, env, OPEN4_SHARE_ACCESS_READ|OPEN4_SHARE_ACCESS_WRITE, OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG, OPEN4_SHARE_ACCESS_READ) def testAnyDeleg(t, env):
Signature · 1 line
2.47.0
Jeff Layton
maintainerPATCH v2 3/7 pynfs: update maintainer info
In reply to Jeff LaytonCalum is the new maintainer. Update the CONTRIBUTING doc.
--- CONTRIBUTING | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
CONTRIBUTING +3 -3
@@ -1,15 +1,15 @@ Check out the latest source code from - git://git.linux-nfs.org/projects/bfields/pynfs.git + git://git.linux-nfs.org/projects/cdmackay/pynfs.git Commit your changes. Please make sure each commit is individually correct and does only one thing. -When you're done, send the resulting patches to [email protected] and +When you're done, send the resulting patches to [email protected] and cc the [email protected] mailing list, using something like: git format-patch origin.. - git send-email --to="[email protected]" \ + git send-email --to="[email protected]" \ --cc="[email protected] 0* We generally follow similar processes to the Linux kernel, so
Signature · 1 line
2.47.0
Jeff Layton
maintainerPATCH v2 4/7 nfs4.1: add two CB_GETATTR tests
In reply to Jeff LaytonAdd tests for CB_GETATTR support.
Open a file r/w and request a write delegation. Do a getattr against it to get the current size and change attr. From a second client, issue a GETATTR against the file.
One test does this and has the delegation holder send back the same attrs, another has it send back updated ones.
--- nfs4.1/nfs4client.py | 6 +++ nfs4.1/server41tests/st_delegation.py | 72 ++++++++++++++++++++++++++++++++++- 2 files changed, 77 insertions(+), 1 deletion(-)
nfs4.1/nfs4client.py +6 -0
@@ -271,6 +271,12 @@ class NFS4Client(rpc.Client, rpc.Server): res = self.posthook(arg, env, res) return encode_status(NFS4_OK, res) + def op_cb_getattr(self, arg, env): + log_cb.info("In CB_GETATTR") + self.prehook(arg, env) + res = self.posthook(arg, env, res=CB_GETATTR4resok()) + return encode_status(NFS4_OK, res) + def op_cb_recall(self, arg, env): log_cb.info("In CB_RECALL") self.prehook(arg, env)
nfs4.1/server41tests/st_delegation.py +71 -1
81 lines not on this page · raw message
Signature · 1 line
2.47.0
Jeff Layton
maintainerPATCH v2 5/7 nfs4.1: default to minorversion 2
In reply to Jeff LaytonMinorversion 2 consists of all optional features, so we can safely just default to that in pynfs's 4.1 NFS4Client.
--- nfs4.1/nfs4client.py | 2 +- nfs4.1/testserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
nfs4.1/nfs4client.py +1 -1
@@ -27,7 +27,7 @@ op4 = nfs_ops.NFS4ops() SHOW_TRAFFIC = 0 class NFS4Client(rpc.Client, rpc.Server): - def __init__(self, host=b'localhost', port=2049, minorversion=1, ctrl_proc=16, summary=None, secure=False): + def __init__(self, host=b'localhost', port=2049, minorversion=2, ctrl_proc=16, summary=None, secure=False): rpc.Client.__init__(self, 100003, 4) self.prog = 0x40000000 self.versions = [1] # List of supported versions of prog
nfs4.1/testserver.py +1 -1
@@ -74,7 +74,7 @@ def scan_options(p): help="Store test results in xml format [%default]") p.add_option("--debug_fail", action="store_true", default=False, help="Force some checks to fail") - p.add_option("--minorversion", type="int", default=1, + p.add_option("--minorversion", type="int", default=2, metavar="MINORVERSION", help="Choose NFSv4 minor version") g = OptionGroup(p, "Security flavor options",
Signature · 1 line
2.47.0
Re: [PATCH pynfs v2 5/7] nfs4.1: default to minorversion 2
Quoted 44 lines · Jeff Layton
Minorversion 2 consists of all optional features, so we can safely just default to that in pynfs's 4.1 NFS4Client.
Signed-off-by Jeff Layton <[email protected]>---
nfs4.1/nfs4client.py| 2 +-nfs4.1/testserver.py| 2 +-2 files changed, 2 insertions(+), 2 deletions(-)nfs4.1/nfs4client.py +0
-0@@ -27,7 +27,7 @@ op4 = nfs_ops.NFS4ops()
SHOW_TRAFFIC= 0class
NFS4Client(rpc.Client, rpc.Server):nfs4.1/nfs4client.py +1
-1- def __init__(self, host=b'localhost', port=2049, minorversion=1, ctrl_proc=16, summary=None, secure=False): + def __init__(self, host=b'localhost', port=2049, minorversion=2, ctrl_proc=16, summary=None, secure=False): rpc.Client.__init__(self, 100003, 4) self.prog = 0x40000000 self.versions = [1] # List of supported versions of prognfs4.1/testserver.py +1
-1@@ -74,7 +74,7 @@ def scan_options(p): help="Store test results in xml format [%default]") p.add_option("--debug_fail", action="store_true", default=False, help="Force some checks to fail") - p.add_option("--minorversion", type="int", default=1, + p.add_option("--minorversion", type="int", default=2, metavar="MINORVERSION", help="Choose NFSv4 minor version") g = OptionGroup(p, "Security flavor options",Signature · 2 lines
-- 2.47.0
I'm not convinced we want to combine the NFSv4.1 and NFSv4.2 tests.
How are we planning to deal with NFSv4 extensions?
--
Chuck Lever
Jeff Layton
maintainerRe: [PATCH pynfs v2 5/7] nfs4.1: default to minorversion 2
Quoted 47 lines · Chuck Lever III
Quoted 43 lines · Jeff Layton
Minorversion 2 consists of all optional features, so we can safely just default to that in pynfs's 4.1 NFS4Client.
Signed-off-by Jeff Layton <[email protected]>---
nfs4.1/nfs4client.py| 2 +-nfs4.1/testserver.py| 2 +-2 files changed, 2 insertions(+), 2 deletions(-)nfs4.1/nfs4client.py +0
-0@@ -27,7 +27,7 @@ op4 = nfs_ops.NFS4ops()
SHOW_TRAFFIC= 0class
NFS4Client(rpc.Client, rpc.Server):nfs4.1/nfs4client.py +1
-1- def __init__(self, host=b'localhost', port=2049, minorversion=1, ctrl_proc=16, summary=None, secure=False): + def __init__(self, host=b'localhost', port=2049, minorversion=2, ctrl_proc=16, summary=None, secure=False): rpc.Client.__init__(self, 100003, 4) self.prog = 0x40000000 self.versions = [1] # List of supported versions of prognfs4.1/testserver.py +1
-1@@ -74,7 +74,7 @@ def scan_options(p): help="Store test results in xml format [%default]") p.add_option("--debug_fail", action="store_true", default=False, help="Force some checks to fail") - p.add_option("--minorversion", type="int", default=1, + p.add_option("--minorversion", type="int", default=2, metavar="MINORVERSION", help="Choose NFSv4 minor version") g = OptionGroup(p, "Security flavor options",Signature · 2 lines
-- 2.47.0I'm not convinced we want to combine the NFSv4.1 and NFSv4.2 tests.
Quoted 2 lines
How are we planning to deal with NFSv4 extensions?
IMO, it made sense to have different directories and tests for v4.0 vs. v4.1, given the protocol differences, but v4.2 is a set of extensions to the v4.1 protocol. I don't think we're well served by creating all a bunch of extra infrastructure for that when we can just extend the v4.1 stuff.
The tests in this patchset treat v4.2 functionality as optional. If the server advertises it, they will test it. That may not make sense for everything, but it should work well enough here.
Signature · 1 line
Jeff Layton <[email protected]>
Re: [PATCH pynfs v2 5/7] nfs4.1: default to minorversion 2
Quoted 61 lines · Jeff Layton
Quoted 47 lines · Chuck Lever III
Quoted 43 lines · Jeff Layton
Minorversion 2 consists of all optional features, so we can safely just default to that in pynfs's 4.1 NFS4Client.
Signed-off-by Jeff Layton <[email protected]>---
nfs4.1/nfs4client.py| 2 +-nfs4.1/testserver.py| 2 +-2 files changed, 2 insertions(+), 2 deletions(-)nfs4.1/nfs4client.py +0
-0@@ -27,7 +27,7 @@ op4 = nfs_ops.NFS4ops()
SHOW_TRAFFIC= 0class
NFS4Client(rpc.Client, rpc.Server):nfs4.1/nfs4client.py +1
-1- def __init__(self, host=b'localhost', port=2049, minorversion=1, ctrl_proc=16, summary=None, secure=False): + def __init__(self, host=b'localhost', port=2049, minorversion=2, ctrl_proc=16, summary=None, secure=False): rpc.Client.__init__(self, 100003, 4) self.prog = 0x40000000 self.versions = [1] # List of supported versions of prognfs4.1/testserver.py +1
-1@@ -74,7 +74,7 @@ def scan_options(p): help="Store test results in xml format [%default]") p.add_option("--debug_fail", action="store_true", default=False, help="Force some checks to fail") - p.add_option("--minorversion", type="int", default=1, + p.add_option("--minorversion", type="int", default=2, metavar="MINORVERSION", help="Choose NFSv4 minor version") g = OptionGroup(p, "Security flavor options",Signature · 2 lines
-- 2.47.0I'm not convinced we want to combine the NFSv4.1 and NFSv4.2 tests.
Quoted 2 lines
How are we planning to deal with NFSv4 extensions?
IMO, it made sense to have different directories and tests for v4.0 vs. v4.1, given the protocol differences, but v4.2 is a set of extensions to the v4.1 protocol. I don't think we're well served by creating all a bunch of extra infrastructure for that when we can just extend the v4.1 stuff.
Quoted 3 lines
The tests in this patchset treat v4.2 functionality as optional. If the server advertises it, they will test it. That may not make sense for everything, but it should work well enough here.
I'm still not convinced, but I guess it shouldn't be actively harmful to take this approach for now. No objection.
--
Chuck Lever
Jeff Layton
maintainerPATCH v2 6/7 nfs4.1: add support for the "delstid" draft
In reply to Jeff LaytonAdd the new .x snippet to nfs4.x, and the necessary info about the new attributes.
--- nfs4.1/nfs4lib.py | 3 + nfs4.1/server41tests/environment.py | 3 + nfs4.1/xdrdef/nfs4.x | 111 ++++++++++++++++++++++++++++++++++-- 3 files changed, 113 insertions(+), 4 deletions(-)
nfs4.1/nfs4lib.py +3 -0
@@ -731,5 +731,8 @@ attr_info = { FATTR4_SUPPORTED_ATTRS : A("r", "fs"), FATTR4_MODE_SET_MASKED : A("w", "obj"), FATTR4_FS_CHARSET_CAP : A("r", "fs"), FATTR4_XATTR_SUPPORT : A("r", "obj"), + FATTR4_TIME_DELEG_ACCESS : A("w", "obj"), + FATTR4_TIME_DELEG_MODIFY : A("w", "obj"), + FATTR4_OPEN_ARGUMENTS : A("r", "fs"), } del A
nfs4.1/server41tests/environment.py +3 -0
@@ -108,6 +108,9 @@ class Environment(testmod.Environment): AttrInfo('time_modify_set', 'w', settime4(0)), AttrInfo('mounted_on_fileid', 'r', 0), AttrInfo('xattr_support', 'r', False), + AttrInfo('time_deleg_access', 'r', nfstime4(0, 0)), + AttrInfo('time_deleg_modify', 'r', nfstime4(0, 0)), + AttrInfo('open_arguments', 'r', open_arguments4()), ] home = property(lambda s: use_obj(s.opts.home))
nfs4.1/xdrdef/nfs4.x +107 -4
128 lines not on this page · raw message
Signature · 1 line
2.47.0
Jeff Layton
maintainerPATCH v2 7/7 st_deleg: test delegated timestamps in CB_GETATTR
In reply to Jeff LaytonFirst, query the server to get the SUPPORTED_ATTRS and OPEN_ARGUMENTS, and determine whether delegated timestamps are supported. If they are, request them, and test whether they are as expected.
--- nfs4.1/server41tests/st_delegation.py | 42 +++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 7 deletions(-)
nfs4.1/server41tests/st_delegation.py +35 -7
@@ -301,22 +301,44 @@ def _testCbGetattr(t, env, change=0, size=0): sess1 = env.c1.new_client_session(b"%s_1" % env.testname(t)) sess1.client.cb_post_hook(OP_CB_GETATTR, getattr_post_hook) - fh, deleg = __create_file_with_deleg(sess1, env.testname(t), - OPEN4_SHARE_ACCESS_READ | - OPEN4_SHARE_ACCESS_WRITE | - OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG) + res = sess1.compound([op.putrootfh(), + op.getattr(nfs4lib.list2bitmap([FATTR4_SUPPORTED_ATTRS, + FATTR4_OPEN_ARGUMENTS]))]) + check(res) + caps = res.resarray[-1].obj_attributes + + openmask = (OPEN4_SHARE_ACCESS_READ | + OPEN4_SHARE_ACCESS_WRITE | + OPEN4_SHARE_ACCESS_WANT_WRITE_DELEG) + + if caps[FATTR4_SUPPORTED_ATTRS] & FATTR4_OPEN_ARGUMENTS: + if caps[FATTR4_OPEN_ARGUMENTS].oa_share_access_want & OPEN_ARGS_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS: + openmask |= 1<<OPEN_ARGS_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS + + fh, deleg = __create_file_with_deleg(sess1, env.testname(t), openmask) print("__create_file_with_deleg: ", fh, deleg) - attrs1 = do_getattrdict(sess1, fh, [FATTR4_CHANGE, FATTR4_SIZE]) - cbattrs = dict(attrs1) + attrs1 = do_getattrdict(sess1, fh, [FATTR4_CHANGE, FATTR4_SIZE, + FATTR4_TIME_ACCESS, FATTR4_TIME_MODIFY]) + + cbattrs[FATTR4_CHANGE] = attrs1[FATTR4_CHANGE] + cbattrs[FATTR4_SIZE] = attrs1[FATTR4_SIZE] if change != 0: cbattrs[FATTR4_CHANGE] += 1 if size > 0: cbattrs[FATTR4_SIZE] = size + if openmask & 1<<OPEN_ARGS_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS: + cbattrs[FATTR4_TIME_DELEG_ACCESS] = attrs1[FATTR4_TIME_ACCESS] + cbattrs[FATTR4_TIME_DELEG_MODIFY] = attrs1[FATTR4_TIME_MODIFY] + if change != 0: + cbattrs[FATTR4_TIME_DELEG_ACCESS].seconds += 1 + cbattrs[FATTR4_TIME_DELEG_MODIFY].seconds += 1 + # create a new client session and do a GETATTR sess2 = env.c1.new_client_session(b"%s_2" % env.testname(t)) - slot = sess2.compound_async([op.putfh(fh), op.getattr(1<<FATTR4_CHANGE | 1<<FATTR4_SIZE)]) + slot = sess2.compound_async([op.putfh(fh), op.getattr(1<<FATTR4_CHANGE | 1<<FATTR4_SIZE | + 1<<FATTR4_TIME_ACCESS | 1<<FATTR4_TIME_MODIFY)]) # wait for the CB_GETATTR completed = cb.wait(2)
@@ -343,6 +365,9 @@ def testCbGetattrNoChange(t, env): fail("Bad size: %u != %u" % (attrs1[FATTR4_SIZE], attrs2[FATTR4_SIZE])) if attrs1[FATTR4_CHANGE] != attrs2[FATTR4_CHANGE]: fail("Bad change attribute: %u != %u" % (attrs1[FATTR4_CHANGE], attrs2[FATTR4_CHANGE])) + if FATTR4_TIME_DELEG_MODIFY in attrs2: + if attrs1[FATTR4_TIME_MODIFY] != attrs2[FATTR4_TIME_DELEG_MODIFY]: + fail("Bad modify time: ", attrs1[FATTR4_TIME_MODIFY], " != ", attrs2[FATTR4_TIME_DELEG_MODIFY]) def testCbGetattrWithChange(t, env): """Test CB_GETATTR with simulated changes to file
@@ -359,3 +384,6 @@ def testCbGetattrWithChange(t, env): fail("Bad size: %u != 5" % attrs2[FATTR4_SIZE]) if attrs1[FATTR4_CHANGE] == attrs2[FATTR4_CHANGE]: fail("Bad change attribute: %u == %u" % (attrs1[FATTR4_CHANGE], attrs2[FATTR4_CHANGE])) + if FATTR4_TIME_DELEG_MODIFY in attrs2: + if attrs1[FATTR4_TIME_MODIFY] == attrs2[FATTR4_TIME_DELEG_MODIFY]: + fail("Bad modify time: ", attrs1[FATTR4_TIME_MODIFY], " == ", attrs2[FATTR4_TIME_DELEG_MODIFY])
Signature · 1 line
2.47.0
thanks very much Jeff, and for the reminder. I'll look at these this week.
cheers,
c.
Quoted 41 lines · Jeff Layton
I sent these a month or so ago, but Calum was on PTO. Sending again, with some additions.
This patchset adds a couple of
CB_GETATTRtests, and then updates them to also test delegated mtime support. There is also a patch to make the nfsv4.1 tests default to minorversion 2Signed-off-by Jeff Layton <[email protected]>---
Changes in v2:
- check timestamps in WRT18, andpass_warnif they don't change
- have v4.1 tests default to minorversion 2
- have DELEG2 open the file r/w
- add support for the "delstid" draft symbols
- test delegated timestamps in newCB_GETATTRtests
- Link to v1: https://lore.kernel.org/r/[email protected]---
Jeff Layton (7):
WRT18: have it also check the ctime between writes
DELEG2: fix write delegation test to open the file RW
pynfs: update maintainer info
nfs4.1: add twoCB_GETATTRtests
nfs4.1: default to minorversion 2
nfs4.1: add support for the "delstid" draft
st_deleg: test delegated timestamps inCB_GETATTRCONTRIBUTING | 6 +- nfs4.0/servertests/st_write.py | 28 ++++++--- nfs4.1/nfs4client.py | 8 ++- nfs4.1/nfs4lib.py | 3 + nfs4.1/server41tests/environment.py | 3 + nfs4.1/server41tests/st_delegation.py | 102 ++++++++++++++++++++++++++++++- nfs4.1/testserver.py | 2 +- nfs4.1/xdrdef/nfs4.x | 111 ++++++++++++++++++++++++++++++++-- 8 files changed, 242 insertions(+), 21 deletions(-)---
base-commit:c75f65983498a3254e3970da86eb6954415cac01
change-id: 20240905-cb_getattr-8db184a5b4bfBest regards,
Calum Mackay
AppliedQuoted 6 lines · Jeff Layton
I sent these a month or so ago, but Calum was on PTO. Sending again, with some additions.
This patchset adds a couple of
CB_GETATTRtests, and then updates them to also test delegated mtime support. There is also a patch to make the nfsv4.1 tests default to minorversion 2
Applied; apologies for the delay.
Thanks very much, Jeff.
cheers,
calum.
Quoted 35 lines
Signed-off-by Jeff Layton <[email protected]>---
Changes in v2:
- check timestamps in WRT18, andpass_warnif they don't change
- have v4.1 tests default to minorversion 2
- have DELEG2 open the file r/w
- add support for the "delstid" draft symbols
- test delegated timestamps in newCB_GETATTRtests
- Link to v1: https://lore.kernel.org/r/[email protected]---
Jeff Layton (7):
WRT18: have it also check the ctime between writes
DELEG2: fix write delegation test to open the file RW
pynfs: update maintainer info
nfs4.1: add twoCB_GETATTRtests
nfs4.1: default to minorversion 2
nfs4.1: add support for the "delstid" draft
st_deleg: test delegated timestamps inCB_GETATTRCONTRIBUTING | 6 +- nfs4.0/servertests/st_write.py | 28 ++++++--- nfs4.1/nfs4client.py | 8 ++- nfs4.1/nfs4lib.py | 3 + nfs4.1/server41tests/environment.py | 3 + nfs4.1/server41tests/st_delegation.py | 102 ++++++++++++++++++++++++++++++- nfs4.1/testserver.py | 2 +- nfs4.1/xdrdef/nfs4.x | 111 ++++++++++++++++++++++++++++++++-- 8 files changed, 242 insertions(+), 21 deletions(-)---
base-commit:c75f65983498a3254e3970da86eb6954415cac01
change-id: 20240905-cb_getattr-8db184a5b4bfBest regards,