Ignore:
Timestamp:
Mar 12, 2007, 12:23:16 AM (17 years ago)
Author:
Bruno Cornec
Message:

Port from stable important patches for 2.2.2:
mindi-busybox:

  • Improve Gentoo packaging

mindi:

  • Better messages for analyze-my-lvm
  • Add support for newer Qlogic drivers (qla2300 & 2400), mpt, dm and ohci
  • Fix a bug in mindi for the FAILSAFE support
  • PATH fixed for init in restore (/usr/games added for petris)
  • Fiw a bug where restore failing because no archive files are found when -G is used
  • /media is now completely excluded as per StandardsCompliance

mondo:

  • Handle no compression + verify correctly
  • various HOWTO fixes
  • Fix temporarily a bug when a biggiefile > 32MB was compressed below the size

of a slice (16MB)

  • Better module loading in insmod_crucial_modules
  • Improve Gentoo packaging
  • Small typo fix for mondorestore man page
  • Small memory management improvements
  • Store NFS config only once
  • Fix a flaw in libmondo-mountlist.c (there since rev [1] !!)
  • Increased MAX_STR_LEN to 384 to make it divisible without remainder by eight

for 64 bits platforms

  • Fix a bug where no bzip2 format file would be found when supporting gzip
  • CentOS fixes
File:
1 edited

Legend:

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

    r998 r1236  
    25882588    assert(bkpinfo != NULL);
    25892589    /* slice big files */
    2590     malloc_string(blah);
    25912590    malloc_string(biggielist);
    25922591    malloc_string(xattr_fname);
    25932592    malloc_string(acl_fname);
    2594     command = malloc(1200);
    25952593    mvaddstr_and_log_it(g_currentY, 0,
    25962594                        "Archiving large files to media           ");
     
    26032601    }
    26042602
    2605     sprintf(command, "cp %s/biggielist.txt %s", bkpinfo->tmpdir,
     2603    asprintf(&command, "cp %s/biggielist.txt %s", bkpinfo->tmpdir,
    26062604            biggielist);
    26072605    paranoid_system(command);
    2608     sprintf(blah, "biggielist = %s", biggielist);
     2606    paranoid_free(command);
     2607
     2608    asprintf(&blah, "biggielist = %s", biggielist);
    26092609    log_msg(2, blah);
     2610    paranoid_free(blah);
    26102611
    26112612    if (!does_file_exist(biggielist)) {
     
    26152616    if (g_getfattr) {
    26162617        get_fattr_list(biggielist, xattr_fname);
    2617         sprintf(command, "cp %s %s/archives/", xattr_fname,
     2618        asprintf(&command, "cp %s %s/archives/", xattr_fname,
    26182619            bkpinfo->scratchdir);
    26192620        paranoid_system(command);
     2621        paranoid_free(command);
    26202622    }
    26212623    if (g_getfacl) {
    26222624        get_acl_list(biggielist, acl_fname);
    2623         sprintf(command, "cp %s %s/archives/", acl_fname, bkpinfo->scratchdir);
     2625        asprintf(&command, "cp %s %s/archives/", acl_fname,
     2626             bkpinfo->scratchdir);
    26242627        paranoid_system(command);
     2628        paranoid_free(command);
    26252629    }
    26262630
    26272631    if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    26282632        res += write_EXAT_files_to_tape(bkpinfo, xattr_fname, acl_fname);
    2629         sprintf(blah, "%ld", count_lines_in_file(biggielist));
     2633        asprintf(&blah, "%ld", count_lines_in_file(biggielist));
    26302634        write_header_block_to_stream((off_t)0, blah, BLK_START_BIGGIEFILES);
     2635        paranoid_free(blah);
    26312636    }
    26322637    res = make_slices_and_images(bkpinfo, biggielist);
     
    26492654    return (retval);
    26502655}
    2651 
    26522656
    26532657
     
    34743478    strcpy(tmp, slice_fname(biggie_file_number, 0, bkpinfo->tmpdir, ""));
    34753479    fout = fopen(tmp, "w");
     3480    if (fout == NULL) {
     3481        mr_msg(1, "Unable to open and write to %s\n", tmp);
     3482        paranoid_free(tmp);
     3483        paranoid_free(suffix);
     3484        return (1);
     3485    }
     3486
    34763487    (void) fwrite((void *) &biggiestruct, 1, sizeof(biggiestruct), fout);
    34773488    paranoid_fclose(fout);
Note: See TracChangeset for help on using the changeset viewer.