vzctl convert: fix final renames

At the end of conversion, we used to do:
- remove the old private area
- rename the newly created one to the proper name

All this was done without any error checking, so if removing fails,
then renaming fails as well, and then there's no way to roll back
(because we might have already removed the old private).

Instead, let's do this:

1. Rename old private to temp
2. Rename the new private to proper name
3. Remove temp.

https://bugzilla.openvz.org/2638

Reported-by: maddinxxx@aol.de
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
3 files changed