VirtualBox

Changeset 64613 in vbox for trunk


Ignore:
Timestamp:
Nov 9, 2016 2:02:31 PM (8 years ago)
Author:
vboxsync
Message:

testbox-maintenance.sh: Reduce the block size so it's below the max pipe size and use iflag=fullblock when reading from the gunzip pipe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/docs/testbox-maintenance.sh

    r64600 r64613  
    3737MY_BACKUP_MNT_TEST_FILE="/mnt/testbox-backup/testbox-backup"
    3838MY_GLOBAL_LOG_FILE="${MY_BACKUP_ROOT}/maintenance.log"
     39MY_DD_BLOCK_SIZE=256K
    3940
    4041MY_IP=""
     
    322323            if test -b "${MY_SRC}"; then
    323324                InfoMsg "Backing up ${MY_SRC} to ${MY_DST}...";
    324                 dd if="${MY_SRC}" bs=2M | gzip -c > "${MY_DST}";
     325                dd if="${MY_SRC}" bs=${MY_DD_BLOCK_SIZE} | gzip -c > "${MY_DST}";
    325326                MY_RCS=("${PIPESTATUS[@]}");
    326327                if test "${MY_RCS[0]}" -eq 0 -a "${MY_RCS[1]}" -eq 0; then
     
    346347                if test -f "${MY_SRC}"; then
    347348                    InfoMsg "Restoring ${MY_SRC} onto ${MY_DST}...";
    348                     gunzip -c "${MY_SRC}" | dd of="${MY_DST}" bs=64K;
     349                    gunzip -c "${MY_SRC}" | dd of="${MY_DST}" bs=${MY_DD_BLOCK_SIZE} iflag=fullblock;
    349350                    MY_RCS=("${PIPESTATUS[@]}");
    350351                    if test ${MY_RCS[0]} -eq 0 -a ${MY_RCS[1]} -eq 0; then
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette