Changeset 1709 in MondoRescue for branches/2.2.5/mondo/src/common/libmondo-archive.c
- Timestamp:
- Oct 27, 2007, 5:07:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-archive.c
r1708 r1709 1895 1895 log_msg(1, message_to_screen); 1896 1896 1897 if (is_this_device_mounted(bkpinfo->media_device)) { 1897 asprintf(&tmp1, "umount %s1", bkpinfo->media_device); 1898 if (is_this_device_mounted(tmp1)) { 1898 1899 log_msg(1, "USB device mounted. Remounting it at the right place"); 1899 asprintf(&tmp, "umount %s 1", bkpinfo->media_device);1900 asprintf(&tmp, "umount %s", tmp1); 1900 1901 run_program_and_log_output(tmp, FALSE); 1901 1902 paranoid_free(tmp); 1902 1903 } 1904 1paranoid_free(tmp); 1905 1903 1906 log_msg(1, "Mounting USB device."); 1904 1907 asprintf(&tmp1, "%s/usb", bkpinfo->tmpdir); … … 3965 3968 media_descriptor_string(g_backup_media_type)); 3966 3969 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()"); 3970 3977 } 3971 3978 if (!res) { 3972 3979 that_one_was_ok = TRUE; 3973 3980 } else { 3974 sprintf(tmp, "Failed to burn%s #%d. Retry?",3981 sprintf(tmp, "Failed to create %s #%d. Retry?", 3975 3982 media_descriptor_string(bkpinfo->backup_media_type), 3976 3983 g_current_media_number); … … 3998 4005 g_current_media_number++; 3999 4006 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."); 4001 4008 } 4002 4009 wipe_archives(bkpinfo->scratchdir); … … 4010 4017 4011 4018 if (last_cd) { 4012 log_msg(2, "This was your last CD.");4019 log_msg(2, "This was your last media."); 4013 4020 } else { 4014 4021 log_msg(2, "Continuing to backup your data...");
Note:
See TracChangeset
for help on using the changeset viewer.