Ignore:
Timestamp:
Aug 28, 2009, 2:41:30 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Replacement of some fgets by mr_getline to allow for dyn. memory management.
  • Backport of SElinux fix from 2.2.9
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c

    r2338 r2351  
    298298
    299299    mr_strcat(mount_isodir_command, " -o ro %s", bkpinfo->isodir);
    300     run_program_and_log_output("df -m", FALSE);
    301     log_msg(1,
    302         "The 'mount' command is '%s'. PLEASE report this command to be if you have problems, ok?",
    303         mount_isodir_command);
     300    run_program_and_log_output("df -m -P", FALSE);
     301    log_msg(1, "The 'mount' command is '%s'. PLEASE report this command to be if you have problems, ok?", mount_isodir_command);
    304302    if (run_program_and_log_output(mount_isodir_command, FALSE)) {
    305303        popup_and_OK
     
    472470 * @return The number of errors encountered (0 for success).
    473471 */
    474 int mount_all_devices(struct mountlist_itself
    475                       *p_external_copy_of_mountlist, bool writeable)
     472int mount_all_devices(struct mountlist_itself *p_external_copy_of_mountlist, bool writeable)
    476473{
    477474int retval = 0, lino, res;
     
    488485
    489486    mvaddstr_and_log_it(g_currentY, 0, "Mounting devices         ");
    490     open_progress_form("Mounting devices",
    491                "I am now mounting all the drives.",
    492                "This should not take long.",
    493                "", mountlist->entries);
     487    open_progress_form("Mounting devices", "I am now mounting all the drives.", "This should not take long.", "", mountlist->entries);
    494488
    495489    mr_asprintf(these_failed, "");
    496490    for (lino = 0; lino < mountlist->entries; lino++) {
    497491        if (!strcmp(mountlist->el[lino].device, "/proc")) {
    498             log_msg(1,
    499                 "Again with the /proc - why is this in your mountlist?");
     492            log_msg(1, "Again with the /proc - why is this in your mountlist?");
    500493        } else if (is_this_device_mounted(mountlist->el[lino].device)) {
    501494            log_to_screen("%s is already mounted", mountlist->el[lino].device);
     
    519512    if (retval) {
    520513        if (g_partition_table_locked_up > 0) {
    521             log_to_screen
    522                 ("fdisk's ictol() call to refresh its copy of the partition table causes the kernel to");
    523             log_to_screen
    524                 ("lock up the partition table. You might have to reboot and use Interactive Mode to");
    525             log_to_screen
    526                 ("format and restore *without* partitioning first. Sorry for the inconvenience.");
     514            log_to_screen("fdisk's ictol() call to refresh its copy of the partition table causes the kernel to");
     515            log_to_screen("lock up the partition table. You might have to reboot and use Interactive Mode to");
     516            log_to_screen("format and restore *without* partitioning first. Sorry for the inconvenience.");
    527517        }
    528518        mr_asprintf(tmp, "Could not mount device(s) %s- shall I abort?", these_failed);
     
    530520        if (!ask_me_yes_or_no(tmp)) {
    531521            retval = 0;
    532             log_to_screen
    533                 ("Continuing, although some device(s) failed to be mounted");
     522            log_to_screen("Continuing, although some device(s) failed to be mounted");
    534523            mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    535524        } else {
    536525            mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
    537             log_to_screen
    538         ("Unable to mount some or all of your partitions.");
     526            log_to_screen("Unable to mount some or all of your partitions.");
    539527        }
    540528        mr_free(tmp);
     
    548536    (void)mount_device("/proc","/proc","proc",TRUE);
    549537    (void)mount_device("/sys","/sys","sysfs",TRUE);
    550     run_program_and_log_output("df -m", 3);
     538    run_program_and_log_output("df -m -P", 3);
    551539    paranoid_free(mountlist);
    552540    return (retval);
     
    20362024    sort_mountlist_by_mountpoint(mountlist, 0);
    20372025
    2038     run_program_and_log_output("df -m", 3);
     2026    run_program_and_log_output("df -m -P", 3);
    20392027    mvaddstr_and_log_it(g_currentY, 0, "Unmounting devices      ");
    20402028    open_progress_form("Unmounting devices",
Note: See TracChangeset for help on using the changeset viewer.