Sync with trunk r63637.
[reactos.git] / ntoskrnl / cache / logsup.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Kernel
4 * FILE: ntoskrnl/cache/logsup.c
5 * PURPOSE: Logging and configuration routines
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9 /* INCLUDES *******************************************************************/
10
11 #include <ntoskrnl.h>
12 #include "newcc.h"
13 //#define NDEBUG
14 #include <debug.h>
15
16 /* GLOBALS ********************************************************************/
17
18 /* FUNCTIONS ******************************************************************/
19
20 VOID
21 NTAPI
22 CcSetAdditionalCacheAttributes(IN PFILE_OBJECT FileObject,
23 IN BOOLEAN DisableReadAhead,
24 IN BOOLEAN DisableWriteBehind)
25 {
26 UNIMPLEMENTED_DBGBREAK();
27 }
28
29 VOID
30 NTAPI
31 CcSetLogHandleForFile(IN PFILE_OBJECT FileObject,
32 IN PVOID LogHandle,
33 IN PFLUSH_TO_LSN FlushToLsnRoutine)
34 {
35 PNOCC_CACHE_MAP Map = FileObject->SectionObjectPointer->SharedCacheMap;
36 if (!Map) return;
37 Map->LogHandle = LogHandle;
38 Map->FlushToLsn = FlushToLsnRoutine;
39 }
40
41 LARGE_INTEGER
42 NTAPI
43 CcGetDirtyPages(IN PVOID LogHandle,
44 IN PDIRTY_PAGE_ROUTINE DirtyPageRoutine,
45 IN PVOID Context1,
46 IN PVOID Context2)
47 {
48 LARGE_INTEGER Result = {{0}};
49 UNIMPLEMENTED_DBGBREAK();
50 return Result;
51 }
52
53 BOOLEAN
54 NTAPI
55 CcIsThereDirtyData(IN PVPB Vpb)
56 {
57 UNIMPLEMENTED_DBGBREAK();
58 return FALSE;
59 }
60
61 LARGE_INTEGER
62 NTAPI
63 CcGetLsnForFileObject(IN PFILE_OBJECT FileObject,
64 OUT OPTIONAL PLARGE_INTEGER OldestLsn)
65 {
66 LARGE_INTEGER Result = {{0}};
67 UNIMPLEMENTED_DBGBREAK();
68 return Result;
69 }
70
71 /* EOF */