Author: pschweitzer
Date: Sat Mar 8 14:17:48 2008
New Revision: 32611
URL:
http://svn.reactos.org/svn/reactos?rev=3D32611&view=3Drev
Log:
Added stubs for CC R/W functions (fixes TODO from r32610)
Added:
trunk/reactos/drivers/filesystems/ntfs/fastio.c (with props)
Modified:
trunk/reactos/drivers/filesystems/ntfs/fcb.c
trunk/reactos/drivers/filesystems/ntfs/fsctl.c
trunk/reactos/drivers/filesystems/ntfs/ntfs.c
trunk/reactos/drivers/filesystems/ntfs/ntfs.h
trunk/reactos/drivers/filesystems/ntfs/ntfs.rbuild
Added: trunk/reactos/drivers/filesystems/ntfs/fastio.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/n=
tfs/fastio.c?rev=3D32611&view=3Dauto
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/filesystems/ntfs/fastio.c (added)
+++ trunk/reactos/drivers/filesystems/ntfs/fastio.c Sat Mar 8 14:17:48 2008
@@ -1,0 +1,64 @@
+/*
+ * ReactOS kernel
+ * Copyright (C) 2002 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS kernel
+ * FILE: drivers/filesystem/ntfs/fastio.c
+ * PURPOSE: NTFS filesystem driver
+ * PROGRAMMER: Pierre Schweitzer =
+ */
+
+/* INCLUDES **************************************************************=
***/
+
+#include <ntddk.h>
+
+#define NDEBUG
+#include <debug.h>
+
+#include "ntfs.h"
+
+
+/* FUNCTIONS *************************************************************=
***/
+
+BOOLEAN NTAPI
+NtfsAcqLazyWrite(PVOID Context,
+ BOOLEAN Wait)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+VOID NTAPI
+NtfsRelLazyWrite(PVOID Context)
+{
+ UNIMPLEMENTED;
+}
+
+BOOLEAN NTAPI
+NtfsAcqReadAhead(PVOID Context,
+ BOOLEAN Wait)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+VOID NTAPI
+NtfsRelReadAhead(PVOID Context)
+{
+ UNIMPLEMENTED;
+}
Propchange: trunk/reactos/drivers/filesystems/ntfs/fastio.c
---------------------------------------------------------------------------=
---
svn:eol-style =3D native
Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/n=
tfs/fcb.c?rev=3D32611&r1=3D32610&r2=3D32611&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/filesystems/ntfs/fcb.c (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fcb.c Sat Mar 8 14:17:48 2008
@@ -243,8 +243,8 @@
CcInitializeCacheMap(FileObject,
(PCC_FILE_SIZES)(&Fcb->RFCB.AllocationSize),
FALSE,
- NULL,
- NULL);
+ &(NtfsGlobalData->CacheMgrCallbacks),
+ Fcb);
=
ObDereferenceObject(FileObject);
Fcb->Flags |=3D FCB_CACHE_INITIALIZED;
Modified: trunk/reactos/drivers/filesystems/ntfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/n=
tfs/fsctl.c?rev=3D32611&r1=3D32610&r2=3D32611&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/filesystems/ntfs/fsctl.c (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fsctl.c Sat Mar 8 14:17:48 2008
@@ -404,8 +404,8 @@
CcInitializeCacheMap(DeviceExt->StreamFileObject,
(PCC_FILE_SIZES)(&Fcb->RFCB.AllocationSize),
FALSE,
- NULL,
- NULL);
+ &(NtfsGlobalData->CacheMgrCallbacks),
+ Fcb);
=
ExInitializeResourceLite(&DeviceExt->DirResource);
// ExInitializeResourceLite(&DeviceExt->FatResource);
Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/n=
tfs/ntfs.c?rev=3D32611&r1=3D32610&r2=3D32611&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/filesystems/ntfs/ntfs.c (original)
+++ trunk/reactos/drivers/filesystems/ntfs/ntfs.c Sat Mar 8 14:17:48 2008
@@ -72,6 +72,13 @@
=
/* Initialize IRP functions array */
NtfsInitializeFunctionPointers(DriverObject);
+ =
+ /* Initialize CC functions array */
+ NtfsGlobalData->CacheMgrCallbacks.AcquireForLazyWrite =3D NtfsAcqLazyWri=
te; =
+ NtfsGlobalData->CacheMgrCallbacks.ReleaseFromLazyWrite =3D NtfsRelLazyWr=
ite; =
+ NtfsGlobalData->CacheMgrCallbacks.AcquireForReadAhead =3D NtfsAcqReadAhe=
ad; =
+ NtfsGlobalData->CacheMgrCallbacks.ReleaseFromReadAhead =3D NtfsRelReadAh=
ead; =
+
/* Driver can't be unloaded */
DriverObject->DriverUnload =3D NULL;
=
Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/n=
tfs/ntfs.h?rev=3D32611&r1=3D32610&r2=3D32611&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/filesystems/ntfs/ntfs.h (original)
+++ trunk/reactos/drivers/filesystems/ntfs/ntfs.h Sat Mar 8 14:17:48 2008
@@ -166,6 +166,7 @@
ERESOURCE Resource;
PDRIVER_OBJECT DriverObject;
PDEVICE_OBJECT DeviceObject;
+ CACHE_MANAGER_CALLBACKS CacheMgrCallbacks;
ULONG Flags;
} NTFS_GLOBAL_DATA, *PNTFS_GLOBAL_DATA;
=
@@ -401,6 +402,21 @@
NtfsFsdDispatch(PDEVICE_OBJECT DeviceObject,
PIRP Irp);
=
+/* fastio.c */
+BOOLEAN NTAPI
+NtfsAcqLazyWrite(PVOID Context,
+ BOOLEAN Wait);
+
+VOID NTAPI
+NtfsRelLazyWrite(PVOID Context);
+
+BOOLEAN NTAPI
+NtfsAcqReadAhead(PVOID Context,
+ BOOLEAN Wait);
+
+VOID NTAPI
+NtfsRelReadAhead(PVOID Context);
+
/* fcb.c */
=
PFCB
Modified: trunk/reactos/drivers/filesystems/ntfs/ntfs.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/n=
tfs/ntfs.rbuild?rev=3D32611&r1=3D32610&r2=3D32611&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/reactos/drivers/filesystems/ntfs/ntfs.rbuild (original)
+++ trunk/reactos/drivers/filesystems/ntfs/ntfs.rbuild Sat Mar 8 14:17:48 =
2008
@@ -11,6 +11,7 @@
<file>create.c</file>
<file>dirctl.c</file>
<file>dispatch.c</file>
+ <file>fastio.c</file>
<file>fcb.c</file>
<file>finfo.c</file>
<file>fsctl.c</file>