Changeset 2030 in MondoRescue for branches/2.2.7/mondo/src/common/libmondo-tools.c
- Timestamp:
- Oct 3, 2008, 1:50:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mondo/src/common/libmondo-tools.c
r1999 r2030 1 /* libmondo-tools.c misc tools1 /* 2 2 $Id$ 3 3 */ … … 64 64 /** 65 65 * The location where tmpfs is mounted, or "" if it's not mounted. 66 */67 66 char *g_tmpfs_mountpt = NULL; 67 */ 68 68 char *g_magicdev_command = NULL; 69 69 … … 426 426 char *hostname, *ip_address; 427 427 int retval = 0; 428 long avm = 0;429 428 char *colon; 430 429 char *cdr_exe; 431 430 char *tmp; 432 431 char call_before_iso_user[MAX_STR_LEN] = "\0"; 432 /* 433 long avm = 0; 433 434 int rdsiz_MB; 435 */ 434 436 char *iso_dev; 435 437 char *iso_mnt; … … 471 473 run_program_and_log_output("cat /etc/*-release", 5); 472 474 run_program_and_log_output("cat /etc/*issue*", 5); 475 /* 473 476 sprintf(g_tmpfs_mountpt, "%s/tmpfs", bkpinfo->tmpdir); 474 477 sprintf(command, "mkdir -p %s", g_tmpfs_mountpt); 475 478 paranoid_system(command); 476 479 rdsiz_MB = PPCFG_RAMDISK_SIZE + g_tape_buffer_size_MB; 480 */ 477 481 #ifdef __FreeBSD__ 482 /* 478 483 strcpy(tmp, 479 484 call_program_and_get_last_line_of_output … … 486 491 sprintf(command, "mdmfs -s %d%c md9 %s", rdsiz_MB, 'm', 487 492 g_tmpfs_mountpt); 493 */ 488 494 #else 495 /* 489 496 strcpy(tmp, 490 497 call_program_and_get_last_line_of_output … … 493 500 sprintf(command, "mount /dev/shm -t tmpfs %s -o size=%d%c", 494 501 g_tmpfs_mountpt, rdsiz_MB, 'm'); 502 */ 495 503 run_program_and_log_output("cat /proc/cpuinfo", 5); 496 504 run_program_and_log_output … … 498 506 5); 499 507 #endif 508 /* 500 509 if (avm / 1024 > rdsiz_MB * 3) { 501 510 if (run_program_and_log_output(command, 5)) { … … 509 518 log_it("It doesn't seem you have enough swap to use tmpfs. Fine."); 510 519 } 520 */ 511 521 512 522 if (bkpinfo->use_lzo) { … … 1429 1439 malloc_string(g_boot_mountpt); 1430 1440 malloc_string(g_mondo_home); 1441 /* 1431 1442 malloc_string(g_tmpfs_mountpt); 1443 */ 1432 1444 malloc_string(g_serial_string); 1433 1445 malloc_string(g_magicdev_command); … … 1435 1447 paranoid_free(g_boot_mountpt); 1436 1448 paranoid_free(g_mondo_home); 1449 /* 1437 1450 paranoid_free(g_tmpfs_mountpt); 1451 */ 1438 1452 paranoid_free(g_serial_string); 1439 1453 paranoid_free(g_magicdev_command);
Note:
See TracChangeset
for help on using the changeset viewer.