]> git.proxmox.com Git - pve-storage.git/commitdiff
Add comment for volume_has_feature
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 8 Apr 2020 11:40:07 +0000 (13:40 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 9 Apr 2020 10:05:11 +0000 (12:05 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage.pm

index c3813944feaefcb86f37526257c0417b16d27501..0848176a1f7dc382e8e39a8c6fe07d4297679ced 100755 (executable)
@@ -285,6 +285,21 @@ sub volume_snapshot_delete {
     }
 }
 
+# check if a volume or snapshot supports a given feature
+# $feature - one of:
+#            clone - linked clone is possible
+#            copy  - full clone is possible
+#            replicate - replication is possible
+#            snapshot - taking a snapshot is possible
+#            sparseinit - volume is sparsely initialized
+#            template - conversion to base image is possible
+# $snap - check if the feature is supported for a given snapshot
+# $running - if the guest owning the volume is running
+# $opts - hash with further options:
+#         valid_target_formats - list of formats for the target of a copy/clone
+#                                operation that the caller could work with. The
+#                                format of $volid is always considered valid and if
+#                                no list is specified, all formats are considered valid.
 sub volume_has_feature {
     my ($cfg, $feature, $volid, $snap, $running, $opts) = @_;