Ignore:
Timestamp:
Apr 12, 2010, 3:23:24 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3783@localhost: bruno | 2010-04-11 11:57:27 +0200

  • Use MINDI_CACHE for temp file communication between archive/restore
  • Remove some now useless globals in mondo
  • Remove function get_cfg_file_from_archive_or_bust and get_cfg_file_from_archive
  • Adds function get_cfg_file_from_initrd (Not finished)
  • Recovery doesn't work in that version atm (checkpoint version)
File:
1 edited

Legend:

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

    r2603 r2623  
    3535//static char cvsid[] = "$Id$";
    3636
    37 extern char *g_mountlist_fname;
    3837extern long g_current_progress, g_maximum_progress;
    3938
     
    7271// then zero & insist on reboot.
    7372    buf = malloc(blocksize);
    74     if (does_file_exist("/tmp/i-want-my-lvm"))  // FIXME - cheating :)
     73    if (does_file_exist(MINDI_CACHE"/i-want-my-lvm"))   // FIXME - cheating :)
    7574    {
    7675        drivelist = malloc(sizeof(struct list_of_disks));
     
    172171 */
    173172/**
    174  * Execute the commands in /tmp/i-want-my-lvm.
     173 * Execute the commands in MINDI_CACHE"i-want-my-lvm.
    175174 * These should probably be commands to set up LVM.
    176175 * @return The number of errors encountered (0 for success).
     
    221220    mr_free(tmp);
    222221
    223     if (!(fin = fopen("/tmp/i-want-my-lvm", "r"))) {
    224         log_OS_error("/tmp/i-want-my-lvm");
     222    if (!(fin = fopen(MINDI_CACHE"/i-want-my-lvm", "r"))) {
     223        log_OS_error(MINDI_CACHE"/i-want-my-lvm");
    225224        return (1);
    226225    }
     
    937936// do LVMs now
    938937    log_msg(1, "Creating LVMs");
    939     if (does_file_exist("/tmp/i-want-my-lvm")) {
     938    if (does_file_exist(MINDI_CACHE"/i-want-my-lvm")) {
    940939        wait_until_software_raids_are_prepped("/proc/mdstat", 100);
    941940        log_to_screen("Configuring LVM");
     
    18611860    log_msg(0, "Done.");
    18621861
    1863 /* 
    1864     if (does_file_exist("/tmp/i-want-my-lvm"))
    1865       {
    1866         wipe_MBRs_and_reboot_if_necessary(mountlist); // i.e. if it wasn't done recently
    1867       }
    1868 */
    1869 
    18701862    open_progress_form("Partitioning devices",
    18711863                       "I am now going to partition all your drives.",
     
    24252417    assert(mountlist != NULL);
    24262418
    2427     if (g_mountlist_fname[0] == '\0') {
    2428         log_it
    2429             ("resize_mountlist_prop...() - warning - mountlist fname is blank");
    2430         log_it("That does NOT affect the functioning of this subroutine.");
    2431         log_it("--- Hugo, 2002/11/20");
    2432     }
    24332419    log_it("Resizing mountlist");
    24342420    make_list_of_drives_in_mountlist(mountlist, drivelist);
Note: See TracChangeset for help on using the changeset viewer.