Skip to content

vmware: Fix bareos_vadp_dumper VMDK File creation#826

Merged
sduehr merged 2 commits intomasterfrom
dev/sduehr/master/fix-vadp-dumper-vmdk-size
May 31, 2021
Merged

vmware: Fix bareos_vadp_dumper VMDK File creation#826
sduehr merged 2 commits intomasterfrom
dev/sduehr/master/fix-vadp-dumper-vmdk-size

Conversation

@sduehr
Copy link
Member

@sduehr sduehr commented May 28, 2021

Before this change, 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.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

sduehr added 2 commits May 28, 2021 18:52
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.
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Good work!

@sduehr sduehr merged commit 3b65f26 into master May 31, 2021
@pstorz pstorz deleted the dev/sduehr/master/fix-vadp-dumper-vmdk-size branch March 10, 2022 12:00
@pstorz pstorz restored the dev/sduehr/master/fix-vadp-dumper-vmdk-size branch March 10, 2022 12:23
@pstorz pstorz deleted the dev/sduehr/master/fix-vadp-dumper-vmdk-size branch March 10, 2022 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments