I think this is a minor issue.
When a mount is cloned, the new nfs_server's rsize and wsize do not
inherit their initial values from the parent mount.
nfs_server_set_fsinfo() ends up setting the new nfs_server's rsize and
wsize to the values returned in the FSINFO response. As a result,
there is no way for a system administrator to configure the rsize and
wsize of a cloned mount.
The patch below makes the cloned nfs_server inherit its initial rsize
and wsize from its parent.
Signed-off-by: James Lentini <[email protected]>
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 7547600..3a4c12c 100644
@@ -831,6 +831,8 @@ static void nfs_server_copy_userdata(struct nfs_server *target, struct nfs_serve
target->acdirmin = source->acdirmin;
target->acdirmax = source->acdirmax;
target->caps = source->caps;
+ target->rsize = source->rsize;
+ target->wsize = source->wsize;