diff --git a/reactos/include/ddk/fsfuncs.h b/reactos/include/ddk/fsfuncs.h index 2cb46211a0d..1ce3f251962 100644 --- a/reactos/include/ddk/fsfuncs.h +++ b/reactos/include/ddk/fsfuncs.h @@ -1,6 +1,6 @@ #ifndef __INCLUDE_DDK_FSFUNCS_H #define __INCLUDE_DDK_FSFUNCS_H -/* $Id: fsfuncs.h,v 1.28 2004/09/11 14:48:56 ekohl Exp $ */ +/* $Id: fsfuncs.h,v 1.29 2004/11/21 16:34:55 navaraf Exp $ */ #define FlagOn(x,f) ((x) & (f)) #include @@ -336,11 +336,11 @@ FsRtlInitializeFileLock ( ); VOID STDCALL -FsRtlInitializeLargeMcb(IN PLARGE_MCB Mcb, +FsRtlInitializeLargeMcb(IN PLARGE_MCB *Mcb, IN POOL_TYPE PoolType); VOID STDCALL -FsRtlInitializeMcb (IN PMCB Mcb, +FsRtlInitializeMcb (IN PMCB *Mcb, IN POOL_TYPE PoolType); VOID STDCALL diff --git a/reactos/ntoskrnl/fs/mcb.c b/reactos/ntoskrnl/fs/mcb.c index 8514a65e694..e66b0d08e0e 100644 --- a/reactos/ntoskrnl/fs/mcb.c +++ b/reactos/ntoskrnl/fs/mcb.c @@ -1,4 +1,4 @@ -/* $Id: mcb.c,v 1.14 2004/08/21 20:36:38 tamlin Exp $ +/* $Id: mcb.c,v 1.15 2004/11/21 16:34:56 navaraf Exp $ * * reactos/ntoskrnl/fs/mcb.c * @@ -92,11 +92,18 @@ FsRtlGetNextMcbEntry (IN PMCB Mcb, * @unimplemented */ VOID STDCALL -FsRtlInitializeLargeMcb(IN PLARGE_MCB Mcb, +FsRtlInitializeLargeMcb(IN PLARGE_MCB *Mcb, IN POOL_TYPE PoolType) { - UNIMPLEMENTED; - Mcb->PoolType = PoolType; + PLARGE_MCB NewMcb; + NewMcb = ExAllocatePool(PagedPool, sizeof(LARGE_MCB)); + if (NewMcb != NULL) + { + ExInitializeFastMutex(&NewMcb->FastMutex); + NewMcb->PoolType = PoolType; + UNIMPLEMENTED; + } + *Mcb = NewMcb; } /* @@ -104,10 +111,10 @@ FsRtlInitializeLargeMcb(IN PLARGE_MCB Mcb, * @implemented */ VOID STDCALL -FsRtlInitializeMcb (IN PMCB Mcb, +FsRtlInitializeMcb (IN PMCB *Mcb, IN POOL_TYPE PoolType) { - FsRtlInitializeLargeMcb(& Mcb->LargeMcb, PoolType); + FsRtlInitializeLargeMcb((PLARGE_MCB *)Mcb, PoolType); } diff --git a/reactos/ntoskrnl/ntoskrnl.def b/reactos/ntoskrnl/ntoskrnl.def index 5c59357d3b2..06351bd3569 100644 --- a/reactos/ntoskrnl/ntoskrnl.def +++ b/reactos/ntoskrnl/ntoskrnl.def @@ -1,4 +1,4 @@ -; $Id: ntoskrnl.def,v 1.200 2004/11/12 12:05:27 ekohl Exp $ +; $Id: ntoskrnl.def,v 1.201 2004/11/21 16:34:57 navaraf Exp $ ; ; reactos/ntoskrnl/ntoskrnl.def ; @@ -241,7 +241,7 @@ FsRtlIsTotalDeviceFailure@4 FsRtlLegalAnsiCharacterArray DATA FsRtlLookupLargeMcbEntry@32 FsRtlLookupLastLargeMcbEntry@12 -FsRtlLookupLastLargeMcbEntryAndInde@16=FsRtlLookupLastLargeMcbEntryAndIndex@16 +FsRtlLookupLastLargeMcbEntryAndIndex@16 FsRtlLookupLastMcbEntry@12 FsRtlLookupMcbEntry@20 FsRtlLookupPerFileObjectContext@12 @@ -282,6 +282,7 @@ FsRtlRemovePerStreamContext@12 FsRtlResetLargeMcb@8 FsRtlSplitLargeMcb@20 FsRtlSyncVolumes@12 +FsRtlTeardownPerStreamContexts@4 FsRtlTruncateLargeMcb@12 FsRtlTruncateMcb@8 FsRtlUninitializeFileLock@4