From 29ab9ecda9f92b9bc90d053753794645c35b1529 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 2 Nov 2004 14:00:53 +0000 Subject: rename MEM_LIMIT_RAMDISK into MEM_LIMIT_DRAKX --- mdk-stage1/config-stage1.h | 2 +- mdk-stage1/network.c | 4 ++-- mdk-stage1/tools.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/config-stage1.h b/mdk-stage1/config-stage1.h index 2a9cfa9ce..e1b717876 100644 --- a/mdk-stage1/config-stage1.h +++ b/mdk-stage1/config-stage1.h @@ -19,7 +19,7 @@ /* If we have more than that amount of memory (in Mbytes), we assume we can load the second stage as a ramdisk */ -#define MEM_LIMIT_RAMDISK 68 +#define MEM_LIMIT_DRAKX 68 /* If we have more than that amount of memory (in Mbytes), we assume we can load the rescue as a ramdisk */ #define MEM_LIMIT_RESCUE 40 diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 19d6d3710..d80d05e00 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -905,7 +905,7 @@ enum return_type ftp_prepare(void) if (!ramdisk_possible()) { stg1_error_message("FTP install needs more than %d Mbytes of memory (detected %d Mbytes). You may want to try an NFS install.", - MEM_LIMIT_RAMDISK, total_memory()); + MEM_LIMIT_DRAKX, total_memory()); return RETURN_ERROR; } @@ -1054,7 +1054,7 @@ enum return_type http_prepare(void) if (!ramdisk_possible()) { stg1_error_message("HTTP install needs more than %d Mbytes of memory (detected %d Mbytes). You may want to try an NFS install.", - MEM_LIMIT_RAMDISK, total_memory()); + MEM_LIMIT_DRAKX, total_memory()); return RETURN_ERROR; } diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c index 11aa0c446..f0c0d7efc 100644 --- a/mdk-stage1/tools.c +++ b/mdk-stage1/tools.c @@ -229,7 +229,7 @@ int total_memory(void) int ramdisk_possible(void) { - if (total_memory() > (IS_RESCUE ? MEM_LIMIT_RESCUE : MEM_LIMIT_RAMDISK)) + if (total_memory() > (IS_RESCUE ? MEM_LIMIT_RESCUE : MEM_LIMIT_DRAKX)) return 1; else { log_message("warning, ramdisk is not possible due to low mem!"); -- cgit v1.2.1