From 84fc1c283416fef30193afd32d20a7d5c8461205 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/virttest/libvirt_xml/devices/filesystem.py b/virttest/libvirt_xml/devices/filesystem.py index 879687e9f0..9984061aab 100644 --- a/virttest/libvirt_xml/devices/filesystem.py +++ b/virttest/libvirt_xml/devices/filesystem.py @@ -67,6 +67,7 @@ class Binary(base.base.LibvirtXMLBase): + """ @@ -77,6 +78,7 @@ class Binary(base.base.LibvirtXMLBase): "lock_posix", "flock", "thread_pool_size", + "open_files", "sandbox_mode", ) @@ -96,6 +98,13 @@ 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,