Refactoring: Remove ERR_remove_thread_state calls #PSBM-150935As of version 1.1.0 OpenSSL will automatically allocate all resources
that it needs so no explicit initialisation is required. Similarly
it will also automatically deinitialise as required.
ERR_remove_thread_state is deprecated.
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
Refactoring: Remove OPENSSL_NO_DEPRECATED macroAccording to OpenSSL documentation, if OPENSSL_NO_DEPRECATED macro
is defined, all deprecated public symbols in all OpenSSL versions
up to and including the version given by OPENSSL_API_COMPAT will
be hidden.
So we remove the current macro to get warnings about which parts
of openssl in libprlcommon are out of date.
Signed-off-by: Fima Shevrin <efim.shevrin@virtuozzo.com>
QCOW2: disable subcluster for new image #PSBM-150616We don't really need them there since backup images
have 64K clusters and we write them compressed.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
BaseNode: make name for tmp file more unique #PSBM-147237This helps us to definitely determine place where this
file is produced and avoid getting misunderstanding with
the same temporary files created by other utilities.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
migrate: Increase migrate proto version #PSBM-144996MIGRATE_DISP_PROTO_V11 - Migration with new 4M OVMF loader
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Change if condition for nbd operations acc to libnbd #PSBM-146526libnbd uses negative numbers as returned error codes. Thus we correct
our if condions according to the lib api to avoid log overflooding.
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
Interfaces: unify and use one common constant for qemu-img cmd #PSBM-144950These changes in library are preparation for further work in
the prl-disp-service which uses same variable. Changing name allows
us not to brake dependencies in other libraries and utilities
where same variable is present.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
nvram: introduce new nvram file name #PSBM-144950First patch which only introduce new nvram file name.
It allows us do not broke dependencies between dispatcher and
other tools and start implementing new feature about converting
to 4MB EFI image.
Signed-off-by: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Merge pull request #254 in OVZ/libprlcommon from ~EFIM SHEVRIN/libprlcommon_0:enable_subclasters_vz9_pr to master* commit '77e8cce85ad3b47537741f903625185a6927157c':
QCOW2 images for VMs should be created with subclusters enabled #PSBM-131094
QCOW2 images for VMs should be created with subclusters enabled #PSBM-131094With L2 subcluster feature enabled each qcow2 cluster is split into 32 subclusters,
each has individual allocation and read-as-zero status bits.
- it saves on disk space if the subcluster will contain hole
- it improves backup speed
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
replace deprecated functions SSLv23_client_method and SSLv23_server_method #PSBM-144480SSLv23_client_method and SSLv23_server_method are depreciated according to openssl changes list.
We replace methods on the new one according openssl man.
Old functions names using can generate memory corruption errors
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
vdisk: add libpcs_io.so.8 to the list of possible libpcs_io.so minors #PSBM-143148Virtuozzo has been migrated to the new VStorage core which has bumped
the minor of this library to 8. Tweak libprlcommon source accordingly.
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Aleksandr Leskin <aleksandr.leskin@virtuozzo.com>
Add cloudlinux8 into supported os list #PSBM-141631We support vm creation with old versions of cloudlinux and
cloudlinux7 at the moment. The current commit adds cloundlinux8 to
list of supported distributions.
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>
Add freebsd to the list of supported os #PSBM-141802We add support of FreeBSD in Dispatcher. Also FreeBSD supports virtio-scsi,
virtio-blk, virtio-serial and virtio-net, corresponding options added
in check function PVS_GUEST_VIRTIO_SUPPORTED
Signed-off-by: Efim Shevrin <efim.shevrin@virtuozzo.com>