JPH0922331A - Information recording and playback method - Google Patents

Information recording and playback method

Info

Publication number
JPH0922331A
JPH0922331A JP7170816A JP17081695A JPH0922331A JP H0922331 A JPH0922331 A JP H0922331A JP 7170816 A JP7170816 A JP 7170816A JP 17081695 A JP17081695 A JP 17081695A JP H0922331 A JPH0922331 A JP H0922331A
Authority
JP
Japan
Prior art keywords
partition
command
recording
information recording
logical
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.)
Pending
Application number
JP7170816A
Other languages
Japanese (ja)
Inventor
Hideki Hosoya
英樹 細谷
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP7170816A priority Critical patent/JPH0922331A/en
Publication of JPH0922331A publication Critical patent/JPH0922331A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】 【課題】 複数の論理ブロックにわたる大きなファイル
データを一度に記録/再生する場合は、コマンドの発行
に要する時間が無視できず、処理速度の低下を招いてい
た。 【解決手段】 SCSIを介したホストコンピュータ1
2からの指令に基づいて光カード1に所定の情報を論理
ブロックアドレス単位で記録または再生すると共に、光
カード1を複数の論理的なパーティションに分割し、各
パーティション中で使用するセクタサイズを指定する命
令と、記録または再生の対象となるパーティションを指
定する命令を、SCSIを介してホストコンピュータ1
2から転送する情報記録再生方法において、光カード1
を複数の論理的なパーティションに分割する命令のパラ
メータ中に、論理ブロックアドレスの増加方向と物理的
な記録位置の配列方向との関係を指定するための情報を
含むようにする。
(57) Abstract: When recording / reproducing large file data over a plurality of logical blocks at one time, the time required to issue a command cannot be ignored, resulting in a decrease in processing speed. SOLUTION: Host computer 1 via SCSI
Based on the command from 2, the specified information is recorded or reproduced on the optical card 1 in logical block address units, the optical card 1 is divided into a plurality of logical partitions, and the sector size used in each partition is specified. Command for specifying the partition to be recorded or reproduced and the host computer 1 via SCSI
In the method of recording / reproducing information transferred from the optical card 1, the optical card 1
Is included in a parameter of an instruction for dividing the logical partition into a plurality of logical partitions, and information for designating the relationship between the increasing direction of the logical block address and the array direction of the physical recording positions is included.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、SCSI(Small
Computer System Interface )を介したホストコンピュ
ータからの指令に基づいて、情報記録媒体に所定の情報
を記録または再生する情報記録再生方法に関するもので
ある。
The present invention relates to a SCSI (Small)
The present invention relates to an information recording / reproducing method for recording or reproducing predetermined information on an information recording medium based on a command from a host computer via a computer system interface).

【0002】[0002]

【従来の技術】SCSIは米国シュガート社の小型コン
ピュータとその周辺装置とを結ぶインターフェースSA
SI(Shugart Associates System Interface )を基に
ANSI(米国規格協会)X3T9.2作業委員会で審議がな
され、ANSI X3.131-1986として規格化されたものであ
り、現在パーソナル・コンピュータのその周辺装置を結
ぶ標準インターフェースとして広く使用されている。ま
た、最近ではその拡張版であるSCSI−2の規格化の
ための作業が進められている。
2. Description of the Related Art SCSI is an interface SA that connects a small computer manufactured by Sugart Inc. of the United States and its peripheral devices.
It was deliberated by ANSI (American National Standards Institute) X3T9.2 working committee based on SI (Shugart Associates System Interface) and standardized as ANSI X3.131-1986. Currently, it is a peripheral device of a personal computer. Widely used as a standard interface to connect to. Further, recently, work for standardizing the extended version of SCSI-2 has been underway.

【0003】SCSIを採用する情報記録再生装置にお
いては、情報記録媒体上のデータへアクセスするとき
は、ロジカルユニット(この場合は、情報記録再生装
置)上に連続して配列された固定長のデータブロックで
ある論理ブロックアドレスで指示される。図9はハード
ディスク装置における論理ブロックの構成を示した図で
ある。図9において、シリンダ=0、トラック=0、セ
クタ=0のデータブロックを論理ブロックアドレス=0
とし、セクタ、トラック、シリンダの順番でそれぞれ1
つ増えるごとに、論理ブロックアドレスを1つ増加させ
る。論理ブロックアドレスを使用する利点は、イニシエ
ータ(ホストコンピュータ)が先頭データブロックの論
理ブロックアドレスと処理ブロック数を指定してデータ
をアクセスするので、物理的な構造を意識する必要がな
い点である。従って、論理ブロックアドレッシングを使
用すると、シリンダ、トラック、セクタ等の数が互いに
異なるデバイス同士を接続した場合に、同一のソフトウ
ェアで動作させることが可能である。
In the information recording / reproducing apparatus adopting the SCSI, when accessing the data on the information recording medium, fixed length data continuously arranged on the logical unit (in this case, the information recording / reproducing apparatus). It is designated by a logical block address that is a block. FIG. 9 is a diagram showing the configuration of logical blocks in the hard disk device. In FIG. 9, a data block of cylinder = 0, track = 0, sector = 0 is assigned to a logical block address = 0.
And 1 in the order of sector, track, cylinder
The logical block address is incremented by 1 for each increment. The advantage of using the logical block address is that the initiator (host computer) accesses the data by designating the logical block address of the first data block and the number of processing blocks, so that it is not necessary to consider the physical structure. Therefore, when logical block addressing is used, it is possible to operate with the same software when devices having different numbers of cylinders, tracks, sectors, etc. are connected.

【0004】図10にグループ0のライト(Write )コ
マンドのCDB(Command Descriptor Block)の一例を
示す。図10において、Logical Unit Number がコマン
ドの対象となる論理ユニットを、Logical Block Addres
s がコマンドの最初に実行される論理ブロックを、Tran
sfer Length がコマンドが連続して実行される論理ブロ
ック数をそれぞれ示している。例えば、ライトコマンド
であれば、Logical Unit Number で示される論理ユニッ
トのLogical Block Address で示される論理ブロックア
ドレスからTransfer Length で示される論理ブロック個
の連続した論理ブロックに記録がなされる。リード(Re
ad)コマンドの場合も同様である。
FIG. 10 shows an example of a CDB (Command Descriptor Block) of a write command of group 0. In FIG. 10, the logical unit whose Logical Unit Number is the command is the Logical Block Addres
The s is the Tran
The sfer Length indicates the number of logical blocks in which the command is executed consecutively. For example, in the case of a write command, recording is performed from the logical block address indicated by Logical Block Address of the logical unit indicated by Logical Unit Number to consecutive logical blocks of logical block number indicated by Transfer Length. Reed (Re
The same is true for the ad) command.

【0005】一方、従来から情報記録媒体としては、磁
気を用いて記録・再生を行うフロッピーディスク、光を
用いて記録・再生を行う光学的情報記録媒体等が知られ
ている。そのうち、光学的情報記録媒体の形態として
は、ディスク状、カード状、テープ状等各種のものが知
られている。このような光学的情報記録媒体のうちで、
カード状の光学的情報記録媒体(以下、光カードと称す
る)は、小型軽量で持ち運びに便利な比較的大容量の情
報記録媒体として大きな需要が見込まれている。情報記
録媒体はその媒体の特性により、消去書換の可能なもの
と、不可能なものがあるが、光カードは消去書換が不可
能なものが一般的で、医療分野等書換ができないことが
利点となる分野での応用が期待されている。
On the other hand, conventionally known information recording media include a floppy disk for recording / reproducing by using magnetism, an optical information recording medium for recording / reproducing by using light, and the like. Among them, various types of optical information recording media are known, such as a disc shape, a card shape, and a tape shape. Among such optical information recording media,
A card-shaped optical information recording medium (hereinafter referred to as an optical card) is expected to be in great demand as a compact and lightweight information recording medium having a relatively large capacity which is convenient to carry. Information recording media are erasable and rewritable depending on the characteristics of the media, but optical cards are generally erasable and non-erasable, which is an advantage that rewriting is not possible in the medical field. It is expected to be applied in the following fields.

【0006】これらの情報記録媒体には、大容量のデー
タを格納するためにデータをブロックごとに管理する補
助データ、いわゆるディレクトリが用いられている。デ
ィレクトリとしては、通常、そのディレクトリが管理す
るファイル名、ファイル長(容量)、作成日時、属性、
先頭データトラック(あるいはセクタ)番号等のファイ
ル情報からなっており、これを記録媒体の一部に書き込
んでデータ部のファイル管理を行っている。以上のよう
な光カード、特に消去書換が不可能な追記式光カード
は、寸法がクレジットカード程度の大きさであっても大
容量の記録容量を持っており、その大容量の情報を管理
するためには、ディレクトリによる情報の管理手法が必
要となってくる。
In these information recording media, auxiliary data for managing data in blocks for storing a large amount of data, so-called directories are used. As a directory, the file name, file length (capacity), creation date and time, attributes, etc.
It is composed of file information such as the head data track (or sector) number, and is written in a part of the recording medium for file management of the data section. The optical cards described above, especially the write-once optical cards that cannot be erased and rewritten, have a large recording capacity even if they are the size of a credit card, and manage a large amount of information. In order to do so, a method of managing information using a directory is needed.

【0007】図11は光カードにおけるデータとディレ
クトリの記録方法の一例を示した概略平面図である。光
カード1はデータ記録領域10とディレクトリ記録領域
20とを有している。データ記録領域10には複数のデ
ータが101 、102 、…、10n というように記録さ
れる。一方、ディレクトリ記録領域20には、複数のデ
ータの管理を行うための複数のディレクトリが、セクタ
201 、202 、…、20n というように記録される。
データはデータ記録領域10の未記録部に、既に記録さ
れたデータに引き続いてE方向に順次追加記録される。
一方、ディレクトリは、ディレクトリ記録領域20の未
記録部に、既に記録されたディレクトリに引き続いてD
方向に順次追加記録される。一連のデータはひとまとめ
にしてファイルとして取り扱われ、各々のファイルに対
してディレクトリが付与される。なお、図11では一例
として、データは1セクタ/トラックのセクタタイプ
が、ディレクトリは4セクタ/トラックのセクタが使用
されるものとしているが、この限りではない。
FIG. 11 is a schematic plan view showing an example of a data and directory recording method in an optical card. The optical card 1 has a data recording area 10 and a directory recording area 20. A plurality of data are recorded in the data recording area 10 as 10 1 , 10 2 , ..., 10 n . On the other hand, in the directory recording area 20, a plurality of directories for managing a plurality of data are recorded as sectors 20 1 , 20 2 , ..., 20 n .
The data is sequentially additionally recorded in the E direction in the unrecorded portion of the data recording area 10, following the already recorded data.
On the other hand, the directory is D in the unrecorded portion of the directory recording area 20 after the already recorded directory.
It is additionally recorded in the direction. A series of data are collectively handled as a file, and a directory is added to each file. Note that, in FIG. 11, as an example, the sector type of 1 sector / track is used for data and the sector of 4 sectors / track is used for the directory, but the present invention is not limited to this.

【0008】このようにデータとディレクトリを互いに
トラック並び方向の反対方向から記録することにより、
記録容量を有効に活用することができる。即ち、データ
の記録に使用されるトラック数とディレクトリの記録に
使用されるトラック数の間には一般的な関係はない。例
えば、大きなファイルを記録する場合には、データ記録
に使用するトラック数が多く、ディレクトリ記録に使用
されるトラック数が少ないと考えられるし、逆に小さな
データを多数記録する場合には、ディレクトリ記録に使
用されるトラックの方が多い場合も考えられる。
By thus recording the data and the directory from the opposite directions of the track arrangement direction,
The recording capacity can be effectively utilized. That is, there is no general relationship between the number of tracks used to record data and the number of tracks used to record a directory. For example, when recording a large file, it is considered that the number of tracks used for data recording is large and the number of tracks used for directory recording is small. Conversely, when recording a large number of small data, the directory recording is used. It is possible that more trucks will be used for.

【0009】そこで、予めディレクトリ記録用にn本
(例えば、トラック0〜トラック499までの500
本)、データ記録用にm本(例えば、トラック500〜
トラック2499までの2000本)とそれぞれの記録
領域を割り当て、トラック並び方向の同方向から使用す
ると、一方の領域が一杯になった時点で、たとえ他方の
領域に空きがあっても、その光カードはそれ以上情報を
記録できないことになり、記録容量を有効に活用するこ
とができない。これに対し、図11に示したようにデー
タとディレクトリを互いにトラックの並び方向の逆方向
から記録すると、両領域の間に未記録領域がなくなるま
で、即ち物理的に記録領域がなくなるまで、光カードの
記録領域を使用可能であり、記録容量を有効に利用でき
る。
Therefore, n (for example, 500 tracks from track 0 to track 499) are previously recorded for directory recording.
M) for data recording (for example, tracks 500 to
(2000 tracks up to 2499 tracks) and their respective recording areas are allocated and used from the same direction in the track arrangement direction, when one area becomes full, even if the other area has a vacancy, the optical card Will not be able to record any more information and will not be able to utilize the recording capacity effectively. On the other hand, if the data and the directory are recorded from the opposite directions of the track arrangement direction as shown in FIG. 11, optical recording is performed until there is no unrecorded area between the two areas, that is, until there is no physically recorded area. The recording area of the card can be used, and the recording capacity can be effectively used.

【0010】光カードは消去書換が不可能なものが一般
的であるため、例えば通常数十バイトであるディレクト
リ情報等を1トラックのデータ容量が512バイトや1
024バイトの光カードに記録したのでは、1トラック
の残りの部分は無駄になり、データ容量を有効に使用で
きないことになる。そこで、光カードでは1トラック上
に複数のセクタを記録可能となっているものもある。と
ころが、SCSIシステムでは、前述の論理ブロックア
ドレスを用いて記録、再生するときに、論理ブロックは
同一の大きさ(容量)として扱う規定であるので、上記
の光カードのようにセクタ当たりのデータ容量(セクタ
サイズ)の異なるセクタを混在使用することはできなか
った。
Since optical cards are generally incapable of erasing and rewriting, the data capacity of one track of directory information, which is usually several tens of bytes, is 512 bytes or 1, for example.
If recorded on an optical card of 024 bytes, the remaining part of one track is wasted and the data capacity cannot be used effectively. Therefore, some optical cards can record a plurality of sectors on one track. However, in the SCSI system, when recording and reproducing using the above-mentioned logical block address, the logical blocks are treated as the same size (capacity), so that the data capacity per sector is the same as in the above optical card. Sectors with different (sector size) could not be used together.

【0011】そこで、本願出願人は、この問題を解決し
た情報記録再生方式を特開平5−27915号公報で公
開している。即ち、SCSIを介してホストコンピュー
タからの指令に基づいて、情報記録媒体に所定の情報を
記録再生する情報記録再生方式において、情報記録媒体
を複数の論理的なパーティションに分割し、各パーティ
ション中で使用するセクタサイズを指令する命令と、記
録、再生の対象となるパーティションを指令する命令
を、上記SCSIを介して上記ホストコンピュータから
転送することを特徴とする情報記録再生方式である。こ
の情報記録再生方式を用いることにより、SCSIシス
テム中で、同一情報記録媒体上で論理ブロックサイズの
異なる複数のセクタタイプの混用が可能となる。
Therefore, the applicant of the present application has disclosed an information recording / reproducing system which solves this problem in Japanese Patent Laid-Open No. 5-27915. That is, in an information recording / reproducing system in which predetermined information is recorded / reproduced on / from an information recording medium based on a command from a host computer via SCSI, the information recording medium is divided into a plurality of logical partitions, and It is an information recording / reproducing system characterized in that a command for instructing a sector size to be used and a command for instructing a partition to be recorded / reproduced are transferred from the host computer via the SCSI. By using this information recording / reproducing system, a plurality of sector types having different logical block sizes can be mixed on the same information recording medium in the SCSI system.

【0012】[0012]

【発明が解決しようとする課題】ところで、今、上記従
来の情報記録再生方式により、1枚の光カードに2つの
パーティションを設定し、図11に示したように一方の
パーティションの上方からデータを、他方のパーティシ
ョンの下方からディレクトリを、それぞれ互いにトラッ
ク並び方向の逆方向から記録する場合を考える。この情
報記録再生方式で設定するパーティションはあくまで論
理的なものであるから、必要があれば後から再設定する
ことも可能である。従って、光カードの使用状態に合わ
せて、パーティションの大きさを再設定することによ
り、それぞれのパーティションの大きさを変えていけ
ば、データとディレクトリの間に未記録トラックがなく
なるまで光カードに情報を記録することが可能である。
ところが、データとディレクトリを互いにトラック並び
方向の逆方向から記録することにより、以下に示すよう
な問題が生じる。
Now, according to the above-mentioned conventional information recording / reproducing system, two partitions are set on one optical card, and data is read from above one partition as shown in FIG. Consider a case in which directories are recorded from the lower side of the other partition, respectively, in the opposite directions of the track arrangement direction. Since the partition set by this information recording / reproducing system is a logical one, it is possible to reset it later if necessary. Therefore, if the size of each partition is changed by resetting the partition size according to the usage condition of the optical card, information will be written to the optical card until there are no unrecorded tracks between the data and the directory. Can be recorded.
However, recording the data and the directory in the opposite directions of the track arrangement direction causes the following problems.

【0013】図9にハードディスクの例を示したよう
に、ハードディスク、光ディスク、光カードといったラ
ンダムアクセスの可能な情報記録再生装置では、セク
タ、トラックと云った物理的な構造、即ち、物理アドレ
スと論理ブロックアドレスとの関係は、情報記録単位の
先頭または終端を論理ブロックアドレス=0として、最
も小さな記録単位(一般にセクタ)が1つ増加(または
減少)する毎に論理ブロックアドレスを増加させてい
る。そして、最も小さな記録単位が最大値(または最小
値)になると、次の記録単位(通常トラック)を増加
(または減少)させた上で最も小さな記録単位の増加
(または減少)に従って論理ブロックアドレスを増加さ
せると云うのが一般的である。そのため、1個以上複数
個のセクタを含む複数のトラックからなる光カードにお
いては、大きく見た場合には(同一トラック中でのセク
タと論理ブロックアドレスとの関係を無視すれば)、ト
ラック番号の増加方向あるいは減少方向に論理ブロック
アドレスの増加方向が対応することになる。従って、デ
ータとディレクトリを互いにトラック並び方向の逆方向
から記録した場合には、データ、ディレクトリの一方の
記録方向が論理ブロックアドレスの増加方向と一致し、
他方は一致しないことになる。
As shown in the example of the hard disk in FIG. 9, in a random access information recording / reproducing apparatus such as a hard disk, an optical disk, an optical card, a physical structure such as a sector or a track, that is, a physical address and a logical address. Regarding the relationship with the block address, the logical block address = 0 at the beginning or end of the information recording unit, and the logical block address is increased each time the smallest recording unit (generally a sector) is increased (or decreased) by one. When the smallest recording unit reaches the maximum value (or the smallest value), the next recording unit (normal track) is increased (or decreased) and the logical block address is increased (or decreased) according to the smallest recording unit. It is generally said to increase. Therefore, in an optical card consisting of a plurality of tracks including one or more sectors, if viewed largely (ignoring the relationship between the sector and the logical block address in the same track), the track number The increasing direction of the logical block address corresponds to the increasing direction or the decreasing direction. Therefore, when the data and the directory are recorded from the opposite directions of the track arrangement direction, one recording direction of the data and the directory coincides with the increasing direction of the logical block address,
The other will not match.

【0014】ところで、前述のようにSCSIのリード
コマンド及びライトコマンドは、そのCDB中のLogica
l Block Address で示される論理ブロックアドレスから
Transfer Length で示される個数の連続した論理ブロッ
クに対する処理を1回のコマンドで発行できるように構
成されている。しかし、この時、連続した論理ブロック
アドレスはアドレスの増加方向にとられるのが一般的で
あり、論理ブロックアドレスの減少方向に連続する論理
ブロックを記録あるいは再生する場合は、論理ブロック
個数のライト/リードコマンドを発行する必要がある。
従って、例えばデータの記録方向が論理ブロックのアド
レスの増加方向と一致している場合は、1回のライト/
リードコマンドで複数の論理ブロックにわたるデータを
記録/再生することができる。
By the way, as described above, the SCSI read command and write command are executed by the Logica in the CDB.
From the logical block address indicated by l Block Address
It is configured such that the processing for the number of consecutive logical blocks indicated by Transfer Length can be issued by one command. However, at this time, it is general that consecutive logical block addresses are taken in the direction of increasing addresses, and when recording or reproducing consecutive logical blocks in the direction of decreasing logical block addresses, write / write of the number of logical blocks is performed. It is necessary to issue a read command.
Therefore, for example, if the data recording direction matches the logical block address increasing direction, one write / write operation is performed.
Data can be recorded / reproduced over a plurality of logical blocks by a read command.

【0015】しかし、この反面、ディレクトリの記録方
向は論理ブロックアドレスの増加方向とは逆になるの
で、光カード上の全ディレクトリを読むためには、記録
されているディレクトリの個数回リードコマンドを発行
する必要があり、記録されているディレクトリ数が多い
場合には、コマンド発行に要する時間が無視できなくな
り、処理速度の低下を招く。逆に、ディレクトリの記録
方向が論理ブロックのアドレスの増加方向と一致してい
る場合は、1回のリードコマンドで光カード上の全ディ
レクトリを読むことができるが、データの記録方向は論
理ブロックのアドレスの増加方向と逆であるから、複数
の論理ブロックにわたるデータを記録/再生する場合に
は、記録する論理ブロック数回ライト/リードコマンド
を発行する必要がある。そのため、複数の論理ブロック
にわたる大きなファイルデータを一度に記録/再生する
場合は、やはりコマンドの発行に要する時間が無視でき
ず、処理速度の低下が問題となる。即ち、従来の情報記
録再生方式をデータとディレクトリを互いにトラックの
並び方向の逆方向から記録するような光カードに適用し
た場合には、処理速度が低下すると云う問題点があっ
た。
On the other hand, however, since the recording direction of the directory is opposite to the increasing direction of the logical block address, in order to read all the directories on the optical card, the read command is issued several times for the recorded directories. If the number of recorded directories is large, the time required to issue the command cannot be ignored and the processing speed decreases. Conversely, if the recording direction of the directory matches the increasing direction of the address of the logical block, all the directories on the optical card can be read by one read command, but the recording direction of the data is Since this is the reverse of the address increasing direction, when recording / reproducing data over a plurality of logical blocks, it is necessary to issue a write / read command several times for recording the logical blocks. Therefore, when recording / reproducing large file data over a plurality of logical blocks at one time, the time required to issue the command cannot be ignored and the processing speed becomes a problem. That is, when the conventional information recording / reproducing system is applied to an optical card in which data and a directory are recorded from the opposite directions of the track arrangement direction, there is a problem that the processing speed is reduced.

【0016】本発明は、上記従来の問題点に鑑み、ライ
ト/リードコマンドを1度発行するだけで複数の論理ブ
ロックの記録/再生が行え、処理速度の低下を招くこと
なく記録/再生が可能な情報記録再生方法を提供するこ
とを目的としたものである。
In view of the above conventional problems, the present invention can record / reproduce a plurality of logical blocks by only issuing a write / read command once, and recording / reproduction can be performed without lowering the processing speed. The present invention aims to provide a new information recording / reproducing method.

【0017】[0017]

【課題を解決するための手段】本発明の目的は、SCS
Iを介したホストコンピュータからの指令に基づいて情
報記録媒体に所定の情報を論理ブロックアドレス単位で
記録または再生すると共に、前記情報記録媒体を複数の
論理的なパーティションに分割し、各パーティション中
で使用するセクタサイズを指定する命令と、記録または
再生の対象となるパーティションを指定する命令を、前
記SCSIを介して前記ホストコンピュータから転送す
る情報記録再生方法において、前記情報記録媒体を複数
の論理的なパーティションに分割する命令のパラメータ
中に、論理ブロックアドレスの増加方向と物理的な記録
位置の配列方向との関係を指定するための情報を含むこ
とを特徴とする情報記録再生方法によって達成される。
SUMMARY OF THE INVENTION An object of the present invention is to provide an SCS.
Based on a command from the host computer via I, predetermined information is recorded or reproduced on an information recording medium in logical block address units, and the information recording medium is divided into a plurality of logical partitions. In an information recording / reproducing method of transferring an instruction to specify a sector size to be used and an instruction to specify a partition to be recorded or reproduced from the host computer via the SCSI, the information recording medium is divided into a plurality of logical areas. This is achieved by an information recording / reproducing method, characterized in that the parameter of the instruction for dividing into different partitions includes information for specifying the relationship between the increasing direction of the logical block address and the arrangement direction of the physical recording positions. .

【0018】また、本発明の目的は、SCSIを介した
ホストコンピュータからの指令に基づいて情報記録媒体
に所定の情報を論理ブロックアドレス単位で記録または
再生する情報記録再生方法において、前記情報記録媒体
を複数の論理的なパーティションに分割し、各パーティ
ション中で使用するセクタサイズを指定する命令と、記
録、再生の対象となるパーティションを指定する命令
と、記録、再生の対象となる先頭の論理ブロックアドレ
ス、論理ブロックの連続数及び論理ブロックアドレスの
増加/減少方向を指定する記録、再生命令とを、前記S
CSIを介して前記ホストコンピュータから転送するこ
とを特徴とする情報記録再生方法によって達成される。
Another object of the present invention is an information recording / reproducing method for recording or reproducing predetermined information in logical block address units on an information recording medium based on a command from a host computer via SCSI. Is divided into multiple logical partitions, and the instruction to specify the sector size to be used in each partition, the instruction to specify the partition to be recorded or played back, and the first logical block to be recorded or played back. The address, the number of consecutive logical blocks, and the recording / reproducing command for designating the increasing / decreasing direction of the logical block address
This is achieved by an information recording / reproducing method characterized by transferring from the host computer via CSI.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施例について図
面を参照して詳細に説明する。まず、図5は本発明の情
報記録再生方法で使用する光カードの一例を示した図で
ある。図5において、光カード1上には複数のトラッキ
ングトラック2が平行に設けられ、そのトラッキングト
ラック2の間に情報を記録するためのデータトラック3
がそれぞれ設けられている。データトラック3の両端に
は、データトラック3の物理的な位置を示す物理トラッ
ク番号4が予めプリフォーマットされている。また、デ
ータトラック3上には1トラック当たり4つのセクタ3
1、32、33、34が配置されている。物理トラック
番号4は、光カード1の下端側が番号0で上端側に行く
に従って番号が増加し、最上端で2499である。ま
た、物理的なセクタ番号はカード最左端のセクタがセク
タ0であり、右側に行くに従ってセクタ番号が増加す
る。光カード1上のセクタはSCSIの論理ブロックに
対応している。なお、前述のように光カードではセクタ
サイズの異なる複数のセクタタイプをサポートできるこ
とが一般的であり、1トラック上に配置されるセクタ数
は図5で示したように4個とは限らない。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below in detail with reference to the drawings. First, FIG. 5 is a diagram showing an example of an optical card used in the information recording / reproducing method of the present invention. In FIG. 5, a plurality of tracking tracks 2 are provided in parallel on an optical card 1, and a data track 3 for recording information between the tracking tracks 2.
Are provided respectively. At both ends of the data track 3, a physical track number 4 indicating the physical position of the data track 3 is pre-formatted in advance. Also, on the data track 3, four sectors 3 are provided per track.
1, 32, 33, 34 are arranged. The physical track number 4 is number 0 on the lower end side of the optical card 1 and increases as it goes to the upper end side, and is 2499 at the uppermost end. The physical sector number is the sector 0 at the leftmost sector of the card, and the sector number increases toward the right side. The sectors on the optical card 1 correspond to SCSI logical blocks. As described above, the optical card is generally capable of supporting a plurality of sector types having different sector sizes, and the number of sectors arranged on one track is not limited to four as shown in FIG.

【0020】図2は本実施例における情報記録媒体を複
数の論理的なパーティションに分割し、各パーティショ
ン中で使用するセクタサイズを指定する命令(パーティ
ション・コマンド)のCDBの構成例を示す図である。
バイト0のOperation Codeはコマンドのコード番号を示
し、本構成例ではグループ6のベンダユニークなコマン
ドとしてC3H(Hは16進数を示す)が与えられてい
る。バイト1のビット7から5のLogical Unit Number
としては、対象とするデバイスの論理ユニット番号が与
えられる。バイト3とバイト4には図1に示すパラメー
タの長さが与えられる。このパラメータの長さは分割す
るパーティション数により異なる。バイト1のビット4
から0、バイト2、バイト5は全て0にセットされる。
FIG. 2 is a diagram showing an example of the structure of the CDB of an instruction (partition command) that specifies the sector size to be used in each partition by dividing the information recording medium in this embodiment into a plurality of logical partitions. is there.
The Operation Code of byte 0 indicates the code number of the command, and in this configuration example, C3H (H indicates hexadecimal number) is given as the vendor unique command of group 6. Logical Unit Number from bits 7 to 5 of byte 1
Is given as the logical unit number of the target device. Byte 3 and byte 4 are given the length of the parameter shown in FIG. The length of this parameter depends on the number of partitions. Bit 4 of byte 1
To 0, byte 2, and byte 5 are all set to 0.

【0021】図1はパーティション・コマンドでホスト
コンピュータから転送されるパラメータ(パーティショ
ン・パラメータ)の構成例を示す図である。図1の構成
例では、パーティション中で使用するセクタサイズのみ
ならず、ECC(エラー訂正コード)付きで記録するか
否か、また、パーティションの論理ブロックアドレスの
増加方向をトラック番号の増加方向と一致させるか否か
を指定できるように構成されている。
FIG. 1 is a diagram showing a configuration example of parameters (partition parameters) transferred from a host computer by a partition command. In the configuration example of FIG. 1, not only the sector size used in the partition but also whether or not to record with ECC (error correction code), and the increasing direction of the logical block address of the partition coincides with the increasing direction of the track number. It is configured to be able to specify whether or not to allow it.

【0022】図1の構成例において、バイト0のNumber
of Partition は分割するパーティション数を示す。こ
のバイトは本パラメータ中に1度のみ指定される。バイ
ト1のPartition Numberはパーティション番号を示す。
本構成例では、番号は0から始まり連続していなければ
ならない。また、パーティション0は最もトラック番号
の小さいトラックを使用するパーティション(図5の例
では、光カードの最下端のパーティション)である。バ
イト2とバイト3のFirst Physical Track Addressは、
そのパーティションの先頭物理トラック番号を示し、1
つ前のパーティションの最終物理トラック番号+1でな
ければならない。バイト4とバイト5のNumber of Phys
ical Trackは、そのパーティションに属する物理トラッ
ク数を示す。バイト6のSector Type は、表1に示すセ
クタータイプ番号をASCII コード(30H 〜37H )で指定
する。
In the configuration example of FIG. 1, Number of byte 0
of Partition indicates the number of partitions to be divided. This byte is specified only once in this parameter. The Partition Number in byte 1 indicates the partition number.
In this configuration example, the numbers must start from 0 and be continuous. The partition 0 is a partition that uses the track with the smallest track number (in the example of FIG. 5, the partition at the bottom of the optical card). First Physical Track Address of byte 2 and byte 3,
Indicates the first physical track number of the partition, 1
It must be the last physical track number of the previous partition + 1. Number of Phys in bytes 4 and 5
ical Track indicates the number of physical tracks belonging to the partition. For the Sector Type of byte 6, specify the sector type number shown in Table 1 with ASCII code (30H to 37H).

【0023】[0023]

【表1】 バイト7のビット7のdir (direction )は、パーティ
ションの論理ブロックアドレスの増加方向をトラック番
号の増加方向と一致させるか否かを指定するもので、
“0”で論理ブロックアドレスの増加方向とトラック番
号の増加方向が同一になり、“1”場合には逆になる。
バイト7とビット6〜ビット0のECC ModeはECC付き
で記録するか否かを指定するもので、“0”でECC無
し記録を、“1”でECC付き記録を示す。
[Table 1] Dir (direction) of bit 7 of byte 7 specifies whether to increase the logical block address of the partition in the same direction as the track number.
In the case of "0", the increasing direction of the logical block address and the increasing direction of the track number are the same, and in the case of "1", they are opposite.
Byte 7 and ECC mode of bit 6 to bit 0 specify whether or not to record with ECC. “0” indicates recording without ECC, and “1” indicates recording with ECC.

【0024】また、上記において、バイト1からバイト
7は分割するパーティション数分指定され、バイト8以
降には次のパーティションについてのバイト1からバイ
ト7に相当する情報が指定される。なお、上記パラメー
タの指定において、1つのパーティション内には、必ず
1本以上の物理トラックが存在するように指定しなけれ
ばならない。また、どのパーティションにも属さない物
理トラックがあるような指定や、1本の物理トラックが
複数のパーティションに属するような指定をしてはなら
ない。
In the above description, bytes 1 to 7 are designated by the number of partitions to be divided, and bytes 8 onward are designated by information corresponding to bytes 1 to 7 for the next partition. In the specification of the above parameters, it is necessary to specify that one partition always has one or more physical tracks. Further, it is not allowed to specify that there is a physical track that does not belong to any partition or that one physical track belongs to a plurality of partitions.

【0025】例えば、光カード1を2つのパーティショ
ンに分割し、パーティション1はセクタタイプ1でデー
タ記録用に、パーティション0はセクタタイプ6でディ
レクトリ記録用に共にECC付きで使用し、かつ、その
記録方向を図11のようにデータは光カード上端から、
ディレクトリは光カード下端側からにしたい場合は、各
値は表2のようになり、パーティション・パラメータ
は、02H、00H、00H、00H、01H、F4
H、36H、01H、01H、01H、F4H、07
H、D0H、30H、81Hとなる。
For example, the optical card 1 is divided into two partitions, partition 1 is used for data recording with sector type 1, partition 0 is used with sector type 6 for directory recording, and is used with ECC. As shown in Fig. 11, data is sent from the top of the optical card,
If you want to make the directory from the bottom of the optical card, the values are as shown in Table 2, and the partition parameters are 02H, 00H, 00H, 00H, 01H, F4.
H, 36H, 01H, 01H, 01H, F4H, 07
H, D0H, 30H, 81H.

【0026】[0026]

【表2】 図3は本実施例における記録、再生に使用するパーティ
ションを指定する(SAP:Select Active Partition
)命令のCDBの構成例を示す図である。バイト0のO
peration Codeはコマンドのコード番号を示し、本構成
例ではグループ6のベンダユニークなコマンドとしてC
5Hが与えられている。バイト1のビット7から5のLo
gical Unit Number としては、対象とするデバイスの論
理ユニット番号が与えられる。バイト4には記録、再生
に使用するパーティション(アクティブ・パーティショ
ン)の番号が与えられる。バイト1のビット4から0、
バイト2、バイト3、バイト5は全て0にセットされ
る。
[Table 2] FIG. 3 specifies a partition used for recording and reproduction in this embodiment (SAP: Select Active Partition
) Is a diagram showing a configuration example of a CDB of an instruction. Byte 0 O
The peration Code indicates the code number of the command, and in this configuration example, it is C as a vendor unique command for group 6.
5H is given. Byte 1 bits 7 to 5 Lo
The logical unit number of the target device is given as the gical Unit Number. Byte 4 is given the number of the partition (active partition) used for recording and reproduction. Bits 4 to 0 of byte 1,
Byte 2, byte 3, and byte 5 are all set to 0.

【0027】図4は本発明の情報記録再生方法に係るS
CSIシステムの構成例を示したブロック図である。図
4において、5はSCSIコントローラである。SCS
Iコントローラ5は、SCSI規格に基づきSCSI信
号のシーケンス制御を行うSCSIプロトコル回路(S
PC)6、ROM7に記憶されているプログラムに従い
SCSIコントローラ5を制御する制御装置であるMP
U8、バッファメモリ等に使用されるRAM9で構成さ
れている。SCSIコントローラ5には情報記録再生装
置10が接続されており、情報記録再生装置10中には
不図示の光カード1が挿入されている。
FIG. 4 shows S related to the information recording / reproducing method of the present invention.
It is a block diagram showing an example of composition of a CSI system. In FIG. 4, 5 is a SCSI controller. SCS
The I controller 5 is a SCSI protocol circuit (S that performs sequence control of SCSI signals based on the SCSI standard).
PC) 6, MP which is a control device for controlling the SCSI controller 5 according to a program stored in the ROM 7.
It is composed of U8 and a RAM 9 used as a buffer memory and the like. An information recording / reproducing apparatus 10 is connected to the SCSI controller 5, and an optical card 1 (not shown) is inserted in the information recording / reproducing apparatus 10.

【0028】ホストコンピュータ12からパーティショ
ン・コマンドが与えられるまでは、SCSIコントロー
ラ5は、情報記録再生装置10中に挿入されている光カ
ード1はカード全面が1つのパーティションであり、セ
クタタイプはタイプ1で、論理ブロックアドレスの増加
方向はトラック番号の増加方向と同一方向に、ECC付
きで記録がなされるものと解釈して光カード1に対する
記録、再生等の命令を実行する。この場合、記録、再生
コマンド(SCSIコマンドではWrite 、Readの各コマ
ンド)のCDB中で指定される論理ブロックアドレス
は、カード最下端のデータトラックがアドレス=0とな
り、上端のデータトラックに行くに従ってアドレス番号
が増加する。
Until the partition command is given from the host computer 12, the SCSI controller 5 has the optical card 1 inserted in the information recording / reproducing apparatus 10 in which the entire surface of the card is one partition and the sector type is type 1. Then, the logical block address is increased in the same direction as the track number is increased, and it is interpreted that the recording is performed with ECC, and the command such as recording and reproducing is executed to the optical card 1. In this case, the logical block address specified in the CDB of the recording / reproducing command (the Write command and the Read command in the SCSI command) is 0 at the data track at the bottom end of the card, and the address is increased as the data track at the top end is reached. The number increases.

【0029】次に、パーティション・コマンドが与えら
れた場合について説明する。今、SCSIコントローラ
5がホストコンピュータ12にセレクションされたとす
る。このとき、セレクションされたことにより、SPC
6からMPU8にインタラプト11が発せられる。MP
U8はSPC6を制御してSCSIバスのフェーズをコ
マンド・フェーズに移行してコマンドを受け取る。今、
受け取ったコマンドがC3Hのパーティション・コマン
ドであったとする。この場合、MPU8はSPC6を制
御してデータ・アウト・フェーズに移行して図2に示し
たパラメータを受信し、RAM9上に各パーティション
の情報を記憶する。この時受信したパラメータは前記例
で説明したものとする。このパラメータの転送が終了し
た後、ステータス・フェーズ、メッセージ・イン・フェ
ーズを経て、パーティション・コマンドに対する処理を
終了する。
Next, the case where the partition command is given will be described. Now, it is assumed that the SCSI controller 5 is selected by the host computer 12. At this time, due to selection, SPC
An interrupt 11 is issued from 6 to the MPU 8. MP
U8 controls SPC6 to shift the phase of the SCSI bus to the command phase and receive the command. now,
It is assumed that the received command is a C3H partition command. In this case, the MPU 8 controls the SPC 6 to shift to the data out phase to receive the parameters shown in FIG. 2 and store the information of each partition on the RAM 9. The parameters received at this time are as described in the above example. After the transfer of this parameter is completed, the processing for the partition command is completed through the status phase and the message in phase.

【0030】これにより、SCSIコントローラ5は、
情報記録再生装置10中に挿入されている光カード1
は、パラメータで指定された2つのパーティションに分
割されており、各パーティションは同様にパラメータで
指定されたセクタタイプ、ECCモードで記録がなさ
れ、かつ、パラメータで指定された方向に論理ブロック
アドレスの増加方向が設定されているものと解釈する。
しかし、まだ使用するパーティションが指定されていな
いので、記録、再生に使用するパーティションはパーテ
ィション0であると解釈して、光カード1に対する記
録、再生等の命令を実行する。
As a result, the SCSI controller 5
Optical card 1 inserted in the information recording / reproducing apparatus 10
Are divided into two partitions specified by the parameters, and each partition is also recorded in the sector type specified by the parameters and ECC mode, and the logical block address increases in the direction specified by the parameters. Interpret that the direction is set.
However, since the partition to be used is not specified yet, the partition used for recording and reproducing is interpreted as partition 0, and the command for recording and reproducing to the optical card 1 is executed.

【0031】一方、SAPコマンド(C5H)が与えら
れた場合は、そのCDB中のバイト4でアクティブ・パ
ーティションが指定される。今、パーティション1がア
クティブ・パーティションとして指定されたものとす
る。MPU8はRAM9上に記憶されているパーティシ
ョン情報を基に、以降、次にSAPコマンドが与えられ
るまでは、記録、再生命令はパーティション1に対する
ものと解釈して、記録、再生命令を実行する。即ち、デ
ータ転送フェーズ(データ・イン・フェーズ、データ・
アウト・フェーズ)で転送するバイト数をパーティショ
ン・コマンドのパラメータで指定されたセクタタイプ、
ECCモードを基に決定し、かつ、パラメータで指定さ
れた方向に論理ブロックアドレスの増加方向が設定され
ているものと解釈して、必要なSCSIコントローラ内
部の動作パラメータを設定する。
On the other hand, when the SAP command (C5H) is given, byte 4 in the CDB specifies the active partition. Now, assume that partition 1 is designated as the active partition. Based on the partition information stored in the RAM 9, the MPU 8 subsequently interprets the recording / playback command as for the partition 1 and executes the recording / playback command until the next SAP command is given. That is, the data transfer phase (data in phase, data
The number of bytes to be transferred in the (out phase), the sector type specified by the parameter of the partition command,
It is determined based on the ECC mode, and it is interpreted that the increasing direction of the logical block address is set in the direction designated by the parameter, and the necessary operation parameter inside the SCSI controller is set.

【0032】SCSIコントローラ5は、ライト/リー
ドコマンドで指定された論理ブロックアドレスを、その
時点でアクティブとなっているパーティション(SAP
コマンド受信前はパーティション0、SAPコマンド受
信後はSAPコマンドで指定されたパーティション)に
対するパラメータ中のdirの値により、以下のように
物理トラック番号、セクタ番号に変換して情報記録再生
装置10中に挿入されている光カード1に情報の記録、
再生を行う。なお、物理トラック番号、セクタ番号は0
から始まり、物理トラック番号は光カード下端から上方
向に、セクタ番号は光カード右端から左方向に、それぞ
れ増加するものとし、同一トラック中での論理ブロック
アドレスはセクタ番号の増加方向と同一とする。 (1)dir=0の時 Tr#=Tf+int(LBA/M) ・・・(1) Sct#=MOD(LBA/M) ・・・(2) (2)dir=1の時 Tr#=(Tf+N−1)−int(LBA/M) ・・・(3) Sct#=MOD(LBA/M) ・・・(4) 但し、Tr#:物理トラック番号、Sct#:セクタ番
号、Tf:そのパーティションの先頭物理トラック番
号、N:そのパーティション中の物理トラック数、M:
そのセクタタイプでの1トラック当たりのセクタ数、L
BA:論理ブロックアドレス、int():カッコ内の
整数部を求める関数、MOD():カッコ内の計算の剰
余を求める関数である。
The SCSI controller 5 sends the logical block address specified by the write / read command to the partition (SAP
It is converted into a physical track number and a sector number according to the value of dir in the parameter for the partition 0 before receiving the command and the partition specified by the SAP command after receiving the SAP command) Recording of information on the inserted optical card 1,
Perform playback. The physical track number and sector number are 0.
The physical track number increases from the bottom edge of the optical card, the sector number increases from the right edge of the optical card to the left, and the logical block address in the same track is the same as the sector number increasing direction. . (1) When dir = 0 Tr # = Tf + int (LBA / M) ... (1) Sct # = MOD (LBA / M) (2) (2) When dir = 1 Tr # = ( Tf + N-1) -int (LBA / M) ... (3) Sct # = MOD (LBA / M) ... (4) where Tr #: physical track number, Sct #: sector number, Tf: First physical track number of partition, N: number of physical tracks in the partition, M:
Number of sectors per track for that sector type, L
BA: logical block address, int (): a function for obtaining an integer part in parentheses, and MOD (): a function for obtaining a remainder of calculation in parentheses.

【0033】表2に示したようにパーティション分割し
た場合、パーティション0は物理トラック番号が0のデ
ータトラックから始まり、セクタタイプがタイプ6で1
2セクタ/トラックで、dir=0であるから、Tf=
0、M=12となる。従って論理ブロックアドレス=0
は、 Tr#=0+int(0/12)=0 Sct#=MOD(0/12)=0 となり、物理トラック番号が0のトラックの(光カード
最上端のトラック)セクタ0(カード最左端のセクタ)
に対応する。
When partitioning is performed as shown in Table 2, partition 0 starts from the data track whose physical track number is 0, and the sector type is type 6 and 1
Since 2 sectors / track and dir = 0, Tf =
0 and M = 12. Therefore, logical block address = 0
Is Tr # = 0 + int (0/12) = 0 Sct # = MOD (0/12) = 0, and the physical track number is 0 (the uppermost track of the optical card) sector 0 (the leftmost sector of the card). )
Corresponding to

【0034】同様に論理ブロックアドレス=100のセ
クタは、 Tr#=0+int(100/12)=8 Sct#=MOD(100/12)=4 となる。よって、物理トラック番号が8のデータトラッ
クのセクタ番号4のセクタとなる。
Similarly, for the sector of logical block address = 100, Tr # = 0 + int (100/12) = 8 Sct # = MOD (100/12) = 4. Therefore, the sector of sector number 4 of the data track of physical track number 8 is obtained.

【0035】一方、パーティション1は物理トラック番
号が500(1F4H)のデータトラックから始まり、
トラック本数は2000本で、セクタタイプがタイプ1
で1セクタ/トラックで、dir=1であるから、Tf
=500、M=1となる。従って、論理ブロックアドレ
ス=0は、 Tr#=(500+2000−1)−int(0/1)
=2499 Sct#=MOD(0/1)=0 となり、物理トラック番号が2499上(光カード最上
端のトラック)のセクタに対応する。この場合は、1ト
ラックに1個のセクタしか存在しないので、セクタ番号
は常に0である。
On the other hand, partition 1 starts from a data track whose physical track number is 500 (1F4H),
The number of tracks is 2000 and the sector type is type 1.
Since 1 sector / track and dir = 1, Tf
= 500 and M = 1. Therefore, logical block address = 0 is Tr # = (500 + 2000-1) -int (0/1)
= 2499 Sct # = MOD (0/1) = 0, which corresponds to the sector whose physical track number is 2499 (the uppermost track of the optical card). In this case, since there is only one sector in one track, the sector number is always 0.

【0036】同様に論理ブロックアドレス=100のセ
クタは、 Tr#=(500+2000−1)−int(100/
1)=2399 Sct#=MOD(100/1)=0 となり、物理トラック番号が2399上のセクタとな
る。
Similarly, the sector of logical block address = 100 is Tr # = (500 + 2000-1) -int (100 /
1) = 2399 Sct # = MOD (100/1) = 0, and the sector has a physical track number of 2399.

【0037】本実施例のパーティション・コマンドはあ
くまで論理的なものであり、光カード上にパーティショ
ンの境界等の物理的な記録は一切行っていない。そのた
め、一度設定したパーティション情報を再度パーティシ
ョン・コマンドを使用し変更することが可能である。即
ち、上記の例で用いたように500本と2000本の2
つのパーティションに分割して使用中に、データ用のパ
ーティション1の未使用トラックが少なくなり、ディレ
クトリ用のパーティション0に空きがある場合は、例え
ばパーティション0が300本、パーティション1が2
200本を使用するようにパーティション・コマンドを
用いて新たに定義し直して使用することができる。この
ようにしてデータとディレクトリの間に未記録のトラッ
クが存在しなくなるまで、光カードの記録容量を有効に
使用することができる。
The partition command of this embodiment is only a logical one, and no physical recording such as partition boundaries is made on the optical card. Therefore, it is possible to change the partition information once set by using the partition command again. That is, two of 500 and 2000 as used in the above example.
When the number of unused tracks in the data partition 1 decreases and the directory partition 0 has a free space while being divided into two partitions and used, for example, 300 partitions 0 and 2 partitions 1 are used.
It can be newly redefined and used by using a partition command to use 200 lines. In this way, the recording capacity of the optical card can be effectively used until there is no unrecorded track between the data and the directory.

【0038】なお、実施例で示したパーティション・パ
ラメータでは、最初の物理トラック番号とそのパーティ
ション内に含まれる物理トラック本数でパーティション
の範囲を定義していたが、これは、最初の物理トラック
番号と最後の物理トラック番号で定義しても良い。ま
た、実施例で示したパーティション・パラメータでは、
パーティションの論理ブロックアドレスの増加方向をト
ラック番号の増加方向と一致させるか否かを指定するた
めに、ECCの有無を示すバイトの最上位ビットを使用
したが、これは他のビット位置や、その指定のために他
のバイトを使用しても良い。更に、実施例で用いたセク
タタイプのセクタ当たりのユーザバイト数や1トラック
当たりのセクタ数が一例に過ぎないのは言うまでもな
い。
In the partition parameter shown in the embodiment, the partition range is defined by the first physical track number and the number of physical tracks included in the partition. It may be defined by the last physical track number. Also, with the partition parameters shown in the example,
The uppermost bit of the byte indicating the presence / absence of ECC is used to specify whether the increasing direction of the logical block address of the partition matches the increasing direction of the track number. Other bytes may be used for the designation. Further, it goes without saying that the number of user bytes per sector of the sector type used in the embodiment and the number of sectors per track are merely examples.

【0039】次に、本発明の他の実施例について説明す
る。まず、本実施例においても図5の光カードを用いる
ものとする。また、本実施例における情報記録媒体を複
数の論理的なパーティションに分割し、各パーティショ
ン中で使用するセクタサイズを指定する命令(パーティ
ション・コマンド)のCDBの構成例も図2に示した通
りである。即ち、図2において、バイト0のOperation
Codeはコマンドのコード番号を示し、本構成例ではグル
ープ6のベンダユニークなコマンドとしてC3H(Hは
16進数を示す)が与えられている。バイト1のビット
7から5のLogical Unit Number としては、対象とする
デバイスの論理ユニット番号が与えられる。バイト3と
バイト4には図1に示すパラメータの長さが与えられ
る。このパラメータの長さは分割するパーティション数
により異なる。バイト1のビット4から0、バイト2、
バイト5は全て0にセットされる。
Next, another embodiment of the present invention will be described. First, it is assumed that the optical card of FIG. 5 is used also in this embodiment. In addition, the information recording medium in the present embodiment is divided into a plurality of logical partitions, and the CDB configuration example of the command (partition command) for designating the sector size used in each partition is also as shown in FIG. is there. That is, in FIG. 2, the operation of byte 0
Code indicates a code number of a command, and in this configuration example, C3H (H indicates a hexadecimal number) is given as a vendor unique command of group 6. As the Logical Unit Number of bits 7 to 5 of byte 1, the logical unit number of the target device is given. Byte 3 and byte 4 are given the length of the parameter shown in FIG. The length of this parameter depends on the number of partitions. Byte 1, bits 4 to 0, byte 2,
Byte 5 is set to all 0s.

【0040】また、図6はパーティション・コマンドで
ホストコンピュータから転送されるパラメータ(パーテ
ィション・パラメータ)の構成例を示す図である。図6
の構成例では、パーティション中で使用するセクタサイ
ズのみならず、ECC(エラー訂正コード)付きで記録
するか否かを指定できるように構成されている。
FIG. 6 is a diagram showing a configuration example of parameters (partition parameters) transferred from the host computer by the partition command. FIG.
In the above configuration example, not only the sector size used in the partition but also whether or not to record with an ECC (error correction code) can be specified.

【0041】図6の構成例において、バイト0のNumber
of Partition は分割するパーティション数を示す。こ
のバイトは本パラメータ中に1度のみ指定される。バイ
ト1のPartition Numberはパーティション番号を示す。
本構成例では、番号は0から始まり連続していなければ
ならない。また、パーティション0は最もトラック番号
の小さいトラックを使用するパーティション(図5の例
では光カード最下端のパーティション)である。バイト
2とバイト3のFirst Physical Track Addressはそのパ
ーティションの先頭物理トラック番号を示し、1つ前の
パーティションの最終物理トラック番号+1でなければ
ならない。バイト4とバイト5のNumberof Physical Tr
ackは、そのパーティションに属する物理トラック数を
示す。バイト6のSector Type は、先に表1に示したセ
クタータイプ番号をASCII コード(30H 〜37H )で指定
する。バイト7のECC ModeはECC付きで記録するか否
かを指定するもので、“0”でECC無し記録、“1”
でECC付き記録を示す。また、上記において、バイト
1からバイト7は分割するパーティション数分指定さ
れ、バイト8以降には次のパーティションについてのバ
イト1からバイト7に相当する情報が指定される。な
お、上記パラメータの指定において、1つのパーティシ
ョン内には、必ず1本以上の物理トラックが存在するよ
うに指定しなければならない。また、どのパーティショ
ンにも属さない物理トラックがあるような指定や、1本
の物理トラックが複数のパーティションに属するような
指定をしてはならない。例えば、光カード1を2つのパ
ーティションに分割し、パーティション1はセクタタイ
プ1でデータ記録用に、パーティション0はセクタタイ
プ6でディレクトリ記録用に共にECC付きで使用した
い場合は、各値は表3のようになり、パーティション・
パラメータは、02H、00H、00H、00H、01
H、F4H、36H、01H、01H、01H、F4
H、07H、D0H、30H、01Hとなる。
In the configuration example of FIG. 6, Number of byte 0
of Partition indicates the number of partitions to be divided. This byte is specified only once in this parameter. The Partition Number in byte 1 indicates the partition number.
In this configuration example, the numbers must start from 0 and be continuous. Partition 0 is a partition that uses the track with the smallest track number (the partition at the bottom of the optical card in the example of FIG. 5). The First Physical Track Address of byte 2 and byte 3 indicates the start physical track number of the partition, and must be the last physical track number of the preceding partition + 1. Byte 4 and Byte 5 Number of Physical Tr
ack indicates the number of physical tracks belonging to the partition. For the Sector Type of byte 6, specify the sector type number shown in Table 1 above with an ASCII code (30H to 37H). Byte 7 ECC Mode specifies whether or not to record with ECC. "0" records without ECC, "1"
Shows recording with ECC. In addition, in the above, bytes 1 to 7 are designated by the number of partitions to be divided, and from byte 8 onward, information corresponding to bytes 1 to 7 for the next partition is designated. In the specification of the above parameters, it is necessary to specify that one partition always has one or more physical tracks. Further, it is not allowed to specify that there is a physical track that does not belong to any partition or that one physical track belongs to a plurality of partitions. For example, if the optical card 1 is divided into two partitions, and the partition 1 is sector type 1 for data recording, and the partition 0 is sector type 6 for directory recording and both are used with ECC, the respective values are shown in Table 3. And the partition
The parameters are 02H, 00H, 00H, 00H, 01
H, F4H, 36H, 01H, 01H, 01H, F4
H, 07H, D0H, 30H, 01H.

【0042】[0042]

【表3】 また、本実施例における記録、再生に使用するパーティ
ションを指定する(SAP:Select Active Partition
)命令のCDBの構成例も図に3に示した通りであ
る。即ち、図3において、バイト0のOperation Codeは
コマンドのコード番号を示し、本構成例ではグループ6
のベンダユニークなコマンドとしてC5Hが与えられて
いる。バイト1のビット7から5のLogical Unit Numbe
r としては対象とするデバイスの論理ユニット番号が与
えられる。バイト4には記録、再生に使用するパーティ
ション(アクティブ・パーティション)の番号が与えら
れる。バイト1のビット4から0、バイト2、バイト
3、バイト5は全て0にセットされる。
[Table 3] In addition, a partition used for recording and reproduction in this embodiment is designated (SAP: Select Active Partition
) The configuration example of the CDB of the instruction is also as shown in FIG. That is, in FIG. 3, the operation code of byte 0 indicates the code number of the command, and in this configuration example, the group 6
C5H is given as a vendor unique command. Logical Unit Numbe from bytes 7 to 5 of byte 1
The logical unit number of the target device is given as r. Byte 4 is given the number of the partition (active partition) used for recording and reproduction. Bits 4 to 0 of byte 1, byte 2, byte 3, and byte 5 are all set to 0.

【0043】本実施例の情報記録再生方法に係るSCS
Iシステムの構成例も図4に示した通りである。即ち、
図4において、5はSCSIコントローラであり、SC
SI規格に基づきSCSI信号のシーケンス制御を行う
SCSIプロトコル回路(SPC)6、ROM7に記憶
されているプログラムに従いSCSIコントローラ5を
制御する制御装置であるMPU8、バッファメモリ等に
使用されるRAM9で構成されている。SCSIコント
ローラ5には情報記録再生装置10が接続されており、
情報記録再生装置10中には不図示の光カード1が挿入
されている。
SCS relating to the information recording / reproducing method of the present embodiment
The configuration example of the I system is also as shown in FIG. That is,
In FIG. 4, 5 is a SCSI controller,
It is composed of a SCSI protocol circuit (SPC) 6 that controls the sequence of SCSI signals based on the SI standard, an MPU 8 that is a control device that controls the SCSI controller 5 according to a program stored in the ROM 7, and a RAM 9 that is used as a buffer memory. ing. An information recording / reproducing device 10 is connected to the SCSI controller 5,
An optical card 1 (not shown) is inserted in the information recording / reproducing apparatus 10.

【0044】本実施例においては、ホストコンピュータ
12からパーティション・コマンドが与えられるまで
は、SCSIコントローラ5は、情報記録再生装置10
中に挿入されている光カード1はカード全面が1つのパ
ーティションであり、セクタタイプはタイプ1で、EC
C付きで記録がなされるものと解釈して光カード1に対
する記録、再生等の命令を実行する。この場合、記録、
再生コマンド(SCSIコマンドではWrite 、Readの各
コマンド)のCDB中で指定される論理ブロックアドレ
スは、光カード最下端のデータトラックがアドレス=0
となり、上端のデータトラックに行くに従ってアドレス
番号が増加する。
In this embodiment, the SCSI controller 5 operates until the partition command is given from the host computer 12 to the information recording / reproducing apparatus 10.
The optical card 1 inserted inside has one partition on the entire surface, the sector type is type 1, and the EC type
Interpretation is made such that recording is performed with C, and commands such as recording and reproducing for the optical card 1 are executed. In this case, record,
The logical block address specified in the CDB of the playback command (Write and Read commands in the SCSI command) is 0 for the data track at the bottom of the optical card.
And the address number increases as the data track goes to the upper end.

【0045】次に、パーティション・コマンドが与えら
れた場合について説明する。今、SCSIコントローラ
5がホストコンピュータ12にセレクションされたとす
る。このとき、セレクションされたことにより、SPC
6からMPU8にインタラプト11が発せられる。MP
U8はSPC6を制御してSCSIバスのフェーズをコ
マンド・フェーズに移行してコマンドを受け取る。今、
受け取ったコマンドがC3Hのパーティション・コマン
ドであったとする。この場合、MPU8はSPC6を制
御してデータ・アウト・フェーズに移行して図2に示し
たパラメータを受信し、RAM9上に各パーティション
の情報を記憶する。この時受信したパラメータは前記例
で説明したものとする。このパラメータの転送が終了し
た後、ステータス・フェーズ、メッセージ・イン・フェ
ーズを経て、パーティション・コマンドに対する処理を
終了する。
Next, the case where the partition command is given will be described. Now, it is assumed that the SCSI controller 5 is selected by the host computer 12. At this time, due to selection, SPC
An interrupt 11 is issued from 6 to the MPU 8. MP
U8 controls SPC6 to shift the phase of the SCSI bus to the command phase and receive the command. now,
It is assumed that the received command is a C3H partition command. In this case, the MPU 8 controls the SPC 6 to shift to the data out phase to receive the parameters shown in FIG. 2 and store the information of each partition on the RAM 9. The parameters received at this time are as described in the above example. After the transfer of this parameter is completed, the processing for the partition command is completed through the status phase and the message in phase.

【0046】以上により、SCSIコントローラ5で
は、情報記録再生装置10中に挿入されている光カード
1は、パラメータで指定された2つのパーティションに
分割されており、各パーティションは同様にパラメータ
で指定されたセクタタイプ、ECCモードで記録がなさ
れるものと解釈する。しかし、まだ使用するパーティシ
ョンが指定されていないので、記録、再生に使用するパ
ーティションはパーティション0であると解釈して、光
カード1に対する記録、再生などの命令を実行する。
As described above, in the SCSI controller 5, the optical card 1 inserted in the information recording / reproducing apparatus 10 is divided into two partitions designated by the parameters, and each partition is similarly designated by the parameters. It is understood that recording is performed in the sector type and ECC mode. However, since the partition to be used is not specified yet, it is interpreted that the partition used for recording and reproducing is partition 0, and the command for recording and reproducing to the optical card 1 is executed.

【0047】一方、SAPコマンド(C5H)が与えら
れた場合は、そのCDB中のバイト4でアクティブ・パ
ーティションが指定される。今、パーティション1がア
クティブ・パーティションとして指定されたものとす
る。MPU8はRAM9上に記憶されているパーティシ
ョン情報を基に、以降、次にSAPコマンドが与えられ
るまでは、記録、再生命令はパーティション1に対する
ものと解釈して、記録、再生命令を実行する。即ち、デ
ータ転送フェーズ(データ・イン・フェーズ、データ・
アウト・フェーズ)で転送するバイト数をパーティショ
ン・コマンドのパラメータで指定されたセクタタイプ、
ECCモードを基に決定し、必要なSCSIコントロー
ラ内部の動作パラメータを設定する。
On the other hand, when the SAP command (C5H) is given, byte 4 in the CDB specifies the active partition. Now, assume that partition 1 is designated as the active partition. Based on the partition information stored in the RAM 9, the MPU 8 subsequently interprets the recording / playback command as for the partition 1 and executes the recording / playback command until the next SAP command is given. That is, the data transfer phase (data in phase, data
The number of bytes to be transferred in the (out phase), the sector type specified by the parameter of the partition command,
Determined based on the ECC mode and set the necessary operating parameters inside the SCSI controller.

【0048】SCSIコントローラ5は、ライト/リー
ドコマンドで指定された論理ブロックアドレスを、以下
のように物理トラック番号、セクタ番号に変換して情報
記録再生装置10中に挿入されている光カード1に対し
情報の記録、再生を行う。なお、物理トラック番号、セ
クタ番号は0から始まり、物理トラック番号は光カード
下端から上方向に、セクタ番号は光カード右端から左方
向に、それぞれ増加するものとし、同一トラック中での
論理ブロックアドレスはセクタ番号の増加方向と同一と
する。
The SCSI controller 5 converts the logical block address designated by the write / read command into a physical track number and a sector number as described below, and converts the logical block address into the optical card 1 inserted in the information recording / reproducing apparatus 10. It records and reproduces information. The physical track number and the sector number start from 0, the physical track number increases from the bottom edge of the optical card upward, and the sector number increases from the right edge of the optical card to the left side. Is in the same direction as the sector number increases.

【0049】Tr#=Tf+int(LBA/M) Sct#=MOD(LBA/M) 但し、Tr#:物理トラック番号、Sct#:セクタ番
号、Tf:そのパーティションの先頭物理トラック番
号、M:そのセクタタイプでの1トラック当たりのセク
タ数、LBA:論理ブロックアドレス、int():カ
ッコ内の整数部を求める関数、MOD():カッコ内の
計算の剰余を求める関数である。
Tr # = Tf + int (LBA / M) Sct # = MOD (LBA / M) where Tr #: physical track number, Sct #: sector number, Tf: head physical track number of the partition, M: sector Type is the number of sectors per track, LBA is a logical block address, int () is a function for obtaining an integer part in parentheses, and MOD () is a function for obtaining a remainder of calculation in parentheses.

【0050】表3に示したようにパーティション分割し
た場合、パーティション0は物理トラック番号が0のデ
ータトラックから始まり、セクタタイプがタイプ6で1
2セクタ/トラックであるから、Tf=0、M=12と
なる。従って、論理ブロックアドレス=0は、 Tr#=0+int(0/12)=0 Sct#=MOD(0/12)=0 となり、物理トラック番号が0のトラックの(光カード
最上端のトラック)セクタ0(光カード最左端のセク
タ)に対応する。
When the partition is divided as shown in Table 3, partition 0 starts from the data track whose physical track number is 0, and the sector type is type 6 and 1
Since there are 2 sectors / track, Tf = 0 and M = 12. Therefore, the logical block address = 0 is Tr # = 0 + int (0/12) = 0 Sct # = MOD (0/12) = 0, and the sector of the track with the physical track number 0 (the track at the top of the optical card) It corresponds to 0 (the leftmost sector of the optical card).

【0051】同様に論理ブロックアドレス=100のセ
クタは、 Tr#=0+int(100/12)=8 Sct#=MOD(100/12)=4 となる。よって、物理トラック番号が8のデータトラッ
クのセクタ番号4のセクタとなる。
Similarly, for the sector of logical block address = 100, Tr # = 0 + int (100/12) = 8 Sct # = MOD (100/12) = 4. Therefore, the sector of sector number 4 of the data track of physical track number 8 is obtained.

【0052】一方、パーティション1は物理トラック番
号が500(1F4H)のデータトラックから始まり、
トラック本数は2000本で、セクタタイプがタイプ1
で1セクタ/トラックであるから、Tf=500、M=
1となる。従って、論理ブロックアドレス=0は、 Tr#=500+int(0/1)=500 Sct#=MOD(0/1)=0 となり、物理トラック番号が500上のセクタに対応す
る。この場合は、1トラックに1個のセクタしか存在し
ないので、セクタ番号は常に0である。
On the other hand, the partition 1 starts from the data track whose physical track number is 500 (1F4H),
The number of tracks is 2000 and the sector type is type 1.
Since there are 1 sector / track, Tf = 500, M =
It becomes 1. Therefore, the logical block address = 0 is Tr # = 500 + int (0/1) = 500 Sct # = MOD (0/1) = 0, which corresponds to the sector whose physical track number is 500. In this case, since there is only one sector in one track, the sector number is always 0.

【0053】同様に論理ブロックアドレス=100のセ
クタは、 Tr#=500+int(100/1)=600 Sct#=MOD(100/1)=0 となり、物理トラック番号が600上のセクタとなる。
Similarly, the sector of logical block address = 100 is Tr # = 500 + int (100/1) = 600, Sct # = MOD (100/1) = 0, and the sector whose physical track number is 600.

【0054】図7及び図8はそれぞれ本実施例における
リード・コマンド及びライト・コマンドのCDBの構成
例を示す図である。例えば、図8のライト・コマンドに
おいては、図10に示した従来の記録再生方式で使用す
るライト・コマンドのCDBの構成と比較して、バイト
5のビット7にdir(direction )が追加されてい
る。dirはCDB中のTransfer Length で指定される
処理ブロック数の連続の方向を指定するもので、dir
=0の場合は、論理ブロックアドレスが増加する方向
を、dir=1の場合は、論理ブロックアドレスの減少
する方向を意味している。図7に示すリードコマンドの
場合も同様である。また、CDBの構成例は示していな
いが、ライト・アンド・ベリファイ(Write and Verif
y)コマンド、ベリファイ(Verify)コマンド等、他の
記録/再生コマンドでも同様である。
FIGS. 7 and 8 are diagrams showing examples of the CDB structure of the read command and the write command in this embodiment, respectively. For example, in the write command shown in FIG. 8, dir (direction) is added to bit 7 of byte 5 as compared with the CDB structure of the write command used in the conventional recording / reproducing system shown in FIG. There is. dir designates the continuous direction of the number of processing blocks designated by Transfer Length in the CDB.
= 0 means that the logical block address increases, and dir = 1 means that the logical block address decreases. The same applies to the case of the read command shown in FIG. Although the configuration example of the CDB is not shown, the Write and Verify (Write and Verif)
The same applies to other recording / reproducing commands such as y) command and verify command.

【0055】SCSIコントローラ5は、ライト・コマ
ンドあるいはリード・コマンドを受信すると、そのCD
B中のlogical Block Address で指定された論理ブロッ
クアドレスから、Transfer Length で指定された連続す
る論理ブロックに記録、あるいは再生を行うように情報
記録再生装置10を制御するが、このとき、dirで指
定された方向に連続する論理ブロックを指定する。例え
ば、Logical Block Address = 0 、Transfer Length =
5 、dir =0のリード・コマンドを受信した場合は、論理
ブロックアドレスが0、1、2、3、5の5個の連続す
る論理ブロックをリードする。一方、Logical Block Ad
dress = 2499、Transfer Length = 4 、dir = 1 のライ
ト・リードコマンドを受信した場合は、論理ブロックア
ドレスが2499、2498、2497、2496の4
個の連続する論理ブロックに情報をライトする。従っ
て、dirを指定する事によって、複数の論理ブロック
を1回の記録/再生コマンドで、論理ブロックアドレス
の増加/減少方向どちらにでも、記録、再生することが
可能である。
When the SCSI controller 5 receives the write command or the read command, the CD
The information recording / reproducing apparatus 10 is controlled so as to record or reproduce from the logical block address specified by the logical block address in B to the continuous logical block specified by Transfer Length. At this time, the information recording / reproducing device 10 is specified by dir. Specify logical blocks that are continuous in the specified direction. For example, Logical Block Address = 0, Transfer Length =
5, when a read command of dir = 0 is received, 5 consecutive logical blocks having logical block addresses 0, 1, 2, 3, 5 are read. On the other hand, Logical Block Ad
When a write / read command with dress = 2499, Transfer Length = 4, and dir = 1 is received, the logical block addresses are 4499, 2498, 2497, and 2496.
Write information to consecutive logical blocks. Therefore, by designating dir, it is possible to record / reproduce a plurality of logical blocks with one recording / reproducing command in either the increasing / decreasing direction of the logical block address.

【0056】本実施例においても、パーティション・コ
マンドはあくまで論理的なものであり、光カード上にパ
ーティションの境界等の物理的な記録は一切行っていな
い。そのため、一度設定したパーティション情報を再度
パーティション・コマンドを使用し変更することが可能
である。即ち、上記の例で用いたように、500本と2
000本の2つのパーティションに分割して使用中に、
データ用のパーティション1の未使用トラックが少なく
なり、ディレクトリ用のパーティション0に空きがある
場合には、例えばパーティション0が300本、パーテ
ィション1が2200本を使用するように、パーティシ
ョン・コマンドを用いて新たに定義し直して使用するこ
とができる。このようにしてデータとディレクトリの間
に未記録のトラックが存在しなくなるまで、光カードの
記録容量を有効に使用することができる。
Also in this embodiment, the partition command is only logical, and no physical recording such as the boundary of the partition is made on the optical card. Therefore, it is possible to change the partition information once set by using the partition command again. That is, as used in the above example, 500 and 2
While dividing into two partitions of 000,
If the number of unused tracks in the data partition 1 decreases and there is a free space in the directory partition 0, use a partition command such that 300 partitions 0 and 2200 partitions 1 are used, for example. It can be newly redefined and used. In this way, the recording capacity of the optical card can be effectively used until there is no unrecorded track between the data and the directory.

【0057】なお、本実施例で示したパーティション・
パラメータは、最初の物理トラック番号とそのパーティ
ション内に含まれる物理トラック本数でパーティション
の範囲を定義していたが、これは、最初の物理トラック
番号と最後の物理トラック番号で定義しても良い。ま
た、実施例では、処理ブロック数の連続の方向を指定す
るビットをSCSI規格で製造者規定(Vendor Specifi
c )になっているコマンドのCDB中のビット位置に設
定したが、機能上は他の位置を使用しても良い。但し、
SCSI規格に合致するためには、製造者規定が許され
ている位置を使用することが望ましい。更に、実施例中
で用いたセクタタイプのセクタ当たりのユーザバイト数
や、1トラック当たりのセクタ数が一例に過ぎないのは
言うまでもない。
The partition shown in this embodiment
The parameter defines the range of the partition by the first physical track number and the number of physical tracks included in the partition, but this may be defined by the first physical track number and the last physical track number. In addition, in the embodiment, the bits that specify the continuous direction of the number of processing blocks are stipulated by the manufacturer in the SCSI standard (Vendor Specifi).
Although it is set to the bit position in the CDB of the command shown in c), other positions may be used functionally. However,
In order to meet the SCSI standard, it is desirable to use the locations allowed by the manufacturer's regulations. Furthermore, it goes without saying that the number of user bytes per sector of the sector type used in the embodiments and the number of sectors per track are merely examples.

【0058】[0058]

【発明の効果】以上説明したように本発明によれば、情
報記録媒体を複数の論理的なパーティションに分割する
命令のパラメータ中に、論理ブロックアドレスの増加方
向と物理的な記録位置の配列方向との関係を指定する情
報を含むことにより、同一情報記録媒体上で論理ブロッ
クサイズの異なる複数のセクタタイプの混用がSCSI
システム中で矛盾無く可能であり、また、各パーティシ
ョンの論理ブロックアドレスの増加方向と物理的な記録
位置の配列方向との関係を指定できるので、データとデ
ィレクトリを互いにトラックの並び方向の逆方向から記
録するような光カードに適用した場合でも、SCSIの
規定する通常のライト/リードコマンドを1度発行する
だけで複数の論理ブロックの記録/再生が可能であり、
処理速度の低下を招くことなく、高速で記録/再生を行
うことができる。
As described above, according to the present invention, the logical block address increasing direction and the physical recording position arranging direction are included in the parameter of the command for dividing the information recording medium into a plurality of logical partitions. By including the information designating the relationship with the SCSI, it is possible to mix a plurality of sector types with different logical block sizes on the same information recording medium.
It is possible in the system without any inconsistency, and since the relationship between the increasing direction of the logical block address of each partition and the arrangement direction of the physical recording position can be specified, the data and directory can be changed from the opposite direction of the track arrangement direction. Even when applied to an optical card for recording, it is possible to record / reproduce a plurality of logical blocks by issuing a normal write / read command prescribed by SCSI once.
Recording / reproduction can be performed at high speed without lowering the processing speed.

【0059】また、情報記録媒体を複数の論理的なパー
ティションに分割し、各パーティション中で使用するセ
クタサイズを指定する命令と、記録、再生の対象となる
パーティションを指定する命令と、記録、再生の対象と
なる先頭の論理ブロックアドレス、論理ブロックの連続
数及び論理ブロックアドレスの増加/減少方向を指定す
る記録、再生命令をSCSIを介してホストコンピュー
タから転送することにより、同様に同一情報記録媒体上
で論理ブロックサイズの異なる複数のセクタタイプの混
用がSCSIシステム中で矛盾なく可能である。更に、
記録/再生コマンドで記録/再生を行うブロックの連続
方向を指定できるので、同様にデータとディレクトリを
互いにトラックの並び方向の逆方向から記録するような
光カードに適用した場合でも、ライト/リードコマンド
を1度発行するだけでSCSIシステム中で矛盾無く複
数の論理ブロックの記録/再生が行え、処理速度が低下
することがない。
Further, the information recording medium is divided into a plurality of logical partitions, a command for designating a sector size to be used in each partition, a command for designating a partition as a recording / reproducing target, and a recording / reproducing process. Similarly, the same information recording medium can be obtained by transferring the recording / reproducing command designating the leading logical block address, the number of consecutive logical blocks, and the increasing / decreasing direction of the logical block address from the host computer via SCSI. It is possible to mix a plurality of sector types having different logical block sizes in a SCSI system without any conflict. Furthermore,
Since the continuous direction of blocks for recording / reproducing can be specified by the recording / reproducing command, even when applied to an optical card in which data and directories are recorded in the directions opposite to each other, the write / read command is also applied. Is issued once, the plurality of logical blocks can be recorded / reproduced in the SCSI system without contradiction, and the processing speed does not decrease.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例における情報記録媒体を複数の
論理的なパーティションに分割し、各パーティション中
で使用するセクタサイズを指定する命令(パーティショ
ン・コマンド)でホストコンピュータから転送されるパ
ラメータ(パーティション・パラメータ)の構成例を示
した図である。
FIG. 1 is a diagram showing a parameter transferred from a host computer by an instruction (partition command) that divides an information recording medium in an embodiment of the present invention into a plurality of logical partitions and specifies a sector size used in each partition. It is a figure showing the example of composition of (partition parameter).

【図2】パーティション・コマンドのCDBの構成例を
示した図である。
FIG. 2 is a diagram showing a configuration example of a CDB of a partition command.

【図3】本発明の実施例における記録、再生に使用する
パーティションを指定する命令のCDBの構成例を示し
た図である。
FIG. 3 is a diagram showing a configuration example of a CDB of an instruction that specifies a partition used for recording and reproduction according to an embodiment of the present invention.

【図4】本発明の情報記録再生方法に係るSCSIシス
テムの構成例を示したブロック図である。
FIG. 4 is a block diagram showing a configuration example of a SCSI system according to the information recording / reproducing method of the present invention.

【図5】本発明の情報記録再生方法で使用する光カード
の一例を示した図である。
FIG. 5 is a diagram showing an example of an optical card used in the information recording / reproducing method of the present invention.

【図6】本発明の他の実施例におけるパーティションコ
マンドでホストコンピュータから転送されるパラメータ
(パーティション・パラメータ)の構成例を示した図で
ある。
FIG. 6 is a diagram showing a configuration example of parameters (partition parameters) transferred from a host computer by a partition command in another embodiment of the present invention.

【図7】本発明の他の実施例におけるリード・コマンド
のCDBの構成例を示した図である。
FIG. 7 is a diagram showing a configuration example of a CDB of a read command according to another embodiment of the present invention.

【図8】本発明の他の実施例におけるライト・コマンド
のCDBの構成例を示した図である。
FIG. 8 is a diagram showing a configuration example of a CDB of a write command in another embodiment of the present invention.

【図9】ハードディスク装置における論理ブロックの構
成を示した図である。
FIG. 9 is a diagram showing a configuration of logical blocks in a hard disk device.

【図10】従来のライト・コマンドのCDBの構成を示
した図である。
FIG. 10 is a diagram showing the structure of a conventional write command CDB.

【図11】光カードにおけるデータとディレクトリの記
録方法を説明するための概略平面図である。
FIG. 11 is a schematic plan view for explaining a method of recording data and a directory on the optical card.

【符号の説明】[Explanation of symbols]

1 光カード 2 トラッキングトラック 3 データトラック 4 物理トラック番号 5 SCSIコントローラ 6 SCSIプロトコル回路(SPC) 7 ROM 8 MPU 9 RAM 10 情報記録再生装置 12 ホストコンピュータ 1 Optical Card 2 Tracking Track 3 Data Track 4 Physical Track Number 5 SCSI Controller 6 SCSI Protocol Circuit (SPC) 7 ROM 8 MPU 9 RAM 10 Information Recording / Reproducing Device 12 Host Computer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 SCSIを介したホストコンピュータか
らの指令に基づいて情報記録媒体に所定の情報を論理ブ
ロックアドレス単位で記録または再生すると共に、前記
情報記録媒体を複数の論理的なパーティションに分割
し、各パーティション中で使用するセクタサイズを指定
する命令と、記録または再生の対象となるパーティショ
ンを指定する命令を、前記SCSIを介して前記ホスト
コンピュータから転送する情報記録再生方法において、
前記情報記録媒体を複数の論理的なパーティションに分
割する命令のパラメータ中に、論理ブロックアドレスの
増加方向と物理的な記録位置の配列方向との関係を指定
するための情報を含むことを特徴とする情報記録再生方
法。
1. Information is recorded or reproduced on an information recording medium in logical block address units based on a command from a host computer via SCSI, and the information recording medium is divided into a plurality of logical partitions. In the information recording / reproducing method, an instruction to specify a sector size to be used in each partition and an instruction to specify a partition to be recorded or reproduced are transferred from the host computer via the SCSI,
A parameter of an instruction for dividing the information recording medium into a plurality of logical partitions includes information for designating a relationship between an increasing direction of a logical block address and an array direction of physical recording positions. Information recording / playback method.
【請求項2】 請求項1に記載の情報記録再生方法にお
いて、前記各パーティション中で記録時のエラー訂正コ
ードの付加の有無を指定することを特徴とする情報記録
再生方法。
2. The information recording / reproducing method according to claim 1, wherein whether or not an error correction code is added at the time of recording is specified in each partition.
【請求項3】 SCSIを介したホストコンピュータか
らの指令に基づいて情報記録媒体に所定の情報を論理ブ
ロックアドレス単位で記録または再生する情報記録再生
方法において、前記情報記録媒体を複数の論理的なパー
ティションに分割し、各パーティション中で使用するセ
クタサイズを指定する命令と、記録、再生の対象となる
パーティションを指定する命令と、記録、再生の対象と
なる先頭の論理ブロックアドレス、論理ブロックの連続
数及び論理ブロックアドレスの増加/減少方向を指定す
る記録、再生命令とを、前記SCSIを介して前記ホス
トコンピュータから転送することを特徴とする情報記録
再生方法。
3. An information recording / reproducing method for recording or reproducing predetermined information on an information recording medium in logical block address units based on a command from a host computer via SCSI. Divide into partitions and specify the sector size to be used in each partition, the command to specify the partition to be recorded or played, the start logical block address to be recorded or played, and the sequence of logical blocks. An information recording / reproducing method characterized in that a recording / reproducing command designating an increase / decrease direction of a number and a logical block address is transferred from the host computer via the SCSI.
【請求項4】 請求項3に記載の情報記録再生方法にお
いて、前記各パーティション中で記録時のエラー訂正コ
ードの付加の有無を指定することを特徴とする情報記録
再生方法。
4. The information recording / reproducing method according to claim 3, wherein whether or not an error correction code is added at the time of recording is specified in each partition.
JP7170816A 1995-07-06 1995-07-06 Information recording and playback method Pending JPH0922331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7170816A JPH0922331A (en) 1995-07-06 1995-07-06 Information recording and playback method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7170816A JPH0922331A (en) 1995-07-06 1995-07-06 Information recording and playback method

Publications (1)

Publication Number Publication Date
JPH0922331A true JPH0922331A (en) 1997-01-21

Family

ID=15911871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7170816A Pending JPH0922331A (en) 1995-07-06 1995-07-06 Information recording and playback method

Country Status (1)

Country Link
JP (1) JPH0922331A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1165772A (en) * 1997-08-20 1999-03-09 Fujitsu Ltd Data transfer system and data transfer method
JP2001325076A (en) * 2000-05-17 2001-11-22 Canon Inc Information updating apparatus, information updating system, information updating method, and storage medium
JP2010509649A (en) * 2005-11-15 2010-03-25 サンディスク アイエル リミテッド Flash memory device and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1165772A (en) * 1997-08-20 1999-03-09 Fujitsu Ltd Data transfer system and data transfer method
JP2001325076A (en) * 2000-05-17 2001-11-22 Canon Inc Information updating apparatus, information updating system, information updating method, and storage medium
JP2010509649A (en) * 2005-11-15 2010-03-25 サンディスク アイエル リミテッド Flash memory device and method

Similar Documents

Publication Publication Date Title
US5034914A (en) Optical disk data storage method and apparatus with buffered interface
US5481519A (en) Method for recording, reproducing and managing file data on a recording medium
US6735678B2 (en) Method and apparatus for disc drive defragmentation
US5297124A (en) Tape drive emulation system for a disk drive
US8185705B2 (en) Information recording medium, information recording medium accessing apparatus and accessing method
JPH05313980A (en) Information recording method
US5461719A (en) Method for recording/reproducing information on recording medium in accordance with parameters stored in memory to allow sectors of different data capacities to collectively exist
JPH05224822A (en) Collective storage device
EP0738954B1 (en) Data transfer control method and apparatus for external storage subsystem
US20080288710A1 (en) Semiconductor Memory Device and Its Control Method
US20050210214A1 (en) Fragmentation executing method and storage device
JP4221959B2 (en) Bridge file system, computer system, data management method and recording medium using bridge file system
JPH0922331A (en) Information recording and playback method
US7821896B2 (en) Data recording/reproduction for write-once discs
JP4211563B2 (en) Playback / recording device
JPH0511933A (en) Hard disk emulator and its fixed cache area allocation method
JP4496790B2 (en) Data storage device and method, and recording / reproducing system
EP1745478A2 (en) Data recording/reproduction for write-once discs
EP0108651A2 (en) Dynamic addressing for variable track length cache memory
JP3030949B2 (en) Digital data recording / reproducing device
CN1985323B (en) Data recording/reproducing for write-once disc
JP2590722B2 (en) Optical disk controller
JPH01282778A (en) Optical disk storage management method
JP2004265506A (en) Data recording device and method, program
JPH05282793A (en) Optical disk device