2005-08-24 18:29:45 +00:00
|
|
|
/*
|
2022-09-24 13:24:08 +00:00
|
|
|
* PROJECT: VFAT Filesystem
|
|
|
|
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
|
|
|
|
* PURPOSE: Fast IO routines
|
|
|
|
* COPYRIGHT: Copyright 2005 Hervé Poussineau <hpoussin@reactos.org>
|
|
|
|
* Copyright 2015-2018 Pierre Schweitzer <pierre@reactos.org>
|
2005-07-31 12:11:56 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "vfat.h"
|
|
|
|
|
2013-12-19 16:20:28 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_CHECK_IF_POSSIBLE VfatFastIoCheckIfPossible;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
/* Prevent all Fast I/O requests */
|
|
|
|
DPRINT("VfatFastIoCheckIfPossible(): returning FALSE.\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(Wait);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(CheckForReadOperation);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_READ VfatFastIoRead;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoRead()\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(Wait);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(Buffer);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_WRITE VfatFastIoWrite;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoWrite()\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(Wait);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(Buffer);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_QUERY_BASIC_INFO VfatFastIoQueryBasicInfo;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2015-05-18 19:51:14 +00:00
|
|
|
NTSTATUS Status;
|
|
|
|
PVFATFCB FCB = NULL;
|
|
|
|
BOOLEAN Success = FALSE;
|
|
|
|
ULONG BufferLength = sizeof(FILE_BASIC_INFORMATION);
|
2013-05-11 11:03:12 +00:00
|
|
|
|
2015-05-18 19:51:14 +00:00
|
|
|
DPRINT("VfatFastIoQueryBasicInfo()\n");
|
2013-05-11 11:03:12 +00:00
|
|
|
|
2015-05-18 19:51:14 +00:00
|
|
|
FCB = (PVFATFCB)FileObject->FsContext;
|
|
|
|
if (FCB == NULL)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
FsRtlEnterFileSystem();
|
|
|
|
|
2017-02-17 17:58:18 +00:00
|
|
|
if (!BooleanFlagOn(FCB->Flags, FCB_IS_PAGE_FILE))
|
2015-05-18 19:51:14 +00:00
|
|
|
{
|
|
|
|
if (!ExAcquireResourceSharedLite(&FCB->MainResource, Wait))
|
|
|
|
{
|
|
|
|
FsRtlExitFileSystem();
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Status = VfatGetBasicInformation(FileObject,
|
|
|
|
FCB,
|
2017-06-26 18:10:43 +00:00
|
|
|
DeviceObject->DeviceExtension,
|
2015-05-18 19:51:14 +00:00
|
|
|
Buffer,
|
|
|
|
&BufferLength);
|
|
|
|
|
2017-02-17 17:58:18 +00:00
|
|
|
if (!BooleanFlagOn(FCB->Flags, FCB_IS_PAGE_FILE))
|
2015-05-18 19:51:14 +00:00
|
|
|
{
|
|
|
|
ExReleaseResourceLite(&FCB->MainResource);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (NT_SUCCESS(Status))
|
|
|
|
{
|
|
|
|
IoStatus->Status = STATUS_SUCCESS;
|
|
|
|
IoStatus->Information = sizeof(FILE_BASIC_INFORMATION) - BufferLength;
|
|
|
|
Success = TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
FsRtlExitFileSystem();
|
|
|
|
|
|
|
|
return Success;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_QUERY_STANDARD_INFO VfatFastIoQueryStandardInfo;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2015-05-18 19:51:14 +00:00
|
|
|
NTSTATUS Status;
|
|
|
|
PVFATFCB FCB = NULL;
|
|
|
|
BOOLEAN Success = FALSE;
|
|
|
|
ULONG BufferLength = sizeof(FILE_STANDARD_INFORMATION);
|
|
|
|
|
|
|
|
DPRINT("VfatFastIoQueryStandardInfo()\n");
|
2013-05-11 11:03:12 +00:00
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
2015-05-18 19:51:14 +00:00
|
|
|
FCB = (PVFATFCB)FileObject->FsContext;
|
|
|
|
if (FCB == NULL)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
FsRtlEnterFileSystem();
|
|
|
|
|
2017-02-17 17:58:18 +00:00
|
|
|
if (!BooleanFlagOn(FCB->Flags, FCB_IS_PAGE_FILE))
|
2015-05-18 19:51:14 +00:00
|
|
|
{
|
|
|
|
if (!ExAcquireResourceSharedLite(&FCB->MainResource, Wait))
|
|
|
|
{
|
|
|
|
FsRtlExitFileSystem();
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Status = VfatGetStandardInformation(FCB,
|
|
|
|
Buffer,
|
|
|
|
&BufferLength);
|
|
|
|
|
2017-02-17 17:58:18 +00:00
|
|
|
if (!BooleanFlagOn(FCB->Flags, FCB_IS_PAGE_FILE))
|
2015-05-18 19:51:14 +00:00
|
|
|
{
|
|
|
|
ExReleaseResourceLite(&FCB->MainResource);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (NT_SUCCESS(Status))
|
|
|
|
{
|
|
|
|
IoStatus->Status = STATUS_SUCCESS;
|
|
|
|
IoStatus->Information = sizeof(FILE_STANDARD_INFORMATION) - BufferLength;
|
|
|
|
Success = TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
FsRtlExitFileSystem();
|
|
|
|
|
|
|
|
return Success;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_LOCK VfatFastIoLock;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoLock\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(ProcessId);
|
|
|
|
UNREFERENCED_PARAMETER(Key);
|
|
|
|
UNREFERENCED_PARAMETER(FailImmediately);
|
|
|
|
UNREFERENCED_PARAMETER(ExclusiveLock);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_UNLOCK_SINGLE VfatFastIoUnlockSingle;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoUnlockSingle\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(ProcessId);
|
|
|
|
UNREFERENCED_PARAMETER(Key);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_UNLOCK_ALL VfatFastIoUnlockAll;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatFastIoUnlockAll(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
PEPROCESS ProcessId,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatus,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoUnlockAll\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(ProcessId);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_UNLOCK_ALL_BY_KEY VfatFastIoUnlockAllByKey;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatFastIoUnlockAllByKey(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
PVOID ProcessId,
|
|
|
|
ULONG Key,
|
|
|
|
OUT PIO_STATUS_BLOCK IoStatus,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoUnlockAllByKey\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(ProcessId);
|
|
|
|
UNREFERENCED_PARAMETER(Key);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_DEVICE_CONTROL VfatFastIoDeviceControl;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoDeviceControl\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(Wait);
|
|
|
|
UNREFERENCED_PARAMETER(InputBuffer);
|
|
|
|
UNREFERENCED_PARAMETER(InputBufferLength);
|
|
|
|
UNREFERENCED_PARAMETER(OutputBuffer);
|
|
|
|
UNREFERENCED_PARAMETER(OutputBufferLength);
|
|
|
|
UNREFERENCED_PARAMETER(IoControlCode);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_ACQUIRE_FILE VfatAcquireFileForNtCreateSection;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
VfatAcquireFileForNtCreateSection(
|
|
|
|
IN PFILE_OBJECT FileObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatAcquireFileForNtCreateSection\n");
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_RELEASE_FILE VfatReleaseFileForNtCreateSection;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
VfatReleaseFileForNtCreateSection(
|
|
|
|
IN PFILE_OBJECT FileObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatReleaseFileForNtCreateSection\n");
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_DETACH_DEVICE VfatFastIoDetachDevice;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
VfatFastIoDetachDevice(
|
|
|
|
IN PDEVICE_OBJECT SourceDevice,
|
|
|
|
IN PDEVICE_OBJECT TargetDevice)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoDetachDevice\n");
|
|
|
|
UNREFERENCED_PARAMETER(SourceDevice);
|
|
|
|
UNREFERENCED_PARAMETER(TargetDevice);
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_QUERY_NETWORK_OPEN_INFO VfatFastIoQueryNetworkOpenInfo;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoQueryNetworkOpenInfo\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(Wait);
|
|
|
|
UNREFERENCED_PARAMETER(Buffer);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_ACQUIRE_FOR_MOD_WRITE VfatAcquireForModWrite;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
VfatAcquireForModWrite(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PLARGE_INTEGER EndingOffset,
|
|
|
|
OUT PERESOURCE* ResourceToRelease,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatAcquireForModWrite\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(EndingOffset);
|
|
|
|
UNREFERENCED_PARAMETER(ResourceToRelease);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return STATUS_INVALID_DEVICE_REQUEST;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_MDL_READ VfatMdlRead;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatMdlRead\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_MDL_READ_COMPLETE VfatMdlReadComplete;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatMdlReadComplete(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PMDL MdlChain,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatMdlReadComplete\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_PREPARE_MDL_WRITE VfatPrepareMdlWrite;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatPrepareMdlWrite\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_MDL_WRITE_COMPLETE VfatMdlWriteComplete;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatMdlWriteComplete(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PLARGE_INTEGER FileOffset,
|
|
|
|
IN PMDL MdlChain,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatMdlWriteComplete\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_READ_COMPRESSED VfatFastIoReadCompressed;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoReadCompressed\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(Buffer);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(CompressedDataInfo);
|
|
|
|
UNREFERENCED_PARAMETER(CompressedDataInfoLength);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_WRITE_COMPRESSED VfatFastIoWriteCompressed;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
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)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatFastIoWriteCompressed\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(Length);
|
|
|
|
UNREFERENCED_PARAMETER(LockKey);
|
|
|
|
UNREFERENCED_PARAMETER(Buffer);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(IoStatus);
|
|
|
|
UNREFERENCED_PARAMETER(CompressedDataInfo);
|
|
|
|
UNREFERENCED_PARAMETER(CompressedDataInfoLength);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_MDL_READ_COMPLETE_COMPRESSED VfatMdlReadCompleteCompressed;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatMdlReadCompleteCompressed(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PMDL MdlChain,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatMdlReadCompleteCompressed\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_MDL_WRITE_COMPLETE_COMPRESSED VfatMdlWriteCompleteCompressed;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatMdlWriteCompleteCompressed(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PLARGE_INTEGER FileOffset,
|
|
|
|
IN PMDL MdlChain,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatMdlWriteCompleteCompressed\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(FileOffset);
|
|
|
|
UNREFERENCED_PARAMETER(MdlChain);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_QUERY_OPEN VfatFastIoQueryOpen;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatFastIoQueryOpen(
|
|
|
|
IN PIRP Irp,
|
|
|
|
OUT PFILE_NETWORK_OPEN_INFORMATION NetworkInformation,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-12-09 18:48:13 +00:00
|
|
|
DPRINT("VfatFastIoQueryOpen\n");
|
2013-05-11 11:03:12 +00:00
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(Irp);
|
|
|
|
UNREFERENCED_PARAMETER(NetworkInformation);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return FALSE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_RELEASE_FOR_MOD_WRITE VfatReleaseForModWrite;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
VfatReleaseForModWrite(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PERESOURCE ResourceToRelease,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-05-11 11:03:12 +00:00
|
|
|
DPRINT("VfatReleaseForModWrite\n");
|
|
|
|
|
|
|
|
UNREFERENCED_PARAMETER(FileObject);
|
|
|
|
UNREFERENCED_PARAMETER(ResourceToRelease);
|
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
|
|
|
|
|
|
|
return STATUS_INVALID_DEVICE_REQUEST;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_ACQUIRE_FOR_CCFLUSH VfatAcquireForCcFlush;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
VfatAcquireForCcFlush(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-12-09 18:48:13 +00:00
|
|
|
PVFATFCB Fcb = (PVFATFCB)FileObject->FsContext;
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
DPRINT("VfatAcquireForCcFlush\n");
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
2013-05-11 11:03:12 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
/* Make sure it is not a volume lock */
|
2017-02-17 17:58:18 +00:00
|
|
|
ASSERT(!BooleanFlagOn(Fcb->Flags, FCB_IS_VOLUME));
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
/* Acquire the resource */
|
|
|
|
ExAcquireResourceExclusiveLite(&(Fcb->MainResource), TRUE);
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
return STATUS_SUCCESS;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-11 11:03:12 +00:00
|
|
|
static FAST_IO_RELEASE_FOR_CCFLUSH VfatReleaseForCcFlush;
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
static
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
VfatReleaseForCcFlush(
|
|
|
|
IN PFILE_OBJECT FileObject,
|
|
|
|
IN PDEVICE_OBJECT DeviceObject)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-12-09 18:48:13 +00:00
|
|
|
PVFATFCB Fcb = (PVFATFCB)FileObject->FsContext;
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
DPRINT("VfatReleaseForCcFlush\n");
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
UNREFERENCED_PARAMETER(DeviceObject);
|
2013-05-11 11:03:12 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
/* Make sure it is not a volume lock */
|
2017-02-17 17:58:18 +00:00
|
|
|
ASSERT(!BooleanFlagOn(Fcb->Flags, FCB_IS_VOLUME));
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
/* Release the resource */
|
|
|
|
ExReleaseResourceLite(&(Fcb->MainResource));
|
2008-10-12 09:34:29 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
return STATUS_SUCCESS;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
VfatAcquireForLazyWrite(
|
|
|
|
IN PVOID Context,
|
|
|
|
IN BOOLEAN Wait)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-12-09 18:48:13 +00:00
|
|
|
PVFATFCB Fcb = (PVFATFCB)Context;
|
|
|
|
ASSERT(Fcb);
|
|
|
|
DPRINT("VfatAcquireForLazyWrite(): Fcb %p\n", Fcb);
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
if (!ExAcquireResourceExclusiveLite(&(Fcb->MainResource), Wait))
|
|
|
|
{
|
|
|
|
DPRINT("VfatAcquireForLazyWrite(): ExReleaseResourceLite failed.\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
return TRUE;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
VfatReleaseFromLazyWrite(
|
|
|
|
IN PVOID Context)
|
2005-07-31 12:11:56 +00:00
|
|
|
{
|
2013-12-09 18:48:13 +00:00
|
|
|
PVFATFCB Fcb = (PVFATFCB)Context;
|
|
|
|
ASSERT(Fcb);
|
|
|
|
DPRINT("VfatReleaseFromLazyWrite(): Fcb %p\n", Fcb);
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2013-12-09 18:48:13 +00:00
|
|
|
ExReleaseResourceLite(&(Fcb->MainResource));
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|
|
|
|
|
2020-10-06 19:44:01 +00:00
|
|
|
CODE_SEG("INIT")
|
2005-07-31 12:11:56 +00:00
|
|
|
VOID
|
2013-12-09 18:48:13 +00:00
|
|
|
VfatInitFastIoRoutines(
|
|
|
|
PFAST_IO_DISPATCH FastIoDispatch)
|
|
|
|
{
|
|
|
|
FastIoDispatch->SizeOfFastIoDispatch = sizeof(FAST_IO_DISPATCH);
|
|
|
|
FastIoDispatch->FastIoCheckIfPossible = VfatFastIoCheckIfPossible;
|
|
|
|
FastIoDispatch->FastIoRead = VfatFastIoRead;
|
|
|
|
FastIoDispatch->FastIoWrite = VfatFastIoWrite;
|
|
|
|
FastIoDispatch->FastIoQueryBasicInfo = VfatFastIoQueryBasicInfo;
|
|
|
|
FastIoDispatch->FastIoQueryStandardInfo = VfatFastIoQueryStandardInfo;
|
|
|
|
FastIoDispatch->FastIoLock = VfatFastIoLock;
|
|
|
|
FastIoDispatch->FastIoUnlockSingle = VfatFastIoUnlockSingle;
|
|
|
|
FastIoDispatch->FastIoUnlockAll = VfatFastIoUnlockAll;
|
|
|
|
FastIoDispatch->FastIoUnlockAllByKey = VfatFastIoUnlockAllByKey;
|
|
|
|
FastIoDispatch->FastIoDeviceControl = VfatFastIoDeviceControl;
|
|
|
|
FastIoDispatch->AcquireFileForNtCreateSection = VfatAcquireFileForNtCreateSection;
|
|
|
|
FastIoDispatch->ReleaseFileForNtCreateSection = VfatReleaseFileForNtCreateSection;
|
|
|
|
FastIoDispatch->FastIoDetachDevice = VfatFastIoDetachDevice;
|
|
|
|
FastIoDispatch->FastIoQueryNetworkOpenInfo = VfatFastIoQueryNetworkOpenInfo;
|
|
|
|
FastIoDispatch->MdlRead = VfatMdlRead;
|
|
|
|
FastIoDispatch->MdlReadComplete = VfatMdlReadComplete;
|
|
|
|
FastIoDispatch->PrepareMdlWrite = VfatPrepareMdlWrite;
|
|
|
|
FastIoDispatch->MdlWriteComplete = VfatMdlWriteComplete;
|
|
|
|
FastIoDispatch->FastIoReadCompressed = VfatFastIoReadCompressed;
|
|
|
|
FastIoDispatch->FastIoWriteCompressed = VfatFastIoWriteCompressed;
|
|
|
|
FastIoDispatch->MdlReadCompleteCompressed = VfatMdlReadCompleteCompressed;
|
|
|
|
FastIoDispatch->MdlWriteCompleteCompressed = VfatMdlWriteCompleteCompressed;
|
|
|
|
FastIoDispatch->FastIoQueryOpen = VfatFastIoQueryOpen;
|
|
|
|
FastIoDispatch->AcquireForModWrite = VfatAcquireForModWrite;
|
|
|
|
FastIoDispatch->ReleaseForModWrite = VfatReleaseForModWrite;
|
|
|
|
FastIoDispatch->AcquireForCcFlush = VfatAcquireForCcFlush;
|
|
|
|
FastIoDispatch->ReleaseForCcFlush = VfatReleaseForCcFlush;
|
2005-07-31 12:11:56 +00:00
|
|
|
}
|