lkml.org 
[lkml]   [2000]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: ide-tape.c
John,

This error is harmless. It just means that we tried to lock
the medium in and the drive doesn't support locking the media.
Something like the following patch will eliminate it.

When ignoring this warning, what is the actual problem in working
with the tape drive?

Try doing a backup/restore procedure:

tar cvf /dev/ht0 /usr
tar xvf /dev/ht0

Are there any problem aside from the above error message?

Gadi

--- ide-tape.c~ Mon Dec 13 23:53:45 1999
+++ ide-tape.c Thu Jan 27 20:16:54 2000
@@ -5040,10 +5040,12 @@

if (tape->chrdev_direction == idetape_direction_none) {
MOD_INC_USE_COUNT;
- idetape_create_prevent_cmd(drive, &pc, 1);
- if (!idetape_queue_pc_tail (drive,&pc)) {
- if (tape->door_locked != DOOR_EXPLICITLY_LOCKED)
- tape->door_locked = DOOR_LOCKED;
+ if (tape->onstream) {
+ idetape_create_prevent_cmd(drive, &pc, 1);
+ if (!idetape_queue_pc_tail (drive,&pc)) {
+ if (tape->door_locked != DOOR_EXPLICITLY_LOCKED)
+ tape->door_locked = DOOR_LOCKED;
+ }
}
idetape_analyze_headers(drive);
}
@@ -5094,10 +5096,12 @@
if (minor < 128)
(void) idetape_rewind_tape (drive);
if (tape->chrdev_direction == idetape_direction_none) {
- if (tape->door_locked != DOOR_EXPLICITLY_LOCKED) {
- idetape_create_prevent_cmd(drive, &pc, 0);
- if (!idetape_queue_pc_tail (drive,&pc))
- tape->door_locked = DOOR_UNLOCKED;
+ if (tape->onstream) {
+ if (tape->door_locked != DOOR_EXPLICITLY_LOCKED) {
+ idetape_create_prevent_cmd(drive, &pc, 0);
+ if (!idetape_queue_pc_tail (drive,&pc))
+ tape->door_locked = DOOR_UNLOCKED;
+ }
}
MOD_DEC_USE_COUNT;
}
On Wed, 16 Feb 2000, John wrote:

> We are unable to get our tape drive working.
>
> System information is attached below.
>
> Attempting to write to the device gives errors like this:
>
> hdc : bad access: block=0, count=32
> ide-tape: ht0: I/O error, pc = 1e, key = 5, asc = 20, ascq = 0
>
> # mt -f /dev/ht0 retension gives:
>
> ide-tape: ht0: I/O error, pc = 1e, key = 5, asc = 20, ascq = 0
>
>
> Thanks ahead.
>
> -j
>
>
> Linux ns 2.3.40 #1 Fri Jan 21 16:03:51 PST 2000 i586 unknown
>
> ide-tape: MOD_INC_USE_COUNT in idetape_init
> ide-tape: Dumping ATAPI Identify Device tape parameters
> ide-tape: Protocol Type: <6>ATAPI
> ide-tape: Device Type: 1 - <6>Streaming Tape Device
> ide-tape: Removable: Yes
> ide-tape: Command Packet DRQ Type: <6>Accelerated DRQ
> ide-tape: Command Packet Size: <6>12 bytes
> ide-tape: Model: CONNER CTT8000-A
> ide-tape: Firmware Revision: 2.08
> ide-tape: Serial Number:
> ide-tape: Write buffer size: 372736 bytes
> ide-tape: DMA: No
> ide-tape: LBA: Yes
> ide-tape: IORDY can be disabled: Yes
> ide-tape: IORDY supported: Yes
> ide-tape: ATAPI overlap supported: No
> ide-tape: PIO Cycle Timing Category: 2
> ide-tape: DMA Cycle Timing Category: 0
> ide-tape: Single Word DMA supported modes: <6>
> ide-tape: Multi Word DMA supported modes: <6>
> ide-tape: Enhanced PIO Modes: Mode 3
> ide-tape: Minimum Multi-word DMA cycle per word: <6>Not supported
> ide-tape: Manufacturer's Recommended Multi-word cycle: <6>Not supported
> ide-tape: Minimum PIO cycle without IORDY: <6>120 ns
> ide-tape: Minimum PIO cycle with IORDY: <6>120 ns
> ide-tape: hdd <-> ht0: CONNER CTT8000-A rev 2.08
> ide-tape: Dumping the results of the MODE SENSE packet command
> ide-tape: Mode Parameter Header:
> ide-tape: Mode Data Length - 23
> ide-tape: Medium Type - 23
> ide-tape: Device Specific Parameter - 16
> ide-tape: Block Descriptor Length - 0
> ide-tape: Capabilities and Mechanical Status Page:
> ide-tape: Page code - 42
> ide-tape: Page length - 18
> ide-tape: Read only - Yes
> ide-tape: Supports reverse space - No
> ide-tape: Supports erase initiated formatting - No
> ide-tape: Supports QFA two Partition format - No
> ide-tape: Supports locking the medium - No
> ide-tape: The volume is currently locked - No
> ide-tape: The device defaults in the prevent state - No
> ide-tape: Supports ejecting the medium - No
> ide-tape: Supports error correction - No
> ide-tape: Supports data compression - No
> ide-tape: Supports 512 bytes block size - No
> ide-tape: Supports 1024 bytes block size - Yes
> ide-tape: Supports 32768 bytes block size / Restricted byte count for PIO transfers - No
> ide-tape: Maximum supported speed in KBps - 115
> ide-tape: Continuous transfer limits in blocks - 32
> ide-tape: Current speed in KBps - 115
> ide-tape: Buffer size - 372736
> ide-tape: hdd <-> ht0: 115KBps, 11*32kB buffer, 1120kB pipeline, 400ms tDSC
> ide-tape: MOD_DEC_USE_COUNT in idetape_init
>
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.223 / U:0.160 seconds]
©2003-2014 Jasper Spaans. Advertise on this site