You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~doc:"This operation is not permitted on VMs containing VDIs in the 'on-boot=reset' mode"();
1113
+
~doc:"This operation is not permitted on VDIs in the 'on-boot=reset' mode, or on VMs having such VDIs."();
1112
1114
error Api_errors.cannot_create_state_file []
1113
1115
~doc:"An HA statefile could not be created, perhaps because no SR with the appropriate capability was found."();
1114
1116
error Api_errors.vif_not_in_map [ "vif" ]
@@ -5985,6 +5987,9 @@ let storage_operations =
5985
5987
"vdi_clone", "Cloneing a VDI";
5986
5988
"vdi_snapshot", "Snapshotting a VDI";
5987
5989
"vdi_mirror", "Mirroring a VDI";
5990
+
"vdi_enable_cbt", "Enabling changed block tracking for a VDI";
5991
+
"vdi_disable_cbt", "Disabling changed block tracking for a VDI";
5992
+
"vdi_set_on_boot", "Setting the on_boot field of the VDI";
5988
5993
"pbd_create", "Creating a PBD for this SR";
5989
5994
"pbd_destroy", "Destroying one of this SR's PBDs"; ])
5990
5995
@@ -6199,6 +6204,7 @@ let vdi_type = Enum ("vdi_type", [ "system", "a disk that may be replaced on
6199
6204
"redo_log", "a disk used for a general metadata redo-log";
6200
6205
"rrd", "a disk that stores SR-level RRDs";
6201
6206
"pvs_cache", "a disk that stores PVS cache data";
6207
+
"cbt_metadata", "Metadata about a snapshot VDI that has been deleted: the set of blocks that changed between some previous version of the disk and the version tracked by the snapshot.";
6202
6208
])
6203
6209
6204
6210
letvdi_introduce_paramsfirst_rel=
@@ -6230,7 +6236,10 @@ let vdi_pool_introduce = call
[{ param_type=Bool; param_name="cbt_enabled"; param_doc="True if changed blocks are tracked for this VDI"; param_release=inverness_release; param_default=Some(VBoolfalse) }]
6242
+
)
6234
6243
~doc:"Create a new VDI record in the database only"
6235
6244
~result:(Ref _vdi, "The ref of the newly created VDI record.")
~doc:"Enable changed block tracking for the VDI. This call is idempotent - enabling CBT for a VDI for which CBT is already enabled results in a no-op, and no error will be thrown."
6538
+
~allowed_roles:_R_VM_ADMIN
6539
+
()
6540
+
6541
+
let vdi_disable_cbt = call
6542
+
~name:"disable_cbt"
6543
+
~in_oss_since:None
6544
+
~in_product_since:rel_inverness
6545
+
~params:[Ref _vdi, "self", "The VDI for which CBT should be disabled"]
~doc:"Disable changed block tracking for the VDI. This call is only allowed on VDIs that support enabling CBT. It is an idempotent operation - disabling CBT for a VDI for which CBT is not enabled results in a no-op, and no error will be thrown."
6556
+
~allowed_roles:_R_VM_ADMIN
6557
+
()
6558
+
6511
6559
(** A virtual disk *)
6512
6560
let vdi =
6513
6561
create_obj ~in_db:true~in_product_since:rel_rio ~in_oss_since:oss_since_303 ~internal_deprecated_since:None~persist:PersistEverything~gen_constructor_destructor:true~name:_vdi ~descr:"A virtual disk image"
@@ -6540,6 +6588,8 @@ let vdi =
6540
6588
vdi_checksum;
6541
6589
vdi_read_database_pool_uuid;
6542
6590
vdi_pool_migrate;
6591
+
vdi_enable_cbt;
6592
+
vdi_disable_cbt;
6543
6593
]
6544
6594
~contents:
6545
6595
([ uid _vdi;
@@ -6573,6 +6623,7 @@ let vdi =
6573
6623
field ~in_product_since:rel_boston ~qualifier:DynamicRO~ty:(Ref _pool) ~default_value:(Some (VRef null_ref)) "metadata_of_pool""The pool whose metadata is contained in this VDI";
6574
6624
field ~in_product_since:rel_boston ~qualifier:DynamicRO~ty:Bool~default_value:(Some (VBoolfalse)) "metadata_latest""Whether this VDI contains the latest known accessible metadata for the pool";
6575
6625
field ~lifecycle:[Published, rel_dundee, ""] ~qualifier:DynamicRO~ty:Bool~default_value:(Some (VBoolfalse)) "is_tools_iso""Whether this VDI is a Tools ISO";
6626
+
field ~lifecycle:[Published, rel_inverness, ""] ~qualifier:DynamicRO~ty:Bool~default_value:(Some (VBoolfalse)) "cbt_enabled""True if changed blocks are tracked for this VDI"~doc_tags:[Snapshots];
0 commit comments