ReactOS 0.4.16-dev-306-g647d351
fastio.c File Reference
#include "vfat.h"
#include <debug.h>
Include dependency graph for fastio.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

static BOOLEAN NTAPI VfatFastIoCheckIfPossible (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, IN BOOLEAN CheckForReadOperation, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoRead (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, OUT PVOID Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoWrite (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, OUT PVOID Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoQueryBasicInfo (IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, OUT PFILE_BASIC_INFORMATION Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoQueryStandardInfo (IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, OUT PFILE_STANDARD_INFORMATION Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoLock (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, PEPROCESS ProcessId, ULONG Key, BOOLEAN FailImmediately, BOOLEAN ExclusiveLock, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoUnlockSingle (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, PEPROCESS ProcessId, ULONG Key, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoUnlockAll (IN PFILE_OBJECT FileObject, PEPROCESS ProcessId, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoUnlockAllByKey (IN PFILE_OBJECT FileObject, PVOID ProcessId, ULONG Key, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoDeviceControl (IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, IN PVOID InputBuffer OPTIONAL, IN ULONG InputBufferLength, OUT PVOID OutputBuffer OPTIONAL, IN ULONG OutputBufferLength, IN ULONG IoControlCode, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static VOID NTAPI VfatAcquireFileForNtCreateSection (IN PFILE_OBJECT FileObject)
 
static VOID NTAPI VfatReleaseFileForNtCreateSection (IN PFILE_OBJECT FileObject)
 
static VOID NTAPI VfatFastIoDetachDevice (IN PDEVICE_OBJECT SourceDevice, IN PDEVICE_OBJECT TargetDevice)
 
static BOOLEAN NTAPI VfatFastIoQueryNetworkOpenInfo (IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, OUT PFILE_NETWORK_OPEN_INFORMATION Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static NTSTATUS NTAPI VfatAcquireForModWrite (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER EndingOffset, OUT PERESOURCE *ResourceToRelease, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatMdlRead (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG LockKey, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatMdlReadComplete (IN PFILE_OBJECT FileObject, IN PMDL MdlChain, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatPrepareMdlWrite (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG LockKey, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatMdlWriteComplete (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PMDL MdlChain, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoReadCompressed (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG LockKey, OUT PVOID Buffer, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus, OUT PCOMPRESSED_DATA_INFO CompressedDataInfo, IN ULONG CompressedDataInfoLength, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoWriteCompressed (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG LockKey, IN PVOID Buffer, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus, IN PCOMPRESSED_DATA_INFO CompressedDataInfo, IN ULONG CompressedDataInfoLength, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatMdlReadCompleteCompressed (IN PFILE_OBJECT FileObject, IN PMDL MdlChain, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatMdlWriteCompleteCompressed (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PMDL MdlChain, IN PDEVICE_OBJECT DeviceObject)
 
static BOOLEAN NTAPI VfatFastIoQueryOpen (IN PIRP Irp, OUT PFILE_NETWORK_OPEN_INFORMATION NetworkInformation, IN PDEVICE_OBJECT DeviceObject)
 
static NTSTATUS NTAPI VfatReleaseForModWrite (IN PFILE_OBJECT FileObject, IN PERESOURCE ResourceToRelease, IN PDEVICE_OBJECT DeviceObject)
 
static NTSTATUS NTAPI VfatAcquireForCcFlush (IN PFILE_OBJECT FileObject, IN PDEVICE_OBJECT DeviceObject)
 
static NTSTATUS NTAPI VfatReleaseForCcFlush (IN PFILE_OBJECT FileObject, IN PDEVICE_OBJECT DeviceObject)
 
BOOLEAN NTAPI VfatAcquireForLazyWrite (IN PVOID Context, IN BOOLEAN Wait)
 
VOID NTAPI VfatReleaseFromLazyWrite (IN PVOID Context)
 
VOID VfatInitFastIoRoutines (PFAST_IO_DISPATCH FastIoDispatch)
 

Variables

static FAST_IO_CHECK_IF_POSSIBLE VfatFastIoCheckIfPossible
 
static FAST_IO_READ VfatFastIoRead
 
static FAST_IO_WRITE VfatFastIoWrite
 
static FAST_IO_QUERY_BASIC_INFO VfatFastIoQueryBasicInfo
 
static FAST_IO_QUERY_STANDARD_INFO VfatFastIoQueryStandardInfo
 
static FAST_IO_LOCK VfatFastIoLock
 
static FAST_IO_UNLOCK_SINGLE VfatFastIoUnlockSingle
 
static FAST_IO_UNLOCK_ALL VfatFastIoUnlockAll
 
static FAST_IO_UNLOCK_ALL_BY_KEY VfatFastIoUnlockAllByKey
 
static FAST_IO_DEVICE_CONTROL VfatFastIoDeviceControl
 
static FAST_IO_ACQUIRE_FILE VfatAcquireFileForNtCreateSection
 
static FAST_IO_RELEASE_FILE VfatReleaseFileForNtCreateSection
 
static FAST_IO_DETACH_DEVICE VfatFastIoDetachDevice
 
static FAST_IO_QUERY_NETWORK_OPEN_INFO VfatFastIoQueryNetworkOpenInfo
 
static FAST_IO_ACQUIRE_FOR_MOD_WRITE VfatAcquireForModWrite
 
static FAST_IO_MDL_READ VfatMdlRead
 
static FAST_IO_MDL_READ_COMPLETE VfatMdlReadComplete
 
static FAST_IO_PREPARE_MDL_WRITE VfatPrepareMdlWrite
 
static FAST_IO_MDL_WRITE_COMPLETE VfatMdlWriteComplete
 
static FAST_IO_READ_COMPRESSED VfatFastIoReadCompressed
 
static FAST_IO_WRITE_COMPRESSED VfatFastIoWriteCompressed
 
static FAST_IO_MDL_READ_COMPLETE_COMPRESSED VfatMdlReadCompleteCompressed
 
static FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED VfatMdlWriteCompleteCompressed
 
static FAST_IO_QUERY_OPEN VfatFastIoQueryOpen
 
static FAST_IO_RELEASE_FOR_MOD_WRITE VfatReleaseForModWrite
 
static FAST_IO_ACQUIRE_FOR_CCFLUSH VfatAcquireForCcFlush
 
static FAST_IO_RELEASE_FOR_CCFLUSH VfatReleaseForCcFlush
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 11 of file fastio.c.

Function Documentation

◆ VfatAcquireFileForNtCreateSection()

static VOID NTAPI VfatAcquireFileForNtCreateSection ( IN PFILE_OBJECT  FileObject)
static

Definition at line 358 of file fastio.c.

360{
361 DPRINT("VfatAcquireFileForNtCreateSection\n");
363}
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define DPRINT
Definition: sndvol32.h:73
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550

◆ VfatAcquireForCcFlush()

static NTSTATUS NTAPI VfatAcquireForCcFlush ( IN PFILE_OBJECT  FileObject,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 678 of file fastio.c.

681{
682 PVFATFCB Fcb = (PVFATFCB)FileObject->FsContext;
683
684 DPRINT("VfatAcquireForCcFlush\n");
685
687
688 /* Make sure it is not a volume lock */
690
691 /* Acquire the resource */
693
694 return STATUS_SUCCESS;
695}
_In_ PFCB Fcb
Definition: cdprocs.h:159
#define TRUE
Definition: types.h:120
#define FCB_IS_VOLUME
Definition: ntfs.h:510
#define ExAcquireResourceExclusiveLite(res, wait)
Definition: env_spec_w32.h:615
#define BooleanFlagOn(F, SF)
Definition: ext2fs.h:183
#define ASSERT(a)
Definition: mode.c:44
#define STATUS_SUCCESS
Definition: shellext.h:65
ULONG Flags
Definition: ntfs.h:536
ERESOURCE MainResource
Definition: ntfs.h:528
Definition: vfat.h:448
struct _VFATFCB * PVFATFCB
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055

◆ VfatAcquireForLazyWrite()

BOOLEAN NTAPI VfatAcquireForLazyWrite ( IN PVOID  Context,
IN BOOLEAN  Wait 
)

Definition at line 723 of file fastio.c.

726{
728 ASSERT(Fcb);
729 DPRINT("VfatAcquireForLazyWrite(): Fcb %p\n", Fcb);
730
732 {
733 DPRINT("VfatAcquireForLazyWrite(): ExReleaseResourceLite failed.\n");
734 return FALSE;
735 }
736 return TRUE;
737}
#define FALSE
Definition: types.h:117
_In_ WDFDPC _In_ BOOLEAN Wait
Definition: wdfdpc.h:170

Referenced by DriverEntry().

◆ VfatAcquireForModWrite()

static NTSTATUS NTAPI VfatAcquireForModWrite ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  EndingOffset,
OUT PERESOURCE ResourceToRelease,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 419 of file fastio.c.

424{
425 DPRINT("VfatAcquireForModWrite\n");
426
431
433}
#define STATUS_INVALID_DEVICE_REQUEST
Definition: udferr_usr.h:138
_In_ PLARGE_INTEGER _Out_ struct _ERESOURCE ** ResourceToRelease
Definition: iotypes.h:1598
_In_ PLARGE_INTEGER EndingOffset
Definition: iotypes.h:1597

◆ VfatFastIoCheckIfPossible()

static BOOLEAN NTAPI VfatFastIoCheckIfPossible ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN BOOLEAN  Wait,
IN ULONG  LockKey,
IN BOOLEAN  CheckForReadOperation,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 19 of file fastio.c.

28{
29 /* Prevent all Fast I/O requests */
30 DPRINT("VfatFastIoCheckIfPossible(): returning FALSE.\n");
31
40
41 return FALSE;
42}
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:160
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG LockKey
Definition: fatprocs.h:2666
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG IN BOOLEAN CheckForReadOperation
Definition: fatprocs.h:2667
__in UCHAR __in POWER_STATE __in_opt PVOID __in PIO_STATUS_BLOCK IoStatus
Definition: mxum.h:159
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102

◆ VfatFastIoDetachDevice()

static VOID NTAPI VfatFastIoDetachDevice ( IN PDEVICE_OBJECT  SourceDevice,
IN PDEVICE_OBJECT  TargetDevice 
)
static

Definition at line 382 of file fastio.c.

385{
386 DPRINT("VfatFastIoDetachDevice\n");
389}
_Must_inspect_result_ __drv_aliasesMem PDEVICE_OBJECT SourceDevice
Definition: iofuncs.h:690
_Must_inspect_result_ __drv_aliasesMem PDEVICE_OBJECT _In_ PDEVICE_OBJECT TargetDevice
Definition: iofuncs.h:691

◆ VfatFastIoDeviceControl()

static BOOLEAN NTAPI VfatFastIoDeviceControl ( IN PFILE_OBJECT  FileObject,
IN BOOLEAN  Wait,
IN PVOID InputBuffer  OPTIONAL,
IN ULONG  InputBufferLength,
OUT PVOID OutputBuffer  OPTIONAL,
IN ULONG  OutputBufferLength,
IN ULONG  IoControlCode,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 327 of file fastio.c.

337{
338 DPRINT("VfatFastIoDeviceControl\n");
339
349
350 return FALSE;
351}
_In_ WDFREQUEST _In_ size_t _In_ size_t _In_ ULONG IoControlCode
Definition: wdfio.h:325
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:320
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
Definition: wdfio.h:322
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953

◆ VfatFastIoLock()

static BOOLEAN NTAPI VfatFastIoLock ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN PLARGE_INTEGER  Length,
PEPROCESS  ProcessId,
ULONG  Key,
BOOLEAN  FailImmediately,
BOOLEAN  ExclusiveLock,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 225 of file fastio.c.

235{
236 DPRINT("VfatFastIoLock\n");
237
247
248 return FALSE;
249}
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ULONG BOOLEAN BOOLEAN ExclusiveLock
Definition: fatprocs.h:2715
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ULONG BOOLEAN FailImmediately
Definition: fatprocs.h:2714
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
Definition: fatprocs.h:2712

◆ VfatFastIoQueryBasicInfo()

static BOOLEAN NTAPI VfatFastIoQueryBasicInfo ( IN PFILE_OBJECT  FileObject,
IN BOOLEAN  Wait,
OUT PFILE_BASIC_INFORMATION  Buffer,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 107 of file fastio.c.

113{
115 PVFATFCB FCB = NULL;
118
119 DPRINT("VfatFastIoQueryBasicInfo()\n");
120
121 FCB = (PVFATFCB)FileObject->FsContext;
122 if (FCB == NULL)
123 {
124 return FALSE;
125 }
126
128
130 {
132 {
134 return FALSE;
135 }
136 }
137
139 FCB,
140 DeviceObject->DeviceExtension,
141 Buffer,
142 &BufferLength);
143
145 {
147 }
148
149 if (NT_SUCCESS(Status))
150 {
151 IoStatus->Status = STATUS_SUCCESS;
152 IoStatus->Information = sizeof(FILE_BASIC_INFORMATION) - BufferLength;
153 Success = TRUE;
154 }
155
157
158 return Success;
159}
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define ExAcquireResourceSharedLite(res, wait)
Definition: env_spec_w32.h:621
@ Success
Definition: eventcreate.c:712
#define FsRtlEnterFileSystem
#define FsRtlExitFileSystem
Status
Definition: gdiplustypes.h:25
if(dx< 0)
Definition: linetemp.h:194
#define FILE_BASIC_INFORMATION
Definition: disk.h:53
VOID FASTCALL ExReleaseResourceLite(IN PERESOURCE Resource)
Definition: resource.c:1822
Definition: cdstruc.h:902
uint32_t ULONG
Definition: typedefs.h:59
#define FCB_IS_PAGE_FILE
Definition: vfat.h:436
NTSTATUS VfatGetBasicInformation(PFILE_OBJECT FileObject, PVFATFCB FCB, PDEVICE_EXTENSION DeviceExt, PFILE_BASIC_INFORMATION BasicInfo, PULONG BufferLength)
Definition: finfo.c:280
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3771

◆ VfatFastIoQueryNetworkOpenInfo()

static BOOLEAN NTAPI VfatFastIoQueryNetworkOpenInfo ( IN PFILE_OBJECT  FileObject,
IN BOOLEAN  Wait,
OUT PFILE_NETWORK_OPEN_INFORMATION  Buffer,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 396 of file fastio.c.

402{
403 DPRINT("VfatFastIoQueryNetworkOpenInfo\n");
404
410
411 return FALSE;
412}

◆ VfatFastIoQueryOpen()

static BOOLEAN NTAPI VfatFastIoQueryOpen ( IN PIRP  Irp,
OUT PFILE_NETWORK_OPEN_INFORMATION  NetworkInformation,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 640 of file fastio.c.

644{
645 DPRINT("VfatFastIoQueryOpen\n");
646
650
651 return FALSE;
652}
_In_ PIRP Irp
Definition: csq.h:116
_Out_ PFILE_NETWORK_OPEN_INFORMATION NetworkInformation
Definition: iotypes.h:1703

◆ VfatFastIoQueryStandardInfo()

static BOOLEAN NTAPI VfatFastIoQueryStandardInfo ( IN PFILE_OBJECT  FileObject,
IN BOOLEAN  Wait,
OUT PFILE_STANDARD_INFORMATION  Buffer,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 166 of file fastio.c.

172{
174 PVFATFCB FCB = NULL;
177
178 DPRINT("VfatFastIoQueryStandardInfo()\n");
179
181
182 FCB = (PVFATFCB)FileObject->FsContext;
183 if (FCB == NULL)
184 {
185 return FALSE;
186 }
187
189
191 {
193 {
195 return FALSE;
196 }
197 }
198
200 Buffer,
201 &BufferLength);
202
204 {
206 }
207
208 if (NT_SUCCESS(Status))
209 {
210 IoStatus->Status = STATUS_SUCCESS;
211 IoStatus->Information = sizeof(FILE_STANDARD_INFORMATION) - BufferLength;
212 Success = TRUE;
213 }
214
216
217 return Success;
218}
#define FILE_STANDARD_INFORMATION
Definition: disk.h:54
NTSTATUS VfatGetStandardInformation(PVFATFCB FCB, PFILE_STANDARD_INFORMATION StandardInfo, PULONG BufferLength)
Definition: finfo.c:73

◆ VfatFastIoRead()

static BOOLEAN NTAPI VfatFastIoRead ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN BOOLEAN  Wait,
IN ULONG  LockKey,
OUT PVOID  Buffer,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

◆ VfatFastIoReadCompressed()

static BOOLEAN NTAPI VfatFastIoReadCompressed ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN ULONG  LockKey,
OUT PVOID  Buffer,
OUT PMDL MdlChain,
OUT PIO_STATUS_BLOCK  IoStatus,
OUT PCOMPRESSED_DATA_INFO  CompressedDataInfo,
IN ULONG  CompressedDataInfoLength,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 534 of file fastio.c.

545{
546 DPRINT("VfatFastIoReadCompressed\n");
547
558
559 return FALSE;
560}
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:49
_In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Out_ PVOID _Out_ PMDL _Out_ PIO_STATUS_BLOCK _Out_ struct _COMPRESSED_DATA_INFO * CompressedDataInfo
Definition: iotypes.h:1658
_In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Out_ PVOID _Out_ PMDL _Out_ PIO_STATUS_BLOCK _Out_ struct _COMPRESSED_DATA_INFO _In_ ULONG CompressedDataInfoLength
Definition: iotypes.h:1659

◆ VfatFastIoUnlockAll()

static BOOLEAN NTAPI VfatFastIoUnlockAll ( IN PFILE_OBJECT  FileObject,
PEPROCESS  ProcessId,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 283 of file fastio.c.

288{
289 DPRINT("VfatFastIoUnlockAll\n");
290
295
296 return FALSE;
297}

◆ VfatFastIoUnlockAllByKey()

static BOOLEAN NTAPI VfatFastIoUnlockAllByKey ( IN PFILE_OBJECT  FileObject,
PVOID  ProcessId,
ULONG  Key,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 304 of file fastio.c.

◆ VfatFastIoUnlockSingle()

static BOOLEAN NTAPI VfatFastIoUnlockSingle ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN PLARGE_INTEGER  Length,
PEPROCESS  ProcessId,
ULONG  Key,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

◆ VfatFastIoWrite()

static BOOLEAN NTAPI VfatFastIoWrite ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN BOOLEAN  Wait,
IN ULONG  LockKey,
OUT PVOID  Buffer,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

◆ VfatFastIoWriteCompressed()

static BOOLEAN NTAPI VfatFastIoWriteCompressed ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN ULONG  LockKey,
IN PVOID  Buffer,
OUT PMDL MdlChain,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PCOMPRESSED_DATA_INFO  CompressedDataInfo,
IN ULONG  CompressedDataInfoLength,
IN PDEVICE_OBJECT  DeviceObject 
)
static

◆ VfatInitFastIoRoutines()

VOID VfatInitFastIoRoutines ( PFAST_IO_DISPATCH  FastIoDispatch)

Definition at line 753 of file fastio.c.

755{
784}
FAST_IO_DISPATCH FastIoDispatch
Definition: fastio.c:20
static FAST_IO_WRITE_COMPRESSED VfatFastIoWriteCompressed
Definition: fastio.c:562
static FAST_IO_ACQUIRE_FILE VfatAcquireFileForNtCreateSection
Definition: fastio.c:353
static FAST_IO_READ VfatFastIoRead
Definition: fastio.c:44
static FAST_IO_MDL_WRITE_COMPLETE VfatMdlWriteComplete
Definition: fastio.c:508
static FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED VfatMdlWriteCompleteCompressed
Definition: fastio.c:614
static FAST_IO_CHECK_IF_POSSIBLE VfatFastIoCheckIfPossible
Definition: fastio.c:14
static FAST_IO_QUERY_STANDARD_INFO VfatFastIoQueryStandardInfo
Definition: fastio.c:161
static FAST_IO_RELEASE_FILE VfatReleaseFileForNtCreateSection
Definition: fastio.c:365
static FAST_IO_ACQUIRE_FOR_CCFLUSH VfatAcquireForCcFlush
Definition: fastio.c:673
static FAST_IO_UNLOCK_ALL_BY_KEY VfatFastIoUnlockAllByKey
Definition: fastio.c:299
static FAST_IO_MDL_READ_COMPLETE_COMPRESSED VfatMdlReadCompleteCompressed
Definition: fastio.c:595
static FAST_IO_ACQUIRE_FOR_MOD_WRITE VfatAcquireForModWrite
Definition: fastio.c:414
static FAST_IO_DETACH_DEVICE VfatFastIoDetachDevice
Definition: fastio.c:377
static FAST_IO_MDL_READ VfatMdlRead
Definition: fastio.c:435
static FAST_IO_UNLOCK_SINGLE VfatFastIoUnlockSingle
Definition: fastio.c:251
static FAST_IO_DEVICE_CONTROL VfatFastIoDeviceControl
Definition: fastio.c:322
static FAST_IO_QUERY_BASIC_INFO VfatFastIoQueryBasicInfo
Definition: fastio.c:102
static FAST_IO_QUERY_OPEN VfatFastIoQueryOpen
Definition: fastio.c:635
static FAST_IO_MDL_READ_COMPLETE VfatMdlReadComplete
Definition: fastio.c:462
static FAST_IO_WRITE VfatFastIoWrite
Definition: fastio.c:73
static FAST_IO_RELEASE_FOR_CCFLUSH VfatReleaseForCcFlush
Definition: fastio.c:697
static FAST_IO_UNLOCK_ALL VfatFastIoUnlockAll
Definition: fastio.c:278
static FAST_IO_LOCK VfatFastIoLock
Definition: fastio.c:220
static FAST_IO_READ_COMPRESSED VfatFastIoReadCompressed
Definition: fastio.c:529
static FAST_IO_PREPARE_MDL_WRITE VfatPrepareMdlWrite
Definition: fastio.c:481
static FAST_IO_QUERY_NETWORK_OPEN_INFO VfatFastIoQueryNetworkOpenInfo
Definition: fastio.c:391
static FAST_IO_RELEASE_FOR_MOD_WRITE VfatReleaseForModWrite
Definition: fastio.c:654
PFAST_IO_ACQUIRE_FOR_MOD_WRITE AcquireForModWrite
Definition: iotypes.h:1748
PFAST_IO_QUERY_STANDARD_INFO FastIoQueryStandardInfo
Definition: iotypes.h:1738
PFAST_IO_UNLOCK_ALL_BY_KEY FastIoUnlockAllByKey
Definition: iotypes.h:1742
PFAST_IO_RELEASE_FOR_CCFLUSH ReleaseForCcFlush
Definition: iotypes.h:1760
PFAST_IO_MDL_READ_COMPLETE MdlReadComplete
Definition: iotypes.h:1750
PFAST_IO_MDL_WRITE_COMPLETE_COMPRESSED MdlWriteCompleteCompressed
Definition: iotypes.h:1756
PFAST_IO_MDL_READ MdlRead
Definition: iotypes.h:1749
PFAST_IO_WRITE FastIoWrite
Definition: iotypes.h:1736
PFAST_IO_UNLOCK_ALL FastIoUnlockAll
Definition: iotypes.h:1741
PFAST_IO_QUERY_NETWORK_OPEN_INFO FastIoQueryNetworkOpenInfo
Definition: iotypes.h:1747
PFAST_IO_ACQUIRE_FOR_CCFLUSH AcquireForCcFlush
Definition: iotypes.h:1759
PFAST_IO_MDL_WRITE_COMPLETE MdlWriteComplete
Definition: iotypes.h:1752
ULONG SizeOfFastIoDispatch
Definition: iotypes.h:1733
PFAST_IO_DEVICE_CONTROL FastIoDeviceControl
Definition: iotypes.h:1743
PFAST_IO_ACQUIRE_FILE AcquireFileForNtCreateSection
Definition: iotypes.h:1744
PFAST_IO_READ FastIoRead
Definition: iotypes.h:1735
PFAST_IO_QUERY_BASIC_INFO FastIoQueryBasicInfo
Definition: iotypes.h:1737
PFAST_IO_LOCK FastIoLock
Definition: iotypes.h:1739
PFAST_IO_WRITE_COMPRESSED FastIoWriteCompressed
Definition: iotypes.h:1754
PFAST_IO_MDL_READ_COMPLETE_COMPRESSED MdlReadCompleteCompressed
Definition: iotypes.h:1755
PFAST_IO_UNLOCK_SINGLE FastIoUnlockSingle
Definition: iotypes.h:1740
PFAST_IO_READ_COMPRESSED FastIoReadCompressed
Definition: iotypes.h:1753
PFAST_IO_RELEASE_FILE ReleaseFileForNtCreateSection
Definition: iotypes.h:1745
PFAST_IO_PREPARE_MDL_WRITE PrepareMdlWrite
Definition: iotypes.h:1751
PFAST_IO_RELEASE_FOR_MOD_WRITE ReleaseForModWrite
Definition: iotypes.h:1758
PFAST_IO_CHECK_IF_POSSIBLE FastIoCheckIfPossible
Definition: iotypes.h:1734
PFAST_IO_QUERY_OPEN FastIoQueryOpen
Definition: iotypes.h:1757
PFAST_IO_DETACH_DEVICE FastIoDetachDevice
Definition: iotypes.h:1746
struct _FAST_IO_DISPATCH FAST_IO_DISPATCH

Referenced by DriverEntry().

◆ VfatMdlRead()

static BOOLEAN NTAPI VfatMdlRead ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN ULONG  LockKey,
OUT PMDL MdlChain,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

◆ VfatMdlReadComplete()

static BOOLEAN NTAPI VfatMdlReadComplete ( IN PFILE_OBJECT  FileObject,
IN PMDL  MdlChain,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 467 of file fastio.c.

471{
472 DPRINT("VfatMdlReadComplete\n");
473
477
478 return FALSE;
479}

◆ VfatMdlReadCompleteCompressed()

static BOOLEAN NTAPI VfatMdlReadCompleteCompressed ( IN PFILE_OBJECT  FileObject,
IN PMDL  MdlChain,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 600 of file fastio.c.

604{
605 DPRINT("VfatMdlReadCompleteCompressed\n");
606
610
611 return FALSE;
612}

◆ VfatMdlWriteComplete()

static BOOLEAN NTAPI VfatMdlWriteComplete ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN PMDL  MdlChain,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 513 of file fastio.c.

518{
519 DPRINT("VfatMdlWriteComplete\n");
520
525
526 return FALSE;
527}

◆ VfatMdlWriteCompleteCompressed()

static BOOLEAN NTAPI VfatMdlWriteCompleteCompressed ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN PMDL  MdlChain,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 619 of file fastio.c.

624{
625 DPRINT("VfatMdlWriteCompleteCompressed\n");
626
631
632 return FALSE;
633}

◆ VfatPrepareMdlWrite()

static BOOLEAN NTAPI VfatPrepareMdlWrite ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
IN ULONG  LockKey,
OUT PMDL MdlChain,
OUT PIO_STATUS_BLOCK  IoStatus,
IN PDEVICE_OBJECT  DeviceObject 
)
static

◆ VfatReleaseFileForNtCreateSection()

static VOID NTAPI VfatReleaseFileForNtCreateSection ( IN PFILE_OBJECT  FileObject)
static

Definition at line 370 of file fastio.c.

372{
373 DPRINT("VfatReleaseFileForNtCreateSection\n");
375}

◆ VfatReleaseForCcFlush()

static NTSTATUS NTAPI VfatReleaseForCcFlush ( IN PFILE_OBJECT  FileObject,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 702 of file fastio.c.

705{
706 PVFATFCB Fcb = (PVFATFCB)FileObject->FsContext;
707
708 DPRINT("VfatReleaseForCcFlush\n");
709
711
712 /* Make sure it is not a volume lock */
714
715 /* Release the resource */
717
718 return STATUS_SUCCESS;
719}

◆ VfatReleaseForModWrite()

static NTSTATUS NTAPI VfatReleaseForModWrite ( IN PFILE_OBJECT  FileObject,
IN PERESOURCE  ResourceToRelease,
IN PDEVICE_OBJECT  DeviceObject 
)
static

Definition at line 659 of file fastio.c.

◆ VfatReleaseFromLazyWrite()

VOID NTAPI VfatReleaseFromLazyWrite ( IN PVOID  Context)

Definition at line 741 of file fastio.c.

743{
745 ASSERT(Fcb);
746 DPRINT("VfatReleaseFromLazyWrite(): Fcb %p\n", Fcb);
747
749}

Referenced by DriverEntry().

Variable Documentation

◆ VfatAcquireFileForNtCreateSection

FAST_IO_ACQUIRE_FILE VfatAcquireFileForNtCreateSection
static

Definition at line 353 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatAcquireForCcFlush

FAST_IO_ACQUIRE_FOR_CCFLUSH VfatAcquireForCcFlush
static

Definition at line 673 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatAcquireForModWrite

FAST_IO_ACQUIRE_FOR_MOD_WRITE VfatAcquireForModWrite
static

Definition at line 414 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoCheckIfPossible

FAST_IO_CHECK_IF_POSSIBLE VfatFastIoCheckIfPossible
static

Definition at line 14 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoDetachDevice

FAST_IO_DETACH_DEVICE VfatFastIoDetachDevice
static

Definition at line 377 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoDeviceControl

FAST_IO_DEVICE_CONTROL VfatFastIoDeviceControl
static

Definition at line 322 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoLock

FAST_IO_LOCK VfatFastIoLock
static

Definition at line 220 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoQueryBasicInfo

FAST_IO_QUERY_BASIC_INFO VfatFastIoQueryBasicInfo
static

Definition at line 102 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoQueryNetworkOpenInfo

FAST_IO_QUERY_NETWORK_OPEN_INFO VfatFastIoQueryNetworkOpenInfo
static

Definition at line 391 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoQueryOpen

FAST_IO_QUERY_OPEN VfatFastIoQueryOpen
static

Definition at line 635 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoQueryStandardInfo

FAST_IO_QUERY_STANDARD_INFO VfatFastIoQueryStandardInfo
static

Definition at line 161 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoRead

FAST_IO_READ VfatFastIoRead
static

Definition at line 44 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoReadCompressed

FAST_IO_READ_COMPRESSED VfatFastIoReadCompressed
static

Definition at line 529 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoUnlockAll

FAST_IO_UNLOCK_ALL VfatFastIoUnlockAll
static

Definition at line 278 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoUnlockAllByKey

FAST_IO_UNLOCK_ALL_BY_KEY VfatFastIoUnlockAllByKey
static

Definition at line 299 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoUnlockSingle

FAST_IO_UNLOCK_SINGLE VfatFastIoUnlockSingle
static

Definition at line 251 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoWrite

FAST_IO_WRITE VfatFastIoWrite
static

Definition at line 73 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatFastIoWriteCompressed

FAST_IO_WRITE_COMPRESSED VfatFastIoWriteCompressed
static

Definition at line 562 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatMdlRead

FAST_IO_MDL_READ VfatMdlRead
static

Definition at line 435 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatMdlReadComplete

FAST_IO_MDL_READ_COMPLETE VfatMdlReadComplete
static

Definition at line 462 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatMdlReadCompleteCompressed

FAST_IO_MDL_READ_COMPLETE_COMPRESSED VfatMdlReadCompleteCompressed
static

Definition at line 595 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatMdlWriteComplete

FAST_IO_MDL_WRITE_COMPLETE VfatMdlWriteComplete
static

Definition at line 508 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatMdlWriteCompleteCompressed

FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED VfatMdlWriteCompleteCompressed
static

Definition at line 614 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatPrepareMdlWrite

FAST_IO_PREPARE_MDL_WRITE VfatPrepareMdlWrite
static

Definition at line 481 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatReleaseFileForNtCreateSection

FAST_IO_RELEASE_FILE VfatReleaseFileForNtCreateSection
static

Definition at line 365 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatReleaseForCcFlush

FAST_IO_RELEASE_FOR_CCFLUSH VfatReleaseForCcFlush
static

Definition at line 697 of file fastio.c.

Referenced by VfatInitFastIoRoutines().

◆ VfatReleaseForModWrite

FAST_IO_RELEASE_FOR_MOD_WRITE VfatReleaseForModWrite
static

Definition at line 654 of file fastio.c.

Referenced by VfatInitFastIoRoutines().