[DISK]
authorPierre Schweitzer <pierre@reactos.org>
Wed, 24 Feb 2016 07:55:36 +0000 (07:55 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 24 Feb 2016 07:55:36 +0000 (07:55 +0000)
Also had the nasty partition number hack to IOCTL_DISK_GET_PARTITION_INFO_EX.

It is required for some file system to work in ReactOS (teasing :-))

svn path=/trunk/; revision=70781

reactos/drivers/storage/class/disk/disk.c

index 483fbeb..2f2f085 100644 (file)
@@ -2310,6 +2310,7 @@ Return Value:
             status = STATUS_INFO_LENGTH_MISMATCH;
 
         }
             status = STATUS_INFO_LENGTH_MISMATCH;
 
         }
+#if 0 // HACK: ReactOS partition numbers must be wrong
         else if (diskData->PartitionNumber == 0) {
 
             //
         else if (diskData->PartitionNumber == 0) {
 
             //
@@ -2320,10 +2321,16 @@ Return Value:
             status = STATUS_INVALID_DEVICE_REQUEST;
 
         }
             status = STATUS_INVALID_DEVICE_REQUEST;
 
         }
+#endif
         else {
 
             PPARTITION_INFORMATION_EX outputBuffer;
 
         else {
 
             PPARTITION_INFORMATION_EX outputBuffer;
 
+            if (diskData->PartitionNumber == 0) {
+                DPRINT1("HACK: Handling partition 0 request!\n");
+                //ASSERT(FALSE);
+            }
+
             //
             // Update the geometry in case it has changed.
             //
             //
             // Update the geometry in case it has changed.
             //