Bug 161335

Summary: mt tell says no such device
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-23 18:38:11 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 Bastien Nocera 2005-06-22 15:00:04 UTC
"mt tell" says no such device with kernel-2.6.9-5.0.5.EL.
Patch below:

--- st.c 2005-04-13 10:45:00.240790000 +0100
+++ st.c.new 2005-04-13 13:44:41.356696328 +0100
@@ -3126,8 +3126,9 @@
* access to the device is prohibited.
*/
retval = scsi_nonblockable_ioctl(STp->device, cmd_in, p, file);
- if (!scsi_block_when_processing_errors(STp->device) || !retval)
+ if (!scsi_block_when_processing_errors(STp->device) || retval != -ENODEV)
goto out;
+ retval = 0;
 
cmd_type = _IOC_TYPE(cmd_in);
cmd_nr = _IOC_NR(cmd_in);

Comment 1 Jason Baron 2005-06-23 18:38:11 UTC

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