CN104123952B - Cache-free disc burning method and device - Google Patents

Cache-free disc burning method and device Download PDF

Info

Publication number
CN104123952B
CN104123952B CN201410342841.0A CN201410342841A CN104123952B CN 104123952 B CN104123952 B CN 104123952B CN 201410342841 A CN201410342841 A CN 201410342841A CN 104123952 B CN104123952 B CN 104123952B
Authority
CN
China
Prior art keywords
file
metadata
internal memory
imprinting
burned
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.)
Active
Application number
CN201410342841.0A
Other languages
Chinese (zh)
Other versions
CN104123952A (en
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.)
Wuhan Guang Yi Science And Technology Ltd
Original Assignee
Wuhan Guang Yi Science And Technology 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 Wuhan Guang Yi Science And Technology Ltd filed Critical Wuhan Guang Yi Science And Technology Ltd
Priority to CN201410342841.0A priority Critical patent/CN104123952B/en
Publication of CN104123952A publication Critical patent/CN104123952A/en
Application granted granted Critical
Publication of CN104123952B publication Critical patent/CN104123952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of without caching CDRW method and device
Technical field
The invention belongs to technical field of computer data storage, particularly relate to a kind of without caching CDRW method And device.
Background technology
Big data age data capacity and importance constantly promote, for the storage capacity of system, performance, can By property and cost, huge challenge is proposed.And using optical disc storage data is that a kind of cheap data preserve for a long time Mode.
Existing writing process, needs first being burned to file or catalogue set is merged into as CD mirroring form, Ensure that the actual capacity of file set is less than CD capacity, and need to build in advance Compact Disc Metadata district information, Including file each in log file set position on CD.Then by CD burning driver light Disk mirroring is burnt in CD.This process needs to provide extra caching for CD mirroring.
On the one hand existing mode may cause being burned to data when making mirror image by illegal access, the opposing party Face also causes CD burning process longer, and may need manual intervention.
Summary of the invention
In view of the above problems, it is an object of the invention to provide a kind of without caching CDRW method and device, Aim to solve the problem that owing to existing imprinting scheme first need to make compact disc image files being burned to file set merging, Carry out imprinting the most again so that the technical problem that data are dangerous and writing time is longer.
On the one hand, described nothing caching CDRW method comprises the steps:
File will be burned to read in internal memory;
It is loaded into internal memory is burned to file in CD burning driver, is directly burnt to data of optical disk district;
The metadata of each imprinting file is generated in internal memory;
After imprinting completes, from internal memory, obtain all files of imprinting are corresponding in CD metadata and write The meta-data region of CD.
On the other hand, described nothing caching disc recording apparatus includes:
File reads in unit, reads in internal memory for being burned to file;
File imprinting unit, for being loaded into being burned to file in internal memory in CD burning driver, directly It is burnt to data of optical disk district;
Metadata signal generating unit, for generating the metadata of each imprinting file in internal memory;
Metadata writing unit, for after imprinting completes, obtains all imprintings literary composition in CD from internal memory Metadata that part is corresponding also writes the meta-data region of CD.
The invention has the beneficial effects as follows: the present invention is without first making CD mirroring being burned to file set merging File or in advance generate meta-data region, carries out imprinting the most again, but directly leads to successively being burned to file Cross CD burning driver to be burnt in CD, can realize automatically without caching CDRW method based on this Flowing water imprinting, reduces unnecessary image file and makes intermediate link, it is ensured that reduce while Information Security The overall writing time of CD.
Accompanying drawing explanation
Fig. 1 is the flow chart without caching CDRW method that first embodiment of the invention provides;
Fig. 2 is the flow chart without caching CDRW method that second embodiment of the invention provides;
Fig. 3 CD zoning schematic diagram;
Fig. 4 is the block diagram without caching disc recording apparatus that third embodiment of the invention provides;
Fig. 5 is the block diagram without caching disc recording apparatus that fourth embodiment of the invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein Only in order to explain the present invention, it is not intended to limit the present invention.
Technical solution of the present invention is applicable to optical disc recording system, carves including batch CD, one or more CD Record driver, internal memory and storage control.Described CD burning driver passes through Back end data passage and storage Controller is connected, and internal memory is connected with described storage control, and described CD can be by automatic or manual Mode is loaded in CD burning driver.The present invention is without first making CD being burned to file set merging Image file or in advance generate meta-data region, carries out imprinting the most again, but directly depends on being burned to file Secondary it is burnt in CD by CD burning driver.The present invention reduces intermediate steps, improve reliability; Read in internal memory owing to withouting waiting for all imprinting files, make image file and metadata, decrease not Necessary image file makes intermediate link, reduces CD entirety writing time.Of the present invention in order to illustrate Technical scheme, illustrate below by specific embodiment.
Embodiment one:
Fig. 1 shows the flow process without caching CDRW method that the embodiment of the present invention provides, for the ease of saying Bright illustrate only the part relevant to the embodiment of the present invention.
Step S101, file will be burned to read in internal memory.
Step S102, it is loaded into internal memory is burned to file in CD burning driver, is directly burnt to light Dish data field.
Step S103, in internal memory, generate the metadata of each imprinting file.
If such as udf260 file system, after each file write CD, this document to be recorded in internal memory Document entry File Entry, including length, access time, ICB label etc., if there being catalogue, each Catalogue file identifier descriptor File to be had Identifier Descriptor etc..
Step S104, after imprinting completes, from internal memory, obtain the unit that all files of imprinting are corresponding in CD Data also write the meta-data region of CD.
Described imprinting completes to include two kinds of situations, first: data of optical disk district has write full;Second: although CD Data field is the most not full, but without being burned to file in internal memory, the most all of to be burned to file imprinting complete Finish.From internal memory, now obtain metadata corresponding to all files of imprinting and write the meta-data region of CD.
The present embodiment method, without using extra caching, decreases intermediate steps, improves reliability;By Reading in internal memory in withouting waiting for all imprinting files, make image file and metadata, decreasing need not The image file wanted makes intermediate link, decreases the overall writing time of CD.
As preferably, in the present embodiment, CD burning driver has multiple, it is possible to achieve file in parallel is carved Record.Concrete, above-mentioned steps S102 specifically includes following step:
A1, strategically, distributes to multiple CD burning driver by the file that is burned in internal memory;
A2, file correspondence will be burned to it is loaded into each CD burning driver, be burnt to CD the most parallel Data field.
Here, concrete allocation strategy within the present embodiment limit of consideration, is not treated according to the actual requirements Imprinting file distributes, and such as according to file size, each can be burned to file and be assigned to corresponding CD burning Driver, or the CD burning driving of correspondence can be distributed to according to the degree of being associated being burned to file Device, certainly also has other allocation strategies, does not specifically describes.Then each it is burned to file load In corresponding CD burning driver, each CD burning driver is burnt to data of optical disk district the most parallel.
In above-mentioned steps S103, in internal memory, the method for the metadata of stored CD file can use centralized Distribution method, it would however also be possible to employ demand assigned method.
For centralised allocation method, described step S103 specifically includes:
B1, in internal memory distribute fixed size region;
B2, when CD burning driver imprinting file, generate described imprinting file corresponding element data and store In described region.
In this method of salary distribution, the region for each CD one fixed size of distribution is used for depositing optical file pair The metadata answered, when imprinting, generates metadata corresponding to imprinting file and is stored in corresponding region.
For allocation method based on demand, above-mentioned steps S103 specifically includes:
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, described metadata is stored in described region.
In this method of salary distribution, when imprinting file, first generate the metadata that imprinting file is corresponding, then basis Metadata size divides the region of corresponding size in internal memory, finally described metadata is stored in described division Region in.
Embodiment two:
Fig. 2 shows the flow process without caching CDRW method that the embodiment of the present invention provides, for the ease of saying Bright illustrate only the part relevant to the embodiment of the present invention.
Step S201, file will be burned to read in internal memory.
Step S202, when receiving file and updating instruction, new file is read in and replaces corresponding treating more in internal memory New file.
Step S203, it is loaded into internal memory is burned to file in CD burning driver, is directly burnt to light Dish data field.
Step S204, in internal memory, generate the metadata of each imprinting file.
Step S205, after imprinting completes, from internal memory, obtain the unit that all files of imprinting are corresponding in CD Data also write the meta-data region of CD.
Step S206, by CD metadata mirror image write CD MIRROR SITE.
The present embodiment is increments step S202 and S206 on the basis of embodiment one.
In step S202, read in file processes in internal memory, if having received file to update instruction, i.e. Need renewal to be burned to file, now update instruction correspondence by new file write internal memory replaces described file File to be updated.
In the present embodiment, the process of CD write, for first to write data field, then writes meta-data region, usual light Dish also includes MIRROR SITE, is used for backing up metadata, be normally at CD decline, as shown in Figure 3. In step S206, when determining that CD will not be changed again, whole metadata can be write including adding Part, the MIRROR SITE of write CD.
Embodiment three:
Fig. 4 shows the block diagram without caching disc recording apparatus that the embodiment of the present invention provides, in order to It is easy to illustrate to illustrate only the part relevant to the embodiment of the present invention.
What the present embodiment provided includes without caching disc recording apparatus:
File reads in unit 41, reads in internal memory for being burned to file;
File imprinting unit 42, for being loaded into being burned to file in internal memory in CD burning driver, directly Connect and be burnt to data of optical disk district;
Metadata signal generating unit 43, for generating the metadata of each imprinting file in internal memory;
Metadata writing unit 44, for after imprinting completes, obtains all imprintings in CD from internal memory Metadata that file is corresponding also writes the meta-data region of CD.
Each functional unit correspondence that the present embodiment provides achieves step S101-S104 in embodiment one.
As a kind of preferred implementation, in the present embodiment, CD burning driver has multiple, it is possible to achieve File in parallel imprinting.Concrete, described file imprinting unit 42 includes:
File distribution module, for strategically, distributes to multiple CD carve the file that is burned in internal memory Record driver;
File imprinting module, is loaded into each CD burning driver, directly for being burned to file correspondence It is burnt to data of optical disk district parallel.
In internal memory, the method for the metadata of stored CD file can use centralised allocation method, it is also possible to Use demand assigned method.
For centralised allocation method, described metadata signal generating unit 43 specifically includes:
Fixed area divides module, for distributing fixed size region in internal memory;
Generate and preserve module, for when CD burning driver imprinting file, generate described imprinting file pair Answer metadata and be stored in described region.
In this method of salary distribution, the region for each CD one fixed size of distribution is used for depositing optical file pair The metadata answered, when imprinting, generates metadata corresponding to imprinting file and is stored in corresponding region.
For allocation method based on demand, described metadata signal generating unit 43 specifically includes:
Metadata generation module, for when CD burning driver imprinting file, generates described imprinting file Corresponding element data;
Computation partition module, is used for calculating described metadata size, and divides corresponding size area in internal memory;
Metadata memory module, for being stored in described metadata in described region.
In this method of salary distribution, when imprinting file, first generate the metadata that imprinting file is corresponding, then basis Metadata size divides the region of corresponding size in internal memory, finally described metadata is stored in described division Region in.
Embodiment four:
Fig. 5 shows the block diagram without caching disc recording apparatus that the embodiment of the present invention provides, in order to It is easy to illustrate to illustrate only the part relevant to the embodiment of the present invention.
What the present embodiment provided includes without caching disc recording apparatus:
File reads in unit 51, reads in internal memory for being burned to file;
File updating block 52, for when receiving file and updating instruction, reads in new file in internal memory and replaces Corresponding file to be updated;
File imprinting unit 53, for being loaded into being burned to file in internal memory in CD burning driver, directly Connect and be burnt to data of optical disk district;
Metadata signal generating unit 54, for generating the metadata of each imprinting file in internal memory;
Metadata writing unit 55, for after imprinting completes, obtains all imprintings in CD from internal memory Metadata that file is corresponding also writes the meta-data region of CD;
Mirror image processing unit 56, for by the MIRROR SITE of metadata mirror image write CD in CD.
The present embodiment adds updating block 52 and mirror image processing unit 56 on the basis of embodiment three, when When needing to update file, file updating block 52, reads in the literary composition to be updated replacing correspondence in internal memory by new file Part.Finally after CD write metadata, when determining that CD content no longer changes, mirror image processing unit 56 By the MIRROR SITE of metadata mirror image write CD in CD.
To sum up, the invention provides a kind of nothing caching imprinting technical scheme, extra caching can not be used, Decrease intermediate steps, improve reliability;Intermediate link is made owing to decreasing unnecessary image file, Decrease the overall writing time of CD;Additionally preferred, owing to can carve parallel between CD burning driver Record, improves the speed that system is run.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention Protection domain within.

Claims (8)

1. a nothing caching CDRW method, it is characterised in that described method includes:
File will be burned to read in internal memory;
It is loaded into internal memory is burned to file in CD burning driver, is directly burnt to data of optical disk district;
The metadata of each imprinting file is generated in internal memory;
After imprinting completes, from internal memory, obtain all files of imprinting are corresponding in CD metadata and write The meta-data region of CD;
The metadata mode wherein generating each imprinting file in internal memory can use centralised allocation side Formula, it would however also be possible to employ distribution according to need mode;
For centralised allocation mode, the described metadata step generating each imprinting file in internal memory, Specifically include: in internal memory, distribute fixed size region;When CD burning driver imprinting file, generate Described imprinting file corresponding element data are also stored in described fixed size region;
For distribution according to need mode, the described metadata step generating each imprinting file in internal memory, tool Body includes: when CD burning driver imprinting file, generates described imprinting file corresponding element data;Calculate Described metadata size, and in internal memory, divide corresponding size area;It is described right described metadata to be stored in Answer in size area.
2. method as claimed in claim 1, it is characterised in that described method also includes:
By the MIRROR SITE of metadata mirror image write CD in CD.
3. method as claimed in claim 1 or 2, it is characterised in that the described file that will be burned to reads in internal memory After middle step, also include:
When receiving file and updating instruction, new file is read in the file to be updated replacing correspondence in internal memory.
4. as claimed in claim 3 method, it is characterised in that described be loaded into being burned to file in internal memory In CD burning driver, directly it is burnt to data of optical disk district step, specifically includes:
Strategically, the file that is burned in internal memory is distributed to multiple CD burning driver;
File correspondence will be burned to and be loaded into each CD burning driver, be burnt to data of optical disk the most parallel District.
5. a nothing caching disc recording apparatus, it is characterised in that described device includes:
File reads in unit, reads in internal memory for being burned to file;
File imprinting unit, for being loaded into being burned to file in internal memory in CD burning driver, directly It is burnt to data of optical disk district;
Metadata signal generating unit, for generating the metadata of each imprinting file in internal memory;
Metadata writing unit, for after imprinting completes, obtains all imprintings literary composition in CD from internal memory Metadata that part is corresponding also writes the meta-data region of CD;
Wherein said metadata signal generating unit can be to use centralised allocation mode, it would however also be possible to employ distribution according to need Mode realizes;
For centralised allocation mode, described metadata signal generating unit specifically includes: fixed area divides module, For distributing fixed size region in internal memory;Generate and preserve module, in CD burning driver imprinting During file, generate described imprinting file corresponding element data and be stored in described fixed size region;
For distribution according to need mode, described metadata signal generating unit specifically includes: metadata generation module, uses When at CD burning driver imprinting file, generate described imprinting file corresponding element data;Computation partition mould Block, is used for calculating described metadata size, and divides corresponding size area in internal memory;Metadata storage mould Block, for being stored in described metadata in described corresponding size area.
6. device as claimed in claim 5, it is characterised in that described device also includes:
Mirror image processing unit, for by the MIRROR SITE of metadata mirror image write CD in CD.
7. device as described in claim 5 or 6, it is characterised in that described device also includes:
File updating block, for when receiving file and updating instruction, right by new file reading internal memory is replaced The file to be updated answered.
8. device as claimed in claim 7, it is characterised in that described file imprinting unit includes:
File distribution module, for strategically, distributes to multiple CD carve the file that is burned in internal memory Record driver;
File imprinting module, is loaded into each CD burning driver, directly for being burned to file correspondence It is burnt to data of optical disk district parallel.
CN201410342841.0A 2014-07-18 2014-07-18 Cache-free disc burning method and device Active CN104123952B (en)

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 CN104123952A (en) 2014-10-29
CN104123952B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202414B (en) * 2016-07-12 2019-11-22 武汉光忆科技有限公司 A kind of file system and file memory method and system based on huge capacity compact discs library
CN112530467B (en) * 2019-10-08 2024-03-12 北京中科开迪软件有限公司 Method and system for additionally burning optical disk storage
CN112053707B (en) * 2020-09-10 2021-12-17 浙江大华技术股份有限公司 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
CN113823331B (en) * 2021-10-12 2023-02-28 成都统信软件技术有限公司 Optical disc additional recording method and device and computing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2517075Y (en) * 2001-12-28 2002-10-16 德泰科技股份有限公司 Cd-rw
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104123952A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN104123952B (en) Cache-free disc burning method and device
US20180260318A1 (en) Read-write control method for memory, and corresponding memory and server
US20180150640A1 (en) Policy aware unified file system
US9298389B2 (en) Operating a memory management controller
JP6178859B2 (en) Database storage system based on optical disk and method of using the same
CN103077121B (en) The method of data management in a kind of flash memory device and device
CN103399823B (en) The storage means of business datum, equipment and system
US20190012345A1 (en) Data set connection manager having a plurality of data sets to represent one data set
US20120102137A1 (en) Cluster cache coherency protocol
CN104281717B (en) A kind of method for setting up magnanimity ID mapping relations
CN105512240A (en) Data copying method and system based on different database
CN102521330A (en) Mirror distributed storage method under desktop virtual environment
CN103985393B (en) A kind of multiple optical disk data parallel management method and device
CN104239438A (en) File information storage method and file information read-write method based on separate storage
CN102521274A (en) Ibatis-based SQL script dynamic loading method
CN105183378A (en) Adaptive cache mixed reading/writing method
CN103092765B (en) Solid-state memory system, device and method for writing data
CN104008207A (en) Optical disc based external data storage system for database and data storage method
CN104615637A (en) Data exchange method and data exchange intermediate device
CN101236525A (en) File memory, reading, deleting and copying method and its relevant system
WO2008126202A1 (en) Load distribution program for storage system, load distribution method for storage system, and storage management device
CN1860547B (en) Recording device, reproduction device, recording method, reproduction method and operation method
CN105260139A (en) Magnetic disk management method and system
CN107506466A (en) A kind of small documents storage method and system
CN105786721A (en) Memory address mapping management method and processor

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