Changeset 2866 in MondoRescue
- Timestamp:
- Aug 23, 2011, 4:43:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2847 r2866 1508 1508 return; 1509 1509 } 1510 if (g_ISO_restore_mode || bkpinfo->backup_media_type == iso 1511 || bkpinfo->backup_media_type == netfs) { 1512 g_ISO_restore_mode = TRUE; 1513 } 1510 1514 malloc_string(tmp); 1511 1515 malloc_string(request); 1512 1516 sprintf(tmp, "mkdir -p " MNT_CDROM); 1513 1517 run_program_and_log_output(tmp, 5); 1514 if (g_ISO_restore_mode || bkpinfo->backup_media_type == iso1515 || bkpinfo->backup_media_type == netfs) {1516 g_ISO_restore_mode = TRUE;1517 if (!is_this_device_mounted(MNT_CDROM)) {1518 log_msg(3, "Mounting media");1519 g_current_media_number = cd_number_i_want;1520 mount_media();1521 }1522 }1523 1518 if ((res = what_number_cd_is_this()) != cd_number_i_want) { 1524 1519 log_msg(3, "Currently, we hold %d but we want %d", res, 1525 1520 cd_number_i_want); 1521 1522 /* Now we need to umount the current media to have the next mounted after */ 1523 run_program_and_log_output("umount " MNT_CDROM, FALSE); 1524 log_msg(3, "Mounting next media %d",cd_number_i_want); 1525 g_current_media_number = cd_number_i_want; 1526 mount_media(); 1527 1526 1528 mds = media_descriptor_string(bkpinfo->backup_media_type); 1527 1529 sprintf(tmp, "Insisting on %s #%d", mds, cd_number_i_want);
Note:
See TracChangeset
for help on using the changeset viewer.