Changeset 3653 in MondoRescue for branches/3.3/mondo/src/common/libmondo-devices.c
- Timestamp:
- Feb 23, 2017, 2:05:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-devices.c
r3648 r3653 319 319 /** 320 320 * Determine whether a non-Microsoft partition exists on any connected hard drive. 321 * @return TRUE (there's a Linux/FreeBSD partition) or FALSE (Microsoft has taken over yet another innocent PC).321 * @return TRUE (there's a Linux/FreeBSD partition) or FALSE (Microsoft has taken over yet another innocent machine). 322 322 */ 323 323 bool does_nonMS_partition_exist(void) … … 2193 2193 which_backup_media_type(bkpinfo->restore_data); 2194 2194 if (bkpinfo->backup_media_type == none) { 2195 log_to_screen("User has chosen not to backup the PC");2195 log_to_screen("User has chosen not to backup the machine"); 2196 2196 finish(1); 2197 2197 } … … 2245 2245 } 2246 2246 if ((compression_type = which_compression_type()) == NULL) { 2247 log_to_screen("User has chosen not to backup the PC");2247 log_to_screen("User has chosen not to backup the machine"); 2248 2248 finish(1); 2249 2249 } 2250 2250 2251 2251 if ((bkpinfo->compression_level = which_compression_level()) == -1) { 2252 log_to_screen("User has chosen not to backup the PC");2252 log_to_screen("User has chosen not to backup the machine"); 2253 2253 finish(1); 2254 2254 } … … 2268 2268 if ((bkpinfo->backup_media_type != dvd) && (bkpinfo->backup_media_type != usb)) { 2269 2269 if (!popup_and_get_string("Speed", comment, tmp1, 4)) { 2270 log_to_screen("User has chosen not to backup the PC");2270 log_to_screen("User has chosen not to backup the machine"); 2271 2271 mr_free(comment); 2272 2272 finish(1); … … 2280 2280 mr_free(mds); 2281 2281 if (!popup_and_get_string("Size", comment, tmp1, 5)) { 2282 log_to_screen("User has chosen not to backup the PC");2282 log_to_screen("User has chosen not to backup the machine"); 2283 2283 finish(1); 2284 2284 } … … 2287 2287 2288 2288 if (bkpinfo->media_size <= 0) { 2289 log_to_screen("User has chosen not to backup the PC");2289 log_to_screen("User has chosen not to backup the machine"); 2290 2290 finish(1); 2291 2291 } … … 2307 2307 mr_asprintf(comment, "Please specify your %s drive's /dev entry", mds); 2308 2308 if (!popup_and_get_string("Device?", comment, bkpinfo->media_device, MAX_STR_LEN / 4)) { 2309 log_to_screen("User has chosen not to backup the PC");2309 log_to_screen("User has chosen not to backup the machine"); 2310 2310 finish(1); 2311 2311 } … … 2338 2338 } 2339 2339 if (!i) { 2340 log_to_screen("User has chosen not to backup the PC");2340 log_to_screen("User has chosen not to backup the machine"); 2341 2341 finish(1); 2342 2342 } … … 2352 2352 if (!ask_me_yes_or_no 2353 2353 ("This option is for advanced users only. Are you sure?")) { 2354 log_to_screen("User has chosen not to backup the PC");2354 log_to_screen("User has chosen not to backup the machine"); 2355 2355 finish(1); 2356 2356 } … … 2384 2384 if (!bkpinfo->media_device[0]) { 2385 2385 if (!popup_and_get_string("Device name?", "What is the /dev entry of your tape streamer?", bkpinfo->media_device, MAX_STR_LEN / 4)) { 2386 log_to_screen("User has chosen not to backup the PC");2386 log_to_screen("User has chosen not to backup the machine"); 2387 2387 finish(1); 2388 2388 } … … 2398 2398 tmp = mr_popup_and_get_string("Tape block size?", "What is the block size of your tape streamer?", sz_size); 2399 2399 if (tmp == NULL) { 2400 log_to_screen("User has chosen not to backup the PC");2400 log_to_screen("User has chosen not to backup the machine"); 2401 2401 finish(1); 2402 2402 } … … 2409 2409 2410 2410 if (bkpinfo->internal_tape_block_size <= 0) { 2411 log_to_screen("User has chosen not to backup the PC");2411 log_to_screen("User has chosen not to backup the machine"); 2412 2412 finish(1); 2413 2413 } … … 2425 2425 if (archiving_to_media) { 2426 2426 if ((compression_type = which_compression_type()) == NULL) { 2427 log_to_screen("User has chosen not to backup the PC");2427 log_to_screen("User has chosen not to backup the machine"); 2428 2428 finish(1); 2429 2429 } 2430 2430 if ((bkpinfo->compression_level = which_compression_level()) == -1) { 2431 log_to_screen("User has chosen not to backup the PC");2431 log_to_screen("User has chosen not to backup the machine"); 2432 2432 finish(1); 2433 2433 } … … 2456 2456 { 2457 2457 if (!popup_and_get_string("Network shared dir.", "Please enter path and directory where archives are stored remotely. (Mondo has taken a guess at the correct value. If it is incorrect, delete it and type the correct one.)", p, MAX_STR_LEN / 4)) { 2458 log_to_screen("User has chosen not to backup the PC");2458 log_to_screen("User has chosen not to backup the machine"); 2459 2459 finish(1); 2460 2460 } … … 2465 2465 if (!bkpinfo->restore_data) { 2466 2466 if ((compression_type = which_compression_type()) == NULL) { 2467 log_to_screen("User has chosen not to backup the PC");2467 log_to_screen("User has chosen not to backup the machine"); 2468 2468 finish(1); 2469 2469 } 2470 2470 2471 2471 if ((bkpinfo->compression_level = which_compression_level()) == -1) { 2472 log_to_screen("User has chosen not to backup the PC");2472 log_to_screen("User has chosen not to backup the machine"); 2473 2473 finish(1); 2474 2474 } … … 2497 2497 mr_free(sz_size); 2498 2498 if (!popup_and_get_string("Size", comment, tmp1, 5)) { 2499 log_to_screen("User has chosen not to backup the PC");2499 log_to_screen("User has chosen not to backup the machine"); 2500 2500 finish(1); 2501 2501 } … … 2509 2509 2510 2510 if (bkpinfo->media_size < 0) { 2511 log_to_screen("User has chosen not to backup the PC");2511 log_to_screen("User has chosen not to backup the machine"); 2512 2512 finish(1); 2513 2513 } … … 2521 2521 strcpy(tmp1, bkpinfo->netfs_proto); 2522 2522 if (!popup_and_get_string("Network protocol", "Which protocol should I use (nfs/sshfs/smbfs) ?",tmp1, MAX_STR_LEN)) { 2523 log_to_screen("User has chosen not to backup the PC");2523 log_to_screen("User has chosen not to backup the machine"); 2524 2524 finish(1); 2525 2525 } … … 2529 2529 strcpy(tmp1, bkpinfo->netfs_mount); 2530 2530 if (!popup_and_get_string("Network share", "Which remote share should I mount?", tmp1, MAX_STR_LEN)) { 2531 log_to_screen("User has chosen not to backup the PC");2531 log_to_screen("User has chosen not to backup the machine"); 2532 2532 finish(1); 2533 2533 } … … 2541 2541 } 2542 2542 if (!popup_and_get_string("Network user", "Which user should I use if any ?",tmp1, MAX_STR_LEN)) { 2543 log_to_screen("User has chosen not to backup the PC");2543 log_to_screen("User has chosen not to backup the machine"); 2544 2544 finish(1); 2545 2545 } … … 2601 2601 strcpy(tmp1, bkpinfo->netfs_remote_dir); 2602 2602 if (!popup_and_get_string ("Directory", "Which directory within that mountpoint?", tmp1, MAX_STR_LEN)) { 2603 log_to_screen("User has chosen not to backup the PC");2603 log_to_screen("User has chosen not to backup the machine"); 2604 2604 finish(1); 2605 2605 } … … 2609 2609 2610 2610 if (!popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix, MAX_STR_LEN / 4)) { 2611 log_to_screen("User has chosen not to backup the PC");2611 log_to_screen("User has chosen not to backup the machine"); 2612 2612 finish(1); 2613 2613 } … … 2620 2620 if (!bkpinfo->disaster_recovery) { 2621 2621 if (!popup_and_get_string("Storage dir.", "Please enter the full path name to the directory for your ISO images. Example: /mnt/raid0_0", bkpinfo->isodir, MAX_STR_LEN / 4)) { 2622 log_to_screen("User has chosen not to backup the PC");2622 log_to_screen("User has chosen not to backup the machine"); 2623 2623 finish(1); 2624 2624 } 2625 2625 if (archiving_to_media) { 2626 2626 if ((compression_type = which_compression_type()) == NULL) { 2627 log_to_screen("User has chosen not to backup the PC");2627 log_to_screen("User has chosen not to backup the machine"); 2628 2628 finish(1); 2629 2629 } 2630 2630 if ((bkpinfo->compression_level = which_compression_level()) == -1) { 2631 log_to_screen("User has chosen not to backup the PC");2631 log_to_screen("User has chosen not to backup the machine"); 2632 2632 finish(1); 2633 2633 } 2634 2634 sprintf(tmp1, "%d", DEFAULT_DVD_DISK_SIZE); // 4.7 salesman's GB = 4.482 real GB = 4482 MB 2635 2635 if (!popup_and_get_string("ISO size.", "Please enter how big you want each ISO image to be (in megabytes). This should be less than or equal to the size of the CD-R[W]'s (700) or DVD's (4480) you plan to backup to.", tmp1, 16)) { 2636 log_to_screen("User has chosen not to backup the PC");2636 log_to_screen("User has chosen not to backup the machine"); 2637 2637 finish(1); 2638 2638 } … … 2643 2643 } 2644 2644 if (!popup_and_get_string("Prefix.", "Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files", bkpinfo->prefix, MAX_STR_LEN / 4)) { 2645 log_to_screen("User has chosen not to backup the PC");2645 log_to_screen("User has chosen not to backup the machine"); 2646 2646 finish(1); 2647 2647 } … … 2667 2667 #ifdef __FreeBSD__ 2668 2668 if (!popup_and_get_string("Boot device", "What is your boot device? (e.g. /dev/ad0)", bkpinfo->boot_device, MAX_STR_LEN / 4)) { 2669 log_to_screen("User has chosen not to backup the PC");2669 log_to_screen("User has chosen not to backup the machine"); 2670 2670 finish(1); 2671 2671 } … … 2674 2674 strcpy(tmp1, bkpinfo->boot_device); 2675 2675 if (!popup_and_get_string("Boot device", "What is your boot device? (e.g. /dev/hda)", tmp1, MAX_STR_LEN / 4)) { 2676 log_to_screen("User has chosen not to backup the PC");2676 log_to_screen("User has chosen not to backup the machine"); 2677 2677 finish(1); 2678 2678 } … … 2711 2711 } 2712 2712 if (!popup_and_get_string("Backup paths", "Please enter paths (separated by '|') which you want me to backup. The default is '/' (i.e. everything).", tmp1, MAX_STR_LEN)) { 2713 log_to_screen("User has chosen not to backup the PC");2713 log_to_screen("User has chosen not to backup the machine"); 2714 2714 finish(1); 2715 2715 } … … 2727 2727 if (strlen(tmp1) > 2) { 2728 2728 if (!popup_and_get_string("NTFS partitions", "Please enter/confirm the NTFS partitions you wish to backup as well.", tmp1, MAX_STR_LEN / 4)) { 2729 log_to_screen("User has chosen not to backup the PC");2729 log_to_screen("User has chosen not to backup the machine"); 2730 2730 finish(1); 2731 2731 } … … 2740 2740 popup_and_get_string("Exclude paths", "Please enter paths which you do NOT want to backup. Separate them with '|'. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup.", p, (16*MAX_STR_LEN)-1); 2741 2741 if (p == NULL) { 2742 log_to_screen("User has chosen not to backup the PC");2742 log_to_screen("User has chosen not to backup the machine"); 2743 2743 finish(1); 2744 2744 } … … 2754 2754 } 2755 2755 if (!popup_and_get_string("Temporary directory", "Please enter your temporary directory.", p, (4*MAX_STR_LEN)-1)) { 2756 log_to_screen("User has chosen not to backup the PC");2756 log_to_screen("User has chosen not to backup the machine"); 2757 2757 finish(1); 2758 2758 } … … 2770 2770 } 2771 2771 if (!popup_and_get_string("Scratch directory", "Please enter your scratch directory.", p, (4*MAX_STR_LEN)-1)) { 2772 log_to_screen("User has chosen not to backup the PC");2772 log_to_screen("User has chosen not to backup the machine"); 2773 2773 finish(1); 2774 2774 } … … 2831 2831 if (!ask_me_yes_or_no 2832 2832 ("Are you sure you want to proceed? Hit 'no' to abort.")) { 2833 log_to_screen("User has chosen not to backup the PC");2833 log_to_screen("User has chosen not to backup the machine"); 2834 2834 finish(1); 2835 2835 }
Note:
See TracChangeset
for help on using the changeset viewer.