Tape storage device, data writing method, and program
First Claim
1. A tape drive configured for receiving a plurality of write requests for data pieces and a synchronization request corresponding to the write requests from a device and for returning a completion status of the synchronization request to the device, the tape drive comprising:
- an interface for coupling the tape drive to the device, the interface for receiving commands from the device;
a buffer coupled to the interface and configured for temporarily storing the data pieces received from the device;
a tape medium, coupled to the buffer, on which the data pieces stored in the buffer are recorded; and
a write controller, coupled to the interface, the buffer, and the tape medium, that records the data pieces on the tape medium from the buffer, wherein the interface comprises a function for queuing commands received in succession from the device so as to asynchronously process the commands, and the write controller is configured for;
receiving a first synchronization request for writing first data from the buffer to the tape medium,transmitting to the device a request for transferring second data to the buffer subsequent to receiving the first synchronization request and prior to completion of the first synchronization request,receiving the second data from the device in response to the request, the receiving occurring subsequent to receiving the first synchronization request and prior to completion of the first synchronization request,queuing the second data in the buffer prior to completion of the first synchronization request such that the buffer includes at least a portion of the first data and the second data,returning the completion status when processing of the first synchronization request is completed, andwriting the second data to the tape medium subsequent to completion of the first synchronization request without a physical gap on the tape medium between data written in the first synchronization request,wherein receiving and queuing the second data subsequent to receiving the first synchronization request and prior to completion of the first synchronization request prevents the buffer from becoming empty while processing the first synchronization request and prevents the need for the first and second data from being written to the tape medium multiple times.
1 Assignment
0 Petitions
Accused Products
Abstract
A tape drive receives multiple write requests for data pieces and a synchronization request corresponding to the write requests from a device, performs a synchronization process, and returns a completion status of the synchronization request. The tape drive includes a write controller that stores data pieces transferred from the device in the buffer, according to a first write request, receives a first synchronization request and then a subsequent write request for at least one data piece, and returns the completion status when processing for the first synchronization request is completed and the subsequent write request is received with a command queuing function.
-
Citations
20 Claims
-
1. A tape drive configured for receiving a plurality of write requests for data pieces and a synchronization request corresponding to the write requests from a device and for returning a completion status of the synchronization request to the device, the tape drive comprising:
-
an interface for coupling the tape drive to the device, the interface for receiving commands from the device; a buffer coupled to the interface and configured for temporarily storing the data pieces received from the device; a tape medium, coupled to the buffer, on which the data pieces stored in the buffer are recorded; and a write controller, coupled to the interface, the buffer, and the tape medium, that records the data pieces on the tape medium from the buffer, wherein the interface comprises a function for queuing commands received in succession from the device so as to asynchronously process the commands, and the write controller is configured for; receiving a first synchronization request for writing first data from the buffer to the tape medium, transmitting to the device a request for transferring second data to the buffer subsequent to receiving the first synchronization request and prior to completion of the first synchronization request, receiving the second data from the device in response to the request, the receiving occurring subsequent to receiving the first synchronization request and prior to completion of the first synchronization request, queuing the second data in the buffer prior to completion of the first synchronization request such that the buffer includes at least a portion of the first data and the second data, returning the completion status when processing of the first synchronization request is completed, and writing the second data to the tape medium subsequent to completion of the first synchronization request without a physical gap on the tape medium between data written in the first synchronization request, wherein receiving and queuing the second data subsequent to receiving the first synchronization request and prior to completion of the first synchronization request prevents the buffer from becoming empty while processing the first synchronization request and prevents the need for the first and second data from being written to the tape medium multiple times. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A data writing method by which a tape drive receives a plurality of write requests for data pieces and a synchronization request corresponding to the write requests from a device and returns to the device a completion status of the synchronization request, wherein the tape drive comprises an interface that receives a command from the device, a buffer that temporarily stores the data pieces sent from the device, a tape medium on which the data pieces stored in the buffer are recorded, and a write controller that records the data pieces on the tape medium from the buffer, the tape drive further comprises a function for queuing commands issued in succession from the device so as to asynchronously process the commands, and the method comprises:
-
receiving a first synchronization request for writing first data from the buffer to the tape medium, transmitting to the device a request for transferring second data to the buffer subsequent to receiving the first synchronization request and prior to completion of the first synchronization request, receiving the second data from the device in response to the request, the receiving occurring subsequent to receiving the first synchronization request and prior to completion of the first synchronization request, queuing the second data in the buffer prior to completion of the first synchronization request such that the buffer includes at least a portion of the first data and the second data, returning a completion status when processing for the first synchronization request is completed, and writing the second data to the tape medium subsequent to completion of the first synchronization request without a physical gap on the tape medium between data written in the first synchronization request, wherein receiving and queuing the second data subsequent to receiving the first synchronization request and prior to completion of the first synchronization request prevents the buffer from becoming empty while processing the first synchronization request and prevents the need for the first and second data from being written to the tape medium multiple times. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A non-transitory computer-readable medium storing code for data writing to a tape drive including a computer that receives a plurality of write requests for data pieces and a synchronization request corresponding to the write requests from a device and returns to the device a completion status of the synchronization request, wherein the tape drive includes an interface that receives a command from the device, a buffer that temporarily stores the data pieces sent from the device, a tape medium on which the data pieces stored in the buffer are recorded, and a write controller that records the data pieces on the tape medium from the buffer, the tape drive further comprises a function for queuing commands issued in succession from the device so as to asynchronously process the commands, and the code, when executed by the computer, causes the computer to execute the steps of:
-
receiving a first synchronization request for writing first data from the buffer to the tape medium, transmitting to the device a request for transferring second data to the buffer subsequent to receiving the first synchronization request and prior to completion of the first synchronization request, receiving the second data from the device in response to the request, the receiving occurring subsequent to receiving the first synchronization request and prior to completion of the first synchronization request, queuing the second data in the buffer prior to completion of the first synchronization request such that the buffer includes at least a portion of the first data and the second data, returning the completion status when processing for the first synchronization request is completed, and writing the second data to the tape medium subsequent to completion of the first synchronization request without a physical gap on the tape medium between data written in the first synchronization request, wherein receiving and queuing the second data subsequent to receiving the first synchronization request and prior to completion of the first synchronization request prevents the buffer from becoming empty while processing the first synchronization request and prevents the need for the first and second data from being written to the tape medium multiple times. - View Dependent Claims (18, 19, 20)
-
Specification