US7568067B1ExpiredUtility

Method for controlling magnetic tape unit

64
Assignee: FUJITSU LTDPriority: Aug 6, 1999Filed: Mar 30, 2000Granted: Jul 28, 2009
Est. expiryAug 6, 2019(expired)· nominal 20-yr term from priority
G11B 20/10G06F 3/0613G06F 3/0659G11B 2220/90G06F 3/0682
64
PatentIndex Score
8
Cited by
12
References
22
Claims

Abstract

A tape operation relating to EOF identification in an open process for a file is emulated, whereby the tape operation in the open process is simplified. Consequently, open-process, close-process performance, and process performance of a system accessing to a magnetic tape unit can be improved. In a method of this invention, a position of a head relative to a magnetic tape is fixed at a predetermined position in the open process for a file recorded on the magnetic tape, and when a command is received from a command issuing apparatus, emulation in which a tape operation according the command is virtually carried out in the magnetic tape unit without making said magnetic tape unit carry out a real tape operation, is executed.

Claims

exact text as granted — not AI-modified
1. A method for controlling a magnetic tape unit in response to a command from a command issuing apparatus, the method comprising:
 in an open process for a file recorded on a magnetic tape, fixing a position of a head (hereinafter referred to as a real head position) relative to said magnetic tape at a predetermined position in said magnetic tape unit; and 
 when receiving a command directing to read an end-of-file label from said command issuing apparatus, executing emulation in which a tape operation of reading said end-of-file label according to said command is virtually carried out in said magnetic tape unit without making said magnetic tape unit carry out a real tape operation, 
 wherein in a close process for said file, an end-of-file label read by said magnetic tape unit in response to a command from said command issuing apparatus is saved in a save area, and 
 in an open process for said file, said end-of-file label is transferred to said command issuing apparatus from said save area in response to a command directing to read said end-of-file label without making said magnetic tape unit carry out a real read operation. 
 
   
   
     2. The method for controlling a magnetic tape unit according to  claim 1 , wherein in a close process for said file, an end-of-file label written by said magnetic tape unit in response to a command from said command issuing apparatus is saved in a save area; and
 in an open process for said file, said end-of-file label is transferred to said command issuing apparatus from said save area in response to a command directing to read said end-of-file label without making said magnetic tape unit carry out a real read operation. 
 
   
   
     3. The method for controlling a magnetic tape unit according to  claim 1 , wherein in a close process for said file, said magnetic tape unit is made to carry out a real read operation to really read an end-of-file label, which is skipped in said magnetic tape unit in response to a command from said command issuing apparatus, said read end-of-file label is saved in a save area; and
 in an open process for said file, said end-of-file label is transferred to said command issuing apparatus from said save area in response to a command directing to read said end-of-file label without making said magnetic tape unit carry out a real read operation. 
 
   
   
     4. The method for controlling a magnetic tape unit according to  claim 1 , wherein
 in a close process for said file, an end-of-file label skipped in said magnetic tape unit is response to a command from said command issuing apparatus and really read by a real read operation in said magnetic tape unit is saved in a save area; and 
 in an open process for said file, when a command directing to read said end-of-file label is received in a state in which said end-of-file label has failed to be saved in said save area at the time of the close process for said file, said magnetic tape unit is made to carry out a real read operation to really read said end-of-file label, and said read end-of-file label is transferred to said command issuing apparatus. 
 
   
   
     5. The method for controlling a magnetic tape unit according to  claim 1 , wherein a data buffer for temporarily storing write data to said magnetic tape and read data from said magnetic tape therein is interposed between said command issuing, apparatus and said magnetic tape unit to asynchronously carry out a read/write process between said command issuing apparatus and said data buffer and a read/write process between said data buffer and said magnetic tape unit. 
   
   
     6. The method for controlling a magnetic tape unit according to  claim 1 , wherein a tape operation of said magnetic tape unit is such controlled that, on said magnetic tape, the first tape mark is written after additionally written after said file; and the last data block of said file, the first end-of-file label and the second end-of-file label are written after said first tape mark, the second tape mark is written after said second end-of-file label, and the third tape mark is further written after said second tape mark when said file is the last on said magnetic tape, whereas the next file is written over said third tape mark to be written when the next file is additionally written after said file; and
 said emulation is executed between immediately before said first tape mark and immediately after said third tape mark while fixing said head at said predetermined position which is immediately after said second tape mark. 
 
   
   
     7. The method for controlling a magnetic tape unit according to  claim 6 , wherein while said emulation is executed, a virtual position of said head (hereinafter referred to as a virtual head position) relative to said magnetic tape in said magnetic tape unit is managed as a relative position of said head relative to said predetermined position. 
   
   
     8. The method for controlling a magnetic tape unit according to  claim 7 , wherein when a command requiring the real head position in said magnetic tape unit is received while said emulation is executed, a sum of said predetermined position and said relative position is generated, and said sum is reported as the real head position to said command issuing apparatus. 
   
   
     9. The method for controlling a magnetic tape unit according to  claim 7 , wherein when said magnetic tape unit is shifted to a real operation while said emulation is executed, the real head position in said magnetic tape unit is generated as a sum of said predetermined position and said relative position, and said head in said magnetic tape unit is re-positioned at said real head position. 
   
   
     10. The method for controlling the magnetic tape unit according to  claim 6 , wherein in a state in which both of said first end-of-file label and said second end-of-file label are saved in said save areas, and in a state in which reading/writing up to said second tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command, and a write tape mark command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space-file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read command, a read back command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     11. The method for controlling a magnetic tape unit according to  claim 6 , wherein in a state in which both of said first end-of-file label and said second end-of-file label are saved in said save areas, and in a state in which reading/writing up to said third tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said third tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position is immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     12. The method for con-trolling a magnetic tape unit according to  claim 6 , wherein in a state in which only said first end-of-file label is saved in said save area, and in a state in which reading/writing up to said second tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     13. The method for controlling a magnetic tape unit according to  claim 6 , wherein in a state in which only said first end-of-file label is saved in said save area, and in a state in which reading/writing up to said third tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said third tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     14. The method for controlling a magnetic tape unit according to  claim 6 , wherein in a state in which only said second end-of-file label is saved in said save area, and in a state in which reading/writing up to said second tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     15. The method for controlling a magnetic tape unit according to  claim 6 , wherein in a state in which only said second end-of-file label is saved in said save area, and in a state in which reading/writing up to said third tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said third tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     16. The method for controlling a magnetic tape unit according to  claim 6 , wherein in a state in which neither said first end-of-file label nor said second end-of-file label is saved in said save area, and in a state in which reading/writing up to said second tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when any one of a read backward command, a: back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or 
 when any one of a read command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     17. The method for controlling a magnetic tape unit according to  claim 6 , wherein in a state in which neither said first end-of-file label nor said second end-of-file label is saved in said save area, and in a state in which reading/writing up to said third tape mark is completed and the real head position is said predetermined position in said magnetic tape unit;
 when any one of a read backward command, a back space block command and a back space file command is received, with said virtual head position being immediately after said third tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command, a forward space file command and a write tape mark command is received, with said virtual head position being immediately after said second tape mark; 
 when any one of a read command, a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said second end-of-file label; 
 when any one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first end-of-file label; 
 when one of a read backward command, a back space block command, a back space file command, a forward space block command and a forward space file command is received, with said virtual head position being immediately after said first tape mark; or when one of a read command, forward space block command and a forward space file command is received, with said virtual head position being immediately after said last data block, said emulation is executed. 
 
   
   
     18. The method for controlling a magnetic tape unit according to  claim 6 , wherein when, in a close process for said file, a command requiring to write said third tape mark is received after said second tape mark is written on said magnetic tape, completion of a writing of said third tape mark is reported to said command issuing apparatus without writing said third tape mark. 
   
   
     19. The method for controlling a magnetic tape unit according to  claim 18 , wherein when a command directing to position said head outside a region from immediately before said first tape mark to immediately after said third tape mark is received, said third tape mark is written, and said magnetic tape unit is then made to carry out a tape operation according to said command. 
   
   
     20. The method for controlling a magnetic tape unit according to  claim 18 , wherein when EOD (End Of Data) is detected after said second tape mark in said magnetic tape unit during a tape operation in response to a command from said command issuing apparatus, detection of said third tape mark is reported in lieu of detection of said EOD to said command issuing apparatus. 
   
   
     21. The method for controlling a magnetic tape unit according to  claim 5 , wherein a plurality of end-of-file labels are recorded as one physical block on said magnetic tape by a packeting function;
 when a command directing to read one of said plurality of end-of-file labels is received in a close process for said file, said one physical block including the end-of-file label to be read is read out from said magnetic tape and stored in said data buffer; and 
 in an open process for said file, an end-of-file label corresponding to a command directing to read the one of said plurality of end-of-file labels is read out from said data buffer in response to said command and transferred to said command issuing apparatus. 
 
   
   
     22. A method for controlling a magnetic tape unit in an open process for a file recorded on a magnetic tape, the method comprising:
 receiving a command from a command issuing apparatus, the command directing to read an end-of-file label; and 
 executing emulation in which a tape operation of reading said end-of-file label according to said command is virtually carried out in said magnetic tape unit without making said magnetic tape unit carry out a real tape operation, wherein 
 in a close process for said file, the end-of-file label read by said magnetic tape unit in response to the command from said command issuing apparatus is saved in a save area, and 
 in the open process for the file, the end-of-file label is transferred to the command issuing apparatus from the save area in response to a command directing to read said end-of-file label without making said magnetic tape unit carry out a real read operation.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.