CN105117306A - Information processing method and electronic apparatus - Google Patents

Information processing method and electronic apparatus Download PDF

Info

Publication number
CN105117306A
CN105117306A CN201510546630.3A CN201510546630A CN105117306A CN 105117306 A CN105117306 A CN 105117306A CN 201510546630 A CN201510546630 A CN 201510546630A CN 105117306 A CN105117306 A CN 105117306A
Authority
CN
China
Prior art keywords
data
storage area
storage
storage unit
sub
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.)
Pending
Application number
CN201510546630.3A
Other languages
Chinese (zh)
Inventor
李志刚
谢晓辉
张红蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing legend core technology Co., 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 CN201510546630.3A priority Critical patent/CN105117306A/en
Publication of CN105117306A publication Critical patent/CN105117306A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides an information processing method and electronic apparatus. The method comprises: at least partitioning out a first memory area and a second memory area from a storage unit, wherein the first storage area comprises N sub-memory units, the second memory area comprises M sub-memory units which are not overlapped with the first memory areas, and both N and M are positive integers that are greater than or equal to 1; receiving input first data; when the first data meets a first preset condition, storing the first data in the first memory area and storing backup data of the first data in the second memory area; based on the first data, establishing a data storage corresponding relationship in the first memory area and the second memory area; and adding and storing the data storage corresponding relationship into a storage region mapping table.

Description

A kind of information processing method and electronic equipment
Technical field
The storage management technique of design information process field of the present invention, particularly relates to a kind of information processing method and electronic equipment.
Background technology
Storage unit in electronic equipment, such as solid state hard disc can be elongated along with the time used, the problems such as the corrupted data that appearance stores or loss of data, reduce the reliability of storage unit, especially when user stores the data of outbalance time, in the event of the loss of important data or the problem of damage, storage unit will be used to bring great puzzlement to user like this.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of information processing method and electronic equipment, at least can solve the problems referred to above that prior art exists.
Embodiments provide a kind of information processing method, be applied to electronic equipment, described method comprises:
The first storage area and the second storage area is at least marked off from storage unit; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Receive the first data of input;
When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
Based on described first data at described first storage area and described second storage area, set up data and store corresponding relation;
Described data are stored corresponding relation add and be saved to storage area mapping table.
Embodiments provide a kind of electronic equipment, comprising:
Storage unit, at least marking off the first storage area and the second storage area; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Data Management Unit, for receiving the first data of input; When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
List management unit, for based on described first data at described first storage area and described second storage area, set up data store corresponding relation; Described data are stored corresponding relation add and be saved to storage area mapping table.
A kind of information processing method provided by the present invention and electronic equipment, storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention information processing method schematic flow sheet one;
Fig. 2 is that embodiment of the present invention storage unit divides schematic diagram one;
Fig. 3 is that embodiment of the present invention storage unit divides schematic diagram two;
Fig. 4 is the schematic flow sheet that the embodiment of the present invention reads tables of data;
Fig. 5 is embodiment of the present invention data correction schematic flow sheet;
Fig. 6 is embodiment of the present invention information processing method schematic flow sheet two;
Fig. 7 is the parameters obtain manner schematic diagram of embodiment of the present invention data;
Fig. 8 is embodiment of the present invention storage area mapping relations schematic diagram;
Fig. 9 is embodiment of the present invention electronic equipment composition structural representation.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Embodiment one,
Embodiments provide a kind of information processing method, be applied to electronic equipment, as shown in Figure 1, described method comprises:
Step 11: at least mark off the first storage area and the second storage area from storage unit; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Step 12: the first data receiving input;
Step 13: when described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
Step 14: based on described first data at described first storage area and described second storage area, sets up data and stores corresponding relation;
Step 15: described data are stored corresponding relation and adds and be saved to storage area mapping table.
Here, described storage unit can be solid state hard disc (SSD).Electronic equipment can be smart mobile phone, panel computer, server, desktop computer etc.
Describedly storage unit is divided into the first storage area and the second storage area can be: from physically, using the sub-storage unit of adjacent N continuous as the first storage area, an adjacent continuous N sub-storage unit is as the second storage area; Wherein, described storage unit can be made up of at least one NAND chip, includes multiple described sub-storage unit in each NAND chip, and sub-storage unit described in the present embodiment can be minimum memory unit in storage unit and Physical Page; Such as, shown in Fig. 2, the whole sub-storage unit in two NAND chips that shade can be marked is as the second storage area 22, and the whole sub-storage unit in two NAND chips grey marked is as the first storage area 21.
Or can be that continuous print specifies N number of sub-storage unit as the first storage area in logic, the M that specifies of continuous print sub-storage unit be as the second storage area in logic.Such as, as shown in Figure 3, the whole sub-storage unit comprised by dash area is as the second storage area 32, and the whole sub-storage unit marked by grey parts is as the first storage area 31.The mode choosing sub-storage unit can be chosen according to actual conditions, such as, can choose residual memory space be greater than specify threshold value chip in sub-storage unit form the first storage area or the second storage area.
In the present embodiment, the first storage area is in the memory unit for storing satisfied first pre-conditioned the first data, and accordingly, the second storage area is for storing Backup Data corresponding to the first data; But not only can include the first storage area and the second storage area in the described storage unit provided in the present embodiment, that is, remove outside above-mentioned first storage area and the second storage area, storage unit can also include the 3rd storage area, may be used for storing not meeting the first pre-conditioned data.See such as 2 or Fig. 3, also can be found out, except the first storage area and the second storage area, to also have the storage area of some blank by Fig. 2 and Fig. 3.
In the present embodiment, N and M can be equal, also can be unequal.
In addition, described in the present embodiment based on described first data at described first storage area and described second storage area, set up data store corresponding relation, can comprise:
Second address information of the sub-storage unit of Backup Data in described second storage area of the first address information of the sub-storage unit of described first data in described first storage area and described first data is associated, the first address information after association and the second address information are stored corresponding relation as data.
Wherein, due to Physical Page that described sub-storage unit can be in described storage unit; Accordingly, described first address information and the second address information may be used for characterizing positional information corresponding to described Physical Page.Such as, the first address information is the Physical Page 1 of chip one, just shows that storage first data are in Physical Page 1; Suppose that the second address information is the Physical Page 1 of chip three, just show that the Backup Data of storage first data is in the Physical Page 1 of chip three.
Include at least one group of data in described storage area mapping table and store corresponding relation.
Visible, by adopting such scheme, just storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
Embodiment two,
Embodiments provide a kind of information processing method, be applied to electronic equipment, as shown in Figure 1, described method comprises:
Step 11: at least mark off the first storage area and the second storage area from storage unit; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Step 12: the first data receiving input;
Step 13: when described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
Step 14: based on described first data at described first storage area and described second storage area, sets up data and stores corresponding relation;
Step 15: described data are stored corresponding relation and adds and be saved to storage area mapping table.
Here, described storage unit can be solid state hard disc (SSD).Electronic equipment can be smart mobile phone, panel computer, server, desktop computer etc.
Describedly storage unit is divided into the first storage area and the second storage area can be: from physically, using the sub-storage unit of adjacent N continuous as the first storage area, an adjacent continuous N sub-storage unit is as the second storage area; Wherein, described storage unit can be made up of at least one NAND chip, includes multiple described sub-storage unit in each NAND chip, and sub-storage unit described in the present embodiment can be minimum memory unit in storage unit and Physical Page; Such as, shown in Fig. 2, the whole sub-storage unit in two NAND chips that shade can be marked is as the second storage area 22, and the whole sub-storage unit in two NAND chips grey marked is as the first storage area 21.
Or can be that continuous print specifies N number of sub-storage unit as the first storage area in logic, the M that specifies of continuous print sub-storage unit be as the second storage area in logic.Such as, as shown in Figure 3, the whole sub-storage unit comprised by dash area is as the second storage area 32, and the whole sub-storage unit marked by grey parts is as the first storage area 31.The mode choosing sub-storage unit can be chosen according to actual conditions, such as, can choose residual memory space be greater than specify threshold value chip in sub-storage unit form the first storage area or the second storage area.
In the present embodiment, the first storage area is in the memory unit for storing satisfied first pre-conditioned the first data, and accordingly, the second storage area is for storing Backup Data corresponding to the first data; But not only can include the first storage area and the second storage area in the described storage unit provided in the present embodiment, that is, remove outside above-mentioned first storage area and the second storage area, storage unit can also include the 3rd storage area, may be used for storing not meeting the first pre-conditioned data.See such as 2 or Fig. 3, also can be found out, except the first storage area and the second storage area, to also have the storage area of some blank by Fig. 2 and Fig. 3.
In the present embodiment, N and M can be equal, also can be unequal.
In addition, described in the present embodiment based on described first data at described first storage area and described second storage area, set up data store corresponding relation, can comprise:
Second address information of the sub-storage unit of Backup Data in described second storage area of the first address information of the sub-storage unit of described first data in described first storage area and described first data is associated, the first address information after association and the second address information are stored corresponding relation as data.
Wherein, due to Physical Page that described sub-storage unit can be in described storage unit; Accordingly, described first address information and the second address information may be used for characterizing positional information corresponding to described Physical Page.Such as, the first address information is the Physical Page 1 of chip one, just shows that storage first data are in Physical Page 1; Suppose that the second address information is the Physical Page 1 of chip three, just show that the Backup Data of storage first data is in the Physical Page 1 of chip three.
Include at least one group of data in described storage area mapping table and store corresponding relation.
Second storage area described in the present embodiment can be user's invisible area, such as, a storage unit can provide the storage space of 64G altogether, owing to wherein dividing out 12G to the second storage area, and the second storage area is the recessive invisible area existed, so being shown to the visible storage space of user may be 54G.
Based on the storage area mapping table that such scheme generates, the embodiment of the present invention additionally provides the method reading data based on storage area mapping table, as shown in Figure 4, comprising:
Step 41: receive data read command;
Step 42: based on described data read command, extracts the first data from described first storage area;
Step 43: judge whether described first data meet second pre-conditioned, wherein, the proof test value that described second pre-conditioned characterization data is corresponding meets first threshold;
Step 44: if described first data do not meet second pre-conditioned, then the data got from described storage area mapping table for described first data store corresponding relation;
Step 45: store corresponding relation based on the data for described first data, get the Backup Data of the first data from described second storage area.
Wherein, based on described data read command, extracting the first data from described first storage area, can be the mark according to the first data in data read command, find at least one sub-storage unit of described storage first data, extract from the sub-storage unit of correspondence and obtain the first data.
Described method can also comprise: verify the first data extracted, obtain proof test value.Wherein, the method for described verification can have the methods of calibration such as parity checking, cyclic redundancy data check (CRC, CyclicRedundancyCheck), MD5.Accordingly, described first threshold can according to the corresponding different threshold value of different methods of calibration, if the proof test value of the first data obtained is in the scope of first threshold, then determine that described first data meet second pre-conditioned, namely described first data are partial data; If the proof test value of the first data is not within the scope of first threshold, then the first data are deficiency of data, now, just need the Backup Data of acquisition first data.
After above-mentioned steps 45 is complete, user just can get the Backup Data of the first required data.
After above-mentioned steps 45 completes, the Backup Data of the first data can also be utilized to repair the first data, as shown in Figure 5, comprising:
Step 51: based on the Backup Data of described first data, revises described first data, obtains revised described first data;
Step 52: revised described first data are saved to described first storage area.
Wherein, to the method that described first data are revised can be: utilize the comparison that the Backup Data of the first data and described first data are carried out by turn, determine data bit different from the Backup Data of described first data in the first data, the data bit in the Backup Data of described first data is filled to data bit corresponding to described first data.
Or, to the method that described first data are revised can also be: directly using the Backup Data of described first data as described first data.
Preferably, above-mentioned being saved to can for being still kept at described revised first data in the sub-storage unit of former first data preservation in described first storage area.
Visible, by adopting such scheme, just storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
Embodiment three,
Embodiments provide a kind of information processing method, be applied to electronic equipment, as shown in Figure 6, described method comprises:
Step 61: at least mark off the first storage area and the second storage area from storage unit; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Step 62: the first data receiving input;
Step 63: the parameters getting described first data;
Step 64: based on the parameters of described first data, judges whether described first data meet first pre-conditioned;
Step 65: when described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
Step 66: based on described first data at described first storage area and described second storage area, sets up data and stores corresponding relation;
Step 67: described data are stored corresponding relation and adds and be saved to storage area mapping table.
Here, described storage unit can be solid state hard disc (SSD).Electronic equipment can be smart mobile phone, panel computer, server, desktop computer etc.
Describedly storage unit is divided into the first storage area and the second storage area can be: from physically, using the sub-storage unit of adjacent N continuous as the first storage area, an adjacent continuous N sub-storage unit is as the second storage area; Wherein, described storage unit can be made up of at least one NAND chip, includes multiple described sub-storage unit in each NAND chip, and sub-storage unit described in the present embodiment can be minimum memory unit in storage unit and Physical Page; Such as, shown in Fig. 2, the whole sub-storage unit in two NAND chips that shade can be marked is as the second storage area 22, and the whole sub-storage unit in two NAND chips grey marked is as the first storage area 21.
Or can be that continuous print specifies N number of sub-storage unit as the first storage area in logic, the M that specifies of continuous print sub-storage unit be as the second storage area in logic.Such as, as shown in Figure 3, the whole sub-storage unit comprised by dash area is as the second storage area 32, and the whole sub-storage unit marked by grey parts is as the first storage area 31.The mode choosing sub-storage unit can be chosen according to actual conditions, such as, can choose residual memory space be greater than specify threshold value chip in sub-storage unit form the first storage area or the second storage area.
In the present embodiment, the first storage area is in the memory unit for storing satisfied first pre-conditioned the first data, and accordingly, the second storage area is for storing Backup Data corresponding to the first data; But not only can include the first storage area and the second storage area in the described storage unit provided in the present embodiment, that is, remove outside above-mentioned first storage area and the second storage area, storage unit can also include the 3rd storage area, may be used for storing not meeting the first pre-conditioned data.See such as 2 or Fig. 3, also can be found out, except the first storage area and the second storage area, to also have the storage area of some blank by Fig. 2 and Fig. 3.
In the present embodiment, N and M can be equal, also can be unequal.
Above-mentioned judge the first data whether meet first pre-conditioned can for judge whether described first data are significant data, if significant data then meets first pre-conditioned, otherwise, do not meet first pre-conditioned; The parameters that its determination methods is by getting described first data judges.
Further, the parameters of described first data can for while described first data of preservation, for user provides corresponding preservation operation interface, chosen the attribute of the first data that will preserve by user by preservation operation interface, such as, as shown in Figure 7, be the title of the first data can will preserved to some extent in the operation interface that user provides, the first data are the Attributions selection such as significant data, general data.The parameters being provided as described first data of user is preserved.
In addition, described in the present embodiment based on described first data at described first storage area and described second storage area, set up data store corresponding relation, can comprise:
Second address information of the sub-storage unit of Backup Data in described second storage area of the first address information of the sub-storage unit of described first data in described first storage area and described first data is associated, the first address information after association and the second address information are stored corresponding relation as data.
Wherein, due to Physical Page that described sub-storage unit can be in described storage unit; Accordingly, described first address information and the second address information may be used for characterizing positional information corresponding to described Physical Page.Such as, the first address information is the Physical Page 1 of chip one, just shows that storage first data are in Physical Page 1; Suppose that the second address information is the Physical Page 1 of chip three, just show that the Backup Data of storage first data is in the Physical Page 1 of chip three.
Include at least one group of data in described storage area mapping table and store corresponding relation.
Second storage area described in the present embodiment can be user's invisible area, such as, a storage unit can provide the storage space of 64G altogether, owing to wherein dividing out 12G to the second storage area, and the second storage area is recessive existence, so being shown to the visible storage space of user may be 54G.
Based on the storage area mapping table that such scheme generates, the embodiment of the present invention additionally provides the method reading data based on storage area mapping table, comprising: receive data read command; Based on described data read command, extract the first data from described first storage area; Judge whether described first data meet second pre-conditioned, wherein, the proof test value that described second pre-conditioned characterization data is corresponding meets first threshold; If described first data do not meet second pre-conditioned, then the data got from described storage area mapping table for described first data store corresponding relation; Store corresponding relation based on the data for described first data, get the Backup Data of the first data from described second storage area.
Wherein, based on described data read command, extracting the first data from described first storage area, can be the mark according to the first data in data read command, find at least one sub-storage unit of described storage first data, extract from the sub-storage unit of correspondence and obtain the first data.
Described method can also comprise: verify the first data extracted, obtain proof test value.Wherein, the method for described verification can have the methods of calibration such as parity checking, cyclic redundancy data check (CRC, CyclicRedundancyCheck), MD5.Accordingly, described first threshold can according to the corresponding different threshold value of different methods of calibration, if the proof test value of the first data obtained is in the scope of first threshold, then determine that described first data meet second pre-conditioned, namely described first data are partial data; If the proof test value of the first data is not within the scope of first threshold, then the first data are deficiency of data, now, just need the Backup Data of acquisition first data.
Based on the such scheme that the present embodiment provides, the present embodiment can also provide the mode of carrying out correction automatically for the data stored, and described method also comprises: from described storage area mapping table, extracts data one by one and stores corresponding relation; Store corresponding relation based on the data extracted, get raw data and Backup Data thereof; Described raw data and Backup Data thereof are verified, if the check results of described raw data and Backup Data thereof is inconsistent, then for described raw data and or its Backup Data carry out revising and preserving.
Aforesaid operations can, for periodically to process, also can be the operation of the auto modification carrying out full backup data by user's Non-follow control.
For Fig. 8, suppose that storage unit is SSD hard disk, and on whole SSD hard disk, divide size be the logical partition of 2N is user's significant data region, size is that 2N can be specified by user; Amendment size is that the user of 2N defines significant data logical partition, and wherein size is the region A of N is visible first storage area of user, and remaining size is the region B of N is the second hiding storage area, for carrying out the backup of data;
When user carries out data write operation in a-quadrant, start data backup mechanism, the Physical Page PPN1 of the correspondence of record write data, and related pages data are backuped in the Physical Page PPN2 of the correspondence in B district, and add the corresponding relation of the Physical Page of region A and region B to storage area mapping table;
When user needs to read data from a-quadrant, start verification scheme, the integrality of related data is verified, if there is incomplete data file, gets backup file based on storage area mapping table, incomplete data are recovered.
In addition, when the system is idle, can also data checking mechanisms be started, the data consistency of the data field in region A and region B and backup area be verified, and then carries out data maintenance based on check results.
Visible, by adopting such scheme, just storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
Embodiment four,
Embodiments provide a kind of electronic equipment, as shown in Figure 9, comprising:
Storage unit 91, at least marking off the first storage area and the second storage area; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Data Management Unit 92, for receiving the first data of input; When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
List management unit 93, for based on described first data at described first storage area and described second storage area, set up data store corresponding relation; Described data are stored corresponding relation add and be saved to storage area mapping table.
Here, described storage unit can be solid state hard disc (SSD).Electronic equipment can be smart mobile phone, panel computer, server, desktop computer etc.
Describedly storage unit is divided into the first storage area and the second storage area can be: from physically, using the sub-storage unit of adjacent N continuous as the first storage area, an adjacent continuous N sub-storage unit is as the second storage area; Wherein, described storage unit can be made up of at least one NAND chip, includes multiple described sub-storage unit in each NAND chip, and sub-storage unit described in the present embodiment can be minimum memory unit in storage unit and Physical Page; Such as, shown in Fig. 2, the whole sub-storage unit in two NAND chips that shade can be marked is as the second storage area 22, and the whole sub-storage unit in two NAND chips grey marked is as the first storage area 21.
Or can be that continuous print specifies N number of sub-storage unit as the first storage area in logic, the M that specifies of continuous print sub-storage unit be as the second storage area in logic.Such as, as shown in Figure 3, the whole sub-storage unit comprised by dash area is as the second storage area 32, and the whole sub-storage unit marked by grey parts is as the first storage area 31.The mode choosing sub-storage unit can be chosen according to actual conditions, such as, can choose residual memory space be greater than specify threshold value chip in sub-storage unit form the first storage area or the second storage area.
In the present embodiment, the first storage area is in the memory unit for storing satisfied first pre-conditioned the first data, and accordingly, the second storage area is for storing Backup Data corresponding to the first data; But not only can include the first storage area and the second storage area in the described storage unit provided in the present embodiment, that is, remove outside above-mentioned first storage area and the second storage area, storage unit can also include the 3rd storage area, may be used for storing not meeting the first pre-conditioned data.See such as 2 or Fig. 3, also can be found out, except the first storage area and the second storage area, to also have the storage area of some blank by Fig. 2 and Fig. 3.
In the present embodiment, N and M can be equal, also can be unequal.
In addition, list management unit described in the present embodiment, the second address information for the sub-storage unit of Backup Data in described second storage area by the first address information of the sub-storage unit of described first data in described first storage area and described first data associates, and the first address information after association and the second address information are stored corresponding relation as data.
Wherein, due to Physical Page that described sub-storage unit can be in described storage unit; Accordingly, described first address information and the second address information may be used for characterizing positional information corresponding to described Physical Page.Such as, the first address information is the Physical Page 1 of chip one, just shows that storage first data are in Physical Page 1; Suppose that the second address information is the Physical Page 1 of chip three, just show that the Backup Data of storage first data is in the Physical Page 1 of chip three.
Include at least one group of data in described storage area mapping table and store corresponding relation.
Visible, by adopting such scheme, just storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
Embodiment five,
Embodiments provide a kind of electronic equipment, as shown in Figure 9, comprising:
Storage unit 91, at least marking off the first storage area and the second storage area; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Data Management Unit 92, for receiving the first data of input; When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
List management unit 93, for based on described first data at described first storage area and described second storage area, set up data store corresponding relation; Described data are stored corresponding relation add and be saved to storage area mapping table.
Here, described storage unit can be solid state hard disc (SSD).Electronic equipment can be smart mobile phone, panel computer, server, desktop computer etc.
Describedly storage unit is divided into the first storage area and the second storage area can be: from physically, using the sub-storage unit of adjacent N continuous as the first storage area, an adjacent continuous N sub-storage unit is as the second storage area; Wherein, described storage unit can be made up of at least one NAND chip, includes multiple described sub-storage unit in each NAND chip, and sub-storage unit described in the present embodiment can be minimum memory unit in storage unit and Physical Page; Such as, shown in Fig. 2, the whole sub-storage unit in two NAND chips that shade can be marked is as the second storage area 22, and the whole sub-storage unit in two NAND chips grey marked is as the first storage area 21.
Or can be that continuous print specifies N number of sub-storage unit as the first storage area in logic, the M that specifies of continuous print sub-storage unit be as the second storage area in logic.
In the present embodiment, the first storage area is in the memory unit for storing satisfied first pre-conditioned the first data, and accordingly, the second storage area is for storing Backup Data corresponding to the first data; But not only can include the first storage area and the second storage area in the described storage unit provided in the present embodiment, that is, remove outside above-mentioned first storage area and the second storage area, storage unit can also include the 3rd storage area, may be used for storing not meeting the first pre-conditioned data.See such as 2 or Fig. 3, also can be found out, except the first storage area and the second storage area, to also have the storage area of some blank by Fig. 2 and Fig. 3.
In the present embodiment, N and M can be equal, also can be unequal.
In addition, based on described list management unit described in the present embodiment, the second address information for the sub-storage unit of Backup Data in described second storage area by the first address information of the sub-storage unit of described first data in described first storage area and described first data associates, and the first address information after association and the second address information are stored corresponding relation as data.
Wherein, due to Physical Page that described sub-storage unit can be in described storage unit; Accordingly, described first address information and the second address information may be used for characterizing positional information corresponding to described Physical Page.Such as, the first address information is the Physical Page 1 of chip one, just shows that storage first data are in Physical Page 1; Suppose that the second address information is the Physical Page 1 of chip three, just show that the Backup Data of storage first data is in the Physical Page 1 of chip three.
Include at least one group of data in described storage area mapping table and store corresponding relation.
Second storage area described in the present embodiment can be user's invisible area, such as, a storage unit can provide the storage space of 64G altogether, owing to wherein dividing out 12G to the second storage area, and the second storage area is recessive existence, so being shown to the visible storage space of user may be 54G.
Based on the storage area mapping table that such scheme generates, the embodiment of the present invention additionally provides and reads data based on storage area mapping table, and described Data Management Unit, also for receiving data read command; Based on described data read command, extract the first data from described first storage area; Judge whether described first data meet second pre-conditioned, wherein, the proof test value that described second pre-conditioned characterization data is corresponding meets first threshold; If described first data do not meet second pre-conditioned, then the data got from described storage area mapping table for described first data store corresponding relation; Store corresponding relation based on the data for described first data, get the Backup Data of the first data from described second storage area.
Wherein, based on described data read command, extracting the first data from described first storage area, can be the mark according to the first data in data read command, find at least one sub-storage unit of described storage first data, extract from the sub-storage unit of correspondence and obtain the first data.
Described Data Management Unit, specifically for verifying the first data extracted, obtains proof test value.Wherein, the method for described verification can have the methods of calibration such as parity checking, cyclic redundancy data check (CRC, CyclicRedundancyCheck), MD5.Accordingly, described first threshold can according to the corresponding different threshold value of different methods of calibration, if the proof test value of the first data obtained is in the scope of first threshold, then determine that described first data meet second pre-conditioned, namely described first data are partial data; If the proof test value of the first data is not within the scope of first threshold, then the first data are deficiency of data, now, just need the Backup Data of acquisition first data.
Described Data Management Unit, also for the Backup Data based on described first data, revises described first data, obtains revised described first data; Revised described first data are saved to described first storage area.
Wherein, to the method that described first data are revised can be: utilize the comparison that the Backup Data of the first data and described first data are carried out by turn, determine data bit different from the Backup Data of described first data in the first data, the data bit in the Backup Data of described first data is filled to data bit corresponding to described first data.
Or, to the method that described first data are revised can also be: directly using the Backup Data of described first data as described first data.
Preferably, above-mentioned being saved to can for being still kept at described revised first data in the sub-storage unit of former first data preservation in described first storage area.
Visible, by adopting such scheme, just storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
Embodiment six,
Embodiments provide a kind of electronic equipment, as shown in Figure 9, comprising:
Storage unit 91, at least marking off the first storage area and the second storage area; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Data Management Unit 92, for receiving the first data of input; When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
List management unit 93, for based on described first data at described first storage area and described second storage area, set up data store corresponding relation; Described data are stored corresponding relation add and be saved to storage area mapping table.
Here, described storage unit can be solid state hard disc (SSD).Electronic equipment can be smart mobile phone, panel computer, server, desktop computer etc.
Describedly storage unit is divided into the first storage area and the second storage area can be: from physically, using the sub-storage unit of adjacent N continuous as the first storage area, an adjacent continuous N sub-storage unit is as the second storage area; Wherein, described storage unit can be made up of at least one NAND chip, includes multiple described sub-storage unit in each NAND chip, and sub-storage unit described in the present embodiment can be minimum memory unit in storage unit and Physical Page; Such as, shown in Fig. 2, the whole sub-storage unit in two NAND chips that shade can be marked is as the second storage area 22, and the whole sub-storage unit in two NAND chips grey marked is as the first storage area 21.
Or can be that continuous print specifies N number of sub-storage unit as the first storage area in logic, the M that specifies of continuous print sub-storage unit be as the second storage area in logic.Such as, as shown in Figure 3, the whole sub-storage unit comprised by dash area is as the second storage area 32, and the whole sub-storage unit marked by grey parts is as the first storage area 31.The mode choosing sub-storage unit can be chosen according to actual conditions, such as, can choose residual memory space be greater than specify threshold value chip in sub-storage unit form the first storage area or the second storage area.
In the present embodiment, the first storage area is in the memory unit for storing satisfied first pre-conditioned the first data, and accordingly, the second storage area is for storing Backup Data corresponding to the first data; But not only can include the first storage area and the second storage area in the described storage unit provided in the present embodiment, that is, remove outside above-mentioned first storage area and the second storage area, storage unit can also include the 3rd storage area, may be used for storing not meeting the first pre-conditioned data.See such as 2 or Fig. 3, also can be found out, except the first storage area and the second storage area, to also have the storage area of some blank by Fig. 2 and Fig. 3.
In the present embodiment, N and M can be equal, also can be unequal.
Above-mentioned judge the first data whether meet first pre-conditioned can for judge whether described first data are significant data; The parameters that its determination methods is by getting described first data judges.
Further, the parameters of described first data can for while described first data of preservation, for user provides corresponding preservation operation interface, chosen the attribute of the first data that will preserve by user by preservation operation interface, such as, as shown in Figure 7, be the title of the first data can will preserved to some extent in the operation interface that user provides, the first data are the Attributions selection such as significant data, general data.The parameters being provided as described first data of user is preserved.
Due to the Physical Page that described sub-storage unit can be in described storage unit; Accordingly, described first address information and the second address information may be used for characterizing positional information corresponding to described Physical Page.Such as, the first address information is the Physical Page 1 of chip one, just shows that storage first data are in Physical Page 1; Suppose that the second address information is the Physical Page 1 of chip three, just show that the Backup Data of storage first data is in the Physical Page 1 of chip three.
Include at least one group of data in described storage area mapping table and store corresponding relation.
Based on the storage area mapping table that such scheme generates, the embodiment of the present invention additionally provides the method reading data based on storage area mapping table, and described Data Management Unit, also for receiving data read command; Based on described data read command, extract the first data from described first storage area; Judge whether described first data meet second pre-conditioned, wherein, the proof test value that described second pre-conditioned characterization data is corresponding meets first threshold; If described first data do not meet second pre-conditioned, then the data got from described storage area mapping table for described first data store corresponding relation; Store corresponding relation based on the data for described first data, get the Backup Data of the first data from described second storage area.
Wherein, based on described data read command, extracting the first data from described first storage area, can be the mark according to the first data in data read command, find at least one sub-storage unit of described storage first data, extract from the sub-storage unit of correspondence and obtain the first data.
Described Data Management Unit, also for verifying the first data extracted, obtains proof test value.Wherein, the method for described verification can have the methods of calibration such as parity checking, cyclic redundancy data check (CRC, CyclicRedundancyCheck), MD5.Accordingly, described first threshold can according to the corresponding different threshold value of different methods of calibration, if the proof test value of the first data obtained is in the scope of first threshold, then determine that described first data meet second pre-conditioned, namely described first data are partial data; If the proof test value of the first data is not within the scope of first threshold, then the first data are deficiency of data, now, just need the Backup Data of acquisition first data.
Based on the such scheme that the present embodiment provides, the present embodiment can also provide the mode of carrying out correction automatically for the data stored:
Described Data Management Unit, also for from described storage area mapping table, extracts data one by one and stores corresponding relation; Store corresponding relation based on the data extracted, get raw data and Backup Data thereof; Described raw data and Backup Data thereof are verified, if the check results of described raw data and Backup Data thereof is inconsistent, then for described raw data and or its Backup Data carry out revising and preserving.
Aforesaid operations can, for periodically to process, also can be the operation of the auto modification carrying out full backup data by user's Non-follow control.
Visible, by adopting such scheme, just storage unit at least can be divided out two storage areas, in these two storage areas, store respectively and meet first pre-conditioned the first data and Backup Data thereof, and the storage relation of preserving the first data and Backup Data thereof is in storage area mapping table.So, storage unit just can be avoided to the loss of data generation stored or the problem of damage, to ensure that in storage unit the reliability storing data due to storage life or other reasons.
In several embodiments that the application provides, should be understood that, disclosed equipment can realize by another way.Apparatus embodiments described above is only schematic, and such as, the division of described unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, or some features can be ignored.In addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (10)

1. an information processing method, is applied to electronic equipment, it is characterized in that, described method comprises:
The first storage area and the second storage area is at least marked off from storage unit; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Receive the first data of input;
When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
Based on described first data at described first storage area and described second storage area, set up data and store corresponding relation;
Described data are stored corresponding relation add and be saved to storage area mapping table.
2. method according to claim 1, is characterized in that, described method also comprises:
Receive data read command;
Based on described data read command, extract the first data from described first storage area;
Judge whether described first data meet second pre-conditioned, wherein, the proof test value that described second pre-conditioned characterization data is corresponding meets first threshold;
If described first data do not meet second pre-conditioned, then the data got from described storage area mapping table for described first data store corresponding relation;
Store corresponding relation based on the data for described first data, get the Backup Data of the first data from described second storage area.
3. method according to claim 2, is characterized in that, get the Backup Data of the first data from the second area of described second storage area after, described method also comprises:
Based on the Backup Data of described first data, described first data are revised, obtain revised described first data;
Revised described first data are saved to described first storage area.
4. method according to claim 1, is characterized in that, described method also comprises:
Get the parameters of described first data;
Based on the parameters of described first data, judge whether described first data meet first pre-conditioned.
5. method according to claim 1, is characterized in that, described method also comprises:
From described storage area mapping table, extract data one by one and store corresponding relation;
Store corresponding relation based on the data extracted, get raw data and Backup Data thereof;
Described raw data and Backup Data thereof are verified, if the check results of described raw data and Backup Data thereof is inconsistent, then for described raw data and or its Backup Data carry out revising and preserving.
6. an electronic equipment, is characterized in that, comprising:
Storage unit, at least marking off the first storage area and the second storage area; Wherein, described first storage area comprises N number of sub-storage unit, and described second storage area comprises M the sub-storage unit do not overlapped with described first storage area; N and M is the positive integer being more than or equal to 1;
Data Management Unit, for receiving the first data of input; When described first data meet first pre-conditioned time, described first data are kept at the first storage area, the Backup Data of described first data are kept at the second storage area;
List management unit, for based on described first data at described first storage area and described second storage area, set up data store corresponding relation; Described data are stored corresponding relation add and be saved to storage area mapping table.
7. electronic equipment according to claim 6, is characterized in that,
Described Data Management Unit, also for receiving data read command; Based on described data read command, extract the first data from described first storage area; Judge whether described first data meet second pre-conditioned, wherein, the proof test value that described second pre-conditioned characterization data is corresponding meets first threshold;
If described first data do not meet second pre-conditioned, then the data got from described storage area mapping table for described first data store corresponding relation; Store corresponding relation based on the data for described first data, get the Backup Data of the first data from described second storage area.
8. electronic equipment according to claim 7, is characterized in that,
Described Data Management Unit, also for the Backup Data based on described first data, revises described first data, obtains revised described first data; Revised described first data are saved to described first storage area.
9. electronic equipment according to claim 6, is characterized in that, described Data Management Unit, also for getting the parameters of described first data; Based on the parameters of described first data, judge whether described first data meet first pre-conditioned.
10. electronic equipment according to claim 6, is characterized in that, described Data Management Unit, also for from the described storage area mapping table of list management unit, extracts data one by one and stores corresponding relation; Store corresponding relation based on the data extracted, get raw data and Backup Data thereof; Described raw data and Backup Data thereof are verified, if the check results of described raw data and Backup Data thereof is inconsistent, then for described raw data and or its Backup Data carry out revising and preserving.
CN201510546630.3A 2015-08-31 2015-08-31 Information processing method and electronic apparatus Pending CN105117306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510546630.3A CN105117306A (en) 2015-08-31 2015-08-31 Information processing method and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510546630.3A CN105117306A (en) 2015-08-31 2015-08-31 Information processing method and electronic apparatus

Publications (1)

Publication Number Publication Date
CN105117306A true CN105117306A (en) 2015-12-02

Family

ID=54665305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510546630.3A Pending CN105117306A (en) 2015-08-31 2015-08-31 Information processing method and electronic apparatus

Country Status (1)

Country Link
CN (1) CN105117306A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008159A (en) * 2019-11-28 2020-04-14 北京握奇智能科技有限公司 Data protection method, device, equipment and storage medium for storage equipment
CN113867636A (en) * 2021-09-27 2021-12-31 远峰科技股份有限公司 Key information management method and key information management system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5473776A (en) * 1992-02-20 1995-12-05 Hitachi, Ltd. Data backup method and data processing system having data maintenance function
US20050125467A1 (en) * 2002-12-11 2005-06-09 Fujitsu Limited Backup system, backup controlling apparatus, backup data managing method and a computer readable recording medium recorded thereon backup controlling program
CN101281493A (en) * 2008-05-26 2008-10-08 中兴通讯股份有限公司 And non flash memory device and management method thereof
CN101425111A (en) * 2008-12-01 2009-05-06 成都市华为赛门铁克科技有限公司 Hidden data processing method and device
CN101847110A (en) * 2009-03-27 2010-09-29 旺玖科技股份有限公司 Data storage system and backup method thereof
CN101872326A (en) * 2010-06-24 2010-10-27 济南大学 Data storage management method for OTP flash memory under embedded environment
CN102301369A (en) * 2011-05-30 2011-12-28 华为终端有限公司 Data storage device access method and device
CN102932621A (en) * 2011-08-08 2013-02-13 杭州海康威视数字技术股份有限公司 Method and device for storing data
CN103955528A (en) * 2014-05-09 2014-07-30 北京华信博研科技有限公司 File data writing method, and file data reading method and device
CN104391760A (en) * 2014-11-24 2015-03-04 华为技术有限公司 Data backup method, server and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5473776A (en) * 1992-02-20 1995-12-05 Hitachi, Ltd. Data backup method and data processing system having data maintenance function
US20050125467A1 (en) * 2002-12-11 2005-06-09 Fujitsu Limited Backup system, backup controlling apparatus, backup data managing method and a computer readable recording medium recorded thereon backup controlling program
CN101281493A (en) * 2008-05-26 2008-10-08 中兴通讯股份有限公司 And non flash memory device and management method thereof
CN101425111A (en) * 2008-12-01 2009-05-06 成都市华为赛门铁克科技有限公司 Hidden data processing method and device
CN101847110A (en) * 2009-03-27 2010-09-29 旺玖科技股份有限公司 Data storage system and backup method thereof
CN101872326A (en) * 2010-06-24 2010-10-27 济南大学 Data storage management method for OTP flash memory under embedded environment
CN102301369A (en) * 2011-05-30 2011-12-28 华为终端有限公司 Data storage device access method and device
CN102932621A (en) * 2011-08-08 2013-02-13 杭州海康威视数字技术股份有限公司 Method and device for storing data
CN103955528A (en) * 2014-05-09 2014-07-30 北京华信博研科技有限公司 File data writing method, and file data reading method and device
CN104391760A (en) * 2014-11-24 2015-03-04 华为技术有限公司 Data backup method, server and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008159A (en) * 2019-11-28 2020-04-14 北京握奇智能科技有限公司 Data protection method, device, equipment and storage medium for storage equipment
CN113867636A (en) * 2021-09-27 2021-12-31 远峰科技股份有限公司 Key information management method and key information management system

Similar Documents

Publication Publication Date Title
CN109791520B (en) Physical media aware spatially coupled logging and replay
US9645918B2 (en) Storage devices including non-volatile memory and memory controller and methods of allocating write memory blocks
CN103577121B (en) A kind of highly reliable linear file access method based on Nand Flash
US8898372B2 (en) Memory storage device, memory controller, and data writing method
US8041883B2 (en) Restoring storage devices based on flash memories and related circuit, system, and method
CN104461391A (en) Method and system for managing and processing metadata of storage equipment
CN104503707A (en) Method and device for reading data
CN109117383B (en) Method for managing flash memory module and flash memory controller
CN105339907A (en) Synchronous mirroring in non-volatile memory systems
JP2007012058A (en) File system for storing transaction records in flash-like media
CN106227731A (en) A kind of data processing method, device and distributed file system
CN106981314A (en) A kind of method of the quick error correction of solid state hard disc
KR20140042430A (en) Computing system and data management method thereof
CN109697170B (en) Method for accessing flash memory module, related flash memory controller and electronic device
CN101364166A (en) Method and device for simulating Nand flash of 2048 byte page into hard disk
US20180210784A1 (en) Metadata Recovery Method and Apparatus
CN104216796A (en) Data backup and recovery method and electronic device
US20150100719A1 (en) Data backup method and device thereof
CN112800007B (en) Directory entry expansion method and system suitable for FAT32 file system
CN103440204B (en) A kind of method of updating file system and memory device
CN105589733A (en) Data processing method and device
CN105117306A (en) Information processing method and electronic apparatus
CN104281505A (en) Data backup method and device and electronic device
CN104536852A (en) Data recovery method and device
CN105488047B (en) Metadata reading/writing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170208

Address after: The 100176 branch of the Beijing economic and Technological Development Zone fourteen Street No. 99 building 33 building D No. 2226

Applicant after: Beijing legend core technology Co., Ltd.

Address before: 100085 Haidian District West Road, Beijing, No. 6

Applicant before: Lenovo (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151202