KDFS-windows-afsrdr-user-20080829

LICENSE MIT

RDR_EnumerateDirectory does not take a Parent FID it taks a Directory FID
This commit is contained in:
Jeffrey Altman 2008-08-29 22:48:42 +00:00
parent 826b6c4f62
commit e202ffeb0d
2 changed files with 10 additions and 10 deletions

View File

@ -332,7 +332,7 @@ RDR_PopulateCurrentEntry( IN AFSDirEnumEntry * pCurrentEntry,
void void
RDR_EnumerateDirectory( IN cm_user_t *userp, RDR_EnumerateDirectory( IN cm_user_t *userp,
IN AFSFileID ParentID, IN AFSFileID DirID,
IN AFSDirQueryCB *QueryCB, IN AFSDirQueryCB *QueryCB,
IN DWORD ResultBufferLength, IN DWORD ResultBufferLength,
IN OUT AFSCommResult **ResultCB) IN OUT AFSCommResult **ResultCB)
@ -350,8 +350,8 @@ RDR_EnumerateDirectory( IN cm_user_t *userp,
cm_InitReq(&req); cm_InitReq(&req);
osi_Log4(afsd_logp, "RDR_EnumerateDirectory parent FID cell=0x%x vol=0x%x vn=0x%x uniq=0x%x", osi_Log4(afsd_logp, "RDR_EnumerateDirectory FID cell=0x%x vol=0x%x vn=0x%x uniq=0x%x",
ParentID.Cell, ParentID.Volume, ParentID.Vnode, ParentID.Unique); DirID.Cell, DirID.Volume, DirID.Vnode, DirID.Unique);
*ResultCB = (AFSCommResult *)malloc(size); *ResultCB = (AFSCommResult *)malloc(size);
if (!(*ResultCB)) { if (!(*ResultCB)) {
@ -374,12 +374,12 @@ RDR_EnumerateDirectory( IN cm_user_t *userp,
pCurrentEntry = (AFSDirEnumEntry *)&pDirEnumResp->Entry; pCurrentEntry = (AFSDirEnumEntry *)&pDirEnumResp->Entry;
dwMaxEntryLength -= FIELD_OFFSET( AFSDirEnumResp, Entry); /* AFSDirEnumResp */ dwMaxEntryLength -= FIELD_OFFSET( AFSDirEnumResp, Entry); /* AFSDirEnumResp */
if (ParentID.Cell != 0) { if (DirID.Cell != 0) {
fid.cell = ParentID.Cell; fid.cell = DirID.Cell;
fid.volume = ParentID.Volume; fid.volume = DirID.Volume;
fid.vnode = ParentID.Vnode; fid.vnode = DirID.Vnode;
fid.unique = ParentID.Unique; fid.unique = DirID.Unique;
fid.hash = ParentID.Hash; fid.hash = DirID.Hash;
code = cm_GetSCache(&fid, &dscp, userp, &req); code = cm_GetSCache(&fid, &dscp, userp, &req);
if (code) { if (code) {

View File

@ -773,7 +773,7 @@ RDR_ProcessRequest( AFSCommRequest *RequestBuffer)
DWORD extern "C" DWORD
RDR_RequestExtentRelease(DWORD numOfExtents, LARGE_INTEGER numOfHeldExtents) RDR_RequestExtentRelease(DWORD numOfExtents, LARGE_INTEGER numOfHeldExtents)
{ {