[PATCH pynfs v3 02/26] nfs4.1: add a getfh() to the end of create_obj() compound
Jeff Layton <[email protected]>
| Newsgroups | gmane.linux.nfs |
|---|---|
| Message-ID | <[email protected]> |
A later patch will use the create_obj() function to create files, but some of the tests require us to know the filehandle of the created object. Add a GETFH operation to the end of the create_obj() compound. Signed-off-by: Jeff Layton <[email protected]> --- nfs4.1/server41tests/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs4.1/server41tests/environment.py b/nfs4.1/server41tests/environment.py index 3c77153631ae..f5b1fea4a64c 100644 --- a/nfs4.1/server41tests/environment.py +++ b/nfs4.1/server41tests/environment.py @@ -474,7 +474,7 @@ def create_obj(sess, path, kind=NF4DIR, attrs={FATTR4_MODE:0o755}): # Ensure using createtype4 if not hasattr(kind, "type"): kind = createtype4(kind) - ops = use_obj(path[:-1]) + [op.create(kind, path[-1], attrs)] + ops = use_obj(path[:-1]) + [op.create(kind, path[-1], attrs), op.getfh()] return sess.compound(ops) def open_create_file(sess, owner, path=None, attrs={FATTR4_MODE: 0o644}, -- 2.54.0