mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 08:53:01 -05:00
sys: FsInformationClassSym()
This commit is contained in:
parent
a0b0f9600c
commit
225f2ff59e
@ -239,4 +239,26 @@ const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass)
|
||||
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
|
||||
|
@ -618,6 +618,7 @@ const char *IrpMajorFunctionSym(UCHAR MajorFunction);
|
||||
const char *IrpMinorFunctionSym(UCHAR MajorFunction, UCHAR MinorFunction);
|
||||
const char *IoctlCodeSym(ULONG ControlCode);
|
||||
const char *FileInformationClassSym(FILE_INFORMATION_CLASS FileInformationClass);
|
||||
const char *FsInformationClassSym(FS_INFORMATION_CLASS FsInformationClass);
|
||||
static inline
|
||||
VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result)
|
||||
{
|
||||
|
@ -37,7 +37,8 @@ VOID FspFsvolQueryVolumeInformationComplete(
|
||||
{
|
||||
FSP_ENTER_IOC(PAGED_CODE());
|
||||
|
||||
FSP_LEAVE_IOC("%s", "");
|
||||
FSP_LEAVE_IOC("%s",
|
||||
FsInformationClassSym(IrpSp->Parameters.QueryVolume.FsInformationClass));
|
||||
}
|
||||
|
||||
static NTSTATUS FspFsvolSetVolumeInformation(
|
||||
@ -53,7 +54,8 @@ VOID FspFsvolSetVolumeInformationComplete(
|
||||
{
|
||||
FSP_ENTER_IOC(PAGED_CODE());
|
||||
|
||||
FSP_LEAVE_IOC("%s", "");
|
||||
FSP_LEAVE_IOC("%s",
|
||||
FsInformationClassSym(IrpSp->Parameters.SetVolume.FsInformationClass));
|
||||
}
|
||||
|
||||
NTSTATUS FspQueryVolumeInformation(
|
||||
@ -69,7 +71,8 @@ NTSTATUS FspQueryVolumeInformation(
|
||||
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
|
||||
}
|
||||
|
||||
FSP_LEAVE_MJ("%s", "");
|
||||
FSP_LEAVE_MJ("%s",
|
||||
FsInformationClassSym(IrpSp->Parameters.QueryVolume.FsInformationClass));
|
||||
}
|
||||
|
||||
NTSTATUS FspSetVolumeInformation(
|
||||
@ -85,5 +88,6 @@ NTSTATUS FspSetVolumeInformation(
|
||||
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
|
||||
}
|
||||
|
||||
FSP_LEAVE_MJ("%s", "");
|
||||
FSP_LEAVE_MJ("%s",
|
||||
FsInformationClassSym(IrpSp->Parameters.SetVolume.FsInformationClass));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user