Ignore:
Timestamp:
Feb 2, 2007, 11:31:00 PM (17 years ago)
Author:
Bruno Cornec
Message:

WARNING: Not tested yet ! Will be stabilized in next hours.
this patch changes the interface between mindi and mondo.
Everything is now managed through either MONDO_CACHE/mondo-restore.cfg
and MONDO_CACHE/mindi.conf (an additional configuration file)
This removes all the one line files NFS-*, ... that where used
in an anarchic way. Now everything computed by mondo is
under mondo-restore.cfg and everything related to mindi in mindi.conf

Still needed are the removal of the 2 parameters to mindi,
but that will be done after when a clear line is drawn between
where files are put by each tool.

MONDO_TMP and MINDI_TMP should be reserved for temporary files
MONDO_CACHE and MINDI_CACHE for end results and communication
between tools.
These changes were made in order to prepare the USB support in mondo

A first step in the right direction, but still some work to do
before it's working again.
Testers please be warned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c

    r1080 r1087  
    55#include "mr_mem.h"
    66
     7extern char *g_mondo_cfg_file;  // where m*ndo-restore.cfg (the config file) is stored
    78
    89/**
     
    22652266                char *isodir_path, bool nuke_me_please)
    22662267{
     2268    char *value = NULL;
    22672269
    22682270    /** initialize ********************************************************/
     2271    malloc_string(value);
    22692272
    22702273    assert(isodir_device != NULL);
     
    22722275    assert(isodir_path != NULL);
    22732276
    2274     log_it("%d - AAA - isodir_path = %s", isodir_path);
     2277    log_it("%d - AAA - isodir_path = %s", __LINE__, isodir_path);
    22752278    isodir_format[0] = '\0';
    22762279    if (isodir_device[0] == '\0') {
     
    22802283        strcpy(isodir_path, "/");
    22812284    }
    2282     if (does_file_exist("/tmp/NFS-SERVER-PATH")) {
    2283         strcpy(isodir_device, last_line_of_file("/tmp/NFS-SERVER-MOUNT"));
     2285    if (read_cfg_var(g_mondo_cfg_file, "nfs-server-path", value) == 0) {
     2286        read_cfg_var(g_mondo_cfg_file, "nfs-server-mount", isodir_device);
    22842287        strcpy(isodir_format, "nfs");
    2285         strcpy(isodir_path, last_line_of_file("/tmp/NFS-SERVER-PATH"));
    2286     }
     2288        strcpy(isodir_path, value);
     2289    }
     2290    mr_free(value);
     2291
    22872292    if (nuke_me_please) {
    22882293        return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.