JP2006190075A - Information processor and information processing method, and program - Google Patents

Information processor and information processing method, and program Download PDF

Info

Publication number
JP2006190075A
JP2006190075A JP2005001335A JP2005001335A JP2006190075A JP 2006190075 A JP2006190075 A JP 2006190075A JP 2005001335 A JP2005001335 A JP 2005001335A JP 2005001335 A JP2005001335 A JP 2005001335A JP 2006190075 A JP2006190075 A JP 2006190075A
Authority
JP
Japan
Prior art keywords
data
information
recording
attribute information
recorded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2005001335A
Other languages
Japanese (ja)
Inventor
Yoshinori Honjo
良規 本庄
Tadashi Osue
匡 尾末
Takeshi Ichimura
健 市村
Katsuya Arai
勝也 新井
Katsuaki Ikema
克明 池間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2005001335A priority Critical patent/JP2006190075A/en
Publication of JP2006190075A publication Critical patent/JP2006190075A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To record attribute information of data recorded in a magnetic tape in a MIC by a table format. <P>SOLUTION: In an attribute information table recorded in the MIC of a tape cassette mounted on a tape streamer drive, a title of a file name, a preparation date and an update date of a file, a data size, a data kind showing a kind of data of the file, a compressibility of the data, e.g. are registered as attribute information supplied from a host computer 210, and a group number, offset from the top of a group, etc. being information showing a data recording position being attribute information generated after finish of recording of the data are further registered as attribute information for each identifier with which data (file) of one recording unit recorded in the magnetic tape can be distinguished. This invention can be applied to a tape streamer drive. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、情報処理装置および情報処理方法、並びに、プログラムに関し、特に、データをシーケンシャルに記録する記録媒体記録されているデータを検索する場合に用いて好適な、情報処理装置および情報処理方法、並びに、プログラムに関する。   The present invention relates to an information processing device, an information processing method, and a program, and in particular, an information processing device and an information processing method suitable for use in searching for data recorded on a recording medium that sequentially records data, In addition, it relates to the program.

従来、ディジタルデータを磁気テープに記録したり、磁気テープに記録されたディジタルデータを再生することのできるデータ記録再生装置として、テープストリーマドライブがよく知られている。テープストリーマドライブに装着されるメディアであるテープカセットの磁気テープは、例えば、数10乃至数100GB(ギガバイト)程度の膨大な記録容量を有することが可能であり、このため、例えば、ホストコンピュータのハードディスク等に記録されたデータをバックアップする場合や、データサイズの大きい画像データや動画データ等からアーカイブを作成する場合などに広く利用されている(例えば、特許文献1)。   Conventionally, a tape streamer drive is well known as a data recording / reproducing apparatus capable of recording digital data on a magnetic tape and reproducing digital data recorded on the magnetic tape. A magnetic tape of a tape cassette, which is a medium mounted on a tape streamer drive, can have an enormous recording capacity of about several tens to several hundreds GB (gigabytes), for example. For this reason, for example, a hard disk of a host computer It is widely used when backing up data recorded in a file, or when creating an archive from image data or moving image data having a large data size (for example, Patent Document 1).

特開平09−134256公報JP 09-134256 A

特許文献1に記載のテープストリーマドライブでは、データの入出力に、SCSI(Small Computer System Interface)インターフェースが用いられている。すなわち、テープストリーマドライブに装着されるテープカセットの磁気テープにデータが記録される際には、ホストコンピュータから、例えば32kバイトを1レコードとしてデータが送信され、送信されたデータは、SCSIインターフェースを介してテープストリーマドライブに入力される。そして、入力されたデータは、圧縮され、必要に応じて、バッファリングされ、変調された後、RFアンプを介して、磁気ヘッドに供給され、磁気テープに記録される。また、テープカセットに記録されたデータが読み出される場合、磁気ヘッドにより読み出されたデータは、復調され、必要に応じてバッファリングされた後、伸長されて、ホストコンピュータに送信される。   The tape streamer drive described in Patent Document 1 uses a SCSI (Small Computer System Interface) interface for data input / output. That is, when data is recorded on the magnetic tape of a tape cassette mounted on the tape streamer drive, the data is transmitted from the host computer, for example, with 32 kbytes as one record, and the transmitted data is transmitted via the SCSI interface. Is input to the tape streamer drive. The input data is compressed, buffered as necessary, modulated, supplied to a magnetic head via an RF amplifier, and recorded on a magnetic tape. When data recorded on the tape cassette is read, the data read by the magnetic head is demodulated, buffered as necessary, decompressed, and transmitted to the host computer.

また、テープカセットには、不揮発性メモリ(MIC:Memory In Cassette)が設けられており、テープストリーマドライブのシステムコントローラから不揮発性メモリにデータが記録されるとともに、テープストリーマドライブのシステムコントローラから不揮発性メモリに記録されたデータが読み出されるようになされている。そして、不揮発性メモリとホストコンピュータとの間では、SCSIのコマンドを用いて、情報が授受されるので、不揮発性メモリとホストコンピュータとの間を、例えば、SCSIインターフェースとは独立したシリアルデータバスなどで結線する必要がない。   The tape cassette also has a non-volatile memory (MIC: Memory In Cassette) that records data from the system controller of the tape streamer drive to the non-volatile memory and non-volatile from the system controller of the tape streamer drive. Data recorded in the memory is read out. Information is exchanged between the nonvolatile memory and the host computer using SCSI commands. For example, a serial data bus independent of the SCSI interface is provided between the nonvolatile memory and the host computer. There is no need to connect with.

テープストリーマドライブを用いて、データをバックアップしたり、アーカイブを作成するホストコンピュータとしては、大型計算機から、一般的なパーソナルコンピュータまで、さまざまなものが用いられる。   As a host computer for backing up data or creating an archive using a tape streamer drive, various computers ranging from large computers to general personal computers are used.

大型計算機が広く用いられていた時代において、磁気テープにデータを記録する場合に用いられていたファイルフォーマットには、例えば、ANSI(American National Standards Institute)/JISラベル付き磁気テープフォーマットや、IBMラベル付き磁気テープフォーマット等があり、これらの磁気テープフォーマットのうち、例えば、JIS―SX―0601では、ファイル名(最大17文字)などを含むラベルとファイル本体との繰り返しによって、データが磁気テープに記録されるように規定されており、フォーマットの規則において、ファイル編成、レコードの固定長、可変長の別までが規定されている。   In the era when large-scale computers were widely used, file formats used for recording data on magnetic tape include, for example, ANSI (American National Standards Institute) / JIS label magnetic tape format and IBM label For example, in JIS-SX-0601, data is recorded on the magnetic tape by repeating the label including the file name (up to 17 characters) and the file body. In the format rules, file organization, fixed record length, and variable length are specified.

これらの磁気テープフォーマットに対して、磁気テープの駆動やその制御に馴染まない、すなわち、そのままでは磁気テープに記録することができない、例えば、ISAM(Indexed Sequential Access Method)ファイルやVSAM(Virtual Storage Access Method)ファイルなどのファイルフォーマットもある。これらのフォーマットのデータは、例えば、固定行の扱いなど、そのデータ編成のために、そのままでは、磁気テープへ記録することができなかった。   For these magnetic tape formats, it is unfamiliar with the drive and control of the magnetic tape, that is, it cannot be recorded on the magnetic tape as it is, for example, an ISAM (Indexed Sequential Access Method) file or a VSAM (Virtual Storage Access Method). ) There are also file formats such as files. Data in these formats cannot be recorded on a magnetic tape as it is for data organization such as handling of fixed rows.

また、現在、広く用いられているファイルフォーマットには、順次ファイルと称される、磁気テープに直接記録できる形式のファイルフォーマットもある。例えば、UNIX(登録商標)では、ファイルシステムそのものが、ディスク、磁気テープなどの区別なく単一のバイトストリームとされているが、磁気テープに記録されるデータのファイルシステム上の編成等については、tar(Tape archiver)等のアプリケーションプログラムで設定されている。   In addition, currently widely used file formats include a file format called a sequential file that can be directly recorded on a magnetic tape. For example, in UNIX (registered trademark), the file system itself is a single byte stream regardless of whether it is a disk, a magnetic tape or the like. It is set by an application program such as tar (Tape archiver).

また、従来のテープストリーマドライブとホストコンピュータとの間のインターフェースにおいて、アプリケーションレイヤー(電気的な接続などの物理レイヤーやトランスポ−トレイヤーではなく、論理的なコマンドセットなどを規定するレイヤー)の論理的なコマンドセットは、HDDなどのランダムアクセス装置用のコマンドセットをテープストリーマドライブ用のコマンドセットに修正、拡張したものである。   In addition, in the interface between the conventional tape streamer drive and the host computer, the logical layer of the application layer (the layer that defines the logical command set, etc., not the physical layer or transport layer such as electrical connection) The command set is obtained by correcting and expanding a command set for a random access device such as an HDD into a command set for a tape streamer drive.

従来のパーソナルコンピュータ等と周辺機器とで主に用いられているインターフェースには、例えば、SCSI(Small Computer System Interface)、ATA(AT Attachment)、ATAPI(ATA Packet Interface)などがある。SCSIは、ANSI(American National Standards Institute)で規格化されている、外付けのハードディスクやMO(magneto optic)、CD−Rドライブなどの周辺機器をパーソナルコンピュータに接続する際のシステムインターフェースである。ATAは、ANSIで規格化されている、主にHDD用のインターフェースとして用いられているIDE(Integrated Drive Electronics)の正式な規格名称である。ATAPIは、IDEコントローラに、例えば、CD−ROMなどのハードディスク以外のデバイスを接続するために考案されたパケットインターフェイスであり、IDEと比較すると、転送速度の向上やリムーバブルメディアのサポート、ポータブルPC向けの機能などが規格化されている。ATAPIでは、SCSIコマンドをATAコマンドに変換することができるため、ATAPIを用いることにより、高価なSCSIインターフェースを必要としないCD−ROMドライブを比較的容易に開発することが可能となる。   Examples of interfaces mainly used in conventional personal computers and peripheral devices include SCSI (Small Computer System Interface), ATA (AT Attachment), and ATAPI (ATA Packet Interface). SCSI is a system interface standardized by ANSI (American National Standards Institute) for connecting peripheral devices such as an external hard disk, MO (magneto optic), and CD-R drive to a personal computer. ATA is an official standard name of IDE (Integrated Drive Electronics) standardized by ANSI and mainly used as an interface for HDD. ATAPI is a packet interface designed to connect devices other than hard disks, such as CD-ROM, to the IDE controller. Compared with IDE, ATAPI improves transfer speed, supports removable media, and is suitable for portable PCs. Functions are standardized. Since ATAPI can convert a SCSI command into an ATA command, a CD-ROM drive that does not require an expensive SCSI interface can be relatively easily developed by using ATAPI.

これらのインターフェース規格ごとに、磁気テープへのデータの記録再生に関する拡張コマンドセットが定められており、これらのコマンドセットを用いて、磁気テープへ記録されるデータを単一のストリームとみなし、磁気テープの先頭位置や現在の記録再生位置を基準として、ブロック単位のアドレス、バイト単位のアドレス、ファイルマーク単位、または、セットマーク単位で、位置決めや、データの読み出し、または、書き込み等を指令することが可能である。   For each of these interface standards, an extended command set for recording / reproducing data on magnetic tape is defined. Using these command sets, data recorded on magnetic tape is regarded as a single stream, and magnetic tape is used. It is possible to command positioning, data reading, or writing in block unit addresses, byte unit addresses, file mark units, or set mark units with reference to the start position of the file and the current recording / playback position. Is possible.

すなわち、従来のパーソナルコンピュータ等と周辺機器とで主に用いられている、SCSI、ATA、ATAPIなどのインターフェース規格においては、ホストコンピュータにおいてファイルやフォルダとして扱われているデータ単位の概念がない。また、テープストリーマドライブも、ホストコンピュータにおいてファイルやフォルダとして扱われているデータ単位の概念を有さずに、磁気テープへのデータの記録または磁気テープに記録されているデータの再生に関する処理を行っている。   That is, in the interface standards such as SCSI, ATA, and ATAPI mainly used in conventional personal computers and peripheral devices, there is no concept of data units handled as files and folders in the host computer. Also, the tape streamer drive does not have the concept of data units that are handled as files and folders in the host computer, and performs processing related to recording data on the magnetic tape or reproducing data recorded on the magnetic tape. ing.

ホストコンピュータにおいてファイルやフォルダとして扱われているデータ単位を認識し、磁気テープに記録されるデータのファイルフォーマットを規定するのは、ホストコンピュータにおいて実行されるアプリケーションプログラムであり、規定されるフォーマットには、例えば、マイクロソフト・ウインドウズ(商標)NTが規定するMTF(Microsoft Tape Format)や、UNIX(登録商標)におけるtar(Tape Archiver)コマンド(圧縮機能はないが複数のファイルを1つにまとめたり、アーカイブしたファイルを元に戻したりして、ファイルをまとめて転送する際に用いられるコマンド)が規定するフォーマット等がある。   It is an application program executed in the host computer that recognizes the data unit handled as a file or folder in the host computer and defines the file format of the data recorded on the magnetic tape. For example, MTF (Microsoft Tape Format) specified by Microsoft Windows (trademark) NT, and tar (Tape Archiver) command in UNIX (trademark) (without compression function, but multiple files can be combined into one For example, there are formats defined by a command used to restore the original file and transfer the files collectively.

上述したテープストリーマドライブは、大容量の記憶容量を持つという特長がある反面、記録再生の位置決め時間が長いという課題を有する装置である。   The tape streamer drive described above is characterized by having a large storage capacity, but has the problem of long recording / reproducing positioning time.

テープストリーマドライブでは、装着されたテープカセットの磁気テープにデータとともに記録されているファイルの識別子(多くの場合、記録されているデータのそれぞれの先頭部分に記録されている)を読み取らなければ、磁気テープに記録されているデータの内容を知ることができない。このため、テープストリーマドライブを用いた、磁気テープへのデータの記録においては、ユーザが所望するデータへアクセスするために、記録されているデータを先頭から走査していかなければならないため、ファイルシステムのディレクトリ情報領域を有することによりランダムアクセス可能なHDDなどと比較して、所望するデータへのアクセス時間がかかってしまう。   A tape streamer drive must read the identifier of a file recorded with data on the magnetic tape of the installed tape cassette (in many cases, it is recorded at the beginning of each recorded data). The contents of data recorded on the tape cannot be known. For this reason, in recording data on a magnetic tape using a tape streamer drive, it is necessary to scan the recorded data from the beginning in order to access the data desired by the user. This directory information area requires a longer access time to the desired data as compared to a randomly accessible HDD or the like.

テープストリーマドライブによる磁気テープへのデータの記録における、この様な欠点をカバーするために、例えば、Windows(登録商標)付属のバックアップユーティリティー(NTBACKUP.EXE)においては、カタログと称される、インデックスやディレクトリ情報の様な情報を、ホストコンピュータにおいて保持し、ホストコンピュータがテープストリーマドライブを制御して、磁気テープにデータを記録させたり、磁気テープに記録されているデータを読み出す処理において、カタログを参照することができるようになされている。すなわち、ホストコンピュータが、テープストリーマドライブによって磁気テープに記録されるデータのファイル情報を記憶していた。   To cover such drawbacks in recording data on magnetic tape with a tape streamer drive, for example, in the backup utility (NTBACKUP.EXE) included with Windows (registered trademark), an index, Information such as directory information is held in the host computer, and the host computer controls the tape streamer drive to record data on the magnetic tape and to read the data recorded on the magnetic tape, refer to the catalog. Has been made to be able to. That is, the host computer stores file information of data recorded on the magnetic tape by the tape streamer drive.

磁気テープは、リムーバブルなメディアであるから、カタログを保持しているホストコンピュータ以外の他のホストコンピュータにより、磁気テープにデータを記録させたり、磁気テープに記録されているデータを読み出す処理の指令を受ける場合がある。そのような場合、カタログを保持していないホストコンピュータは、カタログを作成する動作を行うために、磁気テープを走査する必要がある。磁気テープの大容量化が更に進んだ場合、カタログ作成に長時間を要してしまう。   Since magnetic tape is a removable medium, a host computer other than the host computer that holds the catalog can be used to instruct data to be recorded on the magnetic tape or to read data recorded on the magnetic tape. There is a case to receive. In such a case, the host computer that does not hold the catalog needs to scan the magnetic tape in order to perform the operation of creating the catalog. If the capacity of magnetic tape is further increased, it takes a long time to create a catalog.

このように、テープストリーマドライブの動作を規定しているのはホストコンピュータであるから、ホストコンピュータの処理と独立してテープストリーマドライブの動作を最適化することにより、磁気テープのダメージの低減化や、アクセス時間の短縮を図ることは困難であった。   As described above, since the host computer regulates the operation of the tape streamer drive, the damage of the magnetic tape can be reduced by optimizing the operation of the tape streamer drive independently of the processing of the host computer. It was difficult to shorten the access time.

また、テープストリーマドライブは、磁気テープへのデータのバックアップやアーカイブの作成のために用いられることが多い。すなわち、データの書き込み時においては、既に、ホストコンピュータのハードディスク上に完結した1つのファイルとして存在しているため、例えば、ファイル名やファイルのサイズ等の属性情報がすでに確定している。しかしながら、従来のテープストリーマドライブによる磁気テープへのデータの記録または再生処理においては、その処理の制御に、例えば、ファイルサイズなどの属性情報を利用することができなかった。   Tape streamer drives are often used to back up data to magnetic tapes or create archives. That is, at the time of data writing, since it already exists as one complete file on the hard disk of the host computer, for example, attribute information such as a file name and a file size has already been determined. However, in data recording or reproduction processing on a magnetic tape by a conventional tape streamer drive, attribute information such as file size cannot be used for controlling the processing.

本発明はこのような状況に鑑みてなされたものであり、記録媒体にシーケンシャルに記録されたデータを、容易に検索することができるようにするものである。   The present invention has been made in view of such a situation, and makes it possible to easily retrieve data sequentially recorded on a recording medium.

本発明の情報処理装置は、シーケンシャルにデータが記録されている記録媒体を装着可能であり、記録媒体に記録されているデータまたはデータに関する情報を処理する情報処理装置であって、記録媒体内のデータが記録されている記録領域とは異なる領域であって、データの属性情報がテーブル形式で記録されている属性情報記録領域から、属性情報を読み出す属性情報読み出し手段と、他の情報処理装置から供給された、コマンドおよびコマンドの実行に必要な情報を取得する取得手段と、取得手段により取得された情報を基に、属性情報読み出し手段により読み出された属性情報から、データに対応するレコードを検索する検索手段とを備えることを特徴とする。   An information processing apparatus according to the present invention is an information processing apparatus that is capable of mounting a recording medium on which data is sequentially recorded and that processes data recorded on the recording medium or information related to the data. Attribute information reading means for reading attribute information from an attribute information recording area in which data attribute information is recorded in a table format, which is different from a recording area in which data is recorded, and from other information processing apparatuses Based on the supplied acquisition means for acquiring the command and information necessary for execution of the command and the information acquired by the acquisition means, a record corresponding to the data is obtained from the attribute information read by the attribute information reading means. And a search means for searching.

検索手段により検索されたレコードに対応するデータを再生する再生手段を更に備えさせるようにすることができ、取得手段には、記録媒体に記録されたデータを検索するための情報と、情報を基に検索されたレコードに対応するデータの再生を要求するコマンドとを取得させるようにすることができる。   A reproducing means for reproducing data corresponding to the record searched by the searching means can be further provided. The acquiring means includes information for searching the data recorded on the recording medium, and information based on the information. And a command requesting reproduction of data corresponding to the retrieved record.

検索手段により検索されたレコードに対応する属性情報の他の情報処理装置への送信を制御する属性情報送信制御手段を更に備えさせるようにすることができ、取得手段には、記録媒体に記録されたデータを検索するための情報と、情報を基に検索されたレコードに含まれる属性情報の送信を要求するコマンドを取得させるようにすることができる。   An attribute information transmission control unit that controls transmission of attribute information corresponding to the record searched by the search unit to another information processing apparatus can be further provided. The acquisition unit stores the attribute information in a recording medium. It is possible to acquire information for searching for data and a command for requesting transmission of attribute information included in a record searched based on the information.

検索手段により検索されたレコードに含まれる属性情報を用いて、データに関する統計情報を算出する算出手段と、算出手段により算出された統計情報の、他の情報処理装置への送信を制御する統計情報送信制御手段とを更に備えさせるようにすることができ、取得手段には、記録媒体に記録されたデータを検索するための情報と、データに関する統計情報の送信を要求するコマンドを取得させるようにすることができる。   Statistical information for calculating statistical information about data using attribute information included in the record searched by the searching means, and statistical information for controlling transmission of the statistical information calculated by the calculating means to other information processing devices A transmission control unit, and the acquisition unit acquires information for searching for data recorded in the recording medium and a command for requesting transmission of statistical information about the data. can do.

記録媒体は、磁気テープにデータを記録することができるテープカセットであるものとすることができる。   The recording medium can be a tape cassette capable of recording data on a magnetic tape.

属性情報記録領域は、テープカセットに設けられた磁気テープとは異なるメモリの記録領域の少なくとも一部であるものとすることができる。   The attribute information recording area may be at least a part of a recording area of a memory different from the magnetic tape provided in the tape cassette.

記録媒体は、CD−Rであるものとすることができる。   The recording medium can be a CD-R.

記録媒体に記録されるデータおよびデータの属性情報を取得する取得手段と、記録媒体にデータを記録するデータ記録手段と、属性情報記録領域への、属性情報の記録を制御する属性情報記録制御手段とを更に備えさせるようにすることができる。   Acquisition means for acquiring data recorded on the recording medium and data attribute information; data recording means for recording data on the recording medium; and attribute information recording control means for controlling recording of attribute information in the attribute information recording area Can be further provided.

取得手段により取得されたデータを一時保存する複数のデータ一時記憶手段と、取得手段により取得された属性情報を基に、データ一時記憶手段へのデータの一時記憶を制御する記憶制御手段とを更に備えさせるようにすることができ、記憶制御手段には、複数の一時記憶手段のうちのいずれかにおいて、一時記憶手段が備える記憶容量のデータが記憶された場合、データを読み出させるようにすることができ、データ記録手段には、記憶制御手段により読み出されたデータを記録媒体に記録させるようにすることができる。   A plurality of data temporary storage means for temporarily storing data acquired by the acquisition means, and a storage control means for controlling temporary storage of data in the data temporary storage means based on the attribute information acquired by the acquisition means. The storage control means is configured to read data when the storage capacity data of the temporary storage means is stored in any of the plurality of temporary storage means. The data recording unit can record the data read by the storage control unit on a recording medium.

本発明の情報処理方法は、シーケンシャルにデータが記録されている記録媒体を装着可能であり、記録媒体に記録されているデータまたはデータに関する情報を処理する情報処理装置の情報処理方法であって、他の情報処理装置から供給された、コマンドおよびコマンドの実行に必要な情報の取得を制御する取得制御ステップと、制御取得ステップの処理により取得が制御された情報を基に、記録媒体内のデータが記録されている記録領域とは異なる領域であって、データの属性情報がテーブル形式で記録されている属性情報記録領域から、属性情報を読み出して、所定のデータに対応するレコードを検索する検索ステップとを含むことを特徴とする。   An information processing method of the present invention is an information processing method of an information processing apparatus that can be loaded with a recording medium on which data is sequentially recorded and that processes data recorded on the recording medium or information about the data. The data in the recording medium based on the acquisition control step for controlling the acquisition of the command and the information necessary for execution of the command supplied from another information processing apparatus, and the information whose acquisition is controlled by the process of the control acquisition step Search that reads the attribute information from the attribute information recording area in which the attribute information of the data is recorded in a table format and searches for a record corresponding to the predetermined data. And a step.

本発明のプログラムは、シーケンシャルにデータが記録されている記録媒体に記録されているデータまたはデータに関する情報の処理をコンピュータに実行させるためのプログラムであって、他の情報処理装置から供給された、コマンドおよびコマンドの実行に必要な情報の取得を制御する取得制御ステップと、制御取得ステップの処理により取得が制御された情報を基に、記録媒体内のデータが記録されている記録領域とは異なる領域であって、データの属性情報がテーブル形式で記録されている属性情報記録領域から、属性情報を読み出して、所定のデータに対応するレコードを検索する検索ステップとを含むことを特徴とする処理をコンピュータに実行させる。   The program of the present invention is a program for causing a computer to execute processing of data recorded on a recording medium in which data is sequentially recorded or information related to data, and is supplied from another information processing apparatus. Based on the acquisition control step for controlling the acquisition of the command and information necessary for executing the command and the information whose acquisition is controlled by the process of the control acquisition step, it is different from the recording area in which the data in the recording medium is recorded And a retrieval step of retrieving the attribute information from the attribute information recording area in which the attribute information of the data is recorded in a table format and searching for a record corresponding to the predetermined data Is executed on the computer.

本発明の情報処理装置および情報処理方法、並びに、プログラムにおいては、他の情報処理装置から供給された、コマンドおよびコマンドの実行に必要な情報が取得され、取得された情報を基に、記録媒体内のデータが記録されている記録領域とは異なる領域であって、データの属性情報がテーブル形式で記録されている属性情報記録領域から、属性情報が読み出されて、所定のデータに対応するレコードが検索される。   In the information processing apparatus, the information processing method, and the program according to the present invention, a command and information necessary for executing the command supplied from another information processing apparatus are acquired, and a recording medium is obtained based on the acquired information. The attribute information is read out from the attribute information recording area in which the attribute information of the data is recorded in a table format, which is different from the recording area in which the data is recorded, and corresponds to the predetermined data A record is retrieved.

本発明によれば、データを検索することができ、特に、データの記録領域と異なる記録領域にテーブル形式で記録されているデータの属性情報が読み出されるので、読み出された属性情報に基づいて、所定のデータに対応するレコードを検索することができる。   According to the present invention, it is possible to search for data, and in particular, attribute information of data recorded in a table format in a recording area different from the data recording area is read out. Based on the read attribute information The record corresponding to the predetermined data can be searched.

以下に本発明の実施の形態を説明するが、請求項に記載の構成要件と、発明の実施の形態における具体例との対応関係を例示すると、次のようになる。この記載は、請求項に記載されている発明をサポートする具体例が、発明の実施の形態に記載されていることを確認するためのものである。従って、発明の実施の形態中には記載されているが、構成要件に対応するものとして、ここには記載されていない具体例があったとしても、そのことは、その具体例が、その構成要件に対応するものではないことを意味するものではない。逆に、具体例が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その具体例が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。   Embodiments of the present invention will be described below. Correspondences between constituent elements described in the claims and specific examples in the embodiments of the present invention are exemplified as follows. This description is to confirm that specific examples supporting the invention described in the claims are described in the embodiments of the invention. Therefore, even though there are specific examples that are described in the embodiment of the invention but are not described here as corresponding to the configuration requirements, the specific examples are not included in the configuration. It does not mean that it does not correspond to a requirement. On the contrary, even if a specific example is described here as corresponding to a configuration requirement, this means that the specific example does not correspond to a configuration requirement other than the configuration requirement. not.

さらに、この記載は、発明の実施の形態に記載されている具体例に対応する発明が、請求項に全て記載されていることを意味するものではない。換言すれば、この記載は、発明の実施の形態に記載されている具体例に対応する発明であって、この出願の請求項には記載されていない発明の存在、すなわち、将来、分割出願されたり、補正により追加される発明の存在を否定するものではない。   Further, this description does not mean that all the inventions corresponding to the specific examples described in the embodiments of the invention are described in the claims. In other words, this description is an invention corresponding to the specific example described in the embodiment of the invention, and the existence of an invention not described in the claims of this application, that is, in the future, a divisional application will be made. Nor does it deny the existence of an invention added by amendment.

請求項1に記載の情報処理装置(例えば、図1のテープストリーマドライブ1)は、 シーケンシャルにデータが記録されている記録媒体(例えば、磁気テープまたはCD−R)を装着可能であり、記録媒体に記録されているデータまたはデータに関する情報を処理する情報処理装置であって、記録媒体内のデータが記録されている記録領域とは異なる領域であって、データの属性情報がテーブル形式で記録されている属性情報記録領域(例えば、図1のMIC63)から、属性情報を読み出す属性情報読み出し手段(例えば、図2のテーブル読み出し制御部125)と、他の情報処理装置から供給された、コマンドおよびコマンドの実行に必要な情報を取得する取得手段(例えば、図2のコマンド取得部101)と、取得手段により取得された情報を基に、属性情報読み出し手段により読み出された属性情報から、データに対応するレコードを検索する検索手段(例えば、図2の検索処理部124)とを備えることを特徴とする。   The information processing apparatus according to claim 1 (for example, the tape streamer drive 1 in FIG. 1) can be loaded with a recording medium (for example, a magnetic tape or a CD-R) in which data is sequentially recorded. Is an information processing apparatus for processing data recorded on or information relating to data, and is an area different from the recording area in which data in the recording medium is recorded, and data attribute information is recorded in a table format The attribute information reading means (for example, the table reading control unit 125 in FIG. 2) for reading the attribute information from the attribute information recording area (for example, the MIC 63 in FIG. 1), and the command and An acquisition unit (for example, the command acquisition unit 101 in FIG. 2) that acquires information necessary for command execution and an acquisition unit Information based on the, to the attribute information read by the attribute information reading means, retrieval means for retrieving a record corresponding to the data (e.g., search processing section 124 in FIG. 2); and a.

検索手段により検索されたレコードに対応するデータを再生する再生手段(例えば、図1の再生ヘッド42)を更に備えることができ、取得手段は、記録媒体に記録されたデータを検索するための情報と、情報を基に検索されたレコードに対応するデータの再生を要求するコマンドとを取得することができる。   Reproducing means (for example, reproducing head 42 in FIG. 1) for reproducing data corresponding to the record searched by the searching means can be further provided, and the acquiring means is information for searching for data recorded on the recording medium. And a command for requesting reproduction of data corresponding to the record retrieved based on the information.

検索手段により検索されたレコードに対応する属性情報の他の情報処理装置への送信を制御する属性情報送信制御手段(例えば、図1の問い合わせ結果情報供給制御部127)を更に備えることができ、取得手段は、記録媒体に記録されたデータを検索するための情報と、情報を基に検索されたレコードに含まれる属性情報の送信を要求するコマンドを取得することができる。   Attribute information transmission control means for controlling transmission of attribute information corresponding to the record searched by the search means to another information processing apparatus (for example, the inquiry result information supply control unit 127 in FIG. 1) can be further provided. The acquisition unit can acquire information for searching for data recorded in the recording medium and a command for requesting transmission of attribute information included in the record searched based on the information.

検索手段により検索されたレコードに含まれる属性情報を用いて、データに関する統計情報を算出する算出手段(例えば、図2の問い合わせ情報生成処理部126)と、算出手段により算出された統計情報の、他の情報処理装置への送信を制御する統計情報送信制御手段(例えば、図1の問い合わせ結果情報供給制御部127)とを更に備えることができ、取得手段は、記録媒体に記録されたデータを検索するための情報と、データに関する統計情報の送信を要求するコマンドを取得することができる。   Using the attribute information included in the record searched by the search means, the calculation means (for example, the inquiry information generation processing unit 126 in FIG. 2) that calculates statistical information about the data, the statistical information calculated by the calculation means, Statistical information transmission control means (for example, the inquiry result information supply control unit 127 in FIG. 1) for controlling transmission to other information processing apparatuses can be further provided, and the acquisition means stores the data recorded on the recording medium. Information for searching and a command for requesting transmission of statistical information about data can be acquired.

記録媒体は、磁気テープ(例えば、図1の磁気テープ62)にデータを記録することができるテープカセット(例えば、図1のテープカセット51)であるものとすることができる。   The recording medium may be a tape cassette (for example, the tape cassette 51 of FIG. 1) capable of recording data on a magnetic tape (for example, the magnetic tape 62 of FIG. 1).

属性情報記録領域は、テープカセットに設けられた磁気テープとは異なるメモリ(例えば、図1のMIC63)の記録領域の少なくとも一部であるものとすることができる。   The attribute information recording area may be at least a part of a recording area of a memory (for example, the MIC 63 in FIG. 1) different from the magnetic tape provided in the tape cassette.

記録媒体に記録されるデータおよびデータの属性情報を取得する取得手段(例えば、図1のUSBインターフェース21)と、記録媒体にデータを記録するデータ記録手段(例えば、図1の記録ヘッド41)と、属性情報記録領域への、属性情報の記録を制御する属性情報記録制御手段(例えば、図2のテーブル記憶制御部123)とを更に備えることができる。   An acquisition unit (for example, the USB interface 21 in FIG. 1) that acquires data recorded on the recording medium and data attribute information; and a data recording unit (for example, the recording head 41 in FIG. 1) that records data on the recording medium; Attribute information recording control means (for example, the table storage control unit 123 of FIG. 2) for controlling the recording of attribute information in the attribute information recording area can be further provided.

取得手段により取得されたデータを一時保存する複数のデータ一時記憶手段(例えば、図1のキャッシュメモリ29−1乃至29−n)と、取得手段により取得された属性情報を基に、データ一時記憶手段へのデータの一時記憶を制御する記憶制御手段(例えば、図1のキャッシュメモリコントローラ28)とを更に備えることができ、記憶制御手段は、複数の一時記憶手段のうちのいずれかにおいて、一時記憶手段が備える記憶容量のデータが記憶された場合、データを読み出すことができ、データ記録手段は、記憶制御手段により読み出されたデータを記録媒体に記録することができる。   Temporary data storage based on a plurality of data temporary storage means (for example, the cache memories 29-1 to 29-n in FIG. 1) for temporarily saving the data acquired by the acquisition means and the attribute information acquired by the acquisition means Storage control means (for example, the cache memory controller 28 in FIG. 1) for controlling temporary storage of data in the means, and the storage control means can be temporarily stored in any of the plurality of temporary storage means. When data having a storage capacity included in the storage unit is stored, the data can be read, and the data recording unit can record the data read by the storage control unit on a recording medium.

請求項10に記載の情報処理方法は、シーケンシャルにデータが記録されている記録媒体(例えば、磁気テープまたはCD−R)を装着可能であり、記録媒体に記録されているデータまたはデータに関する情報を処理する情報処理装置(例えば、図1のテープストリーマドライブ1)の情報処理方法であって、他の情報処理装置から供給された、コマンドおよびコマンドの実行に必要な情報の取得を制御する取得制御ステップ(例えば、図11のステップS111、ステップS114、または、ステップS117の処理)と、制御取得ステップの処理により取得が制御された情報を基に、記録媒体内のデータが記録されている記録領域とは異なる領域であって、データの属性情報がテーブル形式で記録されている属性情報記録領域(例えば、図1のMIC63)から、属性情報を読み出して、所定のデータに対応するレコードを検索する検索ステップ(例えば、図11のステップS112、ステップS115、または、ステップS118の処理)とを含むことを特徴とする。   The information processing method according to claim 10 can be loaded with a recording medium (for example, magnetic tape or CD-R) on which data is sequentially recorded, and data or information on the data recorded on the recording medium is stored. An information processing method for an information processing apparatus (for example, the tape streamer drive 1 in FIG. 1) to be processed, and an acquisition control for controlling acquisition of a command and information necessary for executing the command supplied from another information processing apparatus A recording area in which data in the recording medium is recorded based on the information whose acquisition is controlled by the step (for example, the process of step S111, step S114, or step S117 in FIG. 11) and the process of the control acquisition step. Is an attribute information recording area in which attribute information of data is recorded in a table format (for example, And a search step (for example, step S112, step S115, or step S118 in FIG. 11) of reading out attribute information from the MIC 63) and searching for a record corresponding to predetermined data. To do.

また、請求項11に記載のプログラムにおいても、各ステップが対応する実施の形態(但し一例)は、請求項10に記載の情報処理方法と同様である。   Also in the program according to claim 11, the embodiment (however, an example) to which each step corresponds is the same as the information processing method according to claim 10.

以下、図を参照して、本発明の実施の形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明を適用した、テープストリーマドライブ1の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of a tape streamer drive 1 to which the present invention is applied.

テープストリーマドライブ1は、図5を用いて後述するホストコンピュータから、磁気テープ62に記録されるデータや、テープストリーマドライブ1の動作を制御するためのコマンドなどの供給を受けるとともに、更に、記録されるデータやコマンドとともに、例えば、磁気テープ62に記録されるデータの属性情報や、磁気テープ62に記録されているデータを読み出すための検索条件または検索条件式など、コマンドの実行に関係する情報の供給を受け、それらを基に、装着されるテープカセット51の磁気テープ62へのデータの記録、または、磁気テープ62に記録されているデータの再生を行う。   The tape streamer drive 1 is supplied with data recorded on the magnetic tape 62 and a command for controlling the operation of the tape streamer drive 1 from a host computer, which will be described later with reference to FIG. Information related to command execution, such as attribute information of data recorded on the magnetic tape 62 and search conditions or search condition expressions for reading data recorded on the magnetic tape 62. Based on the supply, data is recorded on the magnetic tape 62 of the tape cassette 51 to be mounted, or data recorded on the magnetic tape 62 is reproduced.

USBインターフェース21は、ホストコンピュータから、磁気テープに記録されるデータ、コマンド、または、コマンドの実行に関係する各種情報などの供給を受け、磁気テープに記録されるデータを圧縮/伸張処理部27に供給し、コマンド、または、コマンドの実行に関係する各種情報をシステムコントローラ22に供給する。また、USBインターフェース21は、圧縮/伸長処理部27から供給された、磁気テープから読み出され、各種処理がなされたデータや、システムコントローラ22から供給された、コマンドに対するACKや、問い合わせ結果を示すデータを、ホストコンピュータに送出する。   The USB interface 21 receives data recorded on the magnetic tape, commands, or various information related to the execution of the command from the host computer, and sends the data recorded on the magnetic tape to the compression / decompression processing unit 27. The system controller 22 is supplied with various information related to the command or the execution of the command. In addition, the USB interface 21 indicates data that has been read from the magnetic tape supplied from the compression / decompression processing unit 27 and subjected to various processes, an ACK for a command supplied from the system controller 22, and an inquiry result. Send the data to the host computer.

ホストコンピュータとテープストリーマドライブ1とは、USB(Universal Serial Bas)の規格に基づいて、データの入出力が行われている。また、テープストリーマドライブ1においては、ホストコンピュータにおいて、例えば、1つのファイル(または1つのコンテンツ)として扱われていたデータを、データの記録を指令するコマンドが1回実行された場合に磁気テープ62に記録されるデータ(以下、1記録単位のデータと称するものとする)として扱うものとする。すなわち、ホストコンピュータからは、1記録単位のデータの記録ごとに、データの記録を指令するコマンドが送信され、また、1記録単位のデータ毎に属性情報が供給され、更に、1記録単位のデータの再生ごとに、データの再生を指令するコマンドが送信される。   The host computer and the tape streamer drive 1 perform data input / output based on the USB (Universal Serial Bas) standard. Further, in the tape streamer drive 1, when the host computer executes, for example, a command for instructing data recording once for data handled as one file (or one content), the magnetic tape 62 is used. Data (hereinafter referred to as data of one recording unit). That is, a command for commanding data recording is transmitted from the host computer for each recording of data in one recording unit, attribute information is supplied for each data in one recording unit, and further data in one recording unit is recorded. A command for instructing data reproduction is transmitted for each reproduction.

属性情報には、例えば、ファイル(1記録単位のデータ)のファイル名やタイトル、ファイルのデータの種類(例えば、動画データ、静止画データ、テキストデータ、音声データ、映像データなどの種類)、データサイズ、データ内容を説明する情報(例えば、テレビジョン放送番組などのコンテンツであれば、放送日時、放送局名、番組名、出演者名など)、データの作成者または版権を有するものの名称、データ作成に用いられたアプリケーション名、動画データや映像データの再生時間、動画データのフレームレート、ビットレート、サンプリングレート、コーディックタイプなどに関する情報、データの再生モードに関する情報、ファイルの作成日時や更新日時、データの圧縮率、エラーレートなどの信頼性情報、再生時に必要な平均転送レート、アクセス頻度、または、ユーザがファイル(1記録単位のデータ)に対して付加した情報などが用いられる。   The attribute information includes, for example, the file name and title of the file (data in one recording unit), the file data type (for example, moving image data, still image data, text data, audio data, video data, etc.), data Information describing size, data contents (for example, if it is a content such as a television broadcast program, broadcast date and time, broadcast station name, program name, performer name, etc.), name of data creator or copyrighted person, data Application name used for creation, video data and video data playback time, video data frame rate, bit rate, sampling rate, codec type information, data playback mode information, file creation date and update date, Reliability information such as data compression rate and error rate, and the level required for playback Transfer rate, access frequency, or the like information added by the user to the file (data of one recording unit) is used.

システムコントローラ22は、ホストコンピュータから、USBインターフェース21を介して供給されるコマンドに基づいて、テープストリーマドライブ1の動作を制御する。   The system controller 22 controls the operation of the tape streamer drive 1 based on a command supplied from the host computer via the USB interface 21.

具体的には、システムコントローラ22は、ホストコンピュータから、USBインターフェース21を介して、データの記録開始を指令するコマンドの供給を受けたとき、テープストリーマドライブ1の各部の動作を制御して、ホストコンピュータから供給されるデータを、装着されているテープカセット51の磁気テープ62に記録させるとともに、テープカセット51の磁気テープ62に記録されたデータの属性情報を取得または生成して、後述するMIC63に記録される属性情報テーブルに登録する。また、システムコントローラ22は、ホストコンピュータから、USBインターフェース21を介して、磁気テープ62に記録されたデータの検索を指令するコマンドと、検索のために必要な検索情報または検索式の供給を受けたとき、MIC63に記録された属性情報テーブルを参照して検索処理を行い、検索結果を、USBインターフェース21を介して、ホストコンピュータに送信する。   Specifically, the system controller 22 controls the operation of each part of the tape streamer drive 1 when receiving a command for instructing the start of data recording from the host computer via the USB interface 21. The data supplied from the computer is recorded on the magnetic tape 62 of the tape cassette 51 mounted, and the attribute information of the data recorded on the magnetic tape 62 of the tape cassette 51 is acquired or generated, and the MIC 63 described later is obtained. Register in the attribute information table to be recorded. In addition, the system controller 22 receives a command for instructing search of data recorded on the magnetic tape 62 and search information or search formula necessary for the search from the host computer via the USB interface 21. At this time, search processing is performed with reference to the attribute information table recorded in the MIC 63, and the search result is transmitted to the host computer via the USB interface 21.

さらに、システムコントローラ22は、ホストコンピュータから、USBインターフェース21を介して、磁気テープ62に記録された所定のデータへのアクセスや読み出しにかかる予定時間の通知を要求するコマンドの供給を受けたとき、所定のデータへのアクセスや読み出しにかかる予定時間を算出し、算出結果を、USBインターフェース21を介して、ホストコンピュータに送信する。また、システムコントローラ22は、ホストコンピュータから、USBインターフェース21を介して、磁気テープ62に記録された所定のデータの読み出しを指令するコマンドと、読み出させるデータを指定するための情報の供給を受けたとき、MIC63に記録された属性情報テーブルを参照し、テープストリーマドライブ1の各部の動作を制御して、所定のデータをテープカセット51の磁気テープ62から読み出させ、USBインターフェース21を介して、ホストコンピュータに送信させる。   Further, when the system controller 22 receives a command from the host computer for requesting notification of a scheduled time required to access or read predetermined data recorded on the magnetic tape 62 via the USB interface 21, The scheduled time required to access or read predetermined data is calculated, and the calculation result is transmitted to the host computer via the USB interface 21. Further, the system controller 22 receives a command for instructing reading of predetermined data recorded on the magnetic tape 62 and information for designating data to be read from the host computer via the USB interface 21. The attribute information table recorded in the MIC 63 is referred to, the operation of each part of the tape streamer drive 1 is controlled, and predetermined data is read from the magnetic tape 62 of the tape cassette 51, via the USB interface 21. , Send it to the host computer.

SRAM23およびフラッシュROM24は、システムコントローラ22に接続され、システムコントローラ22により実行されるプログラムや、それらのプログラムの実行に必要なデータなどが記憶される。具体的には、SRAM24は、システムコントローラ22により実行されるプログラムにおける各種フラグデータ等の記憶や演算処理などに用いるワークメモリとして用いられ、フラッシュROM24には、例えば、システムコントローラ22により実行されるプログラムや、制御に用いる定数等、または、テープストリーマドライブ1に関する情報が記憶される。なお、SRAM223またはフラッシュROM24のうちの一方、または、両方は、システムコントローラ22を構成するマイクロコンピュータの内部メモリとして構成してもよい。テープストリーマドライブ1に関する情報には、例えば、テープストリーマドライブ1の製造メーカ名、シリアル番号、製造年月日、現在の温度、装着されているテープカセット51の磁気テープ62の現在の巻き取り量などの情報がある。   The SRAM 23 and the flash ROM 24 are connected to the system controller 22 and store programs executed by the system controller 22 and data necessary for executing these programs. Specifically, the SRAM 24 is used as a work memory used for storage of various flag data in a program executed by the system controller 22 and arithmetic processing, and the flash ROM 24 includes, for example, a program executed by the system controller 22. And constants used for control, or information related to the tape streamer drive 1 is stored. Note that one or both of the SRAM 223 and the flash ROM 24 may be configured as an internal memory of a microcomputer configuring the system controller 22. Information related to the tape streamer drive 1 includes, for example, the manufacturer name, serial number, date of manufacture, current temperature, current winding amount of the magnetic tape 62 of the tape cassette 51 mounted, and the like. There is information.

カウンタ25は、システムコントローラ22の制御に基づいて、システムコントローラ22により実行されるプログラムにおいて、例えば、MIC63に記録される属性情報テーブルに登録される属性情報を生成するために必要な計数処理を実行する。タイマ26は、システムコントローラ22により参照されるタイマである。   The counter 25 executes, for example, a counting process necessary for generating attribute information registered in the attribute information table recorded in the MIC 63 in the program executed by the system controller 22 based on the control of the system controller 22. To do. The timer 26 is a timer that is referred to by the system controller 22.

圧縮/伸長処理部27は、ホストコンピュータから供給されるデータを、磁気テープ62記録する場合、システムコントローラ22の制御に基づいて、USBインターフェース21から供給されたデータに、必要に応じて、所定の方式の圧縮処理を施して、圧縮されたデータをキャッシュメモリコントローラ28に供給する。圧縮方法は、いずれの方法であっても良いが、例えば、LZ符号による圧縮が行われる場合、圧縮/伸長処理部27は、過去に処理した文字列に対して専用のコードを割り与え、辞書の形で格納し、それ以降に入力される文字列と辞書の内容とを比較することにより、入力されたデータを圧縮する。すなわち、入力データの文字列と辞書のコードとが一致しなかった場合、入力文字列のデータには逐次新たなコードが与えられて、そのコードが圧縮データとして出力されるとともに、入力文字列とそのコードが新たに辞書に登録され、入力データの文字列と辞書のコードとが一致した場合、辞書に登録されたコードが圧縮データとして出力されることにより、入力データの圧縮処理が行われる。   When the data supplied from the host computer is recorded on the magnetic tape 62, the compression / decompression processing unit 27 converts the data supplied from the USB interface 21 to a predetermined value based on the control of the system controller 22 as necessary. The compressed data is applied to the cache memory controller 28 by applying the compression processing of the system. Any compression method may be used. For example, when compression using an LZ code is performed, the compression / decompression processing unit 27 assigns a dedicated code to a character string processed in the past, and the dictionary The received data is compressed by comparing the character string input thereafter and the contents of the dictionary. That is, when the character string of the input data does not match the code of the dictionary, a new code is sequentially given to the data of the input character string, the code is output as compressed data, and the input character string When the code is newly registered in the dictionary and the character string of the input data matches the code of the dictionary, the code registered in the dictionary is output as compressed data, whereby the input data is compressed.

また、圧縮/伸長処理部27は、磁気テープ62記録されているデータを読み出して、ホストコンピュータに供給する場合、システムコントローラ22の制御に基づいて、キャッシュメモリコントローラ28から供給される圧縮されたデータを伸張して、USBインターフェース21に供給する。例えば、LZ符号によって圧縮が行われていた場合、圧縮/伸長処理部27は、内部に格納されている辞書を参照し、供給された圧縮データと辞書に登録されたコードを比較して、圧縮前の入力文字列を検出することにより圧縮データを伸張する。   When the compression / decompression processing unit 27 reads the data recorded on the magnetic tape 62 and supplies the data to the host computer, the compression / decompression processing unit 27 compresses the data supplied from the cache memory controller 28 based on the control of the system controller 22. Is expanded and supplied to the USB interface 21. For example, when compression is performed using the LZ code, the compression / decompression processing unit 27 refers to the dictionary stored therein, compares the supplied compressed data with the code registered in the dictionary, and performs compression. The compressed data is decompressed by detecting the previous input character string.

キャッシュメモリコントローラ28は、ホストコンピュータから供給されるデータを、磁気テープ62記録する場合、システムコントローラ22の制御に基づいて、圧縮/伸長処理部27から供給された圧縮データをキャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかに供給してキャッシュさせるとともに、キャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかにキャッシュされているデータを読み出して、ECC処理部30に供給する。また、キャッシュメモリコントローラ28は、磁気テープ62記録されているデータを読み出して、ホストコンピュータに供給する場合、システムコントローラ22の制御に基づいて、ECC処理部30から供給された、復調されて、誤り訂正がなされたデータをキャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかに供給してキャッシュさせるとともに、キャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかにキャッシュされているデータを読み出して、圧縮/伸長処理部27に供給する。   When the data supplied from the host computer is recorded on the magnetic tape 62, the cache memory controller 28 stores the compressed data supplied from the compression / decompression processor 27 based on the control of the system controller 22 into the cache memories 29-1 to 29-2. The data is supplied to one of the cache memories 21-n and cached, and the data cached in any of the cache memories 29-1 to 21-n is read and supplied to the ECC processing unit 30. To do. Further, when the cache memory controller 28 reads out the data recorded on the magnetic tape 62 and supplies it to the host computer, the cache memory controller 28 demodulates the error supplied from the ECC processing unit 30 based on the control of the system controller 22. The corrected data is supplied to one of the cache memories 29-1 to 21-n to be cached and cached in any of the cache memories 29-1 to 21-n. Is read out and supplied to the compression / decompression processor 27.

キャッシュメモリ29−1乃至キャッシュメモリ21−nは、キャッシュメモリコントローラ28の制御に基づいて、供給されたデータを一時キャッシュするものである。キャッシュメモリ29−1乃至キャッシュメモリ21−nのそれぞれにおいて、キャッシュ可能なデータ容量と、磁気テープ62に記録されるデータの1グループのデータ容量とは、対応する値となる。磁気テープ62へ記録されるデータの構成の詳細については、後述する。   The cache memories 29-1 to 21-n temporarily cache the supplied data based on the control of the cache memory controller 28. In each of the cache memories 29-1 to 21-n, the cacheable data capacity and the data capacity of one group of data recorded on the magnetic tape 62 have corresponding values. Details of the structure of data recorded on the magnetic tape 62 will be described later.

以下、キャッシュメモリ29−1乃至キャッシュメモリ21−nを個々に区別する必要がない場合、単に、キャッシュメモリ29と総称する。   Hereinafter, when it is not necessary to distinguish the cache memories 29-1 to 21-n from each other, they are simply referred to as the cache memory 29.

また、キャッシュメモリ29−1乃至キャッシュメモリ21−nは、物理的に複数のメモリにより構成されていてもよいし、物理的には1チップのメモリを、複数の記憶領域に分割して用いるようにしてもよい。なお、キャッシュメモリ29−1乃至キャッシュメモリ21−nの記憶領域の一部を、キャッシュメモリコントローラ28、または、システムコントローラ22において実行される処理に用いられるワークメモリとして用いるようにしても良い。   Further, the cache memory 29-1 to the cache memory 21-n may be physically configured by a plurality of memories, or physically, one-chip memory may be divided into a plurality of storage areas and used. It may be. A part of the storage area of the cache memory 29-1 to the cache memory 21-n may be used as a work memory used for processing executed in the cache memory controller 28 or the system controller 22.

ECC処理部30は、ホストコンピュータから供給されるデータを、磁気テープ62記録する場合、システムコントローラ22の制御に基づいて、キャッシュメモリコントローラ28から供給された圧縮データに、エラー訂正符号(ECC:error correcting code)を付加し、変調/復調およびRF処理部31に供給する。また、ECC処理部30は、磁気テープ62記録されているデータを読み出して、ホストコンピュータに供給する場合、システムコントローラ22の制御に基づいて、変調/復調およびRF処理部31から供給された復調されたデータのエラー訂正符号を基に、データにエラーが発生している場合は、それを検出して訂正する処理を実行し、エラー訂正後のデータを、キャッシュメモリコントローラ28に供給する。   When the data supplied from the host computer is recorded on the magnetic tape 62, the ECC processing unit 30 converts the error correction code (ECC: error) into the compressed data supplied from the cache memory controller 28 under the control of the system controller 22. correction code) is added and supplied to the modulation / demodulation and RF processing unit 31. Further, when the ECC processing unit 30 reads out the data recorded on the magnetic tape 62 and supplies the data to the host computer, the ECC processing unit 30 demodulates the data supplied from the modulation / demodulation and RF processing unit 31 based on the control of the system controller 22. If an error has occurred in the data based on the error correction code of the data, a process for detecting and correcting the error is executed, and the data after error correction is supplied to the cache memory controller 28.

変調/復調およびRF処理部31は、ホストコンピュータから供給されるデータを、磁気テープ62記録する場合、システムコントローラ22の制御に基づいて、エラー訂正符号が付加された圧縮データを変調してRF(Radio Frequency)信号に変換し、RF信号に対して、増幅やイコライジング処理を施して、記録ヘッド41−1および41−2に供給する。また、変調/復調およびRF処理部31は、磁気テープ62記録されているデータを読み出して、ホストコンピュータに供給する場合、システムコントローラ22の制御に基づいて、再生ヘッド42−1乃至42−3から供給されるRF信号に対して、再生イコライジング処理を行い、復調して、ECC処理部30に供給する。   When the data supplied from the host computer is recorded on the magnetic tape 62, the modulation / demodulation and RF processing unit 31 modulates the compressed data to which the error correction code is added under the control of the system controller 22 to generate RF ( Radio Frequency) signal, the RF signal is amplified and equalized, and supplied to the recording heads 41-1 and 41-2. Further, when the modulation / demodulation and RF processing unit 31 reads the data recorded on the magnetic tape 62 and supplies the data to the host computer, the modulation / demodulation and RF processing unit 31 uses the reproduction heads 42-1 to 42-3 based on the control of the system controller 22. A reproduction equalizing process is performed on the supplied RF signal, demodulated, and supplied to the ECC processing unit 30.

サーボコントローラ32は、システムコントローラ22の制御に基づいて、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5を駆動するメカドライバ34を制御して、各モータの回転、および、回転速度を制御することにより、データの記録再生時または早送りや巻き戻し時の磁気テープの走行、磁気テープ走行時のテープテンションの制御、テープカセット51の装着または排出(ローディングまたはアンローディング)の動作などを制御する。特に、サーボコントローラ32は、ドラムモータ35−1、キャプスタンモータ35−2、並びに、リールモータ35−3および35−4のそれぞれに設けられているFG(周波数発生器)から発生され、メカドライバ34を介して供給されるモータの回転情報に基づいて、各モータの回転動作において目的とする回転速度と実際の回転速度との誤差を検出し、その誤差分を基に、メカドライバ17を制御することにより、各モータの閉ループによる回転速度制御を実現することができる。   The servo controller 32 is a mechanical driver 34 that drives a drum motor 35-1, a capstan motor 35-2, reel motors 35-3 and 35-4, and a loading motor 35-5 based on the control of the system controller 22. By controlling the rotation and the rotation speed of each motor, the magnetic tape travels at the time of data recording / reproduction or fast forward / rewind, the tape tension control at the time of magnetic tape travel, the tape cassette 51 The operation of loading or unloading (loading or unloading) is controlled. In particular, the servo controller 32 is generated from an FG (frequency generator) provided in each of the drum motor 35-1, the capstan motor 35-2, and the reel motors 35-3 and 35-4, and is a mechanical driver. Based on the rotation information of the motor supplied via 34, an error between the target rotation speed and the actual rotation speed is detected in the rotation operation of each motor, and the mechanical driver 17 is controlled based on the error. By doing so, it is possible to realize the rotational speed control by the closed loop of each motor.

メカドライバ34は、サーボコントローラ32の制御に基づいて、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させるドライバである。また、メカドライバ34は、ドラムモータ35−1、キャプスタンモータ35−2、並びに、リールモータ35−3および35−4のそれぞれに設けられているFGから発生されるモータの回転情報の供給を受け、サーボコントローラ32に供給する。   The mechanical driver 34 rotationally drives each of the drum motor 35-1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5 based on the control of the servo controller 32. It is a driver. Further, the mechanical driver 34 supplies the rotation information of the motor generated from the FG provided in each of the drum motor 35-1, the capstan motor 35-2, and the reel motors 35-3 and 35-4. Then, it is supplied to the servo controller 32.

ドラムモータ35−1は、テープストリーマドライブ1に装着されたテープカセット51の供給用テープリール61−1から引き出された磁気テープ62が巻き付けられる回転ドラム36を回転駆動させる。キャプスタンモータ35−2は、磁気テープ62を定速走行させるための図示しないキャプスタンを回転駆動させる。リールモータ35−3および35−4は、テープストリーマドライブ1に装着されたテープカセット51の供給用テープリール61−1および巻き取りテープリール61−2を回転駆動させる。ローディングモータ35−5は、図示しないローディング機構を駆動させ、テープカセット51をローディングまたはアンローディングさせる。   The drum motor 35-1 rotates the rotary drum 36 around which the magnetic tape 62 drawn from the supply tape reel 61-1 of the tape cassette 51 mounted on the tape streamer drive 1 is wound. The capstan motor 35-2 rotationally drives a capstan (not shown) for causing the magnetic tape 62 to travel at a constant speed. The reel motors 35-3 and 35-4 rotate and drive the supply tape reel 61-1 and the take-up tape reel 61-2 of the tape cassette 51 mounted on the tape streamer drive 1. The loading motor 35-5 drives a loading mechanism (not shown) to load or unload the tape cassette 51.

EEP−ROM33は、サーボコントローラ32が各モータを制御するために必要な、例えば、定数等の情報を格納するメモリである。   The EEP-ROM 33 is a memory that stores information such as constants necessary for the servo controller 32 to control each motor.

回転ドラム36には、記録ヘッド41−1および41−2、並びに、再生ヘッド42−2乃至42−3が配置されている。具体的には、回転ドラム36には、アジマス角が異なる2つの記録ヘッド41−1および41−2のギャップが極めて近接して配置されているとともに、それぞれ所定のアジマス角の再生ヘッド42−2乃至42−3のギャップが、所定の角度間隔で配置されている。記録ヘッド41−1および41−2は、磁気テープ62に、変調/復調およびRF処理部31から供給されたデータを記録する。再生ヘッド42−2乃至42−3は、磁気テープ62に記録されているデータを再生させて、変調/復調およびRF処理部31に供給する。   On the rotary drum 36, recording heads 41-1 and 41-2 and reproducing heads 42-2 to 42-3 are arranged. Specifically, a gap between two recording heads 41-1 and 41-2 having different azimuth angles is disposed on the rotating drum 36 in close proximity, and a reproducing head 42-2 having a predetermined azimuth angle is provided. The gaps 42 to 42-3 are arranged at predetermined angular intervals. The recording heads 41-1 and 41-2 record data supplied from the modulation / demodulation and RF processing unit 31 on the magnetic tape 62. The reproducing heads 42-2 to 42-3 reproduce the data recorded on the magnetic tape 62 and supply the data to the modulation / demodulation and RF processing unit 31.

テープカセット51において、供給用テープリール61−1および巻き取り用テープリール61−2は、リールモータ35−3およびリールモータ35−4により回転駆動され、磁気テープ62を所定の速さで移送する。磁気テープ62には、記録ヘッド41−1および41−2によりデータが記録される。また、再生ヘッド42−2乃至42−3により、磁気テープ62に記録されたデータが再生される。テープカセット51の供給用テープリール61−1から引き出された磁気テープ62は、ドラムモータ35−1により回転される回転ドラム36に巻きつけられ、キャプスタンモータ35−2により回転駆動される図示しないキャプスタン、および、図示しないピンチローラにより、所定の方向に移送される。   In the tape cassette 51, the supply tape reel 61-1 and the take-up tape reel 61-2 are rotationally driven by a reel motor 35-3 and a reel motor 35-4 to transfer the magnetic tape 62 at a predetermined speed. . Data is recorded on the magnetic tape 62 by the recording heads 41-1 and 41-2. Further, the data recorded on the magnetic tape 62 is reproduced by the reproducing heads 42-2 to 42-3. The magnetic tape 62 drawn from the supply tape reel 61-1 of the tape cassette 51 is wound around a rotating drum 36 rotated by a drum motor 35-1, and is rotated by a capstan motor 35-2 (not shown). It is transferred in a predetermined direction by a capstan and a pinch roller (not shown).

磁気テープ62には、ヘリカルスキャン方式により、データが記録再生されるようになされている。   Data is recorded on and reproduced from the magnetic tape 62 by a helical scan method.

また、テープカセット51には、MIC63が設けられている。MIC63は、キャッシュメモリ37を介して、システムコントローラ22とデータの授受が可能なように接続され、システムコントローラ22により、テープカセット51の磁気テープ62に記録されているデータに関する情報が登録される属性情報テーブル(その詳細は、図9を用いて後述する)の各フィールドに登録される情報の供給を受けたり、属性情報テーブルの各フィールドに登録される情報を読みだされることができるようになされている。また、MIC63には、テープカセット51に関する情報も記録されている。テープカセット51に関する情報には、例えば、テープカセット51の製造メーカ名、ロード回数、製造年月日、バッドスポットの位置、テープの残容量などがある。   The tape cassette 51 is provided with an MIC 63. The MIC 63 is connected to the system controller 22 via the cache memory 37 so as to be able to exchange data, and the system controller 22 registers information related to data recorded on the magnetic tape 62 of the tape cassette 51. The information registered in each field of the information table (details will be described later with reference to FIG. 9) can be supplied, and the information registered in each field of the attribute information table can be read out. Has been made. The MIC 63 also records information related to the tape cassette 51. The information related to the tape cassette 51 includes, for example, the manufacturer name of the tape cassette 51, the number of loads, the date of manufacture, the position of the bad spot, the remaining capacity of the tape, and the like.

キャッシュメモリ37は、システムコントローラ22とMIC63と接続され、MIC63から読み出されたデータ、または、MIC63に書き込むデータの一時キャッシュに用いられる。   The cache memory 37 is connected to the system controller 22 and the MIC 63 and is used for a temporary cache of data read from the MIC 63 or data to be written to the MIC 63.

MIC4は、従来の構成のようにテープカセット28内に配設してもよいが、これに代わって、磁気テープ62のうちの所定の記録領域をMIC63に対応する記録領域として取り扱うようにしても良い。このような場合、テープストリーマドライブ1においては、例えば、テープカセット51がテープストリーマドライブ1に装着されたとき、磁気テープ62のMIC63に対応する記録領域に記録されている属性情報テーブルを読み出して、キャッシュメモリ37に一時保存させることにより、システムコントローラ22が、キャッシュメモリ37に一時保存されている属性情報テーブルを参照して、データの記録再生操作を行い、必要に応じて、属性情報テーブルを更新することが可能なようにすることができる。また、システムコントローラ22により、データの記録再生操作のために更新された、キャッシュメモリ37に一時保存されている属性情報テーブルは、テープカセット51がテープストリーマドライブ1から排出される前に、磁気テープ62のMIC63に対応する記録領域に記録されるものとすることができる。このようにすることにより、テープストリーマドライブ1においては、データの記録再生処理時に、テープカセット51の磁気テープ62に記録されているデータをその都度走査することなく、MIC63に対応する記録領域に記録されていた属性情報テーブルを参照して、記録再生動作の制御を行うことができる。   The MIC 4 may be disposed in the tape cassette 28 as in the conventional configuration, but instead, a predetermined recording area of the magnetic tape 62 may be handled as a recording area corresponding to the MIC 63. good. In such a case, in the tape streamer drive 1, for example, when the tape cassette 51 is mounted in the tape streamer drive 1, the attribute information table recorded in the recording area corresponding to the MIC 63 of the magnetic tape 62 is read out. By temporarily storing in the cache memory 37, the system controller 22 refers to the attribute information table temporarily stored in the cache memory 37, performs a data recording / reproducing operation, and updates the attribute information table as necessary. Can be made possible. In addition, the attribute information table temporarily stored in the cache memory 37 updated for the data recording / reproducing operation by the system controller 22 is stored in the magnetic tape before the tape cassette 51 is ejected from the tape streamer drive 1. It can be recorded in a recording area corresponding to 62 MICs 63. By doing so, in the tape streamer drive 1, the data recorded on the magnetic tape 62 of the tape cassette 51 is recorded in the recording area corresponding to the MIC 63 without scanning each time during the data recording / reproducing process. The recording / reproducing operation can be controlled with reference to the attribute information table.

なお、テープカセット51の磁気テープ62に記録されているデータに関する情報が登録される属性情報テーブルが記録されるMIC4は、テープカセット51に設けられるのみならず、テープストリーマドライブ1内に設けられるようにしても良い。このような場合、属性情報テーブルは、リムーバブルなメディアであるテープカセット51のそれぞれに対応して作成される必要があるので、テープストリーマドライブ1内に記録される属性情報テーブルは、例えば、テープカセット51に固有に対応付けられるIDなどによって区別可能なようにする必要がある。   Note that the MIC 4 in which the attribute information table in which information related to data recorded on the magnetic tape 62 of the tape cassette 51 is registered is not only provided in the tape cassette 51 but also provided in the tape streamer drive 1. Anyway. In such a case, the attribute information table needs to be created corresponding to each of the tape cassettes 51 that are removable media. Therefore, the attribute information table recorded in the tape streamer drive 1 is, for example, a tape cassette. It is necessary to make it distinguishable by an ID uniquely associated with 51.

また、システムコントローラ22には、必要に応じて、ドライブ38が接続されており、ドライブ38には、、例えば、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disk-Read Only Memory),DVDを含む)、光磁気ディスク(MD(登録商標)(Mini-Disk)を含む)、または、半導体メモリなどよりなるリムーバブルメディア71が装着され、システムコントローラ22とデータの授受が可能なようになされている。   In addition, a drive 38 is connected to the system controller 22 as necessary. Examples of the drive 38 include a magnetic disk (including a flexible disk) and an optical disk (CD-ROM (Compact Disk-Read Only Memory). ) And DVD), a magneto-optical disk (including MD (registered trademark) (Mini-Disk)), or a removable medium 71 such as a semiconductor memory is mounted so that data can be exchanged with the system controller 22. Has been made.

なお、図1のテープストリーマドライブ1においては、ホストコンピュータとのインターフェースをUSBとしているが、テープストリーマドライブ1とホストコンピュータとのインターフェースは、例えば、SCSIなど、USB以外のものであってもかまわない。すなわち、本実施の形態において記載されているテープストリーマドライブ1とホストコンピュータとの処理動作(いわゆるアプリケーション層において規定される動作)を実行することが可能なように、インターフェースに合わせてトランスポート層以下の機能を拡張することにより、テープストリーマドライブ1とホストコンピュータとのインターフェースの種類にかかわらず、本発明を適用することが可能となる。   In the tape streamer drive 1 of FIG. 1, the interface between the host computer and the host computer is USB, but the interface between the tape streamer drive 1 and the host computer may be other than USB, such as SCSI. . That is, in order to be able to execute the processing operation (operation defined in the so-called application layer) between the tape streamer drive 1 and the host computer described in the present embodiment, the layer below the transport layer is adapted to the interface. By extending this function, the present invention can be applied regardless of the type of interface between the tape streamer drive 1 and the host computer.

図2は、テープストリーマドライブ1が実現可能な機能(テープストリーマドライブ1内のハードウェアによって実現される機能や、システムコントローラ22において実行されるソフトウェアプログラムによって実現される機能を含む)について説明するための機能ブロック図である。   FIG. 2 illustrates functions that can be realized by the tape streamer drive 1 (including functions realized by hardware in the tape streamer drive 1 and functions realized by a software program executed in the system controller 22). It is a functional block diagram.

コマンド取得部101は、ホストコンピュータから供給されるコマンド、および、コマンドとともに供給される各種情報(例えば、データが記録されるときは、記録されるデータの属性情報などであり、データの検索または読み出しが指令されたときは、データの検索または読み出しに用いられる検索条件または検索条件式などの情報)を取得し、そのコマンドおよび必要な情報を記録再生制御部102、識別子生成部103、テーブル処理部104の属性情報取得部121または検索処理部124、および、駆動制御部105に供給する。   The command acquisition unit 101 is a command supplied from the host computer and various types of information supplied with the command (for example, when data is recorded, attribute information of the data to be recorded, etc.). Is acquired, information such as a search condition or a search condition expression used for data search or reading is acquired, and the command and necessary information are recorded and played back by the recording / playback control unit 102, the identifier generation unit 103, and the table processing unit. The attribute information acquisition unit 121 or the search processing unit 124 and the drive control unit 105 in FIG.

具体的には、コマンド取得部101は、ホストコンピュータから供給されるコマンドが、データの記録開始を指令するコマンドである場合、データの記録開始を指令するコマンドを記録再生制御部102に供給し、データの記録開始を指令するコマンドを受けたことを識別子生成部103に通知し、記録されるデータとともに属性情報が供給された場合は、その属性情報を属性情報取得部121および記録再生制御部102のキャッシュメモリ割り当て処理部111に供給する。また、コマンド取得部101は、ホストコンピュータから供給されるコマンドが、データの検索を指令するコマンドである場合、データの検索を指令するコマンドを検索条件または検索条件式とともに、検索処理部124に供給し、ホストコンピュータから供給されるコマンドが、データの再生を指令するコマンドである場合、データの再生を指令するコマンドを記録再生制御部102に供給する。   Specifically, when the command supplied from the host computer is a command for instructing the start of data recording, the command acquisition unit 101 supplies a command for instructing the start of data recording to the recording / playback control unit 102. When the identifier generation unit 103 is notified that a command for instructing the start of data recording has been received and attribute information is supplied together with the data to be recorded, the attribute information is acquired from the attribute information acquisition unit 121 and the recording / playback control unit 102. To the cache memory allocation processing unit 111. Further, when the command supplied from the host computer is a command for instructing data search, the command acquisition unit 101 supplies a command for instructing data search to the search processing unit 124 together with the search condition or the search condition expression. If the command supplied from the host computer is a command for instructing data reproduction, the command for instructing data reproduction is supplied to the recording / reproduction control unit 102.

記録再生制御部102は、圧縮/伸長処理部27、キャッシュメモリコントローラ28、ECC処理部30、並びに、圧縮/変調およびRF処理部31によるデータの記録再生に必要な動作を制御する。具体的には、記録再生制御部102は、例えば、コマンド取得部101から、データの記録を指令するコマンドの供給を受けた場合、圧縮/伸長処理部27、キャッシュメモリコントローラ28、ECC処理部30、並びに、圧縮/変調およびRF処理部31を制御して、USBインターフェース21に供給された、磁気テープ62に記録されるデータの処理を制御し、コマンド取得部101から、所定のデータの再生を指令するコマンドの供給を受けた場合、圧縮/伸長処理部27、キャッシュメモリコントローラ28、ECC処理部30、並びに、圧縮/変調およびRF処理部31を制御して、磁気テープ62に記録されている所定のデータの再生を制御する。また、記録再生制御部102は、記録または再生されるデータをキャッシュメモリ29−1乃至29−nのうちのいずれにキャッシュするかを選択する、すなわち、記録または再生されるデータのキャッシュメモリ29への割り当てを決定する処理を実行するキャッシュメモリ割り当て処理部111の機能を有する。   The recording / playback control unit 102 controls operations required for data recording / playback by the compression / decompression processing unit 27, the cache memory controller 28, the ECC processing unit 30, and the compression / modulation and RF processing unit 31. Specifically, for example, when receiving a command for commanding data recording from the command acquisition unit 101, the recording / playback control unit 102, the compression / decompression processing unit 27, the cache memory controller 28, and the ECC processing unit 30 In addition, the compression / modulation and RF processing unit 31 is controlled to control the processing of data recorded on the magnetic tape 62 supplied to the USB interface 21, and the command acquisition unit 101 reproduces predetermined data. When a command to be commanded is received, the compression / decompression processing unit 27, the cache memory controller 28, the ECC processing unit 30, and the compression / modulation and RF processing unit 31 are controlled and recorded on the magnetic tape 62. Control reproduction of predetermined data. Further, the recording / reproducing control unit 102 selects which of the cache memories 29-1 to 29-n to cache the data to be recorded or reproduced, that is, to the cache memory 29 of the data to be recorded or reproduced. The function of the cache memory allocation processing unit 111 that executes the process of determining the allocation of the cache memory.

キャッシュメモリ割り当て処理部111は、記録または再生されるデータのデータ容量やデータの種類などを基に、記録または再生されるデータのキャッシュメモリ29への割り当てを決定する処理を実行する。具体的には、磁気テープ62へのデータの記録時に、例えば、データ容量によってキャッシュ先を変更するようにした場合、キャッシュメモリ割り当て処理部111が、コマンド取得部101から供給される属性情報を基に、例えば、小さなサイズのデータを同一のキャッシュメモリ29にまとめてキャッシュするなどして、供給されるデータの容量によって、データをキャッシュするキャッシュメモリ29を決定することにより、磁気テープ62において、小さなデータサイズのデータが、グループにまとまって記録される。また、データの種類によってキャッシュ先を変更するようにした場合、キャッシュメモリ割り当て処理部111が、コマンド取得部101から供給される属性情報を基に、例えば、動画、静止画、テキストなどのデータの種類によって、データをキャッシュするキャッシュメモリ29を決定することにより、磁気テープ62において、同じ種類のデータが、グループにまとまって記録される。   The cache memory allocation processing unit 111 executes a process of determining allocation of data to be recorded or reproduced to the cache memory 29 based on the data capacity or data type of data to be recorded or reproduced. Specifically, when data is recorded on the magnetic tape 62, for example, when the cache destination is changed depending on the data capacity, the cache memory allocation processing unit 111 uses the attribute information supplied from the command acquisition unit 101 as a basis. In addition, for example, the small size data is cached in the same cache memory 29, and the cache memory 29 that caches the data is determined according to the capacity of the supplied data. Data of the data size is recorded as a group. In addition, when the cache destination is changed depending on the type of data, the cache memory allocation processing unit 111 uses the attribute information supplied from the command acquisition unit 101, for example, for data such as moving images, still images, and texts. By determining the cache memory 29 that caches data depending on the type, the same type of data is recorded in groups on the magnetic tape 62.

このようにすることにより、磁気テープ62に記録されるデータまたは磁気テープ62から読み出されるデータの属性を基に、データの記録再生処理を制御することができる。   By doing so, the data recording / reproducing process can be controlled based on the attributes of the data recorded on the magnetic tape 62 or the data read from the magnetic tape 62.

識別子生成部103は、コマンド取得部101から、データの記録開始を指令するコマンドを受けたことの通知を得た場合、記録されるデータを識別するための識別情報であり、記録されるデータに固有に対応付けられる識別子を発行し、発酵した識別子を記録再生制御部102に供給して内部に記憶させる(実際には、例えば、図1のSRAM23に記憶させる)とともに、ホストコンピュータに送信させる。識別子には、例えば、GUID(Global Unique ID)やUUID(Universally Unique Identifier)など、世界中でユニーク(固有の)なIDを用いるようにしてもよい。また、識別子生成部103は、例えば、デバイス内のROM(例えば、図1のフラッシュROM24など)に書き込まれた物理アドレスなどを「ユニークなランダムシード(乱数発生の源)」として、理論上完全にユニークな識別子を生成するようにしてもよい。また、識別子生成部103は、理論上完全にユニークな識別子を生成する以外に、例えば、乱数、システム状態、ハッシュ関数等を基に、実用上問題ない乱数を発生させ(すなわち、確率的に、同一のものが簡単に発生しないようにして、乱数を発生させ)、その乱数を識別子として用いるようにしても良い。   The identifier generation unit 103 is identification information for identifying data to be recorded when receiving a notification from the command acquisition unit 101 that a command to start recording data has been received. An identifier uniquely associated is issued, and the fermented identifier is supplied to the recording / reproduction control unit 102 and stored therein (in practice, for example, stored in the SRAM 23 of FIG. 1) and transmitted to the host computer. As the identifier, for example, an ID unique throughout the world such as a GUID (Global Unique ID) or a UUID (Universally Unique Identifier) may be used. Further, the identifier generation unit 103, for example, completely sets the physical address written in the ROM (for example, the flash ROM 24 in FIG. 1) in the device as “unique random seed (source of random number generation)” in theory. A unique identifier may be generated. In addition to generating a completely unique identifier in theory, the identifier generation unit 103 generates a random number having no practical problem based on, for example, a random number, a system state, a hash function, etc. (that is, probabilistically, A random number may be generated so that the same thing is not easily generated), and the random number may be used as an identifier.

テーブル処理部104は、磁気テープ62にデータを記録する場合に、MIC63に記録される属性情報テーブルへの情報の登録や更新を制御したり、MIC63に記憶されている属性情報テーブルを読み出し、それを基に、磁気テープ62に記録されているデータのうち、条件に合致するデータの問い合わせ結果を生成したり、条件に合致したデータを検索する処理を実行する。   When recording data on the magnetic tape 62, the table processing unit 104 controls registration and update of information in the attribute information table recorded in the MIC 63, and reads out the attribute information table stored in the MIC 63. From the data recorded on the magnetic tape 62, an inquiry result of data that matches the condition is generated, or processing that searches for data that matches the condition is executed.

テーブル処理部104は、属性情報取得部121、属性情報生成部122、テーブル記憶制御部123、検索処理部124、テーブル読み出し制御部125、問い合わせ結果情報生成処理部126、および、問い合わせ結果情報供給制御部127の機能を有する。   The table processing unit 104 includes an attribute information acquisition unit 121, an attribute information generation unit 122, a table storage control unit 123, a search processing unit 124, a table read control unit 125, an inquiry result information generation processing unit 126, and an inquiry result information supply control. The function of the unit 127 is provided.

属性情報取得部121は、コマンド取得部101から供給された属性情報を取得し、属性情報生成部122、および、テーブル記憶制御部123に供給する。属性情報生成部122は、属性情報取得部121から供給された属性情報、および、記録再生制御部102から供給された、例えば、データ記録時に得られるデータの記録位置に関する情報などを基に、属性情報を生成し、テーブル記憶制御部122に供給する。また、記録再生制御部102は、識別子生成部103により生成された、1記録単位のデータに対応付けられた識別子を属性情報生成部122に供給するので、属性情報生成部122は、供給された識別子を、テーブル記憶制御部122に供給する。テーブル記憶制御部123は、MIC63に記憶される属性情報テーブルのうち、記録されるデータの1記録単位(例えば、ホストコンピュータにおいて、ファイルとして取り扱われているデータの単位など)ごとに、それぞれのフィールドへ各種属性情報を登録するために、属性情報テーブルの1レコードを生成し、属性情報テーブルへの登録を制御する。属性情報テーブルに登録される属性情報の具体例については、図9を用いて後述する。   The attribute information acquisition unit 121 acquires the attribute information supplied from the command acquisition unit 101 and supplies the attribute information to the attribute information generation unit 122 and the table storage control unit 123. The attribute information generation unit 122 is based on the attribute information supplied from the attribute information acquisition unit 121 and the information supplied from the recording / playback control unit 102, for example, information on the recording position of data obtained at the time of data recording. Information is generated and supplied to the table storage control unit 122. Further, the recording / playback control unit 102 supplies the attribute information generation unit 122 with the identifier associated with the data of one recording unit generated by the identifier generation unit 103, so that the attribute information generation unit 122 is supplied The identifier is supplied to the table storage control unit 122. The table storage control unit 123 sets each field for each recording unit (for example, a unit of data handled as a file in the host computer) of the recorded data in the attribute information table stored in the MIC 63. In order to register various attribute information, one record of the attribute information table is generated, and registration in the attribute information table is controlled. A specific example of the attribute information registered in the attribute information table will be described later with reference to FIG.

検索処理部124は、コマンド取得部101から、データの検索を指令するコマンドと検索条件または検索条件式の供給を受け、テーブル読み出し制御部125を制御して、MIC63の属性情報テーブルを読み出させて検索処理を実行し、検索条件または検索条件式に合致したレコードに関する情報や、例えば、検索条件に合致するデータ数や、検索条件に合致するデータの合計のデータ容量などの統計情報を、問い合わせ結果情報生成処理部126に供給する。テーブル読み出し制御部125は、検索処理部124の制御に基づいて、MIC63に記録されている属性情報テーブルの読み出しを制御する。   The search processing unit 124 receives a command to search for data and a search condition or a search condition expression from the command acquisition unit 101, and controls the table read control unit 125 to read the attribute information table of the MIC 63. Execute the search process to inquire about information related to the record that matches the search condition or search condition expression, and statistical information such as the number of data that matches the search condition and the total data capacity of the data that matches the search condition. The result information generation processing unit 126 is supplied. The table reading control unit 125 controls reading of the attribute information table recorded in the MIC 63 based on the control of the search processing unit 124.

問い合わせ結果情報生成処理部126は、検索処理部124から供給された、検索条件または検索条件式に合致したレコードを基に、問い合わせ結果を示す情報を生成し、問い合わせ結果情報供給制御部127に供給する。問い合わせ結果を示す情報は、検索結果が複数レコードである場合、テーブル形式であっても、複数のレコード情報の集合であっても良いし、検索結果のうちの、例えば、ファイル名、データ容量、所望データへのアクセス時間、または、所望データをホストコンピュータに転送する場合にかかる時間など、問い合わせの内容に合致した属性情報のみから構成されるものであっても良い。問い合わせ結果を示す情報がテーブル形式である場合の具体例については、図13を用いて後述する。問い合わせ結果情報供給制御部127は、問い合わせ結果情報生成処理部126により生成された、問い合わせ結果を示す情報のホストコンピュータへの供給、具体的には、USBインターフェース21を介した、ホストコンピュータへの送信を制御する。   The inquiry result information generation processing unit 126 generates information indicating the inquiry result based on the record supplied from the search processing unit 124 that matches the search condition or the search condition expression, and supplies the information to the inquiry result information supply control unit 127. To do. When the search result is a plurality of records, the information indicating the query result may be in a table format or a set of a plurality of record information. For example, the file name, the data capacity, It may be composed only of attribute information that matches the content of the inquiry, such as the access time to the desired data or the time taken to transfer the desired data to the host computer. A specific example when the information indicating the inquiry result is in a table format will be described later with reference to FIG. The inquiry result information supply control unit 127 supplies information indicating the inquiry result generated by the inquiry result information generation processing unit 126 to the host computer, specifically, to the host computer via the USB interface 21. To control.

そして、駆動制御部105は、コマンド取得部101から供給されたコマンドに基づいて、サーボコントローラ32を制御して、メカドライバ34を動作させ、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させる。   Then, the drive control unit 105 controls the servo controller 32 based on the command supplied from the command acquisition unit 101 to operate the mechanical driver 34, and the drum motor 35-1, the capstan motor 35-2, the reel The motors 35-3 and 35-4 and the loading motor 35-5 are driven to rotate.

次に、テープストリーマドライブ1の、データ記録再生動作について説明する。   Next, the data recording / reproducing operation of the tape streamer drive 1 will be described.

USBインターフェース21が、ホストコンピュータより、データの記録開始を指令するコマンドおよび記録されるデータの属性情報などの供給を受けた場合、USBインターフェース21は、システムコントローラ22に、データの記録開始を指令するコマンドおよび記録されるデータの属性情報などを供給する。   When the USB interface 21 receives a command to start recording data and attribute information of data to be recorded from the host computer, the USB interface 21 instructs the system controller 22 to start recording data. Provides command and attribute information of data to be recorded.

このとき、システムコントローラ22において実行される機能について説明すると、コマンド取得部101は、データの記録開始を指令するコマンドを受けたことを、識別子生成部103に通知するので、識別子生成部103は、新たに記録されるデータに対して、一義に対応付けられるユニークな識別子(たとえば、GUIDなど)を発行し、記録再生制御部102に供給して記憶させる(具体的には、SRAM23に記憶させる)とともに、生成した識別子を、USBインターフェース21を介して、ホストコンピュータに供給する処理を制御する。また、コマンド取得部101は、データの記録開始を指令するコマンドを記録再生制御部102および駆動制御部105に供給するので、記録再生制御部102は、圧縮/伸長処理部27、キャッシュメモリコントローラ28、ECC処理部30、並びに、圧縮/変調およびRF処理部31を制御して、供給されるデータを磁気テープ26へ記録させる処理を開始させ、駆動制御部105は、メカドライバ34を動作させ、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させるために、サーボコントローラ32の制御を開始する。   At this time, the functions executed in the system controller 22 will be described. The command acquisition unit 101 notifies the identifier generation unit 103 that it has received a command for instructing the start of data recording. A unique identifier (for example, GUID) uniquely associated with newly recorded data is issued, supplied to the recording / playback control unit 102, and stored (specifically, stored in the SRAM 23). At the same time, the process of supplying the generated identifier to the host computer via the USB interface 21 is controlled. Further, the command acquisition unit 101 supplies a command for instructing the start of data recording to the recording / reproduction control unit 102 and the drive control unit 105, so that the recording / reproduction control unit 102 includes the compression / decompression processing unit 27 and the cache memory controller 28. Then, the ECC processing unit 30 and the compression / modulation and RF processing unit 31 are controlled to start processing for recording the supplied data onto the magnetic tape 26, and the drive control unit 105 operates the mechanical driver 34, Control of the servo controller 32 is started to rotationally drive each of the drum motor 35-1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5.

また、システムコントローラ22において、コマンド取得部101が、データの記録開始を指令するコマンドとともに、記録されるデータの属性情報の供給を受けた場合、記録再生制御部102のキャッシュメモリ割り当て処理部111は、属性情報を基に、必要に応じて、キャッシュメモリ29へのデータの一時記憶の割り当てを決定する。データの割り当ての決定は、例えば、データの大きさやデータの種類などによって決められるようにしても良い。また、た、システムコントローラ22において、コマンド取得部101が、データの記録開始を指令するコマンドとともに、記録されるデータの属性情報の供給を受けた場合、テーブル処理部104の属性情報取得部121は、コマンド取得部101から属性情報を取得する。   In the system controller 22, when the command acquisition unit 101 receives supply of attribute information of data to be recorded together with a command for instructing data recording, the cache memory allocation processing unit 111 of the recording / playback control unit 102 Based on the attribute information, allocation of temporary storage of data to the cache memory 29 is determined as necessary. Data allocation may be determined according to, for example, the size of data or the type of data. In the system controller 22, when the command acquisition unit 101 receives supply of attribute information of data to be recorded together with a command to start data recording, the attribute information acquisition unit 121 of the table processing unit 104 The attribute information is acquired from the command acquisition unit 101.

そして、USBインターフェース21は、ホストコンピュータから、記録されるデータの供給を受けて、圧縮/伸長処理部27に供給する。圧縮/伸長処理部27は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、供給されたデータを、所定の方式で圧縮し、キャッシュメモリコントローラ28に供給する。キャッシュメモリコントローラ28は、システムコントローラ22の制御(換言すれば、記録再生制御部102のキャッシュメモリ割り当て処理部111の制御)に基づいて、供給された圧縮データを、キャッシュメモリ29−1乃至29−nのうちのいずれかに供給して保存させる。   The USB interface 21 receives supply of data to be recorded from the host computer and supplies the data to the compression / decompression processing unit 27. The compression / decompression processing unit 27 compresses the supplied data by a predetermined method based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102), and supplies the compressed data to the cache memory controller 28. . The cache memory controller 28 converts the supplied compressed data into the cache memories 29-1 to 29- based on the control of the system controller 22 (in other words, the control of the cache memory allocation processing unit 111 of the recording / playback control unit 102). Supply to any of n and store.

そして、ホストコンピュータから供給された1記録単位のデータがキャッシュメモリ29−1乃至29−nのうちのいずれかにキャッシュされた後、システムコントローラ22は、テープカセット51のMIC63に記憶されている属性情報テーブルへ登録される、データの1記録単位に対応する属性情報のレコードを生成し、キャッシュメモリ37に供給して、一旦キャッシュさせた後、MIC63に供給して、登録させる。   Then, after the data of one recording unit supplied from the host computer is cached in any one of the cache memories 29-1 to 29-n, the system controller 22 determines the attribute stored in the MIC 63 of the tape cassette 51. A record of attribute information corresponding to one recording unit of data registered in the information table is generated, supplied to the cache memory 37, temporarily cached, and then supplied to the MIC 63 for registration.

具体的には、属性情報取得部121は、コマンド取得部101から供給された属性情報を取得し、属性情報生成部122、および、テーブル記憶制御部123に供給する。属性情報生成部122は、属性情報取得部121から供給された属性情報、および、記録再生制御部102から供給された、データ記録時に得られる、例えば、データの記録位置に関する情報などを基に、属性情報を生成し、テーブル記憶制御部122に供給する。また、記録再生制御部102は、識別子生成部103により生成された、1記録単位のデータに対応付けられた識別子を属性情報生成部122に供給するので、属性情報生成部122は、供給された識別子を、テーブル記憶制御部122に供給する。テーブル記憶制御部123は、記録されるデータの1記録単位(例えば、ホストコンピュータにおいて、ファイルとして取り扱われているデータの単位など)ごとに、属性情報テーブルのレコードを生成し、MIC63に記憶される属性情報テーブルのそれぞれのフィールドへの各種属性情報の登録を制御する。属性情報テーブルは、リレーショナルデータベースとしての機能を有するものであり、たとえば、リレーショナルデータベースシステム用の構造化問い合わせ言語、いわゆるSQL(Structured Query Language)により記述される。   Specifically, the attribute information acquisition unit 121 acquires the attribute information supplied from the command acquisition unit 101 and supplies the attribute information to the attribute information generation unit 122 and the table storage control unit 123. The attribute information generation unit 122 is based on the attribute information supplied from the attribute information acquisition unit 121 and the information acquired from the recording / playback control unit 102 at the time of data recording. Attribute information is generated and supplied to the table storage control unit 122. Further, the recording / playback control unit 102 supplies the attribute information generation unit 122 with the identifier associated with the data of one recording unit generated by the identifier generation unit 103, so that the attribute information generation unit 122 is supplied The identifier is supplied to the table storage control unit 122. The table storage control unit 123 generates a record of the attribute information table for each recording unit of data to be recorded (for example, a unit of data handled as a file in the host computer) and stores it in the MIC 63. Controls registration of various attribute information in each field of the attribute information table. The attribute information table has a function as a relational database, and is described in, for example, a structured query language for a relational database system, so-called SQL (Structured Query Language).

MIC63は、属性情報テーブルを記憶しており、キャッシュメモリ37を介して供給された、データの1記録単位に対応する属性情報のレコードを、識別子に対応付けて登録する。   The MIC 63 stores an attribute information table and registers a record of attribute information corresponding to one recording unit of data supplied via the cache memory 37 in association with an identifier.

キャッシュメモリコントローラ28は、キャッシュメモリ29−1乃至29−nのうちのいずれかが容量一杯まで記録された場合、容量が一杯となったキャッシュメモリ29に記録されているデータを読み出して、ECC処理部30に供給する。また、キャッシュメモリコントローラ28は、データの記録処理の終了が指令された場合、テープストリーマドライブ1の電源が切断された場合、または、所定の一定時間以上、コマンドが供給されなかった場合などは、キャッシュメモリ29−1乃至29−nのうちのいずれかに記録されているデータを読み出して、ECC処理部30に供給する。   When any one of the cache memories 29-1 to 29-n is recorded to the full capacity, the cache memory controller 28 reads the data recorded in the cache memory 29 whose capacity is full and performs ECC processing. To the unit 30. Further, the cache memory controller 28 is instructed to terminate the data recording process, when the tape streamer drive 1 is powered off, or when a command is not supplied for a predetermined period of time or longer. Data recorded in any of the cache memories 29-1 to 29-n is read and supplied to the ECC processing unit 30.

ECC処理部30は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、供給されたデータの1ブロックごとに、例えば、パリティビットなど、エラーチェックのためのコードを付加し、変調/復調およびRF処理部31に供給する。変調/復調およびRF処理部31は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、供給されたデータを変調してRF信号に変換し、RF信号に対して、増幅やイコライジング処理を施して、記録ヘッド41−1および41−2に供給する。   Based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102), the ECC processing unit 30 performs error check code such as a parity bit for each block of the supplied data. Is supplied to the modulation / demodulation and RF processing unit 31. The modulation / demodulation and RF processing unit 31 modulates the supplied data and converts it into an RF signal based on the control of the system controller 22 (in other words, the control of the recording / reproduction control unit 102). Then, amplification and equalizing processes are performed and the recording heads 41-1 and 41-2 are supplied.

また、サーボコントローラ32は、システムコントローラ22の制御(換言すれば、駆動制御部105の制御)に基づいて、EEP−ROM33に記録されている情報を参照し、メカドライバ34を制御して、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させる。記録ヘッド41−1および41−2は、ヘリカルスキャン方式で、供給されたデータを、テープカセット51の磁気テープ62に記録する。   The servo controller 32 refers to information recorded in the EEP-ROM 33 based on the control of the system controller 22 (in other words, the control of the drive control unit 105), controls the mechanical driver 34, and controls the drum The motor 35-1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5 are driven to rotate. The recording heads 41-1 and 41-2 record the supplied data on the magnetic tape 62 of the tape cassette 51 by a helical scan method.

テープカセット51の磁気テープ62に記録されるデータの構造について、図3および図4を用いて説明する。   The structure of data recorded on the magnetic tape 62 of the tape cassette 51 will be described with reference to FIGS.

図3(A)には、ECC処理部30において、ECCが付加される単位である、ブロック(Block)単位のデータ構造が示されている。1ブロックは、同期信号が記載されるSYNCデータエリアに続いて、サーチ等に用いるIDが記載されるIDエリア、IDエリアに記載されるIDのエラー訂正用のパリティビットなどのECCが記載されるパリティエリア、および、ホストコンピュータから供給されるデータが記載されるデータエリアにより構成される。そして、図3(B)に示されるように、複数のブロックと、両端のマージンエリアにより、1トラックのデータが構成される。   FIG. 3A shows a data structure of a block unit, which is a unit to which ECC is added in the ECC processing unit 30. In one block, following a SYNC data area in which a synchronization signal is described, ECC such as an ID area in which an ID used for search or the like is described and an ID error correction parity bit in the ID area is described. It is composed of a parity area and a data area in which data supplied from the host computer is described. As shown in FIG. 3B, a plurality of blocks and margin areas at both ends constitute one track data.

そして、図3(C)に示されるように、8000トラックで1グループとなり、それぞれのグループの間には、所定の間隔の無効領域が設けられるように、磁気テープ62にデータが記録される。このトラックは、磁気テープ62の幅方向に対して、傾斜する様に物理的に記録される。   As shown in FIG. 3C, data is recorded on the magnetic tape 62 so that one group consists of 8000 tracks, and an invalid area having a predetermined interval is provided between the groups. This track is physically recorded so as to be inclined with respect to the width direction of the magnetic tape 62.

また、図3(C)においては、8000トラックで1グループとなるように、データが記録されている場合について図示されているが、1グループに含まれる、同期信号、ID、ECCなどを除いたデータ(すなわち、図3(A)におけるデータエリアに記載されるデータ)の容量は、キャッシュメモリ29の記憶容量によって決められる。上述したように、磁気テープ62へのデータの記録処理は、1記録単位ごとに行われるのではなく、1記録単位ごとにホストコンピュータからデータが供給されて、キャッシュメモリ29−1乃至29−nにデータがキャッシュされ、キャッシュメモリ29−1乃至29−nのうちのいずれか容量一杯にデータがキャッシュされたものから、キャッシュされたデータが読み出されて、所定の処理が施されて、磁気テープ62へデータが記録されるようになされている。すなわち、1グループのデータとは、磁気テープへ一度に記録されるデータのまとまりであり、換言すれば、キャッシュメモリ29−1乃至29−nのうちのいずれかにキャッシュされたデータに、ブロックごとに、ECCなどの冗長データが付加されたものであり、1グループのデータ容量は、キャッシュメモリ29に記録されるデータ容量を基に、ECC付加や変調処理などによって必要となる冗長度やリライト率を考慮したデータサイズ(例えば、キャッシュメモリ29のデータ容量の1.5倍程度)となる。また、磁気テープ62からのデータの読み出しも、ブロックごとに行われるので、磁気テープ62から読み出された1ブロックのデータは、復調されて、エラー訂正されたのち、キャッシュメモリ29−1乃至29−nのうちのいずれか1つにキャッシュすることができる。   In FIG. 3C, the case where data is recorded so as to form one group with 8000 tracks is illustrated, but the synchronization signal, ID, ECC, and the like included in one group are excluded. The capacity of data (that is, data described in the data area in FIG. 3A) is determined by the storage capacity of the cache memory 29. As described above, the data recording process on the magnetic tape 62 is not performed for each recording unit, but data is supplied from the host computer for each recording unit, and the cache memories 29-1 to 29-n. The data is cached, and the cached data is read from the cache memory 29-1 to 29-n where the capacity is full, and subjected to a predetermined process, so that the magnetic Data is recorded on the tape 62. That is, one group of data is a group of data recorded on the magnetic tape at one time. In other words, the data cached in any one of the cache memories 29-1 to 29-n is added to each block. In addition, redundant data such as ECC is added, and the data capacity of one group is based on the data capacity recorded in the cache memory 29, and the redundancy and rewrite rate required by ECC addition, modulation processing, etc. (For example, about 1.5 times the data capacity of the cache memory 29). Further, since data is read from the magnetic tape 62 for each block, the data of one block read from the magnetic tape 62 is demodulated and error-corrected, and then cache memories 29-1 to 29-29. It can be cached in any one of -n.

次に、図4を参照して、磁気テープ62に記録されるデータにおける、1記録単位と1グループとの関係について説明する。   Next, the relationship between one recording unit and one group in data recorded on the magnetic tape 62 will be described with reference to FIG.

上述したように、磁気テープ62へのデータの記録処理は、1記録単位ごとに行われるのではなく、1記録単位ごとにキャッシュメモリ29−1乃至29−nにデータがキャッシュされ、キャッシュメモリ29−1乃至29−nのうちのいずれか容量一杯にデータがキャッシュされたものから、キャッシュされたデータが読み出されて、所定の処理が施されて、磁気テープ62へデータが記録されるようになされている。すなわち、ホストコンピュータから供給されるデータのまとまりである1記録単位と、磁気テープ62に記録されるデータのまとまりである1グループとは、異なるデータ単位である。したがって、1記録単位のデータの容量が1グループより少ない場合、グループ151−1やグループ151−4のように、1グループに、複数の1記録単位のデータ(#0乃至#3および#5乃至#8のそれぞれ)が記録され、1記録単位のデータの容量が1グループより大きい場合、グループ151−2やグループ151−3のように、複数のグループにまたがって、1記録単位のデータ(#4−1および#4−2)が記録される。   As described above, the data recording process on the magnetic tape 62 is not performed for each recording unit, but the data is cached in the cache memories 29-1 to 29-n for each recording unit. -1 to 29-n, the cached data is read out from the data that has been cached to the full capacity, and subjected to predetermined processing so that the data is recorded on the magnetic tape 62. Has been made. That is, one recording unit that is a group of data supplied from the host computer and one group that is a group of data recorded on the magnetic tape 62 are different data units. Therefore, when the data capacity of one recording unit is smaller than one group, a plurality of data of one recording unit (# 0 to # 3 and # 5 to # 5) are assigned to one group as in the group 151-1 and the group 151-4. # 8) is recorded, and when the data capacity of one recording unit is larger than one group, data of one recording unit (#) extends over a plurality of groups, such as group 151-2 and group 151-3. 4-1 and # 4-2) are recorded.

次に、USBインターフェース21が、ホストコンピュータより、データの検索を指令するコマンドおよび検索のために用いられる検索条件または検索条件式の供給を受けた場合、USBインターフェース21は、システムコントローラ22に、データの検索を指令するコマンドおよび検索条件または検索条件式を供給する。   Next, when the USB interface 21 receives a command to search for data and a search condition or search condition expression used for the search from the host computer, the USB interface 21 sends data to the system controller 22. A command and a search condition or a search condition expression for instructing a search are supplied.

このとき、システムコントローラ22において実行される機能について説明すると、コマンド取得部101は、データの検索を指令するコマンドおよび検索条件または検索条件式を、検索処理部124に供給する。検索処理部124は、テーブル読み出し制御部125を制御して、MIC63の属性情報テーブルを読み出させる。そして、検索処理部124は、テーブル読み出し制御部125により読み出された属性情報テーブルに登録されている情報から、検索条件または検索条件式に合致するレコードを抽出し、問い合わせ結果情報生成処理部126に供給する。   At this time, the functions executed in the system controller 22 will be described. The command acquisition unit 101 supplies the search processing unit 124 with a command for instructing data search and a search condition or search condition expression. The search processing unit 124 controls the table read control unit 125 to read the attribute information table of the MIC 63. Then, the search processing unit 124 extracts a record that matches the search condition or the search condition expression from the information registered in the attribute information table read by the table read control unit 125, and the inquiry result information generation processing unit 126. To supply.

すなわち、検索処理部124は、リレーショナルデータベースシステム用の構造化問い合わせ言語、いわゆるSQLで記述された属性情報テーブルに登録された情報を検索することができる。   That is, the search processing unit 124 can search for information registered in an attribute information table described in a structured query language for relational database systems, so-called SQL.

問い合わせ結果情報生成処理部126は、検索処理部124から供給された、検索条件または検索条件式に合致したレコードに関する情報を基に、問い合わせ結果を示す情報を生成し、問い合わせ結果情報供給制御部127に供給する。問い合わせ結果を示す情報は、検索結果が複数レコードである場合、テーブル形式であっても、複数のレコード情報の集合であっても良いし、問い合わせの内容に合致した属性情報のみから構成されるものであっても良い。問い合わせ結果情報供給制御部127は、問い合わせ結果情報生成処理部126により生成された、問い合わせ結果を示す情報のホストコンピュータへの送信を制御する。   The inquiry result information generation processing unit 126 generates information indicating the inquiry result based on the information related to the record that matches the search condition or the search condition expression supplied from the search processing unit 124, and the inquiry result information supply control unit 127. To supply. When the search result is a plurality of records, the information indicating the query result may be in a table format or a set of a plurality of record information, and only includes attribute information that matches the content of the query. It may be. The inquiry result information supply control unit 127 controls transmission of information indicating the inquiry result generated by the inquiry result information generation processing unit 126 to the host computer.

次に、USBインターフェース21が、ホストコンピュータより、データの再生を指令するコマンドおよび再生されるデータを指定する情報の供給を受けた場合、USBインターフェース21は、システムコントローラ22に、データの再生を指令するコマンドおよび再生されるデータを指定する情報を供給する。   Next, when the USB interface 21 receives a command for instructing data reproduction and information specifying the data to be reproduced from the host computer, the USB interface 21 instructs the system controller 22 to reproduce the data. Provide information specifying the command to be played and the data to be played.

このとき、システムコントローラ22において実行される機能について説明すると、コマンド取得部101は、データの再生を指令するコマンドおよび再生されるデータを指定する情報を、記録再生制御部102および駆動制御部105に供給する。駆動制御部105は、メカドライバ34を動作させ、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させるために、サーボコントローラ32を制御し、磁気テープ26に記録されている指定されたデータを読み出させる。記録再生制御部102は、圧縮/変調およびRF処理部31、ECC処理部30、キャッシュメモリコントローラ28、並びに、圧縮/伸長処理部27を制御して、読み出されたデータの処理を制御する。   At this time, the functions executed in the system controller 22 will be described. The command acquisition unit 101 sends a command for instructing data reproduction and information for designating data to be reproduced to the recording / reproduction control unit 102 and the drive control unit 105. Supply. The drive control unit 105 operates the mechanical driver 34 to rotate and drive the drum motor 35-1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5. Then, the servo controller 32 is controlled to read the designated data recorded on the magnetic tape 26. The recording / playback control unit 102 controls the compression / modulation and RF processing unit 31, the ECC processing unit 30, the cache memory controller 28, and the compression / decompression processing unit 27 to control processing of the read data.

サーボコントローラ32は、システムコントローラ22の制御(換言すれば、駆動制御部105の制御)に基づいて、EEP−ROM33に記録されている情報を参照し、メカドライバ34を制御して、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させる。記録ヘッド41−1および41−2は、テープカセット51の磁気テープ62に記録されているデータを再生ヘッド42−1乃至42−3により読み出させて圧縮/変調およびRF処理部31に供給させる。   The servo controller 32 refers to information recorded in the EEP-ROM 33 based on the control of the system controller 22 (in other words, the control of the drive control unit 105), controls the mechanical driver 34, and controls the drum motor 35. −1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5 are driven to rotate. The recording heads 41-1 and 41-2 allow the data recorded on the magnetic tape 62 of the tape cassette 51 to be read by the reproducing heads 42-1 to 42-3 and supplied to the compression / modulation and RF processing unit 31. .

変調/復調およびRF処理部31は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、再生ヘッド42−1乃至42−3から供給されるRF信号に対して、再生イコライジング処理を行い、復調して、ECC処理部30に供給する。ECC処理部30は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、変調/復調およびRF処理部31から供給された復調されたデータのエラー訂正符号を基に、データにエラーが発生している場合は、それを検出して訂正する処理を実行し、エラー訂正後のデータを、キャッシュメモリコントローラ28に供給する。   The modulation / demodulation and RF processing unit 31 operates on the RF signals supplied from the reproduction heads 42-1 to 42-3 based on the control of the system controller 22 (in other words, the control of the recording / reproduction control unit 102). Then, reproduction equalizing processing is performed, demodulated, and supplied to the ECC processing unit 30. The ECC processing unit 30 is based on the error correction code of the demodulated data supplied from the modulation / demodulation and RF processing unit 31 based on the control of the system controller 22 (in other words, the control of the recording / reproducing control unit 102). If an error has occurred in the data, a process for detecting and correcting the error is executed, and the error-corrected data is supplied to the cache memory controller 28.

キャッシュメモリコントローラ28は、システムコントローラ22の制御(換言すれば、記録再生制御部102のキャッシュメモリ割り当て処理部111の制御)に基づいて、圧縮/伸長処理部27から供給された圧縮データをキャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかに供給してキャッシュさせるとともに、キャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかにキャッシュされているデータを読み出して、圧縮/伸長処理部27に供給する。   The cache memory controller 28 stores the compressed data supplied from the compression / decompression processing unit 27 based on the control of the system controller 22 (in other words, the control of the cache memory allocation processing unit 111 of the recording / playback control unit 102). 29-1 to cache memory 21-n is supplied and cached, and data cached in any of cache memory 29-1 to cache memory 21-n is read out and compressed / This is supplied to the decompression processing unit 27.

圧縮/伸長処理部27は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、キャッシュメモリコントローラ28から供給される圧縮されたデータを伸張して、USBインターフェース21に供給する。USBインターフェース21は、圧縮/伸長処理部27から供給された、磁気テープ62から読み出され、各種処理がなされたデータを、ホストコンピュータに出力する。   The compression / decompression processing unit 27 decompresses the compressed data supplied from the cache memory controller 28 based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102), and the USB interface 21 To supply. The USB interface 21 outputs data supplied from the compression / decompression processing unit 27, read from the magnetic tape 62, and subjected to various processes, to the host computer.

次に、USBインターフェース21が、ホストコンピュータから、例えば、所望のデータへアクセスするために必要な時間や、所望のデータを取得するために必要な時間などの問い合わせを受けた場合、USBインターフェース21は、システムコントローラ22に、問い合わせコマンドおよび問い合わせに対する回答を算出するために必要な情報を供給する。   Next, when the USB interface 21 receives an inquiry from the host computer such as the time required to access the desired data or the time required to acquire the desired data, the USB interface 21 The system controller 22 is supplied with information necessary for calculating an inquiry command and an answer to the inquiry.

このとき、システムコントローラ22において実行される機能について説明すると、コマンド取得部101は、問い合わせコマンドおよび問い合わせに対する回答を算出するために必要な情報を、検索処理部124および記録再生制御部102に供給する。検索処理部124は、テーブル読み出し制御部125を制御して、MIC63の属性情報テーブルを読み出させる。そして、検索処理部124は、テーブル読み出し制御部125により読み出された属性情報テーブルに登録されている情報から、問い合わせに対する回答を算出するために必要な情報を抽出し、問い合わせ結果情報生成処理部126に供給する。記録再生制御部102は、テープストリーマドライブ1の各部の状態を示す情報を、問い合わせ結果情報生成処理部126に供給する。   At this time, the functions executed in the system controller 22 will be described. The command acquisition unit 101 supplies information necessary for calculating an inquiry command and an answer to the inquiry to the search processing unit 124 and the recording / playback control unit 102. . The search processing unit 124 controls the table read control unit 125 to read the attribute information table of the MIC 63. Then, the search processing unit 124 extracts information necessary for calculating the answer to the query from the information registered in the attribute information table read by the table read control unit 125, and the query result information generation processing unit 126. The recording / reproducing control unit 102 supplies information indicating the state of each unit of the tape streamer drive 1 to the inquiry result information generation processing unit 126.

問い合わせ結果情報生成処理部126は、検索処理部124および記録再生制御部102から供給された情報を基に、問い合わせ結果を示す情報を生成し、問い合わせ結果情報供給制御部127に供給する。問い合わせ結果情報供給制御部127は、問い合わせ結果情報生成処理部126により生成された、問い合わせ結果を示す情報のホストコンピュータへの送信を制御する。   The inquiry result information generation processing unit 126 generates information indicating the inquiry result based on the information supplied from the search processing unit 124 and the recording / playback control unit 102 and supplies the information to the inquiry result information supply control unit 127. The inquiry result information supply control unit 127 controls transmission of information indicating the inquiry result generated by the inquiry result information generation processing unit 126 to the host computer.

図5は、図1のテープストリーマドライブ1と接続されているホストコンピュータ201の構成を示すブロック図である。   FIG. 5 is a block diagram showing the configuration of the host computer 201 connected to the tape streamer drive 1 of FIG.

CPU(Central Processing Unit)211は、ROM(Read Only Memory)212に記憶されているプログラム、または記憶部218からRAM(Random Access Memory)213にロードされたプログラムにしたがって、各種の処理を実行する。RAM213にはまた、CPU211が各種の処理を実行する上において必要なデータなども適宜記憶される。   A CPU (Central Processing Unit) 211 executes various processes according to a program stored in a ROM (Read Only Memory) 212 or a program loaded from a storage unit 218 to a RAM (Random Access Memory) 213. The RAM 213 also appropriately stores data necessary for the CPU 211 to execute various processes.

CPU211、ROM212、およびRAM213は、バス214を介して相互に接続されている。このバス214にはまた、入出力インターフェース215も接続されている。   The CPU 211, ROM 212, and RAM 213 are connected to each other via a bus 214. An input / output interface 215 is also connected to the bus 214.

入出力インターフェース215には、キーボード、マウスなどよりなる入力部216、ディスプレイやスピーカなどよりなる出力部217、ハードディスクなどより構成される記憶部218、図1を用いて説明したテープストリーマドライブ1と情報を授受するUSBインターフェース219が接続されている。   An input / output interface 215 includes an input unit 216 including a keyboard and a mouse, an output unit 217 including a display and a speaker, a storage unit 218 including a hard disk, and the tape streamer drive 1 described with reference to FIG. USB interface 219 is exchanged.

入出力インターフェース215にはまた、必要に応じてドライブ220が接続され、磁気ディスク231、光ディスク232、光磁気ディスク233、もしくは、半導体メモリ234などが適宜装着され、それらから読み出されたコンピュータプログラムが、必要に応じて記憶部218にインストールされる。   A drive 220 is connected to the input / output interface 215 as necessary, and a magnetic disk 231, an optical disk 232, a magneto-optical disk 233, a semiconductor memory 234, or the like is appropriately mounted, and a computer program read from them is loaded. The storage unit 218 is installed as necessary.

具体的には、ホストコンピュータ201のCPU211は、入出力インターフェース215およびバス214を介して、入力部216から供給された、ユーザの操作入力に基づいて、テープストリーマドライブ1に供給する各種コマンドおよびコマンドとともに供給される各種情報を生成し、バス214、入出力インターフェース215、および、USBインターフェース219を介して、テープストリーマドライブ1に供給する。   Specifically, the CPU 211 of the host computer 201 supplies various commands and commands to be supplied to the tape streamer drive 1 based on a user operation input supplied from the input unit 216 via the input / output interface 215 and the bus 214. Various types of information supplied together are generated and supplied to the tape streamer drive 1 via the bus 214, the input / output interface 215, and the USB interface 219.

ユーザが、記憶部218に記憶されているデータを選択して、テープストリーマドライブ1に装着されているテープカセット51の磁気テープ62に記憶させることを指令した場合(このとき、データは、記憶部218に残っていても、残っていなくても良い。換言すれば、データがコピーされる場合であっても、移動される場合であっても良い)、CPU211は、データの記録開始を指令するコマンドと、記録させるデータの属性情報を、バス214、入出力インターフェース215、および、USBインターフェース219を介して、テープストリーマドライブ1に供給し、そして、記憶部218に記憶されている選択されたデータを読み出して、入出力インターフェース215、および、USBインターフェース219を介して、テープストリーマドライブ1に供給する。   When the user selects data stored in the storage unit 218 and instructs the magnetic tape 62 of the tape cassette 51 attached to the tape streamer drive 1 to store the data (at this time, the data is stored in the storage unit 218). The CPU 211 may or may not remain at 218. In other words, the data may be copied or moved), and the CPU 211 instructs the start of data recording. The command and attribute information of data to be recorded are supplied to the tape streamer drive 1 via the bus 214, the input / output interface 215, and the USB interface 219, and the selected data stored in the storage unit 218. Is read out via the input / output interface 215 and the USB interface 219. Supplied to the flop streamer drive 1.

そして、USBインターフェース219が、テープストリーマドライブ1から磁気テープ62に記録されるデータを識別する識別情報である識別子を受信した場合、CPU211は、受信した識別子を、記録されたデータ、または、そのデータの属性情報と対応付けて、記憶部218またはRAM213に保存する。   When the USB interface 219 receives an identifier that is identification information for identifying data recorded on the magnetic tape 62 from the tape streamer drive 1, the CPU 211 converts the received identifier into recorded data or the data thereof. The attribute information is stored in the storage unit 218 or the RAM 213 in association with the attribute information.

また、ユーザが、テープストリーマドライブ1に装着されているテープカセット51の磁気テープ62に記憶されているデータを検索することを指令し、その検索条件を入力した場合、CPU211は、記録されているデータの検索を指令するコマンドと、検索条件または検索条件式を、バス214、入出力インターフェース215、および、USBインターフェース219を介して、テープストリーマドライブ1に供給する。   Further, when the user instructs to search the data stored in the magnetic tape 62 of the tape cassette 51 attached to the tape streamer drive 1 and inputs the search condition, the CPU 211 is recorded. A command for instructing data search and a search condition or search condition formula are supplied to the tape streamer drive 1 via the bus 214, the input / output interface 215, and the USB interface 219.

そして、USBインターフェース219が、テープストリーマドライブ1から問い合わせ結果情報を受信した場合、CPU211は、入出力インターフェース215、および、バス214を介して、供給された問い合わせ結果情報を取得し、ユーザに問い合わせ結果を通知するための表示画面データを生成し、バス214、および、入出力インターフェース215を介して、出力部217に供給し、ディスプレイに表示させる。   When the USB interface 219 receives the inquiry result information from the tape streamer drive 1, the CPU 211 acquires the supplied inquiry result information via the input / output interface 215 and the bus 214, and sends the inquiry result to the user. Display screen data is generated, supplied to the output unit 217 via the bus 214 and the input / output interface 215, and displayed on the display.

また、ユーザが、テープストリーマドライブ1に装着されているテープカセット51の磁気テープ62に記憶されているデータのうちのいずれかを指定して、そのデータの読み出しを指令した場合、CPU211は、指定されたデータの読み出しを指令するコマンドを、バス214、入出力インターフェース215、および、USBインターフェース219を介して、テープストリーマドライブ1に供給する。   Further, when the user designates one of the data stored in the magnetic tape 62 of the tape cassette 51 mounted in the tape streamer drive 1 and instructs to read the data, the CPU 211 designates A command for instructing reading of the read data is supplied to the tape streamer drive 1 via the bus 214, the input / output interface 215, and the USB interface 219.

そして、USBインターフェース219が、テープストリーマドライブ1から指定されたデータを受信した場合、CPU211は、受信されたデータを、記録部218に供給させて、記憶させ、必要に応じて、出力部217に供給し、表示画像データをディスプレイに表示させたり、音声をスピーカから出力させる。   When the USB interface 219 receives the designated data from the tape streamer drive 1, the CPU 211 supplies the received data to the recording unit 218 and stores it, and if necessary, outputs it to the output unit 217. The display image data is displayed on the display, and the sound is output from the speaker.

また、ユーザが、テープストリーマドライブ1に装着されているテープカセット51の磁気テープ62に記憶されている所望のデータにアクセスするために必要な時間や、所望のデータを取得するために必要な時間などを問い合わせることを指令した場合、CPU211は、問い合わせコマンドと、問い合わせに対する回答を算出するために必要な情報を、バス214、入出力インターフェース215、および、USBインターフェース219を介して、テープストリーマドライブ1に供給する。   Further, the time required for the user to access the desired data stored in the magnetic tape 62 of the tape cassette 51 attached to the tape streamer drive 1 or the time required to acquire the desired data. The CPU 211 sends an inquiry command and information necessary for calculating a response to the inquiry to the tape streamer drive 1 via the bus 214, the input / output interface 215, and the USB interface 219. To supply.

そして、USBインターフェース219が、テープストリーマドライブ1から問い合わせ結果情報を受信した場合、CPU211は、入出力インターフェース215、および、バス214を介して、供給された問い合わせ結果情報を取得し、ユーザに問い合わせ結果を通知するための表示画面データを生成し、バス214、および、入出力インターフェース215を介して、出力部217に供給し、ディスプレイに表示させる。   When the USB interface 219 receives the inquiry result information from the tape streamer drive 1, the CPU 211 acquires the supplied inquiry result information via the input / output interface 215 and the bus 214, and sends the inquiry result to the user. Display screen data is generated, supplied to the output unit 217 via the bus 214 and the input / output interface 215, and displayed on the display.

次に、図6のフローチャートを参照して、データ記憶時のホストコンピュータ201の処理について説明する。   Next, processing of the host computer 201 during data storage will be described with reference to the flowchart of FIG.

ステップS1において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、データの記録開始の指令を受けたか否かを判断する。ステップS1において、データの記録開始の指令を受けていないと判断された場合、データの記録開始の指令を受けたと判断されるまで、ステップS1の処理が繰り返される。   In step S <b> 1, the CPU 211 determines whether or not a data recording start command has been received based on a signal indicating an operation input by the user supplied from the input unit 216 via the input / output interface 215 and the bus 214. . If it is determined in step S1 that a data recording start command has not been received, step S1 is repeated until it is determined that a data recording start command has been received.

ステップS1において、データの記録開始の指令を受けたと判断された場合、ステップS2において、CPU211は、テープストリーマドライブ1に対してデータの記録開始を指令するコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、データの記録開始を指令するコマンドを、テープストリーマドライブ1に送信する。   If it is determined in step S1 that a data recording start command has been received, in step S2, the CPU 211 sends a command for instructing the tape streamer drive 1 to start data recording to the bus 214 and the input / output interface 215. Via the USB interface 219. The USB interface 219 transmits a command for instructing the start of data recording to the tape streamer drive 1.

ステップS3において、CPU211は、ステップS1においてユーザにより記録開始が指令されたデータを基に、必要に応じて、記録させる1記録単位のデータ、例えば、ホストコンピュータ201において、1ファイルとして扱われているデータに付随している属性情報を、記憶部218から読み出し、入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、記録させる1記録単位のデータの属性情報を、テープストリーマドライブ1に送信する。   In step S3, the CPU 211 treats one recording unit of data to be recorded as needed based on the data instructed by the user in step S1, for example, one file in the host computer 201. The attribute information attached to the data is read from the storage unit 218 and supplied to the USB interface 219 via the input / output interface 215. The USB interface 219 transmits the attribute information of the data of one recording unit to be recorded to the tape streamer drive 1.

ここで、ステップS3において、記録させる1記録単位のデータの属性情報のうちテープストリーマドライブ1に送信することが可能な属性情報があるか否かは、例えば、記録させる1記録単位のデータのフォーマットや、属性情報がデータに対してどのように対応付けられているかによって異なる。具体的には、属性情報がデータに多重化されていたり、ヘッダとしてデータ内に記述されているのみである場合、ステップS3において、属性情報をテープストリーマドライブ1に送信することは容易ではない。しかしながら、このような場合でも、CPU211の処理により、予め、属性情報がデータから抽出されて、例えば、属性情報ファイルなどの形で保存されているようになされていれば、ステップS3において、属性情報をテープストリーマドライブ1に送信することは容易である。   Here, in step S3, whether or not there is attribute information that can be transmitted to the tape streamer drive 1 among the attribute information of the data of one recording unit to be recorded is, for example, the format of the data of one recording unit to be recorded. And how the attribute information is associated with the data. Specifically, if the attribute information is multiplexed with the data or only described in the data as a header, it is not easy to transmit the attribute information to the tape streamer drive 1 in step S3. However, even in such a case, if the attribute information is previously extracted from the data by the processing of the CPU 211 and stored in the form of, for example, an attribute information file, the attribute information is determined in step S3. Can be easily transmitted to the tape streamer drive 1.

特に、ステップS3において、記録させる1記録単位のデータの属性情報として、例えば、データサイズやデータの種別を示す情報など、後述するテープストリーマドライブ1の処理において、キャッシュメモリ29の割り当てを決定するために用いられる情報をテープストリーマドライブ1に送信することができると、テープストリーマドライブ1において実行されるデータ記録において好適である。   In particular, in step S3, for determining the allocation of the cache memory 29 in the processing of the tape streamer drive 1, which will be described later, as the attribute information of the data of one recording unit to be recorded, for example, information indicating the data size or the type of data. If the information used in the above can be transmitted to the tape streamer drive 1, it is suitable for data recording executed in the tape streamer drive 1.

ステップS4において、USBインターフェース219は、記録させる1記録単位のデータに対応付けられた識別子を受信する。この識別子は、図7を用いて後述する、データ記録時のテープストリーマドライブ1の処理のステップS33において、テープストリーマドライブ1から送信されるものである。CPU211は、受信された識別子を記憶部218、または、RAM213に供給させて記憶させる。記憶部218、または、RAM213は、供給された識別子を記憶する。   In step S4, the USB interface 219 receives an identifier associated with data of one recording unit to be recorded. This identifier is transmitted from the tape streamer drive 1 in step S33 of the processing of the tape streamer drive 1 at the time of data recording, which will be described later with reference to FIG. The CPU 211 supplies the received identifier to the storage unit 218 or the RAM 213 for storage. The storage unit 218 or the RAM 213 stores the supplied identifier.

ステップS5において、CPU211は、記録させる1記録単位のデータを、記憶部218から読み出し、USBインターフェース219を介して、テープストリーマドライブ1に送信する。   In step S <b> 5, the CPU 211 reads data for one recording unit to be recorded from the storage unit 218 and transmits it to the tape streamer drive 1 via the USB interface 219.

ステップS6において、CPU211は、1記録単位のデータの送信が終了したか否かを判断する。ステップS6において、1記録単位のデータの送信が終了していないと判断された場合、処理は、ステップS5に戻り、それ以降の処理が繰り返される。ステップS6において、1記録単位のデータの送信が終了したと判断された場合、処理は、終了される。   In step S6, the CPU 211 determines whether or not transmission of data for one recording unit has been completed. If it is determined in step S6 that the transmission of data for one recording unit has not ended, the process returns to step S5, and the subsequent processes are repeated. If it is determined in step S6 that the transmission of data for one recording unit has been completed, the processing is terminated.

このような処理により、ホストコンピュータ201は、テープストリーマドライブ1を用いて、テープカセット51の磁気テープ62に記録させる1記録単位のデータ、例えば、ホストコンピュータ201において、1ファイルとして扱われているデータの記録をテープストリーマドライブ1に指令し、必要に応じて対応する属性情報を送信して、記録される1記録単位のデータの識別子をテープストリーマドライブ1から受信して記憶するとともに、記録される1記録単位のデータを、テープストリーマドライブ1に送信する。   By such processing, the host computer 201 uses the tape streamer drive 1 to record one recording unit data to be recorded on the magnetic tape 62 of the tape cassette 51, for example, data handled as one file in the host computer 201. Is sent to the tape streamer drive 1 and the corresponding attribute information is transmitted as necessary, and the identifier of the data of one recording unit to be recorded is received from the tape streamer drive 1 and stored and recorded. One recording unit of data is transmitted to the tape streamer drive 1.

次に、図7および図8のフローチャートを参照して、図6を用いて説明した処理と並行して実行される、データ記憶時のテープストリーマドライブ1の処理について説明する。   Next, processing of the tape streamer drive 1 during data storage, which is executed in parallel with the processing described with reference to FIG. 6, will be described with reference to the flowcharts of FIGS.

なお、ここでは、テープストリーマドライブ1が実現可能な機能について説明した図2の機能ブロックを基に、処理を説明する。すなわち、これらの処理は、図1を用いて説明したテープストリーマドライブ1内のハードウェアによって実現される機能や、システムコントローラ22において実行されるソフトウェアプログラムによって実現される機能によって実行される処理であり、例えば、コマンド取得部101がコマンドを取得する処理は、システムコントローラ22がUSBインターフェース21を介して、コマンドを取得することと同義である。以下、このような機能ブロックとハードウェアブロックとの対応の記載は上述した図1および図2の説明から自明であるので、適宜省略する。   Here, the processing will be described based on the functional blocks of FIG. 2 that describe the functions that can be realized by the tape streamer drive 1. That is, these processes are processes executed by functions realized by the hardware in the tape streamer drive 1 described with reference to FIG. 1 and functions realized by a software program executed in the system controller 22. For example, the process in which the command acquisition unit 101 acquires a command is synonymous with the system controller 22 acquiring a command via the USB interface 21. Hereinafter, the description of the correspondence between such functional blocks and hardware blocks is obvious from the description of FIG. 1 and FIG.

ステップS31において、コマンド取得部101は、ホストコンピュータ201から、データの記録開始を指令するコマンド、すなわち、図6のステップS2の処理によりホストコンピュータ201が送信したデータの記録開始を指令するコマンドを受信したか否かを判断する。ステップS31において、データの記録開始を指令するコマンドを受信していないと判断された場合、受信したと判断されるまで、ステップS31の処理が繰り返される。   In step S31, the command acquisition unit 101 receives from the host computer 201 a command for instructing the start of data recording, that is, a command for instructing the start of data recording transmitted by the host computer 201 in the process of step S2 in FIG. Determine whether or not. If it is determined in step S31 that a command for instructing data recording is not received, the process of step S31 is repeated until it is determined that the command is received.

ステップS31において、データの記録開始を指令するコマンドを受信したと判断された場合、ステップS32において、コマンド取得部101は、データの記録開始を指令するコマンドの供給を受けたことを、識別子生成部103に通知するので、識別子生成部103は、記録させる1記録単位のデータに対応付ける識別子を生成する。   If it is determined in step S31 that a command for instructing the start of data recording has been received, in step S32, the command acquisition unit 101 indicates that the command for instructing the start of data recording has been received. 103, the identifier generation unit 103 generates an identifier associated with one recording unit of data to be recorded.

ステップS33において、識別子生成部103は、生成された識別子を、ホストコンピュータ201に送信するとともに、記録再生制御部102に供給する。記録再生制御部102は、供給された識別子を属性情報生成部122に供給する。   In step S <b> 33, the identifier generation unit 103 transmits the generated identifier to the host computer 201 and supplies it to the recording / playback control unit 102. The recording / playback control unit 102 supplies the supplied identifier to the attribute information generation unit 122.

ステップS34において、コマンド取得部101は、ホストコンピュータ201から、記録させる1記録単位のデータの属性情報を受信したか否かを判断する。   In step S <b> 34, the command acquisition unit 101 determines whether or not attribute information of data for one recording unit to be recorded is received from the host computer 201.

ステップS34において、ホストコンピュータ201から、記録させる1記録単位のデータの属性情報を受信したと判断された場合、ステップS35において、コマンド取得部101は、属性情報を、属性情報取得部121に供給し、属性情報取得部121は、属性情報を、属性情報生成部122およびテーブル記憶制御部123に供給する。テーブル記憶制御部123は、属性情報生成部122から識別子の供給を受け、例えば、図9に示されるような属性情報テーブルに、生成された識別子に対応する新たなレコードを構成し、記録される1記録単位のデータの属性情報を登録する。具体的には、システムコントローラ22の制御に基づいて、テープカセット51のMIC63から読み出され、キャッシュメモリ37に一時記憶されている属性情報テーブルに、新たに記録される1記録単位のデータの属性情報が追加される。キャッシュメモリ37に一時記憶されている属性情報テーブルの情報は、例えば、テープカセット51がテープストリーマドライブ1から排出されることが指令された場合、MIC63に書き込まれるようになされている。   If it is determined in step S34 that the attribute information of one recording unit of data to be recorded is received from the host computer 201, the command acquisition unit 101 supplies the attribute information to the attribute information acquisition unit 121 in step S35. The attribute information acquisition unit 121 supplies the attribute information to the attribute information generation unit 122 and the table storage control unit 123. The table storage control unit 123 receives supply of the identifier from the attribute information generation unit 122, configures and records a new record corresponding to the generated identifier, for example, in the attribute information table as shown in FIG. Register attribute information of data of one recording unit. Specifically, based on the control of the system controller 22, the attribute of data of one recording unit newly read in the attribute information table read from the MIC 63 of the tape cassette 51 and temporarily stored in the cache memory 37. Information is added. The information in the attribute information table temporarily stored in the cache memory 37 is written in the MIC 63, for example, when the tape cassette 51 is instructed to be ejected from the tape streamer drive 1.

図9に示される属性情報テーブルには、1記録単位のデータ(ファイル)を区別可能な識別子毎に、例えば、ファイル名やタイトル、ファイルの作成日時や更新日時、データサイズ、ファイルのデータの種類を示すデータ種別(例えば、動画データ、静止画データ、テキストデータ、音声データ、映像データなどの種類)、データの圧縮率などのほか、データ内容を説明する情報(例えば、テレビジョン放送番組などのコンテンツであれば、放送日時、放送局名、番組名、出演者名など、いわゆる、メタデータに含まれる情報)、データの作成者または版権を有するものの名称、データ作成に用いられたアプリケーション名、動画データや映像データの再生時間、動画データのフレームレート、ビットレート、サンプリングレート、または、コーディックタイプなどに関する情報、データの再生モードに関する情報、エラーレートなどの信頼性情報、再生時に必要な平均転送レート、アクセス頻度、または、ユーザがファイル(1記録単位のデータ)に対して付加した情報などが、ホストコンピュータ210から供給された属性情報として登録されるほか、更に、データの記録が終了した後に生成されるものとしては、データ記録位置を示す情報であるグループ番号やグループ先頭からのオフセットなどが、属性情報として登録される。   The attribute information table shown in FIG. 9 includes, for example, a file name, a title, a file creation date / update date / time, a data size, and a file data type for each identifier capable of distinguishing data (file) of one recording unit. In addition to data type (for example, types of moving image data, still image data, text data, audio data, video data, etc.), data compression rate, etc., information explaining the data content (for example, a television broadcast program, etc.) If it is content, broadcast date and time, broadcast station name, program name, performer name, etc., so-called information included in the metadata), name of the creator or copyright holder of the data, application name used for data creation, Movie data and video data playback time, movie data frame rate, bit rate, sampling rate, or -Information related to dick type, information related to data playback mode, reliability information such as error rate, average transfer rate required during playback, access frequency, or user added to a file (data per recording unit) In addition to being registered as attribute information supplied from the host computer 210, the information generated after the data recording is completed includes a group number, which is information indicating the data recording position, and the information from the head of the group. An offset or the like is registered as attribute information.

ステップS34において、ホストコンピュータ201から、記録させる1記録単位のデータの属性情報を受信していないと判断された場合、または、ステップS35の処理の終了後、ステップS36において、記録再生制御部102のキャッシュメモリ割り当て処理部111は、供給されるデータをキャッシュするキャッシュメモリ29の割り当てを決定する。   If it is determined in step S34 that the attribute information of the data for one recording unit to be recorded has not been received from the host computer 201, or after the process of step S35 is completed, the recording / playback control unit 102 performs the process in step S36. The cache memory allocation processing unit 111 determines allocation of the cache memory 29 that caches supplied data.

具体的には、キャッシュメモリ割り当て処理部111は、ステップS34においてデータの属性情報を受信したと判断された場合は、その属性情報を基に、キャッシュメモリ29の割り当てを決定する。具体的には、キャッシュメモリ割り当て処理部111は、データ容量によってキャッシュ先を変更するようにした場合には、例えば、小さなサイズのデータを同一のキャッシュメモリ29にまとめてキャッシュするなどして、供給されるデータの容量によって、データをキャッシュするキャッシュメモリ29を決定することにより、磁気テープ62において、小さなデータサイズのデータが、グループにまとまって記録されるようにすることができ、データの種類によってキャッシュ先を変更するようにした場合には、例えば、動画、静止画、テキストなどのデータの種類によって、データをキャッシュするキャッシュメモリ29を決定することにより、磁気テープ62において、同じ種類のデータが、グループにまとまって記録されるようにすることができる。また、キャッシュメモリ割り当て処理部111は、ステップS34においてデータの属性情報を受信していないと判断された場合は、現在のキャッシュメモリ29のデータのキャッシュ状態を基に、供給されたデータを割り当てるキャッシュメモリ29を決定する。   Specifically, when it is determined in step S34 that the attribute information of the data has been received, the cache memory allocation processing unit 111 determines the allocation of the cache memory 29 based on the attribute information. Specifically, when the cache destination is changed according to the data capacity, for example, the cache memory allocation processing unit 111 supplies the small-size data by caching them in the same cache memory 29, for example. By determining the cache memory 29 that caches the data according to the capacity of the data to be recorded, data of a small data size can be recorded in a group on the magnetic tape 62, and depending on the type of data When the cache destination is changed, for example, the same type of data is stored on the magnetic tape 62 by determining the cache memory 29 that caches data according to the type of data such as moving images, still images, and texts. , To be recorded as a group It can be. If the cache memory allocation processing unit 111 determines that the attribute information of the data has not been received in step S34, the cache memory allocation processing unit 111 allocates the supplied data based on the current cache state of the data in the cache memory 29. The memory 29 is determined.

ステップS37において、記録再生制御部102は、ホストコンピュータ201からの、1記録単位のデータの受信を開始する。具体的には、USBインターフェース21は、ホストコンピュータ201から、記録されるデータの供給を受けて、圧縮/伸長処理部27に供給する。圧縮/伸長処理部27は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、供給されたデータを、所定の方式で圧縮し、キャッシュメモリコントローラ28に供給する。   In step S <b> 37, the recording / playback control unit 102 starts receiving data of one recording unit from the host computer 201. Specifically, the USB interface 21 receives supply of recorded data from the host computer 201 and supplies the data to the compression / decompression processing unit 27. The compression / decompression processing unit 27 compresses the supplied data by a predetermined method based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102), and supplies the compressed data to the cache memory controller 28. .

ステップS38において、記録再生制御部102は、割り当てにしたがって、キャッシュメモリ29のうちのいずれかにデータをキャッシュする。具体的には、キャッシュメモリコントローラ28は、システムコントローラ22の制御(換言すれば、記録再生制御部102のキャッシュメモリ割り当て処理部111の制御)に基づいて、供給された圧縮データを、ステップS36の処理により決められた割り当てに基づいて、キャッシュメモリ29−1乃至29−nのうちのいずれかに供給して保存させる。   In step S38, the recording / playback control unit 102 caches the data in one of the cache memories 29 according to the assignment. Specifically, the cache memory controller 28 converts the supplied compressed data in step S36 based on the control of the system controller 22 (in other words, the control of the cache memory allocation processing unit 111 of the recording / playback control unit 102). Based on the allocation determined by the processing, it is supplied to one of the cache memories 29-1 to 29-n and stored.

ステップS39において、記録再生制御部102のキャッシュメモリ割り当て処理部111は、いずれかのキャッシュメモリ29の容量がいっぱいになったか否かを判断する。ステップS39において、いずれのキャッシュメモリ29も容量がいっぱいになっていないと判断された場合、処理は、後述するステップS43に進む。   In step S39, the cache memory allocation processing unit 111 of the recording / playback control unit 102 determines whether or not the capacity of any of the cache memories 29 is full. If it is determined in step S39 that none of the cache memories 29 is full, the process proceeds to step S43 described later.

ステップS39において、いずれかのキャッシュメモリ29の容量がいっぱいになったと判断された場合、ステップS40において、記録再生制御部102のキャッシュメモリ割り当て処理部111は、受信したデータの保存先のキャッシュメモリ29を変更する。   If it is determined in step S39 that the capacity of any one of the cache memories 29 is full, in step S40, the cache memory allocation processing unit 111 of the recording / playback control unit 102 stores the received data in the cache memory 29. To change.

ステップS41において、記録再生制御部102および駆動制御部105は、容量がいっぱいになったキャッシュメモリ29にキャッシュされているデータを、キャッシュメモリ29から読み出して、磁気テープ62へ記録させる。具体的には、キャッシュメモリコントローラ28は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、容量が一杯となったキャッシュメモリ29に記録されているデータを読み出して、ECC処理部30に供給する。ECC処理部30は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、供給されたデータの1ブロックごとに、例えば、パリティビットなど、エラーチェックのためのコードを付加し、変調/復調およびRF処理部31に供給する。変調/復調およびRF処理部31は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、供給されたデータを変調してRF信号に変換し、RF信号に対して、増幅やイコライジング処理を施して、記録ヘッド41−1および41−2に供給する。また、サーボコントローラ32は、システムコントローラ22の制御(換言すれば、駆動制御部105の制御)に基づいて、EEP−ROM33に記録されている情報を参照し、メカドライバ34を制御して、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させる。記録ヘッド41−1および41−2は、ヘリカルスキャン方式で、供給されたデータを、テープカセット51の磁気テープ62に記録する。データは、1記録単位のデータの容量(ホストコンピュータ201において、例えば、ファイルとして扱われているデータのデータサイズ)にかかわらず、図3および図4を用いて説明したように、キャッシュメモリ29の記憶容量によって決まるデータ容量のグループ単位で、テープカセット51の磁気テープ62に記録される。   In step S 41, the recording / playback control unit 102 and the drive control unit 105 read the data cached in the cache memory 29 whose capacity is full from the cache memory 29 and record it on the magnetic tape 62. Specifically, the cache memory controller 28 reads the data recorded in the cache memory 29 whose capacity is full based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102). To the ECC processing unit 30. Based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102), the ECC processing unit 30 performs error check code such as a parity bit for each block of the supplied data. Is supplied to the modulation / demodulation and RF processing unit 31. The modulation / demodulation and RF processing unit 31 modulates the supplied data and converts it into an RF signal based on the control of the system controller 22 (in other words, the control of the recording / reproduction control unit 102). Then, amplification and equalizing processes are performed and the recording heads 41-1 and 41-2 are supplied. The servo controller 32 refers to information recorded in the EEP-ROM 33 based on the control of the system controller 22 (in other words, the control of the drive control unit 105), controls the mechanical driver 34, and controls the drum The motor 35-1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5 are driven to rotate. The recording heads 41-1 and 41-2 record the supplied data on the magnetic tape 62 of the tape cassette 51 by a helical scan method. As described with reference to FIGS. 3 and 4, the data is stored in the cache memory 29 regardless of the data capacity of one recording unit (for example, the data size of data handled as a file in the host computer 201). The data is recorded on the magnetic tape 62 of the tape cassette 51 in groups of data capacity determined by the storage capacity.

ステップS42において、記録再生制御部102は、磁気テープ62へのデータの記録位置の情報を属性情報生成部122に供給する。属性情報生成部122は、データの記録位置の情報を、一時保持する。   In step S <b> 42, the recording / playback control unit 102 supplies information on the recording position of data on the magnetic tape 62 to the attribute information generation unit 122. The attribute information generation unit 122 temporarily holds data recording position information.

ステップS39において、いずれのキャッシュメモリ29も容量がいっぱいになっていないと判断された場合、または、ステップS42の処理の終了後、ステップS43において、記録再生制御部102は、1記録単位のデータの受信およびキャッシュが終了したか否かを判断する。ステップS43において、1記録単位のデータの受信およびキャッシュが終了していないと判断された場合、処理は、ステップS39に戻り、それ以降の処理が繰り返される。   If it is determined in step S39 that none of the cache memories 29 is full, or after the processing of step S42 is completed, the recording / playback control unit 102 in step S43 determines the data of one recording unit. It is determined whether reception and cache have ended. If it is determined in step S43 that reception of one recording unit of data and caching have not ended, the processing returns to step S39, and the subsequent processing is repeated.

ステップS43において、1記録単位のデータの受信およびキャッシュが終了したと判断された場合、ステップS44において、記録再生制御部102は、1記録単位のデータの受信およびキャッシュが終了したことを、属性情報生成部122に通知する。属性情報生成部122は、1記録単位のデータに含まれていたか、または、記録終了により発生した属性情報があるか否かを判断する。記録終了により発生する属性情報には、例えば、データ記録位置を示すグループ番号やグループ先頭からのバイトオフセットなどがある。   If it is determined in step S43 that reception of one recording unit of data and caching has been completed, in step S44, the recording / playback control unit 102 indicates that reception of one recording unit of data and caching has ended. Notify the generation unit 122. The attribute information generation unit 122 determines whether or not there is attribute information that is included in the data of one recording unit or is generated by the end of recording. The attribute information generated by the end of recording includes, for example, a group number indicating a data recording position and a byte offset from the head of the group.

ステップS44において、1記録単位のデータに含まれていたか、または、記録終了により発生した属性情報があると判断された場合、ステップS45において、属性情報生成部122は、1記録単位のデータに含まれていたか、または、記録終了により発生した属性情報を、テーブル記憶制御部123に供給し、テープル記憶制御部123は、1記録単位のデータに含まれていたか、または、記録終了により発生した属性情報を、属性情報テーブルのうち、受信およびキャッシュが終了した1記録単位のデータに対応付けて生成された識別子に対応するレコードに登録する。具体的には、システムコントローラ22の制御に基づいて、テープカセット51のMIC63から読み出され、キャッシュメモリ37に一時記憶されている属性情報テーブルに、新たに記録された1記録単位のデータの属性情報が追加される。キャッシュメモリ37に一時記憶されている属性情報テーブルの情報は、例えば、テープカセット51がテープストリーマドライブ1から排出されることが指令された場合、MIC63に書き込まれるようになされている。   If it is determined in step S44 that the attribute information is included in the data of one recording unit or there is attribute information generated by the end of recording, the attribute information generation unit 122 is included in the data of one recording unit in step S45. The attribute information generated by the end of the recording is supplied to the table storage control unit 123, and the table storage control unit 123 is included in the data of one recording unit or the attribute information generated by the end of the recording Information is registered in a record corresponding to an identifier generated in association with data of one recording unit that has been received and cached in the attribute information table. Specifically, under the control of the system controller 22, the attribute of the data of one recording unit newly recorded in the attribute information table read from the MIC 63 of the tape cassette 51 and temporarily stored in the cache memory 37. Information is added. The information in the attribute information table temporarily stored in the cache memory 37 is written in the MIC 63, for example, when the tape cassette 51 is instructed to be ejected from the tape streamer drive 1.

ステップS44において、1記録単位のデータに含まれていたか、または、記録終了により発生した属性情報がないと判断された場合、または、ステップS45の処理の終了後、処理が終了される。   In step S44, when it is determined that there is no attribute information included in the data of one recording unit or generated by the end of recording, or after the processing of step S45 is ended, the processing is ended.

このような処理により、ホストコンピュータ201からテープストリーマドライブ1に供給された1記録単位のデータが、キャッシュメモリ29に一時キャッシュされ、図3および図4を用いて説明したように、キャッシュメモリ29の記憶容量によって決まるデータ容量のグループ単位で、テープカセット51の磁気テープ62に記録されるとともに、1記録単位のデータに対応する属性情報が、属性情報テーブルに登録される。   Through such processing, data of one recording unit supplied from the host computer 201 to the tape streamer drive 1 is temporarily cached in the cache memory 29, and as described with reference to FIGS. The attribute information corresponding to the data of one recording unit is registered in the attribute information table while being recorded on the magnetic tape 62 of the tape cassette 51 in units of data capacity determined by the storage capacity.

次に、図10のフローチャートを参照して、データ読み出し時のホストコンピュータ201の処理について説明する。図10を用いて説明する処理には、データ読み出しのための検索を行う場合の処理も含まれる。   Next, processing of the host computer 201 at the time of data reading will be described with reference to the flowchart of FIG. The processing described with reference to FIG. 10 includes processing for performing a search for reading data.

ステップS71において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、検索条件(または、検索条件式であっても良い。以下、同様)と、その条件に合致したデータの属性情報の問い合わせが指令されたか否かを判断する。ステップS71において、検索条件が入力され、その条件に合致したデータの属性情報の問い合わせが指令されなかったと判断された場合、処理は、後述するステップS73に進む。   In step S <b> 71, the CPU 211 may use a search condition (or a search condition expression) based on a signal indicating a user operation input supplied from the input unit 216 via the input / output interface 215 and the bus 214. The same applies to the following), and it is determined whether or not an inquiry about attribute information of data that matches the condition is instructed. If it is determined in step S71 that a search condition has been input and an inquiry about attribute information of data that matches the condition has not been instructed, the process proceeds to step S73 described later.

ステップS71において、検索条件が入力され、その条件に合致したデータの属性情報の問い合わせが指令されたと判断された場合、ステップS72において、CPU211は、テープストリーマドライブ1に対して検索条件に合致した属性情報の問い合わせる問い合わせコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、検索条件に合致した属性情報の問い合わせコマンドを、テープストリーマドライブ1に送信し、処理は、後述するステップS79に進む。   If it is determined in step S71 that a search condition has been input and an inquiry for attribute information of data that matches the condition has been instructed, in step S72, the CPU 211 determines the attribute that matches the search condition for the tape streamer drive 1. An inquiry command for inquiring information is supplied to the USB interface 219 via the bus 214 and the input / output interface 215. The USB interface 219 transmits an attribute information inquiry command that matches the search condition to the tape streamer drive 1, and the process proceeds to step S79 described later.

ステップS71において、検索条件が入力され、その条件に合致したデータの属性情報の問い合わせが指令されなかったと判断された場合、ステップS73において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、検索条件が入力され、その条件に合致したデータの統計情報の問い合わせが指令されたか否かを判断する。統計情報とは、例えば、検索条件に合致するデータ数、検索条件に合致するデータの合計のデータ容量、所望データへのアクセス時間、または、所望データをホストコンピュータに転送する場合にかかる時間などである。ステップS73において、検索条件が入力され、その条件に合致したデータの統計情報の問い合わせが指令されていないと判断された場合、処理は、後述するステップS75に進む。   If it is determined in step S71 that a search condition has been input and an inquiry about attribute information of data that matches the condition has not been instructed, in step S73, the CPU 211 receives an input unit via the input / output interface 215 and the bus 214. Based on the signal indicating the user's operation input supplied from 216, it is determined whether or not a search condition has been input and an inquiry for statistical information on data that matches the condition has been commanded. The statistical information is, for example, the number of data that matches the search condition, the total data capacity of the data that matches the search condition, the access time to the desired data, or the time taken to transfer the desired data to the host computer. is there. If it is determined in step S73 that a search condition has been input and an inquiry for statistical information of data that matches the condition has not been instructed, the process proceeds to step S75 described below.

ステップS73において、検索条件が入力され、その条件に合致したデータの統計情報の問い合わせが指令されたと判断された場合、ステップS74において、CPU211は、テープストリーマドライブ1に対して検索条件に合致した統計情報を問い合わせる問い合わせコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、検索条件に合致した統計情報の問い合わせコマンドを、テープストリーマドライブ1に送信し、処理は、後述するステップS79に進む。   If it is determined in step S73 that a search condition has been input and an inquiry for statistical information on data that satisfies the condition has been commanded, in step S74, the CPU 211 determines the statistics that match the search condition for the tape streamer drive 1. An inquiry command for inquiring information is supplied to the USB interface 219 via the bus 214 and the input / output interface 215. The USB interface 219 transmits an inquiry command for statistical information that matches the search condition to the tape streamer drive 1, and the process proceeds to step S79 described later.

ステップS73において、検索条件が入力され、その条件に合致したデータの統計情報の問い合わせが指令されていないと判断された場合、ステップS75において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、検索条件が入力され、その条件に合致したデータの属性情報および統計情報の問い合わせが指令されたか否かを判断する。ステップS75において、検索条件が入力され、その条件に合致したデータの属性情報および統計情報の問い合わせが指令されていないと判断された場合、処理は、後述するステップS77に進む。   If it is determined in step S73 that a search condition has been input and an inquiry for statistical information of data that matches the condition has not been instructed, the CPU 211 inputs via the input / output interface 215 and the bus 214 in step S75. Based on the signal indicating the user's operation input supplied from the unit 216, it is determined whether or not a search condition has been input and an inquiry for attribute information and statistical information of data that matches the condition has been commanded. If it is determined in step S75 that a search condition has been input and an inquiry about attribute information and statistical information of data that matches the condition has not been instructed, the process proceeds to step S77 to be described later.

ステップS75において、検索条件が入力され、その条件に合致したデータの属性情報および統計情報の問い合わせが指令されたと判断された場合、ステップS76において、CPU211は、テープストリーマドライブ1に対して検索条件に合致した属性情報および統計情報を問い合わせる問い合わせコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、検索条件に合致した属性情報および統計情報の問い合わせコマンドを、テープストリーマドライブ1に送信し、処理は、後述するステップS79に進む。   If it is determined in step S75 that a search condition has been input and an inquiry about attribute information and statistical information of data that matches the condition has been instructed, the CPU 211 sets the search condition for the tape streamer drive 1 in step S76. An inquiry command for inquiring the matched attribute information and statistical information is supplied to the USB interface 219 via the bus 214 and the input / output interface 215. The USB interface 219 transmits an attribute information and statistical information inquiry command that matches the search condition to the tape streamer drive 1, and the process proceeds to step S 79 described later.

ステップS75において、検索条件が入力され、その条件に合致したデータの属性情報および統計情報の問い合わせが指令されていないと判断された場合、ステップS77において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、検索条件が入力され、その条件に合致したデータの送信が指令されたか否かを判断する。ステップS77において、検索条件が入力され、その条件に合致したデータの送信が指令されていないと判断された場合、処理は、ステップS71に戻り、それ以降の処理が繰り返される。   If it is determined in step S75 that a search condition has been input and an inquiry about attribute information and statistical information of data that matches the condition has not been instructed, in step S77, the CPU 211 uses the input / output interface 215 and the bus 214. Based on the signal indicating the user's operation input supplied from the input unit 216 via the input unit 216, it is determined whether or not a search condition is input and transmission of data that matches the condition is instructed. If it is determined in step S77 that a search condition is input and that transmission of data that matches the condition is not instructed, the process returns to step S71, and the subsequent processes are repeated.

ステップS77において、検索条件が入力され、その条件に合致したデータの送信が指令されたと判断された場合、ステップS78において、CPU211は、テープストリーマドライブ1に対して検索条件に合致したデータの送信を要求するコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、検索条件に合致したデータの送信要求コマンドを、テープストリーマドライブ1に送信し、処理は、後述するステップS83に進む。   If it is determined in step S77 that a search condition is input and transmission of data that matches the condition is instructed, in step S78, the CPU 211 sends data that matches the search condition to the tape streamer drive 1. The requested command is supplied to the USB interface 219 via the bus 214 and the input / output interface 215. The USB interface 219 transmits a data transmission request command that matches the search condition to the tape streamer drive 1, and the process proceeds to step S83 to be described later.

ステップS72、ステップS74、または、ステップS76の処理の終了後、ステップS79において、USBインターフェース219は、コマンドの返信として、テープストリーマドライブ1が、図11を用いて後述するステップS120の処理において送信する、問い合わせ結果情報が受信されたか否かを判断する。ステップS79において、問い合わせ結果情報が受信されていないと判断された場合、問い合わせ結果情報が受信されたと判断されるまで、ステップS79の処理が繰り返される。   After the process of step S72, step S74, or step S76 is completed, in step S79, the USB interface 219 transmits, as a command reply, the tape streamer drive 1 in the process of step S120 described later with reference to FIG. It is determined whether inquiry result information has been received. If it is determined in step S79 that inquiry result information has not been received, the process in step S79 is repeated until it is determined that inquiry result information has been received.

ステップS79において、問い合わせ結果情報が受信されたと判断された場合、ステップS80において、USBインターフェース219は、問い合わせ結果情報を、入出力インターフェース215およびバス214を介して、CPU211に供給するので、CPU211は、問い合わせ結果情報を基に、問い合わせに対する返信内容を出力部217のディスプレイに表示させるための表示画像データを生成したり、出力部217のスピーカから出力させるための音声データを生成し、バス214および入出力インターフェース215を介して、出力部217に供給し、問い合わせに対する返信内容を表示または音声出力させることなどにより、ユーザに通知する。   If it is determined in step S79 that the inquiry result information has been received, in step S80, the USB interface 219 supplies the inquiry result information to the CPU 211 via the input / output interface 215 and the bus 214. Based on the inquiry result information, display image data for displaying the contents of the reply to the inquiry on the display of the output unit 217 or audio data for output from the speaker of the output unit 217 is generated. The information is supplied to the output unit 217 via the output interface 215 to notify the user by displaying the reply content to the inquiry or outputting the voice.

ステップS81において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、ユーザから、いずれかのデータの読み出しが指令されたか否かを判断する。ステップS81において、いずれかのデータの読み出しが指令されていないと判断された場合、処理が終了される。   In step S <b> 81, the CPU 211 determines whether or not the user has instructed to read any data based on a signal indicating the user's operation input supplied from the input unit 216 via the input / output interface 215 and the bus 214. Determine whether. In step S81, when it is determined that reading of any data is not instructed, the process ends.

ステップS81において、いずれかのデータの読み出しが指令されたと判断された場合、ステップS82において、CPU211は、テープストリーマドライブ1に対して選択されたデータの送信を要求するコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、選択されたデータの送信要求コマンドを、テープストリーマドライブ1に送信する。   If it is determined in step S81 that any one of the data has been read, the CPU 211 sends a command requesting the tape streamer drive 1 to transmit the selected data to the bus 214 and the input / output. The data is supplied to the USB interface 219 via the interface 215. The USB interface 219 transmits a selected data transmission request command to the tape streamer drive 1.

ステップS78またはステップS82の処理の終了後、ステップS83において、USBインターフェース219は、コマンドの返信として、テープストリーマドライブ1から送信される読み出されたデータの受信が終了したか否かを判断する。ステップS83において、データの受信が終了していないと判断された場合、データの受信が終了したと判断されるまで、ステップS83の処理が繰り返される。   After the process of step S78 or step S82 is completed, in step S83, the USB interface 219 determines whether reception of the read data transmitted from the tape streamer drive 1 is completed as a command reply. If it is determined in step S83 that the data reception has not ended, the process of step S83 is repeated until it is determined that the data reception has ended.

ステップS83において、データの受信が終了したと判断された場合、ステップS84において、USBインターフェース219は、受信したデータを記憶部218に供給して記憶させるとともに、データの受信が終了したことを、入出力インターフェース215およびバス214を介して、CPU211に供給するので、CPU211は、データの受信の終了をユーザに通知するためのメッセージや画像などを出力部217のディスプレイに表示させるための表示画像データを生成したり、音声メッセージを出力部217のスピーカから出力させるための音声データを生成し、バス214および入出力インターフェース215を介して、出力部217に供給し、データの受信の終了をユーザに通知する。   If it is determined in step S83 that the data reception has been completed, in step S84, the USB interface 219 supplies the received data to the storage unit 218 for storage, and also indicates that the data reception has been completed. Since it is supplied to the CPU 211 via the output interface 215 and the bus 214, the CPU 211 displays display image data for displaying a message or an image for notifying the user of the end of data reception on the display of the output unit 217. Generates audio data for generating or outputting a voice message from the speaker of the output unit 217, supplies the audio data to the output unit 217 via the bus 214 and the input / output interface 215, and notifies the user of the end of data reception To do.

このような処理により、ホストコンピュータ201は、テープストリーマドライブ1に装着されているテープカセット51の磁気テープ62に記録されているデータに関する問い合わせをテープストリーマドライブ1に送信し、問い合わせ結果を表示または音声出力によってユーザに通知したり、検索条件に合致した、または、ユーザにより選択されたデータの読み出しをテープストリーマドライブ1に要求し、テープストリーマドライブ1から、検索条件に合致した、または、ユーザにより選択されたデータの供給を受けることが可能となる。   By such processing, the host computer 201 transmits an inquiry about data recorded on the magnetic tape 62 of the tape cassette 51 mounted on the tape streamer drive 1 to the tape streamer drive 1 and displays the inquiry result or voice. Notifies the user by output, requests the tape streamer drive 1 to read data that matches the search condition or is selected by the user, and selects from the tape streamer drive 1 that meets the search condition or is selected by the user It is possible to receive the supplied data.

次に、図11および図12のフローチャートを参照して、図10を用いて説明したデータ読み出し時のホストコンピュータ201の処理と並行して実行される、データ読み出し時のテープストリーマドライブ1の処理について説明する。   Next, with reference to the flowcharts of FIGS. 11 and 12, the processing of the tape streamer drive 1 at the time of data reading, which is executed in parallel with the processing of the host computer 201 at the time of data reading described with reference to FIG. explain.

ステップS111において、コマンド取得部101は、ホストコンピュータ201から、検索条件に合致したデータの属性情報の問い合わせコマンド、すなわち、図10のステップS72の処理によりホストコンピュータ201が送信した問い合わせコマンドを受信したか否かを判断する。ステップS111において、検索条件に合致したデータの属性情報の問い合わせコマンドを受信していないと判断された場合、処理は、後述するステップS114に進む。   In step S111, the command acquisition unit 101 receives from the host computer 201 the inquiry command for attribute information of data that matches the search condition, that is, the inquiry command transmitted by the host computer 201 in the process of step S72 of FIG. Judge whether or not. If it is determined in step S111 that an inquiry command for data attribute information that matches the search condition has not been received, the process proceeds to step S114, which will be described later.

ステップS111において、検索条件に合致したデータの属性情報の問い合わせコマンドを受信したと判断された場合、ステップS112において、コマンド取得部101は、テーブル処理部104の検索処理部124に、検索条件を供給するので、検索処理部124は、テーブル読み出し制御部125を制御して、属性情報テーブル(テープカセット51のMIC63から読み出されて、キャッシュメモリ37に保存されている)を読み出させ、検索条件を基に、検索処理を実行する。   If it is determined in step S111 that an inquiry command for data attribute information matching the search condition has been received, the command acquisition unit 101 supplies the search condition to the search processing unit 124 of the table processing unit 104 in step S112. Therefore, the search processing unit 124 controls the table reading control unit 125 to read the attribute information table (read from the MIC 63 of the tape cassette 51 and stored in the cache memory 37), and the search condition Based on the above, search processing is executed.

ステップS113において、検索処理部124は、検索結果、すなわち、条件に合致するレコードを、問い合わせ結果情報生成処理部126に供給するので、問い合わせ結果情報生成処理部126は、検索処理部124から供給された、検索条件または検索条件式に合致したレコードを基に、検索条件に合致した属性情報の問い合わせ結果情報を生成し、問い合わせ結果情報供給制御部127に供給し、処理は、後述するステップS120に進む。問い合わせ結果を示す情報は、検索結果が複数レコードである場合、テーブル形式であっても、複数のレコード情報の集合であっても良いし、検索結果のうちの、例えば、ファイル名、データ容量など、問い合わせの内容に合致した属性情報のみから構成されるものであっても良い。   In step S113, the search processing unit 124 supplies the search result, that is, the record that matches the condition, to the query result information generation processing unit 126. Therefore, the query result information generation processing unit 126 is supplied from the search processing unit 124. In addition, based on the record that matches the search condition or the search condition expression, the query result information of the attribute information that matches the search condition is generated and supplied to the query result information supply control unit 127, and the process goes to step S120 described later. move on. When the search result is a plurality of records, the information indicating the inquiry result may be in a table format or a set of a plurality of record information. For example, the file name, the data capacity, etc. in the search result Alternatively, it may be composed only of attribute information that matches the content of the inquiry.

問い合わせ結果を示す情報がテーブル形式である場合の具体例を、図13に示す。例えば、図13(A)は、ユーザが検索条件として示したテキストを含むファイル名を有するデータの検索結果を示す検索結果テーブルの例である。また、図13(B)は、ユーザが検索条件として、作成年月日の範囲とデータサイズの範囲を指定した場合のデータの検索結果を示す検索結果テーブルの例である。そして、図13(C)は、ユーザが検索条件として示したテキストを含むファイル名を有し、かつ、作成年月日の範囲を指定した場合のデータの検索結果を示す検索結果テーブルの例である。   A specific example when the information indicating the inquiry result is in a table format is shown in FIG. For example, FIG. 13A is an example of a search result table showing a search result of data having a file name including a text indicated as a search condition by the user. FIG. 13B is an example of a search result table showing data search results when the user specifies a creation date range and a data size range as search conditions. FIG. 13C is an example of a search result table showing a search result of data when the user has a file name including the text indicated as the search condition and designates the creation date range. is there.

ステップS111において、検索条件に合致したデータの属性情報の問い合わせコマンドを受信していないと判断された場合、ステップS114において、コマンド取得部101は、ホストコンピュータ201から、検索条件に合致したデータの統計情報の問い合わせコマンド、すなわち、図10のステップS74の処理によりホストコンピュータ201が送信した問い合わせコマンドを受信したか否かを判断する。ステップS114において、検索条件に合致したデータの統計情報の問い合わせコマンドを受信していないと判断された場合、処理は、後述するステップS117に進む。   If it is determined in step S111 that an inquiry command for data attribute information that matches the search condition has not been received, in step S114, the command acquisition unit 101 receives, from the host computer 201, statistics on data that matches the search condition. It is determined whether or not an information inquiry command, that is, an inquiry command transmitted by the host computer 201 in the process of step S74 in FIG. 10, has been received. If it is determined in step S114 that an inquiry command for statistical information of data that matches the search condition has not been received, the process proceeds to step S117 described later.

ステップS114において、検索条件に合致したデータの統計情報の問い合わせコマンドを受信したと判断された場合、ステップS115において、コマンド取得部101は、テーブル処理部104の検索処理部124に、検索条件を供給するので、検索処理部124は、テーブル読み出し制御部125を制御して、属性情報テーブル(テープカセット51のMIC63から読み出されて、キャッシュメモリ37に保存されている)を読み出させ、属性情報テーブルを参照して、検索条件を基に、検索処理を実行する。   If it is determined in step S114 that an inquiry command for statistical information of data that matches the search condition has been received, the command acquisition unit 101 supplies the search condition to the search processing unit 124 of the table processing unit 104 in step S115. Therefore, the search processing unit 124 controls the table read control unit 125 to read the attribute information table (read from the MIC 63 of the tape cassette 51 and stored in the cache memory 37), and the attribute information table. Referring to the table, the search process is executed based on the search condition.

ステップS116において、検索処理部124は、検索結果を問い合わせ結果情報生成処理部126に供給するので、問い合わせ結果情報生成処理部126は、検索処理部124から供給された、検索条件または検索条件式に合致したレコードを基に、検索条件に合致したデータの統計情報を算出して、問い合わせ結果情報を生成し、問い合わせ結果情報供給制御部127に供給し、処理は、後述するステップS120に進む。統計情報とは、例えば、検索条件に合致するデータ数、検索条件に合致するデータの合計のデータ容量、所望データへのアクセス時間、または、所望データをホストコンピュータに転送する場合にかかる時間などである。   In step S 116, the search processing unit 124 supplies the search result to the query result information generation processing unit 126. Therefore, the query result information generation processing unit 126 applies the search condition or the search condition expression supplied from the search processing unit 124. Based on the matched record, statistical information of data that matches the search condition is calculated, inquiry result information is generated and supplied to the inquiry result information supply control unit 127, and the process proceeds to step S120 described later. The statistical information is, for example, the number of data that matches the search condition, the total data capacity of the data that matches the search condition, the access time to the desired data, or the time taken to transfer the desired data to the host computer. is there.

ステップS114において、検索条件に合致したデータの統計情報の問い合わせコマンドを受信していないと判断された場合、ステップS117において、コマンド取得部101は、ホストコンピュータ201から、検索条件に合致したデータの属性情報および統計情報の問い合わせコマンド、すなわち、図10のステップS76の処理によりホストコンピュータ201が送信した問い合わせコマンドを受信したか否かを判断する。ステップS117において、検索条件に合致したデータの属性情報および統計情報の問い合わせコマンドを受信していないと判断された場合、処理は、後述するステップS121に進む。   If it is determined in step S114 that an inquiry command for statistical information of data that matches the search condition has not been received, the command acquisition unit 101 determines from the host computer 201 the attribute of the data that matches the search condition in step S117. It is determined whether an inquiry command for information and statistical information, that is, an inquiry command transmitted by the host computer 201 by the processing in step S76 of FIG. 10 has been received. If it is determined in step S117 that an inquiry command for data attribute information and statistical information matching the search condition has not been received, the process proceeds to step S121 described below.

ステップS117において、検索条件に合致したデータの属性情報および統計情報の問い合わせコマンドを受信したと判断された場合、ステップS118において、コマンド取得部101は、テーブル処理部104の検索処理部124に、検索条件を供給するので、検索処理部124は、テーブル読み出し制御部125を制御して、属性情報テーブル(テープカセット51のMIC63から読み出されて、キャッシュメモリ37に保存されている)を読み出させ、属性情報テーブルを参照して、検索条件を基に、検索処理を実行する。   If it is determined in step S117 that a command for inquiring data attribute information and statistical information that matches the search condition has been received, the command acquisition unit 101 searches the search processing unit 124 of the table processing unit 104 to perform a search in step S118. Since the condition is supplied, the search processing unit 124 controls the table reading control unit 125 to read the attribute information table (read from the MIC 63 of the tape cassette 51 and stored in the cache memory 37). Referring to the attribute information table, the search process is executed based on the search condition.

ステップS119において、検索処理部124は、検索結果を問い合わせ結果情報生成処理部126に供給するので、問い合わせ結果情報生成処理部126は、検索処理部124から供給された、検索条件または検索条件式に合致したレコードを基に、検索条件に合致したデータの統計情報を算出して、検索条件に合致したデータの属性情報および算出された統計情報から、問い合わせ結果情報を生成し、問い合わせ結果情報供給制御部127に供給する。   In step S119, the search processing unit 124 supplies the search result to the query result information generation processing unit 126. Therefore, the query result information generation processing unit 126 applies the search condition or the search condition expression supplied from the search processing unit 124. Based on the matched records, the statistical information of the data that matches the search conditions is calculated, the query result information is generated from the attribute information of the data that matches the search conditions and the calculated statistical information, and the query result information supply control To the unit 127.

ステップS113、ステップS116、または、ステップS119の処理の終了後、ステップS120において、問い合わせ結果情報供給制御部127は、生成された問い合わせ結果情報を、ホストコンピュータ201に送信して、処理が終了される。   After the process of step S113, step S116, or step S119 ends, in step S120, the inquiry result information supply control unit 127 transmits the generated inquiry result information to the host computer 201, and the process ends. .

ステップS117において、検索条件に合致したデータの属性情報および統計情報の問い合わせコマンドを受信していないと判断された場合、ステップS121において、コマンド取得部101は、ホストコンピュータ201から、検索条件に合致したデータの送信要求コマンド、すなわち、図10のステップS78の処理によりホストコンピュータ201が送信した問い合わせコマンドを受信したか否かを判断する。ステップS121において、検索条件に合致したデータの送信要求コマンドを受信していないと判断された場合、処理は、後述するステップS124に進む。   If it is determined in step S117 that a command for querying attribute information and statistical information of data that matches the search condition has not been received, the command acquisition unit 101 matches the search condition from the host computer 201 in step S121. It is determined whether or not a data transmission request command, that is, an inquiry command transmitted by the host computer 201 by the processing in step S78 of FIG. 10 has been received. If it is determined in step S121 that a data transmission request command that matches the search condition has not been received, the process proceeds to step S124 described later.

ステップS121において、検索条件に合致したデータの送信要求コマンドを受信したと判断された場合、ステップS122において、コマンド取得部101は、テーブル処理部104の検索処理部124に、検索条件を供給するので、検索処理部124は、テーブル読み出し制御部125を制御して、属性情報テーブル(テープカセット51のMIC63から読み出されて、キャッシュメモリ37に保存されている)を読み出させ、属性情報テーブルを参照して、検索条件を基に、検索処理を実行する。検索結果には、データの記録位置に関する属性情報が必ず含まれる。   If it is determined in step S121 that a transmission request command for data matching the search condition has been received, the command acquisition unit 101 supplies the search condition to the search processing unit 124 of the table processing unit 104 in step S122. The search processing unit 124 controls the table reading control unit 125 to read out the attribute information table (read out from the MIC 63 of the tape cassette 51 and stored in the cache memory 37). Referring to and executing the search process based on the search condition. The search result always includes attribute information regarding the data recording position.

ステップS123において、検索処理部124は、検索結果を記録再生制御部102に供給するので、記録再生制御部102のキャッシュメモリ割り当て処理部111は、検索されたデータを読み出すときに一時保存するためのキャッシュメモリ29を選択して、処理は、後述するステップS127に進む。   In step S123, the search processing unit 124 supplies the search result to the recording / playback control unit 102. Therefore, the cache memory allocation processing unit 111 of the recording / playback control unit 102 temporarily stores the searched data when it is read out. After selecting the cache memory 29, the process proceeds to step S127 described later.

ステップS121において、検索条件に合致したデータの送信要求コマンドを受信していないと判断された場合、ステップS124において、コマンド取得部101は、ホストコンピュータ201から、ユーザにより選択されたデータの送信要求コマンド、すなわち、図10のステップS82の処理によりホストコンピュータ201が送信したデータの送信要求コマンドを受信したか否かを判断する。ステップS124において、ユーザにより選択されたデータの送信要求コマンドを受信していないと判断された場合、処理は、ステップS111に戻り、それ以降の処理が繰り返される。   If it is determined in step S121 that a data transmission request command matching the search condition has not been received, in step S124, the command acquisition unit 101 receives a data transmission request command selected by the user from the host computer 201. That is, it is determined whether or not a data transmission request command transmitted by the host computer 201 has been received in the process of step S82 of FIG. If it is determined in step S124 that the transmission request command for the data selected by the user has not been received, the process returns to step S111, and the subsequent processes are repeated.

ステップS124において、選択されたデータの送信要求コマンドを受信したと判断された場合、ステップS125において、コマンド取得部101は、選択されたデータを示す情報を検索処理部124に供給するので、検索処理部124は、テーブル読み出し制御部125を制御して、属性情報テーブル(テープカセット51のMIC63から読み出されて、キャッシュメモリ37に保存されている)を読み出させ、属性情報テーブルを参照して、選択されたデータの記録位置を検索し、検索結果を記録再生制御部102に通知する。   If it is determined in step S124 that the transmission request command for the selected data has been received, the command acquisition unit 101 supplies information indicating the selected data to the search processing unit 124 in step S125. The unit 124 controls the table reading control unit 125 to read the attribute information table (read from the MIC 63 of the tape cassette 51 and stored in the cache memory 37), and refer to the attribute information table. The recording position of the selected data is searched, and the search result is notified to the recording / playback control unit 102.

ステップS126において、記録再生制御部102のキャッシュメモリ割り当て処理部111は、選択されたデータを読み出すときに一時保存するためのキャッシュメモリ29を選択する。   In step S126, the cache memory allocation processing unit 111 of the recording / playback control unit 102 selects the cache memory 29 for temporary storage when the selected data is read.

ステップS123、または、ステップS126の処理の終了後、ステップS127において、記録再生制御部102および駆動制御部105は、供給された検索結果に含まれる磁気テープ62上の記録位置に関する情報を基に、検索結果に合致したデータ、または、ユーザに選択されたデータを読み出させて、選択されたキャッシュメモリ29を用いて、再生処理を実行し、再生されたデータをホストコンピュータ201に送信させて、処理が終了される。   After the process of step S123 or step S126 is completed, in step S127, the recording / playback control unit 102 and the drive control unit 105 are based on information regarding the recording position on the magnetic tape 62 included in the supplied search results. The data that matches the search result or the data selected by the user is read out, the reproduction process is executed using the selected cache memory 29, and the reproduced data is transmitted to the host computer 201. Processing is terminated.

具体的には、サーボコントローラ32は、システムコントローラ22の制御(換言すれば、駆動制御部105の制御)に基づいて、EEP−ROM33に記録されている情報を参照し、メカドライバ34を制御して、ドラムモータ35−1、キャプスタンモータ35−2、リールモータ35−3および35−4、並びに、ローディングモータ35−5のそれぞれを回転駆動させる。再生ヘッド42−1乃至42−3は、テープカセット51の磁気テープ62に記録されているデータを読み出して、圧縮/変調およびRF処理部31に供給する。そして、変調/復調およびRF処理部31は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、再生ヘッド42−1乃至42−3から供給されるRF信号に対して、再生イコライジング処理を行い、復調して、ECC処理部30に供給する。ECC処理部30は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、変調/復調およびRF処理部31から供給された復調されたデータのエラー訂正符号を基に、データにエラーが発生している場合は、それを検出して訂正する処理を実行し、エラー訂正後のデータを、キャッシュメモリコントローラ28に供給する。   Specifically, the servo controller 32 controls the mechanical driver 34 with reference to the information recorded in the EEP-ROM 33 based on the control of the system controller 22 (in other words, the control of the drive control unit 105). Thus, the drum motor 35-1, the capstan motor 35-2, the reel motors 35-3 and 35-4, and the loading motor 35-5 are rotated. The reproducing heads 42-1 to 42-3 read out the data recorded on the magnetic tape 62 of the tape cassette 51 and supply the data to the compression / modulation and RF processing unit 31. The modulation / demodulation and RF processing unit 31 converts the RF signal supplied from the reproduction heads 42-1 to 42-3 based on the control of the system controller 22 (in other words, the control of the recording / reproduction control unit 102). On the other hand, reproduction equalizing processing is performed, demodulated, and supplied to the ECC processing unit 30. The ECC processing unit 30 is based on the error correction code of the demodulated data supplied from the modulation / demodulation and RF processing unit 31 based on the control of the system controller 22 (in other words, the control of the recording / reproducing control unit 102). If an error has occurred in the data, a process for detecting and correcting the error is executed, and the error-corrected data is supplied to the cache memory controller 28.

そして、キャッシュメモリコントローラ28は、システムコントローラ22の制御(換言すれば、記録再生制御部102のキャッシュメモリ割り当て処理部111の制御)に基づいて、圧縮/伸長処理部27から供給された圧縮データをキャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかに供給してキャッシュさせるとともに、キャッシュメモリ29−1乃至キャッシュメモリ21−nのうちのいずれかにキャッシュされているデータを読み出して、圧縮/伸長処理部27に供給する。圧縮/伸長処理部27は、システムコントローラ22の制御(換言すれば、記録再生制御部102の制御)に基づいて、キャッシュメモリコントローラ28から供給される圧縮されたデータを伸張して、USBインターフェース21に供給する。USBインターフェース21は、圧縮/伸長処理部27から供給された、磁気テープ62から読み出され、各種処理がなされたデータを、ホストコンピュータ201に送信する。   Then, based on the control of the system controller 22 (in other words, the control of the cache memory allocation processing unit 111 of the recording / playback control unit 102), the cache memory controller 28 receives the compressed data supplied from the compression / decompression processing unit 27. The cache memory 29-1 to the cache memory 21-n is supplied and cached, and the data cached in any of the cache memory 29-1 to the cache memory 21-n is read, This is supplied to the compression / decompression processing unit 27. The compression / decompression processing unit 27 decompresses the compressed data supplied from the cache memory controller 28 based on the control of the system controller 22 (in other words, the control of the recording / playback control unit 102), and the USB interface 21 To supply. The USB interface 21 transmits data read from the magnetic tape 62 and processed in various ways supplied from the compression / decompression processing unit 27 to the host computer 201.

このような処理により、テープストリーマドライブ1は、ホストコンピュータ201から供給されるコマンドを基に、MIC63に記憶されている属性情報テーブルを参照して、検索処理を実行し、検索条件に合致したデータの属性情報や統計情報のいずれか、または、両方を、問い合わせ結果情報としてホストコンピュータ201に送信することができる。問い合わせ結果情報は、検索結果が複数レコードである場合、テーブル形式であっても、複数のレコード情報の集合であっても良いし、検索結果のうちの、例えば、ファイル名、データ容量、所望データへのアクセス時間、または、所望データをホストコンピュータに転送する場合にかかる時間など、問い合わせの内容に合致した属性情報のみから構成されるものであっても良い。   By such processing, the tape streamer drive 1 executes search processing with reference to the attribute information table stored in the MIC 63 based on the command supplied from the host computer 201, and data that matches the search conditions. Any one or both of the attribute information and the statistical information can be transmitted to the host computer 201 as inquiry result information. When the search result is a plurality of records, the inquiry result information may be in a table format or a set of a plurality of record information. For example, the file name, the data capacity, the desired data among the search results It may be configured only from attribute information that matches the content of the inquiry, such as the access time to the user or the time required to transfer the desired data to the host computer.

また、テープストリーマドライブ1は、ホストコンピュータ201から供給されるコマンドを基に、検索結果に合致したデータ、または、ユーザに選択されたデータを読み出して、ホストコンピュータ201に送信する。   Further, the tape streamer drive 1 reads out data that matches the search result or data selected by the user based on a command supplied from the host computer 201 and transmits the data to the host computer 201.

次に、図14のフローチャートを参照して、データ記録または読み出し以外のホストコンピュータ201の処理について説明する。   Next, processing of the host computer 201 other than data recording or reading will be described with reference to the flowchart of FIG.

ステップS151において、CPU211は、入出力インターフェース215およびバス214を介して入力部216から供給される、ユーザの操作入力を示す信号を基に、例えば、テープカセット51やテープストリーマドライブ1に関する情報の問い合わせや、検索にかかわらないデータの統計情報の問い合わせなど、データ記録または読み出し以外の問い合わせが指令されたか否かを判断する。テープカセット51やテープストリーマドライブ1に関する情報には、例えば、装着されているテープカセット51の製造メーカ名、ロード回数、製造年月日、バッドスポットの位置、テープの残容量などや、テープストリーマドライブ1の製造メーカ名、シリアル番号、製造年月日、現在の温度、装着されているテープカセット51の磁気テープ62の現在の巻き取り量などの情報がある。検索にかかわらないデータの統計情報の問い合わせには、例えば、装着されているテープカセット51の磁気テープ62に記録されている1記録単位のデータの数、記録されているデータの総データ容量、所定ファイルの読み出しにかかる推定時間などがある。   In step S151, the CPU 211 makes an inquiry about information about the tape cassette 51 and the tape streamer drive 1, for example, based on a signal indicating the user's operation input supplied from the input unit 216 via the input / output interface 215 and the bus 214. In addition, it is determined whether or not an inquiry other than data recording or reading is instructed, such as an inquiry about statistical information of data not related to a search. Information on the tape cassette 51 and the tape streamer drive 1 includes, for example, the name of the manufacturer of the tape cassette 51 mounted, the number of loads, the date of manufacture, the position of the bad spot, the remaining capacity of the tape, and the tape streamer drive. 1 information such as the manufacturer name, serial number, date of manufacture, current temperature, current winding amount of the magnetic tape 62 of the tape cassette 51 mounted. Inquiries regarding statistical information on data not related to the search include, for example, the number of data in one recording unit recorded on the magnetic tape 62 of the tape cassette 51 loaded, the total data capacity of the recorded data, and a predetermined amount. There is an estimated time for reading the file.

ステップS151において、データ記録または読み出し以外の問い合わせが指令されたと判断された場合、ステップS152において、CPU211は、データ記録または読み出し以外の問い合わせコマンドを、バス214および入出力インターフェース215を介してUSBインターフェース219に供給する。USBインターフェース219は、データ記録または読み出し以外の問い合わせコマンドを、テープストリーマドライブ1に送信する。   If it is determined in step S151 that an inquiry other than data recording or reading is instructed, in step S152, the CPU 211 sends an inquiry command other than data recording or reading to the USB interface 219 via the bus 214 and the input / output interface 215. To supply. The USB interface 219 transmits an inquiry command other than data recording or reading to the tape streamer drive 1.

ステップS151において、データ記録または読み出し以外の問い合わせが指令されていないと判断された場合、または、ステップS152の処理の終了後、処理は終了される。   In step S151, when it is determined that an inquiry other than data recording or reading is not instructed, or after the process of step S152 ends, the process ends.

このような処理により、例えば、テープカセット51やテープストリーマドライブ1に関する情報の問い合わせなど、データ記録または読み出し以外の問い合わせコマンドが、テープストリーマドライブ1に送信される。   Through such processing, for example, an inquiry command other than data recording or reading such as an inquiry about information about the tape cassette 51 or the tape streamer drive 1 is transmitted to the tape streamer drive 1.

次に、図15のフローチャートを参照して、図14を用いて説明した処理と平行して実行される、データ記録または読み出し以外のテープストリーマドライブ1の処理について説明する。   Next, processing of the tape streamer drive 1 other than data recording or reading, which is executed in parallel with the processing described with reference to FIG. 14, will be described with reference to the flowchart of FIG.

ステップS181において、コマンド取得部101は、ホストコンピュータ201から、データ記録または読み出し以外の問い合わせコマンド、すなわち、図14のステップS152において送信された問い合わせコマンドを受信したか否かを判断する。ステップS181において、データ記録または読み出し以外の問い合わせコマンドを受信していないと判断された場合、受信したと判断されるまで、ステップS181の処理が繰り返される。   In step S181, the command acquisition unit 101 determines whether an inquiry command other than data recording or reading, that is, the inquiry command transmitted in step S152 of FIG. 14 has been received from the host computer 201. If it is determined in step S181 that an inquiry command other than data recording or reading has not been received, the process of step S181 is repeated until it is determined that the command has been received.

ステップS181において、データ記録または読み出し以外の問い合わせコマンドを受信したと判断された場合、ステップS182において、コマンド取得部101は、取得したコマンドを、問い合わせ結果情報生成処理部126に供給するので、問い合わせ結果情報生成処理部126は、属性情報テーブルに登録された属性情報の読み出しにより、コマンドに対する問い合わせ情報を生成することが可能か否かを判断する。問い合わせの内容が、例えば、装着されているテープカセット51の磁気テープ62に記録されている1記録単位のデータの数や、記録されているデータの総データ容量などである場合、属性情報テーブルに登録された属性情報の読み出しにより、コマンドに対する問い合わせ情報を生成することが可能であると判断される。ステップS182において、属性情報テーブルに登録された属性情報の読み出しにより、コマンドに対する問い合わせ情報を生成することはできないと判断された場合、処理は、後述するステップS185に進む。   If it is determined in step S181 that an inquiry command other than data recording or reading has been received, in step S182, the command acquisition unit 101 supplies the acquired command to the inquiry result information generation processing unit 126. The information generation processing unit 126 determines whether it is possible to generate inquiry information for the command by reading the attribute information registered in the attribute information table. If the content of the inquiry is, for example, the number of data of one recording unit recorded on the magnetic tape 62 of the tape cassette 51 that is mounted, the total data capacity of the recorded data, etc., the attribute information table It is determined that the inquiry information for the command can be generated by reading the registered attribute information. If it is determined in step S182 that the inquiry information for the command cannot be generated by reading the attribute information registered in the attribute information table, the process proceeds to step S185 described later.

ステップS182において、属性情報テーブルに登録された属性情報の読み出しにより、コマンドに対する問い合わせ情報を生成することが可能であると判断された場合、ステップS183において、問い合わせ結果情報生成処理部126は、テーブル読み出し制御部125を制御し、コマンドに基づいて、テーブルに登録された属性情報を読み出させる。   If it is determined in step S182 that the query information for the command can be generated by reading the attribute information registered in the attribute information table, the query result information generation processing unit 126 reads the table in step S183. The control unit 125 is controlled to read the attribute information registered in the table based on the command.

ステップS184において、問い合わせ結果情報生成処理部126は、テーブル読み出し制御部125により読み出された属性情報を基に、問い合わせ結果情報を生成し、問い合わせ結果情報供給制御部127に供給して、処理は、後述するステップS190に進む。   In step S184, the inquiry result information generation processing unit 126 generates inquiry result information based on the attribute information read by the table reading control unit 125, and supplies the inquiry result information to the inquiry result information supply control unit 127. Then, the process proceeds to step S190 described later.

ステップS182において、属性情報テーブルに登録された属性情報の読み出しにより、コマンドに対する問い合わせ情報を生成することはできないと判断された場合、ステップS185において、問い合わせ結果情報生成処理部126は、テープカセット51またはテープストリーマドライブ1に関する情報を、フラッシュROM24またはMIC63から読み出すことにより、取得したコマンドに対する問い合わせ情報を生成することが可能か否かを判断する。問い合わせの内容が、例えば、テープカセット51やテープストリーマドライブ1に関する情報である場合、テープカセット51またはテープストリーマドライブ1に関する情報の読み出しにより、取得したコマンドに対する問い合わせ情報を生成することが可能であると判断される。例えば、問い合わせ内容が、所定のファイルの読み出しにかかる時間など、問い合わせ結果情報の生成に、属性情報テーブルに記載されている属性情報と、テープカセット51またはテープストリーマドライブ1に関する情報との両者を必要とする場合など、ステップS185において、テープカセット51またはテープストリーマドライブ1に関する情報の読み出しにより、取得したコマンドに対する問い合わせ情報を生成することはできないと判断された場合、処理は、後述するステップS188に進む。   If it is determined in step S182 that the inquiry information for the command cannot be generated by reading the attribute information registered in the attribute information table, the inquiry result information generation processing unit 126 in step S185 determines whether the inquiry result information generation processing unit 126 By reading information about the tape streamer drive 1 from the flash ROM 24 or the MIC 63, it is determined whether or not inquiry information for the acquired command can be generated. When the content of the inquiry is, for example, information about the tape cassette 51 or the tape streamer drive 1, it is possible to generate inquiry information for the acquired command by reading the information about the tape cassette 51 or the tape streamer drive 1. To be judged. For example, the content of the inquiry requires both the attribute information described in the attribute information table and the information related to the tape cassette 51 or the tape streamer drive 1 to generate inquiry result information such as the time required for reading a predetermined file. In the case where it is determined in step S185 that the inquiry information for the acquired command cannot be generated by reading the information related to the tape cassette 51 or the tape streamer drive 1, the process proceeds to step S188 described later. .

ステップS185において、テープカセット51またはテープストリーマドライブ1に関する情報の読み出しにより、取得したコマンドに対する問い合わせ情報を生成することが可能であると判断された場合、ステップS186において、問い合わせ結果情報生成処理部126は、コマンドに基づいて、テープカセット51またはテープストリーマドライブ1に関する情報を、フラッシュROM24またはMIC63から読み出すか、または、読み出した情報を基に演算処理を実行する。   If it is determined in step S185 that inquiry information for the acquired command can be generated by reading information relating to the tape cassette 51 or the tape streamer drive 1, the inquiry result information generation processing unit 126 in step S186. Based on the command, the information related to the tape cassette 51 or the tape streamer drive 1 is read from the flash ROM 24 or the MIC 63, or the arithmetic processing is executed based on the read information.

ステップS187において、問い合わせ結果情報生成処理部126は、テープカセット51またはテープストリーマドライブ1に関する情報、もしくは、演算結果を基に、問い合わせ結果情報を生成し、問い合わせ結果情報供給制御部127に供給して、処理は、後述するステップS190に進む。   In step S187, the inquiry result information generation processing unit 126 generates inquiry result information based on the information about the tape cassette 51 or the tape streamer drive 1 or the calculation result, and supplies the inquiry result information to the inquiry result information supply control unit 127. The process proceeds to step S190 described later.

ステップS185において、テープカセット51またはテープストリーマドライブ1に関する情報の読み出しにより、取得したコマンドに対する問い合わせ情報を生成することはできないと判断された場合、ステップS188において、問い合わせ結果情報生成処理部126は、コマンドに基づいて、テーブル読み出し制御部125を制御し、属性情報テーブルに登録された属性情報を読み出させるとともに、必要な、テープカセット51またはテープストリーマドライブ1に関する情報を、フラッシュROM24またはMIC63から読み出すか、または、読み出した情報を基に演算処理を実行する。   In step S185, when it is determined that the inquiry information for the acquired command cannot be generated by reading the information on the tape cassette 51 or the tape streamer drive 1, the inquiry result information generation processing unit 126 in step S188 Based on the table, the table read control unit 125 is controlled to read the attribute information registered in the attribute information table, and the necessary information regarding the tape cassette 51 or the tape streamer drive 1 is read from the flash ROM 24 or the MIC 63. Alternatively, arithmetic processing is executed based on the read information.

ステップS189において、問い合わせ結果情報生成処理部126は、読み出された属性情報、テープカセット51またはテープストリーマドライブ1に関する情報、もしくは、演算結果を基に、問い合わせ結果情報を生成し、問い合わせ結果情報供給制御部127に供給する。   In step S189, the inquiry result information generation processing unit 126 generates inquiry result information based on the read attribute information, information on the tape cassette 51 or the tape streamer drive 1, or the calculation result, and supplies inquiry result information. This is supplied to the control unit 127.

ステップS184、ステップS187、または、ステップS189の処理の終了後、ステップS190において、問い合わせ結果情報供給制御部127は、問い合わせ結果情報生成処理部126において生成された問い合わせ結果情報を、ホストコンピュータ201に送信し、処理が終了される。   After the processing of step S184, step S187, or step S189 is completed, in step S190, the inquiry result information supply control unit 127 transmits the inquiry result information generated in the inquiry result information generation processing unit 126 to the host computer 201. Then, the process is terminated.

このような処理により、テープストリーマドライブ1においては、データ記録または読み出し以外の問い合わせコマンドに対して、属性情報テーブルに記載されている属性情報と、テープカセット51またはテープストリーマドライブ1に関する情報との両者、または、いずれかの情報を基に、問い合わせ結果情報を生成し、ホストコンピュータ201に供給することが可能となる。   By such processing, in the tape streamer drive 1, both the attribute information described in the attribute information table and the information related to the tape cassette 51 or the tape streamer drive 1 in response to an inquiry command other than data recording or reading. Inquiry result information can be generated and supplied to the host computer 201 based on any information.

したがって、本発明を適用することにより、磁気テープなど、シーケンシャルにデータが記録される記録媒体に記録されているデータを検索したり、それらのデータに関する情報を問い合わせる場合に、記録媒体に記録されているデータを先頭から走査する必要がなくなるため、検索処理または問い合わせに対する問い合わせ結果情報の生成処理が容易になり、また、処理にかかる時間を短縮することが可能となる。   Therefore, by applying the present invention, when searching for data recorded on a recording medium on which data is sequentially recorded, such as a magnetic tape, or inquiring about information related to such data, the data is recorded on the recording medium. This eliminates the need to scan existing data from the beginning, thus facilitating search processing or query result information generation processing for a query, and shortening the processing time.

特に、本発明を適用することにより、テープストリーマドライブ1は、装着されたテープカセット51の磁気テープ62に記録されたデータに関する情報を、MIC63に、例えば、リレーショナルデータベースの形式の属性情報テーブルとして記載することができる。これにより、ホストコンピュータ201から、装着されたテープカセット51の磁気テープ62に記録されたデータに関して、SQL構文などにより記述された問い合わせコマンドが送出された場合、テープストリーマドライブ1は、装着されたテープカセット51の磁気テープ62に記録されたデータのうち、条件に合致したデータに関する属性情報、統計情報、または、条件に合致したデータそのものを、容易に抽出または算出し、ホストコンピュータ201に送出することが可能となる。   In particular, by applying the present invention, the tape streamer drive 1 describes the information related to the data recorded on the magnetic tape 62 of the mounted tape cassette 51 in the MIC 63 as, for example, an attribute information table in the form of a relational database. can do. As a result, when the host computer 201 sends an inquiry command described in SQL syntax or the like regarding the data recorded on the magnetic tape 62 of the attached tape cassette 51, the tape streamer drive 1 will read the attached tape cassette 1 Of the data recorded on the magnetic tape 62 of the cassette 51, the attribute information, statistical information, or the data itself that matches the conditions can be easily extracted or calculated and sent to the host computer 201. Is possible.

なお、本発明を適用したテープストリーマドライブ1において、キャッシュメモリ21−1乃至キャッシュメモリ29−nは、それぞれ、データの記録時とデータの再生時とのいずれの場合にも用いられる(記録用と再生用に分けられていない)。複数のキャッシュメモリ29−1乃至キャッシュメモリ29−nを備えることにより、本発明を適用したテープストリーマドライブ1は、記録されるデータに先行して供給された属性情報を基に、磁気テープ62に記録される前にデータを一時保存するキャッシュメモリ29を選択することができるので、例えば、磁気テープ62において、小さなデータサイズのデータが、1つのグループにまとまって記録されるようにしたり、例えば、動画、静止画、テキストなどのデータの種類によって、同じ種類のデータが、同一のグループにまとまって記録されるようにすることが可能となる。   In the tape streamer drive 1 to which the present invention is applied, the cache memory 21-1 to the cache memory 29-n are used in both cases of data recording and data reproduction (recording and recording). Not separated for playback). By providing a plurality of cache memories 29-1 to 29-n, the tape streamer drive 1 to which the present invention is applied can be applied to the magnetic tape 62 based on the attribute information supplied prior to the data to be recorded. Since the cache memory 29 for temporarily storing data before recording can be selected, for example, on the magnetic tape 62, data having a small data size can be recorded in one group, for example, Depending on the types of data such as moving images, still images, and texts, the same type of data can be recorded together in the same group.

また、本発明を適用したテープストリーマドライブ1においては、備えられているキャッシュメモリ29の数にかかわらず、記録されるデータの属性情報を基に、属性情報テーブルを生成し、テープカセット51のMIC63に記録させ、データの再生時に、属性情報テーブルを参照して、データを検索したり、記録されたデータに関する統計情報などを算出することなどが可能である。   Further, in the tape streamer drive 1 to which the present invention is applied, an attribute information table is generated based on the attribute information of recorded data regardless of the number of cache memories 29 provided, and the MIC 63 of the tape cassette 51 is generated. When the data is reproduced, the data can be retrieved by referring to the attribute information table, or statistical information on the recorded data can be calculated.

なお、本発明は、磁気テープにデータを記録する場合のみならず、シーケンシャルにデータを記録する場合、たとえば、CD−Rなどにデータを記録する場合に適用可能であり、磁気テープにデータを記録する場合に用いるのと同様の効果を奏することが可能である。なお、CD−Rは、MICを備えないので、属性情報テーブルは、CD−Rの記録領域のうちの一部に記録されるようにしても良い。   The present invention can be applied not only when data is recorded on a magnetic tape but also when data is recorded sequentially, for example, when data is recorded on a CD-R or the like. It is possible to achieve the same effect as that used when doing so. Since the CD-R does not include an MIC, the attribute information table may be recorded in a part of the recording area of the CD-R.

上述した一連の処理は、ソフトウェアにより実行することもできる。そのソフトウェアは、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、記録媒体からインストールされる。   The series of processes described above can also be executed by software. The software is a computer in which the program constituting the software is incorporated in dedicated hardware, or various functions can be executed by installing various programs, for example, a general-purpose personal computer For example, it is installed from a recording medium.

この記録媒体は、図1に示すように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disk-Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク(MD(Mini-Disk)(商標)を含む)、もしくは半導体メモリなどよりなるリムーバブルメディア71、または、図5に示すように、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク231(フレキシブルディスクを含む)、光ディスク232(CD-ROM(Compact Disk-Read Only Memory),DVD(Digital Versatile Disk)を含む)、光磁気ディスク233(MD(Mini-Disk)(商標)を含む)、もしくは半導体メモリ234などよりなるパッケージメディアなどにより構成される。   As shown in FIG. 1, the recording medium is distributed to provide a program to a user separately from a computer, and includes a magnetic disk (including a flexible disk) on which the program is recorded, an optical disk (CD-ROM ( FIG. 5 shows a removable medium 71 including a Compact Disk-Read Only Memory (DVD) (including Digital Versatile Disk), a magneto-optical disk (including MD (Mini-Disk) (trademark)), or a semiconductor memory. As shown, a magnetic disk 231 (including a flexible disk) on which a program is recorded, an optical disk 232 (CD-ROM (Compact Disk-Read Only Memory), DVD (Digital Versatile Disk), magneto-optical disk 233 (including MD (Mini-Disk) (trademark)), or semiconductor memory 234 or the like. Consists of cage media.

また、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   Further, in the present specification, the step of describing the program recorded on the recording medium is not limited to the processing performed in chronological order according to the described order, but may be performed in parallel or It also includes processes that are executed individually.

本発明を適用したテープストリーマドライブの構成を示すブロック図である。It is a block diagram which shows the structure of the tape streamer drive to which this invention is applied. 図1のテープストリーマドライブが実現可能な機能について説明するための機能ブロック図である。It is a functional block diagram for demonstrating the function which can implement | achieve the tape streamer drive of FIG. 磁気テープに記録されるデータについて説明するための図である。It is a figure for demonstrating the data recorded on a magnetic tape. 磁気テープに記録されるデータについて説明するための図である。It is a figure for demonstrating the data recorded on a magnetic tape. ホストコンピュータの構成について説明するための図である。It is a figure for demonstrating the structure of a host computer. データ記録時のホストコンピュータの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of the host computer at the time of data recording. データ記録時のテープストリーマドライブの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of the tape streamer drive at the time of data recording. データ記録時のテープストリーマドライブの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of the tape streamer drive at the time of data recording. 属性情報テーブルについて説明するための図である。It is a figure for demonstrating an attribute information table. データ読み出し時のホストコンピュータの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of the host computer at the time of data reading. データ読み出し時のテープストリーマドライブの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of the tape streamer drive at the time of data reading. データ読み出し時のテープストリーマドライブの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of the tape streamer drive at the time of data reading. 問い合わせ結果情報について説明するための図である。It is a figure for demonstrating inquiry result information. データ記録または読み出し以外のホストコンピュータの処理について説明するためのフローチャートである。It is a flowchart for demonstrating processing of the host computer other than data recording or reading. データ記録または読み出し以外のテープストリーマドライブの処理について説明するためのフローチャートである。It is a flowchart for demonstrating the process of a tape streamer drive other than data recording or reading.

符号の説明Explanation of symbols

1 テープストリーマドライブ, 21 USBインターフェース, 22 システムコントローラ, 27 圧縮/伸長処理部, 28 キャッシュメモリコントローラ, 29 キャッシュメモリ, 30 ECC処理部, 31 変調/復調およびRF処理部, 32 サーボコントローラ, 34 メカドライバ, 36 回転ドラム, 37 キャッシュメモリ, 41 記録ヘッド, 42 再生ヘッド, 51 テープカセット, 62 磁気テープ, 63 MIC, 101 コマンド取得部, 102 記録再生制御部, 103 識別子生成部, 104 テーブル処理部, 105 駆動制御部, 111 キャッシュメモリ割り当て処理部, 121 属性情報取得部, 122 属性情報生成部, 123 テーブル記憶制御部, 124 検索処理部, 125 テーブル読み出し制御部, 126 問い合わせ結果情報生成処理部, 127 問い合わせ結果情報供給制御部, 201 ホストコンピュータ, 211 CPU, 216 入力部, 127 出力部, 218 記憶部, 219 USBインターフェース   DESCRIPTION OF SYMBOLS 1 Tape streamer drive, 21 USB interface, 22 System controller, 27 Compression / decompression processing part, 28 Cache memory controller, 29 Cache memory, 30 ECC processing part, 31 Modulation / demodulation and RF processing part, 32 Servo controller, 34 Mechanical driver , 36 Rotating drum, 37 Cache memory, 41 Recording head, 42 Playback head, 51 Tape cassette, 62 Magnetic tape, 63 MIC, 101 Command acquisition unit, 102 Recording / reproduction control unit, 103 Identifier generation unit, 104 Table processing unit, 105 Drive control unit, 111 cache memory allocation processing unit, 121 attribute information acquisition unit, 122 attribute information generation unit, 123 table storage control unit, 124 search processing Unit, 125 table read control unit, 126 inquiry result information generation processing unit, 127 inquiry result information supply control unit, 201 host computer, 211 CPU, 216 input unit, 127 output unit, 218 storage unit, 219 USB interface

Claims (11)

シーケンシャルにデータが記録されている記録媒体を装着可能であり、前記記録媒体に記録されている前記データまたは前記データに関する情報を処理する情報処理装置において、
前記記録媒体内の前記データが記録されている記録領域とは異なる領域であって、前記データの属性情報がテーブル形式で記録されている属性情報記録領域から、前記属性情報を読み出す属性情報読み出し手段と、
他の情報処理装置から供給された、コマンドおよび前記コマンドの実行に必要な情報を取得する取得手段と、
前記取得手段により取得された前記情報を基に、前記属性情報読み出し手段により読み出された前記属性情報から、前記データに対応するレコードを検索する検索手段と
を備えることを特徴とする情報処理装置。
In an information processing apparatus capable of mounting a recording medium on which data is sequentially recorded and processing the data recorded on the recording medium or information on the data,
Attribute information reading means for reading the attribute information from an attribute information recording area that is different from a recording area in which the data is recorded in the recording medium and in which attribute information of the data is recorded in a table format When,
An acquisition means for acquiring a command and information necessary for executing the command, supplied from another information processing apparatus;
An information processing apparatus comprising: search means for searching a record corresponding to the data from the attribute information read by the attribute information reading means based on the information acquired by the acquisition means .
前記検索手段により検索された前記レコードに対応する前記データを再生する再生手段を更に備え、
前記取得手段は、前記記録媒体に記録された前記データを検索するための情報と、前記情報を基に検索された前記レコードに対応する前記データの再生を要求する前記コマンドとを取得する
ことを特徴とする請求項1に記載の情報処理装置。
Replaying means for replaying the data corresponding to the record retrieved by the retrieving means;
The acquisition means acquires information for searching the data recorded on the recording medium and the command for requesting reproduction of the data corresponding to the record searched based on the information. The information processing apparatus according to claim 1.
前記検索手段により検索された前記レコードに対応する前記属性情報の前記他の情報処理装置への送信を制御する属性情報送信制御手段を更に備え、
前記取得手段は、前記記録媒体に記録された前記データを検索するための情報と、前記情報を基に検索された前記レコードに含まれる前記属性情報の送信を要求する前記コマンドを取得する
ことを特徴とする請求項1に記載の情報処理装置。
Attribute information transmission control means for controlling transmission of the attribute information corresponding to the record searched by the search means to the other information processing apparatus,
The acquisition means acquires information for searching the data recorded in the recording medium and the command requesting transmission of the attribute information included in the record searched based on the information. The information processing apparatus according to claim 1.
前記検索手段により検索された前記レコードに含まれる前記属性情報を用いて、前記データに関する統計情報を算出する算出手段と、
前記算出手段により算出された前記統計情報の、前記他の情報処理装置への送信を制御する統計情報送信制御手段と
を更に備え、
前記取得手段は、前記記録媒体に記録された前記データを検索するための情報と、前記データに関する前記統計情報の送信を要求する前記コマンドを取得する
ことを特徴とする請求項1に記載の情報処理装置。
Calculation means for calculating statistical information about the data using the attribute information included in the record searched by the search means;
Statistical information transmission control means for controlling transmission of the statistical information calculated by the calculation means to the other information processing apparatus,
The information according to claim 1, wherein the acquisition unit acquires information for searching for the data recorded in the recording medium and the command that requests transmission of the statistical information related to the data. Processing equipment.
前記記録媒体は、磁気テープに前記データを記録することができるテープカセットである
ことを特徴とする請求項1に記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the recording medium is a tape cassette capable of recording the data on a magnetic tape.
前記属性情報記録領域は、前記テープカセットに設けられた前記磁気テープとは異なるメモリの記録領域の少なくとも一部である
ことを特徴とする請求項5に記載の情報処理装置。
The information processing apparatus according to claim 5, wherein the attribute information recording area is at least a part of a recording area of a memory different from the magnetic tape provided in the tape cassette.
前記記録媒体は、CD−Rである
ことを特徴とする請求項1に記載の情報処理装置。
The information processing apparatus according to claim 1, wherein the recording medium is a CD-R.
前記記録媒体に記録される前記データおよび前記データの属性情報を取得する取得手段と、
前記記録媒体に前記データを記録するデータ記録手段と、
前記属性情報記録領域への、前記属性情報の記録を制御する属性情報記録制御手段と
を更に備えることを特徴とする請求項1に記載の情報処理装置。
Obtaining means for obtaining the data recorded on the recording medium and attribute information of the data;
Data recording means for recording the data on the recording medium;
The information processing apparatus according to claim 1, further comprising: attribute information recording control means for controlling recording of the attribute information in the attribute information recording area.
前記取得手段により取得された前記データを一時保存する複数のデータ一時記憶手段と、
前記取得手段により取得された前記属性情報を基に、前記データ一時記憶手段への前記データの一時記憶を制御する記憶制御手段と
を更に備え、
前記記憶制御手段は、複数の前記一時記憶手段のうちのいずれかにおいて、前記一時記憶手段が備える記憶容量の前記データが記憶された場合、前記データを読み出し、
前記データ記録手段は、前記記憶制御手段により読み出された前記データを前記記録媒体に記録する
ことを特徴とする請求項8に記載の情報処理装置。
A plurality of data temporary storage means for temporarily storing the data acquired by the acquisition means;
Based on the attribute information acquired by the acquisition means, further comprising storage control means for controlling the temporary storage of the data in the data temporary storage means,
The storage control unit reads the data when the data of the storage capacity included in the temporary storage unit is stored in any of the plurality of temporary storage units,
The information processing apparatus according to claim 8, wherein the data recording unit records the data read by the storage control unit on the recording medium.
シーケンシャルにデータが記録されている記録媒体を装着可能であり、前記記録媒体に記録されている前記データまたは前記データに関する情報を処理する情報処理装置の情報処理方法において、
他の情報処理装置から供給された、コマンドおよび前記コマンドの実行に必要な情報の取得を制御する取得制御ステップと、
前記制御取得ステップの処理により取得が制御された前記情報を基に、前記記録媒体内の前記データが記録されている記録領域とは異なる領域であって、前記データの属性情報がテーブル形式で記録されている属性情報記録領域から、前記属性情報を読み出して、所定の前記データに対応するレコードを検索する検索ステップと
を含むことを特徴とする情報処理方法。
In an information processing method of an information processing apparatus capable of mounting a recording medium on which data is sequentially recorded and processing the data recorded on the recording medium or information on the data,
An acquisition control step for controlling acquisition of a command and information necessary for executing the command, supplied from another information processing apparatus;
Based on the information whose acquisition is controlled by the process of the control acquisition step, the recording information is recorded in a table format in a different area from the recording area where the data is recorded in the recording medium. And a retrieval step of retrieving the attribute information from the attribute information recording area, and retrieving a record corresponding to the predetermined data.
シーケンシャルにデータが記録されている記録媒体に記録されている前記データまたは前記データに関する情報の処理をコンピュータに実行させるためのプログラムであって、
他の情報処理装置から供給された、コマンドおよび前記コマンドの実行に必要な情報の取得を制御する取得制御ステップと、
前記制御取得ステップの処理により取得が制御された前記情報を基に、前記記録媒体内の前記データが記録されている記録領域とは異なる領域であって、前記データの属性情報がテーブル形式で記録されている属性情報記録領域から、前記属性情報を読み出して、所定の前記データに対応するレコードを検索する検索ステップと
を含むことを特徴とする処理をコンピュータに実行させるためのプログラム。
A program for causing a computer to execute processing of the data recorded on a recording medium in which data is sequentially recorded or information related to the data,
An acquisition control step for controlling acquisition of a command and information necessary for executing the command, supplied from another information processing apparatus;
Based on the information whose acquisition is controlled by the process of the control acquisition step, the recording information is recorded in a table format in a different area from the recording area where the data is recorded in the recording medium. And a retrieval step for retrieving the attribute information from the attribute information recording area, and retrieving a record corresponding to the predetermined data.
JP2005001335A 2005-01-06 2005-01-06 Information processor and information processing method, and program Withdrawn JP2006190075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005001335A JP2006190075A (en) 2005-01-06 2005-01-06 Information processor and information processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005001335A JP2006190075A (en) 2005-01-06 2005-01-06 Information processor and information processing method, and program

Publications (1)

Publication Number Publication Date
JP2006190075A true JP2006190075A (en) 2006-07-20

Family

ID=36797221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005001335A Withdrawn JP2006190075A (en) 2005-01-06 2005-01-06 Information processor and information processing method, and program

Country Status (1)

Country Link
JP (1) JP2006190075A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009075046A1 (en) * 2007-12-11 2009-06-18 Sony Computer Entertainment Inc. Disc access apparatus and disc access method
US9858158B2 (en) 2014-09-29 2018-01-02 International Business Machines Corporation File system for rolling back data on tape

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009075046A1 (en) * 2007-12-11 2009-06-18 Sony Computer Entertainment Inc. Disc access apparatus and disc access method
US8416653B2 (en) 2007-12-11 2013-04-09 Sony Corporation Disc access apparatus and disc access method
US9858158B2 (en) 2014-09-29 2018-01-02 International Business Machines Corporation File system for rolling back data on tape
US9886355B2 (en) 2014-09-29 2018-02-06 International Business Machines Corporation File system for rolling back data on tape
US10417100B2 (en) 2014-09-29 2019-09-17 International Business Machines Corporation File system for rolling back data on tape

Similar Documents

Publication Publication Date Title
JP4281687B2 (en) Information processing apparatus, information processing method, and program
US8223600B2 (en) Network-attachable, file-accessible storage drive
KR100915767B1 (en) Information processing apparatus and method
JPH10289537A (en) Digital data recording method and digital data recording medium
US9773059B2 (en) Tape data management
JP2000020365A (en) Data processor and file managing method therefor
JP5618813B2 (en) Storage device, recording medium, and data long-term storage method
JP2006073196A (en) Data read/write method for compact disk medium
EP1466251A1 (en) System and method for searching for duplicate data
US7349623B1 (en) Data recording apparatus and system having sustained high transfer rates
US20030026021A1 (en) Method, system, program, and storage cartridge for storing data in a storage medium
CN101563906A (en) Wireless media system with embedded media server
JP4086611B2 (en) RECORDING CONTROL DEVICE, METHOD, AND RECORDING MEDIUM USING THE RECORDING CONTROL METHOD
JP2006190075A (en) Information processor and information processing method, and program
JP2006190392A (en) Information processor and information processing method, program, and recording medium
JP2004005778A (en) Information processor, data recording method, program of data recording method, and recording medium recorded with program of data recording method
CN1106644C (en) Recording device and method, reproducing device and method and recording medium
JP2007265556A (en) Information reproducing device, information presenting method, and information presenting system
JP4264615B2 (en) Data recording method, data recording apparatus and recording medium
US20040268043A1 (en) Recording medium, recording apparatus and reproducing apparatus
WO2004109691A1 (en) Information recording method, information recording system, drive control unit, and semiconductor integrated circuit
TW588329B (en) Data processing device and data processing method
KR20060092237A (en) Recording/reproducing device and recording method
JPH07176169A (en) Magnetic tape device control method
JP2001057058A (en) Information processing device and method for accessing information recording device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080401