Bug 206297

Summary: mt - status incorrectly reports "door open" as "device not configured"
Product: Base System Reporter: andrew
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: 10.2-RELEASE   
Hardware: Any   
OS: Any   

Description andrew 2016-01-15 21:12:56 UTC
mt -f /dev/sa0 status
- when no tape is loaded, reports "device not configured" when there is no tape present. 

The message "device not configured" appears to suggest that there is a major hardware or software defect, when "tape not loaded" or "door open" is a perfectly normal state for a tape drive. I would expect a message like "door open", "media not present" or "No tape loaded".

This applies to all SCSI LTOx, DDSx and DATx drives, (have tested all generations of LTO 1 to 4, DDS 2 to 4, and also USB DAT72 drives (I don't have any other working drives at present to test).

This is a pretty serious defect in terms of consequences: I have tested on i386, but previously tested on Sparc and Sparc64, and assumed that the SCSI driver defective on the basis of this message! (So I moved those machines to OpenBSD, and the i386 machines to Linux).