From 1c190f51720ff0b1208df6b07c17b1f28bfcddab Mon Sep 17 00:00:00 2001 From: Stephan Duehr Date: Fri, 28 May 2021 18:52:21 +0200 Subject: [PATCH] vmware: Fix bareos_vadp_dumper VMDK File creation Before, the value of length attribute of the changed block tracking query result was used as disk size when bareos_vadp_dumper called the VDDK function VixDiskLib_Create to create VMDK files on restore with localvmdk=yes. But this value is not the real disk size in all cases, so the VMDK was too small. With this fix, the VMDK files are created with the correct size. --- core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc b/core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc index 02c1c013dff..e6add68b4d7 100644 --- a/core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc +++ b/core/src/vmware/vadp_dumper/bareos_vadp_dumper.cc @@ -1,7 +1,7 @@ /* BAREOSĀ® - Backup Archiving REcovery Open Sourced - Copyright (C) 2014-2020 Bareos GmbH & Co. KG + Copyright (C) 2014-2021 Bareos GmbH & Co. KG Copyright (C) 2015-2015 Planets Communications B.V. This program is Free Software; you can redistribute it and/or @@ -881,7 +881,7 @@ static inline bool process_disk_info(bool validate_only, json_t* value) if (create_disk && !validate_only) { do_vixdisklib_create(DISK_PARAMS_KEY, vmdk_disk_name, value, - rdie.absolute_disk_length); + rdie.phys_capacity * VIXDISKLIB_SECTOR_SIZE); do_vixdisklib_open(DISK_PARAMS_KEY, vmdk_disk_name, value, false, true, &write_diskHandle);