[ros-diffs] [ros-arm-bringup] 34668: - Don't re-map the MDL if it's already been built from non-paged pool. - Hackforce the partition type for disk ramdisks to be FAT32 for now.

ros-arm-bringup at svn.reactos.org ros-arm-bringup at svn.reactos.org
Tue Jul 22 11:32:03 CEST 2008


Author: ros-arm-bringup
Date: Tue Jul 22 04:32:02 2008
New Revision: 34668

URL: http://svn.reactos.org/svn/reactos?rev=34668&view=rev
Log:
- Don't re-map the MDL if it's already been built from non-paged pool.
- Hackforce the partition type for disk ramdisks to be FAT32 for now.


Modified:
    trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c

Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c?rev=34668&r1=34667&r2=34668&view=diff
==============================================================================
--- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Tue Jul 22 04:32:02 2008
@@ -1109,7 +1109,7 @@
     // Get the MDL and check if it's mapped
     //
     Mdl = Irp->MdlAddress;
-    if (Mdl->MdlFlags & MDL_MAPPED_TO_SYSTEM_VA)
+    if (Mdl->MdlFlags & (MDL_MAPPED_TO_SYSTEM_VA | MDL_SOURCE_IS_NONPAGED_POOL))
     {
         //
         // Use the mapped address
@@ -1280,7 +1280,7 @@
                                               DeviceExtension->Cylinders;
     PartitionInfo->HiddenSectors = DeviceExtension->HiddenSectors;
     PartitionInfo->PartitionNumber = 0;
-    PartitionInfo->PartitionType = *((PCHAR)BaseAddress + 450);
+    PartitionInfo->PartitionType = PARTITION_FAT32; //*((PCHAR)BaseAddress + 450);
     PartitionInfo->BootIndicator = (DeviceExtension->DiskType ==
                                     RAMDISK_BOOT_DISK) ? TRUE: FALSE;
     PartitionInfo->RecognizedPartition = IsRecognizedPartition(PartitionInfo->



More information about the Ros-diffs mailing list