diff options
| author | Vikas Gorur <vikas@gluster.com> | 2009-10-26 09:15:13 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-27 03:32:32 -0700 | 
| commit | 78c98cac267ef9aebcaa3c35d70ea93c17462e62 (patch) | |
| tree | 01a4afb2d596e905b746f17f601b2afffc661d13 /xlators/cluster/afr/src/afr-inode-read.c | |
| parent | a284bf490cdf6ce334a4e70b22eedd7e639620f9 (diff) | |
cluster/afr: NFS-friendly logic changes
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 145 (NFSv3 related additions to 2.1 task list)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=145
Diffstat (limited to 'xlators/cluster/afr/src/afr-inode-read.c')
| -rw-r--r-- | xlators/cluster/afr/src/afr-inode-read.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-read.c b/xlators/cluster/afr/src/afr-inode-read.c index 5d8ba44d9..3b89da9ab 100644 --- a/xlators/cluster/afr/src/afr-inode-read.c +++ b/xlators/cluster/afr/src/afr-inode-read.c @@ -470,6 +470,9 @@ afr_readlink_cbk (call_frame_t *frame, void *cookie,  out:  	if (unwind) { +                if (sbuf) +                        sbuf->st_ino = local->cont.readlink.ino; +  		AFR_STACK_UNWIND (readlink, frame, op_ret, op_errno, buf, sbuf);  	} @@ -525,7 +528,9 @@ afr_readlink (call_frame_t *frame, xlator_t *this,          }  	loc_copy (&local->loc, loc); +  	local->cont.readlink.size       = size; +        local->cont.readlink.ino        = loc->inode->ino;  	STACK_WIND_COOKIE (frame, afr_readlink_cbk,  			   (void *) (long) call_child,  | 
