CN106155921B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN106155921B CN106155921B CN201510158153.3A CN201510158153A CN106155921B CN 106155921 B CN106155921 B CN 106155921B CN 201510158153 A CN201510158153 A CN 201510158153A CN 106155921 B CN106155921 B CN 106155921B
- 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.)
- Active
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 applied to the first electronic equipment includes: to obtain the first instruction, and the first instruction is used to indicate the first metadata for saving the first data and the first data;The first instruction of response, the first data and its first metadata are corresponded to and are stored in the first electronic equipment local;The second instruction is obtained, the second instruction is used to indicate the first data of upload and is saved to the second electronic equipment;The second instruction of response, the first data upload requests message is sent to the second electronic equipment, the first data that instruction uploads are sent to the second electronic equipment, and corresponding the second metadata for saving the first data, the second metadata are at least used to record the incidence relation between the deblocking information, data block identifier and each data block of the first data;Wherein, the deblocking information of the first data and data block identifier are provided by the second electronic equipment, and each data block is marked by corresponding data block identifier.
Description
Technical field
The present invention relates to intelligent electronic device technical field more particularly to a kind of information processing methods and electronic equipment.
Background technique
Local data is passed through network storage to server end by user, can access whenever and wherever possible and memory capacity can also
Dynamic increases.But it is stored in risk of the user data there is also leakage of server end, there are security risks.Therefore, how to protect
The safety for demonstrate,proving the user data that server end saves, is a technical problem to be solved urgently.
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 server-side preservation
User data safety.
The present invention provides a kind of information processing methods, are applied to the first electronic equipment, which comprises
The first instruction is obtained, first instruction is used to indicate first yuan of the first data of preservation and first data
Data;
First instruction is responded, first data and its first metadata correspondence are stored in first electronics and set
It is standby local, wherein first metadata is at least used to record the corresponding file identification of first data;
The second instruction is obtained, second instruction is used to indicate upload first data and is protected to the second electronic equipment
It deposits;
Second instruction is responded, the first data upload requests message is sent to the second electronic equipment, instruction is uploaded
First data are sent to second electronic equipment, and corresponding the second metadata for saving first data, and described the
Binary data is at least used to record the pass between the deblocking information, data block identifier and each data block of first data
Connection relationship;Wherein, the deblocking information of first data and data block identifier are provided by second electronic equipment, each
Data block is marked by corresponding data block identifier.
Preferably, the method is also after first data for uploading instruction are sent to second electronic equipment
Include:
Third instruction is obtained, the third instruction is used to indicate the first number for reading and saving in second electronic equipment
According to;
The third instruction is responded, the metadata for first data that instruction is read is obtained;
The metadata of first data based on acquisition sends the first data read request to second electronic equipment
Message carries the data block identifier for first data that instruction is read in the request message;
Receive the first data that the instruction that second electronic equipment is sent is read, wherein what the instruction was read
First data are by second electronic equipment based on the data block mark carried in the first data read request message
Know what lookup obtained.
Preferably, after the second metadata for saving first data, the method also includes:
Obtain the 4th instruction, the 4th instruction, which is used to indicate, to be sent the metadata of first data and set to third electronics
It is standby;
The 4th instruction is responded, obtains the first metadata and the second metadata of first data, and by acquisition
First metadata and the second metadata are sent to the third electronic equipment.
Invention further provides a kind of information processing methods, are applied to the second electronic equipment, which comprises
The the first data upload requests message for receiving the transmission of the first electronic equipment obtains the carried in the request message
One data;
First data based on acquisition, in conjunction with the storage system metadata of second electronic equipment, to described
One data carry out deblocking, distribute corresponding data block identifier for each data block, and corresponding for data block distribution
Memory space by the corresponding corresponding memory space of write-in of each data block, and saves each data block identifier and its corresponding storage position
Mapping relations between confidence breath;Wherein, the storage system metadata is at least used to record depositing for second electronic equipment
Storage system capacity distributed intelligence;
The deblocking information of first data and data block identifier are sent to first electronic equipment.
Preferably, after saving the mapping relations, the method also includes:
The first data read request message that first electronic equipment is sent is received, obtains and is carried in the request message
Instruction read the first data data block identifier;
The data block identifier based on acquisition search the data block identifier that second electronic equipment saves and its
Mapping relations between corresponding storage location information obtain corresponding with the data block identifier of the first data that the instruction is read
Storage location information;
The storage system of second electronic equipment described in the storage location information searching based on acquisition obtains corresponding the
One data, and first data of acquisition are sent to first electronic equipment;Wherein, first electronics that is sent to is set
The first standby data in data blocks is transmitted and each data block is marked by corresponding data block identifier.
Preferably, the method also includes:
First data saved in second electronic equipment are made a backup store, and save backup storage address
Mapping relations between data block identifier corresponding with the first data;
When the data failure memory in second electronic equipment, according to the backup storage address and first of preservation
Mapping relations between the corresponding data block identifier of data carry out the first data recovery.
Invention further provides a kind of first electronic equipments, comprising:
First instruction obtaining unit, for obtain first instruction, it is described first instruction be used to indicate save the first data with
And the first metadata of first data;
First instruction execution unit, for responding first instruction, by first data and its first metadata pair
It is local that first electronic equipment should be stored in, wherein it is corresponding that first metadata is at least used to record first data
File identification;
Second instruction obtaining unit, for obtaining the second instruction, second instruction, which is used to indicate, uploads first number
It is saved according to the second electronic equipment;
Second instruction execution unit sends the first data to the second electronic equipment and uploads for responding second instruction
First data that instruction uploads are sent to second electronic equipment, and corresponding preservation first number by request message
According to the second metadata, second metadata is at least used to record the deblocking information of first data, data block mark
Incidence relation between knowledge and each data block;Wherein, the deblocking information of first data and data block identifier are by institute
The offer of the second electronic equipment is stated, each data block is marked by corresponding data block identifier.
Preferably, first electronic equipment further include:
Third instructs obtaining unit, and for obtaining third instruction, the third instruction, which is used to indicate, reads second electricity
The first data saved in sub- equipment;
Third instruction execution unit obtains the member for first data that instruction is read for responding the third instruction
Data;The metadata of first data based on acquisition sends the first data read request to second electronic equipment and disappears
It ceases, the data block identifier for first data that instruction is read is carried in the request message;Receive second electronic equipment
The first data that the instruction sent is read, wherein the first data that the instruction is read are by second electronic equipment
It is searched based on the data block identifier carried in the first data read request message.
Preferably, first electronic equipment further include:
4th instruction obtaining unit, for obtaining the 4th instruction, the 4th instruction, which is used to indicate, sends first number
According to metadata to third electronic equipment;
4th instruction execution unit, for responding the 4th instruction, obtain first data the first metadata and
Second metadata, and first metadata of acquisition and the second metadata are sent to the third electronic equipment.
Invention further provides a kind of second electronic equipments, comprising:
Receiving unit obtains the request for receiving the first data upload requests message of the first electronic equipment transmission
The first data carried in message;
Data processing unit, for first data based on acquisition, in conjunction with the storage system of second electronic equipment
Metadata of uniting distributes corresponding data block identifier to first data progress deblocking for each data block, and be described
Data block distributes corresponding memory space, by the corresponding corresponding memory space of write-in of each data block, and saves each data block mark
Know and its correspond to the mapping relations between storage location information;Wherein, the storage system metadata is at least used to record described
The storage system capacity distributed intelligence of second electronic equipment;
Transmission unit, for the deblocking information of first data and data block identifier to be sent to first electricity
Sub- equipment.
Preferably,
The receiving unit is further used for, and receives the first data read request that first electronic equipment is sent and disappears
Breath obtains the data block identifier for the first data that the instruction carried in the request message is read;
The data processing unit is further used for, and the data block identifier based on acquisition is searched second electronics and set
Mapping relations between the standby data block identifier saved and its corresponding storage location information, acquisition are read with the instruction
The corresponding storage location information of the data block identifier of first data;Described in the storage location information searching based on acquisition
The storage system of two electronic equipments obtains corresponding first data;
The transmission unit is further used for, and first data of acquisition are sent to first electronic equipment;Its
In, first data in data blocks for being sent to the first electronic equipment is transmitted and each data block is by corresponding data
Block identification is marked.
Preferably, the data processing unit is further used for, to described first saved in second electronic equipment
Data make a backup store, and save the mapping relations between backup storage address data block identifier corresponding with the first data;
When the data failure memory in second electronic equipment, according to the backup storage address and first of preservation
Mapping relations between the corresponding data block identifier of data carry out the first data recovery.
A kind of information processing method and electronic equipment provided by the embodiment of the present invention, the metadata of the first data is second
It is not stored in electronic equipment, and is stored in the first electronic equipment local, in this way, since the second electronic equipment cannot know first
The metadata of data also can not just recover effective first data according to the data content stored in the second electronic equipment, from
And ensure that the first data will not be leaked from the second electronic equipment, it ensure that the storage safety of the first data.In addition, from the second electricity
The operation that the first data are read in sub- equipment is also only based on mapping relations between data block identifier and storage location information
It is performed, the second electronic equipment can not also know the incidence relation between each data block identifier, unlikely recover effectively
The first data, therefore, the read operation of the first data is also safe.
Detailed description of the invention
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 composed structure schematic diagram of the first electronic equipment of the embodiment of the present invention five;
Fig. 6 is the composed structure schematic diagram of the second electronic equipment of the embodiment of the present invention six.
Specific embodiment
The technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
Embodiment one
The embodiment of the present invention one provides a kind of information processing method, is applied to the first electronic equipment, as shown in Figure 1, the party
Method specifically includes that
Step 101, the first instruction is obtained, first instruction, which is used to indicate, saves the first data and first data
The first metadata.
First electronic equipment of the embodiment of the present invention is located at user side, for saving the related data of user, referred to as first
Data;In practical application, first electronic equipment can be the electronics such as mobile phone, tablet computer, PC, the laptop of user
Equipment, in the embodiment of the present invention with no restrictions.
Operation based on user to the first electronic equipment is used to save data when user triggers on the first electronic equipment
When function button (can be physical button or virtual key), the first electronic equipment can obtain the first instruction, that is, indicate first
Electronic equipment saves the first data and its metadata.Such as: user creates a file on the first electronic equipment, and triggers guarantor
When depositing the function button of the file related data, the first electronic equipment can obtain the first instruction.
Step 102, first instruction is responded, is stored in described for first data and its first metadata are corresponding
One electronic equipment is local, wherein first metadata is at least used to record the corresponding file identification of first data.
First electronic equipment responds first instruction, obtains the first data that instruction saves after the instruction of acquisition first
And its first metadata, and the first electronic equipment local is stored in by first data and its first metadata are corresponding.
It should be noted that the first metadata of first data includes at least: the file identification (file of the first data
Name), creation time, the information such as modification time.The file identification is just to be recorded in first electronics when creating file to set
Standby local, first electronic equipment also will record the creation time and modification time of the file.
Step 103, the second instruction is obtained, second instruction is used to indicate upload first data and sets to the second electronics
It is standby to be saved.
Second electronic equipment of the embodiment of the present invention can be located at server-side or cloud, for for user provide server-side or
The data storage service in cloud;In practical application, second electronic equipment can be database server or cloud server,
But the second electronic equipment of the embodiment of the present invention is not limited only to this.
The first data are uploaded into when needing of the second electronic equipment when user has, the use on the first electronic equipment can be triggered
In the function button (can be physical button or virtual key) that data upload, the first electronic equipment can obtain the second instruction,
Indicate that the second electronic equipment uploads first data and saved to the second electronic equipment.Such as: user is creating one
A file and after saving the related data of this document, the function button that triggering is uploaded for data, the first electronic equipment obtains at this time
Obtain the second instruction.
Step 104, second instruction is responded, the first data upload requests message is sent to the second electronic equipment, will refer to
Show that first data of upload are sent to second electronic equipment, and the corresponding binary number for saving first data
According to second metadata is at least used to record the deblocking information, data block identifier and each data of first data
Incidence relation between block;Wherein, the deblocking information of first data and data block identifier are set by second electronics
Standby to provide, each data block is marked by corresponding data block identifier.
First electronic equipment responds second instruction after the instruction of acquisition second, and executes on the second electronic equipment
Pass the relevant operation of the first data.
A kind of relevant operation for the first data of upload that can be implemented includes:
First electronic equipment obtains the first data that instruction uploads, and sends in the first data to second electronic equipment
Request message is passed, carries first data in message, but first electronic equipment is not by first number of first data
According to being sent to second electronic equipment;
Second electronic equipment obtains first data from the first data upload requests message received, based on acquisition
First data carry out deblocking to first data, are every in conjunction with the storage system metadata of second electronic equipment
A data block distributes corresponding data block identifier, and distributes corresponding memory space for the data block, and each data block is corresponding
Corresponding memory space is written, and saves the mapping relations between each data block identifier and its corresponding storage location information;Its
In, the storage system metadata is at least used to record the storage system capacity distributed intelligence of second electronic equipment, and second
Electronic equipment is distributed as the first data according to the capacity of storage system and distributes suitable memory space;Such as: the first data upload
The first data of 10M size are carried in request message, the second electronic equipment combines its storage system metadata, by the first data
It is divided into 10 data blocks, the memory capacity of each data block is 1M, and each data block is assigned unique data block identifier, often
A data block is corresponding to distribute corresponding memory space, and each memory space has corresponding storage location message identification, therefore, second
Reflecting between each data block identifier and its corresponding storage location information that electronic equipment is able to record in this 10 data blocks
Penetrate relationship;
After saving the mapping relations, second electronic equipment is by the deblocking information of first data, number
The first electronic equipment is sent to according to block identification;Corresponding the second metadata for saving first data of first electronic equipment,
Second metadata be at least used to record first data deblocking information, data block identifier and each data block it
Between incidence relation.It should be noted that since the first electronic equipment is sequentially to send the first data to the second electronic equipment,
Two electronic equipments are also sequentially to return to corresponding data block identifier to the first electronic equipment, to guarantee the first electronic equipment and second
The data consistency of electronic equipment, therefore, the first electronic equipment can obtain the second electronic equipment return data block identifier it
Between incidence relation, so as to generate effective first data;And the second electronic equipment not will record the reception of the first data
Sequentially, therefore the second electronic equipment cannot also know the incidence relation between each data block identifier, thus cannot be in the second electricity
Sub- equipment end generates effective first data.This also ensures that the safety of the first data storage, because of the second electronic equipment
There is no the metadata for saving the first data, so also can not just recover effective first data.
The relevant operation for the first data of upload that another kind can be implemented includes:
After first electronic equipment obtains the instruction for uploading the first data, according to the first data the first metadata, with the
The distribution of two electronic equipments negotiation memory space;Such as: the first electronic equipment needs to upload the first data of 10M size, to
The memory space of two electronic equipments distribution at least 10M size, the second electronic equipment combine its storage system metadata, first divide 10
The memory capacity of a data block, each data block is 1M, and each data block is assigned unique data block identifier, each data
Block is corresponding to distribute corresponding memory space, and each memory space has corresponding storage location message identification, and therefore, the second electronics is set
The standby mapping relations being able to record between each data block identifier and its corresponding storage location information in this 10 data blocks;
Deblocking information, the data block identifier of negotiation are sent to the first electronic equipment by the second electronic equipment;
First electronic equipment deblocking information, data block identifier based on the received, to local first data to be uploaded
Corresponding data block encapsulation is carried out, and packaged data block is uploaded into the second electronic equipment, wherein on the first electronic equipment
The each data block passed has corresponding data block identifier to be marked;First electronic equipment can be known between each data block
Incidence relation, so as to generate effective first data, wherein the deblocking information of first data, data block mark
Incidence relation between knowledge and each data block identifier constitutes the second metadata of first data, is also stored in described
First electronic equipment is local;
After second electronic equipment receives the first data of the first electronic equipment upload, itself is searched according to data block identifier
Mapping relations between the data block identifier and storage location information of preservation obtain the corresponding storage location letter of each data block
Breath, thus by the corresponding corresponding memory space of deposit of the data block.Since there is no save the first data for the second electronic equipment
Metadata, so the second electronic equipment can not recover effective first data, this also ensures that the first data are deposited
The safety of storage.
It does not store, but protects in the second electronic equipment from the metadata that can be seen that the first data in above-described embodiment
There are the first electronic equipment locals, in this way, since the second electronic equipment cannot know the metadata of the first data, it also just can not root
Effective first data are recovered according to the data content stored in the second electronic equipment, to ensure that the first data will not be from
The leakage of two electronic equipments ensure that the storage safety of the first data.Since the metadata of the first data is set by the first electronics completely
Standby to dominate, therefore, user can encrypt the metadata of the first data, further to promote safety.
In addition, the metadata saved in the first electronic equipment is also supported to be stored in exterior storage medium, such as USB flash disk, movement
Hard disk etc..It is specific:
After the second metadata for saving first data, the method may also include that
Obtain the 4th instruction, the 4th instruction, which is used to indicate, to be sent the metadata of first data and set to third electronics
It is standby;The 4th instruction is responded, obtains the first metadata and the second metadata of first data, and by described the of acquisition
One metadata and the second metadata are sent to the third electronic equipment.
That is, when the first electronic equipment is circumscribed with third electronic equipment or the first electronic equipment and third electronics
When having communication capacity between equipment, user triggers the function button for metadata transmission on the first electronic equipment and (can be
Physical button or virtual key), the first electronic equipment can obtain the 4th instruction, that is, indicate to send the metadata of the first data
Give third electronic equipment;Based on the 4th instruction, the metadata of first data is sent to described by the first electronic equipment
Third electronic equipment.
Embodiment two
Second embodiment of the present invention provides a kind of information processing methods, are applied to the first electronic equipment, as shown in Fig. 2, this hair
Mainly for the reading process of the first data, this method specifically includes that bright embodiment two
Step 201, third instruction is obtained, third instruction is used to indicate to read and save in second electronic equipment
First data.
Operation based on user to the first electronic equipment is used on the first electronic equipment from the second electronics when user triggers
When equipment reads function button (can be physical button or virtual key) of data, the first electronic equipment can obtain third and refer to
It enables, that is, indicates that the first electronic equipment reads the first data from the second electronic equipment.
Step 202, the third instruction is responded, the metadata for first data that instruction is read is obtained.
First electronic equipment responds the third instruction, mentions from the metadata that itself is saved after obtaining third instruction
Take the metadata of first data.
Step 203, the metadata of first data based on acquisition sends the first data to second electronic equipment
Read requests message carries the data block identifier for first data that instruction is read in the request message.
After the metadata for obtaining first data, data block identifier therein is extracted, and by the data block identifier
Carrying is sent to the second electronic equipment in the first data read request message.
Step 204, the first data that the instruction that second electronic equipment is sent is read are received, wherein the finger
The first data for showing reading are as second electronic equipment based on described in carrying in the first data read request message
What data block identifier was searched.
After second electronic equipment receives the first data read request message, the data block identifier wherein carried is obtained, is based on
The data block identifier obtained searches the data block identifier that second electronic equipment saves and its corresponding storage location
Mapping relations between information obtain storage location corresponding with the data block identifier of the first data that the instruction is read and believe
Breath;The storage system of second electronic equipment described in the storage location information searching based on acquisition obtains corresponding first number
According to, and first data of acquisition are sent to first electronic equipment.
First electronic equipment receive the second electronic equipment transmission the first data after, can based on each data block identifier,
And the incidence relation between each data block of the first electronic equipment preservation, generate effective first data.
As can be seen that the second electronic equipment, which only presses data block identifier, extracts corresponding data content from above-described embodiment
The first electronic equipment is returned to, the second electronic equipment is not aware that the incidence relation between each data block, therefore the second electronics is set
It is standby to restore to obtain effective first data, so that the first data read operation of the first electronic equipment 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, as shown in figure 3, the party
Method specifically includes that
Step 301, the first data upload requests message that the first electronic equipment is sent is received, is obtained in the request message
The first data carried.
Step 302, first data based on acquisition, in conjunction with the storage system metadata of second electronic equipment,
Deblocking is carried out to first data, distributes corresponding data block identifier for each data block, and be the data block point
With corresponding memory space, corresponding memory space is written by each data block is corresponding, and saves each data block identifier and its right
Answer the mapping relations between storage location information;Wherein, the storage system metadata is at least used to record second electronics
The storage system capacity distributed intelligence of equipment.
Step 303, the deblocking information of first data and data block identifier first electronics is sent to set
It is standby.
A kind of relevant operation that the first data that can be implemented upload includes:
First electronic equipment obtains the first data that instruction uploads, and sends in the first data to second electronic equipment
Request message is passed, carries first data in message, but first electronic equipment is not by first number of first data
According to being sent to second electronic equipment;
Second electronic equipment obtains first data from the first data upload requests message received, based on acquisition
First data carry out deblocking to first data, are every in conjunction with the storage system metadata of second electronic equipment
A data block distributes corresponding data block identifier, and distributes corresponding memory space for the data block, and each data block is corresponding
Corresponding memory space is written, and saves the mapping relations between each data block identifier and its corresponding storage location information;Its
In, the storage system metadata is at least used to record the storage system capacity distributed intelligence of second electronic equipment, and second
Electronic equipment is distributed as the first data according to the capacity of storage system and distributes suitable memory space;Such as: the first data upload
The first data of 10M size are carried in request message, the second electronic equipment combines its storage system metadata, by the first data
It is divided into 10 data blocks, the memory capacity of each data block is 1M, and each data block is assigned unique data block identifier, often
A data block is corresponding to distribute corresponding memory space, and each memory space has corresponding storage location message identification, therefore, second
Reflecting between each data block identifier and its corresponding storage location information that electronic equipment is able to record in this 10 data blocks
Penetrate relationship;
After saving the mapping relations, second electronic equipment is by the deblocking information of first data, number
The first electronic equipment is sent to according to block identification;Corresponding the second metadata for saving first data of first electronic equipment,
Second metadata be at least used to record first data deblocking information, data block identifier and each data block it
Between incidence relation.It should be noted that since the first electronic equipment is sequentially to send the first data to the second electronic equipment,
Two electronic equipments are also sequentially to return to corresponding data block identifier to the first electronic equipment, to guarantee the first electronic equipment and second
The data consistency of electronic equipment, therefore, the first electronic equipment can obtain the second electronic equipment return data block identifier it
Between incidence relation, so as to generate effective first data;And the second electronic equipment not will record the reception of the first data
Sequentially, therefore the second electronic equipment cannot also know the incidence relation between each data block identifier, thus cannot be in the second electricity
Sub- equipment end generates effective first data.This also ensures that the safety of the first data storage, because of the second electronic equipment
There is no the metadata for saving the first data, so also can not just recover effective first data.
The relevant operation that the first data that another kind can be implemented upload includes:
After first electronic equipment obtains the instruction for uploading the first data, according to the first data the first metadata, with the
The distribution of two electronic equipments negotiation memory space;Such as: the first electronic equipment needs to upload the first data of 10M size, to
The memory space of two electronic equipments distribution at least 10M size, the second electronic equipment combine its storage system metadata, first divide 10
The memory capacity of a data block, each data block is 1M, and each data block is assigned unique data block identifier, each data
Block is corresponding to distribute corresponding memory space, and each memory space has corresponding storage location message identification, and therefore, the second electronics is set
The standby mapping relations being able to record between each data block identifier and its corresponding storage location information in this 10 data blocks;
Deblocking information, the data block identifier of negotiation are sent to the first electronic equipment by the second electronic equipment;
First electronic equipment deblocking information, data block identifier based on the received, to local first data to be uploaded
Corresponding data block encapsulation is carried out, and packaged data block is uploaded into the second electronic equipment, wherein on the first electronic equipment
The each data block passed has corresponding data block identifier to be marked;First electronic equipment can be known between each data block
Incidence relation, so as to generate effective first data, wherein the deblocking information of first data, data block mark
Incidence relation between knowledge and each data block identifier constitutes the second metadata of first data, is also stored in described
First electronic equipment is local;
After second electronic equipment receives the first data of the first electronic equipment upload, itself is searched according to data block identifier
Mapping relations between the data block identifier and storage location information of preservation obtain the corresponding storage location letter of each data block
Breath, thus by the corresponding corresponding memory space of deposit of the data block.Since there is no save the first data for the second electronic equipment
Metadata, so the second electronic equipment can not recover effective first data, this also ensures that the first data are deposited
The safety of storage.
Example IV
The embodiment of the present invention four provides a kind of information processing method, is applied to the second electronic equipment, as shown in figure 4, this hair
Mainly for the reading process of the first data, this method specifically includes that bright example IV
Step 401, the first data read request message that first electronic equipment is sent is received, the request is obtained and disappears
The data block identifier for the first data that the instruction carried in breath is read.
Step 402, the data block identifier based on acquisition searches the data block that second electronic equipment saves
Mapping relations between mark and its corresponding storage location information obtain the data block mark of the first data read with the instruction
Sensible corresponding storage location information.
Step 403, the storage system of the second electronic equipment described in the storage location information searching based on acquisition obtains
Corresponding first data, and first data of acquisition are sent to first electronic equipment;Wherein, described to be sent to
First data in data blocks of one electronic equipment is transmitted and each data block is marked by corresponding data block identifier.
As can be seen that the second electronic equipment, which only presses data block identifier, extracts corresponding data content from above-described embodiment
The first electronic equipment is returned to, the second electronic equipment is not aware that the incidence relation between each data block, therefore the second electronics is set
It is standby to restore to obtain effective first data, so that the first data read operation of the first electronic equipment is safe.
In one embodiment, the method may also include that
First data saved in second electronic equipment are made a backup store, and save backup storage address
Mapping relations between data block identifier corresponding with the first data;Data failure memory in second electronic equipment
When, first is carried out according to the mapping relations between the backup storage address data block identifier corresponding with the first data of preservation
Data are restored.
That is, each data block (being marked with data block identifier) of the first data is corresponding in the second electronic equipment
One main storage address and at least one backup storage address, each storage address correspondence store the complete of respective data blocks
Data content, i.e., each data block identifier can be mapped with a main storage address and at least one backup storage address;So,
When data failure memory (loss of data of such as main storage address) in second electronic equipment, according to the described standby of preservation
Mapping relations between part storage address data block identifier corresponding with the first data can be carried out the recovery of the first data, extensive
The data content of multiple main storage address.
Embodiment five
The embodiment of the present invention five provides a kind of first electronic equipment, as shown in figure 5, first electronic equipment includes:
First instruction obtaining unit 11, for obtaining the first instruction, first instruction, which is used to indicate, saves the first data
And the first metadata of first data;
First instruction execution unit 12, for responding first instruction, by first data and its first metadata
It is corresponding to be stored in the first electronic equipment local, wherein first metadata is at least used to record first data pair
The file identification answered;
Second instruction obtaining unit 13, for obtaining the second instruction, second instruction is used to indicate upload described first
Data are saved to the second electronic equipment;
Second instruction execution unit 14 is sent in the first data for responding second instruction to the second electronic equipment
Request message is passed, first data that instruction uploads are sent to second electronic equipment, and corresponding preservation described first
Second metadata of data, second metadata are at least used to record deblocking information, the data block of first data
Incidence relation between mark and each data block;Wherein, the deblocking information of first data and data block identifier by
Second electronic equipment provides, and each data block is marked by corresponding data block identifier.
In one embodiment, first electronic equipment further include:
Third instructs obtaining unit 15, and for obtaining third instruction, the third instruction is used to indicate reading described second
The first data saved in electronic equipment;
Third instruction execution unit 16 obtains first data that instruction is read for responding the third instruction
Metadata;The metadata of first data based on acquisition sends the first data read request to second electronic equipment and disappears
It ceases, the data block identifier for first data that instruction is read is carried in the request message;Receive second electronic equipment
The first data that the instruction sent is read, wherein the first data that the instruction is read are by second electronic equipment
It is searched based on the data block identifier carried in the first data read request message.
In one embodiment, first electronic equipment further include:
4th instruction obtaining unit 17, for obtaining the 4th instruction, the 4th instruction is used to indicate transmission described first
The metadata of data is to third electronic equipment;
4th instruction execution unit 18 obtains the first metadata of first data for responding the 4th instruction
With the second metadata, and first metadata of acquisition and the second metadata are sent to the third electronic equipment.
Embodiment six
The embodiment of the present invention six provides a kind of second electronic equipment, as shown in fig. 6, second electronic equipment includes:
Receiving unit 21 is asked described in acquisition for receiving the first data upload requests message of the first electronic equipment transmission
Seek the first data carried in message;
Data processing unit 22, for first data based on acquisition, in conjunction with the storage of second electronic equipment
First data are carried out deblocking by system metadata, distribute corresponding data block identifier for each data block, and be institute
It states data block and distributes corresponding memory space, by the corresponding corresponding memory space of write-in of each data block, and save each data block
Mapping relations between mark and its corresponding storage location information;Wherein, the storage system metadata is at least used to record institute
State the storage system capacity distributed intelligence of the second electronic equipment;
Transmission unit 23, for the deblocking information of first data and data block identifier to be sent to described first
Electronic equipment.
In one embodiment,
The receiving unit 21 is further used for, and receives the first data read request that first electronic equipment is sent and disappears
Breath obtains the data block identifier for the first data that the instruction carried in the request message is read;
The data processing unit 22 is further used for, and the data block identifier based on acquisition searches second electronics
The mapping relations between the data block identifier and its corresponding storage location information that equipment saves, obtain and read with the instruction
The first data the corresponding storage location information of data block identifier;Described in the storage location information searching based on acquisition
The storage system of second electronic equipment obtains corresponding first data;
The transmission unit 23 is further used for, and first data of acquisition are sent to first electronic equipment;
Wherein, first data in data blocks for being sent to the first electronic equipment is transmitted and each data block is by corresponding number
It is marked according to block identification.
In one embodiment,
The data processing unit 22 is further used for, to first data saved in second electronic equipment into
Row backup storage, and save the mapping relations between backup storage address data block identifier corresponding with the first data;
When the data failure memory in second electronic equipment, according to the backup storage address and first of preservation
Mapping relations between the corresponding data block identifier of data carry out the first data recovery.
In conclusion the metadata of the first data does not store in the second electronic equipment in the embodiment of the present invention, but protect
There are the first electronic equipment locals, are dominated by the first electronic equipment, in this way, since the second electronic equipment cannot know the first number
According to metadata, effective first data also can not be just recovered according to the data content stored in the second electronic equipment, thus
It ensure that the first data will not be leaked from the second electronic equipment, ensure that the storage safety of the first data.In addition, from the second electronics
The operation that the first data are read in equipment is also only based on mapping relations between data block identifier and storage location information
It executes, the second electronic equipment can not also know the incidence relation between each data block identifier, unlikely recover effective
First data, therefore, the read operation of the first data are also safe.
In several embodiments provided by the present invention, it should be understood that disclosed method, apparatus and electronic equipment,
It may be implemented in other ways.Apparatus embodiments described above are merely indicative, for example, the unit is drawn
Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can
To combine, or it is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed
The mutual coupling of each component part or direct-coupling or communication connection can be through some interfaces, equipment or unit
Indirect coupling or communication connection can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit
The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists
In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also
To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned
Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the embodiment of the present invention is realized in the form of software function module and as independence
Product when selling or using, also can store in a computer readable storage medium.Based on this understanding, this hair
Substantially the part that contributes to existing technology can body in the form of software products in other words for the technical solution of bright embodiment
Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set
Standby (can be personal computer, server or network equipment etc.) executes the whole of each embodiment the method for the present invention
Or part.And storage medium above-mentioned include: movable storage device, read-only memory (ROM, Read-Only Memory), with
Machine accesses various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk
Matter.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (12)
1. a kind of information processing method is applied to the first electronic equipment, which comprises
The first instruction is obtained, first instruction is used to indicate first yuan of number for saving the first data and first data
According to;
First instruction is responded, first data and its first metadata correspondence are stored in the first electronic equipment sheet
Ground, wherein first metadata is at least used to record the corresponding file identification of first data;
The second instruction is obtained, second instruction is used to indicate upload first data and is saved to the second electronic equipment;
Second instruction is responded, sends the first data upload requests message to the second electronic equipment, it will be described in instruction upload
First data are sent to second electronic equipment, and correspond to the second metadata for saving first data, and described second yuan
Data are at least used to record the pass of the association between the deblocking information, data block identifier and each data block of first data
System;Wherein, the deblocking information of first data and data block identifier are provided by second electronic equipment, each data
Block is marked by corresponding data block identifier.
2. information processing method according to claim 1, which is characterized in that sent in first data that will indicate to upload
After second electronic equipment, the method also includes:
Third instruction is obtained, the third instruction is used to indicate the first data for reading and saving in second electronic equipment;
The third instruction is responded, the metadata for first data that instruction is read is obtained;
The metadata of first data based on acquisition sends the first data read request message to second electronic equipment,
The data block identifier for first data that instruction is read is carried in the request message;
Receive the first data that the instruction that second electronic equipment is sent is read, wherein the first of the instruction reading
Data are to be looked by second electronic equipment based on the data block identifier carried in the first data read request message
It finds.
3. information processing method according to claim 1 or claim 2, which is characterized in that at second yuan of preservation first data
After data, the method also includes:
The 4th instruction is obtained, the 4th instruction, which is used to indicate, sends the metadata of first data to third electronic equipment;
The 4th instruction is responded, obtains the first metadata and the second metadata of first data, and will be described in acquisition
First metadata and the second metadata are sent to the third electronic equipment.
4. a kind of information processing method is applied to the second electronic equipment, which comprises
The the first data upload requests message for receiving the transmission of the first electronic equipment obtains the first number carried in the request message
According to;
First data based on acquisition, in conjunction with the storage system metadata of second electronic equipment, to first number
According to deblocking is carried out, corresponding data block identifier is distributed for each data block, and be the corresponding storage of data block distribution
Space by the corresponding corresponding memory space of write-in of each data block, and saves each data block identifier and its corresponding storage location letter
Mapping relations between breath;Wherein, the storage system metadata is at least used to record the storage system of second electronic equipment
System capacity distributed intelligence;
The deblocking information of first data and data block identifier are sent to first electronic equipment.
5. information processing method according to claim 4, which is characterized in that after saving the mapping relations, the method
Further include:
The first data read request message that first electronic equipment is sent is received, the finger carried in the request message is obtained
Show the data block identifier of the first data of reading;
The data block identifier based on acquisition searches the data block identifier and its correspondence that second electronic equipment saves
Mapping relations between storage location information obtain deposit corresponding with the data block identifier of the first data that the instruction is read
Store up location information;
The storage system of second electronic equipment described in the storage location information searching based on acquisition obtains corresponding first number
According to, and first data of acquisition are sent to first electronic equipment;Wherein, first electronic equipment of being sent to
First data in data blocks is transmitted and each data block is marked by corresponding data block identifier.
6. information processing method according to claim 4 or 5, which is characterized in that the method also includes:
First data saved in second electronic equipment are made a backup store, and save backup storage address and the
Mapping relations between the corresponding data block identifier of one data;
When the data failure memory in second electronic equipment, according to the backup storage address of preservation and the first data
Mapping relations between corresponding data block identifier carry out the first data recovery.
7. a kind of first electronic equipment, comprising:
First instruction obtaining unit, for obtaining the first instruction, first instruction, which is used to indicate, saves the first data and institute
State the first metadata of the first data;
First instruction execution unit, for responding first instruction, by first data and its corresponding guarantor of the first metadata
It is local that there are first electronic equipments, wherein first metadata is at least used to record the corresponding text of first data
Part mark;
Second instructs obtaining unit, and for obtaining the second instruction, second instruction is used to indicate upload first data and arrives
Second electronic equipment is saved;
Second instruction execution unit sends the first data upload requests to the second electronic equipment for responding second instruction
First data that instruction uploads are sent to second electronic equipment, and correspond to and save first data by message
Second metadata, second metadata be at least used to record the deblocking information of first data, data block identifier with
And the incidence relation between each data block;Wherein, the deblocking information of first data and data block identifier are by described
Two electronic equipments provide, and each data block is marked by corresponding data block identifier.
8. the first electronic equipment according to claim 7, which is characterized in that first electronic equipment further include:
Third instructs obtaining unit, and for obtaining third instruction, the third instruction is used to indicate reading second electronics and sets
First data of standby middle preservation;
Third instruction execution unit obtains the metadata for first data that instruction is read for responding the third instruction;
The metadata of first data based on acquisition sends the first data read request message to second electronic equipment, described
The data block identifier for first data that instruction is read is carried in request message;Receive the institute that second electronic equipment is sent
State the first data that instruction is read, wherein the first data that the instruction is read are by second electronic equipment based on described
What the data block identifier carried in the first data read request message was searched.
9. according to first electronic equipment of claim 7 or 8, which is characterized in that first electronic equipment further include:
4th instruction obtaining unit, for obtaining the 4th instruction, the 4th instruction, which is used to indicate, sends first data
Metadata is to third electronic equipment;
4th instruction execution unit obtains the first metadata and second of first data for responding the 4th instruction
Metadata, and first metadata of acquisition and the second metadata are sent to the third electronic equipment.
10. a kind of second electronic equipment, comprising:
Receiving unit obtains the request message for receiving the first data upload requests message of the first electronic equipment transmission
First data of middle carrying;
Data processing unit, for first data based on acquisition, in conjunction with the storage system member of second electronic equipment
Data carry out deblocking to first data, distribute corresponding data block identifier for each data block, and be the data
Block distributes corresponding memory space, and corresponding memory space is written by each data block is corresponding, and save each data block identifier and
It corresponds to the mapping relations between storage location information;Wherein, the storage system metadata is at least used to record described second
The storage system capacity distributed intelligence of electronic equipment;
Transmission unit is set for the deblocking information of first data and data block identifier to be sent to first electronics
It is standby.
11. the second electronic equipment according to claim 10, which is characterized in that
The receiving unit is further used for, and receives the first data read request message that first electronic equipment is sent, obtains
Obtain the data block identifier for the first data that the instruction carried in the request message is read;
The data processing unit is further used for, and the data block identifier based on acquisition is searched second electronic equipment and protected
The mapping relations between the data block identifier and its corresponding storage location information deposited, obtain first read with the instruction
The corresponding storage location information of the data block identifier of data;Second electricity described in the storage location information searching based on acquisition
The storage system of sub- equipment obtains corresponding first data;
The transmission unit is further used for, and first data of acquisition are sent to first electronic equipment;Wherein, institute
It states and is sent to the first data in data blocks of the first electronic equipment and is transmitted and each data block is by corresponding data block identifier
It is marked.
12. 0 or 11 second electronic equipment according to claim 1, which is characterized in that the data processing unit is further used
In being made a backup store to first data saved in second electronic equipment, and save backup storage address and the
Mapping relations between the corresponding data block identifier of one data;
When the data failure memory in second electronic equipment, according to the backup storage address of preservation and the first data
Mapping relations between corresponding data block identifier carry out the first data recovery.
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 CN106155921A (en) | 2016-11-23 |
CN106155921B true 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) |
Families Citing this family (2)
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 |
CN111984460B (en) * | 2019-05-21 | 2023-11-24 | 华为云计算技术有限公司 | Metadata recovery method and device |
Citations (4)
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 |
CN104010016A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Data management method, cloud server and terminal device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130013798A1 (en) * | 2011-07-06 | 2013-01-10 | Cleversafe, Inc. | Distribution of multi-media content to a user device |
-
2015
- 2015-04-03 CN CN201510158153.3A patent/CN106155921B/en active Active
Patent Citations (4)
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 |
CN104010016A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Data management method, cloud server and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN106155921A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101854392B (en) | Personal data management method based on cloud computing environment | |
CN103530201B (en) | A kind of secure data De-weight method and system being applicable to standby system | |
CN102843436B (en) | A kind of device management method, equipment, server and system | |
CN101997823B (en) | Distributed file system and data access method thereof | |
CN107295069A (en) | Data back up method, device, storage medium and server | |
CN108377272B (en) | Method and system for managing terminal of Internet of things | |
CN105874464B (en) | System and method for introducing variation in subsystem output signal to prevent device-fingerprint from analyzing | |
CN104580395B (en) | A kind of cloudy collaboration Storage Middleware Applying system based on existing cloud storage platform | |
CN101667934B (en) | Centralized supervision device and supervision method of USB interface equipment networking | |
CA2886511A1 (en) | Assembling of isolated remote data | |
CN103905495B (en) | A kind of synchronous method and background server of application | |
CN104852925A (en) | Method for leakproof, secure storage and backup of data of mobile smart terminal | |
CN109977684A (en) | A kind of data transmission method, device and terminal device | |
CN104035891B (en) | Android mobile terminal data security protection system | |
CN109739690B (en) | Backup method and related products | |
CN101547219B (en) | System and method for data storage | |
CN107870734A (en) | The exchange method and device of a kind of distributed file system | |
CN106603561A (en) | Block level encryption method in cloud storage and multi-granularity deduplication method | |
CN103152390A (en) | Method and device and nodes and system for node configuration of distributed storage system | |
CN103281375A (en) | Contact management method, device and system for third-party application | |
CN103327085A (en) | Distributed data processing method, data center and distributed data system | |
CN110515762A (en) | Data reconstruction method, device, terminal device and storage medium | |
CN108551764A (en) | System and method for backing up large-scale distributed data system extending transversely | |
CN101521662B (en) | Confidential U-disk remote monitoring system and method thereof | |
CN106155921B (en) | A kind of information processing method and electronic equipment |
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 |