CN106155921A - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN106155921A
CN106155921A CN201510158153.3A CN201510158153A CN106155921A CN 106155921 A CN106155921 A CN 106155921A CN 201510158153 A CN201510158153 A CN 201510158153A CN 106155921 A CN106155921 A CN 106155921A
Authority
CN
China
Prior art keywords
data
electronic equipment
instruction
data block
metadata
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
CN201510158153.3A
Other languages
Chinese (zh)
Other versions
CN106155921B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510158153.3A priority Critical patent/CN106155921B/en
Publication of CN106155921A publication Critical patent/CN106155921A/en
Application granted granted Critical
Publication of CN106155921B publication Critical patent/CN106155921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of information processing method and electronic equipment, the method being applied to the first electronic equipment includes: obtaining the first instruction, the first instruction is for indicating preservation the first data and the first metadata of the first data;First data and the first metadata correspondence thereof are saved in the first electronic equipment local by response the first instruction;Obtaining the second instruction, the second instruction is uploaded the first data for instruction and is preserved to the second electronic equipment;Response the second instruction, the first data upload requests message is sent to the second electronic equipment, the first data instruction uploaded are sent to the second electronic equipment, and corresponding the second metadata preserving the first data, the second metadata is at least for the record deblocking information of the first data, incidence relation between data block identifier and each data block;Wherein, deblocking information and the data block identifier of the first data are provided by the second electronic equipment, and each data block is marked by corresponding data block identifier.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to intelligent electronic device technical field, particularly relate to a kind of information processing method and electronics sets Standby.
Background technology
Local data is passed through the network storage to server end by user, it is possible to access whenever and wherever possible and storage is held Amount also can dynamically increase.But the user data being stored in server end there is also the risk of leakage, there is safety Hidden danger.Therefore, how to ensure the safety of the user data that server end preserves, be technology urgently to be resolved hurrily Problem.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of information processing method and electronic equipment, to promote service The safety of the user data that end preserves.
The invention provides a kind of information processing method, be applied to the first electronic equipment, described method includes:
Obtaining the first instruction, described first instruction preserves the first data and described first data for indicating First metadata;
Respond described first instruction, described first data and the first metadata correspondence thereof are saved in described first Electronic equipment is local, and wherein, described first metadata is at least for recording the file that described first data are corresponding Mark;
Obtaining the second instruction, described second instruction uploads described first data to the second electronic equipment for instruction Preserve;
Respond described second instruction, send the first data upload requests message to the second electronic equipment, will instruction Described first data uploaded are sent to described second electronic equipment, and corresponding preserve the of described first data Binary data, described second metadata is at least for recording the deblocking information of described first data, data Incidence relation between block identification and each data block;Wherein, the deblocking information of described first data and Data block identifier is provided by described second electronic equipment, and each data block is marked by corresponding data block identifier Note.
It is preferred that after described first data instruction uploaded are sent to described second electronic equipment, described Method also includes:
Obtaining the 3rd instruction, described 3rd instruction reads, for indicating, the preserved in described second electronic equipment One data;
Respond described 3rd instruction, it is thus achieved that the metadata of described first data that instruction is read;
Metadata based on described first data obtained send the first digital independent to described second electronic equipment Request message, carries the data block identifier of described first data that instruction is read in described request message;
Receive the first data of the described instruction reading that described second electronic equipment sends, wherein, described instruction The first data read are to be carried based in described first data read request message by described second electronic equipment Described data block identifier search and obtain.
It is preferred that after the second metadata preserving described first data, described method also includes:
Obtaining the 4th instruction, described 4th instruction is for indicating the metadata sending described first data to the 3rd Electronic equipment;
Respond described 4th instruction, it is thus achieved that the first metadata of described first data and the second metadata, and will Described first metadata and the second metadata that obtain are sent to described 3rd electronic equipment.
Invention further provides a kind of information processing method, be applied to the second electronic equipment, described method includes:
Receive the first data upload requests message that the first electronic equipment sends, it is thus achieved that described request message is taken First data of band;
Based on described first data obtained, in conjunction with the storage system metadata of described second electronic equipment, right Described first data carry out deblocking, distribute corresponding data block identifier for each data block, and are described Data block distributes corresponding memory space, each data block correspondence writes corresponding memory space, and preserves every Mapping relations between individual data block identifier and corresponding storage positional information thereof;Wherein, described storage system unit Data are at least for recording the storage power system capacity distributed intelligence of described second electronic equipment;
Deblocking information and the data block identifier of described first data are sent to described first electronic equipment.
It is preferred that after preserving described mapping relations, described method also includes:
Receive the first data read request message that described first electronic equipment sends, it is thus achieved that described request message In the data block identifier of the first data that reads of the instruction carried;
The described data block identifier that described second electronic equipment preserves is searched based on the described data block identifier obtained And the mapping relations between correspondence storage positional information, it is thus achieved that with the number of the first data that described instruction is read According to the storage positional information that block identification is corresponding;
The storage system of described second electronic equipment is searched, it is thus achieved that phase based on the described storage positional information obtained The first data answered, and described first data obtained are sent to described first electronic equipment;Wherein, institute State and be sent to the first data in data blocks of the first electronic equipment and be transmitted and each data block is by corresponding Data block identifier is marked.
It is preferred that described method also includes:
Described first data preserved in described second electronic equipment are carried out backup storage, and preserves backup and deposit Mapping relations between the data block identifier that storage address is corresponding with the first data;
When data failure memory in described second electronic equipment, according to the described backup storage address preserved Mapping relations data block identifier between corresponding with the first data carry out the first data recovery.
Invention further provides a kind of first electronic equipment, including:
First instruction obtains unit, and for obtaining the first instruction, described first instruction is used for indicating preservation first Data and the first metadata of described first data;
First instruction execution unit, is used for responding described first instruction, by described first data and first yuan It is local that data correspondence is saved in described first electronic equipment, and wherein, described first metadata is at least for record The file identification that described first data are corresponding;
Second instruction obtains unit, and for obtaining the second instruction, described second instruction is uploaded described for instruction First data preserve to the second electronic equipment;
Second instruction execution unit, is used for responding described second instruction, sends the first number to the second electronic equipment According to upload request message, described first data instruction uploaded are sent to described second electronic equipment, and right Should preserve the second metadata of described first data, described second metadata is at least used for recording described first number According to deblocking information, data block identifier and each data block between incidence relation;Wherein, described The deblocking information of one data and data block identifier are provided by described second electronic equipment, each data block by Corresponding data block identifier is marked.
It is preferred that described first electronic equipment also includes:
3rd instruction obtains unit, and for obtaining the 3rd instruction, described 3rd instruction is used for indicating reading described The first data preserved in second electronic equipment;
3rd instruction execution unit, is used for responding described 3rd instruction, it is thus achieved that described first number that instruction is read According to metadata;Metadata based on described first data obtained send first to described second electronic equipment Data read request message, carries the data block mark of described first data that instruction is read in described request message Know;Receive the first data of the described instruction reading that described second electronic equipment sends, wherein, described instruction The first data read are to be carried based in described first data read request message by described second electronic equipment Described data block identifier search and obtain.
It is preferred that described first electronic equipment also includes:
4th instruction obtains unit, and for obtaining the 4th instruction, described 4th instruction is used for indicating transmission described The metadata of the first data is to the 3rd electronic equipment;
4th instruction execution unit, is used for responding described 4th instruction, it is thus achieved that first yuan of described first data Data and the second metadata, and described first metadata obtained and the second metadata are sent to the described 3rd Electronic equipment.
Invention further provides a kind of second electronic equipment, including:
Receive unit, for receiving the first data upload requests message that the first electronic equipment sends, it is thus achieved that institute State the first data carried in request message;
Data processing unit, for based on described first data obtained, in conjunction with described second electronic equipment Described first data are carried out deblocking by storage system metadata, for the corresponding number of each data block distribution According to block identification, and it is that described data block distributes corresponding memory space, by corresponding for the write of each data block correspondence Memory space, and preserve the mapping relations between each data block identifier and corresponding storage positional information thereof;Its In, described storage system metadata is at least for recording the storage power system capacity distribution of described second electronic equipment Information;
Transmitting element, described for the deblocking information of described first data and data block identifier are sent to First electronic equipment.
It is preferred that
Described reception unit is further used for, and the first digital independent receiving described first electronic equipment transmission please Seek message, it is thus achieved that the data block identifier of the first data that the instruction carried in described request message is read;
Described data processing unit is further used for, and searches described second based on the described data block identifier obtained Mapping relations between described data block identifier and corresponding storage positional information thereof that electronic equipment preserves, it is thus achieved that The storage positional information corresponding with the data block identifier of the first data that described instruction is read;Based on obtain Described storage positional information searches the storage system of described second electronic equipment, it is thus achieved that corresponding first data;
Described transmitting element is further used for, and described first data obtained is sent to described first electronics and sets Standby;Wherein, the first data in data blocks being sent to the first electronic equipment described in is transmitted and every number It is marked by corresponding data block identifier according to block.
It is preferred that described data processing unit is further used for, to the institute preserved in described second electronic equipment State the first data and carry out backup storage, and preserve the data block identifier that backup storage address is corresponding with the first data Between mapping relations;
When data failure memory in described second electronic equipment, according to the described backup storage address preserved Mapping relations data block identifier between corresponding with the first data carry out the first data recovery.
A kind of information processing method that the embodiment of the present invention is provided and electronic equipment, the metadata of the first data Second electronic equipment does not stores, and it is local to be stored in the first electronic equipment, so, due to the second electricity Subset can not know the metadata of the first data, the most just cannot be according to the data of storage in the second electronic equipment Content recovery goes out effective first data, thus ensure that the first data will not leak from the second electronic equipment, Ensure that the storage safety of the first data.It addition, read the operation of the first data from the second electronic equipment also The mapping relations being only based between data block identifier and storage positional information perform, and the second electronics sets For also the incidence relation between each data block identifier cannot be known, unlikely recover effective first data, Therefore, the read operation of the first data is also safe.
Accompanying drawing explanation
Fig. 1 is the information processing method flow chart of the embodiment of the present invention one;
Fig. 2 is the information processing method flow chart of the embodiment of the present invention two;
Fig. 3 is the information processing method flow chart of the embodiment of the present invention three;
Fig. 4 is the information processing method flow chart of the embodiment of the present invention four;
Fig. 5 is the composition structural representation of the first electronic equipment of the embodiment of the present invention five;
Fig. 6 is the composition structural representation of the second electronic equipment of the embodiment of the present invention six.
Detailed description of the invention
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
Embodiment one
The embodiment of the present invention one provides a kind of information processing method, is applied to the first electronic equipment, such as Fig. 1 institute Showing, the method specifically includes that
Step 101, it is thus achieved that the first instruction, described first instruction is used for indicating preservation the first data and described First metadata of the first data.
First electronic equipment of the embodiment of the present invention is positioned at user side, for preserving the related data of user, and letter Claim the first data;In actual application, described first electronic equipment can be the mobile phone of user, panel computer, The electronic equipment such as PC, notebook computer, does not limits in the embodiment of the present invention.
Based on user's operation to the first electronic equipment, when user trigger on the first electronic equipment for preserving During functional keys (can be physical button or virtual key) of data, the first electronic equipment is obtained in that One instruction, i.e. indicates the first electronic equipment to preserve the first data and metadata thereof.Such as: user is at the first electricity A file is created on subset, and when triggering the functional keys preserving described file related data, the first electricity Subset is obtained in that the first instruction.
Step 102, responds described first instruction, described first data and the first metadata correspondence thereof is preserved Local at described first electronic equipment, wherein, described first metadata is at least used for recording described first data Corresponding file identification.
First electronic equipment, after obtaining the first instruction, responds described first instruction, it is thus achieved that instruction preserve the One data and the first metadata thereof, and described first data and the first metadata correspondence thereof are saved in the first electricity Subset is local.
It should be noted that the first metadata of described first data at least includes: the files-designated of the first data Know (filename), create the information such as time, modification time.Described file identification is just to remember when creating file Record in described first electronic equipment this locality, when described first electronic equipment also can record the establishment of described file Between and modification time.
Step 103, it is thus achieved that the second instruction, described second instruction uploads described first data to for instruction Two electronic equipments preserve.
Second electronic equipment of the embodiment of the present invention may be located at service end or high in the clouds, is used for providing the user clothes Business end or the data storage service in high in the clouds;In actual application, described second electronic equipment can be that data base takes Business device or cloud server, but the second electronic equipment of the embodiment of the present invention is not limited only to this.
When user has, the first data are uploaded to when needing of the second electronic equipment, the first electronic equipment can be triggered On the functional keys (can be physical button or virtual key) uploaded for data, the first electronic equipment energy Enough obtain the second instruction, i.e. indicate the second electronic equipment to upload described first data and carry out to the second electronic equipment Preserve.Such as: user, after having created a file and having preserved the related data of this document, triggers and is used for counting According to the functional keys uploaded, now the first electronic equipment obtains the second instruction.
Step 104, responds described second instruction, sends the first data upload requests to the second electronic equipment and disappear Breath, described first data instruction uploaded are sent to described second electronic equipment, and corresponding preserve described the Second metadata of one data, described second metadata is at least for recording the deblocking of described first data Incidence relation between information, data block identifier and each data block;Wherein, the data of described first data Blocking information and data block identifier are provided by described second electronic equipment, and each data block is by corresponding data block Mark is marked.
First electronic equipment, after obtaining the second instruction, responds described second instruction, and performs to the second electronics Equipment uploads the associative operation of the first data.
A kind of associative operation uploading the first data that can implement includes:
First electronic equipment obtains the first data that instruction is uploaded, and sends first to described second electronic equipment Data upload requests message, carries described first data, but described first electronic equipment is not by institute in message The metadata stating the first data is sent to described second electronic equipment;
Second electronic equipment obtains described first data from the first data upload requests message received, based on The first data obtained, in conjunction with the storage system metadata of described second electronic equipment, to described first data Carry out deblocking, distribute corresponding data block identifier for each data block, and be that described data block distributes phase The memory space answered, writes corresponding memory space by each data block correspondence, and preserves each data block identifier And the mapping relations between correspondence storage positional information;Wherein, described storage system metadata is at least used for Recording the storage power system capacity distributed intelligence of described second electronic equipment, the second electronic equipment is according to storage system Capacity be distributed as first data distribute suitable memory space;Such as: in the first data upload requests message Carrying the first data of 10M size, the second electronic equipment combines its storage system metadata, by institute's the first number According to being divided into 10 data blocks, the memory capacity of each data block is 1M, and each data block is assigned uniquely Data block identifier, each data block correspondence distribute corresponding memory space, each memory space have correspondence Storage positional information mark, therefore, the second electronic equipment is able to record that each data in these 10 data blocks Mapping relations between the storage positional information of block identification and correspondence thereof;
After preserving described mapping relations, the deblocking of described first data is believed by described second electronic equipment Breath, data block identifier are sent to the first electronic equipment;Described first electronic equipment correspondence preserves described first number According to the second metadata, described second metadata at least for record described first data deblocking information, Incidence relation between data block identifier and each data block.It should be noted that due to the first electronic equipment It is that sequentially to send the first data to the second electronic equipment, the second electronic equipment be also sequentially to the first electronic equipment Return corresponding data block identifier, to ensure the first electronic equipment and the data consistency of the second electronic equipment, Therefore, the first electronic equipment is obtained in that the incidence relation between the data block identifier that the second electronic equipment returns, It is thus possible to generate effective first data;And the second electronic equipment will not record the reception order of the first data, Therefore the second electronic equipment also cannot know the incidence relation between each data block identifier, thus can not be Two electronic equipment ends generate effective first data.This also ensures that the safety of the first data storage, because of It is the second electronic equipment metadata of not preserving the first data, so effective the most just cannot be recovered One data.
The another kind of associative operation uploading the first data that can implement includes:
First electronic equipment obtains after uploading the instruction of the first data, according to the first metadata of the first data, With the distribution that memory space consulted by the second electronic equipment;Such as: the first electronic equipment needs to upload 10M size The first data, distribute at least 10M memory space of size to the second electronic equipment, the second electronic equipment knot Closing its storage system metadata, first divide 10 data blocks, the memory capacity of each data block is 1M, and Each data block is assigned unique data block identifier, and each data block correspondence distributes corresponding memory space, Each memory space have correspondence storage positional information mark, therefore, the second electronic equipment be able to record that this 10 The mapping relations between each data block identifier and the storage positional information of correspondence thereof in individual data block;
The deblocking information of negotiation, data block identifier are sent to the first electronic equipment by the second electronic equipment;
First electronic equipment according to the deblocking information received, data block identifier, to be uploaded to this locality the One data carry out corresponding data block encapsulation, and packaged data block is uploaded to the second electronic equipment, its In, each data block that the first electronic equipment is uploaded has corresponding data block identifier to be marked;First electricity Subset can know the incidence relation between each data block such that it is able to generates effective first data, its In, the pass between the deblocking information of described first data, data block identifier and each data block identifier Connection relation constitutes the second metadata of described first data, is also saved in described first electronic equipment local;
After second electronic equipment receives the first data that the first electronic equipment is uploaded, look into according to data block identifier Look for the mapping relations between the data block identifier self preserved and storage positional information, it is thus achieved that each data block pair The storage positional information answered, thus described data block correspondence is stored in corresponding memory space.Due to the second electricity Subset does not preserve the metadata of the first data, so the second electronic equipment is cannot to recover effectively First data, this also ensures that the safety of the first data storage.
It can be seen that the metadata of the first data does not stores in the second electronic equipment from above-described embodiment, And it is local to be stored in the first electronic equipment, so, owing to the second electronic equipment can not know the first data Metadata, the most just cannot recover effective first data according to the data content of storage in the second electronic equipment, Thus ensure that the first data will not be from the second electronic equipment leakage, it is ensured that the storage safety of the first data. Owing to the metadata of the first data is completely by the first electronic equipment domination, therefore, user can be to the first data Metadata be encrypted, to promote safety further.
It addition, the metadata preserved in the first electronic equipment is also supported to be stored in exterior storage medium, such as U Dish, portable hard drive etc..Concrete:
After the second metadata preserving described first data, described method may also include that
Obtaining the 4th instruction, described 4th instruction is for indicating the metadata sending described first data to the 3rd Electronic equipment;Respond described 4th instruction, it is thus achieved that the first metadata of described first data and the second metadata, And described first metadata obtained and the second metadata are sent to described 3rd electronic equipment.
It is to say, when the first electronic equipment is circumscribed with the 3rd electronic equipment or the first electronic equipment and the When having communication capacity between three electronic equipments, user trigger on the first electronic equipment for metadata transmission Functional keys (can be physical button or virtual key), the first electronic equipment is obtained in that the 4th instruction, i.e. The metadata of the first data is sent to the 3rd electronic equipment by instruction;Based on described 4th instruction, the first electronics The metadata of described first data is sent to described 3rd electronic equipment by equipment.
Embodiment two
The embodiment of the present invention two provides a kind of information processing method, is applied to the first electronic equipment, such as Fig. 2 institute Showing, the embodiment of the present invention two is mainly for the reading flow process of the first data, and the method specifically includes that
Step 201, it is thus achieved that the 3rd instruction, described 3rd instruction is used for indicating described second electronic equipment of reading First data of middle preservation.
Based on user's operation to the first electronic equipment, when user trigger on the first electronic equipment for from When two electronic equipments read functional keys (can be physical button or virtual key) of data, the first electronics Equipment is obtained in that the 3rd instruction, i.e. indicates the first electronic equipment to read the first data from the second electronic equipment.
Step 202, responds described 3rd instruction, it is thus achieved that the metadata of described first data that instruction is read.
First electronic equipment, after obtaining the 3rd instruction, responds described 3rd instruction, the first number preserved from self Metadata according to described first data of middle extraction.
Step 203, metadata based on described first data obtained send the to described second electronic equipment One data read request message, carries the data block of described first data that instruction is read in described request message Mark.
After the metadata obtaining described first data, extract data block identifier therein, and by described data Block identification carries and is sent to the second electronic equipment in the first data read request message.
Step 204, receive described second electronic equipment send described instruction read the first data, wherein, The first data that described instruction is read are to be disappeared based on described first data read request by described second electronic equipment The described data block identifier lookup carried in breath obtains.
After second electronic equipment receives the first data read request message, it is thus achieved that the data block identifier wherein carried, Based on obtain described data block identifier search described second electronic equipment preserve described data block identifier and Mapping relations between corresponding storage positional information, it is thus achieved that with the data block of the first data that described instruction is read Identify corresponding storage positional information;Described second electronics is searched based on the described storage positional information obtained The storage system of equipment, it is thus achieved that corresponding first data, and described first data obtained are sent to described First electronic equipment.
After first electronic equipment receives the first data that the second electronic equipment sends, it is possible to based on each data block Incidence relation between each data block that mark and described first electronic equipment preserve, generates effective the One data.
It can be seen that the second electronic equipment simply extracts corresponding number by data block identifier from above-described embodiment Returning to the first electronic equipment according to content, the second electronic equipment is not aware that the incidence relation between each data block, Therefore the second electronic equipment cannot recover to obtain effective first data, thus the of the first electronic equipment One data read operation is safe.
Embodiment three
The embodiment of the present invention three provides a kind of information processing method, is applied to the second electronic equipment, such as Fig. 3 institute Showing, the method specifically includes that
Step 301, receive first electronic equipment send the first data upload requests message, it is thus achieved that described please Seek the first data carried in message.
Step 302, based on described first data obtained, in conjunction with the storage system of described second electronic equipment Described first data are carried out deblocking by metadata, distribute corresponding data block identifier for each data block, And be that described data block distributes corresponding memory space, each data block correspondence is write corresponding memory space, And preserve the mapping relations between each data block identifier and corresponding storage positional information thereof;Wherein, deposit described in Storage system metadata is at least for recording the storage power system capacity distributed intelligence of described second electronic equipment.
Step 303, is sent to described first by deblocking information and the data block identifier of described first data Electronic equipment.
The associative operation that a kind of the first data that can implement are uploaded includes:
First electronic equipment obtains the first data that instruction is uploaded, and sends first to described second electronic equipment Data upload requests message, carries described first data, but described first electronic equipment is not by institute in message The metadata stating the first data is sent to described second electronic equipment;
Second electronic equipment obtains described first data from the first data upload requests message received, based on The first data obtained, in conjunction with the storage system metadata of described second electronic equipment, to described first data Carry out deblocking, distribute corresponding data block identifier for each data block, and be that described data block distributes phase The memory space answered, writes corresponding memory space by each data block correspondence, and preserves each data block identifier And the mapping relations between correspondence storage positional information;Wherein, described storage system metadata is at least used for Recording the storage power system capacity distributed intelligence of described second electronic equipment, the second electronic equipment is according to storage system Capacity be distributed as first data distribute suitable memory space;Such as: in the first data upload requests message Carrying the first data of 10M size, the second electronic equipment combines its storage system metadata, by institute's the first number According to being divided into 10 data blocks, the memory capacity of each data block is 1M, and each data block is assigned uniquely Data block identifier, each data block correspondence distribute corresponding memory space, each memory space have correspondence Storage positional information mark, therefore, the second electronic equipment is able to record that each data in these 10 data blocks Mapping relations between the storage positional information of block identification and correspondence thereof;
After preserving described mapping relations, the deblocking of described first data is believed by described second electronic equipment Breath, data block identifier are sent to the first electronic equipment;Described first electronic equipment correspondence preserves described first number According to the second metadata, described second metadata at least for record described first data deblocking information, Incidence relation between data block identifier and each data block.It should be noted that due to the first electronic equipment It is that sequentially to send the first data to the second electronic equipment, the second electronic equipment be also sequentially to the first electronic equipment Return corresponding data block identifier, to ensure the first electronic equipment and the data consistency of the second electronic equipment, Therefore, the first electronic equipment is obtained in that the incidence relation between the data block identifier that the second electronic equipment returns, It is thus possible to generate effective first data;And the second electronic equipment will not record the reception order of the first data, Therefore the second electronic equipment also cannot know the incidence relation between each data block identifier, thus can not be Two electronic equipment ends generate effective first data.This also ensures that the safety of the first data storage, because of It is the second electronic equipment metadata of not preserving the first data, so effective the most just cannot be recovered One data.
The associative operation that another kind of the first data that can implement are uploaded includes:
First electronic equipment obtains after uploading the instruction of the first data, according to the first metadata of the first data, With the distribution that memory space consulted by the second electronic equipment;Such as: the first electronic equipment needs to upload 10M size The first data, distribute at least 10M memory space of size to the second electronic equipment, the second electronic equipment knot Closing its storage system metadata, first divide 10 data blocks, the memory capacity of each data block is 1M, and Each data block is assigned unique data block identifier, and each data block correspondence distributes corresponding memory space, Each memory space have correspondence storage positional information mark, therefore, the second electronic equipment be able to record that this 10 The mapping relations between each data block identifier and the storage positional information of correspondence thereof in individual data block;
The deblocking information of negotiation, data block identifier are sent to the first electronic equipment by the second electronic equipment;
First electronic equipment according to the deblocking information received, data block identifier, to be uploaded to this locality the One data carry out corresponding data block encapsulation, and packaged data block is uploaded to the second electronic equipment, its In, each data block that the first electronic equipment is uploaded has corresponding data block identifier to be marked;First electricity Subset can know the incidence relation between each data block such that it is able to generates effective first data, its In, the pass between the deblocking information of described first data, data block identifier and each data block identifier Connection relation constitutes the second metadata of described first data, is also saved in described first electronic equipment local;
After second electronic equipment receives the first data that the first electronic equipment is uploaded, look into according to data block identifier Look for the mapping relations between the data block identifier self preserved and storage positional information, it is thus achieved that each data block pair The storage positional information answered, thus described data block correspondence is stored in corresponding memory space.Due to the second electricity Subset does not preserve the metadata of the first data, so the second electronic equipment is cannot to recover effectively First data, this also ensures that the safety of the first data storage.
Embodiment four
The embodiment of the present invention four provides a kind of information processing method, is applied to the second electronic equipment, such as Fig. 4 institute Showing, the embodiment of the present invention four is mainly for the reading flow process of the first data, and the method specifically includes that
Step 401, receives the first data read request message that described first electronic equipment sends, it is thus achieved that institute State the data block identifier of the first data that the instruction carried in request message is read.
Step 402, searches described in described second electronic equipment preservation based on the described data block identifier obtained Mapping relations between data block identifier and corresponding storage positional information thereof, it is thus achieved that with described instruction read the The storage positional information that the data block identifier of one data is corresponding.
Step 403, searches the storage system of described second electronic equipment based on the described storage positional information obtained System, it is thus achieved that corresponding first data, and described first data obtained are sent to described first electronic equipment; Wherein, the first data in data blocks being sent to the first electronic equipment described in is transmitted and each data block It is marked by corresponding data block identifier.
It can be seen that the second electronic equipment simply extracts corresponding number by data block identifier from above-described embodiment Returning to the first electronic equipment according to content, the second electronic equipment is not aware that the incidence relation between each data block, Therefore the second electronic equipment cannot recover to obtain effective first data, thus the of the first electronic equipment One data read operation is safe.
In one embodiment, described method may also include that
Described first data preserved in described second electronic equipment are carried out backup storage, and preserves backup and deposit Mapping relations between the data block identifier that storage address is corresponding with the first data;When in described second electronic equipment Data failure memory time, according to the described backup storage address data block mark corresponding with the first data preserved Mapping relations between knowledge carry out the first data recovery.
It is to say, in the second electronic equipment, each data block of the first data (uses data block identifier mark Note) a corresponding main storage address and at least one backup storage address, the corresponding storage in each storage address The partial data content of respective data blocks, the most each data block identifier can be mapped with a main storage address With at least one backup storage address;So, when in described second electronic equipment data failure memory (as The loss of data of main storage address) time, corresponding with the first data according to the described backup storage address preserved Mapping relations between data block identifier can be carried out the recovery of the first data, recovers the number of main storage address According to content.
Embodiment five
The embodiment of the present invention five provides a kind of first electronic equipment, as it is shown in figure 5, described first electronic equipment Including:
First instruction obtains unit 11, and for obtaining the first instruction, described first instruction is used for indicating preservation the One data and the first metadata of described first data;
First instruction execution unit 12, is used for responding described first instruction, by described first data and first It is local that metadata correspondence is saved in described first electronic equipment, and wherein, described first metadata is at least used for remembering Record the file identification that described first data are corresponding;
Second instruction obtains unit 13, and for obtaining the second instruction, described second instruction uploads institute for instruction State the first data to preserve to the second electronic equipment;
Second instruction execution unit 14, is used for responding described second instruction, sends first to the second electronic equipment Data upload requests message, described first data instruction uploaded are sent to described second electronic equipment, and Corresponding the second metadata preserving described first data, described second metadata is at least used for recording described first Incidence relation between the deblocking information of data, data block identifier and each data block;Wherein, described Deblocking information and the data block identifier of the first data are provided by described second electronic equipment, each data block It is marked by corresponding data block identifier.
In one embodiment, described first electronic equipment also includes:
3rd instruction obtains unit 15, and for obtaining the 3rd instruction, described 3rd instruction is used for indicating reading institute State the first data preserved in the second electronic equipment;
3rd instruction execution unit 16, is used for responding described 3rd instruction, it is thus achieved that described the first of instruction reading The metadata of data;Metadata based on described first data obtained send the to described second electronic equipment One data read request message, carries the data block of described first data that instruction is read in described request message Mark;Receive the first data of the described instruction reading that described second electronic equipment sends, wherein, described finger The first data showing reading are to be taken based in described first data read request message by described second electronic equipment The described data block identifier lookup of band obtains.
In one embodiment, described first electronic equipment also includes:
4th instruction obtains unit 17, and for obtaining the 4th instruction, described 4th instruction is used for indicating transmission institute State the metadata of the first data to the 3rd electronic equipment;
4th instruction execution unit 18, is used for responding described 4th instruction, it is thus achieved that the first of described first data Metadata and the second metadata, and described first metadata obtained and the second metadata are sent to described the Three electronic equipments.
Embodiment six
The embodiment of the present invention six provides a kind of second electronic equipment, as shown in Figure 6, described second electronic equipment Including:
Receive unit 21, for receiving the first data upload requests message that the first electronic equipment sends, it is thus achieved that The first data carried in described request message;
Data processing unit 22, for based on described first data obtained, in conjunction with described second electronic equipment Storage system metadata, described first data are carried out deblocking, corresponding for the distribution of each data block Data block identifier, and be that described data block distributes corresponding memory space, by corresponding for the write of each data block correspondence Memory space, and preserve the mapping relations between each data block identifier and corresponding storage positional information thereof; Wherein, described storage system metadata at least storage power system capacity for recording described second electronic equipment is divided Cloth information;
Transmitting element 23, for being sent to institute by deblocking information and the data block identifier of described first data State the first electronic equipment.
In one embodiment,
Described reception unit 21 is further used for, and receives the first digital independent that described first electronic equipment sends Request message, it is thus achieved that the data block identifier of the first data that the instruction carried in described request message is read;
Described data processing unit 22 is further used for, and searches described the based on the described data block identifier obtained Mapping relations between described data block identifier and corresponding storage positional information thereof that two electronic equipments preserve, obtain Storage positional information that must be corresponding with the data block identifier of the first data that described instruction is read;Based on acquisition Described storage positional information search described second electronic equipment storage system, it is thus achieved that corresponding first data;
Described transmitting element 23 is further used for, and described first data obtained are sent to described first electronics Equipment;Wherein, the first data in data blocks being sent to the first electronic equipment described in is transmitted and each Data block is marked by corresponding data block identifier.
In one embodiment,
Described data processing unit 22 is further used for, to described first preserved in described second electronic equipment Data carry out backup storage, and preserve between the data block identifier that backup storage address is corresponding with the first data Mapping relations;
When data failure memory in described second electronic equipment, according to the described backup storage address preserved Mapping relations data block identifier between corresponding with the first data carry out the first data recovery.
In sum, in the embodiment of the present invention, the metadata of the first data does not stores in the second electronic equipment, And it is local to be stored in the first electronic equipment, arrange, so, due to the second electronics the first electronic equipment Equipment can not know the metadata of the first data, the most just cannot be according in the data of storage in the second electronic equipment Hold and recover effective first data, thus ensure that the first data will not be protected from the second electronic equipment leakage Demonstrate,prove the storage safety of the first data.It addition, the most only read the operation of the first data from the second electronic equipment It is only to perform based on the mapping relations between data block identifier and storage positional information, the second electronic equipment Also cannot know the incidence relation between each data block identifier, unlikely recover effective first data, Therefore, the read operation of the first data is also safe.
In several embodiments provided by the present invention, it should be understood that disclosed method, device and electricity Subset, can realize by another way.Apparatus embodiments described above is only schematically, Such as, the division of described unit, be only a kind of logic function and divide, actual can have when realizing other Dividing mode, such as: multiple unit or assembly can be in conjunction with, or are desirably integrated into another system, or some Feature can be ignored, or does not performs.It addition, the coupling each other of shown or discussed each ingredient, Or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, equipment or unit or communication Connect, can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, as The parts that unit shows can be or may not be physical location, i.e. may be located at a place, it is possible to To be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs Realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing unit, Can also be that each unit is individually as a unit, it is also possible to two or more unit are integrated in one In individual unit;Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds soft The form of part functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can Completing with the hardware relevant by programmed instruction, aforesaid program can be stored in an embodied on computer readable and deposit In storage media, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage Medium includes: movable storage device, read only memory (ROM, Read-Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Or, if the above-mentioned integrated unit of the embodiment of the present invention realizes with the form of software function module and makees During for independent production marketing or use, it is also possible to be stored in a computer read/write memory medium.Base In such understanding, prior art is contributed by the technical scheme of the embodiment of the present invention the most in other words Part can embody with the form of software product, and this computer software product is stored in a storage medium In, including some instructions with so that computer equipment (can be personal computer, server or Person's network equipment etc.) perform all or part of of method described in each embodiment of the present invention.And aforesaid storage Medium includes: movable storage device, read only memory (ROM, Read-Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should It is as the criterion with described scope of the claims.

Claims (12)

1. an information processing method, is applied to the first electronic equipment, and described method includes:
Obtaining the first instruction, described first instruction preserves the first data and described first data for indicating First metadata;
Respond described first instruction, described first data and the first metadata correspondence thereof are saved in described first Electronic equipment is local, and wherein, described first metadata is at least for recording the file that described first data are corresponding Mark;
Obtaining the second instruction, described second instruction uploads described first data to the second electronic equipment for instruction Preserve;
Respond described second instruction, send the first data upload requests message to the second electronic equipment, will instruction Described first data uploaded are sent to described second electronic equipment, and corresponding preserve the of described first data Binary data, described second metadata is at least for recording the deblocking information of described first data, data Incidence relation between block identification and each data block;Wherein, the deblocking information of described first data and Data block identifier is provided by described second electronic equipment, and each data block is marked by corresponding data block identifier Note.
Information processing method the most according to claim 1, it is characterised in that described in instruction is uploaded After first data are sent to described second electronic equipment, described method also includes:
Obtaining the 3rd instruction, described 3rd instruction reads, for indicating, the preserved in described second electronic equipment One data;
Respond described 3rd instruction, it is thus achieved that the metadata of described first data that instruction is read;
Metadata based on described first data obtained send the first digital independent to described second electronic equipment Request message, carries the data block identifier of described first data that instruction is read in described request message;
Receive the first data of the described instruction reading that described second electronic equipment sends, wherein, described instruction The first data read are to be carried based in described first data read request message by described second electronic equipment Described data block identifier search and obtain.
Information processing method the most according to claim 1 or claim 2, it is characterised in that preserving described first After second metadata of data, described method also includes:
Obtaining the 4th instruction, described 4th instruction is for indicating the metadata sending described first data to the 3rd Electronic equipment;
Respond described 4th instruction, it is thus achieved that the first metadata of described first data and the second metadata, and will Described first metadata and the second metadata that obtain are sent to described 3rd electronic equipment.
4. an information processing method, is applied to the second electronic equipment, and described method includes:
Receive the first data upload requests message that the first electronic equipment sends, it is thus achieved that described request message is taken First data of band;
Based on described first data obtained, in conjunction with the storage system metadata of described second electronic equipment, right Described first data carry out deblocking, distribute corresponding data block identifier for each data block, and are described Data block distributes corresponding memory space, each data block correspondence writes corresponding memory space, and preserves every Mapping relations between individual data block identifier and corresponding storage positional information thereof;Wherein, described storage system unit Data are at least for recording the storage power system capacity distributed intelligence of described second electronic equipment;
Deblocking information and the data block identifier of described first data are sent to described first electronic equipment.
Information processing method the most according to claim 4, it is characterised in that preserving described mapping relations After, described method also includes:
Receive the first data read request message that described first electronic equipment sends, it is thus achieved that described request message In the data block identifier of the first data that reads of the instruction carried;
The described data block identifier that described second electronic equipment preserves is searched based on the described data block identifier obtained And the mapping relations between correspondence storage positional information, it is thus achieved that with the number of the first data that described instruction is read According to the storage positional information that block identification is corresponding;
The storage system of described second electronic equipment is searched, it is thus achieved that phase based on the described storage positional information obtained The first data answered, and described first data obtained are sent to described first electronic equipment;Wherein, institute State and be sent to the first data in data blocks of the first electronic equipment and be transmitted and each data block is by corresponding Data block identifier is marked.
6. according to information processing method described in claim 4 or 5, it is characterised in that described method also includes:
Described first data preserved in described second electronic equipment are carried out backup storage, and preserves backup and deposit Mapping relations between the data block identifier that storage address is corresponding with the first data;
When data failure memory in described second electronic equipment, according to the described backup storage address preserved Mapping relations data block identifier between corresponding with the first data carry out the first data recovery.
7. first electronic equipment, including:
First instruction obtains unit, and for obtaining the first instruction, described first instruction is used for indicating preservation first Data and the first metadata of described first data;
First instruction execution unit, is used for responding described first instruction, by described first data and first yuan It is local that data correspondence is saved in described first electronic equipment, and wherein, described first metadata is at least for record The file identification that described first data are corresponding;
Second instruction obtains unit, and for obtaining the second instruction, described second instruction is uploaded described for instruction First data preserve to the second electronic equipment;
Second instruction execution unit, is used for responding described second instruction, sends the first number to the second electronic equipment According to upload request message, described first data instruction uploaded are sent to described second electronic equipment, and right Should preserve the second metadata of described first data, described second metadata is at least used for recording described first number According to deblocking information, data block identifier and each data block between incidence relation;Wherein, described The deblocking information of one data and data block identifier are provided by described second electronic equipment, each data block by Corresponding data block identifier is marked.
First electronic equipment the most according to claim 7, it is characterised in that described first electronic equipment is also Including:
3rd instruction obtains unit, and for obtaining the 3rd instruction, described 3rd instruction is used for indicating reading described The first data preserved in second electronic equipment;
3rd instruction execution unit, is used for responding described 3rd instruction, it is thus achieved that described first number that instruction is read According to metadata;Metadata based on described first data obtained send first to described second electronic equipment Data read request message, carries the data block mark of described first data that instruction is read in described request message Know;Receive the first data of the described instruction reading that described second electronic equipment sends, wherein, described instruction The first data read are to be carried based in described first data read request message by described second electronic equipment Described data block identifier search and obtain.
9. according to the first electronic equipment described in claim 7 or 8, it is characterised in that described first electronics sets For also including:
4th instruction obtains unit, and for obtaining the 4th instruction, described 4th instruction is used for indicating transmission described The metadata of the first data is to the 3rd electronic equipment;
4th instruction execution unit, is used for responding described 4th instruction, it is thus achieved that first yuan of described first data Data and the second metadata, and described first metadata obtained and the second metadata are sent to the described 3rd Electronic equipment.
10. second electronic equipment, including:
Receive unit, for receiving the first data upload requests message that the first electronic equipment sends, it is thus achieved that institute State the first data carried in request message;
Data processing unit, for based on described first data obtained, in conjunction with described second electronic equipment Described first data are carried out deblocking by storage system metadata, for the corresponding number of each data block distribution According to block identification, and it is that described data block distributes corresponding memory space, by corresponding for the write of each data block correspondence Memory space, and preserve the mapping relations between each data block identifier and corresponding storage positional information thereof;Its In, described storage system metadata is at least for recording the storage power system capacity distribution of described second electronic equipment Information;
Transmitting element, described for the deblocking information of described first data and data block identifier are sent to First electronic equipment.
11. second electronic equipments according to claim 10, it is characterised in that
Described reception unit is further used for, and the first digital independent receiving described first electronic equipment transmission please Seek message, it is thus achieved that the data block identifier of the first data that the instruction carried in described request message is read;
Described data processing unit is further used for, and searches described second based on the described data block identifier obtained Mapping relations between described data block identifier and corresponding storage positional information thereof that electronic equipment preserves, it is thus achieved that The storage positional information corresponding with the data block identifier of the first data that described instruction is read;Based on obtain Described storage positional information searches the storage system of described second electronic equipment, it is thus achieved that corresponding first data;
Described transmitting element is further used for, and described first data obtained is sent to described first electronics and sets Standby;Wherein, the first data in data blocks being sent to the first electronic equipment described in is transmitted and every number It is marked by corresponding data block identifier according to block.
12. according to the second electronic equipment described in claim 10 or 11, it is characterised in that at described data Reason unit is further used for, and described first data preserved in described second electronic equipment carry out backup storage, And preserve the mapping relations between the data block identifier that backup storage address is corresponding with the first data;
When data failure memory in described second electronic equipment, according to the described backup storage address preserved Mapping relations data block identifier between corresponding with the first data carry out the first data recovery.
CN201510158153.3A 2015-04-03 2015-04-03 A kind of information processing method and electronic equipment Active CN106155921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510158153.3A CN106155921B (en) 2015-04-03 2015-04-03 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510158153.3A CN106155921B (en) 2015-04-03 2015-04-03 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106155921A true CN106155921A (en) 2016-11-23
CN106155921B CN106155921B (en) 2019-06-25

Family

ID=57338470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510158153.3A Active CN106155921B (en) 2015-04-03 2015-04-03 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106155921B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686401A (en) * 2017-01-13 2017-05-17 山东鑫诚信电子科技有限公司 Video data distributed storage method, video data distributed storage device, video data retrieval method and video data retrieval device
CN111984460A (en) * 2019-05-21 2020-11-24 华为技术有限公司 Method and device for recovering metadata

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997823A (en) * 2009-08-17 2011-03-30 联想(北京)有限公司 Distributed file system and data access method thereof
CN102035881A (en) * 2010-11-19 2011-04-27 清华大学 Data caching method of cloud storage system
CN102609365A (en) * 2012-02-15 2012-07-25 合一网络技术(北京)有限公司 Virtual disk system and file storage method based on virtual disk system
US20130013958A1 (en) * 2011-07-06 2013-01-10 Cleversafe, Inc. Storing data and metadata in a distributed storage network
CN104010016A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Data management method, cloud server and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997823A (en) * 2009-08-17 2011-03-30 联想(北京)有限公司 Distributed file system and data access method thereof
CN102035881A (en) * 2010-11-19 2011-04-27 清华大学 Data caching method of cloud storage system
US20130013958A1 (en) * 2011-07-06 2013-01-10 Cleversafe, Inc. Storing data and metadata in a distributed storage network
CN102609365A (en) * 2012-02-15 2012-07-25 合一网络技术(北京)有限公司 Virtual disk system and file storage method based on virtual disk system
CN104010016A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Data management method, cloud server and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686401A (en) * 2017-01-13 2017-05-17 山东鑫诚信电子科技有限公司 Video data distributed storage method, video data distributed storage device, video data retrieval method and video data retrieval device
CN111984460A (en) * 2019-05-21 2020-11-24 华为技术有限公司 Method and device for recovering metadata
CN111984460B (en) * 2019-05-21 2023-11-24 华为云计算技术有限公司 Metadata recovery method and device

Also Published As

Publication number Publication date
CN106155921B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN109491968B (en) File processing method, device, equipment and computer readable storage medium
US8621241B1 (en) Storage and recovery of cryptographic key identifiers
Jiang et al. A secure and scalable storage system for aggregate data in IoT
CN103780622B (en) A kind of data classification encryption method of facing cloud storage
CN103095843B (en) A kind of data back up method and client based on version vector
CN107295069A (en) Data back up method, device, storage medium and server
CN104520873A (en) Systems and methods for securing and restoring virtual machines
CN105915650B (en) Load-balancing method and device
CN104852925A (en) Method for leakproof, secure storage and backup of data of mobile smart terminal
CN104252426A (en) Multiple volume encryption of storage devices using self encrypting drive (sed)
CN103841099A (en) System for encrypting content name
CN103856499A (en) Cloud storage method, cloud storage device, cloud storage data downloading method and cloud storage data downloading device
CN101488854A (en) Wireless RFID system authentication method and apparatus
CN105975878B (en) Method for secure storing and system based on Nand Flash flash memory
CN107103014A (en) The replay method of history pushed information, device and system
CN106603561A (en) Block level encryption method in cloud storage and multi-granularity deduplication method
CN104200171A (en) Virtual file system based on information hiding
CN117176474A (en) Encryption protection method and system for RFID data
CN104486372A (en) Contact displaying method, device and terminal
CN106155921A (en) A kind of information processing method and electronic equipment
CN103065096B (en) A kind of data guard method, Apparatus and system
JP2012507767A5 (en)
CN207099110U (en) A kind of Intelligent terminal data encrypted backup system
KR20170053056A (en) Security server using case based reasoning engine and storage medium for installing security function
CN113452783B (en) Digital PAAS open platform system of block chain cloud architecture and implementation method

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