mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +00:00
- Print the major function codes if debug prints are enabled.
svn path=/trunk/; revision=13283
This commit is contained in:
parent
9147b52d01
commit
0d6305b3bc
1 changed files with 39 additions and 3 deletions
|
@ -13,6 +13,41 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include "vfat.h"
|
#include "vfat.h"
|
||||||
|
|
||||||
|
/* GLOBALS ******************************************************************/
|
||||||
|
|
||||||
|
const char* MajorFunctionNames[] =
|
||||||
|
{
|
||||||
|
"IRP_MJ_CREATE",
|
||||||
|
"IRP_MJ_CREATE_NAMED_PIPE",
|
||||||
|
"IRP_MJ_CLOSE",
|
||||||
|
"IRP_MJ_READ",
|
||||||
|
"IRP_MJ_WRITE",
|
||||||
|
"IRP_MJ_QUERY_INFORMATION",
|
||||||
|
"IRP_MJ_SET_INFORMATION",
|
||||||
|
"IRP_MJ_QUERY_EA",
|
||||||
|
"IRP_MJ_SET_EA",
|
||||||
|
"IRP_MJ_FLUSH_BUFFERS",
|
||||||
|
"IRP_MJ_QUERY_VOLUME_INFORMATION",
|
||||||
|
"IRP_MJ_SET_VOLUME_INFORMATION",
|
||||||
|
"IRP_MJ_DIRECTORY_CONTROL",
|
||||||
|
"IRP_MJ_FILE_SYSTEM_CONTROL",
|
||||||
|
"IRP_MJ_DEVICE_CONTROL",
|
||||||
|
"IRP_MJ_INTERNAL_DEVICE_CONTROL",
|
||||||
|
"IRP_MJ_SHUTDOWN",
|
||||||
|
"IRP_MJ_LOCK_CONTROL",
|
||||||
|
"IRP_MJ_CLEANUP",
|
||||||
|
"IRP_MJ_CREATE_MAILSLOT",
|
||||||
|
"IRP_MJ_QUERY_SECURITY",
|
||||||
|
"IRP_MJ_SET_SECURITY",
|
||||||
|
"IRP_MJ_POWER",
|
||||||
|
"IRP_MJ_SYSTEM_CONTROL",
|
||||||
|
"IRP_MJ_DEVICE_CHANGE",
|
||||||
|
"IRP_MJ_QUERY_QUOTA",
|
||||||
|
"IRP_MJ_SET_QUOTA",
|
||||||
|
"IRP_MJ_PNP",
|
||||||
|
"IRP_MJ_MAXIMUM_FUNCTION"
|
||||||
|
};
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
static LONG QueueCount = 0;
|
static LONG QueueCount = 0;
|
||||||
|
@ -57,10 +92,11 @@ Fail:;
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS VfatDispatchRequest (
|
NTSTATUS
|
||||||
IN PVFAT_IRP_CONTEXT IrpContext)
|
VfatDispatchRequest (IN PVFAT_IRP_CONTEXT IrpContext)
|
||||||
{
|
{
|
||||||
DPRINT ("VfatDispatchRequest (IrpContext %x), MajorFunction %x\n", IrpContext, IrpContext->MajorFunction);
|
DPRINT ("VfatDispatchRequest (IrpContext %x), is called for %s\n", IrpContext,
|
||||||
|
IrpContext->MajorFunction >= IRP_MJ_MAXIMUM_FUNCTION ? "????" : MajorFunctionNames[IrpContext->MajorFunction]);
|
||||||
|
|
||||||
ASSERT(IrpContext);
|
ASSERT(IrpContext);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue