Changeset 1968 in MondoRescue for branches/2.2.6/mondo
- Timestamp:
- May 29, 2008, 7:01:36 PM (17 years ago)
- Location:
- branches/2.2.6/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-devices.c
r1934 r1968 1834 1834 case tape: 1835 1835 1836 if ( find_tape_device_and_size(bkpinfo->media_device, sz_size)) {1836 if ((find_tape_device_and_size(bkpinfo->media_device, sz_size)) && (!bkpinfo->restore_mode)) { 1837 1837 log_msg(3, "Ok, using vanilla scsi tape."); 1838 1838 strcpy(bkpinfo->media_device, VANILLA_SCSI_TAPE); -
branches/2.2.6/mondo/src/common/libmondo-stream.c
r1962 r1968 260 260 char command[MAX_STR_LEN * 2]; 261 261 char cdr_exe[MAX_STR_LEN]; 262 // char tape_description_[MAX_STR_LEN];263 // char tape_manufacturer_cdr[MAX_STR_LEN];264 // FILE*fin;265 262 int res; 266 263 … … 679 676 * @param tapedev The tape device to open for reading. 680 677 */ 681 int skip_obdr( )678 int skip_obdr(void) 682 679 { 683 680 char *command = NULL; … … 704 701 * EXISTING DATA on the tape! 705 702 */ 706 int create_obdr( )703 int create_obdr(void) 707 704 { 708 705 -
branches/2.2.6/mondo/src/mondorestore/mondo-rstr-tools.c
r1967 r1968 169 169 170 170 extern void kill_anything_like_this(char *str); 171 extern int skip_obdr(void); 171 172 172 173 /** … … 1017 1018 log_msg(2, tmp); 1018 1019 } else if (bkpinfo->backup_media_type == tape 1019 1020 || bkpinfo->backup_media_type == udev) { 1020 1021 if (read_cfg_var(cfg_file, "media-dev", value)) { 1021 1022 fatal_error("Cannot get tape device name from cfg file"); … … 1134 1135 } else { 1135 1136 read_cfg_var(g_mondo_cfg_file, "nfs-server-mount", 1136 1137 bkpinfo->nfs_mount); 1137 1138 read_cfg_var(g_mondo_cfg_file, "nfs-server-path", 1138 1139 bkpinfo->nfs_remote_dir); 1139 1140 log_msg(2, "nfs_mount is %s", bkpinfo->nfs_mount); 1140 1141 log_msg(2, "nfs_remote_dir is %s", bkpinfo->nfs_remote_dir); 1141 1142 } 1142 1143 if (strstr(call_program_and_get_last_line_of_output 1143 1144 /* We need to override values in PXE mode as it's 1144 ("cat /proc/cmdline"), "pxe")) { 1145 /* We need to override values in PXE mode as it's 1145 1146 * already done in start-nfs */ 1146 1147 envtmp1 = getenv("nfsmount"); … … 1187 1188 log_it("command = %s", command); 1188 1189 log_it("res of it = %s", 1189 1190 call_program_and_get_last_line_of_output(command)); 1190 1191 sprintf(iso_mnt, "%s", 1191 1192 call_program_and_get_last_line_of_output(command)); … … 1226 1227 get_cfg_file_from_archive(); 1227 1228 /* 1228 1229 if (media_specified_by_user != cdr && media_specified_by_user == cdrw) 1229 1230 { g_restoring_live_from_cd = FALSE; } 1230 1231 */ … … 2218 2219 malloc_string(command); 2219 2220 2221 if (bkpinfo->use_obdr) { 2222 skip_obdr(); 2223 } 2220 2224 // tar -zxvf- 2221 2225 sprintf(command, -
branches/2.2.6/mondo/src/mondorestore/mondorestore.c
r1967 r1968 47 47 48 48 extern int partition_everything(struct mountlist_itself *mountlist); 49 49 extern int handle_incoming_parameters(int argc, char *argv[]); 50 50 51 51 /** … … 268 268 c = which_restore_mode(); 269 269 iamhere("post wrm"); 270 if (c == 'I' || c == ' N' || c == 'C') {270 if (c == 'I' || c == 'C') { 271 271 interactively_obtain_media_parameters_from_user(FALSE); 272 272 } else { … … 433 433 } 434 434 } 435 435 436 436 #ifdef __FreeBSD__ 437 437 if (strstr
Note:
See TracChangeset
for help on using the changeset viewer.