vzmigrate: don't print colon in bad_usage()

Instead, put it to its argument. Useful for the next patch.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: in case of too many params, show them

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: move --nodeps parsing to a separate function

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: remove -?

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: use getopt for option parsing

This makes option parsing a bit simpler and more robust.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: don't use "Error" with log 0

log 0 already prints "Error:" prefix, so there is no need
to do it once more.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: detect "can't lock CT" error

In some cases we can't lock container not because it's already locked,
but for some other reason (running as non-root, no lock directory).

In such cases, there is no lock file, so we can check for this condition
print an appropriate error message and exit.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: don't run ps if there's no $pid

Check that $pid is not empty before running ps.

Otherwise we have this:

	Error: ERROR: CT  already locked by PID
	error: list of process IDs must follow -p

	Usage:
	 ps [options]

	 Try 'ps --help <simple|list|output|threads|misc|all>'
	  or 'ps --help <s|l|o|t|m|a>'
	 for additional help text.

	For more details see ps(1).

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: lock_ct: fix args usage

Don't refer to $1 in lock_ct() as we run it without arguments.
Use $VEID instead.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
setver.sh: check for ./configure to run autogen

Current check, for aclocal.m4, is not sufficient, because autogen.sh
can fail somewhere in the middle, without creating ./configure.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzmigrate: fix --ssh-mux description

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
vzctl create: improve "no ploop" error message

As pointed out in bug #2993, the message about absent ploop library
is not clear enough. Expland it, telling how to revert to simfs in case
a user don't want to or can't use ploop.

https://bugzilla.openvz.org/show_bug.cgi?id=2993

Reported-by: Ionut Biru <biru.ionut@gmail.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>