mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 19:31:13 +00:00
add rerror for all drives
it was missing for scsi, and it's supported for all kind of drive Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
84e85ac13e
commit
6e9d255038
@ -747,6 +747,12 @@ my %drivedesc_base = (
|
||||
description => "Whether the drive should be included when making backups.",
|
||||
optional => 1,
|
||||
},
|
||||
rerror => {
|
||||
type => 'string',
|
||||
enum => [qw(ignore report stop)],
|
||||
description => 'Read error action.',
|
||||
optional => 1,
|
||||
},
|
||||
werror => {
|
||||
type => 'string',
|
||||
enum => [qw(enospc ignore report stop)],
|
||||
@ -780,15 +786,6 @@ my %drivedesc_base = (
|
||||
}
|
||||
);
|
||||
|
||||
my %rerror_fmt = (
|
||||
rerror => {
|
||||
type => 'string',
|
||||
enum => [qw(ignore report stop)],
|
||||
description => 'Read error action.',
|
||||
optional => 1,
|
||||
},
|
||||
);
|
||||
|
||||
my %iothread_fmt = ( iothread => {
|
||||
type => 'boolean',
|
||||
description => "Whether to use iothreads for this drive",
|
||||
@ -864,7 +861,6 @@ $add_throttle_desc->('iops_wr_length', 'integer', 'length of write I/O bursts',
|
||||
|
||||
my $ide_fmt = {
|
||||
%drivedesc_base,
|
||||
%rerror_fmt,
|
||||
%model_fmt,
|
||||
};
|
||||
PVE::JSONSchema::register_format("pve-qm-ide", $ide_fmt);
|
||||
@ -891,7 +887,6 @@ PVE::JSONSchema::register_standard_option("pve-qm-scsi", $scsidesc);
|
||||
|
||||
my $sata_fmt = {
|
||||
%drivedesc_base,
|
||||
%rerror_fmt,
|
||||
};
|
||||
my $satadesc = {
|
||||
optional => 1,
|
||||
@ -903,7 +898,6 @@ PVE::JSONSchema::register_standard_option("pve-qm-sata", $satadesc);
|
||||
my $virtio_fmt = {
|
||||
%drivedesc_base,
|
||||
%iothread_fmt,
|
||||
%rerror_fmt,
|
||||
};
|
||||
my $virtiodesc = {
|
||||
optional => 1,
|
||||
@ -914,7 +908,6 @@ PVE::JSONSchema::register_standard_option("pve-qm-virtio", $virtiodesc);
|
||||
|
||||
my $alldrive_fmt = {
|
||||
%drivedesc_base,
|
||||
%rerror_fmt,
|
||||
%iothread_fmt,
|
||||
%model_fmt,
|
||||
%queues_fmt,
|
||||
|
Loading…
Reference in New Issue
Block a user