Bug 709222

Summary: Eject floppy in qemu-monitor before umount it in the guest cause floppy data lost
Product: Red Hat Enterprise Linux 5 Reporter: Mike Cao <bcao>
Component: kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7CC: bcao, juzhang, michen, mkenneth, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-31 06:47:59 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:

Description Mike Cao 2011-05-31 06:12:03 UTC
Description of problem:
write data to mount point after eject floppy in qemu-monitor cause floppy data lost 

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1.start guest with floppy
eg:<commandLine> -drive file=/home/b.vfd,if=floppy,cache=none,format=raw
2.in the guest mount /dev/fd0 /mnt
3.mkdir /mnt/tt1 
4.mkdir /mnt/tt2
5.eject floppy in qemu-monitor (qemu)eject floppy0
6.umount /dev/fd0 in the guest #umount /dev/fd0
7,add floppy in qemu-monitor (qemu)change floppy0 /home/b.vfd
8.remount floppy  #mount /dev/fd0 /opt
  
Actual results:
two directories tt1 tt2 created in step 3/4 could not found in /dev/fd0

Expected results:
no data lost in floppy

Additional info:

Comment 1 Mike Cao 2011-05-31 06:47:59 UTC

*** This bug has been marked as a duplicate of bug 703789 ***