-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.4
-
libvirt-9.9.0-1.el9
-
None
-
None
-
rhel-sst-virtualization
-
ssg_virtualization
-
13
-
18
-
None
-
QE ack, Dev ack
-
False
-
-
None
-
None
-
Pass
-
RegressionOnly
-
-
9.8.0
-
None
Description of problem:
space_hard/soft_limit does not take effect
Version-Release number of selected component (if applicable):
libvirt-daemon-9.5.0-7.el9_3.x86_64
qemu-kvm-8.0.0-13.el9.x86_64
virtiofsd-1.7.2-1.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Setup the env for externally launched virtiofsd
2.Define guest to add a externally-launched virtiofsd filesystem in guest:
# virsh dumpxml lizhu --xpath //filesystem <filesystem type="mount"> <driver type="virtiofs" queue="1024"/> <source socket="/vm001-vhost-fs.sock"/> <target dir="mount_tag1"/> <alias name="fs0"/> <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/> <space_hard_limit unit="bytes">8192</space_hard_limit> </filesystem>
3. Start the guest
# virsh start lizhu Domain 'lizhu' started
4. Check the qemu cmd line
# ps aux |grep lizhu ... -chardev socket,id=chr-vu-fs0,path=/vm001-vhost-fs.sock -device {"driver":"vhost-user-fs-pci","id":"fs0","chardev":"chr-vu-fs0","queue-size":1024,"tag":"mount_tag1","bus":"pci.8","addr":"0x0"} ...
(no limit flag in the above qemu cmd line)
5. Login into the guest
[Guest OS]#mount -t virtiofs mount_tag1 /mnt [Guest OS]# df -h # df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 873M 0 873M 0% /dev/shm tmpfs 349M 9.4M 340M 3% /run /dev/mapper/rhel-root 7.4G 1.3G 6.2G 17% / /dev/vda2 960M 215M 746M 23% /boot /dev/vda1 599M 7.0M 592M 2% /boot/efi mount_tag1 70G 5.4G 65G 8% /mnt tmpfs 175M 0 175M 0% /run/user/0
6. Write a file more than 8kB
[Guest OS]# cat /root/messages > /mnt/file3 [Guest OS]# ll /mnt/file3 -h -rw-r--r--. 1 root root 642K Sep 16 21:24 /mnt/file3
Actual results:
Can write a file with size more than hard_limit to mounted virtiofs disk
Expected results:
When we define or edit_save guest XML with space_hard/soft_limit, report error if these two parameters are not supported, or update the document in libvirt.org
- is blocked by
-
RHEL-15267 Rebase libvirt in RHEL-9.4.0
- Closed
- links to
-
RHBA-2023:125049 libvirt update
- mentioned on