[DISK] Properly implement querying partition information for partition 0.
authorPierre Schweitzer <pierre@reactos.org>
Sun, 24 Dec 2017 20:54:09 +0000 (21:54 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 24 Dec 2017 20:58:47 +0000 (21:58 +0100)
commitb9b461bde95804f3dcf1455a1bfbf25cfdb8aedc
treeca736aba965954aca731d17165f7d42414bd0bde
parent1db8bd46d6d1eff589a20f6ec7e57047bc9b3a05
[DISK] Properly implement querying partition information for partition 0.
In spite of what was implemented in our NT DDK sample, this is a legit operation.

This may have been turned legit starting NT5 (reminder, our implementation is
NT4 based...). So, in this situation, just return the information about the whole
disk (and not a random size) and also, mark everything with default values.

See disk_new for an example of how it works in NT5+.

CORE-14124
drivers/storage/class/disk/disk.c