vzmigrate: fixed for ploop live migration

These are mostly fixes/improvements for commit 740ccd4.

1. At the beginning of the script, initialize variables to be empty.
2. get_ploop_info(): fixes to use ${dev}
3. get_ploop_info(): return 1 and do not assign vars if something goes wrong
4. get_ploop_info(): make $TOP_DELTA is relative to $VE_PRIVATE
   (otherwise if file name is root.hdd rsync excludes the whole private)
5. Check get_ploop_info() return, error out if it failed
6. ploop-copy -s: fix argument, should start with /dev
7. ploop-copy -s: redirect vzctl chkpnt output to stderr to not corrupt stream
8. ploop-copy -d: TOP_DELTA is relative to VE_PRIVATE

After all this stuff, live migration over ploop finally works

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed