Re: [Nfs-ganesha-devel] FSAL_MDCACHE and pNFS

2016-07-26 Thread Marc Eshel
Here are all the ops that need to be supported through MDCACHE, I am not sure it it is the way of any call-backs. Thabks, Marc. static void dsh_ops_init(struct fsal_dsh_ops *ops) { /* redundant copy, but you never know about the future... */ memcpy(ops, &def_dsh_ops, sizeof(struct

Re: [Nfs-ganesha-devel] FSAL_MDCACHE and pNFS

2016-07-26 Thread Daniel Gryniewicz
I'll go through and make sure that all ops that are stackable are passed through. Sorry about this. Daniel On 07/24/2016 01:53 AM, Marc Eshel wrote: > correction, the NFS4ERR_LAYOUTUNAVAILABLE is coming from > FSAL/default_methods.c > > static nfsstat4 layoutget(struct fsal_obj_handle *obj_hdl

Re: [Nfs-ganesha-devel] FSAL_MDCACHE and pNFS

2016-07-25 Thread Marc Eshel
Here are all the ops that need to be supported through MDCACHE, I am not sure it it is the way of any call-backs. Marc. static void dsh_ops_init(struct fsal_dsh_ops *ops) { /* redundant copy, but you never know about the future... */ memcpy(ops, &def_dsh_ops, sizeof(struct fsal_ds

Re: [Nfs-ganesha-devel] FSAL_MDCACHE and pNFS

2016-07-23 Thread Marc Eshel
correction, the NFS4ERR_LAYOUTUNAVAILABLE is coming from FSAL/default_methods.c static nfsstat4 layoutget(struct fsal_obj_handle *obj_hdl, struct req_op_context *req_ctx, XDR *loc_body, const struct fsal_layoutget_arg *arg,

[Nfs-ganesha-devel] FSAL_MDCACHE and pNFS

2016-07-23 Thread Marc Eshel
It looks like FSAL_MDCACHE changes patch cafbe60c broke more than exports op redirection for pNFS. state_add() is called by acquire_layout_state() with the mutex held so we might need an option on state_add() the indicates if the mutex is held. After that problem we hit another export ops belo