[go: up one dir, main page]

JPH03266040A - File management method of secondary storage device - Google Patents

File management method of secondary storage device

Info

Publication number
JPH03266040A
JPH03266040A JP2064245A JP6424590A JPH03266040A JP H03266040 A JPH03266040 A JP H03266040A JP 2064245 A JP2064245 A JP 2064245A JP 6424590 A JP6424590 A JP 6424590A JP H03266040 A JPH03266040 A JP H03266040A
Authority
JP
Japan
Prior art keywords
block
storage space
sectors
secondary storage
file
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
JP2064245A
Other languages
Japanese (ja)
Inventor
Masao Yamashita
山下 正雄
Yoshiaki Kojima
小島 吉明
Yoshikazu Takeuchi
武内 義和
Kenji Kurashige
倉重 健治
Yoshihiro Katsuoka
勝岡 義博
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.)
Hitachi Ltd
Nippon Telegraph and Telephone Corp
Original Assignee
Hitachi Ltd
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Nippon Telegraph and Telephone Corp filed Critical Hitachi Ltd
Priority to JP2064245A priority Critical patent/JPH03266040A/en
Publication of JPH03266040A publication Critical patent/JPH03266040A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、特に固定セクタ長方式の2次記憶媒体上にフ
ァイルを作成する場合、ブロックの記憶空間またがりを
可能とすることによって2次記憶媒体の使用効率の向上
を図る2次記憶装置のファイル管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is particularly useful when creating a file on a fixed sector length secondary storage medium by making it possible to span the storage space of blocks. The present invention relates to a file management method for a secondary storage device that aims to improve media usage efficiency.

〔従来の技術〕[Conventional technology]

従来のデータ記録方式(特開昭61−115273号公
報)は、未書込みのセクタを検出するとレコードが書込
めるか否かをチエツクし、レコードが書込みきれない場
合は、交替セクタを用いてレコードを書込む方式として
いた。
In the conventional data recording method (Japanese Unexamined Patent Publication No. 115273/1983), when an unwritten sector is detected, it is checked whether a record can be written. If the record cannot be written, a replacement sector is used to write the record. It was a writing method.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、固定セクタ長方式の2次記憶媒体上に
1つのブロックが予じめ決められたセクタ数でかつ、フ
ァイルの実体が複数の記憶空間に分割されているファイ
ルを作成するとき、記憶空間内の最終ブロックがセクタ
不足の場合、当該ブロックを未使用とし、次の記憶空間
の先頭から新たにブロックを切出している。
When creating a file in which one block has a predetermined number of sectors on a fixed sector length secondary storage medium and the file entity is divided into a plurality of storage spaces, If the last block in the storage space lacks sectors, that block is made unused, and a new block is cut out from the beginning of the next storage space.

しかし、記憶空間内の1つのブロックを構成しているセ
クタ数が多くなってくるとブロックの記憶空間またがり
ができないため、未使用となるセクタが増大し、2次記
憶媒体の使用効率が低下するという問題があった。
However, as the number of sectors constituting one block in the storage space increases, blocks cannot span the storage space, which increases the number of unused sectors and reduces the efficiency of use of the secondary storage medium. There was a problem.

本発明の目的は、固定セクタ長方式の2次記憶媒体上に
1つのブロックが予じめ決められたセクタ数で、かつ、
ファイルの実体が複数の記憶空間に分割されるファイル
を作成するとき、記憶空間の最終ブロックがセクタ不足
のとき当該ブロックを未使用とせずに次の記憶空間の先
頭から不足分のセクタを切出すことで、ブロックの記憶
空間またがりを可能とし、固定セクタ長方式の2次記憶
媒体の使用効率を向上させる2次記憶装置のファイル管
理方式を提供することにある。
An object of the present invention is to provide one block on a fixed sector length secondary storage medium with a predetermined number of sectors, and
When creating a file whose actual file is divided into multiple storage spaces, if the last block of the storage space lacks sectors, the missing sectors are cut out from the beginning of the next storage space without leaving the block unused. Therefore, it is an object of the present invention to provide a file management method for a secondary storage device that enables blocks to span storage space and improves the usage efficiency of a fixed sector length secondary storage medium.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、固定セクタ長方式の2次記
憶媒体上に1つのブロックが予じめ決められたセクタ数
で構成され、かつ、ファイルの実体が複数の記憶空間に
分割されているファイルを作成するとき、記憶空間に1
ブロック単位で情報を書込んでいく。このとき、該記憶
空間内の全てのセクタ数から1つのブロックで必要とな
るセクタ数を減算していく。最終ブロックでセクタ不足
の場合、書込めるセクタ数分だけ情報を書込み、不足分
のセクタを次の記憶空間の先頭から切出し5て残りの情
報を書込む。
In order to achieve the above purpose, one block is composed of a predetermined number of sectors on a fixed sector length secondary storage medium, and the actual file is divided into multiple storage spaces. When creating a file, there is 1 in the storage space.
Information is written in blocks. At this time, the number of sectors required for one block is subtracted from the total number of sectors in the storage space. If there is a shortage of sectors in the final block, information is written for the number of sectors that can be written, the insufficient sectors are cut out from the beginning of the next storage space, and the remaining information is written.

〔作用〕[Effect]

本発明の固定セクタ長方式の2次記憶装置のファイル管
理方式は、固定セクタ長方式の2次記憶媒体上に1つの
ブロックが予じめ決められたセクタ数で構成され、かつ
、ファイルの実体が複数の記憶空間に分割されているフ
ァイルを作成するときに、記憶空間内の最終ブロックが
セクタ不足になると、書込めるセクタ数分だけ情報を書
込み、次の記憶空間の先頭から不足分のセクタを切出し
て残りの情報を書込むことにより、従来、記憶空間内の
最終ブロックがセクタ不足で情報が書込めない場合に未
使用のセクタとしていたものが、有効に使用され、媒体
効率を高める。
The file management method of the fixed sector length secondary storage device of the present invention is such that one block is composed of a predetermined number of sectors on the fixed sector length secondary storage medium, and the file entity is When creating a file that is divided into multiple storage spaces, if the last block in the storage space runs out of sectors, information is written for the number of sectors that can be written, and the missing sectors are written from the beginning of the next storage space. By cutting out the block and writing the remaining information, what was conventionally used as an unused sector when information cannot be written to the final block in the storage space due to lack of sectors is effectively used, increasing medium efficiency.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面により詳細に説明する。 Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例であり、1は固定セクタ長方
式の2次記憶媒体、2及び3は記憶空間、4は他のファ
イルで使用している記憶空間、5は固定セクタ長方式の
2次記憶媒体上のトラック、6はデータの集合体である
ブロック、7はトラックを予じめ決められた長さで分割
しているセクタ、8及び9は記憶空間またがりによって
書込まれたブロックである。
FIG. 1 shows an embodiment of the present invention, in which 1 is a fixed sector length secondary storage medium, 2 and 3 are storage spaces, 4 is a storage space used by other files, and 5 is a fixed sector length storage medium. 6 is a block which is a collection of data, 7 is a sector that divides the track into a predetermined length, and 8 and 9 are written across the storage space. This is a block.

固定セクタ長方式の2次記憶媒体1に複数の記憶空間2
及び3に分割され、かつ、1つのブロック6が予じめ決
められたセクタ7の数で構成されているファイルを作成
するとき、2次記憶媒体l上に記憶空間2及び3を割当
ててトラック5の先頭からブロック6を順々に書込んで
いく。そして記憶空間2の最終ブロックを書込もうとす
るがセクタ不足のため記憶空間2の最終ブロックに書込
める分だけのブロック8を書込み、次の記憶空間3の先
頭から不足分のセクタを切出して残りのブロック9を書
込んでいく。
Multiple storage spaces 2 in a fixed sector length secondary storage medium 1
When creating a file in which each block 6 consists of a predetermined number of sectors 7, allocate storage spaces 2 and 3 on the secondary storage medium l and create a track. Blocks 6 are sequentially written starting from the beginning of block 5. Then, an attempt is made to write the final block of storage space 2, but there is a shortage of sectors, so the block 8 is written as much as can be written to the final block of storage space 2, and the missing sector is cut out from the beginning of the next storage space 3. Write the remaining block 9.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、固定セクタ長方式の2次記憶媒体上に
1つのブロックが決めらセクタ数で構成され、かつ、フ
ァイルの実体が複数の記憶空間に分割されているファイ
ルを作成するときに、該記憶空間内の最終ブロックがセ
クタ不足のとき、当該ブロックを未使用とせず書込める
セクタ数分だけ情報を書き込み、次の記憶空間の先頭か
ら最終ブロックの不足分のセクタを切出して残りの情報
を書込むことによって、ブロックの記憶空間またがりが
可能となりまた、固定セクタ長方式の2次記憶媒体の使
用効率が向上するという効果がある。
According to the present invention, when creating a file on a fixed sector length secondary storage medium, in which one block consists of a predetermined number of sectors, and the file entity is divided into multiple storage spaces. , when the last block in the storage space lacks sectors, write information for the number of sectors that can be written without leaving the block unused, cut out the missing sectors of the final block from the beginning of the next storage space, and write the remaining sectors. By writing information, it is possible to span the storage space of blocks, and there is an effect that the usage efficiency of a fixed sector length type secondary storage medium is improved.

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

第1図は本発明の一実施例を示す図である。 1・・・2次記憶媒体、 2.3・・・記憶空間、 4・・・他のファイルで使用している記憶空間、5・・
トラック、 6・・・ブロック、 7・・・セクタ、 8・・・記憶空間の最終ブロックとして書込まれた半切
れのブロック、 9・・・次の記憶空間の先頭から不足分のセクタを切出
して書込んだ最終ブロック。
FIG. 1 is a diagram showing an embodiment of the present invention. 1...Secondary storage medium, 2.3...Storage space, 4...Storage space used by other files, 5...
Track, 6...Block, 7...Sector, 8...Half block written as the final block of storage space, 9...Cut out the missing sectors from the beginning of the next storage space The last block written.

Claims (1)

【特許請求の範囲】[Claims] 1、固定セクタ長方式の2次記憶媒体上にファイルを作
成する場合、1つのブロックが複数のセクタで構成され
、かつ、ファイルの実体が複数の記憶空間に分割されて
いるとき、該記憶空間内の最終ブロックにセクタ不足が
生じたとき、該ブロックを未使用とせず、次の記憶空間
の先頭から不足分のセクタを切出して1つのブロックと
してブロックの記憶空間またがりを行なわせしめること
を特徴とする2次記憶装置のファイル管理方式。
1. When creating a file on a fixed sector length secondary storage medium, if one block consists of multiple sectors and the file entity is divided into multiple storage spaces, the storage space When a sector shortage occurs in the last block in the block, the sector is not left unused, but the missing sector is cut out from the beginning of the next storage space, and the storage space of the block is spanned as one block. A file management method for secondary storage devices.
JP2064245A 1990-03-16 1990-03-16 File management method of secondary storage device Pending JPH03266040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2064245A JPH03266040A (en) 1990-03-16 1990-03-16 File management method of secondary storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2064245A JPH03266040A (en) 1990-03-16 1990-03-16 File management method of secondary storage device

Publications (1)

Publication Number Publication Date
JPH03266040A true JPH03266040A (en) 1991-11-27

Family

ID=13252575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2064245A Pending JPH03266040A (en) 1990-03-16 1990-03-16 File management method of secondary storage device

Country Status (1)

Country Link
JP (1) JPH03266040A (en)

Similar Documents

Publication Publication Date Title
US5442611A (en) Method of recording information on record medium having data record region and file management information record region
EP0479535B1 (en) File managing method
TWI256041B (en) Recording medium, recording device, regeneration device, recording method, and regeneration method
CA2469402A1 (en) Disk driver cluster management of time shift buffer with file allocation table structure
JPH02193335A (en) Card-type optical recording medium
JPH03266040A (en) File management method of secondary storage device
JPS626321A (en) Recording system for non-erasion type recording medium
JPS63104284A (en) Disk file access system
US5630115A (en) Method of rewriting information on a record medium by rewriting only changed portions
JPH04289931A (en) Variable length file managing system
CN1155963C (en) Method for recovering damaged storage capacity by using reserved capacity
JPH02132516A (en) System and method for write enable type optical disk controlling
JPS59758A (en) Data recording system of floppy disc
FI943802A0 (en) Method and system for recording data produced by a telephone exchange system on a tape
JPH0289259A (en) Alternate area management method for optical disk devices
JPH05151716A (en) Data backup method of magnetic tape
JP2784650B2 (en) Optical disk storage management method
JPH02299036A (en) Information recording and reproducing method
JPH0290340A (en) Data filing method
JPS62154372A (en) Substitute recording and reproducing method
JPH0279268A (en) Card type optical recording medium
JPH01227273A (en) File format method
JPH0580072B2 (en)
JPH05100795A (en) Data backup system for direct arrangement file
JPH0194581A (en) Information recording and reproducing device