[BTRFS] Fix booting with runtime checks
[reactos.git] / drivers / filesystems / ntfs / fastio.c
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2008 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 * COPYRIGHT: See COPYING in the top level directory
20 * PROJECT: ReactOS kernel
21 * FILE: drivers/filesystem/ntfs/fastio.c
22 * PURPOSE: NTFS filesystem driver
23 * PROGRAMMER: Pierre Schweitzer
24 */
25
26 /* INCLUDES *****************************************************************/
27
28 #include <ntddk.h>
29
30 #define NDEBUG
31 #include <debug.h>
32
33 #include "ntfs.h"
34
35 /* FUNCTIONS ****************************************************************/
36
37 BOOLEAN
38 NTAPI
39 NtfsAcqLazyWrite(PVOID Context,
40 BOOLEAN Wait)
41 {
42 UNREFERENCED_PARAMETER(Context);
43 UNREFERENCED_PARAMETER(Wait);
44 UNIMPLEMENTED;
45 return FALSE;
46 }
47
48
49 VOID
50 NTAPI
51 NtfsRelLazyWrite(PVOID Context)
52 {
53 UNREFERENCED_PARAMETER(Context);
54 UNIMPLEMENTED;
55 }
56
57
58 BOOLEAN
59 NTAPI
60 NtfsAcqReadAhead(PVOID Context,
61 BOOLEAN Wait)
62 {
63 UNREFERENCED_PARAMETER(Context);
64 UNREFERENCED_PARAMETER(Wait);
65 UNIMPLEMENTED;
66 return FALSE;
67 }
68
69
70 VOID
71 NTAPI
72 NtfsRelReadAhead(PVOID Context)
73 {
74 UNREFERENCED_PARAMETER(Context);
75 UNIMPLEMENTED;
76 }
77
78 BOOLEAN
79 NTAPI
80 NtfsFastIoCheckIfPossible(
81 _In_ PFILE_OBJECT FileObject,
82 _In_ PLARGE_INTEGER FileOffset,
83 _In_ ULONG Length,
84 _In_ BOOLEAN Wait,
85 _In_ ULONG LockKey,
86 _In_ BOOLEAN CheckForReadOperation,
87 _Out_ PIO_STATUS_BLOCK IoStatus,
88 _In_ PDEVICE_OBJECT DeviceObject)
89 {
90 /* Deny FastIo */
91 UNREFERENCED_PARAMETER(FileObject);
92 UNREFERENCED_PARAMETER(FileOffset);
93 UNREFERENCED_PARAMETER(Length);
94 UNREFERENCED_PARAMETER(Wait);
95 UNREFERENCED_PARAMETER(LockKey);
96 UNREFERENCED_PARAMETER(CheckForReadOperation);
97 UNREFERENCED_PARAMETER(IoStatus);
98 UNREFERENCED_PARAMETER(DeviceObject);
99 return FALSE;
100 }
101
102 BOOLEAN
103 NTAPI
104 NtfsFastIoRead(
105 _In_ PFILE_OBJECT FileObject,
106 _In_ PLARGE_INTEGER FileOffset,
107 _In_ ULONG Length,
108 _In_ BOOLEAN Wait,
109 _In_ ULONG LockKey,
110 _Out_ PVOID Buffer,
111 _Out_ PIO_STATUS_BLOCK IoStatus,
112 _In_ PDEVICE_OBJECT DeviceObject)
113 {
114 DBG_UNREFERENCED_PARAMETER(FileObject);
115 DBG_UNREFERENCED_PARAMETER(FileOffset);
116 DBG_UNREFERENCED_PARAMETER(Length);
117 DBG_UNREFERENCED_PARAMETER(Wait);
118 DBG_UNREFERENCED_PARAMETER(LockKey);
119 DBG_UNREFERENCED_PARAMETER(Buffer);
120 DBG_UNREFERENCED_PARAMETER(IoStatus);
121 DBG_UNREFERENCED_PARAMETER(DeviceObject);
122 return FALSE;
123 }
124
125 BOOLEAN
126 NTAPI
127 NtfsFastIoWrite(
128 _In_ PFILE_OBJECT FileObject,
129 _In_ PLARGE_INTEGER FileOffset,
130 _In_ ULONG Length,
131 _In_ BOOLEAN Wait,
132 _In_ ULONG LockKey,
133 _In_ PVOID Buffer,
134 _Out_ PIO_STATUS_BLOCK IoStatus,
135 _In_ PDEVICE_OBJECT DeviceObject)
136 {
137 DBG_UNREFERENCED_PARAMETER(FileObject);
138 DBG_UNREFERENCED_PARAMETER(FileOffset);
139 DBG_UNREFERENCED_PARAMETER(Length);
140 DBG_UNREFERENCED_PARAMETER(Wait);
141 DBG_UNREFERENCED_PARAMETER(LockKey);
142 DBG_UNREFERENCED_PARAMETER(Buffer);
143 DBG_UNREFERENCED_PARAMETER(IoStatus);
144 DBG_UNREFERENCED_PARAMETER(DeviceObject);
145 return FALSE;
146 }
147
148 /* EOF */