CN108962321A - A kind of method and device for wiping storage chip - Google Patents

A kind of method and device for wiping storage chip Download PDF

Info

Publication number
CN108962321A
CN108962321A CN201710340649.1A CN201710340649A CN108962321A CN 108962321 A CN108962321 A CN 108962321A CN 201710340649 A CN201710340649 A CN 201710340649A CN 108962321 A CN108962321 A CN 108962321A
Authority
CN
China
Prior art keywords
block
current block
storage chip
overlapping
erasing
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
CN201710340649.1A
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 CN201710340649.1A priority Critical patent/CN108962321A/en
Publication of CN108962321A publication Critical patent/CN108962321A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • G11C16/14Circuits for erasing electrically, e.g. erase voltage switching circuits
    • G11C16/16Circuits for erasing electrically, e.g. erase voltage switching circuits for erasing blocks, e.g. arrays, words, groups

Landscapes

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

Abstract

The invention discloses a kind of method and devices for wiping storage chip, wherein the described method includes: obtaining storage chip current block and the block information of its next block when needing to execute erasing operation to storage chip current block;According to the block information, judge between current block and its next block with the presence or absence of overlapping block;According to judging result, the erasing operation for being directed to storage chip current block is determined.Through the invention, during wiping storage chip, can effective protection storage chip block information, and then protect the data safety of user.

Description

A kind of method and device for wiping storage chip
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for wiping storage chip.
Background technique
With the progress in epoch and popularizing for computer application, people are more and more frequent to the use of computer equipment.? In daily use, user is frequently necessary to for a large amount of data being stored in personal computer, meanwhile, user is also possible to be frequently necessary to Delete operation is carried out to the file comprising personal data.But the general delete operation that user does only is put files into back Station is received, then empties recycle bin, or be not put into recycle bin and directly delete, for example use in Windows operating system Shift+delete Macintosh deletes file.
However, these delete operations that user does, are mapped to system level, such system is often completed by operating system Column movement: then the deletion identifier in main file table to file increase by one sets the data area where this file Being set to can write state.In this way, user just sees in human-computer interaction interface, such as in the resource manager of Windows operating system Less than the information of this document, here it is the processes generally deleted file.And in fact, as physical storage medium Storage chip on, the file information and data content of this document are still maintain, thus to being restored original number when necessary According to providing possibility, meanwhile, also hidden danger is left to user data leakage.
Due to reason mentioned above, user occasionally wants to the data that complete deletion needs to delete, and makes deleted data With expendable characteristic.At this point, user, which also will use one kind, can wipe answering for storage chip in addition to general delete operation With the data deleted being needed to thoroughly remove, and be resumed deleted data can not, so that reduce user data leakage can It can property.But in previous erasing storage chip application process, it sometimes appear that chip region lost block, leads to user data The case where loss, compromises the data safety of user.
It to be that in conclusion there is an urgent need to the technical issues of those skilled in the art's solution, carry out erasing in user and deposit When storing up chip operation, how a kind of tool of safety erasing storage chip is provided, makes user in the mistake for executing erasing storage chip Cheng Zhong avoids chip region lost block, and then avoids user data loss.
Summary of the invention
The present invention provides a kind of method and devices for wiping storage chip, can be in the process for executing storage chip erasing In, effective protection storage chip block information, and then protect the data safety of user.
The present invention provides following schemes:
A method of erasing storage chip, comprising:
When needing to execute erasing operation to storage chip current block, storage chip current block and its next block are obtained Block information;
According to the block information, judge between current block and its next block with the presence or absence of overlapping block;
According to judging result, the erasing operation for being directed to storage chip current block is determined.
Wherein, the block information of the acquisition storage chip current block and its next block includes:
Obtain the physical sector number of the end sector where current block and the physics fan of the initial sector where next block Area code;
It is described according to the block information, judge include: with the presence or absence of overlapping block between current block and its next block
The initial sector whether physical sector number of the end sector where current block is greater than where its next block judged Physical sector number, if it is, there are overlapping blocks between current block and its next block.
Wherein, described according to judging result, determine that the erasing operation for storage chip current block includes:
If between current block and next block, there are overlapping blocks, it is determined that overlapping between current block and next block Region;
When executing erasing operation to current block, the overlapping region is skipped, only wipes and removes the overlay region in current block Region other than domain.
Wherein, described according to judging result, determine that the erasing operation for storage chip current block includes:
If there are overlapping blocks between current block and next block, current block is skipped, only in addition to current block Other blocks carry out erasing operation.
Wherein, the erasing operation to storage chip current block includes:
When needing to carry out erasing operation to storage chip current block, by implementing block data migration into erasing region, To wipe storage chip parallel.
A kind of device for wiping storage chip, comprising:
Block information acquiring unit, for obtaining storage chip when needing to execute erasing operation to storage chip current block The block information of current block and its next block;
Judging unit, for according to the block information, judging between current block and its next block with the presence or absence of block weight It is folded;
Unit is wiped, for determining the erasing operation for being directed to storage chip current block according to judging result.
Wherein, the block information acquiring unit is used for:
Obtain the physical sector number of the end sector where current block and the physics fan of the initial sector where next block Area code;
The judging unit is specifically used for:
The initial sector whether physical sector number of the end sector where current block is greater than where its next block judged Physical sector number, if it is, there are overlapping blocks between current block and its next block.
Wherein, the erasing unit includes:
Overlapping region determines subelement, for, there are when overlapping block, proparea to be worked as in determination between current block and next block Overlapping region between block and next block;
First deletes subelement, and for skipping the overlapping region when executing erasing operation to current block, only erasing is current Region in block in addition to the overlapping region.
Wherein, the erasing unit includes:
Second deletes subelement, for, there are when overlapping block, skipping current block, only between current block and next block Erasing operation is carried out to other blocks in addition to current block.
Wherein, the erasing unit is specifically used for:
When needing to carry out erasing operation to storage chip current block, by implementing block data migration into erasing region, To wipe storage chip parallel.
The specific embodiment provided according to the present invention, the invention discloses following technical effects:
By the invention it is possible to be first determined whether between storage chip block before executing specific storage chip erasing operation The phenomenon that with the presence or absence of overlapping block, and according to judging result, determine the erasing operation for being directed to storage chip current block.Cause This, during wiping storage chip, can effective protection storage chip block information, and then the data of user is protected to pacify Entirely.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to what the present invention protected Range.
Firstly the need of explanation, erasing " indicate that user needs to wipe specified number from storage medium in the present embodiment Accordingly and user modifies different editions data caused by specified data, in specific implementation, can be chosen whether to need by user Safe erasing is carried out to data, and if user does not select, it can directly be defaulted as common deletion in the prior art;It needs It is noted that " deletion " mentioned in the embodiment of the present invention is the operation for user level, and described in the embodiment of the present invention Erasing be storage medium level operation, user thinks deleted data, actually it is possible that also depositing on a storage medium (being not carried out erasing).
In the embodiment of the present invention, generally for demands such as garbage reclamations, the data that a certain logical address is written can stored In the process there is a situation where moving on other physical address and logical address is constant, and, the modified data write-in of user Corresponded in storage unit to other physical address and the constant situation of logical address, therefore, it may appear that a certain data or data Different editions have the case where storage on multiple physical address, in order to ensure information security, need all physical address The data stored in corresponding storage unit are all wiped;Therefore, need to safeguard a data storage in the embodiment of the present invention in advance The mapping table of same logical address and all physical address for being stored with the data and data legacy version.The present invention is real Applying in example can be a range of physical addresses, the physical address of acquisition to wipe data physical address obtained safely In corresponding storage unit, may include valid data, need before wiping block to valid data therein into Row migration, concrete operations, which can be, moves active page in block in the storage unit of other physical address;The present invention is real Applying storage unit in example indicates that data in storage medium erasing unit or reading unit, size can define according to the actual situation, The embodiment of the present invention is with no restrictions.
It is hard disk that the main storage equipment of information is stored in computer, but hard disk cannot be used directly, it is necessary to hard Disk is split, the hard disk areas that one piece of one be divided into piece, and this storage chip region is known as storage chip block.It is passing In the storage chip management of system, a hard disk is divided into two major classes block: main block and extension block.Main block is can to install Operating system is able to carry out the block of computer starting.Main block is independent and hard disk first block, is actually answered C disk seen in is usually exactly main block.Can only at most there are 4 main blocks in a hard disk.If on a hard disk If needing the storage chip piecemeal more than 4 or more, then just needing using extension block.If using extension block, It at most can only 3 main blocks and 1 extension block on so physical hard disk.Extension block cannot be used directly, it is necessary By being partitioned into logical blocks (such as D disk, E disk, F disk etc.) one by one for the second time, then just can be used, I.e., it is possible to which file is stored in certain logical blocks, when needing to check this document, looked under the corresponding drive of the logical blocks of arriving It looks for.
Wherein, in 0 sector, 0 magnetic track of storage chip there are block table, each main block is marked in the block table Initial address, end address, and the block informations such as initial address of extension block.The original position of each main block is protected Have DBR(and generally occupy 63 sectors, be certainly also likely to be other numbers) and MFT(Master File Table, the main body of a court verdict Part table) or FAT(File Allocation Table, file configuration table) file table etc., if these data are destroyed, meeting Cause corresponding main block that can not open.
In addition, extension block each logical blocks by block information section (generally comprise block table and main file table etc., What the total sector number of storage chip that this part occupies was usually fixed, such as occupy 63 sectors altogether in certain system) sum number It is formed according to section two parts, wherein block table is usually located at the initial position of each logical blocks, for saving current logic block Block information and next block block information, data segment is for saving specific data.Wherein first logical blocks Initial address be to extend the initial address of block, other subsequent block informations can thus address and the sector of each block Number is occupied to push away.Logical blocks are that chain sheet form is stored in storage chip, if hard disk is lost block table, data are with regard to nothing Method reads and writees in order, leads to not operate.
And the present inventor has found in the implementation of the present invention, why using storage chip eraser to storage core When data in piece are wiped, it may appear that the phenomenon that block is lost, a kind of possible reason is that the block of storage chip Between the phenomenon that there are overlapping blocks.So-called overlapping block refers to the block table of a certain logical blocks (for example, B block), write-in Into the data segment of earlier logic block (for example, A block), once at this point, A block data is fully written, then it will necessarily be the area B The block table of block is to covering.As it was noted above, since logical blocks are that chain sheet form is stored in storage chip, when front block It loses, subsequent block is by whole loss, and therefore, the phenomenon that this overlapping block will cause the loss of logical blocks, Jin Erzao At the loss of user data.The volume of especially present game and audio/video file etc. is increasing, a storage chip block warp It is often fully written, in this way, overlapping block once occurs, then the case where block loss will be more and more.For example, first logic area The block table of block be stored in the front main block (initial position of i.e. first logical blocks be less than the last one main block End position), such block will be overlapped, when the last one main block is write it is full after, the block table of first logical blocks is just It can be capped, such first logical blocks will lose.And second is had recorded in the block table of first logical blocks The start information of logical blocks, therefore, after first logical blocks is lost, second logical blocks is also lost therewith, with this Analogize, as long as first logical blocks are lost, subsequent logical blocks are by whole loss.
The reason of as overlapping block is caused, one of which may be: hard disk after a period of use, system is increasingly Slowly, unavoidable at this time to reset system, and it is limited to the complexity and time-consuming of hard disk refitting, GHOST has done system increasingly It is universal.So-called GHOST, actually a kind of hard disk backup restore tool, it takes the side of mirror image system block or file Formula backup-and-restore data.But it due to present online various forms of GHOST softwares and system image file, does not advise very much Model brings risk to custom system.One of risk is exactly the problem of causing overlapping block, that is, GHOST included area There is conflict between block message and the block information of original subscriber, to cause overlapping block.In addition, some is to have used BUG Block software, it is also possible to cause the overlapping of block.
On the above analysis foundation, the embodiment of the invention provides a kind of methods for wiping storage chip should referring to Fig. 1 Method the following steps are included:
S101: when need to storage chip current block execute erasing operation when, obtain storage chip current block and its under The block information of one block;
S102: according to the block information, judge between current block and its next block with the presence or absence of overlapping block;
In practical applications, operation can be manually booted according to user, to determine the need for removing storage chip executing wiping Except operation.For example, when user needs to execute erasing operation to certain storage chip block, so that it may start storage chip erasing work Tool, and indicate that it executes erasing operation to the specified storage chip block, at this point, being equivalent to need to wipe the onblock executing Except operation.Certainly, user, which also can choose, wipes multiple blocks, certainly, in specific implementation, when user's selection is multiple When block carries out erasing operation, the subtask of the erasing operation to single storage chip block can also be broken down into.Therefore, this is walked Needing to execute erasing operation to storage chip current block and include described in rapid: user selects single storage chip block, Issue erasing instruction;Or user selects multiple blocks to issue erasing instructions, be thus decomposed into single storage chip block into Multiple subtasks of row erasing operation.
It should be noted that after due to storage chip application extension block techniques, under block determined situation, Each main block and extension that the physical memory chips are saved in the block table of its 0 magnetic track, 0 sector of physical memory chips Therefore the address of block and the number of sectors of occupancy by reading the information of 0 magnetic track of physical memory chips, 0 sector, can obtain It gets the address of main block and extends the initial address of block.Therefore, it is needing to obtain main block and is extending the block of block When information, so that it may be obtained from the block table of 0 magnetic track of storage chip, 0 sector.
Meanwhile the initial address for extending block is equivalent to the initial address of first logical blocks, and first logic The block table of block is just stored in the initial sector of first logical blocks, accordingly, it is possible to obtain first logical blocks Block table, and get block information therein, the initial address of other subsequent each logical blocks can first logic The sector of each block recorded in the initial address and its block table of block occupies the parameters such as number and pushes away.Need exist for explanation It is, as it was noted above, also remembering due to being the block information for not only describing current block in the block table of each logical blocks The block information of next block is carried, therefore, according to conventional understanding, in the block for needing to obtain storage chip logical blocks It when information, can not only obtain, but also can be obtained from the block table of a upper block (certainly, from the block table of the block itself Except first logical blocks).
But in the logical blocks of extension block, there is EBR in the starting position sector of each logical blocks (Extended Boot Record).EBR and MBR is different, it does not have guidance code, but saves two block tables: first A block table is current block except this block DBR(DBR generally occupies 63 sectors, also have 2048 or other values) except data field Initial sector and occupancy sector number;Second block table is the initial sector number of next block and the sector number of occupancy (including DBR and data field).
It again include two block tables (if there are three more than logical blocks): first area in the initial position of next block Block table has recorded the sector number of the initial sector of data field and occupancy in addition to this block DBR, has recorded in second block table Third extends the initial sector of block and the sector number of occupancy.
And so on, the block table in logical blocks is saved with chain sheet form.The initial address of logical blocks is practical It can be obtained from the block table of a logical blocks thereon.
For example, the initial sector of first logical blocks A takes the initial sector of logical blocks place extension block, it End position is that initial sector adds its occupied sector number.The initial address of second logical blocks B takes in logical blocks A Block table in the initial address of second block list item record and the sector number of occupancy.Subsequent certain logical blocks Y occupies fan The judgment basis in area: with the initial sector of second block list item record and occupancy in the block table in the logical blocks X of front Sector number subject to.
When the initial sector position of a certain logical blocks A is greater than logic area behind it plus its occupied sector number Block B(A and B it is same extension block in) initial sector where position, will result in overlapping block.
Such as: A logical blocks initial sector is 1000 sectors, it occupies 2000 sectors, and B logic block initial sector exists 2920 sectors occupy 1000 sectors.Terminating sector in this way in A logical blocks should be 3000 sectors, and logical blocks B is originated Sector is that the end sector of 2920, A starts sector greater than B, they share the overlapping of 80 sectors.It may note in this 80 sectors Record the block table of B block, DBR and some other data (might have MFT, in FAT format, might have FAT in NTFS Table).When A logical blocks are write it is full after, data will be written in this 80 sectors, then, block table, DBR in B block and other Data will be destroyed, and cause B block and its subsequent block all to be lost, so that the data on these blocks be caused all to lose It loses, is caused damages with user.
Therefore, available to work as specifically when obtaining the block information of storage chip current block and its next block The physical sector number of end sector where preceding block and the physical sector number of the initial sector where next block;In this way, The starting that whether can be greater than by judging the physical sector number of the end sector where current block where its next block The physical sector number of sector, if it is, there are overlapping blocks between current block and its next block.
Specifically, the acquisition is deposited if current block and its next block are when extending the logical blocks in block The block information of storage chip current block and its next block includes: to obtain the first logical blocks and the in the following manner The block information of two logical blocks: according to the block information marked in the block table of a upper block for first logical blocks, Determine the physical sector number where the end position of first logical blocks;According in the block table of first logical blocks The block information of label determines the physical sector number where the initial position of second logical blocks;Then, judge described Whether the physical sector number where the end position of one logical blocks is greater than where the initial position of second logical blocks Physical sector number, if it is, there are overlapping blocks between first logical blocks and second logical blocks.
Wherein, according to the block information recorded in the block table of a upper block for the first logical blocks, described first is determined When physical sector number where the end position of logical blocks, it is specifically as follows: inquiry mono- area the first logical blocks Shang The block table of block therefrom obtains the initial sector deviant of the first logical blocks and total sector number of occupancy;According to this first Total sector number that the initial sector deviant of logical blocks and the logical blocks occupy, obtains the end of first logic sector Sector offset value;According to the end sector offset value of first logic sector and extend block initial address obtain this first The physical sector number where end position where logical blocks.
According to the block information recorded in the block table of first logical blocks, the start bit of the second logical blocks is determined When setting the physical sector number at place, be specifically as follows: the block table of inquiry first logical blocks therefrom obtains described second The initial sector deviant of logical blocks;According to the starting of the initial sector deviant of second logic sector and extension block Address obtains the physical sector number where the initial position of second logical blocks.
If current block is that main block is then specifically obtaining storage when next block is main block or extension block When the block information of chip current block and its next block, it can be according to the block table in 0 magnetic track of storage chip, 0 sector The block information of middle label determines rising for the physical sector number and next block where the end position of the current block Physical sector number where beginning position;In turn, whether big by the physical sector number where judging the end position of current block Physical sector number where the initial position of next block, if it is, there are blocks between current block and next block Overlapping.
It should be noted that when specific implementation, in addition to the sector number of sector number and end sector using initial sector Other than initial position and end position to indicate logical blocks, it can also be indicated using other information, for example, banner word Section, end byte etc..Alternatively, since " offset " recorded in block table is the initial address relative to extension block , therefore.If disregard calculate initial sector and terminate sector physical sector number, but between using initial sector and terminate fan " offset " in area come between decision logic sector with the presence or absence of overlapping block it is also possible, which is not described herein again.
It is further to note that in the art, the logical blocks under DOS block scheme are chip region One kind of block, other storage chip block types respectively have its relevant information acquisition methods, and details are not described herein.
S103: according to judging result, the erasing operation for being directed to storage chip current block is determined.
When specific implementation, if it is judged that the phenomenon that there are overlapping blocks between block, is specifically executing to storage chip It can be there are many implementation when the erasing operation of block.For example, wherein under a kind of implementation, as long as can be certain block There are overlapping blocks between A and block B, and block A is a upper block of block B, then directly skips block A and do not wipe, only Other are not present with the onblock executing erasing operation of overlapping block between next block.
Alternatively, under another implementation, if there are overlapping blocks between certain block A and its next block B, yet Erasing operation can be executed to block A, only need be overlapped part will to have occurred with block B to skip and not wipe, that is, can avoid wiping Except the loss for causing block B later.In this manner, when specific implementation, current block and next area can be determined first Between block overlapping region (namely determine two blocks specifically on which sector exist overlapping, for example, area in previous example Overlapping region between block A and block B is exactly the 97th to the 99th sector), then when executing erasing operation to current block, jump The overlapping region is crossed, the region in current block in addition to the overlapping region is only wiped.
What needs to be explained here is that due to storage chip erasing tool effect be exactly prevent it is deleted in storage chip Data are resumed, and therefore, in traditional storage chip eraser, in the case where default, all refer to the remaining space of erasing (the corresponding data field in that is data field other than the data field where existing file, especially deleted document). So in embodiments of the present invention, so-called " region in current block other than overlapping region " just refers to the residue of current block Space, the region in addition to overlapping region.Certainly, in practical applications, if user needs to wipe storage chip totally Remove, that is, together with it is existing do not delete file where data field deleted, it is also possible, in this case, this " region in current block other than overlapping region " in inventive embodiments can refer in entire current block except overlapping region Region in addition.
It, can be by the way that block data once or be repeatedly implemented in the region for needing to wipe when carrying out specific erasing operation Migration all sets 0 or sets the modes such as 1 and realizes.Wherein, it is wiped if it is together with existing file, then in erasing existing file Or when file, file can be made carbon copies by certain number with random data first, data field is reset again as needed.Then It renames certain number to file or folder, cannot be found in this way by raw filename from MFT FAT file table at random Original document, then file size is changed to 0.Then file index information in MFT FAT file table is reset again, makes file It is destroyed in the characteristic of MFT FAT file table, increases the difficulty of recovery.This file is finally deleted again, to guarantee to use The personal secrets at family.If it is the remaining space of erasing storage chip, so that it may with generating at random directly in storage chip Data write temporary file according to the number that user selects, and until writing the full region for needing to wipe, the region that needs are wiped is complete Portion's covering, then deletes these temporary files again.In this way, the data for the file deleted, will all be made carbon copies, Bu Nengzai It is resumed.
Wherein, FAT format supports the file of 4GB size because of maximum, the area size wiped as needed is wiped Except when may generate multiple temporary files.Such as: assuming that needing the region wiped is 10GB, then it may generate 3 files: two The file of the file of a 4GB and a 2GB.And for NTFS format, because supporting big file, maximum can support 64GB, therefore The temporary file quantity of write-in can be relatively smaller.
In addition, the method for wiping storage chip described in the embodiment of the present invention, both selected single storage chip for user The erasing operation that block carries out is also applied for the bulk erasure operation that user selects multiple storage chip blocks to carry out.Why In this way, being because either sequence executes single when user selects multiple storage chip blocks to carry out the operation of bulk erasure Storage chip erasing, or execute the erasing of multiple storage chips, can all be broken down into the wiping to single storage chip block Except the subtask of operation, therefore, above situation comes under protection scope of the present invention.
Corresponding with storage chip method for deleting provided in an embodiment of the present invention, the embodiment of the invention also provides a kind of wipings Except the device of storage chip, referring to fig. 2, the apparatus may include:
Block information acquiring unit 201, for when needing to execute erasing operation to storage chip current block, obtaining storage core The block information of piece current block and its next block;
Judging unit 202, for according to the block information, judging between current block and its next block with the presence or absence of block Overlapping;
Unit 203 is wiped, for determining the erasing operation for being directed to storage chip current block according to judging result.
When specific implementation, block information acquiring unit is specifically used for:
Obtain the physical sector number of the end sector where current block and the physics fan of the initial sector where next block Area code;
The judging unit is specifically used for:
The initial sector whether physical sector number of the end sector where current block is greater than where its next block judged Physical sector number, if it is, there are overlapping blocks between current block and its next block.
If there are overlapping blocks between current block and next block, in an implementation mode, unit 203 is wiped May include:
Overlapping region determines subelement, for, there are when overlapping block, proparea to be worked as in determination between current block and next block Overlapping region between block and next block;
First deletes subelement, and for skipping the overlapping region when executing erasing operation to current block, only erasing is current Region in block in addition to the overlapping region.
Alternatively, under another implementation, erasing unit 203 also may include:
Second deletes subelement, for, there are when overlapping block, skipping current block, only between current block and next block Erasing operation is carried out to other blocks in addition to current block.
Wherein, erasing unit 203 is specifically used for:
When needing to carry out erasing operation to storage chip current block, by implementing block data migration into erasing region, To wipe storage chip parallel.
The storage chip erasing apparatus provided through the embodiment of the present invention can execute specific storage chip erasing behaviour Before work, the phenomenon that first determining whether between storage chip block with the presence or absence of overlapping block, and according to judging result, determination is directed to The erasing operation of storage chip current block.It therefore, being capable of effective protection chip region during wiping storage chip Block message, and then protect the data safety of user.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention Method described in part.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
Above to the method and device of erasing storage chip provided by the present invention, it is described in detail, answers herein With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage Solve method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention, There will be changes in specific embodiment and application range.In conclusion the content of the present specification should not be construed as to this hair Bright limitation.

Claims (10)

1. a kind of method for wiping storage chip characterized by comprising
When needing to execute erasing operation to storage chip current block, storage chip current block and its next block are obtained Block information;
According to the block information, judge between current block and its next block with the presence or absence of overlapping block;
According to judging result, the erasing operation for being directed to storage chip current block is determined.
2. the method according to claim 1, wherein the acquisition storage chip current block and its next area The block information of block includes:
Obtain the physical sector number of the end sector where current block and the physics fan of the initial sector where next block Area code;
It is described according to the block information, judge include: with the presence or absence of overlapping block between current block and its next block
The initial sector whether physical sector number of the end sector where current block is greater than where its next block judged Physical sector number, if it is, there are overlapping blocks between current block and its next block.
3. determination is worked as storage chip the method according to claim 1, wherein described according to judging result The erasing operation of preceding block includes:
If between current block and next block, there are overlapping blocks, it is determined that overlapping between current block and next block Region;
When executing erasing operation to current block, the overlapping region is skipped, only wipes and removes the overlay region in current block Region other than domain.
4. determination is worked as storage chip the method according to claim 1, wherein described according to judging result The erasing operation of preceding block includes:
If there are overlapping blocks between current block and next block, current block is skipped, only in addition to current block Other blocks carry out erasing operation.
5. the method according to claim 1, wherein the erasing operation packet to storage chip current block It includes:
When needing to carry out erasing operation to storage chip current block, by implementing block data migration into erasing region, To wipe storage chip parallel.
6. a kind of device for wiping storage chip characterized by comprising
Block information acquiring unit, for obtaining storage chip when needing to execute erasing operation to storage chip current block The block information of current block and its next block;
Judging unit, for according to the block information, judging between current block and its next block with the presence or absence of block weight It is folded;
Unit is wiped, for determining the erasing operation for being directed to storage chip current block according to judging result.
7. device according to claim 6, which is characterized in that the block information acquiring unit is used for:
Obtain the physical sector number of the end sector where current block and the physics fan of the initial sector where next block Area code;
The judging unit is specifically used for:
The initial sector whether physical sector number of the end sector where current block is greater than where its next block judged Physical sector number, if it is, there are overlapping blocks between current block and its next block.
8. the apparatus according to claim 1, which is characterized in that the erasing unit includes:
Overlapping region determines subelement, for, there are when overlapping block, proparea to be worked as in determination between current block and next block Overlapping region between block and next block;
First deletes subelement, and for skipping the overlapping region when executing erasing operation to current block, only erasing is current Region in block in addition to the overlapping region.
9. the apparatus according to claim 1, which is characterized in that the erasing unit includes:
Second deletes subelement, for, there are when overlapping block, skipping current block, only between current block and next block Erasing operation is carried out to other blocks in addition to current block.
10. the apparatus according to claim 1, which is characterized in that the erasing unit is specifically used for:
When needing to carry out erasing operation to storage chip current block, by implementing block data migration into erasing region, To wipe storage chip parallel.
CN201710340649.1A 2017-05-17 2017-05-17 A kind of method and device for wiping storage chip Pending CN108962321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710340649.1A CN108962321A (en) 2017-05-17 2017-05-17 A kind of method and device for wiping storage chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710340649.1A CN108962321A (en) 2017-05-17 2017-05-17 A kind of method and device for wiping storage chip

Publications (1)

Publication Number Publication Date
CN108962321A true CN108962321A (en) 2018-12-07

Family

ID=64461283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710340649.1A Pending CN108962321A (en) 2017-05-17 2017-05-17 A kind of method and device for wiping storage chip

Country Status (1)

Country Link
CN (1) CN108962321A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831224A (en) * 2020-06-22 2020-10-27 中孚安全技术有限公司 Method, system and equipment for erasing exFAT partition file residual space
WO2021087956A1 (en) * 2019-11-08 2021-05-14 华为技术有限公司 Data processing method and apparatus, and system chip
CN113448496A (en) * 2020-03-25 2021-09-28 旺宏电子股份有限公司 Erasing method of multi-layer three-dimensional memory

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021087956A1 (en) * 2019-11-08 2021-05-14 华为技术有限公司 Data processing method and apparatus, and system chip
CN113448496A (en) * 2020-03-25 2021-09-28 旺宏电子股份有限公司 Erasing method of multi-layer three-dimensional memory
CN113448496B (en) * 2020-03-25 2024-05-28 旺宏电子股份有限公司 Erasing method of multi-level three-dimensional memory
CN111831224A (en) * 2020-06-22 2020-10-27 中孚安全技术有限公司 Method, system and equipment for erasing exFAT partition file residual space
CN111831224B (en) * 2020-06-22 2024-04-19 中孚安全技术有限公司 Method, system and equipment for erasing residual space of exFAT partition file

Similar Documents

Publication Publication Date Title
JP5346536B2 (en) Information backup / restore processing device and information backup / restore processing system
CN103608866B (en) Data method for deleting and device for flash memories
CN107003809B (en) A kind of method and storage equipment of storage equipment storing data
CN102511044B (en) Method for deleting the data and device thereof
CN106201659B (en) A kind of method and host of live migration of virtual machine
CN103761053B (en) A kind of data processing method and device
CN103049349B (en) Based on Snapshot Method and the system of Bedding storage
CN104281538B (en) It is a kind of store equipment dilatation and Snapshot Method and storage equipment
CN106294007B (en) Data recovery method and device
CN108962321A (en) A kind of method and device for wiping storage chip
CN107391774A (en) The rubbish recovering method of JFS based on data de-duplication
CN104899114B (en) A kind of continuous time data guard method on solid state hard disc
JP2010535379A (en) I / O control method and apparatus optimized for flash memory
CN102622310A (en) Invalid data erasing method, device and system
JP2010009290A (en) Storage system, copy control method and copy control unit
CN105956132A (en) Junk data clearing method and system
CN110704161A (en) Virtual machine creation method and device and computer equipment
CN101996109A (en) Computer system, control method thereof and recording medium storing computer program thereof
CN104424115B (en) Recover method, storage device and the electronic equipment of the preset state of electronic equipment
CN103902468B (en) The data clearing method and device of storage system
CN102354302B (en) A kind of method of erasing disk and device
CN113641446A (en) Memory snapshot creating method, device and equipment and readable storage medium
CN106055372A (en) Method and device for uninstalling application
EP0694831A2 (en) Computer system having storage unit provided with data compression function andmethod of management of storage area thereof
CN107562898A (en) A kind of method that recycle bin is created based on KUX operating systems

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: 20181207