mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[SMSS2]: Add some debugging to figure out what's happening on KVM.
svn path=/trunk/; revision=55463
This commit is contained in:
parent
60f4720280
commit
1fbcc2809f
|
@ -395,6 +395,10 @@ SmpGetVolumeFreeSpace(IN PSMP_VOLUME_DESCRIPTOR Volume)
|
||||||
SizeInfo.SectorsPerAllocationUnit;
|
SizeInfo.SectorsPerAllocationUnit;
|
||||||
FinalFreeSpace.QuadPart = FreeSpace.QuadPart * SizeInfo.BytesPerSector;
|
FinalFreeSpace.QuadPart = FreeSpace.QuadPart * SizeInfo.BytesPerSector;
|
||||||
Volume->FreeSpace = FinalFreeSpace;
|
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 */
|
/* Check if there's less than 32MB free so we don't starve the disk */
|
||||||
if (FinalFreeSpace.QuadPart <= 0x2000000)
|
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",
|
DPRINT1("SMSS:PFILE: Failed to query free space for boot volume `%wC'\n",
|
||||||
Volume->DriveLetter);
|
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 */
|
/* Don't process crashdump on this volume anymore */
|
||||||
Descriptor->Flags |= SMP_PAGEFILE_DUMP_PROCESSED;
|
Descriptor->Flags |= SMP_PAGEFILE_DUMP_PROCESSED;
|
||||||
|
|
Loading…
Reference in a new issue