Ignore:
Timestamp:
Oct 27, 2007, 5:07:52 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Verify should now work for USB devices
  • More log/mesages improvement for USB support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-archive.c

    r1708 r1709  
    18951895    log_msg(1, message_to_screen);
    18961896
    1897     if (is_this_device_mounted(bkpinfo->media_device)) {
     1897    asprintf(&tmp1, "umount %s1", bkpinfo->media_device);
     1898    if (is_this_device_mounted(tmp1)) {
    18981899        log_msg(1, "USB device mounted. Remounting it at the right place");
    1899         asprintf(&tmp, "umount %s1", bkpinfo->media_device);
     1900        asprintf(&tmp, "umount %s", tmp1);
    19001901        run_program_and_log_output(tmp, FALSE);
    19011902        paranoid_free(tmp);
    19021903    }
     1904    1paranoid_free(tmp);
     1905
    19031906    log_msg(1, "Mounting USB device.");
    19041907    asprintf(&tmp1, "%s/usb", bkpinfo->tmpdir);
     
    39653968                 media_descriptor_string(g_backup_media_type));
    39663969            chdir("/");
    3967             iamhere("Before calling verify_cd_image()");
    3968             res += verify_cd_image();
    3969             iamhere("After calling verify_cd_image()");
     3970            iamhere("Before calling verification of image()");
     3971            if (bkpinfo->backup_media_type == usb) {
     3972                res += verify_usb_image();
     3973            } else {
     3974                res += verify_cd_image();
     3975            }
     3976            iamhere("After calling verification of image()");
    39703977        }
    39713978        if (!res) {
    39723979            that_one_was_ok = TRUE;
    39733980        } else {
    3974             sprintf(tmp, "Failed to burn %s #%d. Retry?",
     3981            sprintf(tmp, "Failed to create %s #%d. Retry?",
    39753982                    media_descriptor_string(bkpinfo->backup_media_type),
    39763983                    g_current_media_number);
     
    39984005    g_current_media_number++;
    39994006    if (g_current_media_number > MAX_NOOF_MEDIA) {
    4000         fatal_error("Too many CD-R(W)'s. Use tape or net.");
     4007        fatal_error("Too many media. Use tape or net.");
    40014008    }
    40024009    wipe_archives(bkpinfo->scratchdir);
     
    40104017
    40114018    if (last_cd) {
    4012         log_msg(2, "This was your last CD.");
     4019        log_msg(2, "This was your last media.");
    40134020    } else {
    40144021        log_msg(2, "Continuing to backup your data...");
Note: See TracChangeset for help on using the changeset viewer.