From: Jeffrey Altman Date: Mon, 19 Oct 2015 00:32:06 +0000 (-0400) Subject: Windows: rdr pioctl operations are opaque X-Git-Tag: upstream/1.8.0_pre1^2~220 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=be603388ef3ec8918dba47ede9dc3e4196492100;p=packages%2Fo%2Fopenafs.git Windows: rdr pioctl operations are opaque Although pioctl operations are delivered through the redirector the contents of the operations are opaque to the redirector. Therefore, the cm_req must not be initialized as a redirector operation. If they are the necessary invalidation notifications for symlink and mount point operations will not be delivered. Change-Id: I48c2d89d2b2e0fc3f0ef56e7731108a8c51e1674 Reviewed-on: http://gerrit.openafs.org/12062 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 1c617aeb1..eb4ab62ad 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -5362,7 +5362,7 @@ RDR_PioctlOpen( IN cm_user_t *userp, cm_fid_t RootFid; cm_req_t req; - RDR_InitReq(&req, bWow64); + cm_InitReq(&req); *ResultCB = (AFSCommResult *)malloc( sizeof( AFSCommResult)); if (!(*ResultCB)) @@ -5430,7 +5430,7 @@ RDR_PioctlWrite( IN cm_user_t *userp, cm_req_t req; DWORD status; - RDR_InitReq(&req, bWow64); + cm_InitReq(&req); *ResultCB = (AFSCommResult *)malloc( sizeof( AFSCommResult) + sizeof(AFSPIOCtlIOResultCB)); if (!(*ResultCB)) @@ -5469,7 +5469,7 @@ RDR_PioctlRead( IN cm_user_t *userp, DWORD status; afs_uint32 pflags = (bIsLocalSystem ? AFSCALL_FLAG_LOCAL_SYSTEM : 0); - RDR_InitReq(&req, bWow64); + cm_InitReq(&req); *ResultCB = (AFSCommResult *)malloc( sizeof( AFSCommResult) + sizeof(AFSPIOCtlIOResultCB)); if (!(*ResultCB))