Changeset 3056 in MondoRescue


Ignore:
Timestamp:
Oct 31, 2012, 4:27:15 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Add option -sparse to all star calls to add support of sparse file in case of star usage, as afio sparse file support seems broken
Location:
branches/3.0/mondo/src
Files:
4 edited

Legend:

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

    r2985 r3056  
    213213    paranoid_free(tmp);
    214214
    215     mr_asprintf(&command, "star H=exustar list=%s -c " STAR_ACL_SZ " file=%s",
     215    mr_asprintf(&command, "star H=exustar list=%s -c -sparse " STAR_ACL_SZ " file=%s",
    216216            filelist, fname);
    217217    if (bkpinfo->use_lzo) {
  • branches/3.0/mondo/src/common/libmondo-verify.c

    r2878 r3056  
    494494        if (strstr(tarball_fname, ".bz2"))
    495495            sprintf(command,
    496                     "star -diff diffopts=mode,size,data file=%s %s >> %s 2>> %s",
     496                    "star -sparse -diff diffopts=mode,size,data file=%s %s >> %s 2>> %s",
    497497                    tarball_fname,
    498498                    (strstr(tarball_fname, ".bz2")) ? "-bz" : " ", outlog,
  • branches/3.0/mondo/src/mondorestore/mondo-rstr-compare.c

    r2419 r3056  
    312312    {
    313313        sprintf(command,
    314                 "%s -diff H=exustar file=%s >> %s 2>> %s",
     314                "%s -sparse -diff H=exustar file=%s >> %s 2>> %s",
    315315                archiver_exe, tarball_fname, logfile, logfile);
    316316    } else {
  • branches/3.0/mondo/src/mondorestore/mondorestore.c

    r3017 r3056  
    17721772//      if (strstr(tarball_fname, ".star."))
    17731773        if (use_star) {
    1774             mr_asprintf(&command, "star -x -force-remove -U " STAR_ACL_SZ " errctl= file=%s", tarball_fname);
     1774            mr_asprintf(&command, "star -x -force-remove -sparse -U " STAR_ACL_SZ " errctl= file=%s", tarball_fname);
    17751775            if (strstr(tarball_fname, ".bz2")) {
    17761776                mr_strcat(command, " -bz");
     
    19601960        if (strstr(tarball_fname, ".star.")) {
    19611961            use_star = TRUE;
    1962             sprintf(command, "star -t file=%s %s", afio_fname, executable);
     1962            sprintf(command, "star -sparse -t file=%s %s", afio_fname, executable);
    19631963        } else {
    19641964            use_star = FALSE;
     
    19951995    if (strstr(tarball_fname, ".star."))    // star
    19961996    {
    1997         sprintf(command, "star -x file=%s %s", afio_fname, executable);
     1997        sprintf(command, "star -sparse -x file=%s %s", afio_fname, executable);
    19981998        if (filelist) {
    19991999            sprintf(command + strlen(command), " list=%s",
Note: See TracChangeset for help on using the changeset viewer.