Changeset 3881 in MondoRescue for branches/3.3/mondo/src/common/libmondo-devices.c
- Timestamp:
- Mar 9, 2024, 3:31:21 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-devices.c
r3879 r3881 698 698 /** 699 699 * Turn @c bkpinfo->backup_media_type into a human-readable string. 700 * @return The human readable string (e.g. @c cdr becomes <tt>"cdr"</tt>).700 * @return The human readable string (e.g. @c optical becomes <tt>"optical"</tt>). 701 701 * @note The returned string points to static storage that will be overwritten with each call. 702 702 * @ingroup stringGroup … … 712 712 mr_asprintf(output, "%s", "iso"); 713 713 break; 714 case cdr:715 mr_asprintf(output, "%s", " cdr");714 case optical: 715 mr_asprintf(output, "%s", "optical"); 716 716 break; 717 717 case cdstream: … … 1229 1229 } else if (media_type == tape) { 1230 1230 return(find_tape_device()); 1231 } else if ( (media_type == dvd) || (media_type == cdr)) {1231 } else if (media_type == optical) { 1232 1232 return(find_optical_device()); 1233 1233 } else { … … 2017 2017 // Tape, CD, NETFS, ...? 2018 2018 srandom(getpid()); 2019 bkpinfo->backup_media_type = (g_restoring_live_from_cd) ? cdr: which_backup_media_type(bkpinfo->restore_data);2019 bkpinfo->backup_media_type = (g_restoring_live_from_cd) ? optical : which_backup_media_type(bkpinfo->restore_data); 2020 2020 if (bkpinfo->backup_media_type == none) { 2021 2021 log_to_screen("User has chosen not to backup the machine"); … … 2070 2070 // Find device's /dev (or SCSI) entry 2071 2071 switch (bkpinfo->backup_media_type) { 2072 case cdr: 2073 case dvd: 2072 case optical: 2074 2073 case usb: 2075 2074 /* Never try to eject a USB device */ … … 2081 2080 if (ask_me_yes_or_no("Is your computer a laptop type (manual insert of MondoRescue media)?")) { 2082 2081 bkpinfo->manual_cd_tray = TRUE; 2082 } 2083 if (ask_me_yes_or_no("Do you want to blank your media before burning them (RW type of media)?")) { 2084 bkpinfo->wipe_media_first = TRUE; 2083 2085 } 2084 2086 }
Note:
See TracChangeset
for help on using the changeset viewer.