diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-02 14:00:53 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-02 14:00:53 +0000 |
commit | 29ab9ecda9f92b9bc90d053753794645c35b1529 (patch) | |
tree | 72a82c3c170a466b9bb4a01d9926e9b54bbb34cd | |
parent | 3a41cb2f157cfd970fe2d4708d5eeb3409a8592f (diff) | |
download | drakx-29ab9ecda9f92b9bc90d053753794645c35b1529.tar drakx-29ab9ecda9f92b9bc90d053753794645c35b1529.tar.gz drakx-29ab9ecda9f92b9bc90d053753794645c35b1529.tar.bz2 drakx-29ab9ecda9f92b9bc90d053753794645c35b1529.tar.xz drakx-29ab9ecda9f92b9bc90d053753794645c35b1529.zip |
rename MEM_LIMIT_RAMDISK into MEM_LIMIT_DRAKX
-rw-r--r-- | mdk-stage1/config-stage1.h | 2 | ||||
-rw-r--r-- | mdk-stage1/network.c | 4 | ||||
-rw-r--r-- | mdk-stage1/tools.c | 2 |
3 files changed, 4 insertions, 4 deletions
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!"); |