From 073a0ffbb016e63ccae90eaa87073fa30cec64ea Mon Sep 17 00:00:00 2001 From: Lili Zhu Date: Sun, 29 Dec 2024 07:26:22 -0500 Subject: [PATCH] Add the virtiofs element of openfiles Signed-off-by: Lili Zhu --- virttest/libvirt_xml/devices/filesystem.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virttest/libvirt_xml/devices/filesystem.py b/virttest/libvirt_xml/devices/filesystem.py index 879687e9f0..cb979cb98b 100644 --- a/virttest/libvirt_xml/devices/filesystem.py +++ b/virttest/libvirt_xml/devices/filesystem.py @@ -77,6 +77,7 @@ class Binary(base.base.LibvirtXMLBase): "lock_posix", "flock", "thread_pool_size", + "open_files", "sandbox_mode", ) @@ -96,6 +97,9 @@ def __init__(self, virsh_instance=base.base.virsh): accessors.XMLAttribute( "flock", self, parent_xpath="/", tag_name="lock", attribute="flock" ) + accessors.XMLAttribute( + "open_files", self, parent_xpath="/", tag_name="openfiles", attribute="max" + ) accessors.XMLAttribute( "thread_pool_size", self,