Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@xxxxxxx> --- nfs4.1/server41tests/st_current_stateid.py | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/nfs4.1/server41tests/st_current_stateid.py b/nfs4.1/server41tests/st_current_stateid.py index 788c095..3732907 100644 --- a/nfs4.1/server41tests/st_current_stateid.py +++ b/nfs4.1/server41tests/st_current_stateid.py @@ -131,3 +131,18 @@ def testOpenLayoutGet(t, env): 0, 8192, 8192, current_stateid, 0xffff)]) check(res, NFS4_OK) +def testOpenSetattr(t, env): + """test current state id processing by having OPEN and SETATTR + in a single compound + + FLAGS: currentstateid all + CODE: CSID8 + """ + size = 8 + sess = env.c1.new_client_session(env.testname(t), + flags=EXCHGID4_FLAG_USE_PNFS_MDS) + + open_op = open_create_file_op(sess, env.testname(t), open_create=OPEN4_CREATE) + res = sess.compound( open_op + + [ op.setattr(current_stateid, {FATTR4_SIZE: size})]) + check(res, NFS4_OK) -- 1.7.7.5 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html