CN104123952A - Cache-free disc burning method and device - Google Patents
Cache-free disc burning method and device Download PDFInfo
- Publication number
- CN104123952A CN104123952A CN201410342841.0A CN201410342841A CN104123952A CN 104123952 A CN104123952 A CN 104123952A CN 201410342841 A CN201410342841 A CN 201410342841A CN 104123952 A CN104123952 A CN 104123952A
- Authority
- CN
- China
- Prior art keywords
- file
- imprinting
- internal memory
- metadata
- burning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Optical Recording Or Reproduction (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
The invention is applicable to the field of computer data storage and provides a cache-free disc burning method and device. The method includes that files to be burned are read into an internal storage; the files to be burned in the internal storage are loaded in a disc burning driver to be directly burned in a disc data area; metadata of each already burned file are generated in the internal storage; after burning is finished, metadata which correspond to all already burned files in a disc are obtained from the internal storage and written in a metadata area of the disc. According to the cache-free disc burning method and device, extra caches are not required, middle steps are reduced, the reliability is improved, mirror image files and metadata are made without waiting for all burned files to be read in the internal storage, thereby, unnecessary middle steps of making the mirror image files are reduced, and the whole burning time of the disc is reduced.
Description
Technical field
The invention belongs to technical field of computer data storage, relate in particular to a kind of without buffer memory CDRW method and device.
Background technology
Large data age data capacity and importance constantly promote, and for capacity, performance, reliability and the cost of storage system, propose huge challenge.And use optical disc storage data, are long-term preserving types of data of a kind of cheapness.
Existing imprinting process, needing first becomes CD mirroring form treating that imprinting file or catalogue set merge, the actual capacity that guarantees file set is less than CD capacity, and needs to build in advance Compact Disc Metadata district information, comprises the position of each file on CD in log file set.Then by CD burning driver, CD mirroring is burnt in CD.This process need provides extra buffer memory for CD mirroring.
Existing mode may cause on the one hand until engraving data when making mirror image by illegal access, also cause on the other hand CD burning process longer, and may need manual intervention.
Summary of the invention
In view of the above problems, the object of the present invention is to provide a kind of without buffer memory CDRW method and device, be intended to solve because existing imprinting scheme need first will be made compact disc image files treating that imprinting file set merges, and then carry out imprinting, make the technical matters that data are dangerous and the imprinting time is longer.
On the one hand, describedly without buffer memory CDRW method, comprise the steps:
To treat that imprinting file reads in internal memory;
To in internal memory, treat that imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district;
In internal memory, generate each metadata of imprinting file;
After imprinting completes, from internal memory, obtain the metadata that in CD, all files of imprinting are corresponding and write the meta-data region of CD.
On the other hand, describedly without buffer memory CD burning device, comprise:
File reads in unit, for treating that imprinting file reads in internal memory;
File imprinting unit, for treating internal memory imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district;
Metadata generation unit, for generating each metadata of imprinting file at internal memory;
Metadata writing unit after completing when imprinting, obtains the metadata that in CD, all files of imprinting are corresponding and writes the meta-data region of CD from internal memory.
The invention has the beneficial effects as follows: the present invention is without first making compact disc image files or generator data field in advance treating that imprinting file set merges, and then carry out imprinting, but directly treating that imprinting file is burnt in CD by CD burning driver successively, based on this, without buffer memory CDRW method, can realize automatic streamline imprinting, reduce unnecessary image file and make intermediate link, the whole imprinting time of having reduced CD in the time of guaranteeing data security property.
Accompanying drawing explanation
Fig. 1 is the process flow diagram without buffer memory CDRW method that first embodiment of the invention provides;
Fig. 2 is the process flow diagram without buffer memory CDRW method that second embodiment of the invention provides;
Fig. 3 CD zoning schematic diagram;
Fig. 4 is the block diagram without buffer memory CD burning device that third embodiment of the invention provides;
Fig. 5 is the block diagram without buffer memory CD burning device that fourth embodiment of the invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Technical solution of the present invention is applicable to CD burning system, comprises CD, one or more CD burning driver, internal memory and memory controller in batches.Described CD burning driver is connected with memory controller by Back end data passage, and internal memory is connected with described memory controller, and described CD can be loaded into by automatic or manual mode in CD burning driver.The present invention is without first making compact disc image files or generator data field in advance treating that imprinting file set merges, and then carries out imprinting, but directly treating that imprinting file is burnt in CD by CD burning driver successively.The present invention has reduced intermediate steps, has improved reliability; Owing to not needing to wait for that all imprinting files read in internal memory, make image file and metadata, reduce unnecessary image file and made intermediate link, reduce the whole imprinting time of CD.For technical solutions according to the invention are described, below by specific embodiment, describe.
embodiment mono-:
Fig. 1 shows the flow process without buffer memory CDRW method that the embodiment of the present invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
Step S101, will treat that imprinting file reads in internal memory.
Step S102, will in internal memory, treat that imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district.
Step S103, in internal memory, generate each metadata of imprinting file.
If such as udf260 file system, each file writes after CD, in internal memory, to record the document entry File Entry of this document, comprise length, access time, ICB label etc., if there is catalogue, each catalogue will have file identifier descriptor File Identifier Descriptor etc.
Step S104, after imprinting completes, from internal memory, obtain the metadata that in CD, all files of imprinting are corresponding and write the meta-data region of CD.
Described imprinting completes the two kinds of situations that comprise, and first: data of optical disk district has write full; Second: although data of optical disk district is not also write completely, in internal memory, without treating imprinting file, imprinting is complete for all imprinting files for the treatment of.Now from internal memory, obtain the metadata that all files of imprinting are corresponding and write the meta-data region of CD.
The present embodiment method, without using extra buffer memory, has reduced intermediate steps, has improved reliability; Owing to not needing to wait for that all imprinting files read in internal memory, make image file and metadata, reduce unnecessary image file and made intermediate link, reduced the whole imprinting time of CD.
As preferably, in the present embodiment, CD burning driver has a plurality of, can realize file in parallel imprinting.Concrete, above-mentioned steps S102 specifically comprises the steps:
A1, according to strategy, by the imprinting file allocation for the treatment of in internal memory, give a plurality of CD burning drivers;
A2, will treat that imprinting file correspondence is loaded into each CD burning driver, directly the parallel data of optical disk district that is burnt to.
Here, concrete allocation strategy is not within the present embodiment limit of consideration, treat according to the actual requirements imprinting file allocation, such as can each being treated to imprinting file allocation is to corresponding CD burning driver according to file size, or can distribute to corresponding CD burning driver according to the degree of being associated for the treatment of imprinting file, certainly also have other allocation strategies, do not specifically describe here.Then each is treated to imprinting file is loaded in corresponding CD burning driver, each CD burning driver is the parallel data of optical disk district that is burnt to directly.
In above-mentioned steps S103, in internal memory, the method for the metadata of stored CD file can adopt centralised allocation method, also can adopt demand assigned method.
For centralised allocation method, described step S103 specifically comprises:
B1, in internal memory, distribute fixed size region;
B2, when CD burning driver imprinting file, generate described imprinting file corresponding element data and be stored in described region.
In this allocation scheme, for each CD distributes the region of a fixed size for depositing the metadata that optical file is corresponding, when imprinting, generate the metadata that imprinting file is corresponding and be stored in corresponding region.
For allocation method based on demand, above-mentioned steps S103 specifically comprises:
C1, when CD burning driver imprinting file, generate described imprinting file corresponding element data;
C2, calculate described metadata size, and in internal memory, divide corresponding size area;
C3, by described metadata store in described region.
In this allocation scheme, when imprinting file, first generate the metadata that imprinting file is corresponding, then according to metadata size, in internal memory, divide the region of corresponding size, finally by described metadata store in the region of described division.
embodiment bis-:
Fig. 2 shows the flow process without buffer memory CDRW method that the embodiment of the present invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
Step S201, will treat that imprinting file reads in internal memory.
Step S202, when receiving file update instruction, new file is read in and in internal memory, replaces corresponding file to be updated.
Step S203, will in internal memory, treat that imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district.
Step S204, in internal memory, generate each metadata of imprinting file.
Step S205, after imprinting completes, from internal memory, obtain the metadata that in CD, all files of imprinting are corresponding and write the meta-data region of CD.
Step S206, metadata mirror-write in CD is entered to the MIRROR SITE of CD.
The present embodiment is recruitment step S202 and S206 on the basis of embodiment mono-.
In step S202, in internal memory, read in file process, if received file update instruction, need to upgrade and treat imprinting file, now will in new file write memory, replace file to be updated corresponding to described file update instruction.
In the present embodiment, the process Wei Xian data writing district that CD writes, then writes meta-data region, also comprises MIRROR SITE in optical discs in general, for backing up metadata, is generally positioned at CD decline, as shown in Figure 3.In step S206, when definite CD can not changed again, whole metadata can be comprised and append the part of writing, write the MIRROR SITE of CD.
embodiment tri-:
Fig. 4 shows the block diagram without buffer memory CD burning device that the embodiment of the present invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
What the present embodiment provided comprises without buffer memory CD burning device:
File reads in unit 41, for treating that imprinting file reads in internal memory;
File imprinting unit 42, for treating internal memory imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district;
Metadata generation unit 43, for generating each metadata of imprinting file at internal memory;
Metadata writing unit 44 after completing when imprinting, obtains the metadata that in CD, all files of imprinting are corresponding and writes the meta-data region of CD from internal memory.
Each functional unit correspondence that the present embodiment provides has realized the step S101-S104 in embodiment mono-.
As a kind of preferred implementation, in the present embodiment, CD burning driver has a plurality of, can realize file in parallel imprinting.Concrete, described file imprinting unit 42 comprises:
File allocation module, for according to strategy, will treat that imprinting file allocation is to a plurality of CD burning drivers in internal memory;
File imprinting module, for treating that imprinting file correspondence is loaded into each CD burning driver, directly walks abreast and is burnt to data of optical disk district.
In internal memory, the method for the metadata of stored CD file can adopt centralised allocation method, also can adopt demand assigned method.
For centralised allocation method, described metadata generation unit 43 specifically comprises:
Fixed area is divided module, for distribute fixed size region at internal memory;
Generate to preserve module, for when the CD burning driver imprinting file, generate described imprinting file corresponding element data and be stored in described region.
In this allocation scheme, for each CD distributes the region of a fixed size for depositing the metadata that optical file is corresponding, when imprinting, generate the metadata that imprinting file is corresponding and be stored in corresponding region.
For allocation method based on demand, described metadata generation unit 43 specifically comprises:
Metadata generation module, for when the CD burning driver imprinting file, generates described imprinting file corresponding element data;
Calculate and divide module, for calculating described metadata size, and in internal memory, divide corresponding size area;
Metadata store module, for by described metadata store in described region.
In this allocation scheme, when imprinting file, first generate the metadata that imprinting file is corresponding, then according to metadata size, in internal memory, divide the region of corresponding size, finally by described metadata store in the region of described division.
embodiment tetra-:
Fig. 5 shows the block diagram without buffer memory CD burning device that the embodiment of the present invention provides, and only shows for convenience of explanation the part relevant to the embodiment of the present invention.
What the present embodiment provided comprises without buffer memory CD burning device:
File reads in unit 51, for treating that imprinting file reads in internal memory;
File update unit 52, for when receiving file update instruction, reads in new file the file to be updated of replacing correspondence in internal memory;
File imprinting unit 53, for treating internal memory imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district;
Metadata generation unit 54, for generating each metadata of imprinting file at internal memory;
Metadata writing unit 55 after completing when imprinting, obtains the metadata that in CD, all files of imprinting are corresponding and writes the meta-data region of CD from internal memory;
Mirror image processing unit 56, for entering CD metadata mirror-write the MIRROR SITE of CD.
The present embodiment has increased updating block 52 and mirror image processing unit 56 on the basis of embodiment tri-, and when needs updating file, file update unit 52, reads in new file the file to be updated of replacing correspondence in internal memory.Finally at CD, write after metadata, when definite CD content no longer changes, mirror image processing unit 56 enters metadata mirror-write in CD the MIRROR SITE of CD.
To sum up, the invention provides a kind ofly without buffer memory imprinting technical scheme, can not use extra buffer memory, reduced intermediate steps, improved reliability; Owing to having reduced unnecessary image file, make intermediate link, reduced the whole imprinting time of CD; Preferred in addition, due to the imprinting that can walk abreast between CD burning driver, improved the speed of system operation.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. without a buffer memory CDRW method, it is characterized in that, described method comprises:
To treat that imprinting file reads in internal memory;
To in internal memory, treat that imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district;
In internal memory, generate each metadata of imprinting file;
After imprinting completes, from internal memory, obtain the metadata that in CD, all files of imprinting are corresponding and write the meta-data region of CD.
2. method as claimed in claim 1, is characterized in that, described method also comprises:
Metadata mirror-write in CD is entered to the MIRROR SITE of CD.
3. method as claimed in claim 1 or 2, is characterized in that, describedly will treat that imprinting file reads in internal memory after step, also comprises:
When receiving file update instruction, new file is read in to the file to be updated of replacing correspondence in internal memory.
4. method as claimed in claim 3, is characterized in that, describedly by treating in internal memory that imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district step, specifically comprises:
According to strategy, by the imprinting file allocation for the treatment of in internal memory, give a plurality of CD burning drivers;
To treat that imprinting file correspondence is loaded into each CD burning driver, directly the parallel data of optical disk district that is burnt to.
5. method as claimed in claim 4, is characterized in that, described each metadata step of imprinting file that generates in internal memory, specifically comprises:
In internal memory, distribute fixed size region;
When CD burning driver imprinting file, generate described imprinting file corresponding element data and be stored in described region.
6. method as claimed in claim 4, is characterized in that, described each metadata step of imprinting file that generates in internal memory, specifically comprises:
When CD burning driver imprinting file, generate described imprinting file corresponding element data;
Calculate described metadata size, and in internal memory, divide corresponding size area;
By described metadata store in described region.
7. without a buffer memory CD burning device, it is characterized in that, described device comprises:
File reads in unit, for treating that imprinting file reads in internal memory;
File imprinting unit, for treating internal memory imprinting file is loaded in CD burning driver, is directly burnt to data of optical disk district;
Metadata generation unit, for generating each metadata of imprinting file at internal memory;
Metadata writing unit after completing when imprinting, obtains the metadata that in CD, all files of imprinting are corresponding and writes the meta-data region of CD from internal memory.
8. install as claimed in claim 7, it is characterized in that, described device also comprises:
Mirror image processing unit, for entering CD metadata mirror-write the MIRROR SITE of CD.
9. device as described in claim 7 or 8, is characterized in that, described device also comprises:
File update unit, for when receiving file update instruction, reads in new file the file to be updated of replacing correspondence in internal memory.
10. install as claimed in claim 9, it is characterized in that, described file imprinting unit comprises:
File allocation module, for according to strategy, will treat that imprinting file allocation is to a plurality of CD burning drivers in internal memory;
File imprinting module, for treating that imprinting file correspondence is loaded into each CD burning driver, directly walks abreast and is burnt to data of optical disk district.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342841.0A CN104123952B (en) | 2014-07-18 | 2014-07-18 | Cache-free disc burning method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410342841.0A CN104123952B (en) | 2014-07-18 | 2014-07-18 | Cache-free disc burning method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104123952A true CN104123952A (en) | 2014-10-29 |
CN104123952B CN104123952B (en) | 2017-01-11 |
Family
ID=51769339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410342841.0A Active CN104123952B (en) | 2014-07-18 | 2014-07-18 | Cache-free disc burning method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104123952B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018010665A1 (en) * | 2016-07-12 | 2018-01-18 | 武汉光忆科技有限公司 | Large-capacity optical disc library-based file system and file storage method |
CN112053707A (en) * | 2020-09-10 | 2020-12-08 | 浙江大华技术股份有限公司 | Recording method and device for multimedia equipment, storage medium and electronic device |
CN112530467A (en) * | 2019-10-08 | 2021-03-19 | 北京中科开迪软件有限公司 | Optical disk storage additional recording method and system |
CN112667163A (en) * | 2020-12-29 | 2021-04-16 | 武汉创视奇科技有限公司 | Optical storage data management method, system and equipment |
CN113823331A (en) * | 2021-10-12 | 2021-12-21 | 成都统信软件技术有限公司 | Optical disc additional recording method and device and computing equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2517075Y (en) * | 2001-12-28 | 2002-10-16 | 德泰科技股份有限公司 | Cd-rw |
JP2003061029A (en) * | 2001-08-10 | 2003-02-28 | Canon Inc | Image processor, image processing method, recording medium, program and image processing system |
CN102014158A (en) * | 2010-11-29 | 2011-04-13 | 北京兴宇中科科技开发股份有限公司 | Cloud storage service client high-efficiency fine-granularity data caching system and method |
CN102200890A (en) * | 2010-03-26 | 2011-09-28 | 创惟科技股份有限公司 | Storage device for generating virtual disk-recording driver and method thereof |
CN102375696A (en) * | 2010-08-20 | 2012-03-14 | 英业达股份有限公司 | Data storage system and data access method by utilizing virtual disk |
-
2014
- 2014-07-18 CN CN201410342841.0A patent/CN104123952B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003061029A (en) * | 2001-08-10 | 2003-02-28 | Canon Inc | Image processor, image processing method, recording medium, program and image processing system |
CN2517075Y (en) * | 2001-12-28 | 2002-10-16 | 德泰科技股份有限公司 | Cd-rw |
CN102200890A (en) * | 2010-03-26 | 2011-09-28 | 创惟科技股份有限公司 | Storage device for generating virtual disk-recording driver and method thereof |
CN102375696A (en) * | 2010-08-20 | 2012-03-14 | 英业达股份有限公司 | Data storage system and data access method by utilizing virtual disk |
CN102014158A (en) * | 2010-11-29 | 2011-04-13 | 北京兴宇中科科技开发股份有限公司 | Cloud storage service client high-efficiency fine-granularity data caching system and method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018010665A1 (en) * | 2016-07-12 | 2018-01-18 | 武汉光忆科技有限公司 | Large-capacity optical disc library-based file system and file storage method |
CN112530467A (en) * | 2019-10-08 | 2021-03-19 | 北京中科开迪软件有限公司 | Optical disk storage additional recording method and system |
CN112530467B (en) * | 2019-10-08 | 2024-03-12 | 北京中科开迪软件有限公司 | Method and system for additionally burning optical disk storage |
CN112053707A (en) * | 2020-09-10 | 2020-12-08 | 浙江大华技术股份有限公司 | Recording method and device for multimedia equipment, storage medium and electronic device |
CN112667163A (en) * | 2020-12-29 | 2021-04-16 | 武汉创视奇科技有限公司 | Optical storage data management method, system and equipment |
CN113823331A (en) * | 2021-10-12 | 2021-12-21 | 成都统信软件技术有限公司 | Optical disc additional recording method and device and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104123952B (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831734B2 (en) | Update-insert for key-value storage interface | |
US8983967B2 (en) | Data storage system having mutable objects incorporating time | |
US20080195833A1 (en) | Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit | |
CN104123952A (en) | Cache-free disc burning method and device | |
US9298389B2 (en) | Operating a memory management controller | |
US10248556B2 (en) | Forward-only paged data storage management where virtual cursor moves in only one direction from header of a session to data field of the session | |
CN103440206B (en) | A kind of solid state hard disc and mixed-use developments method thereof | |
CN105183839A (en) | Hadoop-based storage optimizing method for small file hierachical indexing | |
CN104699417A (en) | Data storage device and data access method thereof | |
CN102136290A (en) | Method for storing embedded real-time video files | |
CN102682012A (en) | Method and device for reading and writing data in file system | |
CN103399823B (en) | The storage means of business datum, equipment and system | |
EP2916240A1 (en) | Database storage system based on compact disk and method using the system | |
US7971022B2 (en) | Apparatus and method of processing data of non-volatile memory using transaction block | |
CN104331453A (en) | Distributed file system and constructing method thereof | |
CN104239438A (en) | File information storage method and file information read-write method based on separate storage | |
CN104134447A (en) | Compact disc storage system and compact disc data reading and writing method | |
CN102402622A (en) | Memory page managing and scheduling method for embedded memory database | |
CN105867836A (en) | Storage management method and apparatus as well as stream media system | |
CN103430178A (en) | Method, apparatus and product of data updating | |
CN103713926A (en) | Method and system for updating software of client in advance | |
CN103092849A (en) | File system cluster management method | |
CN102024051B (en) | Data updating method for distributed memory database | |
CN104808953A (en) | Device and method for controlling data storage and mobile terminal | |
CN102841894A (en) | Data storage method of file allocation table |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |