JP2012009105A - Data tape control device - Google Patents
Data tape control device Download PDFInfo
- Publication number
- JP2012009105A JP2012009105A JP2010143483A JP2010143483A JP2012009105A JP 2012009105 A JP2012009105 A JP 2012009105A JP 2010143483 A JP2010143483 A JP 2010143483A JP 2010143483 A JP2010143483 A JP 2010143483A JP 2012009105 A JP2012009105 A JP 2012009105A
- Authority
- JP
- Japan
- Prior art keywords
- file
- data
- recording
- tape
- restoration
- 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.)
- Granted
Links
- 230000008707 rearrangement Effects 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 description 14
- 238000013500 data storage Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000006837 decompression Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 210000000707 wrist Anatomy 0.000 description 1
Images
Abstract
Description
本発明は、データテープ等のリニアアクセス媒体にデータファイルを記録するデータテープ制御装置に関し、より詳細には、データファイルのインデックスの作成方法および記録する情報と、それらを利用してデータファイルを復元するデータテープ制御装置に関する。 The present invention relates to a data tape control device for recording a data file on a linear access medium such as a data tape, and more particularly, a method for creating an index of a data file and information to be recorded, and a data file is restored using the method. The present invention relates to a data tape control device.
データテープ等のテープ媒体に記録されたデータファイルを読み出す場合、テープ装置は、データテープの先端から終端へ、またはテープの終端から先端へデータトラックに沿った往復移動と、データトラック間を跨いだ移動を行うことで、データファイルが記録された開始位置までヘッドを移動する。 When reading a data file recorded on a tape medium such as a data tape, the tape device reciprocates along the data track from the front end to the end of the data tape or from the end to the front end of the tape, and straddles the data track. By moving, the head is moved to the start position where the data file is recorded.
テープ装置は、データファイルの読み出しに際して、データファイルの開始位置から、記録方向に沿ってデータファイルを読み出し、データテープの先端または終端に達すると、隣のデータトラックに移動し、ヘッドの移動方向を反転して、引き続きデータファイルを読み出す。 When reading the data file, the tape device reads the data file from the start position of the data file along the recording direction, and moves to the next data track when reaching the leading or trailing end of the data tape, and changes the head moving direction. Invert and continue reading data file.
データテープから複数のファイルを読み出す際、データファイルの開始位置までの移動に要するデータテープの走行時間がボトルネックとなる。テープ装置において、記録された複数のデータの読み出すに要する時間を短縮するために、様々な提案が行われている。 When reading a plurality of files from the data tape, the running time of the data tape required to move to the start position of the data file becomes a bottleneck. Various proposals have been made to reduce the time required for reading a plurality of recorded data in a tape device.
データテープ上に記録されたデータを読み出す時間を短縮する技術として、例えば特許文献1に開示の技術がある。特許文献1のテープ装置は、リードライト処理が終了する毎に、次に実行可能なコマンドが対象とする全てのデータの先頭位置と、現在の磁気ヘッドの位置とを比較し、最も距離の短いものを選択することで処理の最適化を図るものである。
As a technique for shortening the time for reading the data recorded on the data tape, for example, there is a technique disclosed in
データテープ上のデータトラックに記録されるデータは、テープの先頭から終端に向けた方向、またはテープの終端から先頭に向けた方向のいずれかの方向で記録される。したがって、読み取りに際しても、テープ装置は、記録時と同一方向にヘッドを移動させてデータを読み取る必要がある。したがって、ヘッドの移動時間を算出するにあたって、ヘッドの移動方向を併せて考慮する必要があるところ、上記従来技術では、記録方向に関しては、考慮されておらず、複数のデータトラックからなるデータテープからデータを読み込む際には、時間がかかるという課題がある。 Data recorded on the data track on the data tape is recorded in either the direction from the beginning to the end of the tape or the direction from the end to the beginning of the tape. Therefore, also in reading, the tape device needs to read data by moving the head in the same direction as in recording. Therefore, when calculating the head moving time, it is necessary to consider the moving direction of the head together. However, in the above-described conventional technique, the recording direction is not taken into consideration, and a data tape composed of a plurality of data tracks is used. When reading data, there is a problem that it takes time.
上記課題を解決するために、本発明のデータテープ制御装置は、データを記録するデータトラックを複数持つデータテープの長手方向に対するヘッドの往復移動および前記データトラック間を跨いだ移動により、前記データテープに対してデータの記録および再生を行うデータテープ制御装置であって、前記データテープに記録された複数のファイルの記録位置と記録方向とを含むファイルインデックスを、前記データテープから取得するファイルインデックス復元部と、前記ファイルインデックスより読み込み対象のファイルの記録位置と記録方向とを取得し、取得した記録位置と記録方向とを基に、ファイルの読み出し順序を決定するファイル復元順並び替え手段と、前記ファイル復元並び替え手段で並び替えられた順序で、前記読み込み対象のファイルを再生するファイル復元手段と、を備える。 In order to solve the above-mentioned problems, the data tape control device according to the present invention provides the data tape by performing reciprocal movement of a head in the longitudinal direction of a data tape having a plurality of data tracks for recording data and movement across the data tracks. A data tape controller that records and reproduces data on a data tape, and obtains a file index including recording positions and recording directions of a plurality of files recorded on the data tape from the data tape. And a file restoration order rearranging means for obtaining a recording position and a recording direction of a file to be read from the file index, and determining a file reading order based on the acquired recording position and recording direction, The read in the order sorted by the file restoration sorting means. Comprising a file restoration means for reproducing the target file, the.
データテープ制御装置は、記録されたファイルの記録位置と記録方向から、読み出し順序を決定し、データを読み出すことにより、読み出し時間を短縮することができる。 The data tape control device can shorten the reading time by determining the reading order from the recording position and recording direction of the recorded file and reading the data.
以下、実施の形態について、図面を参照しながら説明する。
(実施の形態1)
図5は、本実施の形態のデータテープ制御装置における、記録に関する構成を示すブロック図である。図3は、テープにデータを記録したときのファイルとインデックスの構成を示す。図1は、テープにデータを記録したときに作成するファイルインデックスの構成を示す。図2は、ファイルインデックスの具体例を示す。図2は、説明のため簡略化し、ファイルパスと開始ブロックアドレスと開始方向と終了ブロックアドレスと終了方向のみ示している。図4は、テープに記録するファイルを指定する記録ファイルリストを示す。
Hereinafter, embodiments will be described with reference to the drawings.
(Embodiment 1)
FIG. 5 is a block diagram showing a configuration relating to recording in the data tape control apparatus of the present embodiment. FIG. 3 shows the structure of files and indexes when data is recorded on the tape. FIG. 1 shows the structure of a file index created when data is recorded on a tape. FIG. 2 shows a specific example of the file index. FIG. 2 is simplified for the sake of explanation, and only the file path, the start block address, the start direction, the end block address, and the end direction are shown. FIG. 4 shows a recording file list for designating files to be recorded on the tape.
図5において、本実施の形態のデータテープ制御装置は、記録に関する構成として、データ記録処理部108と、データ記憶媒体制御部102と、テープドライブ制御部104を有している。
In FIG. 5, the data tape control apparatus of the present embodiment has a data
本実施の形態のデータテープ制御装置は、記録ファイルリスト101に基づき、データ記録媒体103に記録されたデータを読み出して、データテープ116に読み出したデータを記録し、データ記録媒体103のバックアップデータを作成する。
The data tape control device of the present embodiment reads the data recorded on the
データ記録処理部108は、記録ファイルリスト101に指定されたファイルをデータテープ116に記録して、ファイルインデックス110を作成する。データ記録処理部108は、記録方向判定手段117と、ファイルインデックス作成手段109と、ファイルインデックス110と、ファイル書き込み手段108を含む。
The data
記録位置方向判定手段117は、データブロックが記録されたブロックアドレスから、そのデータブロックを読み出すときに、データテープの走行方向が正方向であるか逆方向であるかを判定する。ブロックアドレス値が0の位置から読み出す方向を正方向とし、そこからEOTまで読み出して反転した方向を逆方向とする。すなわち、ブロックアドレスをブロック数/トラックで除算した商が0または偶数のときに正方向、奇数のときに逆方向と判定する。 The recording position / direction determining means 117 determines whether the running direction of the data tape is the forward direction or the reverse direction when reading the data block from the block address where the data block is recorded. The direction in which the block address value is read from 0 is defined as the forward direction, and the direction read from there to the EOT and reversed is defined as the reverse direction. That is, the forward direction is determined when the quotient obtained by dividing the block address by the number of blocks / track is 0 or an even number, and the reverse direction is determined when the quotient is an odd number.
ファイルインデックス作成手段109は、データに対するファイルインデックス110を作成する。ファイル書き込み手段118は、テープドライブ制御部104を制御して、データテープ116にファイルを書き込む。
File index creation means 109 creates a
データ記憶媒体制御部102は、データ記憶媒体103を読み書きする。
The data storage
テープドライブ制御部104は、データテープ116を読み書きする。テープドライブ制御部104は、シーク手段105とテープ位置取得手段106を含む。シーク手段105はデータテープ116を指定した物理ブロック位置にシークする。テープ位置取得手段106は、データテープ116の現在の物理ブロック位置を取得する。
The tape
以下、このように構成されたデータテープ制御装置のデータ記録時の動作について説明する。図4に示す記録ファイルリストに示されたファイルをデータテープに記録する処理を例に挙げて説明する。 Hereinafter, an operation at the time of data recording of the data tape control device configured as described above will be described. A process for recording the files shown in the recording file list shown in FIG. 4 on a data tape will be described as an example.
データ記録処理部108は、まず、データテープをEODまでシークする。次に、データ記録処理部108は、記録ファイルリスト101に指定されたファイル数だけ、次の処理を行う。
First, the data
ファイルインデックス作成手段109は、データ記憶媒体制御部102によりデータ記憶媒体103からファイルを読み出し、ファイルの作成日時、更新日時、アクセス日時、読み取り専用属性、サイズ、作成者を取得して、ファイル名、ファイルパスと共にファイルインデックス110に新規登録する。次に、ファイルインデックス作成手段109は、位置取得手段106によりブロックアドレスを取得し、取得したブロックアドレスを開始ブロックアドレスとしてファイルインデックス110に追加する。ファイルインデックス作成手段109は、記録位置方向判定手段117により、開始ブロックアドレスの走行方向を判定し、開始方向としてファイルインデックス110に追加する。
The file index creation means 109 reads the file from the
次にファイル書き込み手段118は、データファイルをデータブロック単位でデータテープ116に書き込む。
Next, the file writing means 118 writes the data file to the
次にファイルインデックス作成手段109は、位置取得手段106によりブロックアドレスを取得し、取得したブロックアドレスを終了ブロックアドレスとしてファイルインデックス110に追加する。ファイルインデックス作成手段109は、記録位置方向判定手段117により、終了ブロックアドレスの走行方向を判定し、終了方向としてファイルインデックス110に追加する。
Next, the file
この作業をファイル件数分繰り返すことにより、データ記録処理部108は、同時にファイルインデックス110を作成する。すべてのデータファイルをデータテープ116に書き込んだ後に、ファイルインデックス110をデータテープ116に書き込む。
By repeating this operation for the number of files, the data
記録ファイルリスト101を基にファイルを書き込んだデータテープ116の状態を図7に、ファイルインデックスを図2に示す。次に図2と図7の関係について、いくつかのファイルを例に挙げて説明する。ID1のファイルは、開始方向が正、終了方向が正である。ID1のファイルはファイル207が該当し、トラック201をまたがない記録状態を示す。ID3のファイルは開始方向が正、終了方向が逆である。ID3のファイルは、トラック201にあるファイルブロック208から、EOT206で折り返してトラック202にあるファイルブロック209にまたがる記録状態を示す。ID4のファイルは、開始方向が逆、終了方向が正である。ID4のファイルはトラック201にあるファイルブロック213から、BOT205で折り返しトラック203にあるファイルブロック214にまたがる記録状態を示す。ID5のファイルは、開始方向が逆、終了方向が逆である。ID5のファイルはトラック203をまたがない記録状態を示す。
FIG. 7 shows the state of the data tape 116 in which the file is written based on the
以上のようにしてファイルをデータテープに書き込めば、ファイルインデックスから、ファイルパスをキーとして、ファイルが記録された位置を開始ブロックアドレスと開始方向と終了ブロックアドレスと終了方向で詳細に知ることができる。 If the file is written on the data tape as described above, the position where the file is recorded can be known in detail from the file index by using the file path as a key by the start block address, the start direction, the end block address, and the end direction. .
次に、データテープからファイルを復元する方法を説明する。図7に示す記録済みデータテープから、図15に示した復元ファイルリストで指定したファイルを取り出す処理を例に挙げて説明する。 Next, a method for restoring a file from a data tape will be described. A description will be given by taking as an example processing for extracting the file specified in the restoration file list shown in FIG. 15 from the recorded data tape shown in FIG.
図6は、本実施の形態のデータテープ制御装置のファイル復元処理に関する構成を示す図である。図5に示した構成と共通の構成については同一の符号を付与している。本実施の形態のデータテープ制御装置はファイル復元処理に関する構成として、データ復元処理部112と、データ記憶媒体制御部102と、テープドライブ制御部104を有している。
FIG. 6 is a diagram showing a configuration relating to file restoration processing of the data tape control device of the present embodiment. Components that are the same as those shown in FIG. 5 are given the same reference numerals. The data tape control apparatus according to the present embodiment includes a data
データ復元処理部112は、復元ファイルリスト111に指定されたファイルを、ファイルインデックス114と照合して、記録位置と記録方向を判定することで、シーク距離が最短となるようにファイル復元順序を並び替えて復元する。データ復元処理部112は、ファイル復元順並び替え手段113と、並び替え復元ファイルリスト115と、ファイルインデックス114と、ファイル復元手段119を含む。
The data
ファイル復元順並び替え手段113は、復元ファイルリスト111を読み取り、ファイル復元時にデータテープ116をシークする時間が最短になるように順番を並び替えて、並び替え復元ファイルリスト115を作成する。ファイルインデックス114は、データテープ116に記録されたデータに関するファイルインデックスであり、テープドライブ制御部104を介して、データテープ116から取得される。ファイル復元手段119は、テープドライブ制御部104を制御して、データテープ116に記録されたデータを復元する。
The file restoration
データテープ116とテープドライブ107の仕様について説明する。シークする単位はブロック数であるので、秒/ブロック数として表す。BOTとEOTの距離は物理的にすべてのトラックでほぼ同じであるが、実際のデータテープ116では、トラック間に誤差がある。ただし、その誤差は無視できるレベルである。説明のためトラックのBOTとEOT間のブロック数は150000ブロックとし、そのシーク時間は140秒とする。この場合、140÷150000≒0.00093秒/ブロックとなる。
The specifications of the
続いて、反転動作について説明する。テープドライブ107は機構上、反転時には停止して逆転方向に位置決めするための時間を要し、たとえばこの時間を10秒とする。先に復元するファイルの終了ブロックアドレスと次に復元するファイルの開始ブロックアドレスの差が、反転有りと反転無しで同じ値であるとき、反転有りの方が反転時間を必要とする分だけ、10秒余計にかかることになる。したがって、復元順序を決定する際は反転有無を考慮する必要がある。10秒でシークできるブロック数は、150000/140×10=10714となる。つまり、反転無しの場合、先に復元するファイルの終了ブロックアドレスと次に復元するファイルの開始ブロックアドレスの距離がこの10714未満であれば、反転有りで距離が0の組み合わせよりも時間を短縮できることになる。この値を反転補正距離と称する。
Subsequently, the inversion operation will be described. Due to the mechanism, the
また、データテープ116は機構上、別トラックのブロックアドレスにシークする際、現在位置とシーク先のアドレスが同じ方向であり、かつ重ならない位置であったとしても、少し戻ってからシークすることがある。すなわち反転が必要なことがある。この閾値の距離を反転閾距離と称する。
In addition, when seeking to the block address of another track, the
ここで、並べ替えないで復元する場合のシーク時間について説明する。図11に、復元ファイルリスト101に指定されたファイルの順番に復元する場合のデータテープ116のシーク時間を示す。ファイル401を復元後、次のファイルであるファイルブロック402の復元開始までに79000ブロックシークし、そのシーク時間に約73秒要する。次のファイルはファイルブロック403からファイル404への移動で44500ブロックシークし、そのシーク時間に約41秒要する。このようにして、ファイルの復元完了後の位置と、次に復元するファイルの開始位置の関係を考慮せずに復元を行うと、シークする距離の合計は144000ブロックとなり、シークする時間の合計は133秒となる。
Here, the seek time when restoring without rearranging will be described. FIG. 11 shows the seek time of the
次に、ファイルの並べ替えを行って復元する場合について説明する。 Next, a case where the files are rearranged and restored will be described.
ファイル復元順並び替え手段113は、図16に示す復元ファイルリストを読み取り、ファイル復元時にデータテープ116をシークする時間が最短になるように順番を並び替えて、並び替え復元ファイルリスト115を作成する。図15に、ファイル復元順並び替えのアルゴリズムのフローチャートを示す。図8に、順方向復元時に反転しない場合のシーク動作を示す。図9に、順方向復元時に反転する場合のシーク動作を示す。図10に、先に復元するファイルの終了方向と次に復元するファイルの開始方向が異なる場合のシーク動作を示す。図17に、復元ファイルリストの最初のファイルから次に復元するファイルへの組み合わせとその距離を示す。図18に、復元ファイルリストの最初のファイルから、最短のシーク距離で次に復元するファイルを決定した後の並び替え済みのファイルリストを示す。図19に、復元ファイルリストの最短距離を検索する最後の組み合わせとその距離を示す。図20に、復元ファイルリストの最初のファイルから、最短のシーク距離で次に復元するファイルを決定した後の並び替え済みのファイルリストを示す。以下にこれら図を使用して並び替えのアルゴリズムについて説明する。
The file restoration order rearranging means 113 reads the restoration file list shown in FIG. 16, rearranges the order so that the time for seeking the
データ復元処理部112は、あらかじめデータテープ116に記録されたファイルインデックスを、ファイルインデックス114に読み込み、続けて、図16に示す復元ファイルリスト111を並び替え復元ファイルリスト115に読み込む。また、データテープ116の現在位置は、巻き戻し直後と仮定して0とする。
The data
ファイル復元順並び替え手段113は、ループ1のインデックス[i]の初期値として−1を設定して処理を開始する(S102)。続けて、ファイル復元順並び替え手段113は、インデックス[i]が0以上であるか判定する(S103)。最初は−1であるので、ファイル復元順並び替え手段113は、テープ位置取得手段106でデータテープ116の現在位置を取得し[終了ブロックアドレス]に0を設定する(S201)。ファイル復元順並び替え手段113は、記録位置方向判定手段117でデータテープ116の読み出し方向を判定して[終了方向]に正方向を設定する(S202)。ファイル復元順並び替え手段113は、BOTとEOTの距離である150000に1加算した150001を[最短シーク距離]に設定する(S105)。ファイル復元順並び替え手段113は、BOTから[終了ブロックアドレス]までの距離である0を[開始位置]に設定する(S106)。ファイル復元順並び替え手段113は、仮インデックス[s]に[i+1]の値0を設定する(S107)。
The file restoration
次に、ファイル復元順並び替え手段113は、ループ2(S301)で、インデックス[k]に[i+1]の値を初期値として設定し、並び替え復元ファイルリスト115のインデックス[k]が0のファイル[C:¥DATA¥FILE1.TXT]を、ファイルインデックス114を検索して、[開始ブロックアドレス]として0を、[開始方向]として正方向を取得する(S302)。ファイル復元順並び替え手段113は、BOTから[開始ブロックアドレス]までの距離である0を[次の位置]にする(S303)。ファイル復元順並び替え手段113は、[開始位置]であるデータテープ116の現在位置から、[次の位置]である[C:¥DATA¥FILE1.TXT]までの距離である0を、[シーク距離]に設定する(S304)。
Next, the file restoration
続けて、ファイル復元順並び替え手段113は、[終了方向]と[開始方向]を比較して、いずれも正方向で同じであるので何もしない(S305)。ファイル復元順並び替え手段113は、[シーク距離]の0が[最短シーク距離]の150001未満なので(S401)、そのときのインデックス[k]の値0を、仮インデックス[s]に設定し、[シーク距離]の0を[最短シーク距離]に設定し、[開始方向]の正方向を[終了方向]に設定する(S402)。
Subsequently, the file restoration
次に、ファイル復元順並び替え手段113は、ループ2(S301)に戻り、インデックス[k]をインクリメントして、並び替え復元ファイルリスト115のインデックス[k]が1の[C:¥DATA¥FILE3.TXT]をファイルインデックス114から検索して、[開始ブロックアドレス]として140000を[開始方向]として逆方向を取得する。ファイル復元順並び替え手段113は、BOTから[開始ブロックアドレス]までの距離である119500を[次の位置]に設定する(S303)。ファイル復元順並び替え手段113は、[開始位置]であるデータテープ116の現在位置から、[次の位置]である[C:¥DATA¥FILE3.TXT]の距離である119500を、[シーク距離]に設定する(S304)。
Next, the file restoration
続けて、ファイル復元順並び替え手段113は、[終了方向]と[開始方向]を比較し、正方向と逆方向で方向が異なるので(S305)、[シーク距離]の119500に[反転補正距離]の10714を加算して、130214を新しい[シーク距離]とする(S306)。このとき、ファイル復元順並び替え手段113は、[シーク距離]の130214が[最短シーク距離]の0より大きいので何もしない(S401)。
Subsequently, the file restoration
再び、ファイル復元順並び替え手段113は、ループ2(S301)に戻り、並び替え復元ファイルリスト115のインデックス[k]が2から4までのファイルについて、以上に説明した処理(S301)から(S403)を繰り返す。この処理の結果、仮インデックス[s]は0となり、並び替えファイルリスト115の[i+1]が示す0番目と、仮インデックス[s]が示す0番目を入れ替えると、ファイルリスト115のインデックス0番目のファイルは[C:¥DATA¥FILE1.TXT]に決定される(S405)。
Again, the file restoration
次に、ファイル復元順並び替え手段113は、ループ1(S102)に戻り、インデックス[i]はインクリメントして0となる。インデックス[i]が0以上であるので(S103)、ファイル復元順並び替え手段113は、並び替え復元ファイルリスト115からインデックス[i]が0のファイルパス[C:¥DATA¥FILE1.TXT]を取得し、ファイルインデックス114から、[終了ブロックアドレス]として61000を、[終了方向]として正方向を取得する(S202)。ファイル復元順並び替え手段113は、BOTとEOTの距離である150000に1加算した150001を[最短シーク距離]に設定する(S105)。ファイル復元順並び替え手段113は、BOTから[終了ブロックアドレス]までの距離である61000を[開始位置]に設定する(S106)。ファイル復元順並び替え手段113は、仮インデックス[s]に[i+1]の値1を設定する(S107)。
Next, the file restoration
次に、ファイル復元順並び替え手段113は、ループ2(S301)で、インデックス[k]をインクリメントして、並び替え復元ファイルリスト115のインデックス[k]が1のファイル[C:¥DATA¥FILE3.TXT]を、ファイルインデックス114から検索して、[開始ブロックアドレス]として140000を、[開始方向]として正方向を取得する(S302)。ファイル復元順並び替え手段113は、BOTから[開始ブロックアドレス]までの距離である140000を[次の位置]に設定する(S303)。ファイル復元順並び替え手段113は、[開始位置]である61000から、[次の位置]である[C:¥DATA¥FILE1.TXT]までの距離である79000を、[シーク距離]に設定する(S304)。
Next, the file restoration
続けて、ファイル復元順並び替え手段113は、[終了方向]と[開始方向]を比較して、正方向と正方向で同じであるので何もしない(S305)。ファイル復元順並び替え手段113は、[シーク距離]の79000が[最短シーク距離]の150001未満なので(S401)、そのときのインデックス[k]の値である1を、仮インデックス[s]に設定し、[シーク距離]79000を[最短シーク距離]に設定し、[開始方向]の正方向を[終了方向]に設定する(S402)。
Subsequently, the file restoration
次に、ファイル復元順並び替え手段113は、ループ2(S301)に戻り、インデックス[k]をインクリメントして、並び替え復元ファイルリスト115のインデックス[k]が2のファイル[C:¥DATA¥FILE5.TXT]を、ファイルインデックス114から検索して、[開始ブロックアドレス]として375000と[開始方向]として逆方向を取得する。ファイル復元順並び替え手段113は、BOTから[開始ブロックアドレス]までの距離である75000を[次の位置]に設定する(S303)。ファイル復元順並び替え手段113は、[開始位置]である61000から、[次の位置]である[C:¥DATA¥FILE5.TXT]の距離である14000を、[シーク距離]に設定する(S304)。
Next, the file restoration
続けて、ファイル復元順並び替え手段113は、[終了方向]と[開始方向]を比較して、正方向と正方向で同じであるので何もしない(S305)。ファイル復元順並び替え手段113は、[シーク距離]の14000が[最短シーク距離]の79000未満なので(S401)、そのときのインデックス[k]の値1を、仮インデックス[s]に設定し、[シーク距離]14000を[最短シーク距離]に設定し、[開始方向]の正方向を[終了方向]に設定する(S402)。
Subsequently, the file restoration
ファイル復元順並び替え手段113は、再び、ループ2(S301)に戻り、インデックス[k]をインクリメントして、並び替え復元ファイルリスト115のインデックス[k]が3から4までのファイルについて、以上に説明した処理(S301)から(S403)を繰り返す。この処理の結果、仮インデックス[s]は2となり、並び替えファイルリスト115の[i+1]が示す1番目と仮インデックス[s]が示す2番目を入れ替えると、並び替えファイルリスト115の1番目のファイルは[C:¥DATA¥FILE5.TXT]に決定される(S405)。この入れ替えの様子を並び替え復元ファイルリスト115の最初の入れ替え510として、図18に示す。
The file restoration
同様にループを継続すると、並び替えファイルリスト115の2番目のファイルは[C:¥DATA¥FILE7.TXT]に、3番目のファイルは[C:¥DATA¥FILE3.TXT]に、4番目のファイルは[C:¥DATA¥FILE9.TXT]に、決定される。図20に、ファイル復元順並び替え手段113による並び替え完了後の並び替え復元ファイルリスト115を示す。
Similarly, when the loop is continued, the second file in the rearranged file list 115 is [C: \ DATA \ FILE7. TXT], the third file is [C: \ DATA \ FILE3. TXT], the fourth file is [C: \ DATA \ FILE9. TXT]. FIG. 20 shows the rearranged restoration file list 115 after the rearrangement by the file restoration
図13に、並び替え復元ファイルリスト115に指定されたファイルの順番に復元する場合のデータテープ116のシーク時間を示す。ファイル401を復元後、次のファイルであるファイルブロック404の復元開始までに14000ブロックシークし、そのシーク時間に約13秒要する。次のファイルはファイルブロック404からファイル405への移動で1500ブロックシークし、そのシーク時間に約2秒要する。このようにして復元を行うと、シークする距離の合計は24000ブロックとなり、シークする時間の合計は23秒となり、110秒の時間短縮ができる。
FIG. 13 shows the seek time of the
本実施の形態にかかるデータテープ制御装置は、記録されたファイルの記録位置と記録方向から、読み出し順序を決定し、データを読み出すことにより、読み出し時間を短縮することができ、映像データ等をバックアップする装置等に適用することでき、有用である。 The data tape control device according to the present embodiment can shorten the reading time by determining the reading order from the recording position and recording direction of the recorded file, and reading the data, and backup the video data and the like. It can be applied to a device that performs such operations and is useful.
101 記録ファイルリスト
102 データ記憶媒体制御部
103 データ記憶媒体
104 テープドライブ制御部
105 シーク手段
106 テープ位置取得手段
107 テープドライブ
108 データ記録処理部
109 ファイルインデックス作成手段
110 ファイルインデックス
111 復元ファイルリスト
112 データ復元処理部
113 ファイル復元順並び替え手段
114 ファイルインデックス
115 並び替え復元ファイルリスト
116 データテープ
DESCRIPTION OF
Claims (3)
前記データテープに記録された複数のファイルの記録位置と記録方向とを含むファイルインデックスを、前記データテープから取得するファイルインデックス復元部と、
前記ファイルインデックスより読み込み対象のファイルの記録位置と記録方向とを取得し、取得した記録位置と記録方向とを基に、ファイルの読み出し順序を決定するファイル復元順並び替え部と、
前記ファイル復元並び替え部で並び替えられた順序で、前記読み込み対象のファイルを再生するファイル復元部と、
を備えるデータテープ制御装置。 A data tape control device for recording and reproducing data to and from the data tape by reciprocating a head in a longitudinal direction of a data tape having a plurality of data tracks for recording data and moving across the data tracks. ,
A file index restoration unit for obtaining a file index including a recording position and a recording direction of a plurality of files recorded on the data tape from the data tape;
A file restoration order rearrangement unit that acquires a recording position and a recording direction of a file to be read from the file index, and determines a reading order of the file based on the acquired recording position and recording direction;
A file restoration unit for playing back the file to be read in the order rearranged by the file restoration rearrangement unit;
A data tape control device comprising:
ファイルに関する記録位置と記録方向とを基に、読み込み対象のファイルのシーク時間が最短となるように、ファイルの読み出し順序を決定する
請求項1に記載のデータテープ制御装置。 The file restoration order sorting unit
The data tape control device according to claim 1, wherein the file reading order is determined based on a recording position and a recording direction with respect to the file so that the seek time of the file to be read is minimized.
データをファイルとして前記データテープに記録するファイル書き込み部と、
前記ファイルの記録に際して、前記データテープ上の記録位置と記録方向とを含むファイルインデックスを作成するファイルインデックス作成部と、
前記ファイルインデックスを前記データテープに記録するインデックス書き込み部と、
を備えるデータテープ制御装置。 A data tape control device for recording and reproducing data to and from the data tape by reciprocating a head in a longitudinal direction of a data tape having a plurality of data tracks for recording data and moving across the data tracks. ,
A file writing unit for recording data on the data tape as a file;
A file index creation unit that creates a file index including a recording position and a recording direction on the data tape when recording the file;
An index writing unit for recording the file index on the data tape;
A data tape control device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010143483A JP5556426B2 (en) | 2010-06-24 | 2010-06-24 | Data tape controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010143483A JP5556426B2 (en) | 2010-06-24 | 2010-06-24 | Data tape controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012009105A true JP2012009105A (en) | 2012-01-12 |
JP5556426B2 JP5556426B2 (en) | 2014-07-23 |
Family
ID=45539465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010143483A Expired - Fee Related JP5556426B2 (en) | 2010-06-24 | 2010-06-24 | Data tape controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5556426B2 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014179140A (en) * | 2013-03-14 | 2014-09-25 | International Business Maschines Corporation | Method and program for searching reading order of a plurality of record groups on tape |
JP2015133164A (en) * | 2014-01-15 | 2015-07-23 | 富士通株式会社 | Tape device, write processing method, and write control program |
US9858158B2 (en) | 2014-09-29 | 2018-01-02 | International Business Machines Corporation | File system for rolling back data on tape |
US20190347242A1 (en) * | 2014-08-29 | 2019-11-14 | International Business Machines Corporation | Backup and restoration for storage system |
WO2020195639A1 (en) * | 2019-03-27 | 2020-10-01 | 富士フイルム株式会社 | Deriving device, deriving method, deriving program, and magnetic tape |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10152993B1 (en) | 2017-11-29 | 2018-12-11 | International Business Machines Corporation | Save block data to tape in a reverse order |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5845316A (en) * | 1996-05-23 | 1998-12-01 | Lucent Technologies Inc. | Scheduling random I/O for data storage tape |
JP2000048549A (en) * | 1998-08-03 | 2000-02-18 | Fujitsu Ltd | Tape device |
US20010034811A1 (en) * | 1997-12-10 | 2001-10-25 | Robert Beverley Basham | Host-available device block map for optimized file retrieval from serpentine tape drives |
-
2010
- 2010-06-24 JP JP2010143483A patent/JP5556426B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5845316A (en) * | 1996-05-23 | 1998-12-01 | Lucent Technologies Inc. | Scheduling random I/O for data storage tape |
US20010034811A1 (en) * | 1997-12-10 | 2001-10-25 | Robert Beverley Basham | Host-available device block map for optimized file retrieval from serpentine tape drives |
JP2000048549A (en) * | 1998-08-03 | 2000-02-18 | Fujitsu Ltd | Tape device |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9619147B2 (en) | 2013-03-14 | 2017-04-11 | International Business Machines Corporation | Reading order search method and program for recording |
JP2014179140A (en) * | 2013-03-14 | 2014-09-25 | International Business Maschines Corporation | Method and program for searching reading order of a plurality of record groups on tape |
JP2015133164A (en) * | 2014-01-15 | 2015-07-23 | 富士通株式会社 | Tape device, write processing method, and write control program |
US20190347242A1 (en) * | 2014-08-29 | 2019-11-14 | International Business Machines Corporation | Backup and restoration for storage system |
US11561928B2 (en) * | 2014-08-29 | 2023-01-24 | International Business Machines Corporation | Backup and restoration for storage system |
US9858158B2 (en) | 2014-09-29 | 2018-01-02 | 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 |
US9886355B2 (en) | 2014-09-29 | 2018-02-06 | International Business Machines Corporation | File system for rolling back data on tape |
WO2020195639A1 (en) * | 2019-03-27 | 2020-10-01 | 富士フイルム株式会社 | Deriving device, deriving method, deriving program, and magnetic tape |
CN113474837A (en) * | 2019-03-27 | 2021-10-01 | 富士胶片株式会社 | Deriving device, deriving method, deriving program, and magnetic tape |
JPWO2020195639A1 (en) * | 2019-03-27 | 2021-12-23 | 富士フイルム株式会社 | Derivation device, derivation method, derivation program, and magnetic tape |
EP3951781A4 (en) * | 2019-03-27 | 2022-06-08 | FUJIFILM Corporation | Deriving device, deriving method, deriving program, and magnetic tape |
CN113474837B (en) * | 2019-03-27 | 2022-07-29 | 富士胶片株式会社 | Export device, export method, storage medium, and magnetic tape |
US11456015B2 (en) | 2019-03-27 | 2022-09-27 | Fujifilm Corporation | Derivation device, derivation method, derivation program, and magnetic tape |
JP7167311B2 (en) | 2019-03-27 | 2022-11-08 | 富士フイルム株式会社 | Derivation device, derivation method, derivation program, and magnetic tape |
Also Published As
Publication number | Publication date |
---|---|
JP5556426B2 (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5556426B2 (en) | Data tape controller | |
JP5480163B2 (en) | Apparatus and method for reading data recorded on recording medium | |
US9536561B1 (en) | Writing dummy indices on a tape medium partition | |
JP5552195B2 (en) | Linear recording apparatus, method and program for performing optimal writing when receiving a command sequence in which read and write commands are mixed | |
US9263064B2 (en) | Reading order search method and program for recording groups on tape | |
WO1988006339A1 (en) | Method for recording and reproducing data for an optical card | |
JP5065203B2 (en) | Apparatus and method for converting data format | |
JP6052812B2 (en) | How to manage, write and read files on tape | |
US10656853B2 (en) | Tape having multiple data areas | |
JP2015088199A (en) | Writing in and reading out data having multiple access patterns on tape medium | |
JPH09115227A (en) | Write-in method for variable length sequencial record | |
JP2015133164A (en) | Tape device, write processing method, and write control program | |
JP2010097646A (en) | Device and method for controlling tape drive | |
JP4895308B2 (en) | Recording method for magnetic disk device and magnetic disk device | |
WO2020158463A1 (en) | Recording device, recording method, recording program, and magnetic tape | |
JP2011233186A (en) | Disk storage unit and data restoration method | |
JP2010079331A (en) | Snapshot management system and snapshot management method | |
JP5380556B2 (en) | Disk storage device and data restoration method | |
JP2014067113A (en) | Magnetic tape library device | |
JPH03122712A (en) | Backup system for file | |
JP2013161507A (en) | Magnetic tape device, data replication method, and data replication program | |
JP2000067527A (en) | Magnetic tape and magnetic tape device | |
JPH0441430B2 (en) | ||
JP2007133919A (en) | Document deletion method for document management system | |
JP2016219077A (en) | Magnetic disk device and redundant sector arrangement method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130613 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20130712 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20140107 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140225 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140417 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20140417 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140507 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140520 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5556426 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |