On Monday 02 June 2014 11:06 AM,
Raghavendra G wrote:
But as of now the inode table is bound to bound_xl which is associated with the client_t object for the client being connected. As part of fops we can get the bound_xl (thus the inode table) from the rpc request (req->trans->xl_private). But in reconfigure we get just the xlator pointer of protocol/server and dict containing new options. So what I am planning is this. If the xprt_list (transport list corresponding to the clients mounted) is empty, then just set the private structure's variable for lru limit (which will be used to create the inode table when a client mounts). If xprt_list of protocol/server's private structure is not empty, then get one of the transports from that list and get the client_t object corresponding to the transport, from which bould_xl is obtained (all the client_t objects share the same inode table) . Then from bound_xl pointer to inode table is got and its variable for lru limit is also set to the value specified via cli and inode_table_prune is called to purge the extra inodes. Does it sound OK? Regards, Raghavendra Bhat Regards, Raghavendra Bhat
|
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-devel