CP-9268: check new size in journaled-resize

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
CP-9268: print error message in resize

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
CP-9268: check new size in journaled-resize

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
CP-9268: don't access unallocated memory

NB this might be the fix for CA-141510.

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
CP-9052: more on unit tests

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>