CN109426434A - A kind of data of optical disk reading/writing method - Google Patents

A kind of data of optical disk reading/writing method Download PDF

Info

Publication number
CN109426434A
CN109426434A CN201710731391.8A CN201710731391A CN109426434A CN 109426434 A CN109426434 A CN 109426434A CN 201710731391 A CN201710731391 A CN 201710731391A CN 109426434 A CN109426434 A CN 109426434A
Authority
CN
China
Prior art keywords
read
user
write
request
queue
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
Application number
CN201710731391.8A
Other languages
Chinese (zh)
Other versions
CN109426434B (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.)
Beijing E Hualu Information Technology Co Ltd
Original Assignee
Beijing E Hualu Information Technology 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 Beijing E Hualu Information Technology Co Ltd filed Critical Beijing E Hualu Information Technology Co Ltd
Priority to CN201710731391.8A priority Critical patent/CN109426434B/en
Publication of CN109426434A publication Critical patent/CN109426434A/en
Application granted granted Critical
Publication of CN109426434B publication Critical patent/CN109426434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0617Improving the reliability of storage systems in relation to availability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0677Optical disk device, e.g. CD-ROM, DVD
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The present invention provides a kind of data of optical disk reading/writing methods, applied to CD server, it include: configurable write buffer area and read buffer area in disk, write buffer area includes the first write request queue for receiving user's write request, user's write request includes the object optical disc of user's write request, read buffer area includes the first read request queue for receiving user's read request, and user's read request includes the object optical disc of user's read request;The first write request queue is recorded in user's write request, user's write request and the history write request of same target CD are merged;The first read request queue is recorded in user's read request, user's read request and the history read request of same target CD are merged.The present invention reduces the numbers of removable disk operation, extend the service life of CD server mechanical part, reduce maintenance cost, while reducing the inaccessible time of data.

Description

A kind of data of optical disk reading/writing method
Technical field
The present invention relates to technical field of data storage, and in particular to a kind of data of optical disk reading/writing method.
Background technique
With social informatization fast development, human society has stepped into the mass data epoch.Compared with disk, CD is one The more cheap medium for being suitable for long-term preservation data of kind.
CD server is mostly used to carry out data storage greatly at present, each CD server accommodates multiple CDs, and configures certain proportion CD-ROM drive.However, in the existing technology for carrying out reading and writing data using CD server, when the data distribution to be accessed is in different light On disk, must carry out frequent removable disk operation to cause the frequent use of CD server mechanical part leads to CD server mechanical part The lost of life, maintenance cost increases, while increasing the inaccessible time of data.
Summary of the invention
In view of above-mentioned analysis, the invention proposes a kind of data of optical disk reading/writing methods, deposit in the prior art to solve The above problem.
To achieve the above object, the present invention adopts the following technical scheme:
First aspect present invention provides a kind of optical disc data uriting-in method, is applied to CD server, comprising: in disk Configurable write buffer area is used for cache user write request, and the write buffer area includes first for receiving user's write request Write request queue, user's write request include the object optical disc of user's write request;User's write request is recorded described first Write request queue with user's write request there is the history of same target CD to write when existing in first write request queue When request, user's write request and the history write request are merged.
Preferably, when there is no have same target CD with user's write request in first write request queue When history write request, new write request record is generated in first write request queue.
Preferably, the write buffer area further includes the second write request for storing the write request for carrying out CD burning Queue.
Preferably, when first write request queue, which receives user's write request, reaches the first preset time, first is write Request queue is set to the second write request queue, and the second write request queue is set to the first write request queue.
It preferably, will when the ratio that first write request queue accounts for write buffer area total capacity reaches the first preset value First write request queue is set to the second write request queue, and the second write request queue is set to the first write request queue.
Preferably, the optical disc data uriting-in method further include: by user's write request in second write request queue The read-write requests that disk is written handle queue, and empty second write request queue;The read-write requests processing queue is used for By the data carving of user's write request to CD and by the reading data of user's read request to read buffer area.
Preferably, when being user's write request in read-write requests processing queue, CD server imprinting interface is called, by institute The data carving of user's write request is stated to CD, read buffer area is written into the data of user's write request of imprinting;It is described to read to delay Area's configuration is deposited in disk, is used for cache user read request.
Second aspect of the present invention provides a kind of optical disk data read out method, is applied to CD server, comprising: in disk Read buffer area is configured, is used for cache user read request, the read buffer area includes first for receiving user's read request Read request queue, user's read request include the object optical disc of user's read request;User's read request is recorded described first Read request queue is read when there is the history for having same target CD with user's read request in first read request queue When request, user's read request and the history read request are merged.
Preferably, when there is no have same target CD with user's read request in first read request queue When history read request, new read request record is generated in first read request queue.
Preferably, when the data of user's read request are at read buffer area, data is directly read and are sent to user.
Preferably, the read buffer area further includes the second read request for storing the read request for carrying out disc reading Queue.
Preferably, when first read request queue, which receives user's read request, reaches the second preset time, first is read Request queue is set to the second read request queue, and the second read request queue is set to the first read request queue.
Preferably, when the ratio that the first read request queue accounts for read buffer area total capacity reaches the second preset value, by first Read request queue is set to the second read request queue, and the second read request queue is set to the first read request queue.
Preferably, the optical disk data read out method further include: by user's read request in second read request queue The read-write requests that disk is written handle queue, and empty second read request queue;The read-write requests processing queue is used for By the data carving of user's write request to CD and by the reading data of user's read request to read buffer area.
Preferably, the read request in second read request queue is inserted into the head of the queue of the read-write requests processing queue.
Preferably, when being user's read request in read-write requests processing queue, by the data of user's read request Read read buffer area.
Third aspect present invention provides a kind of data of optical disk writing station, is applied to CD server, comprising: write buffer area Configuration unit, for for configurable write buffer area with cache user write request, the write buffer area to include for receiving in disk The first write request queue of user's write request is stated, user's write request includes the object optical disc of user's write request;First writes and asks Recording unit is sought, for first write request queue to be recorded in user's write request, is deposited when in first write request queue When having the history write request of same target CD with user's write request, user's write request is write with the history Request merges.
Preferably, the first write request recording unit, when in first write request queue be not present and the user When write request has the history write request of same target CD, new write request note is generated in first write request queue Record.
Preferably, the write buffer area further includes the second write request for storing the write request for carrying out CD burning Queue.
Preferably, the data of optical disk writing station further includes the first write request queue displacement unit, for when described the When one write request queue reception user's write request reaches the first preset time, the first write request queue is set to the second write request team Column, are set to the first write request queue for the second write request queue.
Preferably, the data of optical disk writing station further includes the second write request queue displacement unit, for when described the When the ratio that one write request queue accounts for write buffer area total capacity reaches the first preset value, the first write request queue is set to second and is write Second write request queue is set to the first write request queue by request queue.
Preferably, the data of optical disk writing station further includes the second write request recording unit, for writing described second The read-write requests of user's write request write-in disk in request queue handle queue, and empty second write request queue;Institute Read-write requests processing queue is stated to be used for by the data carving of user's write request to CD and by the reading data of user's read request To read buffer area.
Preferably, the data of optical disk writing station further includes write request data carving unit, for asking when the read-write When asking in processing queue as user's write request, CD server imprinting interface is called, by the data carving of user's write request to light Read buffer area is written in the data of user's write request of imprinting by disk;The read buffer area configuration is used in disk for caching Family read request.
Fourth aspect present invention provides a kind of optical data reading device, is applied to CD server, comprising: read buffer area Configuration unit, for configuring read buffer area in disk with cache user read request, the read buffer area includes for receiving The first read request queue of user's read request is stated, user's read request includes the object optical disc of user's read request;First reads to ask Recording unit is sought, for first read request queue to be recorded in user's read request, is deposited when in first read request queue When having the history read request of same target CD with user's read request, user's read request and the history are read Request merges.
Preferably, the first read request recording unit, in first read request queue there is no with it is described When user's read request has the history read request of same target CD, new read request is generated in first read request queue Record.
Preferably, the optical data reading device further includes the first read request data reading unit, for working as the use The data of family read request directly read data and are sent to user at read buffer area.
Preferably, the read buffer area further includes the second read request for storing the read request for carrying out disc reading Queue.
Preferably, the optical data reading device further includes the first read request queue displacement unit, for when described the When one read request queue reception user's read request reaches the second preset time, the first read request queue is set to the second read request team Column, are set to the first read request queue for the second read request queue.
Preferably, the optical data reading device further includes the second read request queue displacement unit, for when the first reading When the ratio that request queue accounts for read buffer area total capacity reaches the second preset value, the first read request queue is set to the second read request Second read request queue is set to the first read request queue by queue.
Preferably, the optical data reading device further includes the second read request recording unit, for reading described second The read-write requests of user's read request write-in disk in request queue handle queue, and empty second read request queue;Institute Read-write requests processing queue is stated to be used for by the data carving of user's write request to CD and by the reading data of user's read request To read buffer area.
Preferably, the second read request recording unit, will be described in the read request insertion in second read request queue The head of the queue of read-write requests processing queue.
Preferably, the optical data reading device further includes the second read request data reading unit, for working as the reading When being user's read request in write request processing queue, by the reading data of user's read request to read buffer area.
Fifth aspect present invention, provides a kind of non-transient readable storage medium storing program for executing, and the non-transient readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction is for making computer execute the optical disc data uriting-in method and/or the CD Any one of method for reading data.
Sixth aspect present invention provides a kind of data of optical disk read-write equipment, comprising: at least one processor;And with The memory of at least one processor communication connection;Wherein, the memory be stored with can by it is described at least one processing The instruction that device executes, described instruction are executed by least one described processor, so that described in the execution of at least one described processor Any one of optical disc data uriting-in method and/or the optical disk data read out method.
Technical solution of the present invention at least has the advantages that compared with prior art
The present invention provides a kind of optical disc data uriting-in methods, are applied to CD server, comprising: write buffer is configured in disk Area is used for cache user write request, and the write buffer area includes the first write request queue for receiving user's write request, User's write request includes the object optical disc of user's write request;First write request queue is recorded in user's write request, When there is the history write request that there is same target CD with user's write request in first write request queue, by institute User's write request is stated to merge with the history write request.
The present invention also provides a kind of optical disk data read out method, are applied to CD server, comprising: configuration is read slow in disk Area is deposited, is used for cache user read request, the read buffer area includes the first read request team for receiving user's read request Column, user's read request includes the object optical disc of user's read request;First read request team is recorded in user's read request Column, when there is the history read request that there is same target CD with user's read request in first read request queue, User's read request and the history read request are merged.
The present invention reduces the numbers of removable disk operation, the frequent use of CD server mechanical part are avoided, to extend The service life of CD server mechanical part reduces maintenance cost, while reducing the inaccessible time of data.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of a specific example of optical disc data uriting-in method of the embodiment of the present invention;
Fig. 2 is the flow chart of another specific example of optical disc data uriting-in method of the embodiment of the present invention;
Fig. 3 is the flow chart of a specific example of optical disk data read out method of the embodiment of the present invention;
Fig. 4 is the flow chart of another specific example of optical disk data read out method of the embodiment of the present invention;
Fig. 5 is the functional block diagram of a specific example of data of optical disk of embodiment of the present invention writing station;
Fig. 6 is the functional block diagram of another specific example of data of optical disk of embodiment of the present invention writing station;
Fig. 7 is the functional block diagram of a specific example of optical data reading device of the embodiment of the present invention;
Fig. 8 is the functional block diagram of another specific example of optical data reading device of the embodiment of the present invention;
Fig. 9 is the functional block diagram of a specific example of data of optical disk of embodiment of the present invention read-write equipment.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments It can be combined with each other at conflict.
The embodiment of the present invention provides a kind of optical disc data uriting-in method, is applied to CD server, as shown in Figure 1, the cd number Include: according to wiring method
Step S11: the configurable write buffer area in disk is used for cache user write request, which includes for connecing The first write request queue of user's write request is received, user's write request includes the object optical disc of user's write request;
Step S12: above-mentioned first write request queue is recorded in user's write request;
Step S13: judge that there is same target CD with the presence or absence of with above-mentioned user's write request in the first write request queue History write request;
Step S14: when in the first write request queue exist with above-mentioned user's write request have same target CD history When write request, user's write request and the history write request are merged.
S11 to step S14, the optical disc data uriting-in method of the embodiment of the present invention can be reduced and be changed through the above steps The number of disk operation, avoids the frequent use of CD server mechanical part, extends the service life of CD server mechanical part, reduce maintenance at This, while reducing the inaccessible time of data.
Preferably, the data length and user's write request that above-mentioned user's write request further includes user's write request are in disk write The operating efficiency of user's write request can be improved by the configurable write buffer area in disk in the position of buffer area.
Preferably, as shown in Fig. 2, when there is no have same target with above-mentioned user's write request in the first write request queue When the history write request of CD, step S15 is executed: new write request record is generated in the first write request queue.
Preferably, above-mentioned write buffer area further includes the second write request for storing the write request for carrying out CD burning Queue.
Preferably, as shown in Fig. 2, user's write request and history write request are merged in S14 through the above steps or After S15 generates new write request record in the first write request queue through the above steps, CD provided in an embodiment of the present invention Method for writing data further include: step S16: judge the first write request queue receive user's write request whether reach first it is default when Between or the first write request queue account for the ratio of write buffer area total capacity and whether reach the first preset value.
Preferably, as shown in Fig. 2, reaching the first preset time or first when the first write request queue receives user's write request When the ratio that write request queue accounts for write buffer area total capacity reaches the first preset value, step S17 is executed: by the first write request queue It is set to the second write request queue, the second write request queue is set to the first write request queue.
Specifically, above-mentioned steps S17, by the way that the first write request queue is set to the second write request queue, so that first writes User's write request in request queue is able to carry out subsequent CD burning;It is write by the way that the second write request queue is set to first and is asked Queue is asked, the second write request queue is enabled to receive new user's write request.
Preferably, as shown in Fig. 2, after the first write request queue and the second write request queue are exchanged by step S17, Optical disc data uriting-in method provided in an embodiment of the present invention further include: step S18: the user in the second write request queue is write and is asked The read-write requests processing queue of write-in disk is asked, and empties the second write request queue.Above-mentioned read-write requests processing queue is used for will The data carving of user's write request is to CD and by the reading data of user's read request to read buffer area.
Preferably, as shown in Fig. 2, disk is written in user's write request in the second write request queue by step S18 Read-write requests handle queue, and before emptying the second write request queue, further includes: step S180: to the second write request queue Each user's write request of same object optical disc is compressed, and compressed each user's write request is merged.
Preferably, as shown in Fig. 2, executing step S19 when being user's write request in read-write requests processing queue: calling The data of user's write request of imprinting are written and are read by CD server imprinting interface by the data carving of user's write request to CD Buffer area;The read buffer area configures in disk, is used for cache user read request.
The embodiment of the present invention also provides a kind of optical disk data read out method, is applied to CD server, as shown in figure 3, the CD Method for reading data includes:
Step S31: configuring read buffer area in disk, is used for cache user read request, which includes for connecing The first read request queue of user's read request is received, user's read request includes the object optical disc of user's read request;
Step S32: above-mentioned first read request queue is recorded in user's read request;
Step S33: judge that there is going through for same target CD with the presence or absence of with user's read request in the first read request queue History read request;
Step S34: it is read when there is the history that there is same target CD with user's read request in first read request queue When request, user's read request and the history read request are merged.
S31 to step S34, optical disk data read out method provided in an embodiment of the present invention can be reduced and be changed through the above steps The number of disk operation, avoids the frequent use of CD server mechanical part, extends the service life of CD server mechanical part, reduce maintenance at This, while reducing the inaccessible time of data.
Preferably, above-mentioned user's read request further includes that the data length of user's read request and user's read request are read in disk The operating efficiency of user's read request can be improved by configuring read buffer area in disk in the position of buffer area.
Preferably, as shown in figure 4, when there is no have same target with user's read request in the first read request queue When the history read request of CD, step S35 is executed: new read request record is generated in the first read request queue.
Preferably, as shown in figure 4, before the first read request queue is recorded in user's read request by above-mentioned steps S32, this Whether the disc reading method that inventive embodiments provide further includes step S320: judging the data of user's read request in read buffer Area.
Preferably, it when the data of user's read request are at read buffer area, execute step S321: directly reading data and be sent to User.
Preferably, above-mentioned read buffer area further includes the second read request for storing the read request for carrying out disc reading Queue.
Preferably, as shown in figure 4, user's read request and history read request are merged in S34 through the above steps or After S35 generates new read request record in the first read request queue through the above steps, CD provided in an embodiment of the present invention Method for reading data further include: step S36: judge the first read request queue receive user's read request whether reach second it is default when Between or the first read request queue account for the ratio of read buffer area total capacity and whether reach the second preset value.
Preferably, as shown in figure 4, reaching the second preset time or first when the first read request queue receives user's read request When the ratio that read request queue accounts for read buffer area total capacity reaches the second preset value, step S37 is executed: by the first read request queue It is set to the second read request queue, the second read request queue is set to the first read request queue.
Specifically, above-mentioned steps S37, by the way that the first read request queue is set to the second read request queue, so that first reads User's read request in request queue is able to carry out subsequent disc reading;It is asked by the way that the second read request queue is set to the first reading Queue is asked, the second read request queue is enabled to receive new user's read request.
Preferably, as shown in figure 4, it is in S37 through the above steps that the first read request queue and the second read request queue is mutual After changing, optical disk data read out method provided in an embodiment of the present invention further include: step S38: will be in above-mentioned second read request queue The read-write requests of user's read request write-in disk handle queue, and empty the second read request queue.Above-mentioned read-write requests processing Queue is used for by the data carving of user's write request to CD and by the reading data of user's read request to read buffer area.
Preferably, as shown in figure 4, user's read request in the second read request queue is written in S38 through the above steps When the read-write requests of disk handle queue, by the read request insertion read-write requests processing queue in above-mentioned second read request queue Head of the queue guarantees preferential completion read request to reduce the waiting time of user.
Preferably, as shown in figure 4, executing step S39 when being user's read request in the processing queue of above-mentioned read-write requests: By the reading data of user's read request to read buffer area, user is responded according to user's read request.
The embodiment of the present invention also provides a kind of data of optical disk writing station, is applied to CD server, as shown in Figure 5, comprising: write Buffer area configuration unit 1, for for configurable write buffer area with cache user write request, which to include for connecing in disk The first write request queue of above-mentioned user's write request is received, user's write request includes the object optical disc of user's write request;First writes and asks Recording unit 2 is sought, for above-mentioned first write request queue to be recorded in user's write request, and is judged in the first write request queue With the presence or absence of the history write request with user's write request with same target CD, when existing in the first write request queue and user When write request has the history write request of same target CD, user's write request and the history write request are merged.
Pass through above-mentioned write buffer area configuration unit 1 and the first write request recording unit 2, CD provided in an embodiment of the present invention Data transfer apparatus can reduce the number of removable disk operation, avoid the frequent use of CD server mechanical part, extend CD server machine The service life of tool component reduces maintenance cost, while reducing the inaccessible time of data.
Preferably, the data length and user's write request that above-mentioned user's write request further includes user's write request are in disk write The operating efficiency of user's write request can be improved by the configurable write buffer area in disk in the position of buffer area.
Preferably, above-mentioned first write request recording unit 2, when there is no have with user's write request in the first write request queue When having the history write request of same target CD, new write request record is generated in the first write request queue.
Preferably, above-mentioned write buffer area further includes the second write request for storing the write request for carrying out CD burning Queue.
Preferably, as shown in fig. 6, data of optical disk writing station provided in this embodiment, further includes write request queue displacement Unit 3, for judging that the first write request queue receives whether user's write request reaches the first preset time or the first write request team Whether the ratio of Lie Zhan write buffer area total capacity reaches the first preset value, reaches when the first write request queue receives user's write request When the ratio that first preset time or the first write request queue account for write buffer area total capacity reaches the first preset value, first is write and is asked It asks queue to be set to the second write request queue, the second write request queue is set to the first write request queue.
Preferably, as shown in fig. 6, data of optical disk writing station provided in this embodiment, further includes the second write request record Unit 4 is used for after write request queue displacement unit 3 exchanges the first write request queue and the second write request queue, by second The read-write requests of user's write request write-in disk in write request queue handle queue, and empty the second write request queue.It is above-mentioned Read-write requests processing queue is used to arrive by the data carving of user's write request to CD and by the reading data of user's read request Read buffer area.
Preferably, magnetic is being written in user's write request in the second write request queue by above-mentioned second write request recording unit 4 Before the read-write requests processing queue of disk, each user's write request of the same object optical disc of the second write request queue is compressed, Compressed each user's write request is merged.
Preferably, as shown in fig. 6, data of optical disk writing station provided in this embodiment, further includes write request data carving Unit 5, for calling CD server imprinting interface, user being write when being user's write request in the processing queue of above-mentioned read-write requests Read buffer area is written to CD, by the data of user's write request of imprinting in the data carving of request;Read buffer area configuration exists In disk, it to be used for cache user read request.
The embodiment of the present invention also provides a kind of optical data reading device, is applied to CD server, as shown in fig. 7, comprises: it reads Buffer area configuration unit 6, for configuring read buffer area in disk with cache user read request, which includes for connecing The first read request queue of user's read request is received, user's read request includes the object optical disc of user's read request;First reads to ask Recording unit 7 is sought, for above-mentioned first read request queue to be recorded in user's read request, and is judged in the first read request queue With the presence or absence of the history read request with user's read request with same target CD, when existing in the first read request queue and user When read request has the history read request of same target CD, user's read request and the history read request are merged.
Pass through above-mentioned read buffer area configuration unit 6 and the first read request recording unit 7, CD provided in an embodiment of the present invention Reading data device can reduce the number of removable disk operation, avoid the frequent use of CD server mechanical part, extend CD server machine The service life of tool component reduces maintenance cost, while reducing the inaccessible time of data.
Preferably, above-mentioned user's read request further includes that the data length of user's read request and user's read request are read in disk The operating efficiency of user's read request can be improved by configuring read buffer area in disk in the position of buffer area.
Preferably, above-mentioned first read request recording unit 7, when there is no have with user's read request in the first read request queue When having the history read request of same target CD, new read request record is generated in the first read request queue.
Preferably, as shown in figure 8, optical data reading device provided in this embodiment, further includes the first read request data Reading unit 70, for directly reading data and being sent to user when the data of user's read request are at read buffer area.
Preferably, above-mentioned read buffer area further includes the second read request for storing the read request for carrying out disc reading Queue.
Preferably, as shown in figure 8, optical data reading device provided in this embodiment, further includes read request queue displacement Unit 8, for judging that the first read request queue receives whether user's read request reaches the second preset time or the first read request team Whether the ratio of Lie Zhan read buffer area total capacity reaches the second preset value, reaches when the first read request queue receives user's read request When the ratio that second preset time or the first read request queue account for read buffer area total capacity reaches the second preset value, first is read to ask It asks queue to be set to the second read request queue, the second read request queue is set to the first read request queue.
Preferably, as shown in figure 8, optical data reading device provided in this embodiment, further includes the second read request record Unit 9 is used for after read request queue displacement unit 8 exchanges the first read request queue and the second read request queue, will be described The read-write requests of user's read request write-in disk in second read request queue handle queue, and empty second read request team Column.The processing queue of above-mentioned read-write requests is used for by the data carving of user's write request to CD and by the data of user's read request Read read buffer area.
Preferably, magnetic is being written in user's read request in the second read request queue by above-mentioned second read request recording unit 9 When the read-write requests of disk handle queue, the read request insertion read-write requests in the second read request queue are handled to the head of the queue of queue, Guarantee preferential completion read request to reduce the waiting time of user.
Preferably, as shown in figure 8, optical data reading device provided in this embodiment, further includes the second read request data Reading unit 10 is used for when being user's read request in read-write requests processing queue, by the reading data of user's read request to reading Buffer area responds user according to user's read request.
The embodiment of the present invention also provides a kind of non-transient readable storage medium storing program for executing, which calculates Machine instruction, for making, computer executes above-mentioned optical disc data uriting-in method to the computer instruction and/or above-mentioned data of optical disk is read Any one of method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State Drive, SSD) etc.;Institute State the combination that storage medium can also include the memory of mentioned kind.
The embodiment of the present invention also provides a kind of data of optical disk read-write equipment 11, as shown in figure 9, including at least one processor 111;And the memory 112 being connect at least one processor communication;In figure by taking a processor 111 as an example.
Wherein, the memory 112 is stored with the instruction that can be executed by least one above-mentioned processor 111, the instruction quilt Above-mentioned at least one processor 111 executes so that at least one processor 111 execute above-mentioned optical disc data uriting-in method and/or Any one of above-mentioned optical disk data read out method.
As shown in figure 9, above-mentioned data of optical disk read-write equipment 11 can also include: input unit 113 and output device 114.
Processor 111, memory 112, input unit 113 and output device 114 can pass through bus or other modes Connection.
Processor 111 can be central processing unit (Central Processing Unit, CPU).Processor 111 may be used also Think other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.General processor can be microprocessor or the processing Device is also possible to any conventional processor etc..
Memory 112 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non- Transient computer executable program and module, such as the optical disc data uriting-in method and/or data of optical disk in the embodiment of the present application Corresponding program instruction/the module of read method.The non-transient software journey that processor 111 is stored in memory 112 by operation Sequence, instruction and module, thereby executing the various function application and data processing of server.
Above-mentioned input unit 113 can receive the number or character information of input, generate and user setting and function control Related key signals input.Output device 114 may include that display screen etc. shows equipment.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or It changes still within the protection scope of the invention.

Claims (18)

1. a kind of optical disc data uriting-in method is applied to CD server characterized by comprising
The configurable write buffer area in disk is used for cache user write request, and the write buffer area includes for receiving the user First write request queue of write request, user's write request include the object optical disc of user's write request;
First write request queue is recorded in user's write request, when in first write request queue exist and the user When write request has the history write request of same target CD, user's write request and the history write request are closed And.
2. optical disc data uriting-in method according to claim 1, which is characterized in that when in first write request queue not When in the presence of the history write request with user's write request with same target CD, generated in first write request queue New write request record.
3. optical disc data uriting-in method according to claim 2, which is characterized in that the write buffer area further includes for depositing Storage is carrying out the second write request queue of the write request of CD burning.
4. optical disc data uriting-in method according to claim 3, which is characterized in that when first write request queue receives When user's write request reaches the first preset time, the first write request queue is set to the second write request queue, by the second write request Queue is set to the first write request queue.
5. optical disc data uriting-in method according to claim 3, which is characterized in that write when first write request queue accounts for When the ratio of buffer area total capacity reaches the first preset value, the first write request queue is set to the second write request queue, by second Write request queue is set to the first write request queue.
6. optical disc data uriting-in method according to claim 4 or 5, which is characterized in that further include:
The read-write requests of user's write request write-in disk in second write request queue are handled into queue, and empty described the Two write request queues;The read-write requests processing queue is used to read by the data carving of user's write request to CD and by user The reading data of request is to read buffer area.
7. optical disc data uriting-in method according to claim 6, which is characterized in that when in read-write requests processing queue When for user's write request, CD server imprinting interface is called, by the data carving of user's write request to CD, by imprinting Read buffer area is written in the data of user's write request;The read buffer area configuration is used for cache user read request in disk.
8. a kind of optical disk data read out method is applied to CD server characterized by comprising
Read buffer area is configured in disk, is used for cache user read request, the read buffer area includes for receiving the user First read request queue of read request, user's read request include the object optical disc of user's read request;
First read request queue is recorded in user's read request, when in first read request queue exist and the user When read request has the history read request of same target CD, user's read request and the history read request are closed And.
9. optical disk data read out method according to claim 8, which is characterized in that when in first read request queue not When in the presence of the history read request with user's read request with same target CD, generated in first read request queue New read request record.
10. optical disk data read out method according to claim 9, which is characterized in that when the data of user's read request At read buffer area, directly reads data and be sent to user.
11. optical disk data read out method according to claim 9 or 10, which is characterized in that the read buffer area further includes For storing the second read request queue of the read request for carrying out disc reading.
12. optical disk data read out method according to claim 11, which is characterized in that when first read request queue connects When receipts user's read request reaches the second preset time, the first read request queue is set to the second read request queue, second is read to ask Queue is asked to be set to the first read request queue.
13. optical disk data read out method according to claim 11, which is characterized in that delay when the first read request queue accounts for reading When depositing the ratio of area's total capacity and reaching the second preset value, the first read request queue is set to the second read request queue, second is read Request queue is set to the first read request queue.
14. optical disk data read out method according to claim 12 or 13, which is characterized in that further include:
The read-write requests of user's read request write-in disk in second read request queue are handled into queue, and empty described the Two read request queues;The read-write requests processing queue is used to read by the data carving of user's write request to CD and by user The reading data of request is to read buffer area.
15. disc reading method according to claim 14, which is characterized in that by the reading in second read request queue The head of the queue of the read-write requests processing queue is inserted into request.
16. optical disk data read out method according to claim 14, which is characterized in that when the read-write requests handle queue In be user's read request when, by the reading data of user's read request to read buffer area.
17. a kind of non-transient readable storage medium storing program for executing, which is characterized in that the non-transient readable storage medium storing program for executing storage computer refers to Enable, the computer instruction for make computer execute optical disc data uriting-in method as claimed in claim 1 and/or Any optical disk data read out method of claim 8-16.
18. a kind of data of optical disk read-write equipment characterized by comprising
At least one processor;And the memory being connect at least one described processor communication;Wherein, the memory is deposited The instruction that can be executed by least one described processor is contained, described instruction is executed by least one described processor, so that institute It states at least one processor and executes optical disc data uriting-in method and/or claim 8-16 as claimed in claim 1 Any optical disk data read out method.
CN201710731391.8A 2017-08-23 2017-08-23 CD data read-write method Active CN109426434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710731391.8A CN109426434B (en) 2017-08-23 2017-08-23 CD data read-write method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710731391.8A CN109426434B (en) 2017-08-23 2017-08-23 CD data read-write method

Publications (2)

Publication Number Publication Date
CN109426434A true CN109426434A (en) 2019-03-05
CN109426434B CN109426434B (en) 2023-04-28

Family

ID=65499222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710731391.8A Active CN109426434B (en) 2017-08-23 2017-08-23 CD data read-write method

Country Status (1)

Country Link
CN (1) CN109426434B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413413A (en) * 2019-07-26 2019-11-05 北京蜜莱坞网络科技有限公司 A kind of method for writing data, device, equipment and storage medium
CN111399781A (en) * 2020-04-21 2020-07-10 中国科学院光电技术研究所 Storage method for improving reliability of real-time image recording system
CN113126917A (en) * 2021-04-01 2021-07-16 山东英信计算机技术有限公司 Request processing method, system, device and medium in distributed storage
CN114995748A (en) * 2022-05-09 2022-09-02 阿里巴巴(中国)有限公司 Request processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5446855A (en) * 1994-02-07 1995-08-29 Buslogic, Inc. System and method for disk array data transfer
US20070067562A1 (en) * 2005-09-22 2007-03-22 Fujitsu Limited Disk control device, disk control method
JP2013093834A (en) * 2011-10-03 2013-05-16 Alaxala Networks Corp Frame transfer device and frame transfer method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5446855A (en) * 1994-02-07 1995-08-29 Buslogic, Inc. System and method for disk array data transfer
US20070067562A1 (en) * 2005-09-22 2007-03-22 Fujitsu Limited Disk control device, disk control method
JP2013093834A (en) * 2011-10-03 2013-05-16 Alaxala Networks Corp Frame transfer device and frame transfer method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413413A (en) * 2019-07-26 2019-11-05 北京蜜莱坞网络科技有限公司 A kind of method for writing data, device, equipment and storage medium
CN111399781A (en) * 2020-04-21 2020-07-10 中国科学院光电技术研究所 Storage method for improving reliability of real-time image recording system
CN111399781B (en) * 2020-04-21 2023-09-19 中国科学院光电技术研究所 Storage method for improving reliability of real-time image recording system
CN113126917A (en) * 2021-04-01 2021-07-16 山东英信计算机技术有限公司 Request processing method, system, device and medium in distributed storage
CN114995748A (en) * 2022-05-09 2022-09-02 阿里巴巴(中国)有限公司 Request processing method and device

Also Published As

Publication number Publication date
CN109426434B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US11132310B2 (en) SSD architecture for FPGA based acceleration
CN109426434A (en) A kind of data of optical disk reading/writing method
CN102693198B (en) DMA (direct memory access) transmission method and system
US8458409B2 (en) Access controller
CN111046072A (en) Data query method, system, heterogeneous computing acceleration platform and storage medium
CN105468300B (en) The management method and device of IP hard disks
EP2214103B1 (en) I/O controller and descriptor transfer method
US8266371B2 (en) Non-volatile storage device, host device, non-volatile storage system, data recording method, and program
KR20120061710A (en) Data prefetch in sas expanders
CN103985393B (en) A kind of multiple optical disk data parallel management method and device
US10592463B2 (en) SSD architecture for FPGA based acceleration
CN107515827A (en) Storage method, device and the SSD of the self-defined daily records of PCIE SSD
CN110413413A (en) A kind of method for writing data, device, equipment and storage medium
CN110287152A (en) A kind of method and relevant apparatus of data management
CN107133183B (en) Cache data access method and system based on TCMU virtual block device
CN109710578B (en) Log recording method and system
JP2015158910A (en) Memory subsystem with wrapped-to-continuous read
US10169184B2 (en) Identification of storage performance shortfalls
US11481142B2 (en) Method and device for downloading resources
US20100152866A1 (en) Information processing apparatus, information processing method and computer-readable medium having an information processing program
CN108920093B (en) Data reading and writing method and device, electronic equipment and readable storage medium
CN111045961B (en) Data processing method and memory controller using the same
US20060206631A1 (en) Data duplication method and system used between USB devices
CN106201344B (en) Information processing method and electronic equipment
KR20210061583A (en) Adaptive Deep Learning Accelerator and Method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant