CN107621924A - A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data - Google Patents

A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data Download PDF

Info

Publication number
CN107621924A
CN107621924A CN201610564351.4A CN201610564351A CN107621924A CN 107621924 A CN107621924 A CN 107621924A CN 201610564351 A CN201610564351 A CN 201610564351A CN 107621924 A CN107621924 A CN 107621924A
Authority
CN
China
Prior art keywords
data
block
solid state
hard disc
state hard
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
CN201610564351.4A
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.)
Fu Fu Technology (shenzhen) Ltd By Share Ltd
Original Assignee
Fu Fu Technology (shenzhen) Ltd By Share 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 Fu Fu Technology (shenzhen) Ltd By Share Ltd filed Critical Fu Fu Technology (shenzhen) Ltd By Share Ltd
Priority to CN201610564351.4A priority Critical patent/CN107621924A/en
Publication of CN107621924A publication Critical patent/CN107621924A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The embodiments of the invention provide a kind of method based on high in the clouds cleaning solid state hard disc data, methods described includes:Receive the cleaning request that user clicks on the first predetermined interface location;The cleaning request is sent to master controller, the master controller is used for the cleaning that solid state hard disc data are completed according to the cleaning request, generation cleaning result, and the cleaning result is returned;Showing for cleaning result is provided.The present invention can accelerate to clear up speed, improve the degree of accuracy, reduce manual operation, reduce and take, and increase the reading-writing life-span of storage medium, reduce cost, reduce the computing during cleaning of solid state hard disc data, improve cleaning efficiency.

Description

A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data
Technical field
The present invention relates to file clean-up technical field, more particularly to a kind of side that solid state hard disc data are cleared up based on high in the clouds Method and a kind of device based on high in the clouds cleaning solid state hard disc data.
Background technology
With the popularization of intelligent terminal, solid state hard disc gradually incorporates the every aspect of life, for example, solid state hard disc already into For the important carrier of various files, file can perform the operation such as storage, modification, deletion in storage medium.
The hardware stability and shake-proof technology of solid-state hard disc product are extremely important, refer mainly to adaptation under circumstances Ability.Vibrations, humidity, high temperature, low temperature, strong electromagnetic etc., it is that vibrations are destructive for conventional hard, can causes Hard disk corruptions, loss of data, but for solid state hard disc, due to no mechanical structure, therefore product in shockproof processing more Perfect, moistureproof and high/low temperature can carry out industry customization, overall product performance according to the size of equipment according to industry requirement Improved a lot compared with mechanical hard disk.
Monitoring refers mainly to the erasable number of Flash read-writes when the life of product of solid state hard disc extends sum factually.Due to SLC Arrive TLC technology upgrading again to MLC, from nominal 100,000 times nominal till now thousands of times, directly result in chip erasable in itself Number is constantly reduced, and the extension of terminal applies life of product is mainly algorithmically carried out certain by the master control of solution Handle to realize, WearLeveling (abrasion equilibration) technologies and dynamic Bad Block Management technology, backup block technology, ECC with And read-write monitoring technology etc..
The storage medium of solid state hard disc has certain reading-writing life-span, and read-write number is fewer, and reading-writing life-span is longer, in order to subtract Read and write number less, be not directly to wipe file from storage medium when deleting file in solid state hard disc, and simply do a mark Note, informs that solid state hard disc this document has been deleted.
In addition to the data storage in storage medium, some data relevant with communication need to be stored in the file of system area In, such as short message, message registration, contact person etc., after an affairs delete data from system area and submit, system area File size keeps constant.Even if the data of whole page are all deleted, the page can also become " free page " wait and be used again, and Practically it will not be deleted from the file of system area.
At present, in the scheme of these data for including privacy of complete deletion, the solid state hard disc data cleared up in system area are led to It is often manual operation, is deleted manually after the file of system area is singly opened, the solid-state cleared up in storage medium Hard disc data, that is, by scan full hard disk, is carried out along the scheme with the cleaning data on PC after solid state hard disc data scanning is come out Delete.
However, when the solid state hard disk system area that enormous amount be present needs to clear up privacy record, manual operation will be unable to Meets the needs of so huge, also, because different solid state hard disk system area privacy records is different, manual operation is remembered to privacy Easily there is mistake in the identification of record, causes manually-operated time-consuming more, and accuracy rate reduces, and storage medium reading-writing life-span reduces, Cost increase.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on A kind of method based on high in the clouds cleaning solid state hard disc data and corresponding one kind for stating problem are based on high in the clouds cleaning solid state hard disc number According to device.
According to one aspect of the present invention, there is provided a kind of method based on high in the clouds cleaning solid state hard disc data, the side Method includes:
Receive the cleaning request that user clicks on the first predetermined interface location;
The cleaning request is sent to master controller, the master controller is used to complete solid-state according to the cleaning request The cleaning of hard disc data, generation cleaning result, and the cleaning result is returned;
Showing for cleaning result is provided.
Alternatively, the cleaning request includes the store path of solid state hard disc data, described by the cleaning request hair Master controller is given, the master controller completes the cleaning of solid state hard disc data according to the cleaning request, and result is cleared up in generation, And the step of returning to the cleaning result, includes:
The cleaning request is sent to master controller;The master controller is used for depositing according to the solid state hard disc data Path searching solid state hard disc data are stored up, and the solid state hard disc data found are returned;
Showing for the solid state hard disc data is provided;
Receive user and clicked on predetermined second contact surface position and see clearly reason request really, and confirm cleaning request by described The master controller is sent to, the master controller is used to confirm that cleaning request is completed to the solid state hard disc data according to described Cleaning, generation cleaning result, and by it is described cleaning result return.
Alternatively, the solid state hard disc data include the first solid state hard disc data being stored in data storage area, described Cleaning request also includes the specified format of the first solid state hard disc data, and the master controller is used in the following way according to described in The first solid state hard disc data in the store path searching data memory block of first solid state hard disc data:
Store path according to the solid state hard disc data judges the form of file system;
When the form for judging the file system for data storage area when, according to specified format extraction default first Type identification;
Each block group block group are extracted from the data storage area;
For currently processed block group block group extractions with the data block block that mark is not used;
Specified location in the data block block reads Second Type mark;
When first kind mark is identical with the Second Type mark, its in the data block block is read His data;
When other described data include end mark, in one or more data block block that judgement is continuously read Data whether there is complete fileinfo;
If so, then it is judged to finding a first solid state hard disc data.
Alternatively, the data are read when first kind mark is identical with the Second Type mark described After the sub-step of other data in block block, in addition to:
When first kind mark differs with Second Type mark, then there is unused mark next Data block block in specified location read Second Type mark.
Alternatively, the default first kind mark generates in the following manner:
According to data structure corresponding to specified format determination;
The coded string of the specified format is searched in the data structure;
The coded string is extracted to identify as the default first kind.
Alternatively, the currently processed block group block group include block table of comparisons block bitmap, institute State and mark be not used to include list item value be zero, it is described for currently processed block group block group extractions with not making Included with the data block block of mark sub-step:
Read block table of comparisons block bitmap;
Record the number that list item value is data block block corresponding to zero in the block table of comparisons block bitmap;
Using data block block corresponding to the number retention.
Alternatively, the currently processed block group block group include information node table of comparisons inode Bitmap, described for currently processed data block block of the block group block group extractions with unused mark Sub-step after also include:
When finding that each list item value is zero in the block table of comparisons block bitmap, and the described information node table of comparisons When each list item value is zero in inode bitmap, the data that number is minimum in the block table of comparisons block bitmap are read Block block;
Initial data in the first data block block is read using the number;
If the initial data is 00, the currently processed block group block group are skipped, processing is next Individual block group block group.
Alternatively, if the solid state hard disc data storage is in the data block block of discontinuous number, the block group Group block group include information node form inode table, and currently processed block group block is directed to described After sub-step of the group extractions with the data block block that mark is not used, in addition to:
Read number that list item value is information node inode corresponding to zero in described information node table of comparisons inode bitmap Code;
Residual risk is extracted from information node form inode table according to the number, is wrapped in the residual risk Include the number for the data block block for being stored with the solid state hard disc data;
When the data block block with unused mark is with the number, perform in the data block block In specified location read Second Type mark the step of.
Alternatively, the solid state hard disc data include the second solid state hard disc data being stored in buffer area, the cleaning Request also includes the specified format of the second solid state hard disc data, and the master controller is used in the following way according to described second The store path of solid state hard disc data searches the solid state hard disc data in buffer area:
Store path according to the solid state hard disc data judges the form of file system;
When the form for judging the file system for buffer area when, extract the default first kind according to the specified format Mark;
Extraction is with the cluster that mark is not used from the buffer area;
Specified location in the cluster reads Second Type mark;
When first kind mark is identical with the Second Type mark, then other data in the cluster are read;
When obtaining the correct result of reduction using the data in the cluster, it is judged to finding a solid state hard disc number According to.
Alternatively, methods described also includes:
When finding that first kind mark differs with Second Type mark, then read it is next have do not make Second Type is read with the specified location in the cluster of mark to identify.
Alternatively, the default first kind mark generates in the following manner:
According to data structure corresponding to specified format determination;
The coded string of the specified format is searched in the data structure;
The coded string is extracted to identify as the default first kind.
Alternatively, the buffer area includes file allocation table FAT and data field, and the data field includes cluster, described not make It is zero to include list item value with mark, and the sub-step of the extraction with the cluster that mark is not used from the buffer area includes:
File allocation table FAT is obtained from the buffer area;
It is cluster number corresponding to zero to record list item value in the file allocation table FAT;
Cluster corresponding to being extracted using the cluster number in the data field.
Alternatively, after the specified location in the cluster reads the sub-step of Second Type mark, in addition to:
When continuously reading out two or more described Second Types and being identified as zero, determined according to the specified format The sampling threshold value of sampling Detection;
Using the sampling threshold value iterative calculation when time sample position;
Judge whether the data in the sample position are zero;
If the data in the sample position are zero, return to the specified location in the cluster and read Second Type mark The step of;
If the data in the sample position are not zero, have in the return reading cluster with the type identification identical The sub-step of the data of position.
Alternatively, the specified format includes picture format.
Alternatively, the solid state hard disc data include the 3rd solid state hard disc data being stored in system area, institute Master controller is stated to be used in the following way according to the privacy record in the store path lookup system area of privacy record:
Store path according to privacy record navigates to corresponding system area;
The tables of data for determining to specify in system area according to the cleaning request;The tables of data includes data page, described Data page has top margin;
The clear area in the data page is read out from the top margin;
One or more fields of the tables of data are parsed in the system table preset from the system area;
Using one or more of field combinations into strong matching characteristic;
The characteristic matched with the strong matching characteristic is searched in the clear area;
Judge whether the characteristic is privacy record;
If so, then it is judged to finding a privacy record.
Alternatively, before the step of whether characteristic is privacy record is judged, methods described also includes:
The working region in the data page is read out from the top margin;It is stored with the working region and has preserved number According to;
The one or more weak matching characteristics of data generation have been preserved according to described in.
Alternatively, it is described to judge that the step of whether characteristic is privacy record includes:
Matched using one or more of weak matching characteristics with the characteristic;
The number of the weak matching characteristic matched with the characteristic is calculated, and, the sum of weak matching characteristic;
When the ratio that the number accounts for the weak matching characteristic sum exceedes default threshold value, the characteristic is judged Recorded for privacy.
Alternatively, described the step of generating strong matching characteristic according to the field, includes:
The type of one or more of fields is judged respectively;
The type of one or more of fields is sequentially connected in series into essential characteristic string, using the essential characteristic string as strong With feature.
Alternatively, the sub-step of the one or more weak matching characteristics of data generation has been preserved described in the foundation to be included:
Corresponding one or more in data has been preserved according to described in the type statistics of one or more fields of tables of data The value or length of field;
If it is described preserved corresponding one or more fields in data value it is identical, or, corresponding one or more The length of field is identical, filters out one or more of fields;
Using the combination of one or more of fields and the value of one or more of fields as one or more weak With feature, and/or, using the combination of one or more of fields and the length of one or more of fields as one or more Individual weak matching characteristic.
Alternatively, the master controller is used to confirm that cleaning request is completed to the privacy for described in the following way The cleaning of record:
The positional information of the characteristic storage is obtained, the positional information includes the data library text of storage characteristic Part, data page, offset and length;
The position stored using the database file, data page, offset and length positioning to the characteristic;
By the data zero setting on the position.
Alternatively, the cleaning asks to include clearing up object, described to determine to correspond in system area according to the cleaning request Tables of data the step of include:
System area to be found is determined using the cleaning object, and, the table for the tables of data that the cleaning object is specified Name;
Tables of data corresponding to being determined according to the table name in the system area.
Alternatively, it is described to judge that the step of whether characteristic is privacy record includes:
The data span of one or more of fields is generated according to the strong matching characteristic;
Read the data value of one or more fields in the characteristic;
The data value is respectively adopted compared with corresponding data span;
When the data value of one or more of fields meets the data span successively, the feature is judged Data are privacy records.
Alternatively, the solid state hard disc data include do not deleted thoroughly photo, short message, address list, message registration, chat Its record, recording, video.
According to another aspect of the present invention, there is provided a kind of device based on high in the clouds cleaning solid state hard disc data, the dress Put including:
Request receiving module is cleared up, the cleaning request clicked on suitable for receiving user on the first predetermined interface location;
Request sending module is cleared up, suitable for the cleaning request is sent into master controller, the master controller is according to institute The cleaning that solid state hard disc data are completed in cleaning request, generation cleaning result are stated, and the cleaning result is returned;
Result presentation module is cleared up, is adapted to provide for clearing up showing for result.
Alternatively, the cleaning request includes the store path of solid state hard disc data, the cleaning request sending module Including:
Request-to-send submodule is cleared up, suitable for the cleaning request is sent into master controller;The master controller is used for Store path according to the solid state hard disc data searches the solid state hard disc data, and the solid state hard disc data found are returned Return;
Solid state hard disc data exhibiting submodule, it is adapted to provide for the first solid state hard disc data, the second solid state hard disc data With showing for the 3rd solid state hard disc data;
Confirm cleaning request receiving submodule, see clearly really suitable for receiving user and being clicked on predetermined second contact surface position Reason is asked, and confirms that clearing up request is sent to the master controller by described, and the master controller is used to confirm clearly according to described The cleaning to the solid state hard disc data, generation cleaning result are completed in reason request, and the cleaning result is returned.
Alternatively, the solid state hard disc data include the first solid state hard disc data being stored in data storage area, described Cleaning request, in addition to the specified format based on high in the clouds cleaning solid state hard disc data is treated, the master controller is used for using as follows Mode searches solid state hard disc data according to the store path of the solid state hard disc data:
Form judging submodule, suitable for judging the form of file system according to the store path of the solid state hard disc data;
First kind marker extraction submodule, suitable for being data in the form according to store path judgement file system During memory block, default first kind mark is extracted according to the specified format;
Block group extracting sub-module, suitable for extracting each block group block from the data storage area group;
Data block extracting sub-module, it is not used suitable for having for currently processed block group block group extractions The data block block of mark;
Second Type identifies reading submodule, and Second Type is read suitable for the specified location in the data block block Mark;
Other digital independent submodules, suitable for when first kind mark is identical with the Second Type mark, reading Take other data in the data block block;
Fileinfo judging submodule, suitable for when other described data include end mark, judging what is continuously read Whether the data in one or more data block block have complete fileinfo;
Solid state hard disc data judging submodule, suitable in the one or more data block block for judging continuously to read When data have complete fileinfo, then it is judged to finding a solid state hard disc data.
Alternatively, described device also includes:
Next Second Type identifies reading submodule, suitable for being identified in first kind mark with the Second Type When differing, next there is the specified location being not used in the data block block of mark to read Second Type mark.
Alternatively, the default first kind mark generates in the following manner:
Data structure determination sub-module, suitable for according to data structure corresponding to specified format determination;
Coded string searches submodule, suitable for searching the code character of the specified format in the data structure String;
First kind marker extraction submodule, identified suitable for extracting the coded string as the default first kind.
Alternatively, the currently processed block group block group include block table of comparisons block bitmap, institute It is zero to state unused mark to include list item value, and the data block extraction module includes:
Block table of comparisons reading submodule, suitable for reading block table of comparisons block bitmap;
Data block block number record submodules, suitable for recording list item value in the block table of comparisons block bitmap It is the number of data block block corresponding to zero;
Data block block extracting sub-modules, suitable for using data block block corresponding to the number retention.
Alternatively, the currently processed block group block group include information node table of comparisons inode Bitmap, described device also include:
The minimum data block block reading submodules of number, suitable for finding the block table of comparisons block bitmap In each list item value be zero, and when each list item value is zero in described information node table of comparisons inode bitmap, described in reading The minimum data block block of number in block table of comparisons block bitmap;
Initial data reading submodule, suitable for being read using the number in the minimum data block block of the number Initial data;
Next block group handles submodule, if being 00 suitable for the initial data, skips described currently processed Block group block group, handle next block group block group.
Alternatively, if the solid state hard disc data storage is in the data block block of discontinuous number, described device is also Including:
Information node inode number reading submodule, suitable for reading described information node table of comparisons inode bitmap The number that middle list item value is information node inode corresponding to zero;
Residual risk extracting sub-module, it is residual suitable for being extracted according to the number from information node form inode table Information is stayed, the residual risk includes the number for being stored with the data block block of the solid state hard disc data;
Step redirects submodule, suitable for, with the data block block marked is not used with the number, being performed described Specified location in the data block block reads the step of Second Type mark.
Alternatively, the solid state hard disc data include the second solid state hard disc data being stored in buffer area, the cleaning Request also include treat based on high in the clouds cleaning solid state hard disc data specified format, the master controller be used in the following way according to Solid state hard disc data are searched according to the store path of the solid state hard disc data:
Form judging submodule, suitable for judging the form of file system according to the store path of the solid state hard disc data;
First kind marker extraction submodule, suitable for being caching in the form that file system is judged according to the store path Qu Shi, default first kind mark is extracted according to the specified format;
Cluster extracting sub-module, suitable for cluster of the extraction with unused mark from the buffer area;
Second Type identifies reading submodule, and Second Type mark is read suitable for the specified location in the cluster;
Other digital independent submodules, suitable for when first kind mark is identical with the Second Type mark, reading Take other data in the cluster;
Solid state hard disc data judging submodule, when obtaining the correct result of reduction suitable for the data in the use cluster, It is judged to finding a solid state hard disc data.
Alternatively, described device also includes:
Next Second Type identifies reading submodule, suitable for finding the first kind mark and the Second Type When mark differs, read the specified location in next cluster for having and being not used and marking and read Second Type mark.
Alternatively, the default first kind mark generates in the following manner:
Data structure determination sub-module, suitable for according to data structure corresponding to specified format determination;
Coded string searches submodule, suitable for searching the code character of the specified format in the data structure String;
First kind marker extraction submodule, identified suitable for extracting the coded string as the default first kind.
Alternatively, the buffer area includes file allocation table FAT and data field, and the data field includes cluster, described not make It is zero to include list item value with mark, and the cluster extracting sub-module includes:
File allocation table FA T acquisition submodules, suitable for obtaining file allocation table FAT from the buffer area;
Cluster record sub module, it is cluster number corresponding to zero suitable for recording list item value in the file allocation table FAT;
Cluster extracting sub-module, suitable for using the cluster number extracted in the data field corresponding to cluster.
Alternatively, described device also includes:
Sample threshold value determination sub-module, suitable for being identified as zero continuously reading out two or more described Second Types When, the sampling threshold value of sampling Detection is determined according to the specified format;
When secondary sample position calculating sub module, suitable for working as time sample position using the sampling threshold value iterative calculation;
Data judging submodule, suitable for judging whether the data in the sample position are zero;
Data are zero decision sub-module, suitable for when the data on judging the sample position are zero, returning in the cluster In specified location read Second Type mark the step of;
Data are not zero decision sub-module, suitable for when the data on judging the sample position are not zero, returning and reading There is the step of data of same position with the type identification in the cluster.
Alternatively, the specified format includes picture format.
Alternatively, the solid state hard disc data include the 3rd solid state hard disc data being stored in system area, institute State the store path that master controller is used in the following way according to privacy record and search privacy record:
System area positions submodule, and the store path suitable for being recorded according to the privacy navigates to corresponding system area;
Tables of data determination sub-module, suitable for the tables of data for determining to specify in system area according to the cleaning request;The number Include data page according to table, the data page has top margin;
Clear area reading submodule, suitable for reading out the clear area in the data page from the top margin;
Tables of data analyzing sub-module, suitable for parsing one of the tables of data from the preset system table of the system area Or multiple fields;
Strong matching characteristic generation submodule, suitable for using one or more of field combinations into strong matching characteristic;
Characteristic searches submodule, suitable for searching the feature matched with the strong matching characteristic in the clear area Data;
Privacy records judging submodule, suitable for judging whether the characteristic is privacy record;
Privacy record decision sub-module is suitable to, when judging that the characteristic records for privacy, be judged to finding one Privacy records.
Alternatively, described device also includes:
Working region reading submodule, suitable for reading out the working region in the data page from the top margin;It is described It is stored with working region and has preserved data;
Weak matching characteristic life generates multiple weak matching characteristics into module suitable for having preserved data according to described in.
Alternatively, the privacy record judge module includes:
Characteristic matched sub-block, suitable for being matched using the multiple weak matching characteristic with the characteristic;
Number calculating sub module is matched, suitable for calculating the number of the weak matching characteristic matched with the characteristic, and, The sum of weak matching characteristic;
Privacy records decision sub-module, and the ratio suitable for accounting for the weak matching characteristic sum in the number exceedes default During threshold value, judge that the characteristic records for privacy.
Alternatively, the strong matching characteristic generation submodule includes:
Type judging submodule, suitable for judging the type of one or more of fields respectively;
Strong matching characteristic generation submodule, suitable for being sequentially connected in series the types of one or more of fields into essential characteristic String, using the essential characteristic string as strong matching characteristic.
Alternatively, the weak matching characteristic generation submodule includes:
Data statistics submodule is preserved, suitable for having been protected described in the type statistics according to one or more fields of tables of data The value or length of corresponding one or more fields in deposit data;
Field filter submodule;If it is described preserved corresponding one or more fields in data value it is identical, or, it is right The length for the one or more fields answered is identical, filters out one or more of fields;
Weak matching characteristic determination sub-module, suitable for by the value of one or more of fields and one or more of fields Combination as one or more weak matching characteristics, and/or, by one or more of fields and one or more of fields Length combination as one or more weak matching characteristics.
Alternatively, the master controller is used to confirm that cleaning request is completed to the privacy for described in the following way The cleaning of record:
Positional information acquisition submodule, suitable for obtaining the positional information of the characteristic storage, the positional information bag Include database file, data page, offset and the length of storage characteristic;
Characteristic positions submodule, suitable for using the database file, data page, offset and length positioning to institute State the position of characteristic storage;
Data zero setting submodule, suitable for by the data zero setting on the position.
Alternatively, the cleaning request includes clearing up object, and the tables of data determining module includes:
Table name determination sub-module, suitable for determining system area to be found using the cleaning object, and, the cleaning pair As the table name of specified tables of data;
Tables of data determination sub-module, suitable for tables of data corresponding to being determined according to the table name in the system area.
Alternatively, the privacy record judge module includes:
Data span generates submodule, for generating one or more of fields according to the strong matching characteristic Data span;
Data value reading submodule, for reading the data value of one or more fields in the characteristic;
Comparison sub-module, for the data value that one or more of fields are respectively adopted and corresponding data value model Enclose and be compared;
Privacy records determination sub-module, when the data value of one or more of fields meets the data value successively During scope, it is privacy record to judge the characteristic.
Alternatively, the solid state hard disc data include do not deleted thoroughly photo, short message, address list, message registration, chat Its record, recording, video.
The position of there may exist privacy record can be oriented according to the clear area of the present invention, it is special using strong matching Sign matches characteristic in clear area, can come out the privacy record of whole and doubtful privacy record matching, then lead to Judging characteristic data are crossed by doubtful privacy record filtering, thus solve the problems, such as privacy record search, achieve cleaning speed Degree is fast, and the degree of accuracy is high, reduces manual operation, reduces time-consuming, the reading-writing life-span increase of storage medium, the beneficial effect that cost reduces Fruit.
Further, characteristic can be determined whether according to the weak matching characteristic of the present invention, passes through calculating Characteristic and the ratio of weak matching characteristic matching infer whether characteristic is privacy record, and it is doubtful thus to solve filtering The problem of privacy writing speed is slow, achieves that cleaning speed is fast, and the degree of accuracy is high, reduces manual operation, reduces time-consuming, storage medium Reading-writing life-span increase, cost reduce beneficial effect.
Further, deleting characteristic in clear area according to the present invention can thoroughly delete privacy record Remove, thus solve the problems, such as that privacy record is unable to complete deletion, achieve reduction leakage of information, that improves Information Security has Beneficial effect.
, with the cluster that mark is not used, it can orient according to the extraction from the buffer area of the present invention and be possible to have There is the storage location of the solid state hard disc data of specified format, to filter out the storage location of unnecessary cleaning, in conjunction with the present invention Default first kind mark, identify and contrast with the Second Type of little data, solid state hard disc Data Matching is come out, so as to Solid state hard disc data are cleared up, thus solving cleaning solid state hard disc data needs scan full hard disk, causes computing more, and speed is slow, consumption Duration, the problem of efficiency is low, achieve that computing is few, and speed is fast, take short, the beneficial effect of efficiency high.
Further, according to the present invention when the discovery first kind mark differs with Second Type mark When, then next specified location reading Second Type mark for having and being not used in the cluster of mark is read, can be quickly from institute In the storage location for the solid state hard disc data for being possible to there is specified format, the solid state hard disc number without specified format is screened out According to storage location.Thus solving cleaning solid state hard disc data needs to scan all data in the cluster with unused mark Problem, achieve and degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, takes short, the beneficial effect of efficiency high Fruit.
Further, it is identified as zero according to two or more described Second Types that ought continuously read out of the present invention When, the sampling threshold value of sampling Detection is determined according to the specified format, whole storage medium can be jumpily scanned through, thus solve Determined in new storage medium clear up solid state hard disc data when, it is necessary to scan it is all have be not used mark cluster the problem of, Achieve and degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, takes short, the beneficial effect of efficiency high.
According to the extraction from the data storage area of the present invention with the data block block, Ke Yiding that mark is not used Position goes out the storage location for being possible to the solid state hard disc data with specified format, to filter out the storage position of unnecessary cleaning Put, identified in conjunction with the default first kind of the present invention, identify and contrast with the Second Type of little data, by solid state hard disc number Come according to matching, so as to clear up solid state hard disc data, thus solving cleaning solid state hard disc data needs scan full hard disk, causes to transport More, the problem of speed is slow, and time-consuming, and efficiency is low is calculated, achieves that computing is few, and speed is fast, time-consuming short, the beneficial effect of efficiency high.
Further, according to the present invention when the discovery first kind mark differs with Second Type mark When, then next specified location reading Second Type mark for having and being not used in the data block block of mark is read, can be fast Speed from the storage location for the solid state hard disc data for being possible to that there is specified format, screen out consolidating without specified format The storage location of state hard disc data.Thus solving cleaning solid state hard disc data needs to scan the data block with mark is not used In block the problem of all data, achieve and degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, takes It is short, the beneficial effect of efficiency high.
Further, find that each list item value is in the block table of comparisons block bitmap according to working as the present invention Zero, and when each list item value is zero in described information node table of comparisons inode bitmap, read the block table of comparisons block The minimum data block block of number, can fast skip from original block group, thus solve not in bitmap , it is necessary to scan all data block block for having and mark being not used when clearing up solid state hard disc data in used block group The problem of, achieve and clear up that the degree of accuracy is high, and speed is fast, and computing is few while reading little data, take it is short, efficiency high it is beneficial Effect.
Further, it is zero according to list item value in the reading described information node table of comparisons inode bitmap of the present invention Corresponding information node inode number, residual letter is extracted from information node form inode table according to the number Breath, thus solve the problems, such as that cleaning is stored in the solid state hard disc data on the data block block of discontinuous number, achieve reading Degree of accuracy height is cleared up while taking little data, speed is fast, and computing is few, takes short, efficiency high, makes cleaning more complete beneficial Effect.
Further, the generating mode identified according to the first kind of the present invention, in the data knot of known specified format On the premise of structure, the data of all specified formats can be cleared up, thus solving cleaning solid state hard disc data needs entirely Sweeping is retouched, and causes the problem of computing is more, and speed is slow, and time-consuming, and efficiency is low, achieves that computing is few, and speed is fast, takes short, efficiency High beneficial effect.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows that a kind of method based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention is implemented The step flow chart of example;
Fig. 2 shows in a kind of method based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention and looked into Look for the step flow chart of the first solid state hard disc DATA Example 1;
Fig. 3 shows in a kind of method based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention and looked into Look for the step flow chart of the first solid state hard disc DATA Example 2;
Fig. 4 shows in a kind of method based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention and looked into Look for the step flow chart of the second solid state hard disc DATA Example;
Fig. 5 shows in a kind of method based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention and looked into Look for the step flow chart of the 3rd solid state hard disc DATA Example 1;
Fig. 6 shows in a kind of method based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention and looked into Look for the step flow chart of the 3rd solid state hard disc DATA Example 2;And
Fig. 7 shows that a kind of device based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention is implemented The structured flowchart of example.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Reference picture 1, show a kind of side based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The step flow chart of method embodiment, the solid state hard disc data include the first solid state hard disc number being stored in data storage area According to, the second solid state hard disc data being stored in buffer area, and the 3rd solid state hard disc data being stored in system area, specifically It may include steps of:
Step 101, the cleaning request that user clicks on the first predetermined interface location is received;
In a particular application, the first predetermined interface location can be the button for clearing up solid state hard disc data and setting Position.
Step 102, the cleaning request is sent to master controller, the master controller is completed according to the cleaning request The cleaning of solid state hard disc data, generation cleaning result, and the cleaning result is returned;
In the specific implementation, the solid state hard disc data include do not deleted thoroughly photo, short message, address list, call Record, chat record, recording, video.
In a kind of preferred exemplary of the present invention, the cleaning request includes the store path of solid state hard disc data, institute State and the cleaning request is sent to master controller, the step 102 includes:
Sub-step A1, the cleaning request is sent to master controller;The master controller is used for hard according to the solid-state The store path of disk data searches the solid state hard disc data, and the solid state hard disc data found are returned;
In actual applications, master controller can perform corresponding cleaning operation according to cleaning request, and cleaning operation can be with Including searching the first solid state hard disc data, and read-write erasing etc..
Wherein, described cleaning request remotely can directly be handed down to master controller by high in the clouds, can also pass through high in the clouds Be sent to solid state hard disc wireless control module send instruction whole system is controlled.
Because store path possessed by the file system of different-format in solid state hard disc is different, for example, solid state hard disc The file system of fuselage typically data storage area, data storage area can include EXT2 file system, EXT3 files system System, EXT4 file system etc., store path of the data storage area in solid state hard disc is usually solid state hard disc root, therefore, When the store path having in solid state hard disc includes store path, you can to determine the form of file system.
After receiving cleaning request, cleaning request can be sent to master controller, master controller is according in cleaning request Including store path, determine the form of file system, when store path matches with solid state hard disc root, show file The form of system is data storage area, i.e., what will be cleared up is the first solid state hard disc number in solid state hard disc fuselage memory space According to calling interface lookup the first solid state hard disc data of data storage area.
In a kind of preferred exemplary of the embodiment of the present invention, the solid state hard disc data include being stored in data storage area The first solid state hard disc data, the cleaning request also includes the specified formats of the first solid state hard disc data for clearance, the master The store path that controller is used in the following way according to the first solid state hard disc data searches the first solid state hard disc data:
Sub-step S11, the store path according to the first solid state hard disc data judge the form of file system;
Sub-step S12, when the form for judging the file system for data storage area when, then carried according to the specified format The default first kind is taken to identify;
Sub-step S13, each block group block group are extracted from the data storage area;
Sub-step S14, for currently processed block group block group extractions with the data block that mark is not used block;
Sub-step S15, the specified location in the data block block read Second Type mark;
Sub-step S16, when first kind mark is identical with the Second Type mark, read the data block Other data in block;
Sub-step S17, when other described data include end mark, judge the one or more data continuously read Whether the data in block block have complete fileinfo;
Sub-step S18, if so, being then judged to finding a first solid state hard disc data.
As a kind of example of concrete application of the present invention, the first solid state hard disc data can be included in local storage medium One or more deleted data, and each part or all of data deleted in data are not by new data cover. Specifically, the object of the first solid state hard disc data can include photo, short message, address list, solid state hard disc application, online note Record, software privacy record etc., software privacy record can be included for example:Chat record, image cache, speech message record etc. Deng.
First kind mark can be the coded string of specified format, and coded string can be the portion of the specified format Point start field, identified using the first kind and matched with the head that the data block block marked is not used, when matching When coded string is identical with this, other data in whole data block block corresponding to this are read, if in other data Do not read end mark, then read it is next have and in the data block block of coded string identical head other number According to until reading end mark, then, it is complete judging whether data in the one or more blocks continuously read have Fileinfo, i.e., whether complete file can be combined into, if so, then judging to find a first solid state hard disc data, otherwise, sentenced Data in fixed one or more blocks are not a first solid state hard disc data.
After the first solid state hard disc data are found, master controller returns to the first solid state hard disc data found.
In actual applications, master controller can perform corresponding cleaning operation according to cleaning request, and cleaning operation can be with Including searching the second solid state hard disc data, and read-write erasing etc..
Because store path possessed by the file system of different-format in solid state hard disc is different, for example, solid state hard disc The file system of external storage card typically buffer area, buffer area can include FAT12 file system, FAT16 files system System, FAT32 file system etc., buffer area is usually mnt/sdcard/ in the store path of solid state hard disc external storage card External-sd, therefore, when the store path having in solid state hard disc and this store path of mnt/sdcard/external-sd During matching, you can to determine the form of file system as buffer area.
After receiving cleaning request, cleaning request can be sent to master controller, master controller is according in cleaning request Including store path, the form of file system is determined, when store path and the store path of solid state hard disc external storage card During matching, the form for showing file system is buffer area, i.e., what will be cleared up is second solid in solid state hard disc external storage card State hard disc data, call interface lookup the second solid state hard disc data of buffer area.
Wherein, described cleaning request remotely can directly be handed down to master controller by high in the clouds, can also pass through high in the clouds Be sent to solid state hard disc wireless control module send instruction whole system is controlled.
In a kind of preferred exemplary of the embodiment of the present invention, the solid state hard disc data include the be stored in buffer area Two solid state hard disc data, the cleaning request also include the specified format of the second solid state hard disc data for clearance, the main control The store path that device is used in the following way according to the second solid state hard disc data searches the second solid state hard disc data:
Sub-step S21, the store path according to the second solid state hard disc data judge the form of file system;
Sub-step S22, when the form for judging the file system for buffer area when, it is default according to specified format extraction The first kind mark;
Sub-step S23, extraction is with the cluster that mark is not used from the buffer area;
Sub-step S24, the specified location in the cluster read Second Type mark;
Sub-step S25, when first kind mark is identical with the Second Type mark, then read in the cluster Other data;
Sub-step S26, when obtained using the data in the cluster reduce correct result when, be judged to finding one article the Two solid state hard disc data
As a kind of example of concrete application of the present invention, the second solid state hard disc data can be included in local storage medium One or more deleted data, and each part or all of data deleted in data are not by new data cover. Specifically, the object of the first solid state hard disc data can include photo, short message, address list, solid state hard disc application, online note Record, software privacy record etc., software privacy record can be included for example:Chat record, image cache, speech message record etc. Deng.
First kind mark can be the coded string of specified format, and coded string can be the portion of the specified format Point start field, identified using the first kind and matched with the head that the cluster marked is not used, when matching code character When string is identical with this, other data in whole cluster corresponding to this are read, if not reading end mark in other data, Then read it is next have with other data in the cluster of coded string identical head, until reading end mark, then, Judge whether the data in the one or more blocks continuously read have complete fileinfo, if the loss of data in cluster, Or it is destroyed, then the data in cluster can not be reduced to a complete data, obtain the result of reduction mistake, judge cluster In data be not deletion record, if the data in cluster are not lost, or, be not destroyed, then the data in cluster can be with A complete data are reduced to, obtains and reduces correct result, judge that the data in cluster are a second solid state hard disc number According to.Judging whether, which can use the data in the cluster to obtain, reduces correct result, if so, then judging to find one second Solid state hard disc data, otherwise, it is determined that the data in one or more blocks are not a second solid state hard disc data.
After the second solid state hard disc data are found, master controller returns to the second solid state hard disc data found.
In actual applications, master controller can perform corresponding cleaning operation according to cleaning request, and cleaning operation can be with Including searching the 3rd solid state hard disc data, and read-write erasing etc..
After receiving cleaning request, cleaning request can be sent to master controller, master controller is according in cleaning request Including store path, the storage location of the file of system area is determined, so as to read the file of system area by system area 3rd solid state hard disc data search comes out.
In a kind of preferred exemplary of the embodiment of the present invention, the solid state hard disc data include being stored in system area In the 3rd solid state hard disc data, the master controller is used for depositing according to the 3rd solid state hard disc data in the following way Store up the 3rd solid state hard disc data in path searching system area:
Sub-step S31, the store path according to the 3rd solid state hard disc data navigate to corresponding system area;
Sub-step S32, the tables of data for determining to specify in system area according to the cleaning request;The tables of data includes number According to page, the data page has top margin;
Sub-step S33, the clear area in the data page is read out from the top margin;
Sub-step S34, one or more fields of the tables of data are parsed in the system table preset from the system area;
Sub-step S35, using one or more of field combinations into strong matching characteristic;
Sub-step S36, the characteristic matched with the strong matching characteristic is searched in the clear area;
Sub-step S37, judge whether the characteristic is the 3rd solid state hard disc data;
Sub-step S38, if the characteristic is the 3rd solid state hard disc data, it is judged to finding one article of the 3rd solid-state Hard disc data.
As a kind of example of concrete application of the present invention, the 3rd solid state hard disc data, which can be included in, to be stored in system area One or more deletion record, and the data that the part or all of data in each deletion record are not newly recorded are covered Lid.Specifically, the object of the 3rd solid state hard disc data can include short message, address list, message registration, internet records, software 3rd solid state hard disc data etc., the solid state hard disc data of software the 3rd can be included for example:Chat record, image cache, voice Message Record etc..
Strong matching characteristic can be tables of data one or more field combinations into essential characteristic string, in the tables of data Any record, including the 3rd solid state hard disc data, all necessarily there is the field with essential characteristic String matching, therefore, can be with After finding clear area in system area, characteristic can be searched in clear area using strong matching characteristic, judge spy When sign data are the 3rd solid state hard disc data, it is determined that finding one article of the 3rd solid state hard disc data.
After the 3rd solid state hard disc data are found, master controller returns to the 3rd solid state hard disc data found.
Sub-step A2, there is provided the first solid state hard disc data, the second solid state hard disc data and the 3rd solid state hard disc data Show;
After the solid state hard disc data for receiving master controller transmission, by solid state hard disc data display in interface, to be made for Go out selection.
Sub-step A3, receive user and clicked on predetermined second contact surface position and see clearly reason request really, and will be described true See clearly that reason request is sent to the master controller, the master controller is used to confirm that cleaning request is completed to described solid according to described The cleaning of state hard disc data, generation cleaning result, and the cleaning result is returned;
In the specific implementation, predetermined second contact surface position can be included for the first solid state hard disc data, the second solid-state The check box of hard disc data, the 3rd solid state hard disc data, and/or, the position as the second button for confirming cleaning.
When the selected solid state hard disc data to be cleared up, and/or, when touching the second button, i.e., in predetermined second contact surface position Put click and confirm cleaning request, confirmation cleaning request can be received.
After receiving confirmation cleaning request, the confirmation can be cleared up request and be sent to master controller, master controller can be with Cleared up according to the confirmation and ask to obtain the storage informations such as the data block block number for storing the first solid state hard disc data, will Data on the data block block of the number are set to 0, and/or, master controller can clear up request acquisition storage according to the confirmation should The positional information of the cluster of second solid state hard disc data, the data on the cluster of the positional information are set to 0, and/or, master controller can be with The positional information of request acquisition storage the 3rd privacy record is cleared up according to the confirmation, by the number of relevant position in the positional information According to setting to 0, that is, the first solid state hard disc data are completed, and/or, the second solid state hard disc data, and/or, the 3rd solid state hard disc data are clear Reason.Master controller can generate the result that cleaning is completed, and the result for clearing up completion is sent to.
In a kind of preferred exemplary of the embodiment of the present invention, the master controller is used in the following way for described true See clearly that the cleaning to the 3rd solid state hard disc data is completed in reason request:
Sub-step S41, obtains the positional information of the characteristic storage, and the positional information includes storage characteristic Database file, data page, offset and length;
As a kind of example of concrete application of the present invention, when it is determined that the characteristic matched with strong matching characteristic is the 3rd solid During state hard disc data, the numbering of data page, institute in the title of the database file of record storage this feature data, place database Offset and length in data page.
Sub-step S42, deposited using the database file, data page, offset and length positioning to the characteristic The position of storage;
Corresponding database file is found using the title of database file, further according to data page numbering in the data Corresponding data page is found out in library file, characteristic storage is finally oriented in the data page using offset and length Position.
Sub-step S43, by the data zero setting on the position.
Original position using offset as characteristic storage location, writes zero, until zero since in original position Quantity terminates when equal with length value.
Deleted according to the present invention in clear area characteristic can by the 3rd solid state hard disc data complete deletion, by This solves the problems, such as that the 3rd solid state hard disc data are unable to complete deletion, achieves reduction leakage of information, improves Information Security Beneficial effect.
Step 103, there is provided clear up showing for result.
After the result of cleaning completion for receiving master controller transmission, the result is illustrated in interface.
According to the extraction from the data storage area of the present invention with the data block block, Ke Yiding that mark is not used Position goes out the storage location for being possible to the solid state hard disc data with specified format, to filter out the storage position of unnecessary cleaning Put, identified in conjunction with the default first kind of the present invention, identify and contrast with the Second Type of little data, by solid state hard disc number Come according to matching, so as to clear up solid state hard disc data, thus solving cleaning solid state hard disc data needs scan full hard disk, causes to transport More, the problem of speed is slow, and time-consuming, and efficiency is low is calculated, achieves that computing is few, and speed is fast, time-consuming short, the beneficial effect of efficiency high.
, with the cluster that mark is not used, it can orient according to the extraction from the buffer area of the present invention and be possible to have There is the storage location of the solid state hard disc data of specified format, to filter out the storage location of unnecessary cleaning, in conjunction with the present invention Default first kind mark, identify and contrast with the Second Type of little data, solid state hard disc Data Matching is come out, so as to Solid state hard disc data are cleared up, thus solving cleaning solid state hard disc data needs scan full hard disk, causes computing more, and speed is slow, consumption Duration, the problem of efficiency is low, achieve that computing is few, and speed is fast, take short, the beneficial effect of efficiency high.
The position of there may exist privacy record can be oriented according to the clear area of the present invention, it is special using strong matching Sign matches characteristic in clear area, can come out the privacy record of whole and doubtful privacy record matching, then lead to Judging characteristic data are crossed by doubtful privacy record filtering, thus solve the problems, such as privacy record search, achieve cleaning speed Degree is fast, and the degree of accuracy is high, reduces manual operation, reduces time-consuming, the reading-writing life-span increase of storage medium, the beneficial effect that cost reduces Fruit.
To make those skilled in the art more fully understand step 102 of the present invention, by the following examples 2, embodiment 3, real Apply example 4, embodiment 5, embodiment 6 the first solid state hard disc data of lookup specific to the embodiment of the present invention, the second solid state hard disc respectively The step of data, the 3rd solid state hard disc data, is described further.
Reference picture 2, show a kind of side based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The step flow chart of the first solid state hard disc DATA Example 1 is searched in method, the cleaning request includes the first solid state hard disc data Specified format, specifically may include steps of:
Step 201, the store path according to the first solid state hard disc data judges the form of file system;
In the specific implementation, because store path possessed by the file system of different-format in solid state hard disc is different, The form of file system can uniquely determine according to store path.
For example, when store path is solid state hard disc root, it is possible to determine that the form of file system is data storage area; When solid state hard disc includes the file that store path is mnt/sdcard/external-flash, it is possible to determine that file system The form of system is buffer area.
Step 202, when according to the store path, to determine the form of file system be data storage area, specified according to described Form extracts default first kind mark;
In actual applications, specified format can refer to the specific coding mode used for data storage data.
Request can be included in cleaning request to search and delete the first solid state hard disc data for clearance of specified format.When connecing The cleaning request received is when carrying the specified format of the first solid state hard disc data for clearance, by for clearance the of specified format One solid state hard disc data are searched and deleted.
It should be noted that the data of same form can use identical coded string on the head of data, due to First solid state hard disc data are also retained in storage medium in itself, therefore, may be used also in the head of each the first solid state hard disc of bar data To remain with the coded string of respective form.
In a kind of preferred exemplary of the embodiment of the present invention, the specified format bag of the first solid state hard disc data for clearance Include picture format.
In actual applications, the specified format of the first solid state hard disc data for clearance can at least include picture format.Figure First solid state hard disc data of piece form are relatively conventional, hence, it can be determined that the specified lattice of the first solid state hard disc data for clearance Formula is picture format.
It should be noted that the present invention can not only clear up the first solid state hard disc data of picture format, can also clear up First solid state hard disc data of text formatting, compressed package form etc. specified format, can be extracted default according to specified format First kind mark, the first solid state hard disc data that those skilled in the art can set cleaning according to being actually needed Specified format.
In actual applications, the coded string of every kind of form can be fixed, also, the species of form is different, compiles Code character string is also just different, therefore, when it is determined that the first solid state hard disc data for clearance specified format when, the volume of the specified format Code character string namely determination, the coded string can be used as the default first kind mark of the specified format.
In a kind of preferred exemplary of the embodiment of the present invention, the default first kind mark can be in the following manner Generation:
Sub-step S51, according to data structure corresponding to specified format determination;
As a kind of example of concrete application of the present invention, the data structure of various forms can pre-define, really The title of specified format is determined, you can to find corresponding data structure.
Sub-step S52, the coded string of the specified format is searched in the data structure;
Generally, in the file header field that the coded string of specified format can be in the data structure, number is found According to the file header in structure, you can to find the coded string of specified format.
Sub-step S53, extract the coded string and identified as the default first kind.
In a particular application, after finding the coded string of specified format, the coded string can be extracted as default The first kind mark.
The generating mode identified according to the first kind of the present invention, on the premise of the data structure of known specified format, The data of all specified formats can be cleared up, thus solving the first solid state hard disc data of cleaning needs scan full hard disk, Cause the problem of computing is more, and speed is slow, and time-consuming, and efficiency is low, achieve that computing is few, and speed is fast, take it is short, efficiency high it is beneficial Effect.
Step 203, each block group block group are extracted from the data storage area;
In the specific implementation, the operation of file system and the file data of operating system are relevant, newer operating system File data usually contains very more attributes, such as the file permission of (SuSE) Linux OS in addition to file actual content (read-only, read-write etc.) and file attribute (owner, group, time parameter etc.), data storage area would generally be by this two part Data are stored in different blocks respectively, and authority is placed into inode (information node, information node) with attribute, Then it is placed into as real data in data block (data block).An in addition, also super block (superblock) The Global Information of whole file system, including inode and block (data block) total amount, usage amount, surplus etc. can be recorded.
Because each inode and block have number, and each file can take an inode, then have in inode The block numbers that file data is placed.If it is possible to find the inode of this document, then, it is possible to know this text Part places the block numbers of data, also can just read the real data of this document.As file system up to number GB, It will be the very not decision of intelligence so to put together all inode and block all, because inode and block quantity It is too huge, it is not easy to manage.
Therefore, multiple block groups (block group) are substantially divided into data storage area when formatting , there are independent inode/block/superblock systems in each block group.
Filesystem Description (file system descriptor explanation) can describe each block group beginning With the block numbers of end, and illustrate the superblock in the block group, (block compares block bitmap Table), inode bitmap (the information node table of comparisons), inode table (information node form), data block specific position Put, can also be on the block of some number between particular location can distinguish the block of two numbers.
Generally, Filesystem Description can be in No. 1 block.
Step 204, for currently processed block group block group extractions with the data block that mark is not used block;
In actual applications, can be respectively to each block group block group processing, due to the storage of file Need to use block, be at most merely able to place the data of a file in each block, therefore, in data storage area need pair Mark is not used in empty block additions, for being used during new file storage.Likewise, when some files are deleted, these texts The block numbers that part takes originally will discharge, and now the mark of the block numbers will be revised as being not used.
Therefore, the data block with unused mark can be extracted.
In a kind of preferred exemplary of the embodiment of the present invention, the currently processed block group block group include Block table of comparisons block bitmap, it is zero that the unused mark, which includes list item value, the step 204 specifically can including with Lower sub-step:
Sub-step S61, read block table of comparisons block bitmap;
As a kind of example of concrete application of the present invention, block table of comparisons block bitmap position can be in file system Read out in system description explanation, the service condition of block in the block is have recorded in block table of comparisons block bitmap, The block used is labeled as 1, and untapped block is labeled as 0.
Sub-step S62, it is data block block corresponding to zero to record list item value in the block table of comparisons block bitmap Number;
In actual applications, block table of comparisons block bitmap can record each block's in the form of form Service condition, each block number, and the service condition of block corresponding to the number can be recorded in list item respectively, is used 0 or 1 marks service condition, and 0 can represent that block be not used as unused mark, and 1 can represent as using to mark Block has been used.
It is that data block block number record corresponding to 0 gets off by list item value.
Sub-step S63, using data block block corresponding to the number retention.
In the specific implementation, phase in data block can be navigated to using the data block block recorded number On the data block block answered, data block block is extracted.
In a kind of preferred exemplary of the embodiment of the present invention, the currently processed block group block group include Information node table of comparisons inode bitmap, can also comprise the following steps after the step 104:
When finding that each list item value is zero in the block table of comparisons block bitmap, and the described information node table of comparisons When each list item value is zero in inode bitmap, the data that number is minimum in the block table of comparisons block bitmap are read Block block number;
Initial data in the minimum data block block of the number is read using the number;
If the initial data is 00, the currently processed block group block group are skipped, processing is next Individual block group block group.
As a kind of example of concrete application of the embodiment of the present invention, the storage of data storage area can be according to block group Order carry out, preferentially can be stored using the block group being arranged in front, when the block group memory space use Next block group is just used when to the greatest extent, the data block in original block group, which all has to be not used, to be marked, therefore, if It may determine that currently processed block group was not used, then can skip this currently processed block group, looked into reducing Look for the time of the first solid state hard disc data.
Specifically, it is when detecting that each list item value is zero in block table of comparisons block bitmap, i.e., currently processed When data block block is respectively provided with unused mark in block group, there are two kinds of situations to correspond to this phenomenon, one kind is the area From being not used, one kind is that the block group used for block group, but the data stored are all deleted.
At this point it is possible to information node table of comparisons inode bitmap are read, if information node table of comparisons inode bitmap In each list item value be zero, i.e. inode is also respectively provided with unused mark, then can more determine block group or never to make It is used, or used, but the data stored are all deleted.
The data block block that number is minimum in block table of comparisons block bitmap is read, if data block block is originated Data are 00, then can be determined that the block group from being not used, is skipped by the block group, directly handle next block group Group.
Find that each list item value is zero in the block table of comparisons block bitmap according to working as the present invention, and the letter When each list item value is zero in breath node table of comparisons inode bitmap, the block table of comparisons block bitmap medium sizes are read The minimum data block block of code, can fast skip from original block group, thus solve in original area When the first solid state hard disc data are cleared up in block group, it is necessary to scan it is all have be not used mark data block block the problem of, Achieve and degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, takes short, the beneficial effect of efficiency high.
Step 205, the specified location in the data block block reads Second Type mark;
In actual applications, specified location can identify the position phase in data structure with the default first kind Together.I.e. specified location identifies the start bit in data structure in data block block original position with the default first kind Put identical, end of the specified location in data block block end position and default first kind mark in data structure Position is identical.
, can be since data block block original position after data block block with unused mark is extracted The data that there is identical length with default first kind mark are read, are identified as Second Type.
Step 206, when first kind mark is identical with the Second Type mark, the data block is read Other data in block;
In actual applications, after reading out Second Type mark, Second Type mark is identified with the default first kind Contrast, if Second Type mark is identical with first kind mark, show there may be the first solid-state hard in data block block Disk data, also, in data block block the first solid state hard disc data form it is identical with specified format, by the data block Other digital independents in block come out.
In a kind of preferred exemplary of the embodiment of the present invention, when first kind mark identifies not with the Second Type When identical, then next there is the specified location being not used in the data block block of mark to read Second Type mark.
In the specific implementation, the Second Type mark read out differs with default first kind mark can include two Kind situation, the first situation is that the Second Type read out is identified as zero, shows do not have the first solid-state hard in data block block Disk data;Second of situation is that the Second Type mark read out is not zero, and shows have and specified lattice in data block block The data for the extended formatting that formula differs.Therefore, can be when finding that first kind mark differs with Second Type mark, can Directly to skip data block block, next data block block for having and mark being not used is read, in data block block In specified location read Second Type mark.
According to the present invention when finding that the first kind mark differs with Second Type mark, then under reading One there is the specified location being not used in the data block block of mark to read Second Type mark, can be quickly from all May have in the storage location of the first solid state hard disc data of specified format, screen out the first solid-state without specified format The storage location of hard disc data.Thus solving the first solid state hard disc data of cleaning needs to scan the data with mark is not used In block block the problem of all data, achieve and degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, consumption When short, the beneficial effect of efficiency high.
Step 207, when other described data include end mark, the one or more data blocks continuously read are judged Whether the data in block have complete fileinfo.
As a kind of example of concrete application of the present invention, when the first solid state hard disc data are excessive, one or more can be taken Individual block, at this time, it may be necessary to judge shared when whether one or more block are a first solid state hard disc data storage One or more block, if one or more block shared during a first solid state hard disc data storage, then connect The data resumed studies out in one or more data block block have complete fileinfo, it is possible to determine that hard for the first solid-state Disk data, otherwise judge not to be the first solid state hard disc data.
Step 208, if the data in the one or more data block block continuously read have complete fileinfo, Then it is judged to finding a first solid state hard disc data.
In actual applications, when the data in one or more data block block can be combined into complete fileinfo When, show that the data in one or more data block block are the complete content of a first solid state hard disc data, judge to look into Data in the one or more data block block found are a first solid state hard disc data.
According to the extraction from the data storage area of the present invention with the data block block, Ke Yiding that mark is not used Position goes out the storage location for being possible to the first solid state hard disc data with specified format, to filter out the storage of unnecessary cleaning Position, identified in conjunction with the default first kind of the present invention, identify and contrast with the Second Type of little data, by the first solid-state Hard disc data, which matches, to be come, and so as to clear up the first solid state hard disc data, thus solves the first solid state hard disc data needs of cleaning Scan full hard disk, the problem of computing is more, and speed is slow, and time-consuming, and efficiency is low is caused, achieve that computing is few, and speed is fast, take short, effect The high beneficial effect of rate.
Reference picture 3, show a kind of side based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The step flow chart of the first solid state hard disc DATA Example 2 is searched in method, the cleaning request includes the first solid state hard disc data Specified format, the first solid state hard disc data storage in the data block block of discontinuous number, specifically can include such as Lower step:
Step 301, the store path according to the first solid state hard disc data judges the form of file system;
Step 302, when according to the store path, to determine the form of file system be data storage area, specified according to described Form extracts default first kind mark;
Step 303, each block group block group are extracted from the data storage area;The block group Block group include information node table of comparisons inode bitmap, information node form inode table;
Step 304, for currently processed block group block group extractions with the data block that mark is not used block;
Step 305, it is information node corresponding to zero to read list item value in described information node table of comparisons inode bitmap Inode number;
In the specific implementation, inode bitmap be used for record use and untapped inode number, it is untapped Inode number can represent the inode of the number from being not used, or the inode of the number was used, and the inode The data file of instruction has been deleted.
List item value can represent that the inode of the number be not used for 0 as unused mark, and 1 can mark as using Note represents that the inode of the number has been used.
It is that information node inode number corresponding to 0 is read out by list item value.
Step 306, residual risk, the residual are extracted in information node form inode table according to the number Information includes being stored with the data block block of the first solid state hard disc data number;
In actual applications, residual risk can refer to when there is data to be deleted from data storage area, and inode use marks By using being revised as being not used when, the information that remains in inode table.Inode table can be used for recording inode Content, include the attribute and the first solid state hard disc data actual block deposited of the first solid state hard disc data of record Number.
Can be with when the first solid state hard disc data storage is in the data block block of discontinuous number, in inode table The number of each data block of record storage the first solid state hard disc data, and/or, recording a certain section of Coutinuous store, this is first solid The initial data block and termination data block of state hard disc data.
When the first solid state hard disc data storage is in the data block block of consecutive number, can remember in inode table The initial data block and termination data block of address book stored the first solid state hard disc data.
Step 307, when the data block block with unused mark is with the number, step 308 is performed.
As a kind of example of concrete application of the present invention, when the data block with unused mark is with residual risk During number, then show that one or more data blocks may include being stored in the data block block of discontinuous number, and should The data block of discontinuous number has all been found.
The information according to corresponding to list item value in the reading described information node table of comparisons inode bitmap of the present invention is zero Node i node number, residual risk is extracted from information node form inode table according to the number, is thus solved The problem of cleaning is stored in the first solid state hard disc data on the data block block of discontinuous number, achieve read it is less Degree of accuracy height is cleared up while data, speed is fast, and computing is few, takes short, efficiency high, makes the more complete beneficial effect of cleaning.
Step 308, the specified location in the data block block reads Second Type mark;
Step 309, when first kind mark is identical with the Second Type mark, the data block is read Other data in block;
Step 310, when other described data include end mark, the one or more data blocks continuously read are judged Whether the data in block have complete fileinfo;
Step 311, if the data have complete fileinfo, it is judged to finding a first solid state hard disc number According to.
With being in place of the difference of above method embodiment 2, the present embodiment can be cleared up to be stored in discontinuously the present embodiment The first solid state hard disc data on the data block block of number, the accuracy rate of cleaning is improved, and, make cleaning more complete.
According to the extraction from the data storage area of the present invention with the data block block, Ke Yiding that mark is not used Position goes out the storage location for being possible to the first solid state hard disc data with specified format, to filter out the storage of unnecessary cleaning Position, identified in conjunction with the default first kind of the present invention, identify and contrast with the Second Type of little data, by the first solid-state Hard disc data, which matches, to be come, and so as to clear up the first solid state hard disc data, thus solving cleaning solid state hard disc data needs totally Scanning, causes the problem of computing is more, and speed is slow, and time-consuming, and efficiency is low, achieves that computing is few, and speed is fast, takes short, efficiency high Beneficial effect.
Reference picture 4, show a kind of side based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The step flow chart of the second solid state hard disc DATA Example is searched in method, the cleaning request includes the second solid state hard disc data Specified format specifically may include steps of:
Step 401, the store path according to the second solid state hard disc data judges the form of file system;
In the specific implementation, because store path possessed by the file system of different-format in solid state hard disc is different, The form of file system can uniquely determine according to store path.
For example, when store path is solid state hard disc root, it is possible to determine that the form of file system is data storage area; When solid state hard disc includes the file that store path is mnt/sdcard/external-sd, it is possible to determine that file system Form is buffer area.
Step 402, when the form for judging the file system for buffer area when, extracted according to the specified format default The first kind identifies;
In actual applications, specified format can refer to the specific coding mode used for data storage data.
Request can be included in cleaning request to search and delete the second solid state hard disc data for clearance of specified format.When connecing The cleaning request received is when carrying the specified format of the second solid state hard disc data for clearance, by for clearance the of specified format Two solid state hard disc data are searched and deleted.
It should be noted that the data of same form can use identical coded string on the head of data, due to Second solid state hard disc data are also retained in storage medium in itself, therefore, may be used also in the head of each the second solid state hard disc of bar data To remain with the coded string of respective form.
In a kind of preferred exemplary of the embodiment of the present invention, the specified format bag of the second solid state hard disc data for clearance Include picture format.
In actual applications, the specified format of the second solid state hard disc data for clearance can at least include picture format.Figure Second solid state hard disc data of piece form are relatively conventional, hence, it can be determined that the specified lattice of the second solid state hard disc data for clearance Formula is picture format.
It should be noted that the present invention can not only clear up the second solid state hard disc data of picture format, can also clear up Second solid state hard disc data of text formatting, compressed package form etc. specified format, can be extracted default according to specified format First kind mark, the second solid state hard disc data that those skilled in the art can set cleaning according to being actually needed Specified format.
In actual applications, the coded string of every kind of form can be fixed, also, the species of form is different, compiles Code character string is also just different, therefore, when it is determined that the second solid state hard disc data for clearance specified format when, the volume of the specified format Code namely determination, the coded string can be used as the default first kind mark of the specified format.
In a kind of preferred exemplary of the embodiment of the present invention, the default first kind mark can be in the following manner Generation:
Sub-step S71, according to data structure corresponding to specified format determination;
As a kind of example of concrete application of the present invention, the data structure of various forms can pre-define, really The title of specified format is determined, you can to find corresponding data structure.
Sub-step S72, the coded string of the specified format is searched in the data structure;
Generally, in the file header field that the coded string of specified format can be in the data structure, number is found According to the file header in structure, you can to find the coded string of specified format.
Sub-step S73, extract the coded string and identified as the default first kind.
In a particular application, after finding the coded string of specified format, the coded string can be extracted as default The first kind mark.
Step 403, cluster of the extraction with unused mark from the buffer area;
In the specific implementation, in buffer area, each cluster on disk has in FAT table and an only entry, Show that the cluster of data field is to have taken, be not used or bad cluster by inserting " list item value " in the entry of corresponding cluster number One of three kinds of states, there is the cluster that mark is not used can represent the cluster from being not used, or, the cluster was used but marked Note is deleted, and the second solid state hard disc data can be in cluster, can not also be in cluster.
The list item value according to corresponding to unused state can be extracted from buffer area with the cluster that mark is not used.
In a kind of preferred exemplary of the embodiment of the present invention, the buffer area includes file allocation table FAT and data field, institute Stating data field includes cluster, and it is zero that the unused mark, which includes list item value, and the step 203 can specifically include following sub-step Suddenly:
Sub-step S81, file allocation table FAT is obtained from the buffer area;
As a kind of example of concrete application of the embodiment of the present invention, there can be these parts using the subregion of buffer area: Reserved area (Reserved Region), deposit the important parameter and bootstrap of buffer area;File allocation table FAT table (FAT Region), the service condition of cluster (Cluster) is recorded;Root directory area (Root Directory Region), record root Information.FAT32 systems abandons root directory area, root directory area can be arbitrarily designated a cluster;File directory data field (File And Directory Data Region), be various file datas actual storage area.
File allocation table FAT position is recorded in reserved area, may obtain file allocation table FAT by reserved area.
Sub-step S82, it is cluster number corresponding to zero to record list item value in the file allocation table FAT;
In actual applications, it for cluster corresponding to zero flag is unused that list item value can be used in file allocation table FAT State, it is cluster number corresponding to zero to record list item value.
Sub-step S83, extracted using the cluster number in the data field corresponding to cluster.
In the specific implementation, it is cluster number corresponding to zero to obtain list item value, the second solid state hard disc data can be also learnt May storage position, cluster corresponding with cluster number in data field is extracted one by one, can filter out can not possibly be stored with the The cluster of two solid state hard disc data.
Step 404, the specified location in the cluster reads Second Type mark;
As a kind of example of concrete application of the present invention, specified location can be identified with the default first kind in data Position in structure is identical.
Second Type mark can identify with the default first kind has identical length, identical original position.
Usually, can be read since cluster original position has identical length with default first kind mark Data, identified as Second Type.
Step 405, when first kind mark is identical with the Second Type mark, then its in the cluster is read Its data;
In actual applications, after reading out Second Type mark, Second Type mark is identified with the default first kind Contrast, if Second Type mark is identical with first kind mark, show that there are the second solid state hard disc data in the cluster, also, The form of the second solid state hard disc data is identical with specified format in the cluster, and other digital independents in the cluster are come out.
In a kind of preferred exemplary of the embodiment of the present invention, when the discovery first kind mark and the Second Type mark When knowledge differs, then next specified location reading Second Type mark for having and being not used in the cluster of mark is read.
In the specific implementation, the Second Type mark read out differs with default first kind mark can include two Kind situation, the first situation is that the Second Type read out is identified as zero, shows do not have the second solid state hard disc data in the cluster;The Two kinds of situations are that the Second Type mark read out is not zero, and show there is the extended formatting differed with specified format in the cluster Data.Therefore, it can directly skip the cluster when finding that first kind mark differs with Second Type mark, read Next cluster for having and mark being not used is taken, the specified location in the cluster reads Second Type mark.
According to the present invention when finding that the first kind mark differs with Second Type mark, then under reading One have be not used mark cluster in specified location read Second Type mark, can quickly from be possible to have refer to In the storage location of second solid state hard disc data of the formula that fixes, the second solid state hard disc data without specified format are screened out Storage location.Thus solving cleaning solid state hard disc data needs to scan with asking for all data in the cluster of mark is not used Topic, achieve and degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, takes short, the beneficial effect of efficiency high Fruit.
In a kind of preferred exemplary of the embodiment of the present invention, Second Type is read in the specified location in the cluster After the step of mark, in addition to:
When continuously reading out two or more described Second Types and being identified as zero, determined according to the specified format The sampling threshold value of sampling Detection;
Using the sampling threshold value iterative calculation when time sample position;
Judge whether the data in the sample position are zero;
If the data in the sample position are zero, return using the sampling threshold value iterative calculation when time sample position The step of;
If the data in the sample position are not zero, the specified location returned in the cluster reads Second Type mark The step of knowledge.
In a particular application, when continuously reading out two or more described Second Types and being identified as zero, then show Storage medium is probably brand-new, does not store data also.
Sampling threshold value can determine according to specified format, can count the minimum value of the file size with specified format, Using minimum value as sampling threshold value.For example, the file of picture format can set minimum value as 100KB, then threshold value of sampling is 100KB。
Since current location, sample position is read in the position for threshold value of being sampled every one as when secondary sample position On data, if the data in sample position are zero, show also there is no data on the position, continue a sampling of jumping The position of threshold value, next sample position is read, until reading complete storage medium;If the data in sample position are not Zero, then show there are data on the position, the storage medium is born marks of use, then the specified location returned in the cluster is read The step of Second Type identifies, the cluster is run through.
According to the present invention when continuously reading out two or more described Second Types and being identified as zero, according to described in Specified format determines the sampling threshold value of sampling Detection, can jumpily scan through whole storage medium, thus solve new When the second solid state hard disc data are cleared up in storage medium, it is necessary to scan it is all have be not used mark cluster the problem of, achieve Degree of accuracy height is cleared up while reading little data, speed is fast, and computing is few, takes short, the beneficial effect of efficiency high.
Step 406, when obtaining the correct result of reduction using the data in the cluster, it is judged to finding one second Solid state hard disc data.
In actual applications, have one or more clusters that mark is not used may be by repeatedly erasable, one has second Type identification, and Second Type mark and first kind mark identical cluster, if other data can not group with Second Type mark A second solid state hard disc data are synthesized, then judge that the data in the cluster are not the second solid state hard disc data, if other data A second solid state hard disc data can be combined into Second Type mark, then to find a second solid state hard disc data.
, with the cluster that mark is not used, it can orient according to the extraction from the buffer area of the present invention and be possible to have There is the storage location of the second solid state hard disc data of specified format, to filter out the storage location of unnecessary cleaning, in conjunction with this The default first kind mark of invention, identifies with the Second Type of little data and contrasts, by the second solid state hard disc Data Matching Out, so as to clear up the second solid state hard disc data, thus solving the second solid state hard disc data of cleaning needs scan full hard disk, causes The problem of computing is more, and speed is slow, and time-consuming, and efficiency is low, achieve that computing is few, and speed is fast, take short, the beneficial effect of efficiency high Fruit.
Reference picture 5, show a kind of side based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The step flow chart of the 3rd solid state hard disc DATA Example 1 is searched in method, specifically may include steps of:
Step 501, the store path according to the 3rd solid state hard disc data navigates to corresponding system area;
In actual applications, store path can indicate the position of the file of system area, using the store path To orient corresponding system area.
Step 502, the tables of data specified in system area is determined according to the cleaning request;The tables of data includes data Page, the data page have top margin;
In the specific implementation, data record all in tables of data is stored in data page, including the 3rd solid state hard disc number According to.The system area that each program is created is that privately owned, different cleaning request corresponds to different system areas, each system area It can be made up of multiple tables of data, one of tables of data is used to store the record by the program creation, each tables of data The record display of the program creation can be come out by one or more data pages, the record of the program creation includes the 3rd solid-state Hard disc data and non-deletion record.
The list of all tables of data in system area can be obtained by the preset system table in resolution system area, is sieved from list Select the tables of data of specified title.
Such as:Access failure words record can be included in message registration, words record is had been turned on and dialled message registration, call note Record can be stored in the database of message registration, can use a tables of data storage all in the database of message registration Message registration, the tables of data can be shown all message registrations using one or more data pages.
In a kind of preferred exemplary of the embodiment of the present invention, the cleaning request includes clearing up object, and the step 502 has Body can include following sub-step:
Sub-step S91, system area to be found is determined using the cleaning object, and, what the cleaning object was specified The table name of tables of data;
As a kind of example of concrete application of the present invention, cleaning object can be by being deleted after different program creations Record, by the system area that each program is created is privately owned, therefore, it can determine to correspond to according to the different of cleaning object System area.
For example, when it is determined that cleaning object is deleted message registration, it may be determined that system area to be found is establishment The system area that the dial-up program of message registration is created.
In system area when creating, the table name of the tables of data of setting is relevant with the record that will be stored, therefore, when cleaning pair During as determining, the table name for the tables of data specified can also determine.
For example, the system area that dial-up program is created, the table name for being normally set up storing the tables of data of message registration is call, Therefore, when it is determined that cleaning object is deleted message registration, it may be determined that tables of data corresponding to deleted message registration Table name be call.
Sub-step S92, determined according to the table name in the system area corresponding to tables of data.
In the specific implementation, corresponding tables of data can be found in system area according to the table name of the tables of data of determination.
It should be noted that data page is a kind of storage form of all data in tables of data, each tables of data is in system Can all be Btree (B-tree) structure in area, Btree structures include root page, internal page and leaf page, wherein, each tables of data First page be referred to as root page, root page and internal page are mainly used in navigating, the pointer field of its page all referring to the pointer to subordinate's page, That is the pointer of the inwardly directed page of pointer field of root page, the pointer field of internal page point to the pointer of leaf page, and data field only includes Keyword, and all data records are stored in leaf page, therefore, the data page can be leaf page.
, can searching data table includes in the following manner number due to the logical storage structure of Btree middle period subpages According to page:
Step 1, root page corresponding to searching data table;
Step 2, search one or more internal pages corresponding to the root page;
Step 3, search one or more leaf pages corresponding to one or more internal pages.
The root page numbering of all tables of data is stored in preset system table sqlite_master, system table sqlite_ Master saves schema (framework) information of database, when creating system table sqlite_master structure, determines that System table sqlite_master root page is page1.Due to having found corresponding table in system area in step 502 Title, therefore, memory module when can be created according to system area, find the root page that tables of data corresponds to Btree.
Find Btree root page, you can pointed to according to the pointer field of root page and find one or more internal pages, then root One or more leaf pages are found according to the sensing of internal page pointer field.
Step 503, the clear area in the data page is read out from the top margin;
In actual applications, clear area can include unallocated district and freeblock (free block) block, so-called unallocated Area can refer to data page and be used in the region of data storage record from the original band of position, and so-called freeblock blocks can To refer to after one or more data record in the region that data page is used for data storage record is deleted, not yet by new data Record the band of position of covering.
It should be noted that when freeblock blocks are adjacent with unallocated district, the 3rd solid state hard disc data can be used as not Distribute the content in area.Therefore, except needing to read out the freeblock blocks in data page, it is also necessary to read out in data page Unallocated district.
Clear area in data page can be indicated in top margin, and first can be recorded in top margin The offset of freeblock blocks, each freeblock block can include 4 bytes, and preceding 2 bytes can be next The offset of freeblock blocks, rear 2 bytes can be the sizes of freeblock blocks, therefore, can read out in data page Clear area.
In addition, all deleted for the data record in data page, when the data page turns into free page, free page will be by It is recorded in the file header of database file, by reading the free page chained list owner pointer in file header, can quickly reads out Clear area.
Step 504, one or more fields of the tables of data are parsed from the preset system table of the system area;
In the specific implementation, one or more fields of the tables of data in system area can define deposit tables of data in it is every The one or more fields and the order of one or more fields that data record includes, therefore, same number in system area There is fixed data type according to table.
Tables of data is when creating, it is necessary to by the preset system table sqlite_ in the data type writing system area of tables of data In master, the type table of tables of data, the table name of tables of data, the root page of tables of data can be included and numbered and including creating The character string of used SQL statement during tables of data, the one or more used when can include structure tables of data in SQL statement Field etc., therefore, the field that character string parsing goes out tables of data can be read from the preset system table of system area.
Step 505, using one or more of field combinations into strong matching characteristic;
As a kind of example of concrete application of the present invention, when being stored in every record of tables of data and having to comply with tables of data structure Requirement, including record must contain one or more fields, and the order of each field should be with one or more in record The order of individual field is identical, and therefore, the combination of one or more fields may be considered any record in the tables of data The strong matching characteristic all met.
In a kind of preferred exemplary of the embodiment of the present invention, the step 504 can specifically include following sub-step:
Sub-step S1001, the type of one or more of fields is judged respectively;
In the specific implementation, the character string write in preset system sqlite_master can include structure tables of data The type of Shi Caiyong one or more fields, the type of each field is may determine that by reading the character string.
Sub-step S1002, the type of one or more of fields is sequentially connected in series into essential characteristic string, will be described substantially special Sign string is used as strong matching characteristic.
In actual applications, the type for the one or more fields that can be will determine that out is concatenated into essential characteristic string, the base Eigen string is strong matching characteristic.
Such as:The type for the one or more fields judged is followed successively by numeral, and text, numeral, then essential characteristic string can Think numeral-text-numeral, the essential characteristic string that numeral-text-numeral is formed may act as strong matching characteristic.
Step 506, the characteristic matched with the strong matching characteristic is searched in the clear area;
In actual applications, can be matched using strong matching characteristic in clear area, when existing in clear area During the 3rd solid state hard disc data, for the 3rd solid state hard disc data necessarily satisfying for strong matching characteristic, the 3rd solid state hard disc data will be by Found out as the characteristic matched with strong matching characteristic.
It should be noted that meet that to establish a capital be the 3rd solid state hard disc data to strong matching characteristic differing, when new record respectively covers When having covered the half of adjacent two article of the 3rd solid state hard disc data, if new record is also deleted, the spy with the matching of strong matching characteristic Sign data are probably the combination of two article of the 3rd solid state hard disc data.Such as:Every record of tables of data includes four fields, adjacent The type of first character section to the 4th field of first article of the 3rd solid state hard disc data be numeral-text-numeral-text respectively This, the type of first character section to the 4th field of the solid state hard disc data of Article 2 the 3rd is also numeral-text-number respectively Word-text, now, first article of new record cover the 3rd field and the 4th field of first article of the 3rd solid state hard disc data And the first character section and second field of the solid state hard disc data of Article 2 the 3rd, after first new record is deleted, write again Enter Article 2 new record, and Article 2 new record be covered in just first article of new record the 3rd field and the 4th field and The 3rd field and the 4th field of the solid state hard disc data of Article 2 the 3rd.According to strong matching characteristic numeral-text-number Word-text, is searched in clear area, and the characteristic matched with strong matching characteristic is first article of the 3rd solid state hard disc number According to first character section and second field add the first character section and second field of first new record, now, characteristic According to not being the 3rd solid state hard disc data.
Step 507, judge whether the characteristic is the 3rd solid state hard disc data;If the 3rd solid state hard disc data, Then perform step 508;
In the specific implementation, can judge that data content is by the way that data content corresponding to characteristic is extracted No effective manner judges whether the characteristic is the 3rd solid state hard disc data.
In a kind of preferred exemplary of the embodiment of the present invention, the step 507 can specifically include following sub-step:
Sub-step S1101, the data span of one or more of fields is generated according to the strong matching characteristic;
Sub-step S1102, read the data value of one or more fields in the characteristic;
Sub-step S1103, the data value is respectively adopted compared with corresponding data span;
Sub-step S1104, when the data value of one or more of fields meets the data span successively, It is the 3rd solid state hard disc data to judge the characteristic.
Because strong feature can be that field type in system table forms, the span of different field types It is different.
When judging whether data content is effective, when the data value of each field type in characteristic meets strong matching successively When data span in feature requires, data content corresponding to characteristic is effective, and judgement characteristic is the 3rd solid-state Hard disc data;
The data value in strong matching characteristic is not met when the data value of one of each field type in characteristic During area requirement, void of data content corresponding to characteristic, judge that characteristic is not the 3rd solid state hard disc data.
Due to using strong matching characteristic match come characteristic be not necessarily the 3rd solid state hard disc data, be not the 3rd The characteristic of solid state hard disc data does not have any value, and cleaning is not that the characteristic of the 3rd solid state hard disc data can only increase Add the read-write number of storage medium, reduce the reading-writing life-span of storage medium, therefore, in order to reduce the read-write number of storage medium, It is not that the characteristics of the 3rd solid state hard disc data may not necessarily clear up.
Certainly, the judgment mode of above-mentioned 3rd solid state hard disc data is intended only as example, when implementing the embodiment of the present invention, The judgment mode of other the 3rd solid state hard disc data can be set according to actual conditions, and the embodiment of the present invention is not limited this System.In addition, in addition to the judgment mode of above-mentioned 3rd solid state hard disc data, those skilled in the art can also be according to being actually needed Using the judgment mode of other the 3rd solid state hard disc data, the embodiment of the present invention is not also any limitation as to this.
The position that there may exist the 3rd solid state hard disc data can be oriented according to the clear area of the present invention, is used Strong matching characteristic matches characteristic in clear area, can consolidate the 3rd solid state hard disc data and the doubtful the 3rd of whole State hard disc data, which matches, to be come, then thus solves the 3rd doubtful solid state hard disc data filtering by judging characteristic data The problem of 3rd solid state hard disc data search, achieve that cleaning speed is fast, and the degree of accuracy is high, reduce manual operation, reduce time-consuming, deposit The reading-writing life-span increase of storage media, the beneficial effect that cost reduces.
Step 508, it is judged to finding one article of the 3rd solid state hard disc data.
In the specific implementation, when characteristic is determined as the 3rd solid state hard disc data, it is possible to determine that to find one 3rd solid state hard disc data.
The position that there may exist the 3rd solid state hard disc data can be oriented according to the clear area of the present invention, is used Strong matching characteristic matches characteristic in clear area, can consolidate the 3rd solid state hard disc data and the doubtful the 3rd of whole State hard disc data, which matches, to be come, then thus solves the 3rd doubtful solid state hard disc data filtering by judging characteristic data The problem of 3rd solid state hard disc data search, achieve that cleaning speed is fast, and the degree of accuracy is high, reduce manual operation, reduce time-consuming, deposit The reading-writing life-span increase of storage media, the beneficial effect that cost reduces.
Reference picture 6, show a kind of side based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The step flow chart of the 3rd solid state hard disc DATA Example 2 is searched in method, specifically may include steps of:
Step 601, the store path according to the 3rd solid state hard disc data navigates to corresponding system area;
Step 602, corresponding tables of data in system area is determined according to the cleaning request;The tables of data includes data Page, the data page have top margin;
Step 603, the clear area in the data page is read out from the top margin;
Step 604, one or more fields of the tables of data are parsed from the preset system table of the system area;
Step 605, using one or more of field combinations into strong matching characteristic;
Step 606, the characteristic matched with the strong matching characteristic is searched in the clear area;
Step 607, the working region in the data page is read out from the top margin;It is stored with the working region Data are preserved;
In the specific implementation, identify the initial address of the working region of data page in the top margin of data page, navigate to Beginning address, the working region in data page, and the preservation data that will can be stored in working region can be determined successively Read out.
Step 608, the one or more weak matching characteristics of data generation have been preserved according to described in.
In actual applications, between having preserved data there are some identical features in each in same tables of data, These identical features can be used to speculate that the 3rd solid state hard disc data may also have most of in these features.
In a kind of preferred exemplary of the embodiment of the present invention, the step 308 can specifically include following sub-step:
Sub-step S1201, it is corresponding in data according to having been preserved described in the type statistics of one or more fields of tables of data One or more fields value or length;
As a kind of example of concrete application of the present invention, it can be identical that each bar, which has preserved field possessed by data, Every has preserved data and can include one or more fields, according to the type of field, can count the value or length of the field. Such as:If the type of a field is text, the length of a field is counted, if the type of a field is numeral, Count value of a field, etc..
Sub-step S1202, if it is described preserved corresponding one or more fields in data value it is identical, or, it is corresponding One or more fields length it is identical, filter out one or more of fields;
In a particular application, if each bar value for having preserved same field in data is identical, or, the length phase of same field Together, then the same field filter is come out.
Such as:Three have preserved data and have all had field one, field two, field three, field four, wherein, the class of field one Type is numeral, and the type of field two is text, and the type of field three is numeral, and the type of field four is text, has preserved data In corresponding one or more fields value or length statistical result it is as shown in table 1 below.
Data are preserved Field one Field two Field three Field four
First has preserved data 0 10 0 0
Article 2 has preserved data 0 10 1 1
Article 3 has preserved data 0 10 2 2
Table 1
The data of table 1 are carried out knowable to analysis judgement, three have preserved in data, and the value of field one is all 0, field two Length is all 10, i.e., the value that each bar has preserved same field in data is identical, or, the length of same field is identical, by field One and field two screen respectively.
Sub-step S63, using the combination of one or more of fields and the value of one or more of fields as one Or multiple weak matching characteristics, and/or, the combination of one or more of fields and the length of one or more of fields is made For one or more weak matching characteristics.
In actual applications, due to each field screened, in the value of field, or, the length statistics of field On be identical, therefore, using the combination of a field and the value of a field as a weak matching characteristic, and/or, by one The combination of the length of individual field and a field as one or more weak matching characteristics, when preserved in data have it is multiple this During the combination of sample, multiple weak matching characteristics can be generated.
Step 609, matched using one or more of weak matching characteristics with the characteristic;
, will be one or more weak in the specific implementation, characteristic and to have preserved field possessed by data be identical Field corresponding with characteristic is matched field possessed by matching characteristic respectively, by one or more weak matching characteristics The value of the value of possessed field field corresponding with characteristic is matched, and/or, one or more weak matching characteristics The length of the length of possessed field field corresponding with characteristic is matched.
Step 610, calculate the number of weak matching characteristic matched with the characteristic, and, weak matching characteristic it is total Number;
If one or more weak matching characteristics are identical with the value of field or length corresponding to characteristic, weak matching is special Sign matches with the characteristic, calculates the number of the weak matching characteristic matched with the characteristic.
Count the sum of weak matching characteristic.
Step 611, when the ratio that the number accounts for the weak matching characteristic sum exceedes default threshold value, described in judgement Characteristic is the 3rd solid state hard disc data, performs step 612.
The number for calculating the weak matching characteristic matched with the characteristic accounts for the ratio of the weak matching characteristic sum, when When ratio exceedes predetermined threshold value, it was demonstrated that for characteristic with having preserved data similarity height, it is that the 3rd solid-state is hard to judge characteristic Disk data
It should be noted that predetermined threshold value can determine that the sum of weak matching characteristic is got over according to the sum of weak matching characteristic More, predetermined threshold value is bigger, and the sum of weak matching characteristic is fewer, and predetermined threshold value is smaller.
According to the present invention weak matching characteristic characteristic can be determined whether, by calculate characteristic with The ratio of weak matching characteristic matching infers whether characteristic is the 3rd solid state hard disc data, thus solve filtering it is doubtful the The problem of three solid state hard disc data speeds are slow, achieves that cleaning speed is fast, and the degree of accuracy is high, reduces manual operation, reduces time-consuming, deposits The reading-writing life-span increase of storage media, the beneficial effect that cost reduces.
Step 612, it is judged to finding one article of the 3rd solid state hard disc data.
The position that there may exist the 3rd solid state hard disc data can be oriented according to the clear area of the present invention, is used Strong matching characteristic matches characteristic in clear area, can consolidate the 3rd solid state hard disc data and the doubtful the 3rd of whole State hard disc data, which matches, to be come, then thus solves the 3rd doubtful solid state hard disc data filtering by judging characteristic data The problem of 3rd solid state hard disc data search, achieve that cleaning speed is fast, and the degree of accuracy is high, reduce manual operation, reduce time-consuming, deposit The reading-writing life-span increase of storage media, the beneficial effect that cost reduces.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Reference picture 7, show a kind of dress based on high in the clouds cleaning solid state hard disc data according to an embodiment of the invention The structured flowchart of embodiment is put, the second solid state hard disc data being stored in buffer area, and the 3rd be stored in system area Solid state hard disc data, described device are located at side, can specifically include following module:
Request receiving module 701 is cleared up, the cleaning request clicked on suitable for receiving user on the first predetermined interface location;
Request sending module 702 is cleared up, suitable for the cleaning request is sent into master controller, the master controller foundation The cleaning of solid state hard disc data, generation cleaning result are completed in the cleaning request, and the cleaning result is returned;
Result presentation module 703 is cleared up, is adapted to provide for clearing up showing for result.
In a kind of preferred exemplary of the present invention, the cleaning request includes the store path of solid state hard disc data, institute Stating cleaning request sending module includes:
Request-to-send submodule is cleared up, suitable for the cleaning request is sent into master controller;The master controller is used for Store path according to the solid state hard disc data searches the solid state hard disc data, and the solid state hard disc data found are returned Return;
Solid state hard disc data exhibiting submodule, it is adapted to provide for the first solid state hard disc data, the second solid state hard disc data With showing for the 3rd solid state hard disc data;
Confirm cleaning request receiving submodule, see clearly really suitable for receiving user and being clicked on predetermined second contact surface position Reason is asked, and confirms that clearing up request is sent to the master controller by described, and the master controller is used to confirm clearly according to described The cleaning to the solid state hard disc data, generation cleaning result are completed in reason request, and the cleaning result is returned.
In a kind of preferred exemplary of the present invention, the first solid state hard disc data include being stored in data storage area The one the first solid state hard disc data, the cleaning request also includes the specified format of the first solid state hard disc data for clearance, described The store path that master controller is used in the following way according to the first solid state hard disc data searches the first solid state hard disc number According to:
Form judging submodule, suitable for judging the lattice of file system according to the store path of the first solid state hard disc data Formula;
First kind marker extraction submodule, suitable for being data in the form according to store path judgement file system During memory block, default first kind mark is extracted according to the specified format;
Block group extracting sub-module, suitable for extracting each block group block from the data storage area group;
Data block extracting sub-module, it is not used suitable for having for currently processed block group block group extractions The data block block of mark;
Second Type identifies reading submodule, and Second Type is read suitable for the specified location in the data block block Mark;
Other digital independent submodules, suitable for when first kind mark is identical with the Second Type mark, reading Take other data in the data block block;
Fileinfo judging submodule, suitable for when other described data include end mark, judging what is continuously read Whether the data in one or more data block block have complete fileinfo;
First solid state hard disc data judging submodule, suitable for the one or more data block block continuously read in judgement In data when there is complete fileinfo, then be judged to finding a first solid state hard disc data.
In a kind of preferred exemplary of the present invention, described device also includes:
Next Second Type identifies reading submodule, suitable for being identified in first kind mark with the Second Type When differing, next there is the specified location being not used in the data block block of mark to read Second Type mark.
In a kind of preferred exemplary of the present invention, the default first kind mark generates in the following manner:
Data structure determination sub-module, suitable for according to data structure corresponding to specified format determination;
Coded string searches submodule, suitable for searching the code character of the specified format in the data structure String;
First kind marker extraction submodule, identified suitable for extracting the coded string as the default first kind.
In a kind of preferred exemplary of the present invention, the currently processed block group block group include block pair According to table block bitmap, it is zero that the unused mark, which includes list item value, and the data block extraction module includes:
Block table of comparisons reading submodule, suitable for reading block table of comparisons block bitmap;
Data block block number record submodules, suitable for recording list item value in the block table of comparisons block bitmap It is the number of data block block corresponding to zero;
Data block block extracting sub-modules, suitable for using data block block corresponding to the number retention.
In a kind of preferred exemplary of the present invention, the currently processed block group block group include information section Point table of comparisons inode bitmap, described device also include:
The minimum data block block reading submodules of number, suitable for finding the block table of comparisons block bitmap In each list item value be zero, and when each list item value is zero in described information node table of comparisons inode bitmap, described in reading The minimum data block block of number in block table of comparisons block bitmap;
Initial data reading submodule, suitable for being read using the number in the minimum data block block of the number Initial data;
Next block group handles submodule, if being 00 suitable for the initial data, skips described currently processed Block group block group, handle next block group block group.
In a kind of preferred exemplary of the present invention, if the first solid state hard disc data storage is in the data of discontinuous number When in block block, described device also includes:
Information node inode number reading submodule, suitable for reading described information node table of comparisons inode bitmap The number that middle list item value is information node inode corresponding to zero;
Residual risk extracting sub-module, it is residual suitable for being extracted according to the number from information node form inode table Information is stayed, the residual risk includes the number for being stored with the data block block of the first solid state hard disc data;
Step redirects submodule, suitable for, with the data block block marked is not used with the number, being performed described Specified location in the data block block reads the step of Second Type mark.
In a kind of preferred exemplary of the present invention, the solid state hard disc data include the second solid-state being stored in buffer area Hard disc data, the cleaning request also include the specified format of the second solid state hard disc data for clearance, and the master controller is used for The store path according to the second solid state hard disc data searches the second solid state hard disc data in the following way:
Form judging submodule, suitable for judging the lattice of file system according to the store path of the second solid state hard disc data Formula;
First kind marker extraction submodule, suitable for being caching in the form that file system is judged according to the store path Qu Shi, default first kind mark is extracted according to the specified format;
Cluster extracting sub-module, suitable for cluster of the extraction with unused mark from the buffer area;
Second Type identifies reading submodule, and Second Type mark is read suitable for the specified location in the cluster;
Other digital independent submodules, suitable for when first kind mark is identical with the Second Type mark, reading Take other data in the cluster;
Second solid state hard disc data judging submodule, obtain reduction correctly knot suitable for the data in using the cluster During fruit, it is judged to finding a second solid state hard disc data.
In a kind of preferred exemplary of the present invention, in addition to:
Next Second Type identifies reading submodule, suitable for finding the first kind mark and the Second Type When mark differs, read the specified location in next cluster for having and being not used and marking and read Second Type mark.
In a kind of preferred exemplary of the present invention, the default first kind mark generates in the following manner:
Data structure determination sub-module, suitable for according to data structure corresponding to specified format determination;
Coded string searches submodule, suitable for searching the code character of the specified format in the data structure String;
First kind marker extraction submodule, identified suitable for extracting the coded string as the default first kind.
In a kind of preferred exemplary of the present invention, the buffer area includes file allocation table FAT and data field, the data Area includes cluster, and it is zero that the unused mark, which includes list item value, and the cluster extracting sub-module includes:
File allocation table FAT acquisition submodules, suitable for obtaining file allocation table FAT from the buffer area;
Cluster record sub module, it is cluster number corresponding to zero suitable for recording list item value in the file allocation table FAT;
Cluster extracting sub-module, suitable for using the cluster number extracted in the data field corresponding to cluster.
In a kind of preferred exemplary of the present invention, in addition to:
Sample threshold value determination sub-module, suitable for being identified as zero continuously reading out two or more described Second Types When, the sampling threshold value of sampling Detection is determined according to the specified format;
When secondary sample position calculating sub module, suitable for working as time sample position using the sampling threshold value iterative calculation;
Data judging submodule, suitable for judging whether the data in the sample position are zero;
Data are zero decision sub-module, suitable for when the data on judging the sample position are zero, returning in the cluster In specified location read Second Type mark the step of;
Data are not zero decision sub-module, suitable for when the data on judging the sample position are not zero, returning and reading There is the step of data of same position with the type identification in the cluster.
In a kind of preferred exemplary of the present invention, the specified format of the second solid state hard disc data for clearance includes picture Form.
In a kind of preferred exemplary of the present invention, the solid state hard disc data include the be stored in system area Three solid state hard disc data, the master controller are used for the store path according to the 3rd solid state hard disc data in the following way Search the 3rd solid state hard disc data:
System area positions submodule, suitable for navigating to corresponding system according to the store path of the 3rd solid state hard disc data Unite area;
Tables of data determination sub-module, suitable for the tables of data for determining to specify in system area according to the cleaning request;The number Include data page according to table, the data page has top margin;
Clear area reading submodule, suitable for reading out the clear area in the data page from the top margin;
Tables of data analyzing sub-module, suitable for parsing one of the tables of data from the preset system table of the system area Or multiple fields;
Strong matching characteristic generation submodule, suitable for using one or more of field combinations into strong matching characteristic;
Characteristic searches submodule, suitable for searching the feature matched with the strong matching characteristic in the clear area Data;
3rd solid state hard disc data judging submodule, suitable for judging whether the characteristic is the 3rd solid state hard disc number According to;
3rd solid state hard disc data judging submodule is suitable to when it is the 3rd solid state hard disc data to judge the characteristic, It is judged to finding one article of the 3rd solid state hard disc data.
In a kind of preferred exemplary of the present invention, described device also includes:
Working region reading submodule, suitable for reading out the working region in the data page from the top margin;It is described It is stored with working region and has preserved data;
Weak matching characteristic life generates multiple weak matching characteristics into submodule suitable for having preserved data according to described in.
In a kind of preferred exemplary of the present invention, the 3rd solid state hard disc data judge module includes:
Characteristic matched sub-block, suitable for being matched using the multiple weak matching characteristic with the characteristic;
Number calculating sub module is matched, suitable for calculating the number of the weak matching characteristic matched with the characteristic, and, The sum of weak matching characteristic;
3rd solid state hard disc data judging submodule, the ratio suitable for accounting for the weak matching characteristic sum in the number surpass When crossing default threshold value, it is the 3rd solid state hard disc data to judge the characteristic.
In a kind of preferred exemplary of the present invention, the strong matching characteristic generation submodule includes:
Type judging submodule, suitable for judging the type of one or more of fields respectively;
Strong matching characteristic generation submodule, suitable for being sequentially connected in series the types of one or more of fields into essential characteristic String, using the essential characteristic string as strong matching characteristic.
In a kind of preferred exemplary of the present invention, the weak matching characteristic generation submodule includes:
Data statistics submodule is preserved, suitable for having been protected described in the type statistics according to one or more fields of tables of data The value or length of corresponding one or more fields in deposit data;
Field filter submodule;If it is described preserved corresponding one or more fields in data value it is identical, or, it is right The length for the one or more fields answered is identical, filters out one or more of fields;
Weak matching characteristic determination sub-module, suitable for by the value of one or more of fields and one or more of fields Combination as one or more weak matching characteristics, and/or, by one or more of fields and one or more of fields Length combination as one or more weak matching characteristics.
In a kind of preferred exemplary of the present invention, the master controller is used to confirm to clear up for described in the following way The cleaning to the 3rd solid state hard disc data is completed in request:
Positional information acquisition submodule, suitable for obtaining the positional information of the characteristic storage, the positional information bag Include database file, data page, offset and the length of storage characteristic;
Characteristic positions submodule, suitable for using the database file, data page, offset and length positioning to institute State the position of characteristic storage;
Data zero setting submodule, suitable for by the data zero setting on the position.
In a kind of preferred exemplary of the present invention, the cleaning request includes clearing up object, the tables of data determining module Including:
Table name determination sub-module, suitable for determining system area to be found using the cleaning object, and, the cleaning pair As the table name of specified tables of data;
Tables of data determination sub-module, suitable for tables of data corresponding to being determined according to the table name in the system area.
In a kind of preferred exemplary of the present invention, the 3rd solid state hard disc data judge module includes:
Data span generates submodule, for generating one or more of fields according to the strong matching characteristic Data span;
Data value reading submodule, for reading the data value of one or more fields in the characteristic;
Comparison sub-module, for the data value that one or more of fields are respectively adopted and corresponding data value model Enclose and be compared;
3rd solid state hard disc data determination sub-module, when the data value of one or more of fields meet successively it is described During data span, it is the 3rd solid state hard disc data to judge the characteristic.
In a kind of preferred exemplary of the present invention, the solid state hard disc data include
For device embodiment, because it is substantially similar to embodiment of the method 1,2,3,4,5,6, so the ratio of description Relatively simple, related part illustrates referring to the part of embodiment of the method 1,2,3,4,5,6.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are according to embodiments of the present invention based on high in the clouds cleaning solid state hard disc number to realize According to method and apparatus equipment in some or all parts some or all functions.The present invention is also implemented as using In some or all equipment or program of device for performing method as described herein (for example, computer program and meter Calculation machine program product).Such program for realizing the present invention can store on a computer-readable medium, or can have one The form of individual or multiple signals.Such signal can be downloaded from internet website and obtained, or above be carried in carrier signal For, or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (46)

1. a kind of method based on high in the clouds cleaning solid state hard disc data, methods described include:
Receive the cleaning request that user clicks on the first predetermined interface location;
The cleaning request is sent to master controller, the master controller is used to complete solid state hard disc according to the cleaning request The cleaning of data, generation cleaning result, and the cleaning result is returned;
Showing for cleaning result is provided.
2. the method as described in claim 1, it is characterised in that the cleaning request includes the storage road of solid state hard disc data Footpath, described that the cleaning request is sent into master controller, the master controller completes solid state hard disc according to the cleaning request The cleaning of data, generation cleaning result, and the step of cleaning result return is included:
The cleaning request is sent to master controller;The master controller is used for the storage road according to the solid state hard disc data Solid state hard disc data are searched in footpath, and the solid state hard disc data found are returned;
Showing for the solid state hard disc data is provided;
Receive user and clicked on predetermined second contact surface position and see clearly reason request really, and confirm that cleaning request is sent by described To the master controller, the master controller is used to confirm that cleaning request is completed to the clear of the solid state hard disc data according to described Reason, generation cleaning result, and the cleaning result is returned.
3. the method as described in claim 1, it is characterised in that the solid state hard disc data include being stored in data storage area The first solid state hard disc data, the cleaning request also includes the specified formats of the first solid state hard disc data, the master controller For in the following way according to the first solid-state in the store path searching data memory block of the first solid state hard disc data Hard disc data:
Store path according to the solid state hard disc data judges the form of file system;
When the form for judging the file system for data storage area when, extract the default first kind according to the specified format Mark;
Each block group block group are extracted from the data storage area;
For currently processed block group block group extractions with the data block block that mark is not used;
Specified location in the data block block reads Second Type mark;
When first kind mark is identical with the Second Type mark, other numbers in the data block block are read According to;
When other described data include end mark, the number in one or more data block block that judgement is continuously read According to whether there is complete fileinfo;
If so, then it is judged to finding a first solid state hard disc data.
4. method as claimed in claim 3, it is characterised in that described when first kind mark and the Second Type When identifying identical, after the sub-step for reading other data in the data block block, in addition to:
When first kind mark differs with Second Type mark, then in next number for having and mark being not used Second Type mark is read according to the specified location in block block.
5. the method as described in claim 3 or 4, it is characterised in that the default first kind mark is in the following manner Generation:
According to data structure corresponding to specified format determination;
The coded string of the specified format is searched in the data structure;
The coded string is extracted to identify as the default first kind.
6. method as claimed in claim 5, it is characterised in that the currently processed block group block group include Block table of comparisons block bitmap, it is zero that the unused mark, which includes list item value, described to be directed to currently processed block group Sub-step of the group block group extractions with the data block block that mark is not used includes:
Read block table of comparisons block bitmap;
Record the number that list item value is data block block corresponding to zero in the block table of comparisons block bitmap;
Using data block block corresponding to the number retention.
7. method as claimed in claim 6, it is characterised in that the currently processed block group block group include Information node table of comparisons inode bitmap, have not for currently processed block group block group extractions described Also include after sub-step using the data block block of mark:
When finding that each list item value is zero in the block table of comparisons block bitmap, and the described information node table of comparisons When each list item value is zero in inode bitmap, the data that number is minimum in the block table of comparisons blockbitmap are read Block block;
Initial data in the first data block block is read using the number;
If the initial data is 00, the currently processed block group block group are skipped, handle next area Block group block group.
8. method as claimed in claim 7, it is characterised in that if the solid state hard disc data storage is in the number of discontinuous number During according in block block, the block group block group include information node form inode table, described for working as After sub-step of the block group block group extractions with the data block block that mark is not used of pre-treatment, also wrap Include:
Read the number that list item value is information node inode corresponding to zero in described information node table of comparisons inode bitmap;
Residual risk is extracted from information node form inode table according to the number, the residual risk includes depositing Contain the data block block of solid state hard disc data number;
When the data block block with unused mark is with the number, perform in the data block block Specified location reads the step of Second Type mark.
9. method as claimed in claim 2, it is characterised in that the solid state hard disc data include the be stored in buffer area Two solid state hard disc data, the cleaning request also include the specified format of the second solid state hard disc data, and the master controller is used for The store path according to the second solid state hard disc data searches the solid state hard disc data in buffer area in the following way:
Store path according to the solid state hard disc data judges the form of file system;
When the form for judging the file system for buffer area when, extract default first kind mark according to the specified format Know;
Extraction is with the cluster that mark is not used from the buffer area;
Specified location in the cluster reads Second Type mark;
When first kind mark is identical with the Second Type mark, then other data in the cluster are read;
When obtaining the correct result of reduction using the data in the cluster, it is judged to finding a solid state hard disc data.
10. method as claimed in claim 9, it is characterised in that also include:
When the discovery first kind mark differs with Second Type mark, then read next with unused mark Specified location in the cluster of note reads Second Type mark.
11. the method as described in claim 9 or 10, it is characterised in that the default first kind mark is by with lower section Formula generates:
According to data structure corresponding to specified format determination;
The coded string of the specified format is searched in the data structure;
The coded string is extracted to identify as the default first kind.
12. method as claimed in claim 11, it is characterised in that the buffer area includes file allocation table FAT and data field, The data field includes cluster, and it is zero that the unused mark, which includes list item value, and the extraction from the buffer area is not with making Included with the sub-step of the cluster of mark:
File allocation table FAT is obtained from the buffer area;
It is cluster number corresponding to zero to record list item value in the file allocation table FAT;
Cluster corresponding to being extracted using the cluster number in the data field.
13. method as claimed in claim 12, it is characterised in that read the second class in the specified location in the cluster After the sub-step of type mark, in addition to:
When continuously reading out two or more described Second Types and being identified as zero, determine to sample according to the specified format The sampling threshold value of detection;
Using the sampling threshold value iterative calculation when time sample position;
Judge whether the data in the sample position are zero;
If the data in the sample position are zero, the step that the specified location in the cluster reads Second Type mark is returned Suddenly;
If the data in the sample position are not zero, return to read in the cluster has same position with the type identification Data sub-step.
14. the method as described in claim 8 or 13, it is characterised in that the specified format includes picture format.
15. method as claimed in claim 2, it is characterised in that the solid state hard disc data include being stored in system The 3rd solid state hard disc data in area, the master controller are used for the store path according to privacy record in the following way Search the privacy record in system area:
Store path according to privacy record navigates to corresponding system area;
The tables of data for determining to specify in system area according to the cleaning request;The tables of data includes data page, the data Page has top margin;
The clear area in the data page is read out from the top margin;
One or more fields of the tables of data are parsed in the system table preset from the system area;
Using one or more of field combinations into strong matching characteristic;
The characteristic matched with the strong matching characteristic is searched in the clear area;
Judge whether the characteristic is privacy record;
If so, then it is judged to finding a privacy record.
16. method as claimed in claim 15, it is characterised in that judge the characteristic whether be privacy record step Before rapid, methods described also includes:
The working region in the data page is read out from the top margin;It is stored with the working region and has preserved data;
The one or more weak matching characteristics of data generation have been preserved according to described in.
17. method as claimed in claim 16, it is characterised in that described to judge whether the characteristic is what privacy recorded Step includes:
Matched using one or more of weak matching characteristics with the characteristic;
The number of the weak matching characteristic matched with the characteristic is calculated, and, the sum of weak matching characteristic;
When the ratio that the number accounts for the weak matching characteristic sum exceedes default threshold value, it is hidden to judge the characteristic Private record.
18. the method as described in claim 15 or 17, it is characterised in that described to generate strong matching characteristic according to the field Step includes:
The type of one or more of fields is judged respectively;
The type of one or more of fields is sequentially connected in series into essential characteristic string, the essential characteristic string is special as strong matching Sign.
19. method as claimed in claim 15, it is characterised in that it is one or more that data generation has been preserved described in the foundation The sub-step of weak matching characteristic includes:
Corresponding one or more fields in data have been preserved according to described in the type statistics of one or more fields of tables of data Value or length;
If it is described preserved corresponding one or more fields in data value it is identical, or, corresponding one or more fields Length it is identical, filter out one or more of fields;
The combination of one or more of fields and the value of one or more of fields is special as one or more weak matchings Sign, and/or, using the combination of one or more of fields and the length of one or more of fields as one or more weak Matching characteristic.
20. method as claimed in claim 19, it is characterised in that the master controller is used in the following way for described Confirm that the cleaning to privacy record is completed in cleaning request:
Obtain the positional information of characteristic storage, the positional information include storage characteristic database file, Data page, offset and length;
The position stored using the database file, data page, offset and length positioning to the characteristic;
By the data zero setting on the position.
21. method as claimed in claim 20, it is characterised in that the cleaning request includes clearing up object, described according to institute Stating the step of cleaning request determines corresponding tables of data in system area includes:
System area to be found is determined using the cleaning object, and, the table name for the tables of data that the cleaning object is specified;
Tables of data corresponding to being determined according to the table name in the system area.
22. method as claimed in claim 15, it is characterised in that described to judge whether the characteristic is what privacy recorded Step includes:
The data span of one or more of fields is generated according to the strong matching characteristic;
Read the data value of one or more fields in the characteristic;
The data value is respectively adopted compared with corresponding data span;
When the data value of one or more of fields meets the data span successively, the characteristic is judged It is privacy record.
23. the method as described in claim 1, it is characterised in that the solid state hard disc data include the photograph not deleted thoroughly Piece, short message, address list, message registration, chat record, recording, video.
24. a kind of device based on high in the clouds cleaning solid state hard disc data, described device include:
Request receiving module is cleared up, the cleaning request clicked on suitable for receiving user on the first predetermined interface location;
Request sending module is cleared up, suitable for the cleaning request is sent into master controller, the master controller is according to described clear The cleaning of solid state hard disc data, generation cleaning result are completed in reason request, and the cleaning result is returned;
Result presentation module is cleared up, is adapted to provide for clearing up showing for result.
25. device as claimed in claim 24, it is characterised in that the cleaning request includes the storage of solid state hard disc data Path, the cleaning request sending module include:
Request-to-send submodule is cleared up, suitable for the cleaning request is sent into master controller;The master controller is used for foundation The store path of the solid state hard disc data searches the solid state hard disc data, and the solid state hard disc data found are returned;
Solid state hard disc data exhibiting submodule, it is adapted to provide for the first solid state hard disc data, the second solid state hard disc data and Three solid state hard disc data show;
Confirm cleaning request receiving submodule, see clearly that reason please really suitable for receiving user and being clicked on predetermined second contact surface position Ask, and confirm that clearing up request is sent to the master controller by described, the master controller is used to confirm that cleaning please according to described The cleaning completed to the solid state hard disc data, generation cleaning result are asked, and the cleaning result is returned.
26. device as claimed in claim 25, it is characterised in that the solid state hard disc data include being stored in data storage area In the first solid state hard disc data, it is described cleaning request, include treat based on high in the clouds clear up solid state hard disc data specified format, The store path that the master controller is used in the following way according to the solid state hard disc data searches solid state hard disc data:
Form judging submodule, suitable for judging the form of file system according to the store path of the solid state hard disc data;
First kind marker extraction submodule, suitable for being data storage in the form according to store path judgement file system Qu Shi, default first kind mark is extracted according to the specified format;
Block group extracting sub-module, suitable for extracting each block group block group from the data storage area;
Data block extracting sub-module, mark is not used suitable for having for currently processed block group block group extractions Data block block;
Second Type identifies reading submodule, and Second Type mark is read suitable for the specified location in the data block block;
Other digital independent submodules, suitable for when first kind mark is identical with the Second Type mark, reading institute State other data in data block block;
Fileinfo judging submodule, suitable for when other described data include end mark, judging one continuously read Or whether the data in multiple data block block have complete fileinfo;
Solid state hard disc data judging submodule, suitable for the data in the one or more data block block for judging continuously to read During with complete fileinfo, then it is judged to finding a solid state hard disc data.
27. device as claimed in claim 26, it is characterised in that described device also includes:
Next Second Type identifies reading submodule, suitable for identifying not phase with the Second Type in first kind mark Meanwhile next there is the specified location being not used in the data block block of mark to read Second Type mark.
28. the device as described in claim 26 or 27, it is characterised in that the default first kind mark is by with lower section Formula generates:
Data structure determination sub-module, suitable for according to data structure corresponding to specified format determination;
Coded string searches submodule, suitable for searching the coded string of the specified format in the data structure;
First kind marker extraction submodule, identified suitable for extracting the coded string as the default first kind.
29. device as claimed in claim 28, it is characterised in that the currently processed block group block group bags Block table of comparisons block bitmap are included, it is zero that the unused mark, which includes list item value, and the data block extraction module includes:
Block table of comparisons reading submodule, suitable for reading block table of comparisons block bitmap;
Data block block number record submodules, it is zero suitable for recording list item value in the block table of comparisons block bitmap Corresponding data block block number;
Data block block extracting sub-modules, suitable for using data block block corresponding to the number retention.
30. device as claimed in claim 29, it is characterised in that the currently processed block group block group bags Information node table of comparisons inode bitmap are included, described device also includes:
The minimum data block block reading submodules of number, suitable for each in the block table of comparisons block bitmap are found Individual list item value is zero, and when each list item value is zero in described information node table of comparisons inode bitmap, reads the block The minimum data block block of number in table of comparisons block bitmap;
Initial data reading submodule, suitable for reading the starting in the minimum data block block of the number using the number Data;
Next block group handles submodule, if being 00 suitable for the initial data, skips the currently processed area Block group block group, handle next block group block group.
31. device as claimed in claim 30, it is characterised in that if the solid state hard disc data storage is in discontinuous number When in data block block, described device also includes:
Information node inode number reading submodule, suitable for reading table in described information node table of comparisons inode bitmap Entry value is the number of information node inode corresponding to zero;
Residual risk extracting sub-module, suitable for extracting residual letter from information node form inode table according to the number Breath, the residual risk include the number for being stored with the data block block of the solid state hard disc data;
Step redirects submodule, suitable for, with the data block block marked is not used with the number, being performed described in institute State the step of specified location in data block block reads Second Type mark.
32. device as claimed in claim 25, it is characterised in that the solid state hard disc data include being stored in buffer area Second solid state hard disc data, the cleaning request also includes treating the specified format based on high in the clouds cleaning solid state hard disc data, described The store path that master controller is used in the following way according to the solid state hard disc data searches solid state hard disc data:
Form judging submodule, suitable for judging the form of file system according to the store path of the solid state hard disc data;
First kind marker extraction submodule, suitable for being buffer area in the form according to store path judgement file system When, extract default first kind mark according to the specified format;
Cluster extracting sub-module, suitable for cluster of the extraction with unused mark from the buffer area;
Second Type identifies reading submodule, and Second Type mark is read suitable for the specified location in the cluster;
Other digital independent submodules, suitable for when first kind mark is identical with the Second Type mark, reading institute State other data in cluster;
Solid state hard disc data judging submodule, suitable for when the data in using the cluster obtain and reduce correct result, judging To find a solid state hard disc data.
33. device as claimed in claim 32, it is characterised in that also include:
Next Second Type identifies reading submodule, suitable for finding the first kind mark and Second Type mark When differing, next specified location reading Second Type mark for having and being not used in the cluster of mark is read.
34. the device as described in claim 32 or 33, it is characterised in that the default first kind mark is by with lower section Formula generates:
Data structure determination sub-module, suitable for according to data structure corresponding to specified format determination;
Coded string searches submodule, suitable for searching the coded string of the specified format in the data structure;
First kind marker extraction submodule, identified suitable for extracting the coded string as the default first kind.
35. device as claimed in claim 34, it is characterised in that the buffer area includes file allocation table FAT and data field, The data field includes cluster, and it is zero that the unused mark, which includes list item value, and the cluster extracting sub-module includes:
File allocation table FA T acquisition submodules, suitable for obtaining file allocation table FAT from the buffer area;
Cluster record sub module, it is cluster number corresponding to zero suitable for recording list item value in the file allocation table FAT;
Cluster extracting sub-module, suitable for using the cluster number extracted in the data field corresponding to cluster.
36. device as claimed in claim 35, it is characterised in that also include:
Sample threshold value determination sub-module, suitable for when continuously reading out two or more described Second Types and being identified as zero, The sampling threshold value of sampling Detection is determined according to the specified format;
When secondary sample position calculating sub module, suitable for working as time sample position using the sampling threshold value iterative calculation;
Data judging submodule, suitable for judging whether the data in the sample position are zero;
Data are zero decision sub-module, suitable for when the data on judging the sample position are zero, returning in the cluster Specified location reads the step of Second Type mark;
Data are not zero decision sub-module, suitable for when the data on judging the sample position are not zero, returning described in reading There is the step of data of same position with the type identification in cluster.
37. the device as described in claim 31 or 36, it is characterised in that the specified format includes picture format.
38. device as claimed in claim 25, it is characterised in that the solid state hard disc data include being stored in system The 3rd solid state hard disc data in area, the master controller are used for the store path according to privacy record in the following way Search privacy record:
System area positions submodule, and the store path suitable for being recorded according to the privacy navigates to corresponding system area;
Tables of data determination sub-module, suitable for the tables of data for determining to specify in system area according to the cleaning request;The tables of data Include data page, the data page has top margin;
Clear area reading submodule, suitable for reading out the clear area in the data page from the top margin;
Tables of data analyzing sub-module, suitable for parsing one or more of the tables of data from the preset system table of the system area Individual field;
Strong matching characteristic generation submodule, suitable for using one or more of field combinations into strong matching characteristic;
Characteristic searches submodule, suitable for searching the characteristic matched with the strong matching characteristic in the clear area According to;
Privacy records judging submodule, suitable for judging whether the characteristic is privacy record;
Privacy record decision sub-module is suitable to, when judging that the characteristic records for privacy, be judged to finding a privacy Record.
39. device as claimed in claim 38, it is characterised in that described device also includes:
Working region reading submodule, suitable for reading out the working region in the data page from the top margin;The work It is stored with region and has preserved data;
Weak matching characteristic life generates multiple weak matching characteristics into module suitable for having preserved data according to described in.
40. device as claimed in claim 39, it is characterised in that the privacy record judge module includes:
Characteristic matched sub-block, suitable for being matched using the multiple weak matching characteristic with the characteristic;
Number calculating sub module is matched, suitable for calculating the number of the weak matching characteristic matched with the characteristic, and, weak Sum with feature;
Privacy records decision sub-module, and the ratio suitable for accounting for the weak matching characteristic sum in the number exceedes default threshold value When, judge that the characteristic records for privacy.
41. the device as described in claim 39 or 40, it is characterised in that the strong matching characteristic generation submodule includes:
Type judging submodule, suitable for judging the type of one or more of fields respectively;
Strong matching characteristic generation submodule, the type suitable for being sequentially connected in series one or more of fields are incited somebody to action into essential characteristic string The essential characteristic string is as strong matching characteristic.
42. device as claimed in claim 41, it is characterised in that the weak matching characteristic generation submodule includes:
Data statistics submodule is preserved, suitable for having preserved number described in the type statistics according to one or more fields of tables of data The value or length of corresponding one or more fields in;
Field filter submodule;If it is described preserved corresponding one or more fields in data value it is identical, or, it is corresponding The length of one or more fields is identical, filters out one or more of fields;
Weak matching characteristic determination sub-module, suitable for by the group of one or more of fields and the value of one or more of fields Cooperate as one or more weak matching characteristics, and/or, by one or more of fields and the length of one or more of fields The combination of degree is as one or more weak matching characteristics.
43. device as claimed in claim 42, it is characterised in that the master controller is used in the following way for described Confirm that the cleaning to privacy record is completed in cleaning request:
Positional information acquisition submodule, suitable for obtaining the positional information of the characteristic storage, the positional information includes depositing Store up database file, data page, offset and the length of characteristic;
Characteristic positions submodule, suitable for using the database file, data page, offset and length positioning to the spy Levy the position of data storage;
Data zero setting submodule, suitable for by the data zero setting on the position.
44. device as claimed in claim 43, it is characterised in that the cleaning request includes clearing up object, the tables of data Determining module includes:
Table name determination sub-module, suitable for determining system area to be found using the cleaning object, and, the cleaning object refers to The table name of fixed tables of data;
Tables of data determination sub-module, suitable for tables of data corresponding to being determined according to the table name in the system area.
45. device as claimed in claim 44, it is characterised in that the privacy record judge module includes:
Data span generates submodule, for generating the data of one or more of fields according to the strong matching characteristic Span;
Data value reading submodule, for reading the data value of one or more fields in the characteristic;
Comparison sub-module, the data value for one or more of fields to be respectively adopted are entered with corresponding data span Row compares;
Privacy records determination sub-module, when the data value of one or more of fields meets the data span successively When, it is privacy record to judge the characteristic.
46. device as claimed in claim 24, it is characterised in that the solid state hard disc data include the photograph not deleted thoroughly Piece, short message, address list, message registration, chat record, recording, video.
CN201610564351.4A 2016-07-13 2016-07-13 A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data Pending CN107621924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610564351.4A CN107621924A (en) 2016-07-13 2016-07-13 A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610564351.4A CN107621924A (en) 2016-07-13 2016-07-13 A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data

Publications (1)

Publication Number Publication Date
CN107621924A true CN107621924A (en) 2018-01-23

Family

ID=61087883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610564351.4A Pending CN107621924A (en) 2016-07-13 2016-07-13 A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data

Country Status (1)

Country Link
CN (1) CN107621924A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221772A (en) * 2019-04-25 2019-09-10 深圳市金泰克半导体有限公司 A kind of solid state hard disk working method, system, computer equipment and storage medium
CN112181790A (en) * 2020-09-15 2021-01-05 苏州浪潮智能科技有限公司 Capacity statistical method and system of storage equipment and related components
CN116340055A (en) * 2023-03-28 2023-06-27 上海威固信息技术股份有限公司 Data recovery method and system for solid state disk

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221772A (en) * 2019-04-25 2019-09-10 深圳市金泰克半导体有限公司 A kind of solid state hard disk working method, system, computer equipment and storage medium
CN112181790A (en) * 2020-09-15 2021-01-05 苏州浪潮智能科技有限公司 Capacity statistical method and system of storage equipment and related components
CN116340055A (en) * 2023-03-28 2023-06-27 上海威固信息技术股份有限公司 Data recovery method and system for solid state disk
CN116340055B (en) * 2023-03-28 2024-03-12 上海威固信息技术股份有限公司 Data recovery method and system for solid state disk

Similar Documents

Publication Publication Date Title
CN104090922B (en) A kind of method and apparatus for clearing up private data
US11068455B2 (en) Mapper tree with super leaf nodes
US11249664B2 (en) File system metadata decoding for optimizing flash translation layer operations
KR101767710B1 (en) Card-based management of discardable files
WO2016086819A1 (en) Method and apparatus for writing data into shingled magnetic record smr hard disk
CN110109910A (en) Data processing method and system, electronic equipment and computer readable storage medium
US9406018B2 (en) Systems and methods for semantic data integration
CN103902653A (en) Method and device for creating data warehouse table blood relationship graph
CN104508666A (en) Cataloging backup data
US10963454B2 (en) System and method for bulk removal of records in a database
JP2012089094A5 (en)
CN106155832B (en) A kind of method, apparatus and Android device that data are restored
CN107621924A (en) A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data
CN111125298A (en) Method, equipment and storage medium for reconstructing NTFS file directory tree
US7653663B1 (en) Guaranteeing the authenticity of the data stored in the archive storage
US20200133787A1 (en) Method, electronic device and computer readable medium of file management
Min et al. A system framework for map air update navigation service
Li et al. Database management strategy and recovery methods of Android
CN102609531B (en) Method for pegging files according to keywords
CN104090924B (en) The method for cleaning and device of a kind of private data
CN110352410A (en) Track the access module and preextraction index node of index node
RU2007105891A (en) MEANS OF STORING INFORMATION FOR STORING METADATA SUPPORTING MANY LANGUAGES, SYSTEMS AND METHODS FOR PROCESSING METADATA
CN102253938B (en) Method and device for writing and restoring file
CN107526795B (en) Knowledge base construction method and device, storage medium and computing equipment
CN104699688A (en) File searching method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180123