2020-12-19 18:32:25

by Thomas Haynes

[permalink] [raw]
Subject: [pynfs python3 1/7] CB_LAYOUTRECALL: Make string a byte array

From: Tom Haynes <[email protected]>

Signed-off-by: Tom Haynes <[email protected]>
---
nfs4.1/nfs4client.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfs4.1/nfs4client.py b/nfs4.1/nfs4client.py
index f06d9c5..df573d6 100644
--- a/nfs4.1/nfs4client.py
+++ b/nfs4.1/nfs4client.py
@@ -296,7 +296,7 @@ class NFS4Client(rpc.Client, rpc.Server):
layoutreturn4(LAYOUTRETURN4_FILE,
layoutreturn_file4(rclayout.lor_offset,
rclayout.lor_length, \
- rclayout.lor_stateid, "")))]
+ rclayout.lor_stateid, b"")))]
env.session.compound(ops)
elif lo_recalltype not in [LAYOUTRECALL4_FSID, LAYOUTRECALL4_ALL]:
res = NFS4ERR_NOTSUPP
--
2.26.2