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 /libglusterfs/src/call-stub.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 'libglusterfs/src/call-stub.c')
| -rw-r--r-- | libglusterfs/src/call-stub.c | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c index 789b12c9796..7008cfd6f38 100644 --- a/libglusterfs/src/call-stub.c +++ b/libglusterfs/src/call-stub.c @@ -599,10 +599,8 @@ out:  call_stub_t * -fop_symlink_stub (call_frame_t *frame, -		  fop_symlink_t fn, -		  const char *linkname, -		  loc_t *loc) +fop_symlink_stub (call_frame_t *frame, fop_symlink_t fn, +		  const char *linkname, loc_t *loc, dict_t *params)  {  	call_stub_t *stub = NULL; @@ -616,6 +614,8 @@ fop_symlink_stub (call_frame_t *frame,  	stub->args.symlink.fn = fn;  	stub->args.symlink.linkname = gf_strdup (linkname);  	loc_copy (&stub->args.symlink.loc, loc); +        if (params) +                stub->args.symlink.params = dict_ref (params);  out:  	return stub;  } @@ -2189,7 +2189,8 @@ call_resume_wind (call_stub_t *stub)  		stub->args.symlink.fn (stub->frame,  				       stub->frame->this,  				       stub->args.symlink.linkname, -				       &stub->args.symlink.loc); +				       &stub->args.symlink.loc, +                                       stub->args.symlink.params);  	}  	break; @@ -3362,6 +3363,8 @@ call_stub_destroy_wind (call_stub_t *stub)  	{  		GF_FREE ((char *)stub->args.symlink.linkname);  		loc_wipe (&stub->args.symlink.loc); +                if (stub->args.symlink.params) +                        dict_unref (stub->args.symlink.params);  	}  	break;  | 
