Ignore:
Timestamp:
Feb 23, 2017, 2:05:46 AM (7 years ago)
Author:
Bruno Cornec
Message:

Stop using the word PC and use machines instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-devices.c

    r3648 r3653  
    319319/**
    320320 * 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).
    322322 */
    323323bool does_nonMS_partition_exist(void)
     
    21932193        which_backup_media_type(bkpinfo->restore_data);
    21942194    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");
    21962196        finish(1);
    21972197    }
     
    22452245            }
    22462246            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");
    22482248                finish(1);
    22492249            }
    22502250
    22512251            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");
    22532253                finish(1);
    22542254            }
     
    22682268            if ((bkpinfo->backup_media_type != dvd) && (bkpinfo->backup_media_type != usb)) {
    22692269                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");
    22712271                    mr_free(comment);
    22722272                    finish(1);
     
    22802280            mr_free(mds);
    22812281            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");
    22832283                finish(1);
    22842284            }
     
    22872287
    22882288            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");
    22902290                finish(1);
    22912291            }
     
    23072307                mr_asprintf(comment, "Please specify your %s drive's /dev entry", mds);
    23082308                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");
    23102310                    finish(1);
    23112311                }
     
    23382338                }
    23392339                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");
    23412341                    finish(1);
    23422342                }
     
    23522352        if (!ask_me_yes_or_no
    23532353            ("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");
    23552355            finish(1);
    23562356        }
     
    23842384        if (!bkpinfo->media_device[0]) {
    23852385            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");
    23872387                finish(1);
    23882388            }
     
    23982398        tmp = mr_popup_and_get_string("Tape block size?", "What is the block size of your tape streamer?", sz_size);
    23992399        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");
    24012401            finish(1);
    24022402        }
     
    24092409
    24102410        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");
    24122412            finish(1);
    24132413        }
     
    24252425        if (archiving_to_media) {
    24262426            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");
    24282428                finish(1);
    24292429            }
    24302430            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");
    24322432                finish(1);
    24332433            }
     
    24562456        {
    24572457            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");
    24592459                finish(1);
    24602460            }
     
    24652465            if (!bkpinfo->restore_data) {
    24662466                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");
    24682468                    finish(1);
    24692469                }
    24702470
    24712471                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");
    24732473                    finish(1);
    24742474                }
     
    24972497                mr_free(sz_size);
    24982498                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");
    25002500                    finish(1);
    25012501                }
     
    25092509
    25102510            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");
    25122512                finish(1);
    25132513            }
     
    25212521        strcpy(tmp1, bkpinfo->netfs_proto);
    25222522        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");
    25242524            finish(1);
    25252525        }
     
    25292529        strcpy(tmp1, bkpinfo->netfs_mount);
    25302530        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");
    25322532            finish(1);
    25332533        }
     
    25412541        }
    25422542        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");
    25442544            finish(1);
    25452545        }
     
    26012601        strcpy(tmp1, bkpinfo->netfs_remote_dir);
    26022602        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");
    26042604            finish(1);
    26052605        }
     
    26092609
    26102610        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");
    26122612            finish(1);
    26132613        }
     
    26202620        if (!bkpinfo->disaster_recovery) {
    26212621            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");
    26232623                finish(1);
    26242624            }
    26252625            if (archiving_to_media) {
    26262626                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");
    26282628                    finish(1);
    26292629                }
    26302630                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");
    26322632                    finish(1);
    26332633                }
    26342634                sprintf(tmp1, "%d", DEFAULT_DVD_DISK_SIZE); // 4.7 salesman's GB = 4.482 real GB = 4482 MB
    26352635                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");
    26372637                    finish(1);
    26382638                }
     
    26432643        }
    26442644        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");
    26462646            finish(1);
    26472647        }
     
    26672667#ifdef __FreeBSD__
    26682668            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");
    26702670                finish(1);
    26712671            }
     
    26742674            strcpy(tmp1, bkpinfo->boot_device);
    26752675            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");
    26772677                finish(1);
    26782678            }
     
    27112711        }
    27122712        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");
    27142714            finish(1);
    27152715        }
     
    27272727        if (strlen(tmp1) > 2) {
    27282728            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");
    27302730                finish(1);
    27312731            }
     
    27402740        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);
    27412741        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");
    27432743            finish(1);
    27442744        }
     
    27542754        }
    27552755        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");
    27572757            finish(1);
    27582758        }
     
    27702770        }
    27712771        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");
    27732773            finish(1);
    27742774        }
     
    28312831        if (!ask_me_yes_or_no
    28322832            ("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");
    28342834            finish(1);
    28352835        }
Note: See TracChangeset for help on using the changeset viewer.