Author: tfaber
Date: Mon Jun 15 18:44:08 2015
New Revision: 68152
URL:
http://svn.reactos.org/svn/reactos?rev=68152&view=rev
Log:
[NTOS:CC]
- Properly stub CcCanIWrite, CcDeferWrite, CcFastCopyRead, CcFastCopyWrite
CORE-9624
Modified:
trunk/reactos/ntoskrnl/cc/copy.c
Modified: trunk/reactos/ntoskrnl/cc/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/copy.c?rev=681…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/copy.c [iso-8859-1] Mon Jun 15 18:44:08 2015
@@ -342,8 +342,8 @@
{
CCTRACE(CC_API_DEBUG, "FileObject=%p BytesToWrite=%lu Wait=%d
Retrying=%d\n",
FileObject, BytesToWrite, Wait, Retrying);
- UNIMPLEMENTED;
- return FALSE;
+
+ return TRUE;
}
/*
@@ -422,7 +422,7 @@
CCTRACE(CC_API_DEBUG, "FileObject=%p PostRoutine=%p Context1=%p Context2=%p
BytesToWrite=%lu Retrying=%d\n",
FileObject, PostRoutine, Context1, Context2, BytesToWrite, Retrying);
- UNIMPLEMENTED;
+ PostRoutine(Context1, Context2);
}
/*
@@ -438,11 +438,24 @@
OUT PVOID Buffer,
OUT PIO_STATUS_BLOCK IoStatus)
{
+ LARGE_INTEGER LargeFileOffset;
+ BOOLEAN Success;
+
CCTRACE(CC_API_DEBUG, "FileObject=%p FileOffset=%lu Length=%lu PageCount=%lu
Buffer=%p\n",
FileObject, FileOffset, Length, PageCount, Buffer);
- UNIMPLEMENTED;
-}
+ DBG_UNREFERENCED_PARAMETER(PageCount);
+
+ LargeFileOffset.QuadPart = FileOffset;
+ Success = CcCopyRead(FileObject,
+ &LargeFileOffset,
+ Length,
+ TRUE,
+ Buffer,
+ IoStatus);
+ NT_ASSERT(Success == TRUE);
+}
+
/*
* @unimplemented
*/
@@ -454,10 +467,19 @@
IN ULONG Length,
IN PVOID Buffer)
{
+ LARGE_INTEGER LargeFileOffset;
+ BOOLEAN Success;
+
CCTRACE(CC_API_DEBUG, "FileObject=%p FileOffset=%lu Length=%lu
Buffer=%p\n",
FileObject, FileOffset, Length, Buffer);
- UNIMPLEMENTED;
+ LargeFileOffset.QuadPart = FileOffset;
+ Success = CcCopyWrite(FileObject,
+ &LargeFileOffset,
+ Length,
+ TRUE,
+ Buffer);
+ NT_ASSERT(Success == TRUE);
}
/*