mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-20 15:00:18 +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.",
|
description => "Whether the drive should be included when making backups.",
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
|
rerror => {
|
||||||
|
type => 'string',
|
||||||
|
enum => [qw(ignore report stop)],
|
||||||
|
description => 'Read error action.',
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
werror => {
|
werror => {
|
||||||
type => 'string',
|
type => 'string',
|
||||||
enum => [qw(enospc ignore report stop)],
|
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 => {
|
my %iothread_fmt = ( iothread => {
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
description => "Whether to use iothreads for this drive",
|
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 = {
|
my $ide_fmt = {
|
||||||
%drivedesc_base,
|
%drivedesc_base,
|
||||||
%rerror_fmt,
|
|
||||||
%model_fmt,
|
%model_fmt,
|
||||||
};
|
};
|
||||||
PVE::JSONSchema::register_format("pve-qm-ide", $ide_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 = {
|
my $sata_fmt = {
|
||||||
%drivedesc_base,
|
%drivedesc_base,
|
||||||
%rerror_fmt,
|
|
||||||
};
|
};
|
||||||
my $satadesc = {
|
my $satadesc = {
|
||||||
optional => 1,
|
optional => 1,
|
||||||
@ -903,7 +898,6 @@ PVE::JSONSchema::register_standard_option("pve-qm-sata", $satadesc);
|
|||||||
my $virtio_fmt = {
|
my $virtio_fmt = {
|
||||||
%drivedesc_base,
|
%drivedesc_base,
|
||||||
%iothread_fmt,
|
%iothread_fmt,
|
||||||
%rerror_fmt,
|
|
||||||
};
|
};
|
||||||
my $virtiodesc = {
|
my $virtiodesc = {
|
||||||
optional => 1,
|
optional => 1,
|
||||||
@ -914,7 +908,6 @@ PVE::JSONSchema::register_standard_option("pve-qm-virtio", $virtiodesc);
|
|||||||
|
|
||||||
my $alldrive_fmt = {
|
my $alldrive_fmt = {
|
||||||
%drivedesc_base,
|
%drivedesc_base,
|
||||||
%rerror_fmt,
|
|
||||||
%iothread_fmt,
|
%iothread_fmt,
|
||||||
%model_fmt,
|
%model_fmt,
|
||||||
%queues_fmt,
|
%queues_fmt,
|
||||||
|
Loading…
Reference in New Issue
Block a user