From 1fbcc2809fa0ccd8be1a49e64992db7d28695f08 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 6 Feb 2012 17:03:59 +0000 Subject: [PATCH] [SMSS2]: Add some debugging to figure out what's happening on KVM. svn path=/trunk/; revision=55463 --- reactos/base/system/smss2/pagefile.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactos/base/system/smss2/pagefile.c b/reactos/base/system/smss2/pagefile.c index 035f437d858..ba9047b65d2 100644 --- a/reactos/base/system/smss2/pagefile.c +++ b/reactos/base/system/smss2/pagefile.c @@ -395,6 +395,10 @@ SmpGetVolumeFreeSpace(IN PSMP_VOLUME_DESCRIPTOR Volume) 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) @@ -515,6 +519,11 @@ SmpCreatePagingFileOnFixedDrive(IN PSMP_PAGEFILE_DESCRIPTOR Descriptor, 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 */ Descriptor->Flags |= SMP_PAGEFILE_DUMP_PROCESSED;