vzctl create: umount ploop device if interrupted

In case we got interrupted while creating ploop CT,
employ cleanup mechanism to umount ploop image.

Otherwise (i.e. without this patch) interrupted vzctl create
leaves a directory under /vz/vztmp and a stalled vzctl process
which tries to delete this directory but can not since it
contains an image used by in-kernel ploop device that can't
be removed.

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