CN102541957A - Method and device for operating data files on basis of data flow magnetic tapes - Google Patents

Method and device for operating data files on basis of data flow magnetic tapes Download PDF

Info

Publication number
CN102541957A
CN102541957A CN201010623584XA CN201010623584A CN102541957A CN 102541957 A CN102541957 A CN 102541957A CN 201010623584X A CN201010623584X A CN 201010623584XA CN 201010623584 A CN201010623584 A CN 201010623584A CN 102541957 A CN102541957 A CN 102541957A
Authority
CN
China
Prior art keywords
file
description information
data
information
streaming tape
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
CN201010623584XA
Other languages
Chinese (zh)
Inventor
刘永和
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.)
China Digital Video Beijing Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201010623584XA priority Critical patent/CN102541957A/en
Publication of CN102541957A publication Critical patent/CN102541957A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention discloses a method and a device for operating data files on the basis of data flow magnetic tapes, which aim to improve efficiency in storage of the data flow magnetic tapes and use of the data files. The method includes: acquiring file description information recorded in the data flow magnetic tapes from the data flow magnetic tapes, determining and acquiring corresponding data files from the data flow magnetic tapes on the basis of the file description information, and performing corresponding operations according to user commands. Accordingly, efficiency in storage of the data flow magnetic tapes and use of the data files is improved effectively. The invention further discloses the device for operating data files on the basis of the data flow magnetic tapes.

Description

A kind of method and device based on streaming tape service data file
Technical field
The present invention relates to field of data storage, relate in particular to a kind of method and device based on streaming tape service data file.
Background technology
At present, in the streaming tape storage, data file is relatively independent with corresponding file description information; Data file is kept in the streaming tape; File description information then is kept on other medium, for example, file description information is kept on the storage mediums such as database, the scraps of paper, hard disk; Streaming tape is kept in the tape library of machine room, and file description information then possibly be kept on the bookshelf in another room.
Data file is separated with corresponding file description information, makes the use of streaming tape be restricted to a great extent, can not be as the file in the direct access device random access data stream tapes such as disk.Say from the geographic position, when visit data stream tape, need obtain corresponding file description information from other place (like machine room, bookshelf etc.).Say from access method, need obtain corresponding file description information, again according to this document descriptor visit data stream tape through modes such as Query Database, the memos of looing up the records.Say from data interaction; When between different departments of same unit or non-commensurate, carrying out data interaction; Except the streaming tape that needs recording data files, also need depend on other storage medium (like database, record memo etc.) of preserving the corresponding document descriptor.And; Also need carry out synchronous maintenance to the streaming tape and the corresponding file description information of recording data files; Promptly when the data file in the streaming tape changes, need do synchronous renewal to other storage medium (like database, record memo etc.) of storage file descriptor.Simultaneously, in case the storage medium of storage file descriptor is lost or damaged, will bring very big inconvenience to the use of streaming tape.
In sum, the mode that existing streaming tape file adopts data file and file description information to be separated has seriously reduced storage and service efficiency.
Summary of the invention
The present invention provides a kind of method and device based on streaming tape service data file, in order to improve the efficient of streaming tape storage and use data file.
The concrete technical scheme that the embodiment of the invention provides is following:
A kind of method based on streaming tape service data file comprises:
From streaming tape, obtain the file description information that writes down in the said streaming tape;
Based on said file description information, in said streaming tape, confirm and obtain corresponding data file, and operate accordingly according to user instruction.
A kind of device based on streaming tape service data file comprises:
First processing unit is used for from streaming tape, obtains the file description information that writes down in the said streaming tape;
Second processing unit is used for based on said file description information, in said streaming tape, confirms and obtains corresponding data file, and operate accordingly according to user instruction.
Based on technique scheme, in the embodiment of the invention, from streaming tape; Obtain the file description information that writes down in the streaming tape,, in streaming tape, confirm and obtain corresponding data file based on this document descriptor; Operate accordingly according to user instruction; Thereby data file and file description information are stored in the streaming tape, obtain corresponding data file, operate again through obtaining file description information; Thereby avoided data file and file description information to be separated, improved the efficient of streaming tape storage and use data file effectively.
Description of drawings
Fig. 1 is the structure drawing of device of the embodiment of the invention based on streaming tape service data file;
Fig. 2 is the method flow diagram of the embodiment of the invention based on streaming tape service data file.
Embodiment
In order to improve the efficient of streaming tape storage and use data file, a kind of method and device based on streaming tape service data file is provided in the embodiment of the invention, can improve the efficient of streaming tape storage and use data file effectively.This method is: from streaming tape, obtain the file description information that writes down in this streaming tape, based on this document descriptor, in streaming tape, confirm and obtain corresponding data file, and operate accordingly according to user instruction.
Below in conjunction with accompanying drawing the preferred embodiment of the invention is elaborated.
Consult shown in the accompanying drawing 1, in the embodiment of the invention, mainly comprise following processing unit based on the device of streaming tape service data file:
First processing unit 101 is used for from streaming tape, obtains the file description information that writes down in this streaming tape;
Second processing unit 102 is used for based on file description information, in streaming tape, confirms and obtains corresponding data file, and operate accordingly according to user instruction.
Based on the said system framework, consult shown in the accompanying drawing 2, in the embodiment of the invention, following based on the detailed method flow process of streaming tape service data file:
Step 201: from streaming tape, obtain the file description information that writes down in this streaming tape.
Obtain before the file description information that writes down in the streaming tape, in streaming tape, the process of setting up file system is specially: in streaming tape; Write down each data files successively; And obtain the file-related information of each data file, and after each data files of record, the file description information that record is made up of the file-related information of each data files; And after the file description information of record, write down the start position information of said file description information.In the embodiment of the invention; In streaming tape, when writing down each data files successively, navigate to the end of streaming tape automatically by magnetic head; To flow the initial data piece of tape according to the terminal specified data of streaming tape, write down each data files successively from this initial data BOB(beginning of block).
During the file description information that in obtaining streaming tape, writes down, the terminal data block of data recording in the locator data stream tape at first, and obtain the start position information of file description information, obtain the corresponding file descriptor according to this start position information again.In the practical application, magnetic head can be located during the reading data flow tape does not have the initial data of record data piece, and data block of rollback is the terminal data block of data recording, the data block of just preserving the start position information of file description information again.
Wherein, file-related information comprises the size of title, start address and the data file of data file at least.
Step 202: based on above-mentioned file description information, in above-mentioned streaming tape, confirm and obtain corresponding data file, and operate accordingly according to user instruction.
Wherein, based on file description information, in streaming tape, confirm and obtain corresponding data file, be specially: the start address that writes down in the file-related information that comprises according to file description information and the size of data file are obtained above-mentioned data file.
Operation to streaming tape in the embodiment of the invention can be read data files or write new data file.
Preferably; In streaming tape, on the existing data file basis, when writing new data file, at first obtain the start position information of file description information; And after reading file description information; Confirm the reference position of file description information once more,, and obtain the file-related information of new data file from the new data file of this reference position opening entry; File-related information according to this new data file upgrades file description information, and the start position information of the file description information after the record renewal.Wherein, After confirming the start position information of file description information; Read file description information and be saved to internal memory, confirm the start position information of file description information more again, with the new data file of this start position information record; And in file description information, adding the relevant information of new data file, the file description information after will upgrading again is recorded in after the new data file.In the embodiment of the invention; When writing new data file; Can also be after obtaining the start position information of file description information, directly locator data flows the end of data recording on tape record, and writes down new data file; And updating file descriptor, and the start position information of file description information after record upgrades after the new data file of record and the file description information after the renewal.
Concrete technical scheme in the face of the embodiment of the invention is illustrated down.
Example 1; New files system in streaming tape: suppose 3 data files are saved in the streaming tape; The title of 3 data files is respectively file 1, file 2 and file 3; At first navigate to the data block of the end of streaming tape, a back data block of this end data block is the initial data piece of streaming tape, is that reference position writes down 3 data files successively with this initial data piece; Obtain the file-related information of 3 data files simultaneously, i.e. data file name, start address (being the initial data block identification) and data file size (number of shared data block).After record 3 data files; Suppose that 3 data files have taken 30 data blocks altogether; The file description information that then file-related information of record 3 data files is formed in 31 data blocks of the mat woven of fine bamboo strips; And after the file description information start position information (being data block 31) of log file descriptor, then by the file system of the start position information composition data stream tape of data file continuous on the record position, file description information and file description information.
Example 2; Based on the file system that example 1 is set up, the process of obtaining file 2 is: the terminal data block of data recording in the locator data stream tape, the i.e. data block at the start position information of file description information place; Therefrom obtain the start position information (being data block 31) of file description information; Navigate to the start position data piece 31 of file description information, obtain file description information, and be saved to internal memory; With the title (file 2) of data file successively with file description information in each file-related information of comprising compare; Find file 2 pairing file-related informations,, read file 2 according to the start address (initial data block identification) of the file that comprises in this document relevant information 2 and the size of file 2 (number of the data block that file 2 is shared).
Example 3 based on the file system that example 1 is set up, increases new data file (name is called file 4); Be specially: the terminal data block of data recording in the locator data stream tape; Be the data block at the start position information place of file description information, therefrom obtain the start position information (being data block 31) of file description information, navigate to the start position data piece 31 of file description information; Obtain file description information, and be saved to internal memory.Be repositioned onto the start position data piece 31 of file description information; With data block 31 is the new data file (file 4) of reference position record; Obtain the file-related information of file 4 simultaneously; Be the size (size of supposing file 4 is 10 data blocks) of the title of file 4, the start address of file 4 (being data block 31) and file 4, and increase the file-related information of file 4 in the file description information in internal memory, after new data file; Be the file description information after data block 41 opening entries upgrade, and the start position information of the file description information after record upgrades in the data block after file description information.
Based on technique scheme; In the embodiment of the invention; In streaming tape successively after the recording data files, write down the file description information that the file-related information of each data files is formed, and after file description information the start position information of log file descriptor.When from streaming tape, obtaining data file; The terminal data block of data recording in the locator data stream tape; Obtain the start position information of file description information, the reference position with the locating file descriptor reads file description information; Obtain corresponding data file through file description information, operate accordingly according to user instruction again.Thereby can from streaming tape, obtain data file easily, avoid data file and file description information to be separated, improve the efficient of using data file in the streaming tape.Simultaneously; In streaming tape, during the new data file of storage, can obtain the start position information of file description information, after locating and reading file description information; Begin to store new data file from the reference position of file description information; And adopting the file-related information updating file descriptor of new data file, the file description information after will upgrading again is recorded in after the new data file, and writes down the start position information of the file description information after this renewal after the file description information after renewal; Thereby storing data files has easily improved the efficient of storing data files.
In sum, the embodiment of the invention has improved the streaming tape storage effectively and has used the efficient of data file.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (12)

1. the method based on streaming tape service data file is characterized in that, comprising:
From streaming tape, obtain the file description information that writes down in the said streaming tape;
Based on said file description information, in said streaming tape, confirm and obtain corresponding data file, and operate accordingly according to user instruction.
2. the method for claim 1 is characterized in that, obtains before the file description information that writes down in the said streaming tape, comprising:
In said streaming tape, write down each data files successively, and obtain the file-related information of each data file;
After each data files of record, the file description information that record is made up of the file-related information of each data files;
After the said file description information of record, write down the start position information of said file description information.
3. method as claimed in claim 2 is characterized in that, from streaming tape, obtains the file description information that writes down in the said streaming tape, comprising:
Locate the terminal data block of data recording in the said streaming tape, and obtain the start position information of said file description information, obtain the corresponding file descriptor according to said start position information again.
4. like claim 2 or 3 described methods, it is characterized in that said file-related information comprises title, start address and the data file size of data file at least.
5. method as claimed in claim 4 is characterized in that, based on said file description information, in said streaming tape, confirms and obtains corresponding data file, comprising:
The start address and the data file size that write down in the file-related information that comprises according to said file description information are obtained said data file.
6. method as claimed in claim 4 is characterized in that, based on said file description information, in said streaming tape, confirms and obtains corresponding data file, and operate accordingly according to user instruction, comprising:
Obtain the start position information of said file description information, confirm the reference position of said file description information;
Said file description information is read to buffer memory;
From the new data file of said reference position opening entry, and obtain the file-related information of said new data file;
File-related information according to new data file upgrades said file description information, the file description information after upgrading is recorded in said data file after, and write down new start position information.
7. the device based on streaming tape service data file is characterized in that, comprising:
First processing unit is used for from streaming tape, obtains the file description information that writes down in the said streaming tape;
Second processing unit is used for based on said file description information, in said streaming tape, confirms and obtains corresponding data file, and operate accordingly according to user instruction.
8. device as claimed in claim 7; It is characterized in that said first processing unit obtains before the file description information that writes down in the said streaming tape, in said streaming tape; Write down each data files successively, and obtain the file-related information of each data file;
After each data files of record, the file description information that record is made up of the file-related information of each data files;
After the said file description information of record, write down the start position information of said file description information.
9. device as claimed in claim 8 is characterized in that, said first processing unit obtains the file description information that writes down in the said streaming tape from streaming tape, be specially:
Locate the terminal data block of data recording in the said streaming tape, and obtain the start position information of said file description information, obtain the corresponding file descriptor according to said start position information again.
10. like claim 8 or 9 described devices, it is characterized in that said file-related information comprises title, start address and the data file size of data file at least.
11. device as claimed in claim 10 is characterized in that, said second processing unit is based on said file description information, in said streaming tape, confirms and obtains corresponding data file, is specially:
The start address and the data file size that write down in the file-related information that comprises according to said file description information are obtained said data file.
12. device as claimed in claim 10 is characterized in that, said second processing unit is based on said file description information, in said streaming tape, confirms and obtains corresponding data file, and operate accordingly according to user instruction, is specially:
Obtain the start position information of said file description information, confirm the reference position of said file description information;
Said file description information is read to buffer memory;
From the new data file of said reference position opening entry, and obtain the file-related information of said new data file;
File-related information according to new data file upgrades said file description information, the file description information after upgrading is recorded in after the said data file, and writes down new start position information.
CN201010623584XA 2010-12-30 2010-12-30 Method and device for operating data files on basis of data flow magnetic tapes Pending CN102541957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010623584XA CN102541957A (en) 2010-12-30 2010-12-30 Method and device for operating data files on basis of data flow magnetic tapes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010623584XA CN102541957A (en) 2010-12-30 2010-12-30 Method and device for operating data files on basis of data flow magnetic tapes

Publications (1)

Publication Number Publication Date
CN102541957A true CN102541957A (en) 2012-07-04

Family

ID=46348872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010623584XA Pending CN102541957A (en) 2010-12-30 2010-12-30 Method and device for operating data files on basis of data flow magnetic tapes

Country Status (1)

Country Link
CN (1) CN102541957A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731497A (en) * 2013-12-31 2014-04-16 华为终端有限公司 Method for supporting wireless access to storage device and mobile route hot point device
CN104049913A (en) * 2014-05-29 2014-09-17 北京捷成世纪科技股份有限公司 Method and device for managing magnetic tape file
CN108170377A (en) * 2017-12-27 2018-06-15 上海爱数信息技术股份有限公司 It is a kind of that tape library is supported to drive the backup method concurrently write more

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030105781A1 (en) * 2001-12-05 2003-06-05 Koninklijke Philips Electronics N.V. Data storage methods and apparatuses with basic and extended file system capacity
CN1627421A (en) * 2003-12-13 2005-06-15 三星电子株式会社 Method and appts. for conversion of file system format
CN1858746A (en) * 2005-05-04 2006-11-08 三星电子株式会社 Apparatus and method for storing and managing additional data in file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030105781A1 (en) * 2001-12-05 2003-06-05 Koninklijke Philips Electronics N.V. Data storage methods and apparatuses with basic and extended file system capacity
CN1627421A (en) * 2003-12-13 2005-06-15 三星电子株式会社 Method and appts. for conversion of file system format
CN1858746A (en) * 2005-05-04 2006-11-08 三星电子株式会社 Apparatus and method for storing and managing additional data in file system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚平: "媒体资产管理与电视台业务扩展", 《媒体资产管理》 *
朱立谷等: "基于内容的媒体存储与管理的整合元数据模型", 《第一届建立和谐人机环境联合学术会议(HHME20005)论文集》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731497A (en) * 2013-12-31 2014-04-16 华为终端有限公司 Method for supporting wireless access to storage device and mobile route hot point device
US9848333B2 (en) 2013-12-31 2017-12-19 Huawei Device Co., Ltd. Method supporting wireless access to storage device, and mobile routing hotspot device
CN104049913A (en) * 2014-05-29 2014-09-17 北京捷成世纪科技股份有限公司 Method and device for managing magnetic tape file
CN108170377A (en) * 2017-12-27 2018-06-15 上海爱数信息技术股份有限公司 It is a kind of that tape library is supported to drive the backup method concurrently write more
CN108170377B (en) * 2017-12-27 2022-04-01 上海爱数信息技术股份有限公司 Backup method for supporting multi-drive concurrent writing of tape library

Similar Documents

Publication Publication Date Title
CN100578470C (en) Audio/video data access method and device based on raw device
CN104268088B (en) Vehicle-mounted DVR hard disc data storage method
CN101582084B (en) Method and device for data storage
CN103226965B (en) Based on the audio/video data access method of time bitmap
CN102096561B (en) Hierarchical data storage processing method, device and storage equipment
CN104346357A (en) File accessing method and system for embedded terminal
JP2006313548A (en) Device and method for storing and managing additional information in file system
CN103927251A (en) Log management method for embedded system
CN103745007A (en) File managing method and device
CN108628542B (en) File merging method and controller
CN104811645A (en) Embedded video-recording data storage method
CN102902709A (en) Space allocation fixing file memory system and implementation method
EP2317428A3 (en) Automatically linking partitions on a tape media device
US20150095294A1 (en) Elimination of Fragmentation of Files in Storage Medium by Utilizing Head Movement Time
JP5956971B2 (en) WORM cartridge support realized by LTFS (LinearTapeFileSystem)
US9442656B2 (en) Efficient use of metadata accompanying file writing to media
CN103092849A (en) File system cluster management method
CN109213898A (en) The video retrieval method and device of video monitoring system
CN100543748C (en) A kind of method and system of utilizing file allocation table to carry out the file tracking
CN102541957A (en) Method and device for operating data files on basis of data flow magnetic tapes
CN104133640B (en) From the fast quick-recovery of dormancy
CN102117623B (en) Method and device for recovering magnetic tape metadata
JP6433170B2 (en) Method to reduce the time required to delete recorded data by using read head and write head
WO2009110665A1 (en) Information storage medium for recording data according to journaling file system, and method of and apparatus for writing/recovering data using journaling file system
US8988806B2 (en) Tape drive buffer utilization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: BEIDA FANGZHENG ELECTRONICS CO., LTD., BEIJING

Effective date: 20131101

Owner name: XIN AOTE(BEIJING) VIDEO TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIDA FANGZHENG GROUP CO. LTD.

Effective date: 20131101

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100871 HAIDIAN, BEIJING TO: 100080 HAIDIAN, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20131101

Address after: Newauto Technology Building No. 49 Beijing 100080 Haidian District Wukesong Road

Applicant after: China Digital Video (Beijing) Limited

Address before: 100871 Beijing, Haidian District into the house road, founder of the building on the 9 floor, No. 298

Applicant before: Peking Founder Group Co., Ltd.

Applicant before: Beida Fangzheng Electronics Co., Ltd., Beijing

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120704