Description of problem: When detaching a device from a guest when the device is in use by the guest, xen detaches it nonetheless and removes it from the guest domain's info even though the device lives on the guest causing the subsequent block attach/detach commands to be in disarray. Version-Release number of selected component (if applicable): # rpm -qa | grep xen xen-devel-3.0.3-79.el5 xen-devel-3.0.3-79.el5 kernel-xen-2.6.18-126.el5 xen-libs-3.0.3-79.el5 xen-debuginfo-3.0.3-79.el5 xen-3.0.3-79.el5 xen-debuginfo-3.0.3-79.el5 kernel-xen-devel-2.6.18-126.el5 xen-libs-3.0.3-79.el5 How reproducible: Very Steps to Reproduce: 1. Install a guest, attach a device. 2. Go to the guest and format and mount the device 3. In dom0 detach the device. Both xm and virsh detaching operations return ok and the device is removed from the guest's disk list. 4. Go back to guest and do /proc/partitions Actual results: dom0 thinks that the device is detached from the guest and removes the device from the guest configuration even though the device is there in the guest. Expected results: detach operations should return error if the device is in use by the guest. Additional info:
Well, returning error when xend is unable to detach the device is not possible but except showing this error message it works fine with patch for BZ #484110. *** This bug has been marked as a duplicate of bug 484110 ***