-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWrite.c
More file actions
32 lines (27 loc) · 741 Bytes
/
Copy pathWrite.c
File metadata and controls
32 lines (27 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "Driver.h"
NTSTATUS BlorgWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
UNREFERENCED_PARAMETER(DeviceObject);
// PIO_STACK_LOCATION irpSp = IoGetCurrentIrpStackLocation(Irp);
NTSTATUS result = STATUS_INVALID_DEVICE_REQUEST;
switch (GetDeviceExtensionMagic(DeviceObject))
{
case BLORGFS_VDO_MAGIC:
{
// result = BlorgVolumeWrite(Irp, irpSp);
break;
}
case BLORGFS_DDO_MAGIC:
{
// result = BlorgDiskWrite(Irp);
break;
}
case BLORGFS_FSDO_MAGIC:
{
break;
}
}
Irp->IoStatus.Status = result;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return Irp->IoStatus.Status;
}