Changeset 2334 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-devices.c
- Timestamp:
- Aug 18, 2009, 5:28:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-devices.c
r2332 r2334 131 131 mr_free(tmp); 132 132 133 if (is_this_a_ramdisk) {134 if (!does_file_exist("/THIS-IS-A-RAMDISK")) {135 log_to_screen("Using /dev/root is stupid of you but I'll forgive you.");136 is_this_a_ramdisk = FALSE;137 }138 }139 if (does_file_exist("/THIS-IS-A-RAMDISK")) {140 is_this_a_ramdisk = TRUE;141 }142 133 log_msg(1, "Is this a ramdisk? result = %s", (is_this_a_ramdisk) ? "TRUE" : "FALSE"); 143 134 return (is_this_a_ramdisk); … … 515 506 516 507 if (g_cdrw_drive_is_here[0]) { 517 mr_asprintf(cdrw_device, g_cdrw_drive_is_here);508 mr_asprintf(cdrw_device, "%s", g_cdrw_drive_is_here); 518 509 log_msg(3, "Been there, done that. Returning %s", cdrw_device); 519 510 return(cdrw_device); … … 840 831 841 832 if (g_dvd_drive_is_here[0]) { 842 mr_asprintf(output, g_dvd_drive_is_here);833 mr_asprintf(output, "%s", g_dvd_drive_is_here); 843 834 log_msg(3, "Been there, done that. Returning %s", output); 844 835 return (output); … … 1599 1590 1600 1591 mr_free(bkpinfo->media_device); 1601 if ((!bkpinfo->restore_mode) && ((bkpinfo->media_device = find_tape_device_and_size(NULL)) == NULL)) {1592 if ((!bkpinfo->restore_mode) && ((bkpinfo->media_device = mr_find_tape_device()) == NULL)) { 1602 1593 log_msg(3, "Ok, using vanilla scsi tape."); 1603 1594 mr_asprintf(bkpinfo->media_device, "%s", VANILLA_SCSI_TAPE); … … 1641 1632 mr_free(tmp); 1642 1633 1643 bkpinfo->use_obdr = ask_me_yes_or_no 1644 ("Do you want to activate OBDR support for your tapes ?"); 1634 bkpinfo->use_obdr = ask_me_yes_or_no("Do you want to activate OBDR support for your tapes ?"); 1645 1635 bkpinfo->media_size[0] = 0; 1646 1636 log_msg(4, "media_size[0] = %ld", bkpinfo->media_size[0]);
Note:
See TracChangeset
for help on using the changeset viewer.