Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2183941

Summary: [virtio-win][virtiofs][nfs] overwrite confirmation during copy > 5K file to the shared directory -nfs mounted
Product: Red Hat Enterprise Linux 9 Reporter: xiagao
Component: virtio-winAssignee: Yvugenfi <yvugenfi>
virtio-win sub component: virtio-win-prewhql QA Contact: xiagao
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: coli, jinzhao, juzhang, lijin, viktor, vrozenfe, ymankad, yvugenfi
Version: 9.3Keywords: Triaged, ZStream
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2203209 (view as bug list) Environment:
Last Closed: 2023-11-07 08:29:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2203209    

Description xiagao 2023-04-03 07:35:04 UTC
Description of problem:
I am trying to copy >5k size file to the virtiofs mounted directory, it said "The destination already has a file named xxx".


Version-Release number of selected component (if applicable):
kernel-5.14.0-70.el9.x86_64
qemu-kvm-core-6.2.0-12.el9.x86_64
virtiofsd-1.1.0-4.el9_0.x86_64
virtio-win-prewhql-217

How reproducible:
100%

Steps to Reproduce:
1.(host)# mount 127.0.0.1:/mnt/virtio_fs_test_nfs  /tmp/virtio_fs_test
2.(host)# /usr/libexec/virtiofsd --socket-path=/tmp/sock1 -o source=/tmp/virtio_fs_test --debug

3.boot win2019 guest and install 217 prewhql virtiofs driver.
-object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \
-numa node,memdev=mem \
-chardev socket,id=char0,path=/tmp/sock1 \
-device vhost-user-fs-pci,chardev=char0,tag=myfs_11,bus=pci.11,queue-size=1024,id=dev_virtiofs_fs \

4.start virtiofs.exe, new z:\ is mounted.
5.Copy a >5k size file to z:\



Actual results:
after step5, it shows "The destination already has a file named 'file_test.txt'", then I click "replace the file in the destination", the file is successfully copied.


Expected results:
Can copy >5k size file to shared dir.

Additional info:

Comment 1 Viktor Prutyanov 2023-04-03 13:28:50 UTC
Hi,

Could you please share virtiofsd debug log?

Comment 3 Yvugenfi@redhat.com 2023-04-09 08:57:28 UTC
Upstream pull request: https://github.com/virtio-win/kvm-guest-drivers-windows/pull/900

Comment 4 Vadim Rozenfeld 2023-04-24 23:05:38 UTC
should be fixed in build 236 available at https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=52200270

Comment 5 xiagao 2023-04-25 05:58:54 UTC
Test on prewhql-0.1-236.
Can copy >5KB size file to the shared directory on top of nfs. 
So pre-verify it.

Comment 10 errata-xmlrpc 2023-11-07 08:29:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (virtio-win bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6388