Ignore:
Timestamp:
Mar 9, 2024, 3:31:21 PM (4 months ago)
Author:
Bruno Cornec
Message:

-c means now optical backup for CD/DVD. Removed dvd special mode -r

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-devices.c

    r3879 r3881  
    698698/**
    699699 * 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>).
    701701 * @note The returned string points to static storage that will be overwritten with each call.
    702702 * @ingroup stringGroup
     
    712712        mr_asprintf(output, "%s", "iso");
    713713        break;
    714     case cdr:
    715         mr_asprintf(output, "%s", "cdr");
     714    case optical:
     715        mr_asprintf(output, "%s", "optical");
    716716        break;
    717717    case cdstream:
     
    12291229    } else if (media_type == tape) {
    12301230        return(find_tape_device());
    1231     } else if ((media_type == dvd) || (media_type == cdr)) {
     1231    } else if (media_type == optical) {
    12321232        return(find_optical_device());
    12331233    } else {
     
    20172017    // Tape, CD, NETFS, ...?
    20182018    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);
    20202020    if (bkpinfo->backup_media_type == none) {
    20212021        log_to_screen("User has chosen not to backup the machine");
     
    20702070    // Find device's /dev (or SCSI) entry
    20712071    switch (bkpinfo->backup_media_type) {
    2072     case cdr:
    2073     case dvd:
     2072    case optical:
    20742073    case usb:
    20752074        /* Never try to eject a USB device */
     
    20812080            if (ask_me_yes_or_no("Is your computer a laptop type (manual insert of MondoRescue media)?")) {
    20822081                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;
    20832085            }
    20842086        }
Note: See TracChangeset for help on using the changeset viewer.