diff options
| author | Anand Avati <avati@gluster.com> | 2010-09-03 14:00:05 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-04 01:45:25 -0700 | 
| commit | a7fd7dbed9b995c173664bcadf3d2e5b6131e4ea (patch) | |
| tree | a4098ccb4a695f10c07c692edfb9da2b2e561a96 /xlators/cluster/afr/src/afr-dir-write.c | |
| parent | 8b9a144414162413a399d59975fe3b7347907f4f (diff) | |
gfid: changes in symlink() prototype to have params dictionary with uuid in it
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-write.c')
| -rw-r--r-- | xlators/cluster/afr/src/afr-dir-write.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c index 70da6f94955..5d5bf40e06a 100644 --- a/xlators/cluster/afr/src/afr-dir-write.c +++ b/xlators/cluster/afr/src/afr-dir-write.c @@ -1253,7 +1253,8 @@ afr_symlink_wind (call_frame_t *frame, xlator_t *this)  					   priv->children[i],   					   priv->children[i]->fops->symlink,  					   local->cont.symlink.linkpath, -					   &local->loc); +					   &local->loc, +                                           local->cont.symlink.params);  			if (!--call_count)  				break; @@ -1280,7 +1281,7 @@ afr_symlink_done (call_frame_t *frame, xlator_t *this)  int  afr_symlink (call_frame_t *frame, xlator_t *this, -	     const char *linkpath, loc_t *loc) +	     const char *linkpath, loc_t *loc, dict_t *params)  {  	afr_private_t * priv  = NULL;  	afr_local_t   * local = NULL; @@ -1324,6 +1325,8 @@ afr_symlink (call_frame_t *frame, xlator_t *this,          UNLOCK (&priv->read_child_lock);  	local->cont.symlink.linkpath = gf_strdup (linkpath); +        if (params) +                local->cont.symlink.params = dict_ref (params);          if (loc->parent)                  local->cont.symlink.parent_ino = loc->parent->ino;  | 
