[ros-diffs] [ion] 55463: [SMSS2]: Add some debugging to figure out what's happening on KVM.

ion at svn.reactos.org ion at svn.reactos.org
Mon Feb 6 17:03:59 UTC 2012


Author: ion
Date: Mon Feb  6 17:03:59 2012
New Revision: 55463

URL: http://svn.reactos.org/svn/reactos?rev=55463&view=rev
Log:
[SMSS2]: Add some debugging to figure out what's happening on KVM.

Modified:
    trunk/reactos/base/system/smss2/pagefile.c

Modified: trunk/reactos/base/system/smss2/pagefile.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss2/pagefile.c?rev=55463&r1=55462&r2=55463&view=diff
==============================================================================
--- trunk/reactos/base/system/smss2/pagefile.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss2/pagefile.c [iso-8859-1] Mon Feb  6 17:03:59 2012
@@ -395,6 +395,10 @@
                          SizeInfo.SectorsPerAllocationUnit;
     FinalFreeSpace.QuadPart = FreeSpace.QuadPart * SizeInfo.BytesPerSector;
     Volume->FreeSpace = FinalFreeSpace;
+    DPRINT1("AUs: %I64 Sectors: %lx Bytes Per Sector: %lx\n",
+            SizeInfo.AvailableAllocationUnits.QuadPart,
+            SizeInfo.SectorsPerAllocationUnit,
+            SizeInfo.BytesPerSector);
 
     /* Check if there's less than 32MB free so we don't starve the disk */
     if (FinalFreeSpace.QuadPart <= 0x2000000)
@@ -514,6 +518,11 @@
             {
                 DPRINT1("SMSS:PFILE: Failed to query free space for boot volume `%wC'\n",
                         Volume->DriveLetter);
+            }
+            else
+            {
+                DPRINT1("Queried free space for boot volume `%wC: %I64x'\n",
+                        Volume->DriveLetter, Volume->FreeSpace.QuadPart);
             }
 
             /* Don't process crashdump on this volume anymore */




More information about the Ros-diffs mailing list