mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
sys: debug: FileInformationClassSym()
This commit is contained in:
parent
0c48770cc5
commit
c15ace9653
@ -167,4 +167,76 @@ const char *IoctlCodeSym(ULONG ControlCode)
|
||||
return "IOCTL:Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass)
|
||||
{
|
||||
switch (FileInformationClass)
|
||||
{
|
||||
SYM(FileDirectoryInformation)
|
||||
SYM(FileFullDirectoryInformation)
|
||||
SYM(FileBothDirectoryInformation)
|
||||
SYM(FileBasicInformation)
|
||||
SYM(FileStandardInformation)
|
||||
SYM(FileInternalInformation)
|
||||
SYM(FileEaInformation)
|
||||
SYM(FileAccessInformation)
|
||||
SYM(FileNameInformation)
|
||||
SYM(FileRenameInformation)
|
||||
SYM(FileLinkInformation)
|
||||
SYM(FileNamesInformation)
|
||||
SYM(FileDispositionInformation)
|
||||
SYM(FilePositionInformation)
|
||||
SYM(FileFullEaInformation)
|
||||
SYM(FileModeInformation)
|
||||
SYM(FileAlignmentInformation)
|
||||
SYM(FileAllInformation)
|
||||
SYM(FileAllocationInformation)
|
||||
SYM(FileEndOfFileInformation)
|
||||
SYM(FileAlternateNameInformation)
|
||||
SYM(FileStreamInformation)
|
||||
SYM(FilePipeInformation)
|
||||
SYM(FilePipeLocalInformation)
|
||||
SYM(FilePipeRemoteInformation)
|
||||
SYM(FileMailslotQueryInformation)
|
||||
SYM(FileMailslotSetInformation)
|
||||
SYM(FileCompressionInformation)
|
||||
SYM(FileObjectIdInformation)
|
||||
SYM(FileCompletionInformation)
|
||||
SYM(FileMoveClusterInformation)
|
||||
SYM(FileQuotaInformation)
|
||||
SYM(FileReparsePointInformation)
|
||||
SYM(FileNetworkOpenInformation)
|
||||
SYM(FileAttributeTagInformation)
|
||||
SYM(FileTrackingInformation)
|
||||
SYM(FileIdBothDirectoryInformation)
|
||||
SYM(FileIdFullDirectoryInformation)
|
||||
SYM(FileValidDataLengthInformation)
|
||||
SYM(FileShortNameInformation)
|
||||
SYM(FileIoCompletionNotificationInformation)
|
||||
SYM(FileIoStatusBlockRangeInformation)
|
||||
SYM(FileIoPriorityHintInformation)
|
||||
SYM(FileSfioReserveInformation)
|
||||
SYM(FileSfioVolumeInformation)
|
||||
SYM(FileHardLinkInformation)
|
||||
SYM(FileProcessIdsUsingFileInformation)
|
||||
SYM(FileNormalizedNameInformation)
|
||||
SYM(FileNetworkPhysicalNameInformation)
|
||||
SYM(FileIdGlobalTxDirectoryInformation)
|
||||
SYM(FileIsRemoteDeviceInformation)
|
||||
SYM(FileUnusedInformation)
|
||||
SYM(FileNumaNodeInformation)
|
||||
SYM(FileStandardLinkInformation)
|
||||
SYM(FileRemoteProtocolInformation)
|
||||
SYM(FileRenameInformationBypassAccessCheck)
|
||||
SYM(FileLinkInformationBypassAccessCheck)
|
||||
SYM(FileVolumeNameInformation)
|
||||
SYM(FileIdInformation)
|
||||
SYM(FileIdExtdDirectoryInformation)
|
||||
SYM(FileReplaceCompletionInformation)
|
||||
SYM(FileHardLinkFullIdInformation)
|
||||
SYM(FileIdExtdBothDirectoryInformation)
|
||||
default:
|
||||
return "FILE_INFORMATION_CLASS:Unknown";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -599,6 +599,7 @@ const char *NtStatusSym(NTSTATUS Status);
|
||||
const char *IrpMajorFunctionSym(UCHAR MajorFunction);
|
||||
const char *IrpMinorFunctionSym(UCHAR MajorFunction, UCHAR MinorFunction);
|
||||
const char *IoctlCodeSym(ULONG ControlCode);
|
||||
const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass);
|
||||
static inline
|
||||
VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result)
|
||||
{
|
||||
|
@ -37,7 +37,9 @@ VOID FspFsvolQueryInformationComplete(
|
||||
{
|
||||
FSP_ENTER_IOC(PAGED_CODE());
|
||||
|
||||
FSP_LEAVE_IOC("%s", "");
|
||||
FSP_LEAVE_IOC("%s, FileObject=%p",
|
||||
FileInformationClassSym(IrpSp->Parameters.QueryFile.FileInformationClass),
|
||||
IrpSp->FileObject);
|
||||
}
|
||||
|
||||
static NTSTATUS FspFsvolSetInformation(
|
||||
@ -53,7 +55,9 @@ VOID FspFsvolSetInformationComplete(
|
||||
{
|
||||
FSP_ENTER_IOC(PAGED_CODE());
|
||||
|
||||
FSP_LEAVE_IOC("%s", "");
|
||||
FSP_LEAVE_IOC("%s, FileObject=%p",
|
||||
FileInformationClassSym(IrpSp->Parameters.SetFile.FileInformationClass),
|
||||
IrpSp->FileObject);
|
||||
}
|
||||
|
||||
NTSTATUS FspQueryInformation(
|
||||
@ -69,7 +73,9 @@ NTSTATUS FspQueryInformation(
|
||||
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
|
||||
}
|
||||
|
||||
FSP_LEAVE_MJ("%s", "");
|
||||
FSP_LEAVE_MJ("%s, FileObject=%p",
|
||||
FileInformationClassSym(IrpSp->Parameters.QueryFile.FileInformationClass),
|
||||
IrpSp->FileObject);
|
||||
}
|
||||
|
||||
NTSTATUS FspSetInformation(
|
||||
@ -85,5 +91,7 @@ NTSTATUS FspSetInformation(
|
||||
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
|
||||
}
|
||||
|
||||
FSP_LEAVE_MJ("%s", "");
|
||||
FSP_LEAVE_MJ("%s, FileObject=%p",
|
||||
FileInformationClassSym(IrpSp->Parameters.SetFile.FileInformationClass),
|
||||
IrpSp->FileObject);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user