Summary of the invention
Because above-mentioned situation the invention provides a kind of memory storage and data read-write method thereof for the cloud storage.
According to the embodiment of the invention, a kind of memory storage for the cloud storage is provided, be contained in the electronic equipment, described memory storage comprises: storage unit is used for the storage data; Control module is used for carrying out the control of storage; And data transmission interface, be used for carrying out the data transmission between described memory storage and its described electronic equipment, wherein said control module comprises storage administration firmware and cloud communication module, described storage administration firmware management is based on the read-write of described storage unit and high in the clouds storage unit, and described cloud communication module is carried out the data communication with described high in the clouds storage unit.
In addition, according to the memory storage of the embodiment of the invention, wherein said storage unit further comprises high in the clouds storage unit hot spot data buffer area, is used for the hot spot data of buffer memory high in the clouds storage unit.
In addition, according to the memory storage of the embodiment of the invention, wherein said cloud communication module is carried out the data communication with described high in the clouds storage unit wirelessly.
In addition, according to the memory storage of the embodiment of the invention, wherein said data transmission interface is mapped to unified address space with the logical address of described storage unit and described high in the clouds storage unit.
According to another embodiment of the present invention, a kind of data read-write method is provided, be used for a kind of memory storage for the cloud storage, described memory storage is contained in the electronic equipment, described memory storage comprises the storage unit for the storage data, be used for carrying out the control module of the control of storing, and the data transmission interface that is used for carrying out the data transmission between described memory storage and its described electronic equipment, wherein said control module comprises storage administration firmware and cloud communication module, described storage administration firmware management is based on the read-write of described storage unit and high in the clouds storage unit, described cloud communication module is carried out the data communication with described high in the clouds storage unit, described data read-write method comprises: data transmission interface receives the read write command from described electronic equipment, and described read write command is sent to described storage administration firmware; Described storage administration firmware judges that described read write command is to the read write command of described storage unit or to the read write command of described high in the clouds storage unit, wherein, if described read write command is the read write command to described storage unit, then described storage administration firmware is carried out the read-write to described storage unit, and will read and write result transmission to described electronic equipment by described data transmission interface, if described read write command is the read write command to described high in the clouds storage unit, then described storage administration firmware is carried out read-write to described high in the clouds storage unit by described cloud communication module, and will read and write result transmission by described data transmission interface and arrive described electronic equipment.
In addition, data read-write method according to another embodiment of the present invention, wherein said storage unit further comprises high in the clouds storage unit hot spot data buffer area, the hot spot data that is used for buffer memory high in the clouds storage unit, described data read-write method also comprises if described read write command is the read write command to described high in the clouds storage unit, then described storage administration firmware judges whether the read-write object of described read write command is stored in described hot spot data buffer area, if the read-write object of described read write command is stored in described hot spot data buffer area, then described storage administration firmware is carried out the read-write for described hot spot data buffer area, and will read and write result transmission to described electronic equipment by described data transmission interface, if the read-write object of described read write command is not stored in described hot spot data buffer area, then described storage administration firmware is carried out read-write to described high in the clouds storage unit by described cloud communication module, and will read and write result transmission by described data transmission interface and arrive described electronic equipment.
In addition, data read-write method according to another embodiment of the present invention, wherein said cloud communication module is carried out the data communication with described high in the clouds storage unit wirelessly.
In addition, data read-write method according to another embodiment of the present invention, wherein said data transmission interface is mapped to unified address space with the logical address of described storage unit and described high in the clouds storage unit.
According to the memory storage and the data read-write method thereof that are used for the cloud storage of the embodiment of the invention, realize the memory storage that is used for the cloud storage that a kind of cost is low, capacity is big, volume is little.
The general description and the following detailed both that it being understood that the front are exemplary, and the further specifying of the intention technology that is to provide claimed.
Embodiment
Below, with preferred embodiments of the present invention will be described in detail with reference to the annexed drawings.
At first, with reference to the memory storage of Fig. 1 description according to the embodiment of the invention.
Fig. 1 is that diagram is according to the block diagram of the memory storage 1 of the embodiment of the invention.As shown in Figure 1, the memory storage 1 according to the embodiment of the invention comprises storage unit 10, control module 20 and data transmission interface 30.According to the memory storage 1 of the embodiment of the invention can be in long-range high in the clouds storage unit and form cloud storage system, thereby provide the data storage for the electronic equipment under the memory storage 1.Described electronic equipment includes but not limited to personal computer, notebook computer, mobile phone, panel computer etc.
Particularly, described storage unit 10 further comprises local storage unit 11 and high in the clouds hot spot data buffer unit 12.Wherein.Described local storage unit 11 is used for store local data, and described high in the clouds hot spot data buffer unit 12 is used for the hot spot data of the described high in the clouds of buffer memory storage unit.Described control module 20 further comprises storage administration firmware 21 and cloud communication module 22.Wherein, described storage administration firmware 21 management are based on the read-write of described storage unit 10 and high in the clouds storage unit.Described cloud communication module 22 is carried out the data communication with described high in the clouds storage unit.Described cloud communication module 22 can be carried out in wired or wireless mode with the data communication of described high in the clouds storage unit.Described data transmission interface 30 is used for carrying out described memory storage 1 and the data transmission between the electronic equipment under it.Described data transmission interface 30 is mapped to unified address space with the logical address of described storage unit 10 and described high in the clouds storage unit, in order to conducted interviews by described electronic equipment.
Use aforesaid memory storage 1, when carrying out described electronic equipment for the visit of memory storage 1, the read write command that described data transmission interface 30 receives from described electronic equipment, and described read write command is sent to described storage administration firmware 21.After this, described storage administration firmware 21 judges that described read write command is to the read write command of described storage unit 10 or to the read write command of described high in the clouds storage unit.If described read write command is the read write command to described storage unit 10, the then read-write carried out described storage unit 10 of described storage administration firmware 21, and will read and write result transmission by described data transmission interface 30 and arrive described electronic equipment; If described read write command is the read write command to described high in the clouds storage unit, the then read-write carried out described high in the clouds storage unit by described cloud communication module 22 of described storage administration firmware 21, and will read and write result transmission by described data transmission interface 30 and arrive described electronic equipment.
As mentioned above, incorporate described storage administration firmware 21 and described cloud communication module 22 into according to the memory storage 1 of the embodiment of the invention, and by described data transmission interface 30 logical address of described storage unit 10 and described high in the clouds storage unit has been mapped to unified address space.Thereby parsing and cloud communication process for reference address all itself are carried out by memory storage 1, and need not the participation of the electronic equipment under the memory storage 1.For electronic equipment, its to the access process of memory storage 1 with there is no different for the disk of prior art or the access process of SSD.That is to say, transparent for upper layer software (applications) and operating system by the cloud storage that realizes according to the memory storage 1 of the embodiment of the invention, do not rely on any operating system and application software, thereby be convenient between different electronic equipments, share this based on the memory storage of cloud storage.
More than, with reference to Fig. 1 memory storage 1 according to the embodiment of the invention has been described.Further describe the data read-write method of carrying out by according to the memory storage 1 of the embodiment of the invention with reference to Fig. 2 and Fig. 3 below.
Fig. 2 is that diagram is according to the process flow diagram of the data read-write method of the embodiment of the invention.As shown in Figure 2, in step S201, the read write command that described data transmission interface 30 receives from described electronic equipment, and described read write command is sent to described storage administration firmware 21.After this, processing enters step S202.
In step S202, described storage administration firmware 21 judges that described read write command is to the read write command of described storage unit 10 or to the read write command of described high in the clouds storage unit, and obtains judged result.After this, processing enters step S203.
In step S203, determine whether it is read-write to described storage unit 10.If in step S203, obtain positive result, then handle and enter step S204.On the contrary, if in step S203, obtain negative decision, then handle and enter step S205.
In step S204, the read-write that described storage administration firmware 21 is carried out described storage unit 10, and will read and write result transmission by described data transmission interface 30 and arrive described electronic equipment.
In step S205, the read-write that described storage administration firmware 21 is carried out described high in the clouds storage unit by described cloud communication module 22, and will read and write result transmission by described data transmission interface 30 and arrive described electronic equipment.
, realized for the visit according to the memory storage 1 of the embodiment of the invention to the data read-write method of step S205 by step S201.
Fig. 3 is that diagram is according to the another process flow diagram of the data read-write method of the embodiment of the invention.As shown in Figure 3, wherein step S301 is identical to step S204 to the step S201 among step S304 and Fig. 2, therefore will omit it and be repeated in this description.
In step S305 shown in Figure 3, described storage administration firmware 21 further judges whether the read-write object of described read write command is stored in described high in the clouds hot spot data buffer area 12.If obtain positive result in step S305, the read-write object of namely stating read write command is stored in the described high in the clouds hot spot data buffer area 12, then handles entering step S306.On the contrary, if obtain positive result in step S305, the read-write object of namely stating read write command is not stored in the described high in the clouds hot spot data buffer area 12, then handles entering step S307.
In step S306, the read-write that described storage administration firmware 21 is carried out for described high in the clouds hot spot data buffer area, and will read and write result transmission by described data transmission interface 30 and arrive described electronic equipment.
In step S307, the read-write that described storage administration firmware 21 is carried out described high in the clouds storage unit by described cloud communication module 22, and will read and write result transmission by described data transmission interface 30 and arrive described electronic equipment.
By the data read-write method of step S301 to step S307, by the use for described high in the clouds hot spot data buffer area, compare with data read-write method shown in Figure 2, may further improve reading and writing data speed.
More than referring to figs. 1 through Fig. 3 the memory storage and the data read-write method thereof that are used for the cloud storage according to the embodiment of the invention have been described, it has realized other cloud storage administration of memory storage level, make that the cloud storage is transparent for upper layer software (applications) and operating system, do not rely on any operating system and application software, thereby be convenient between different electronic equipments, share this based on the memory storage of cloud storage.That is to say, realize the memory storage that is used for the cloud storage that a kind of cost is low, capacity is big, volume is little according to the memory storage that is used for the cloud storage and the data read-write method thereof of the embodiment of the invention.
Need to prove, in this manual, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.Do not having under the situation of more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
At last, need to prove also that above-mentioned a series of processing not only comprise the processing of carrying out by the time sequence with order described here, and comprise parallel or respectively rather than the processing of carrying out in chronological order.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying with the form of software product that technical scheme of the present invention contributes to background technology, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
More than the present invention is described in detail, used specific case herein principle of the present invention and embodiment set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.