Changeset 3882 in MondoRescue for branches/3.3/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Mar 10, 2024, 12:46:53 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/mondorestore/mondorestore.c
r3879 r3882 673 673 /** 674 674 * Restore @p tarball_fname from CD. 675 * @param tarball_fname The filename of the tarball to restore (in /mnt/cdrom).675 * @param tarball_fname The filename of the tarball to restore (in MNT_CDROM). 676 676 * This will be used unmodified. 677 677 * @param current_tarball_number The number (starting from 0) of the fileset … … 1800 1800 mvaddstr_and_log_it(g_currentY++, 0, 1801 1801 "Restoring OS and data from streaming media"); 1802 if (bkpinfo->backup_media_type == cdstream) { 1803 openin_cdstream(); 1804 } else { 1805 assert_string_is_neither_NULL_nor_zerolength(bkpinfo->media_device); 1806 openin_tape(); 1807 } 1802 assert_string_is_neither_NULL_nor_zerolength(bkpinfo->media_device); 1803 openin_tape(); 1808 1804 resA = restore_all_tarballs_from_stream(filelist); 1809 1805 resB = restore_all_biggiefiles_from_stream(filelist); 1810 if (bkpinfo->backup_media_type == cdstream) { 1811 closein_cdstream(); 1812 } else { 1813 closein_tape(); 1814 } 1806 closein_tape(); 1815 1807 } else { 1816 1808 mount_media(MNT_CDROM); … … 2332 2324 } else { 2333 2325 popup_and_OK("No restoring or comparing will take place today."); 2334 if (is_this_device_mounted( "/mnt/cdrom")) {2335 run_program_and_log_output("umount -d /mnt/cdrom", FALSE);2326 if (is_this_device_mounted(MNT_CDROM)) { 2327 run_program_and_log_output("umount -d "MNT_CDROM, FALSE); 2336 2328 } 2337 2329 if (g_ISO_restore_mode) { … … 2919 2911 2920 2912 if (!bkpinfo->please_dont_eject) { 2921 (void)eject_device("/dev/cdrom"); 2922 } 2923 mvaddstr_and_log_it(g_currentY++, 2924 0, 2925 "Run complete. Please remove media and reboot."); 2913 (void)eject_device(bkpinfo->backup_media_type); 2914 } 2915 mvaddstr_and_log_it(g_currentY++, 0, "Run complete. Please remove media and reboot."); 2926 2916 } 2927 2917 }
Note:
See TracChangeset
for help on using the changeset viewer.