diff options
| author | Anand V. Avati <avati@blackhole.gluster.com> | 2010-03-16 09:46:33 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-03-16 08:31:32 -0700 | 
| commit | 283ec9608e6cbc9393941d5fae901e558360d2bd (patch) | |
| tree | 5d90ea94d5df8fd542b30d6e88f44b940133d9b2 /xlators/cluster/ha/src | |
| parent | cc7515fc3db005383ffa575236ec29c212ed1e48 (diff) | |
iatt: changes across the codebase
- libglusterfs
  -- call-stub
  -- inode
  -- protocol
- libglusterfsclient
- cluster/replicate
- cluster/{dht,nufa,switch}
- cluster/unify
- cluster/HA
- cluster/map
- cluster/stripe
- debug/error-gen
- debug/trace
- debug/io-stats
- encryption/rot-13
- features/filter
- features/locks
- features/path-converter
- features/quota
- features/trash
- mount/fuse
- performance/io-threads
- performance/io-cache
- performance/quick-read
- performance/read-ahead
- performance/stat-prefetch
- performance/symlink-cache
- performance/write-behind
- protocol/client
- protocol/server
- storage-posix
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'xlators/cluster/ha/src')
| -rw-r--r-- | xlators/cluster/ha/src/ha.c | 100 | ||||
| -rw-r--r-- | xlators/cluster/ha/src/ha.h | 6 | 
2 files changed, 53 insertions, 53 deletions
diff --git a/xlators/cluster/ha/src/ha.c b/xlators/cluster/ha/src/ha.c index 442de21df5d..3317ae7832e 100644 --- a/xlators/cluster/ha/src/ha.c +++ b/xlators/cluster/ha/src/ha.c @@ -98,9 +98,9 @@ ha_lookup_cbk (call_frame_t *frame,  	       int32_t op_ret,  	       int32_t op_errno,  	       inode_t *inode, -	       struct stat *buf, +	       struct iatt *buf,                 dict_t *dict, -               struct stat *postparent) +               struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -245,7 +245,7 @@ ha_stat_cbk (call_frame_t *frame,  	     xlator_t *this,  	     int32_t op_ret,  	     int32_t op_errno, -	     struct stat *buf) +	     struct iatt *buf)  {  	int ret = -1; @@ -290,8 +290,8 @@ err:  int32_t  ha_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, -                int32_t op_ret, int32_t op_errno, struct stat *statpre, -                struct stat *statpost) +                int32_t op_ret, int32_t op_errno, struct iatt *statpre, +                struct iatt *statpost)  {  	int ret = -1; @@ -305,7 +305,7 @@ ha_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,  int32_t -ha_setattr (call_frame_t *frame, xlator_t *this, loc_t *loc, struct stat *stbuf, +ha_setattr (call_frame_t *frame, xlator_t *this, loc_t *loc, struct iatt *stbuf,              int32_t valid)  {  	ha_local_t *local = NULL; @@ -333,7 +333,7 @@ err:  int32_t -ha_fsetattr (call_frame_t *frame, xlator_t *this, fd_t *fd, struct stat *stbuf, +ha_fsetattr (call_frame_t *frame, xlator_t *this, fd_t *fd, struct iatt *stbuf,               int32_t valid)  {  	ha_local_t *local = NULL; @@ -366,8 +366,8 @@ ha_truncate_cbk (call_frame_t *frame,  		 xlator_t *this,  		 int32_t op_ret,  		 int32_t op_errno, -		 struct stat *prebuf, -                 struct stat *postbuf) +		 struct iatt *prebuf, +                 struct iatt *postbuf)  {  	int ret = -1; @@ -423,8 +423,8 @@ ha_ftruncate_cbk (call_frame_t *frame,  		  xlator_t *this,  		  int32_t op_ret,  		  int32_t op_errno, -		  struct stat *prebuf, -                  struct stat *postbuf) +		  struct iatt *prebuf, +                  struct iatt *postbuf)  {  	int ret = -1; @@ -546,7 +546,7 @@ ha_readlink_cbk (call_frame_t *frame,  		 int32_t op_ret,  		 int32_t op_errno,  		 const char *path, -                 struct stat *sbuf) +                 struct iatt *sbuf)  {  	int ret = -1; @@ -599,9 +599,9 @@ ha_mknod_lookup_cbk (call_frame_t *frame,  		     int32_t op_ret,  		     int32_t op_errno,  		     inode_t *inode, -		     struct stat *buf, +		     struct iatt *buf,                       dict_t *dict, -                     struct stat *postparent) +                     struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -664,9 +664,9 @@ ha_mknod_cbk (call_frame_t *frame,  	      int32_t op_ret,  	      int32_t op_errno,  	      inode_t *inode, -              struct stat *buf, -              struct stat *preparent, -              struct stat *postparent) +              struct iatt *buf, +              struct iatt *preparent, +              struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -837,9 +837,9 @@ ha_mkdir_lookup_cbk (call_frame_t *frame,  		     int32_t op_ret,  		     int32_t op_errno,  		     inode_t *inode, -		     struct stat *buf, +		     struct iatt *buf,                       dict_t *dict, -                     struct stat *postparent) +                     struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -893,9 +893,9 @@ ha_mkdir_cbk (call_frame_t *frame,  	      int32_t op_ret,  	      int32_t op_errno,  	      inode_t *inode, -              struct stat *buf, -              struct stat *preparent, -              struct stat *postparent) +              struct iatt *buf, +              struct iatt *preparent, +              struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -1056,8 +1056,8 @@ ha_unlink_cbk (call_frame_t *frame,  	       xlator_t *this,  	       int32_t op_ret,  	       int32_t op_errno, -               struct stat *preparent, -               struct stat *postparent) +               struct iatt *preparent, +               struct iatt *postparent)  {  	int ret = -1; @@ -1108,8 +1108,8 @@ ha_rmdir_cbk (call_frame_t *frame,  	      xlator_t *this,  	      int32_t op_ret,  	      int32_t op_errno, -              struct stat *preparent, -              struct stat *postparent) +              struct iatt *preparent, +              struct iatt *postparent)  {  	int ret = -1; @@ -1166,9 +1166,9 @@ ha_symlink_lookup_cbk (call_frame_t *frame,  		       int32_t op_ret,  		       int32_t op_errno,  		       inode_t *inode, -		       struct stat *buf, +		       struct iatt *buf,                         dict_t *dict, -                       struct stat *postparent) +                       struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -1222,9 +1222,9 @@ ha_symlink_cbk (call_frame_t *frame,  		int32_t op_ret,  		int32_t op_errno,  		inode_t *inode, -                struct stat *buf, -                struct stat *preparent, -                struct stat *postparent) +                struct iatt *buf, +                struct iatt *preparent, +                struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -1385,11 +1385,11 @@ ha_rename_cbk (call_frame_t *frame,  	       xlator_t *this,  	       int32_t op_ret,  	       int32_t op_errno, -	       struct stat *buf, -               struct stat *preoldparent, -               struct stat *postoldparent, -               struct stat *prenewparent, -               struct stat *postnewparent) +	       struct iatt *buf, +               struct iatt *preoldparent, +               struct iatt *postoldparent, +               struct iatt *prenewparent, +               struct iatt *postnewparent)  {  	int ret = -1; @@ -1443,9 +1443,9 @@ ha_link_lookup_cbk (call_frame_t *frame,  		    int32_t op_ret,  		    int32_t op_errno,  		    inode_t *inode, -		    struct stat *buf, +		    struct iatt *buf,                      dict_t *dict, -                    struct stat *postparent) +                    struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -1499,9 +1499,9 @@ ha_link_cbk (call_frame_t *frame,  	     int32_t op_ret,  	     int32_t op_errno,  	     inode_t *inode, -             struct stat *buf, -             struct stat *preparent, -             struct stat *postparent) +             struct iatt *buf, +             struct iatt *preparent, +             struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -1669,9 +1669,9 @@ ha_create_cbk (call_frame_t *frame,  	       int32_t op_errno,  	       fd_t *fd,  	       inode_t *inode, -	       struct stat *buf, -               struct stat *preparent, -               struct stat *postparent) +	       struct iatt *buf, +               struct iatt *preparent, +               struct iatt *postparent)  {  	ha_local_t *local = NULL;  	ha_private_t *pvt = NULL; @@ -2044,7 +2044,7 @@ ha_readv_cbk (call_frame_t *frame,  	      int32_t op_errno,  	      struct iovec *vector,  	      int32_t count, -	      struct stat *stbuf, +	      struct iatt *stbuf,                struct iobref *iobref)  {  	int ret = 0; @@ -2111,8 +2111,8 @@ ha_writev_cbk (call_frame_t *frame,  	       xlator_t *this,  	       int32_t op_ret,  	       int32_t op_errno, -               struct stat *prebuf, -	       struct stat *postbuf) +               struct iatt *prebuf, +	       struct iatt *postbuf)  {  	int ret = 0;  	ret = ha_handle_cbk (frame, cookie, op_ret, op_errno); @@ -2237,8 +2237,8 @@ ha_fsync_cbk (call_frame_t *frame,  	      xlator_t *this,  	      int32_t op_ret,  	      int32_t op_errno, -              struct stat *prebuf, -              struct stat *postbuf) +              struct iatt *prebuf, +              struct iatt *postbuf)  {  	int ret = 0;  	ret = ha_handle_cbk (frame, cookie, op_ret, op_errno); @@ -2297,7 +2297,7 @@ ha_fstat_cbk (call_frame_t *frame,  	      xlator_t *this,  	      int32_t op_ret,  	      int32_t op_errno, -	      struct stat *buf) +	      struct iatt *buf)  {  	int ret = 0; diff --git a/xlators/cluster/ha/src/ha.h b/xlators/cluster/ha/src/ha.h index 0da31850c51..e5c9541dbe3 100644 --- a/xlators/cluster/ha/src/ha.h +++ b/xlators/cluster/ha/src/ha.h @@ -28,9 +28,9 @@ typedef struct {  	char *state, *pattern;  	dict_t *dict;  	loc_t loc; -	struct stat buf; -        struct stat postparent; -        struct stat preparent; +	struct iatt buf; +        struct iatt postparent; +        struct iatt preparent;  	fd_t *fd;  	inode_t *inode;  	int32_t flags;  | 
