Changeset 1990


Ignore:
Timestamp:
Jun 25, 2008, 2:35:39 AM (11 years ago)
Author:
bruno
Message:
  • Replace a 32kB blocksize fix with the internal blaock size, and adds a call to setblk to try to fix #255, which shouldn't break anything - test to be done
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.7/mondo/src/mondorestore/mondo-rstr-tools.c

    r1987 r1990  
    22182218    char *command;
    22192219    int res = 0;
    2220     // BCO: below 32KB seems to block at least on RHAS 2.1 and MDK 10.0
    2221     long tape_block_size = 32768;
    22222220
    22232221    malloc_string(command);
     
    22252223    if (bkpinfo->use_obdr) {
    22262224        skip_obdr();
    2227     }
    2228     // tar -zxvf-
     2225    } else {
     2226        // BCO: below 32KB seems to block at least on RHAS 2.1 and MDK 10.0
     2227        set_tape_block_size_with_mt(bkpinfo->internal_tape_block_size);
     2228    }
     2229
    22292230    sprintf(command,
    22302231            "dd if=%s bs=%ld count=%ld 2> /dev/null | tar -zx %s %s %s %s %s",
    22312232            dev,
    2232             tape_block_size,
    2233             1024L * 1024 * 32 / tape_block_size,
     2233            bkpinfo->internal_tape_block_size,
     2234            1024L * 1024 * 32 / bkpinfo->internal_tape_block_size,
    22342235            MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB,
    22352236            BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, "./tmp/i-want-my-lvm");
Note: See TracChangeset for help on using the changeset viewer.