Changeset 3890 in MondoRescue


Ignore:
Timestamp:
Mar 10, 2024, 8:34:19 PM (3 months ago)
Author:
Bruno Cornec
Message:

Use a bkpinfo boolean to manage the automatic recovery mode

Location:
branches/3.3/mondo/src/common
Files:
4 edited

Legend:

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

    r3889 r3890  
    7474extern FILE *g_tape_stream;
    7575extern long long g_tape_posK;
    76 extern bool g_cd_recovery;
    7776extern char *g_mondo_home;
    7877
     
    26432642
    26442643    mr_asprintf(broken_bios_sz, "yes"); /* assume so */
    2645     if (g_cd_recovery) {
     2644
     2645    if (pkbpinfo->auto_recovery) {
    26462646        mr_asprintf(cd_recovery_sz, "yes");
    26472647    } else {
  • branches/3.3/mondo/src/common/libmondo-cli.c

    r3888 r3890  
    4141bool g_debugging = FALSE;       ///< ????? @bug ????? @ingroup globalGroup
    4242bool g_running_live = FALSE;    ///< ????? @bug ????? @ingroup globalGroup
    43 extern bool g_cd_recovery;
    4443
    4544extern void setup_tmpdir(char *path);
     
    760759
    761760    if ((flag_set['H']) && (! bkpinfo->restore_data)) {
    762         g_cd_recovery = TRUE;
     761        bkpinfo->auto_recovery = TRUE;
     762    } else {
     763        bkpinfo->auto_recovery = FALSE;
    763764    }
    764765
  • branches/3.3/mondo/src/common/libmondo-tools.c

    r3889 r3890  
    4343 */
    4444bool g_remount_cdrom_at_end;    ///< TRUE if we unmounted the CD-ROM and should remount it when done with the backup.
    45 bool g_cd_recovery = FALSE;             ///< TRUE if we're making an "autonuke" backup.
    4645double g_kernel_version;
    4746
  • branches/3.3/mondo/src/common/mondostructures.h

    r3889 r3890  
    618618
    619619  /**
    620    * If TRUE, make the the tape bootable. If FALSE, normal tape, the default
     620   * If TRUE, make the tape bootable. If FALSE, normal tape, the default
    621621   */
    622622    bool use_obdr;
     623
     624  /**
     625   * If TRUE, make the media recovering fully automatically. If FALSE, normal recovery, the default
     626   */
     627    bool auto_recovery;
    623628
    624629  /**
Note: See TracChangeset for help on using the changeset viewer.