[NTOSKRNL] Add a quick path for FileFsDeviceInformation in NtQueryVolumeInformationFile
authorPierre Schweitzer <pierre@reactos.org>
Thu, 28 Mar 2019 21:29:22 +0000 (22:29 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 28 Mar 2019 21:39:38 +0000 (22:39 +0100)
commitce6488df31de64092f41aa78bb87e829ded3dc6b
tree536a3ca2f678d4fc988c5e35a7dfdf3dac26f67c
parentf8e0b4675f1293acf6f5b5fcddb5083636ee3d12
[NTOSKRNL] Add a quick path for FileFsDeviceInformation in NtQueryVolumeInformationFile

This allows querying volume information without issuing an IRP to the owner device.
The kernel is supposed to already have all the required information to return
to the caller.

Side effect: this allows querying volume information for devices not implementing
IRP_MJ_QUERY_VOLUME_INFORMATION such as null.sys
This fixes opening null device in Python.

Fix based on debugging by Maxim Smirnov in PR #1442

CORE-14551
ntoskrnl/io/iomgr/iofunc.c