Utilities: Set 3GB allocation pool limit for TestDiskImage
#include <Library/DebugLib.h>
#include <UserFile.h>
+#include <UserMemory.h>
#define NUM_EXTENTS 20
@@ -35,6 +36,11 @@ ENTRY_POINT (
UINT32 Index2;
OC_APPLE_CHUNKLIST_CONTEXT ChunklistContext;
+ //
+ // Limit pool allocation size to 3072 MB
+ //
+ SetPoolAllocationSizeLimit (BASE_1GB | BASE_2GB);
+
if (argc < 2) {
DEBUG ((DEBUG_ERROR, "Please provide a valid Disk Image path\n"));
return -1;
