From e202ffeb0dc2b305101fda51a243677be7f8c557 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 29 Aug 2008 22:48:42 +0000 Subject: [PATCH] KDFS-windows-afsrdr-user-20080829 LICENSE MIT RDR_EnumerateDirectory does not take a Parent FID it taks a Directory FID --- src/WINNT/afsrdr/user/RDRFunction.c | 18 +++++++++--------- src/WINNT/afsrdr/user/RDRInit.cpp | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 381d958e29..ea8b5c8b9b 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -332,7 +332,7 @@ RDR_PopulateCurrentEntry( IN AFSDirEnumEntry * pCurrentEntry, void RDR_EnumerateDirectory( IN cm_user_t *userp, - IN AFSFileID ParentID, + IN AFSFileID DirID, IN AFSDirQueryCB *QueryCB, IN DWORD ResultBufferLength, IN OUT AFSCommResult **ResultCB) @@ -350,8 +350,8 @@ RDR_EnumerateDirectory( IN cm_user_t *userp, cm_InitReq(&req); - osi_Log4(afsd_logp, "RDR_EnumerateDirectory parent FID cell=0x%x vol=0x%x vn=0x%x uniq=0x%x", - ParentID.Cell, ParentID.Volume, ParentID.Vnode, ParentID.Unique); + osi_Log4(afsd_logp, "RDR_EnumerateDirectory FID cell=0x%x vol=0x%x vn=0x%x uniq=0x%x", + DirID.Cell, DirID.Volume, DirID.Vnode, DirID.Unique); *ResultCB = (AFSCommResult *)malloc(size); if (!(*ResultCB)) { @@ -374,12 +374,12 @@ RDR_EnumerateDirectory( IN cm_user_t *userp, pCurrentEntry = (AFSDirEnumEntry *)&pDirEnumResp->Entry; dwMaxEntryLength -= FIELD_OFFSET( AFSDirEnumResp, Entry); /* AFSDirEnumResp */ - if (ParentID.Cell != 0) { - fid.cell = ParentID.Cell; - fid.volume = ParentID.Volume; - fid.vnode = ParentID.Vnode; - fid.unique = ParentID.Unique; - fid.hash = ParentID.Hash; + if (DirID.Cell != 0) { + fid.cell = DirID.Cell; + fid.volume = DirID.Volume; + fid.vnode = DirID.Vnode; + fid.unique = DirID.Unique; + fid.hash = DirID.Hash; code = cm_GetSCache(&fid, &dscp, userp, &req); if (code) { diff --git a/src/WINNT/afsrdr/user/RDRInit.cpp b/src/WINNT/afsrdr/user/RDRInit.cpp index ac1dad522a..0b1cb99843 100644 --- a/src/WINNT/afsrdr/user/RDRInit.cpp +++ b/src/WINNT/afsrdr/user/RDRInit.cpp @@ -773,7 +773,7 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer) -DWORD +extern "C" DWORD RDR_RequestExtentRelease(DWORD numOfExtents, LARGE_INTEGER numOfHeldExtents) {