Permalink
Browse files

add a envvar that can be used to set ionice, etc.

  • Loading branch information...
1 parent 8a506cf commit 68690af97cc659527f4be5f632c86eebfe333c17 @kazuho committed Jan 19, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 ssh_blockdiff_dump
View
@@ -48,6 +48,11 @@ ssh $SSH_ARGS "cat > \"$REMOTE_TMPDIR/blockdiff_dump.$$\"" < "$DUMP_CMD" || exit
ssh $SSH_ARGS "chmod u+x \"$REMOTE_TMPDIR/blockdiff_dump.$$\"" || exit $?
DUMP_CMD="$REMOTE_TMPDIR/blockdiff_dump.$$"
+# set prefix
+if [ "$SSH_BLOCKDIFF_PREFIX" != "" ] ; then
+ DUMP_CMD="$SSH_BLOCKDIFF_PREFIX $DUMP_CMD"
+fi
+
# copy digest file to remote
if [ -e "/dev/fd/5" ] ; then
CMD="cat > $REMOTE_TMPDIR/in_md5.$$"

0 comments on commit 68690af

Please sign in to comment.