blockdev: add 'no-throttle' option to skip generationg throttle top node

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2025-07-02 18:28:07 +02:00 committed by Fabian Grünbichler
parent 8c627ccdc8
commit 41077113cc

View file

@ -355,7 +355,7 @@ sub generate_drive_blockdev {
}
# for fleecing and TPM backup, this is already the top node
return $child if $options->{fleecing} || $options->{'tpm-backup'};
return $child if $options->{fleecing} || $options->{'tpm-backup'} || $options->{'no-throttle'};
# this is the top filter entry point, use $drive-drive_id as nodename
return {
@ -403,6 +403,8 @@ Parameters:
=item C<< $options->{fleecing} >>: Generate and attach a block device for backup fleecing.
=item C<< $options->{'no-throttle'} >>: Do not insert a throttle node as the top node.
=item C<< $options->{'read-only'} >>: Attach the image as read-only irrespective of the
configuration in C<$drive>.