Changeset 2188


Ignore:
Timestamp:
Apr 30, 2009, 6:01:51 PM (11 years ago)
Author:
Bruno Cornec
Message:

Create a new defind for MAX_MOUNTLIST_ENTRIES and increse MAX_TAPECATALOG_ENTRIES to solve a reported blimit

Location:
branches/2.2.9/mondo/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/mondostructures.h

    r1967 r2188  
    7979   * The list of entries, all @p entries of them.
    8080   */
    81     struct mountlist_line el[MAX_TAPECATALOG_ENTRIES];
     81    struct mountlist_line el[MAX_MOUNTLIST_ENTRIES];
    8282};
    8383
  • branches/2.2.9/mondo/src/include/my-stuff.h

    r2104 r2188  
    117117#define NOOF_ERR_LINES 6        ///< The number of lines of log output to keep at the bottom of the screen.
    118118#define ARBITRARY_MAXIMUM 2000  ///< The maximum number of items showing at once in the mountlist or filelist editor.
    119 #define MAX_TAPECATALOG_ENTRIES 8192    ///< The maximum number of entries in the tape catalog.
     119#define MAX_TAPECATALOG_ENTRIES 16384   ///< The maximum number of entries in the tape catalog.
     120#define MAX_MOUNTLIST_ENTRIES 8192  ///< The maximum number of entries in the mountlist.
    120121#define MAX_STR_LEN 384         ///< The maximum length of almost all @p char buffers in Mondo.
    121122                                        ///  Note: Make this divisible by eight to avoid aligment issues
  • branches/2.2.9/mondo/src/mondorestore/mondo-prep.c

    r2179 r2188  
    25002500    drivemntlist = malloc(sizeof(struct mountlist_reference));
    25012501    drivemntlist->el =
    2502         malloc(sizeof(struct mountlist_line *) * MAX_TAPECATALOG_ENTRIES);
     2502        malloc(sizeof(struct mountlist_line *) * MAX_MOUNTLIST_ENTRIES);
    25032503
    25042504    if (!drivemntlist) {
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c

    r2144 r2188  
    770770
    771771if (!cfgf) {
    772 strcpy(cfg_file, g_mondo_cfg_file);
     772    strcpy(cfg_file, g_mondo_cfg_file);
    773773} else {
    774 strcpy(cfg_file, cfgf);
     774    strcpy(cfg_file, cfgf);
    775775}
    776776
     
    790790    bkpinfo->please_dont_eject = TRUE;
    791791} else if (!strcmp(value, "iso")) {
    792 /*
    793 if (am_I_in_disaster_recovery_mode()
    794 && !run_program_and_log_output("mount /dev/cdrom "MNT_CDROM, 1)
    795 && does_file_exist(MNT_CDROM"/archives/filelist.0"))
    796 */
    797792
    798793// Patch by Conor Daly - 2004/07/12
Note: See TracChangeset for help on using the changeset viewer.