summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrishna Srinivas <ksriniva@redhat.com>2012-04-26 17:42:11 +0530
committerVijay Bellur <vijay@gluster.com>2012-04-26 22:25:43 -0700
commit81df001b3efb2313e68745abd84f02e24fba6e67 (patch)
tree40e7ba8e8ff781421192e96ad11294990291a760
parent6db7f8f173d30313ab9f1d88e7a6398ac97fdf8d (diff)
nlm: use correct subvolume when opening the filev3.3.0qa39
Change-Id: Ia0a482c89f10481184dc8f0f5b27cf6612ac114a BUG: 816476 Signed-off-by: Krishna Srinivas <ksriniva@redhat.com> Reviewed-on: http://review.gluster.com/3233 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--xlators/nfs/server/src/nlm4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c
index 3f8feee..4f9a1c4 100644
--- a/xlators/nfs/server/src/nlm4.c
+++ b/xlators/nfs/server/src/nlm4.c
@@ -603,8 +603,8 @@ nlm4_file_open_and_resume(nfs3_call_state_t *cs, nlm4_resume_fn_t resume)
frame->root->uid = 0;
frame->root->gid = 0;
frame->local = cs;
- STACK_WIND_COOKIE (frame, nlm4_file_open_cbk, cs->nfsx, cs->nfsx,
- cs->nfsx->fops->open, &cs->resolvedloc, O_RDWR,
+ STACK_WIND_COOKIE (frame, nlm4_file_open_cbk, cs->vol, cs->vol,
+ cs->vol->fops->open, &cs->resolvedloc, O_RDWR,
cs->fd, NULL);
ret = 0;
err: