Ignore:
Timestamp:
Sep 19, 2007, 9:32:00 AM (17 years ago)
Author:
Bruno Cornec
Message:

Continue to use configuration file data (may not compile)

File:
1 edited

Legend:

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

    r1633 r1638  
    230230    char *archiver_exe = NULL;
    231231    char *compressor_exe = NULL;
     232#ifdef __FreeBSD__
     233    long BUFSIZE=512L;
     234#else
     235    long BUFSIZE=(1024L*1024L)/mr_conf->external_tape_blexternal_tape_blocksize;
     236#endif
     237
    232238
    233239    use_star = (strstr(tarball_fname, ".star")) ? TRUE : FALSE;
     
    271277    }
    272278
    273 #ifdef __FreeBSD__
    274 #define BUFSIZE 512L
    275 #else
    276 #define BUFSIZE (1024L*1024L)/TAPE_BLOCK_SIZE
    277 #endif
    278 
    279279    mr_asprintf(&logfile, "/tmp/afio.log.%d", current_tarball_number);
    280280    if (use_star)               // doesn't use compressor_exe
     
    287287                "%s -r -b %ld -M 16m -c %ld %s %s >> %s 2>> %s",
    288288                archiver_exe,
    289                 TAPE_BLOCK_SIZE,
     289                mr_conf->external_tape_blocksize,
    290290                BUFSIZE, compressor_exe, tarball_fname, logfile, logfile);
    291291    }
    292 #undef BUFSIZE
    293292    mr_free(archiver_exe);
    294293    mr_free(compressor_exe);
Note: See TracChangeset for help on using the changeset viewer.