[PATCH] inherit clone nfs_sever's rsize and wsize from parent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Trond,

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 <jlentini@xxxxxxxxxx>

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 7547600..3a4c12c 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -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;
 }
 
 /*
--
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

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux