mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
VirtualDisk: Add error_policy 'report' value
This commit is contained in:
parent
aa2e105f2b
commit
cfe771cf4a
@ -178,6 +178,8 @@ class VirtualDisk(VirtualDevice):
|
||||
IO_MODE_THREADS = "threads"
|
||||
io_modes = [IO_MODE_NATIVE, IO_MODE_THREADS]
|
||||
|
||||
error_policies = ["ignore", "stop", "enospace", "report"]
|
||||
|
||||
@staticmethod
|
||||
def disk_type_to_xen_driver_name(disk_type):
|
||||
"""
|
||||
@ -204,8 +206,6 @@ class VirtualDisk(VirtualDevice):
|
||||
return "dir"
|
||||
return "file"
|
||||
|
||||
error_policies = ["ignore", "stop", "enospace"]
|
||||
|
||||
@staticmethod
|
||||
def path_exists(conn, path):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user