diff options
| author | Soumya Koduri <skoduri@redhat.com> | 2015-04-29 08:05:21 +0530 | 
|---|---|---|
| committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-05-04 16:27:57 -0700 | 
| commit | 0b14edfc6974161b25a11cd683d164aa337c6122 (patch) | |
| tree | 32b7931755e57af762dba0ba1ecc8b4a147bf3f1 | |
| parent | 86fb4828f5566e455a12ac2207999120275b61a7 (diff) | |
rpc: Included necessary stats in 'gfs3_cbk_cache_invalidation_req'
To avoid extra network fops, it will benifit clients if the server
can send the updated stat of the file/dir and of the parent directory
(including oldparent in case of RENAME fop) while sending
GF_CBK_CACHE_INVALIDATION upcall event.
This patch handles rpc protocol changes.
Change-Id: Ic096a61c4d24a8d75a8285be78deb237d7ef9484
BUG: 1200262
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-on: http://review.gluster.org/10452
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
| -rw-r--r-- | rpc/xdr/src/glusterfs3-xdr.x | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/rpc/xdr/src/glusterfs3-xdr.x b/rpc/xdr/src/glusterfs3-xdr.x index 5304a26da3a..4d7ec5e8b18 100644 --- a/rpc/xdr/src/glusterfs3-xdr.x +++ b/rpc/xdr/src/glusterfs3-xdr.x @@ -50,6 +50,12 @@ struct gfs3_cbk_cache_invalidation_req {          unsigned int   flags;  /* or mask of events incase of inotify */          unsigned int   expire_time_attr; /* the amount of time which client                                            * can cache this entry */ +        struct gf_iatt stat;  /* Updated/current stat of the file/dir */ +        struct gf_iatt parent_stat;  /* Updated stat of the parent dir +                                      * needed in case of create, mkdir, +                                      * unlink, rmdir, rename fops */ +        struct gf_iatt oldparent_stat;  /* Updated stat of the oldparent dir +                                           needed in case of rename fop */          opaque   xdata<>; /* Extra data */  };  | 
