mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NTFS]
Handle IRP_MJ_WRITE with the dispatch routine svn path=/trunk/; revision=67876
This commit is contained in:
@@ -71,6 +71,10 @@ NtfsDispatch(PNTFS_IRP_CONTEXT IrpContext)
|
||||
case IRP_MJ_DEVICE_CONTROL:
|
||||
Status = NtfsDeviceControl(IrpContext);
|
||||
break;
|
||||
|
||||
case IRP_MJ_WRITE:
|
||||
Status = NtfsWrite(IrpContext);
|
||||
break;
|
||||
}
|
||||
|
||||
ASSERT((!(IrpContext->Flags & IRPCONTEXT_COMPLETE) && !(IrpContext->Flags & IRPCONTEXT_QUEUE)) ||
|
||||
|
||||
@@ -122,7 +122,7 @@ NtfsInitializeFunctionPointers(PDRIVER_OBJECT DriverObject)
|
||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = NtfsFsdCreate;
|
||||
DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsFsdClose;
|
||||
DriverObject->MajorFunction[IRP_MJ_READ] = NtfsFsdDispatch;
|
||||
DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsFsdWrite;
|
||||
DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsFsdDispatch;
|
||||
DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = NtfsFsdDispatch;
|
||||
DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] = NtfsFsdDispatch;
|
||||
DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] = NtfsFsdDispatch;
|
||||
|
||||
@@ -762,10 +762,8 @@ NtfsFileFlagsToAttributes(ULONG NtfsAttributes,
|
||||
NTSTATUS
|
||||
NtfsRead(PNTFS_IRP_CONTEXT IrpContext);
|
||||
|
||||
DRIVER_DISPATCH NtfsFsdWrite;
|
||||
NTSTATUS NTAPI
|
||||
NtfsFsdWrite(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp);
|
||||
NTSTATUS
|
||||
NtfsWrite(PNTFS_IRP_CONTEXT IrpContext);
|
||||
|
||||
|
||||
/* volinfo.c */
|
||||
|
||||
@@ -186,7 +186,7 @@ NtfsRead(PNTFS_IRP_CONTEXT IrpContext)
|
||||
PIRP Irp;
|
||||
PDEVICE_OBJECT DeviceObject;
|
||||
|
||||
DPRINT("NtfsRead(DeviceObject %p)\n", IrpContext);
|
||||
DPRINT("NtfsRead(IrpContext %p)\n", IrpContext);
|
||||
|
||||
DeviceObject = IrpContext->DeviceObject;
|
||||
Irp = IrpContext->Irp;
|
||||
@@ -225,14 +225,11 @@ NtfsRead(PNTFS_IRP_CONTEXT IrpContext)
|
||||
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
NtfsFsdWrite(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
NtfsWrite(PNTFS_IRP_CONTEXT IrpContext)
|
||||
{
|
||||
DPRINT("NtfwWrite(DeviceObject %x Irp %x)\n",DeviceObject,Irp);
|
||||
DPRINT("NtfsWrite(IrpContext %p)\n",IrpContext);
|
||||
|
||||
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
|
||||
Irp->IoStatus.Information = 0;
|
||||
IrpContext->Irp->IoStatus.Information = 0;
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user