Patent ID: 8489785

Claim:
An apparatus for writing data in a buffer to a tape medium, comprising: a receiving unit for receiving a first command and a second command from a host, the first command instructing data in the buffer to be forcibly written to the tape medium and the second command instructing delimiter information to be forcibly written to the tape medium; a writing unit for writing the data in the buffer and speculative delimiter information to the tape medium in response to receipt of the first command; a processing unit for processing the speculative delimiter information as valid delimiter information when the receiving unit receives the second command after the first command; a recording unit for recording information in a recording medium, the information indicating that the speculative delimiter information is written to the tape medium by the writing unit; and the processing unit processing the speculative delimiter information as valid delimiter information by erasing the information recorded in the recording medium, wherein the processing unit is configured to disable the speculative delimiter information as valid delimiter information when the receiving unit receives a third command after the first command.