System and method for controlling traveling of tape
First Claim
1. A system for controlling the traveling of a tape in a tape drive which temporarily stores data in a buffer before writing the data to the tape, the system comprising:
- a determination unit for determining if second data is to be written to the tape without performing a backhitch after first data is written to the tape, the determination unit determining a state of the system before writing the first data to the tape, the determination unit comparing an amount of second data written to the tape with an amount of second data expected to be written to the tape to an area up to a position on the tape where writing the first data commenced, for determining if the second data is to be written to the tape without performing a backhitch, the second data comprising data stored adjacent to first data stored in the buffer; and
a speed adjusting unit for adjusting the speed of the tape to prevent a backhitch due to the buffer running out of data when the determination unit determines that the second data is to be written to the tape without performing a backhitch.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method for controlling the traveling of a tape is provided. The system and method include passing data in a buffer to a channel input/output unit for writing the data to a tape. A determining unit determines if second data is to be written to the tape without performing a backhitch after first data is written to the tape. The determination unit also determines a state of the system before writing the first data to the tape and compares an amount of second data written to the tape prior to writing first data to the tape with an amount of second data expected to be written to the tape to an area up to a position on the tape where writing the first data commenced, for determining if the second data is to be written to the tape without performing a backhitch. A speed adjusting unit adjusts the speed of the tape to prevent a backhitch due to the buffer running out of data when the determination unit determines that the second data is to be written to the tape without performing a backhitch.
-
Citations
8 Claims
-
1. A system for controlling the traveling of a tape in a tape drive which temporarily stores data in a buffer before writing the data to the tape, the system comprising:
-
a determination unit for determining if second data is to be written to the tape without performing a backhitch after first data is written to the tape, the determination unit determining a state of the system before writing the first data to the tape, the determination unit comparing an amount of second data written to the tape with an amount of second data expected to be written to the tape to an area up to a position on the tape where writing the first data commenced, for determining if the second data is to be written to the tape without performing a backhitch, the second data comprising data stored adjacent to first data stored in the buffer; and a speed adjusting unit for adjusting the speed of the tape to prevent a backhitch due to the buffer running out of data when the determination unit determines that the second data is to be written to the tape without performing a backhitch. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for controlling the traveling of a tape in a tape drive which temporarily stores data transmitted from a higher-level system in a buffer and thereafter writes the data to the tape, the system comprising:
-
a determination unit for determining if second data is to be written to the tape without performing a backhitch after first data is written to the tape, the determination unit determining a state of the system before writing the first data to the tape, the second data comprising data stored adjacent to first data stored in the buffer; a speed choosing unit choosing a first speed when the determination unit determines that the second data is to be written to the tape without performing a backhitch, the first speed being the fastest speed satisfying a condition that time required for storing data in the buffer of a predetermined size transmitted from the higher-level system is shorter than time required for writing to the tape the data of the predetermined size stored in the buffer, among a plurality of speeds prepared in advance as the speed of the tape; the speed choosing unit choosing a second speed that is slower than the first speed from the plurality of speeds, when the first speed chosen by the speed choosing unit is used and a backhitch thereby occurred in anyone of a last predetermined number of times of data writing; and a change unit changing the speed of the tape to the second speed after a backhitch is performed, when the second speed chosen is different from the current speed of the tape.
-
-
7. A method of controlling the traveling of a tape in a tape drive which temporarily stores data transmitted from a higher-level system in a buffer and thereafter writes the data to the tape, the method comprising the steps of:
-
determining if second data is to be written to the tape without performing a backhitch after first data is written to the tape, the second data comprising data stored adjacent to first data stored in the buffer; determining a state of the system before writing the first data to the tape; choosing a first speed when it is determined that the second data is to be written to the tape without performing a backhitch, the first speed being the fastest speed satisfying a condition that time required for storing data in the buffer of a predetermined size transmitted from the higher-level system is shorter than time required for writing to the tape the data of the predetermined size stored in the buffer, among a plurality of speeds prepared in advance as the speed of the tape; choosing a second speed that is slower than the first speed from the plurality of speeds, when the first speed chosen by the speed choosing unit is used and a backhitch thereby occurred in anyone of a last predetermined number of times of data writing; and changing the speed of the tape to the second speed after a backhitch is performed, when the second speed chosen is different from the current speed of the tape.
-
-
8. A computer program product for controlling the traveling of a tape in a tape drive which temporarily stores data transmitted from a higher-level system in a buffer, and thereafter writes the data to the tape, the computer readable program product comprising:
-
a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising; computer readable program code configured to determine if second data is to be written to the tape without performing a backhitch after first data is written to the tape, the second data comprising data stored adjacent to first data stored in the buffer; computer readable program code configured to determine a state of the system before writing the first data to the tape; computer readable program code configured to choose a first speed when it is determined that the second data is to be written to the tape without performing a backhitch, the first speed being the fastest speed satisfying a condition that time required for storing data in the buffer of a predetermined size transmitted from the higher-level system is shorter than time required for writing to the tape the data of the predetermined size stored in the buffer, among a plurality of speeds prepared in advance as the speed of the tape; computer readable program code configured to choose a second speed that is slower than the first speed from the plurality of speeds, when the first speed chosen by the speed choosing unit is used and a backhitch thereby occurred in anyone of a last predetermined number of times of data writing; and computer readable program code configured to change the speed of the tape to the second speed after a backhitch is performed, when the second speed chosen is different from the current speed of the tape.
-
Specification