vzctl create --diskinodes: check for max ploop size

Use the ploop_get_max_size to check if the value of --diskinodes
given is too high, and if yes suggest what the maximum value is.

Note it requires ploop library 1.12 or greater, but should work
with older library, as it checks that the function pointer is non-NULL.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
2 files changed