This patch implements volume information queries for device files, which allows NtQueryVolumeInformationFile to issue IRP_MJ_QUERY_VOLUME_INFORMATION to return volume information from a driver. The patch also now includes a simple test that issues FileFsVolumeInformation (for systems that support unsigned drivers).
v7: match dispatch_read behavior (no input buffer), fix missing const, and remove incorrect FIXME v6: No change v5: No change v4: Split out content from server/device.c and dlls/ntoskrnl.exe/ntoskrnl.c, fixed copy-paste error identified by Zeb, and added tests
Best, Erich
This introduces a warning:
../wine/server/trace.c: In function ‘dump_irp_params’: ../wine/server/trace.c:343:5: warning: enumeration value ‘IRP_CALL_VOLUME’ not handled in switch [-Wswitch] switch (data->type) ^~~~~~