From: Andy Adamson <andros@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- nfs4.1/fs.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/nfs4.1/fs.py b/nfs4.1/fs.py index adaa2d5..2d92d77 100644 --- a/nfs4.1/fs.py +++ b/nfs4.1/fs.py @@ -1382,7 +1382,8 @@ class FSLayoutFSObj(FSObject): # as it facilitates commits, returns, recalls etc. l_offset = 0 l_len = NFS4_UINT64_MAX - l_mode = LAYOUTIOMODE4_RW + # use requested iomode + l_mode = arg.loga_iomode l_type = LAYOUT4_NFSV4_1_FILES self.current_layout = (l_type, l_offset, l_len, l_mode) return layout4(l_offset, l_len, l_mode, -- 1.7.7.6 -- 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