opennebula-4.12.0-fixdownloader-2exitcorrectly.diff

Roy Keene, 03/30/2015 06:41 PM

Download (2.08 KB)

View differences:

opennebula-4.12.0-fixdownloader-2exitcorrectly/src/datastore_mad/remotes/ceph/cp 2015-03-30 13:24:06.718254002 -0500
123 123
    ;;
124 124
esac
125 125

  
126
exec_and_log "eval $DUMP | $SSH $DST_HOST $DD of=$TMP_DST bs=64k" \
126
exec_and_log "set -o pipefail; eval $DUMP | $SSH $DST_HOST $DD of=$TMP_DST bs=64k" \
127 127
             "Error dumping $SRC to $DST_HOST:$TMP_DST"
128 128

  
129 129
if [ "$RBD_FORMAT" = "2" ]; then
opennebula-4.12.0-fixdownloader-2exitcorrectly/src/datastore_mad/remotes/fs/cp 2015-03-30 13:24:32.708253312 -0500
100 100
    DST_HOST=`get_destination_host $ID`
101 101
    TMP_DST="$STAGING_DIR/$IMAGE_HASH"
102 102

  
103
    exec_and_log "eval $COPY_COMMAND | $SSH $DST_HOST $DD of=$TMP_DST bs=64k" \
103
    exec_and_log "set -o pipefail; eval $COPY_COMMAND | $SSH $DST_HOST $DD of=$TMP_DST bs=64k" \
104 104
                 "Error dumping $SRC to $DST_HOST:$TMP_DST"
105 105

  
106 106
    ssh_exec_and_log    "$DST_HOST" "mkdir -p $BASE_PATH; mv -f $TMP_DST $DST" \
opennebula-4.12.0-fixdownloader-2exitcorrectly/src/datastore_mad/remotes/lvm/cp 2015-03-30 13:25:00.224252582 -0500
117 117

  
118 118
ssh_exec_and_log "$DST_HOST" "$REGISTER_CMD" "Error registering $DST_HOST:$DEV"
119 119

  
120
exec_and_log "eval $DUMP | $SSH $DST_HOST $SUDO $DD of=$DEV bs=64k" \
120
exec_and_log "set -o pipefail; eval $DUMP | $SSH $DST_HOST $SUDO $DD of=$DEV bs=64k" \
121 121
    "Error dumping $SRC to $DST_HOST:$DEV"
122 122

  
123 123
echo "$LVM_SOURCE"