cp.patch
/var/lib/one/remotes/datastore/fs/cp 2017-10-19 13:16:38.298834879 +0000 | ||
---|---|---|
103 | 103 |
DOWNLOADER_ARGS=`set_downloader_args "$MD5" "$SHA1" "$NO_DECOMPRESS" "$LIMIT_TRANSFER_BW" "$SRC" "$DST"` |
104 | 104 |
fi |
105 | 105 | |
106 |
COPY_COMMAND="$UTILS_PATH/downloader.sh $DOWNLOADER_ARGS"
|
|
106 |
COPY_COMMAND="/var/tmp/one/datastore/downloader.sh $DOWNLOADER_ARGS"
|
|
107 | 107 | |
108 | 108 |
if echo "$SRC" | grep -vq '^https\?://'; then |
109 | 109 |
if [ `check_restricted $SRC` -eq 1 ]; then |
... | ... | |
134 | 134 |
DST_HOST=`get_destination_host $ID` |
135 | 135 |
TMP_DST="$STAGING_DIR/$IMAGE_HASH" |
136 | 136 | |
137 |
exec_and_log "eval $COPY_COMMAND | $SSH $DST_HOST $DD of=$TMP_DST bs=64k" \
|
|
137 |
ssh_exec_and_log "$DST_HOST" "$COPY_COMMAND | $DD of=$TMP_DST bs=64k" \
|
|
138 | 138 |
"Error dumping $SRC to $DST_HOST:$TMP_DST" |
139 | 139 | |
140 | 140 |
ssh_exec_and_log "$DST_HOST" "mkdir -p $BASE_PATH; mv -f $TMP_DST $DST" \ |