Skip to content

Add API for CNS Volume Flags Control#3993

Open
zhanhank wants to merge 2 commits intovmware:mainfrom
zhanhank:AddCnsCbtApi
Open

Add API for CNS Volume Flags Control#3993
zhanhank wants to merge 2 commits intovmware:mainfrom
zhanhank:AddCnsCbtApi

Conversation

@zhanhank
Copy link
Copy Markdown

@zhanhank zhanhank commented Apr 14, 2026

Description

This PR is adding go binding for Cns Volume Control Flags (mainly for changed block tracking) APIs
1, add VolumeCBTStatus in Volume
2, add APIs SetVolumeControlFlags and ClearVolumeControlFlags
3, allow QueryVolume with CBT status

Note: will add support for simulator in following changes.

Closes: #(issue-number)

How Has This Been Tested?

bash-4.4$ go test -v -count=1 ./cns -run TestBlockVolumeCBT
=== RUN TestBlockVolumeCBT
client_test.go:2082: CBT test: created block volume "b6d0bc60-094d-46c9-b7f4-8a5e3a6d974d"
client_test.go:2149: snapshot "e9c6b988-b6aa-4822-a6fa-265fe0fd9218" changedBlockTrackingId="52 a8 9e 8f 17 3c 86 f0-08 52 f5 6e 9f bf 54 3b/1"
client_test.go:2180: snapshot "e9c6b988-b6aa-4822-a6fa-265fe0fd9218" changedBlockTrackingId="52 a8 9e 8f 17 3c 86 f0-08 52 f5 6e 9f bf 54 3b/1" (from QuerySnapshots)
--- PASS: TestBlockVolumeCBT (9.83s)
PASS
ok github.com/vmware/govmomi/cns 9.846s

Guidelines

Please read and follow the CONTRIBUTION guidelines of this project.

Signed-off-by: Hank Zhan <hank.zhan@broadcom.com>
Comment thread cns/client_test.go Outdated
Signed-off-by: Hank Zhan <hank.zhan@broadcom.com>
@zhanhank zhanhank requested a review from akankshapanse April 15, 2026 01:35
@zhanhank zhanhank changed the title Add API for CNS Flags Control Add API for CNS Volume Flags Control Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants