vzctl_create_image(): improve

1. Use make_dir_mode() which reports error and returns proper exit code
2. Remove directory in case ploop_create_image() failed
3. Reuse 'dir' variable in snprintf(image)

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