sys: FsInformationClassSym()

This commit is contained in:
Bill Zissimopoulos 2016-01-24 22:29:00 -08:00
parent a0b0f9600c
commit 225f2ff59e
3 changed files with 31 additions and 4 deletions

View File

@ -239,4 +239,26 @@ const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass)
return "FILE_INFORMATION_CLASS:Unknown"; return "FILE_INFORMATION_CLASS:Unknown";
} }
} }
const char *FsInformationClassSym(FS_INFORMATION_CLASS FsInformationClass)
{
switch (FsInformationClass)
{
SYM(FileFsVolumeInformation)
SYM(FileFsLabelInformation)
SYM(FileFsSizeInformation)
SYM(FileFsDeviceInformation)
SYM(FileFsAttributeInformation)
SYM(FileFsControlInformation)
SYM(FileFsFullSizeInformation)
SYM(FileFsObjectIdInformation)
SYM(FileFsDriverPathInformation)
SYM(FileFsVolumeFlagsInformation)
SYM(FileFsSectorSizeInformation)
SYM(FileFsDataCopyInformation)
SYM(FileFsMetadataSizeInformation)
default:
return "FS_INFORMATION_CLASS:Unknown";
}
}
#endif #endif

View File

@ -618,6 +618,7 @@ const char *IrpMajorFunctionSym(UCHAR MajorFunction);
const char *IrpMinorFunctionSym(UCHAR MajorFunction, UCHAR MinorFunction); const char *IrpMinorFunctionSym(UCHAR MajorFunction, UCHAR MinorFunction);
const char *IoctlCodeSym(ULONG ControlCode); const char *IoctlCodeSym(ULONG ControlCode);
const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass); const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass);
const char *FsInformationClassSym(FS_INFORMATION_CLASS FsInformationClass);
static inline static inline
VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result) VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result)
{ {

View File

@ -37,7 +37,8 @@ VOID FspFsvolQueryVolumeInformationComplete(
{ {
FSP_ENTER_IOC(PAGED_CODE()); FSP_ENTER_IOC(PAGED_CODE());
FSP_LEAVE_IOC("%s", ""); FSP_LEAVE_IOC("%s",
FsInformationClassSym(IrpSp->Parameters.QueryVolume.FsInformationClass));
} }
static NTSTATUS FspFsvolSetVolumeInformation( static NTSTATUS FspFsvolSetVolumeInformation(
@ -53,7 +54,8 @@ VOID FspFsvolSetVolumeInformationComplete(
{ {
FSP_ENTER_IOC(PAGED_CODE()); FSP_ENTER_IOC(PAGED_CODE());
FSP_LEAVE_IOC("%s", ""); FSP_LEAVE_IOC("%s",
FsInformationClassSym(IrpSp->Parameters.SetVolume.FsInformationClass));
} }
NTSTATUS FspQueryVolumeInformation( NTSTATUS FspQueryVolumeInformation(
@ -69,7 +71,8 @@ NTSTATUS FspQueryVolumeInformation(
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST); FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
} }
FSP_LEAVE_MJ("%s", ""); FSP_LEAVE_MJ("%s",
FsInformationClassSym(IrpSp->Parameters.QueryVolume.FsInformationClass));
} }
NTSTATUS FspSetVolumeInformation( NTSTATUS FspSetVolumeInformation(
@ -85,5 +88,6 @@ NTSTATUS FspSetVolumeInformation(
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST); FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
} }
FSP_LEAVE_MJ("%s", ""); FSP_LEAVE_MJ("%s",
FsInformationClassSym(IrpSp->Parameters.SetVolume.FsInformationClass));
} }