CN109471598A - Data deleting method and device of storage equipment and computer readable storage medium - Google Patents
Data deleting method and device of storage equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109471598A CN109471598A CN201811371890.1A CN201811371890A CN109471598A CN 109471598 A CN109471598 A CN 109471598A CN 201811371890 A CN201811371890 A CN 201811371890A CN 109471598 A CN109471598 A CN 109471598A
- Authority
- CN
- China
- Prior art keywords
- data
- deletion
- logical block
- cluster
- file configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a data deleting method and device of a storage device and a computer readable storage medium, comprising the following steps: when a data deleting instruction is received, acquiring a file configuration table corresponding to the data deleting instruction; acquiring a cluster number corresponding to the data deleting instruction in the file configuration table, and acquiring an absolute logic block address of the cluster number; and acquiring a preset data information table, and setting the validity of data associated with the absolute logical block address as invalid in the data information table. According to the invention, the cluster number with the cluster value of zero in the file configuration table can be obtained, the logical block address corresponding to the cluster number is obtained, the data of the logical block address is set to be invalid in the GC garbage collection algorithm table, and after the data is marked as invalid data, the recovery algorithm can not recover the space for storing the data, so that the problem that the garbage collection process burden of the storage device is increased is solved.
Description
Technical field
The present invention relates to USB storage device field more particularly to it is a kind of store the data-erasure method of equipment, device and
Computer readable storage medium.
Background technique
With the rapid development of computer hardware, movable memory equipment because small and exquisite easy to carry, memory capacity is big, price just
Preferably, the factors such as reliable performance by consumer love and esteem.
But existing USB storage device can not carry out data identification to FAT file system.In entirely storage equipment
In stating the period, it can not identify invalid data and its algorithm layer in storage equipment is subjected to invalidation.Therefore, although
Existing USB storage device delete in host side the operation of file, and actually host is only by delete operation in FAT table
Cluster where corresponding file data is set to 0, and the corresponding file data of delete operation still stores in the original location and do not exist
Hardware layer is identified as invalid data, i.e. data are still valid data, therefore, recycles the algorithm of memory space identifying
State data be valid data when, the memory space where the data will be recycled, leads to the garbage reclamation process of equipment
Burden.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The data-erasure method of equipment, device and computer-readable are stored the main purpose of the present invention is to provide a kind of
Storage medium, it is intended to solve the problems, such as the garbage reclamation process burden of storage equipment.
In order to achieve the above object, the present invention provides a kind of data-erasure method for storing equipment, the storage equipment
Data-erasure method the following steps are included:
When receiving data deletion instruction, the corresponding file configuration table of the deletion data command is obtained;
Cluster number corresponding with the deletion data command in the file configuration table is obtained, and obtains the absolute of the cluster number
Logical block addresses;
Preset data information table is obtained, and will be associated with the absolute logical block addresses in the data information table
Data validity be set as invalid.
Preferably, described to obtain cluster number corresponding with the deletion data command in the file configuration table, and obtain institute
The step of stating the absolute logical block addresses of cluster number include:
Cluster number corresponding with the deletion data command in the file configuration table is obtained, is obtained relatively according to the cluster number
Logical block addresses;
The absolute logical block addresses are obtained according to the opposite logical block address.
Preferably, after described the step of obtaining the deletion data command corresponding file configuration table, further includes:
The deletion information in the deletion data command is obtained, and obtains the logical block addresses cluster in the deletion information
Number and the first cluster value;
Obtain the second cluster value corresponding with the cluster number in the file configuration table;
When the logical block addresses are in the corresponding logical block addresses of the file configuration table, described first is judged
Whether cluster value is equal to the second cluster value;
When determining that the first cluster value is not equal to the second cluster value, execute it is described obtain in the file configuration table with
The corresponding cluster number of the deletion data command, and the step of obtaining the absolute logical block addresses of the cluster number.
Preferably, it is described obtain it is described delete information in logical block addresses cluster number and the first cluster value the step of it
Afterwards, further includes:
When the logical block addresses are not in the corresponding logical block addresses of the file configuration table, end is currently deleted
Except task.
Preferably, it is described judge the step of whether the first cluster value is equal to the second cluster value after, further includes:
When determining that the first cluster value is equal to the second cluster value, terminate current deletion task.
Preferably, described when receiving deletion data command, obtain the corresponding file configuration of the deletion data command
The step of table includes:
When receiving deletion data command, acquisition master boot record and disc operating system is instructed to draw according to the deletion
Lead record;
The storage of the file configuration table is obtained according to the master boot record and DOS booting record
Address;
The file configuration table is obtained according to the storage address.
In addition, to achieve the above object, the present invention also provides a kind of data deletion apparatus for storing equipment, the storage is set
Standby data deletion apparatus includes processor, memory and is stored on the memory and can run on the processor
The data for storing equipment delete program, and the data of the storage equipment, which are deleted when program is executed by the processor, realizes institute as above
The step of data-erasure method for the storage equipment stated.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
The data that storage equipment is stored on storage medium delete program, and the data of the storage equipment are deleted program and are executed by processor
Shi Shixian stores the step of data-erasure method of equipment as described above.
Data-erasure method, device and the computer readable storage medium of storage equipment provided by the invention, firstly,
When receiving data deletion instruction, obtains the corresponding file configuration table of the deletion data command and then obtain the file and match
Cluster number corresponding with the deletion data command in table is set, and obtains the absolute logical block addresses of the cluster number, finally, obtaining
Preset data information table, and will be with the absolute associated data validity of logical block addresses in the data information table
It is set as invalid.Because the present invention can obtain the cluster number that cluster value is zero in file configuration table, and obtain the corresponding logic of cluster number
Block address, then set the data of the logical block addresses in vain in GC garbage collection algorithms table, in data quilt
After being identified as invalid data, the recycling algorithm will not again be recycled the space of data storage, be deposited to solve
The problem of storing up the garbage reclamation process burden of equipment.
Detailed description of the invention
Detailed description of the invention is used to provide further understanding of the present invention, and constitutes part of specification, with the present invention
Embodiment be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the hardware structural diagram of the data deletion apparatus for the storage equipment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the data-erasure method first embodiment of present invention storage equipment;
Fig. 3 is the flow diagram of the data-erasure method second embodiment of present invention storage equipment;
Fig. 4 is the flow diagram of the data-erasure method 3rd embodiment of present invention storage equipment;
Fig. 5 is the flow diagram of the data-erasure method fourth embodiment of present invention storage equipment;
Fig. 6 is the flow diagram of the 5th embodiment of data-erasure method of present invention storage equipment;
Fig. 7 is the flow diagram of the data-erasure method sixth embodiment of present invention storage equipment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: when receiving data deletion instruction, obtaining the deletion data
Instruct corresponding file configuration table;Cluster number corresponding with the deletion data command in the file configuration table is obtained, and is obtained
The absolute logical block addresses of the cluster number;Obtain preset data information table, and in the data information table will with it is described
The absolute associated data validity of logical block addresses is set as invalid.
Since existing USB storage device in host side delete the operation of file, actually host is only by FAT
Cluster in table where the corresponding file data of delete operation is set to 0, and the corresponding file data of delete operation still stores in situ
It sets and is not identified as invalid data in hardware layer, the algorithm for recycling memory space is identifying that the data are significant figure
According to when, the memory space where the data will be recycled, leads to the garbage reclamation process burden of equipment.
The present invention provides a solution, firstly, obtaining the deletion data when receiving data deletion instruction and referring to
Enable corresponding file configuration table;Then, cluster number corresponding with the deletion data command in the file configuration table is obtained, and is obtained
Take the absolute logical block addresses of the cluster number;Finally, obtaining preset data information table, and will in the data information table
It is set as invalid with the absolute associated data validity of logical block addresses.Because the present invention can be obtained in file configuration table
The cluster number that middle cluster value is zero, and the corresponding logical block addresses of cluster number are obtained, then will be described in GC garbage collection algorithms table
The data of logical block addresses are set as in vain, and after data are identified as invalid data, the recycling algorithm will not be again to institute
The space for stating data storage is recycled, to solve the problems, such as the garbage reclamation process burden of storage equipment.
As shown in Figure 1, Fig. 1 is that the embodiment of the present invention is related to the hardware structural diagram of device.
Referring to Fig.1, the apparatus may include processor 1001, such as CPU, memory 1002, communication bus 1003, nets
Network interface 1004.Wherein, communication bus 1003 is for realizing the connection communication between each building block in the device.Network interface
1004 may include optionally standard wireline interface and wireless interface (such as WI-FI interface).Memory 1002 can be high speed
RAM memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1002
It optionally can also be the storage device independently of aforementioned processor 1001.As shown in Figure 1, as a kind of computer storage medium
Memory 1002 in may include operating system, network communication module and store equipment data delete program.
It will be understood by those skilled in the art that the restriction of the not structure twin installation of apparatus structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
In hardware involved in device shown in Fig. 1, network interface 1004 can be used for the reading that receiving host end issues
Write command;And processor 1001 can be used for calling the data of the storage equipment stored in memory 1002 to delete program, and hold
The following operation of row:
When receiving data deletion instruction, the corresponding file configuration table of the deletion data command is obtained;
Cluster number corresponding with the deletion data command in the file configuration table is obtained, and obtains the absolute of the cluster number
Logical block addresses;
Preset data information table is obtained, and will be associated with the absolute logical block addresses in the data information table
Data validity be set as invalid.
Further, processor 1001 can be used for calling the data of the storage equipment stored in memory 1002 to delete journey
Sequence also executes following operation:
Cluster number corresponding with the deletion data command in the file configuration table is obtained, is obtained relatively according to the cluster number
Logical block addresses;
The absolute logical block addresses are obtained according to the opposite logical block address.
Further, processor 1001 can be used for calling the data of the storage equipment stored in memory 1002 to delete journey
Sequence also executes following operation:
The deletion information in the deletion data command is obtained, and obtains the logical block addresses cluster in the deletion information
Number and the first cluster value;
Obtain the second cluster value corresponding with the cluster number in the file configuration table;
When the logical block addresses are in the corresponding logical block addresses of the file configuration table, described first is judged
Whether cluster value is equal to the second cluster value;
When determining that the first cluster value is not equal to the second cluster value, execute it is described obtain in the file configuration table with
The corresponding cluster number of the deletion data command, and the step of obtaining the absolute logical block addresses of the cluster number.
Further, processor 1001 can be used for calling the data of the storage equipment stored in memory 1002 to delete journey
Sequence also executes following operation:
When the logical block addresses are not in the corresponding logical block addresses of the file configuration table, end is currently deleted
Except task.
Further, processor 1001 can be used for calling the data of the storage equipment stored in memory 1002 to delete journey
Sequence also executes following operation:
When determining that the first cluster value is equal to the second cluster value, terminate current deletion task.
Further, processor 1001 can be used for calling the data of the storage equipment stored in memory 1002 to delete journey
Sequence also executes following operation:
When receiving deletion data command, acquisition master boot record and disc operating system is instructed to draw according to the deletion
Lead record;
The storage of the file configuration table is obtained according to the master boot record and DOS booting record
Address;
The file configuration table is obtained according to the storage address.
The present invention issues write command according to above scheme, host side, when the cluster value in the information that the write command includes is
When zero, the write command is that data delete instruction.Storage equipment is remembered when receiving the write command for deleting data according to main boot
Record and DOS booting record obtain file configuration table, then obtain in the file configuration table with the deletion data
Corresponding cluster number is instructed, opposite logical block address is obtained according to the cluster number, and obtain according to the opposite logical block address
To the absolute logical block addresses, finally obtain preset data information table, and in the data information table will with it is described
The absolute associated data validity of logical block addresses is set as invalid.Wherein, when the logical block addresses are not in the text
When in the corresponding logical block addresses of part allocation list, terminate it is current delete task, determining that the first cluster value is equal to described the
When two cluster values, terminate current deletion task.
It is the first embodiment for the data-erasure method that the present invention stores equipment referring to Fig. 2, Fig. 2, the storage equipment
Data-erasure method includes:
Step S10, when receiving data deletion instruction, the corresponding file configuration table of the deletion data command is obtained;
The data-erasure method of storage equipment provided by the invention mainly sets nothing for the data that cluster is zero in FAT table
Effect.The terminal that the correlating method of house property information provided by the invention is related to includes but is not limited to mobile phone, tablet computer and computer etc.,
Relevant application system is pre-loaded in the terminal.
Technical solution provided by the invention, the instruction that host issues include write command and reading instruction, include finger in write command
The logical block addresses to be acted on, the content information write are enabled, when the cluster value in the content information is zero, the write command is
Data delete instruction.When host, which issues data, deletes instruction, obtained according to the logical block addresses in the content information of instruction
File configuration table.Wherein, the file configuration table includes cluster number and the corresponding cluster value of cluster number.
Step S20, cluster number corresponding with the deletion data command in the file configuration table is obtained, and obtains the cluster
Number absolute logical block addresses;
In technical solution provided in this embodiment, the cluster number in the content information of the data deletion instruction is obtained, then
The corresponding cluster number of cluster number in the content information of the data deletion instruction is obtained in the file configuration table, according to the cluster
Number opposite logical block address is obtained, and the absolute logical block addresses are obtained according to the opposite logical block address.
It should be noted that the absolute logical block addresses are that the data that cluster value is zero in file configuration table are stored in
Address in memory.
Step S30, preset data information table is obtained, and will be with the absolute logical blocks in the data information table
The data validity of address information is set as invalid.
In technical solution provided in this embodiment, in memory space recovery system, a tensor calculus method table, data are store
Information table.The data information table includes the absolute logical address and the corresponding data of the absolute logical address of data storage
Validity.Most importantly recycling algorithm, the recycling algorithm are needed in the data of write-in in the memory space recovery system
Memory headroom deficiency when carry out memory space recycling.It should be noted that the data in the space of the recycling algorithm recycling
Including two features, a feature is that the corresponding cluster value of cluster number of data is zero, another is characterized in that the data are believed in data
The data validity ceased in table is effective.It is understood that if recycling is calculated when setting invalid for the validity of the data
Method just will not recycle the space that the data are stored, and when host side issues write command, the corresponding data of write command are directly covered
The data for covering the memory space are stored.
Further, it after the absolute logical block addresses for getting the data that data delete all deletions of instruction, obtains
Preset data information table, and will be with the absolute associated data validity of logical block addresses in the data information table
It is set as invalid.After the data are identified as invalid data, recycling algorithm will not recycle described when recycling memory space
The space that invalid data is stored.
The present invention issues write command according to above scheme, host side, when the cluster value in the information that the write command includes is
When zero, the write command is that data delete instruction.Storage equipment is remembered when receiving the write command for deleting data according to main boot
Record and DOS booting record obtain file configuration table, then obtain in the file configuration table with the deletion data
Corresponding cluster number is instructed, opposite logical block address is obtained according to the cluster number, and obtain according to the opposite logical block address
To the absolute logical block addresses, finally obtain preset data information table, and in the data information table will with it is described
The absolute associated data validity of logical block addresses is set as invalid.Wherein, when the logical block addresses are not in the text
When in the corresponding logical block addresses of part allocation list, terminate it is current delete task, determining that the first cluster value is equal to described the
When two cluster values, terminate current deletion task.
Because the present invention can obtain the cluster number that cluster value is zero in file configuration table, and obtain the corresponding logical blocks of cluster number
Address, then be set as in vain, being identified in data by the data of the logical block addresses in GC garbage collection algorithms table
After invalid data, the recycling algorithm will not again be recycled the space of data storage, be set to solve storage
The problem of standby garbage reclamation process burden.
Further, referring to the second embodiment for the data-erasure method that Fig. 3, Fig. 3 are present invention storage equipment, based on upper
State embodiment, the step S20, further includes:
Step S21, cluster number corresponding with the deletion data command in the file configuration table is obtained, according to the cluster number
Obtain opposite logical block address;
Step S22, the absolute logical block addresses are obtained according to the opposite logical block address.
In technical solution provided in this embodiment, work as in FAT (abbreviation of File Allocation Table) file system
In, managing minimum unit used in data is cluster, what a cluster was made of one or more sectors, and cluster is converted to
Logical block addresses after sector are opposite logical block address.Further, after host side issues write command, institute is obtained
Cluster number corresponding with the deletion data command in file configuration table is stated, opposite logical block address is obtained according to the cluster number,
Wherein, the mode of the opposite logical block address is obtained are as follows: available real by offset minus 2 of the list item in FAT
Cluster number where data, then by cluster number multiplied by cluster size, opposite LBA address of the data in subregion can be obtained.It is obtaining
To after the opposite logical block address, the absolute logical block addresses are obtained according to the opposite logical block address.Its
In, the absolute logical block addresses are equal to the opposite logical block address+subregion start logical block address+subregion and retain fan
Area's number+(each file configuration table table sector number * 2).
It obtains the data and deletes the absolute logical block addresses for instructing corresponding data, thus accurately to the data
The validity of full content be identified as in vain.
Further, referring to the 3rd embodiment for the data-erasure method that Fig. 4, Fig. 4 are present invention storage equipment, above-mentioned
On the basis of embodiment shown in Fig. 2, after the step S10, further includes:
Step S40, the deletion information deleted in data command is obtained, and obtains the logic area in the deletion information
Block address cluster number and the first cluster value;
Step S50, the second cluster value corresponding with the cluster number in the file configuration table is obtained;
Step S60, when the logical block addresses are in the corresponding logical block addresses of the file configuration table, judgement
Whether the first cluster value is equal to the second cluster value;
Step S70, it when determining that the first cluster value is not equal to the second cluster value, executes the acquisition file and matches
Set cluster number corresponding with the deletion data command in table, and the step of obtaining the absolute logical block addresses of the cluster number.
In technical solution provided in this embodiment, after getting file configuration table, obtain in the deletion data command
Deletion information, and obtain it is described deletion information in logical block addresses cluster number and the first cluster value, wherein first cluster
Value is the cluster value in the deletion information, and the value of the first cluster value is zero.Then obtain in the file configuration table with institute
The corresponding second cluster value of cluster number is stated, then obtains the logical block addresses that the data delete the content of instruction, when the logic area
When block address is in the corresponding logical block addresses of the file configuration table, judge whether the first cluster value is equal to described second
Cluster value, when determining that the first cluster value is not equal to the second cluster value, obtain in the file configuration table with the deletion number
According to the corresponding cluster number of instruction, and obtain the absolute logical block addresses of the cluster number.
The absolute logical block addresses of the cluster number are obtained when the first cluster value is not equal to the second cluster value, thus
Ensure that system will not carry out again delete operation to the data deleted.
Further, referring to the fourth embodiment for the data-erasure method that Fig. 5, Fig. 5 are present invention storage equipment, above-mentioned
On the basis of embodiment shown in Fig. 4, after the step S40, further includes:
Step S80, when the logical block addresses are not in the corresponding logical block addresses of the file configuration table, knot
Shu Dangqian deletes task.
In technical solution provided in this embodiment, after host side issues write command, whether the write command is first determined whether
Write data into the address of the logical block addresses of file configuration table, and if write command corresponding cluster value execute when being zero and delete
Except task, if write command is not in the address for the logical block addresses for writing data into file configuration table, terminate current
Deletion task.
Not into one, after getting file configuration table, the deletion information deleted in data command is obtained, and obtain
The data delete the logical block addresses of the content of instruction, when the logical block addresses are corresponding not in the file configuration table
Logical block addresses in when, terminate current to delete task.
Terminate when in the address that judgement write command is not the logical block addresses for writing data into file configuration table current
Deletion task, thus improve storage equipment performance.
Further, referring to the 5th embodiment of the data-erasure method that Fig. 6, Fig. 6 are present invention storage equipment, above-mentioned
On the basis of embodiment shown in Fig. 3, after the step S50, further includes:
Step S90, when determining that the first cluster value is equal to the second cluster value, terminate current deletion task.
In technical solution provided in this embodiment, after host side issues write command, first determine whether in the deletion information
The cluster value of the first cluster number whether be equal to the cluster value for being in the second cluster number of same position with the first cluster number in file configuration table,
If the first cluster value is not equal to the second cluster value, determine that the corresponding data of the first cluster number are not labeled as in vain, by first cluster
It is invalid that data in number corresponding absolute logical address carry out;If the first cluster value is equal to the second cluster value, first cluster is determined
It is worth corresponding data to have been labeled as in vain, terminating current deletion task.
Terminate current deletion task when determining that the first cluster value is equal to the second cluster value, to set to improve storage
Standby performance.
Further, referring to the sixth embodiment for the data-erasure method that Fig. 7, Fig. 7 are present invention storage equipment, above-mentioned
On the basis of embodiment shown in Fig. 2, the step S10, comprising:
Step S11, it when receiving deletion data command, is instructed according to the deletion and obtains master boot record and disk behaviour
Make system boot record;
Step S12, the file configuration is obtained according to the master boot record and DOS booting record
The storage address of table;
Step S13, the file configuration table is obtained according to the storage address.
In technical solution provided in this embodiment, host side issues write command, and storage equipment is receiving write command and sentencing
The write command that breaks is after data delete instruction, to be instructed according to the deletion and obtain master boot record (MBR) and disk operating system
It unites leader record (DBR).Firstly, parsing the MBR after obtaining MBR, the DBR of each subregion is obtained according to the MBR after parsing
Position, wherein obtain the data in the MBR between 08~0B Byte, that is, the initial position of an available subregion should
The position subregion DBR.Then the file is obtained according to the master boot record and DOS booting record
The storage address of allocation list obtains subregion reserved area fan number and each FAT (file configuration table) table sector in the DBR
Number, fans number and the position the subregion DBR by the subregion reserved area and obtains originating absolute LBA and (originate absolute logic area
Block address), it obtains terminating absolute LBA by the absolute LBA of the starting and each FAT (file configuration table) table sector number
(originating absolute logical block addresses) obtains FAT table finally by the absolute LBA of the starting and the absolute LBA of end.
FAT table is obtained by the absolute LBA of the starting and the absolute LBA of end, to guarantee to obtain complete FAT
Table.
To achieve the above object, the present invention also provides a kind of data deletion apparatus for storing equipment, the storage equipment
Data deletion apparatus includes processor, memory and is stored in the storage that can be run on the memory and on the processor
The data of equipment delete program, and the data of the storage equipment, which are deleted when program is executed by the processor, to be realized as described above
The step of storing the data-erasure method of equipment.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages
The data that storage equipment is stored on medium delete program, and the data of the storage equipment are deleted real when program is executed by processor
The step of now storing the data-erasure method of equipment as described above.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be TV
Machine, mobile phone, computer, device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. it is a kind of store equipment data-erasure method, which is characterized in that it is described storage equipment data-erasure method include with
Lower step:
When receiving data deletion instruction, the corresponding file configuration table of the deletion data command is obtained;
Cluster number corresponding with the deletion data command in the file configuration table is obtained, and obtains the absolute logic of the cluster number
Block address;
Preset data information table is obtained, and will be with the absolute associated number of logical block addresses in the data information table
It is set as invalid according to validity.
2. the data-erasure method of storage equipment as described in claim 1, which is characterized in that described to obtain the file configuration
Cluster number corresponding with the deletion data command in table, and the step of obtaining the absolute logical block addresses of the cluster number includes:
Cluster number corresponding with the deletion data command in the file configuration table is obtained, opposite logical is obtained according to the cluster number
Block address;
The absolute logical block addresses are obtained according to the opposite logical block address.
3. the data-erasure method of storage equipment as described in claim 1, which is characterized in that described to obtain the deletion data
After the step of instructing corresponding file configuration table, further includes:
Obtain it is described deletion data command in deletion information, and obtain it is described deletion information in logical block addresses cluster number with
And the first cluster value;
Obtain the second cluster value corresponding with the cluster number in the file configuration table;
When the logical block addresses are in the corresponding logical block addresses of the file configuration table, the first cluster value is judged
Whether the second cluster value is equal to;
When determining that the first cluster value is not equal to the second cluster value, execute it is described obtain in the file configuration table with it is described
Delete the corresponding cluster number of data command, and the step of obtaining the absolute logical block addresses of the cluster number.
4. the data-erasure method of storage equipment as claimed in claim 3, which is characterized in that described to obtain the deletion information
In logical block addresses cluster number and the first cluster value the step of after, further includes:
When the logical block addresses are not in the corresponding logical block addresses of the file configuration table, terminate current delete and appoint
Business.
5. the data-erasure method of storage equipment as claimed in claim 3, which is characterized in that judgement the first cluster value
After the step of whether being equal to the second cluster value, further includes:
When determining that the first cluster value is equal to the second cluster value, terminate current deletion task.
6. the data-erasure method of storage equipment as described in claim 1, which is characterized in that described to receive deletion data
When instruction, the step of obtaining the deletion data command corresponding file configuration table, includes:
When receiving deletion data command, is instructed according to the deletion and obtain master boot record and DOS booting note
Record;
The storage address of the file configuration table is obtained according to the master boot record and DOS booting record;
The file configuration table is obtained according to the storage address.
7. a kind of data deletion apparatus for storing equipment, which is characterized in that the data deletion apparatus of the storage equipment includes place
Reason device, memory and the data deletion journey for being stored in the storage equipment that can be run on the memory and on the processor
Sequence, the data of the storage equipment, which are deleted when program is executed by the processor, to be realized as described in any one of claims 1 to 6
Storage equipment data-erasure method the step of.
8. a kind of computer readable storage medium, which is characterized in that be stored with storage on the computer readable storage medium and set
Standby data delete program, and the data of the storage equipment, which are deleted, to be realized when program is executed by processor as in claim 1 to 6
The step of data-erasure method of described in any item storage equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811371890.1A CN109471598B (en) | 2018-11-16 | 2018-11-16 | Data deleting method and device of storage equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811371890.1A CN109471598B (en) | 2018-11-16 | 2018-11-16 | Data deleting method and device of storage equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109471598A true CN109471598A (en) | 2019-03-15 |
CN109471598B CN109471598B (en) | 2021-12-10 |
Family
ID=65673757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811371890.1A Active CN109471598B (en) | 2018-11-16 | 2018-11-16 | Data deleting method and device of storage equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109471598B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597168A (en) * | 2020-05-20 | 2020-08-28 | 北京邮电大学 | Block chain capacity recovery scheme based on integrity value |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110080921A1 (en) * | 2009-10-06 | 2011-04-07 | Bela Ban | Logical addresses |
CN102511044A (en) * | 2011-09-06 | 2012-06-20 | 华为技术有限公司 | Method for deleting the data and device thereof |
CN102789421A (en) * | 2011-05-18 | 2012-11-21 | 安凯(广州)微电子技术有限公司 | Method and device for improving read-write performance of NAND flash memory |
CN102968597A (en) * | 2012-11-05 | 2013-03-13 | 中国电力科学研究院 | Disk data connection chain-based file crushing method |
CN103154948A (en) * | 2010-08-19 | 2013-06-12 | 桑迪士克以色列有限公司 | Card-based management of discardable files |
US20180018126A1 (en) * | 2013-03-15 | 2018-01-18 | Huawei Technologies Co., Ltd. | Method and apparatus for erasing data in flash memory |
-
2018
- 2018-11-16 CN CN201811371890.1A patent/CN109471598B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110080921A1 (en) * | 2009-10-06 | 2011-04-07 | Bela Ban | Logical addresses |
CN103154948A (en) * | 2010-08-19 | 2013-06-12 | 桑迪士克以色列有限公司 | Card-based management of discardable files |
CN102789421A (en) * | 2011-05-18 | 2012-11-21 | 安凯(广州)微电子技术有限公司 | Method and device for improving read-write performance of NAND flash memory |
CN102511044A (en) * | 2011-09-06 | 2012-06-20 | 华为技术有限公司 | Method for deleting the data and device thereof |
CN102968597A (en) * | 2012-11-05 | 2013-03-13 | 中国电力科学研究院 | Disk data connection chain-based file crushing method |
US20180018126A1 (en) * | 2013-03-15 | 2018-01-18 | Huawei Technologies Co., Ltd. | Method and apparatus for erasing data in flash memory |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597168A (en) * | 2020-05-20 | 2020-08-28 | 北京邮电大学 | Block chain capacity recovery scheme based on integrity value |
Also Published As
Publication number | Publication date |
---|---|
CN109471598B (en) | 2021-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2998861B1 (en) | Implementing and deleting method and device for intelligent terminal multi-operation system | |
US9292217B2 (en) | Logical volume space sharing | |
US9563375B2 (en) | Method for storing metadata of log-structured file system for flash memory | |
CN107835986B (en) | Data operation method of electronic equipment and electronic equipment | |
CN110908927A (en) | Data storage device and method for deleting name space thereof | |
EP2169530B1 (en) | Method of managing memory storage space and a computer system | |
CN107678981A (en) | Data processing method and device | |
CN107391038B (en) | Data writing method of data storage type flash memory, flash memory and storage medium | |
CN111309267B (en) | Storage space allocation method and device, storage equipment and storage medium | |
CN107391308A (en) | Data processing method and device, terminal and computer-readable recording medium | |
CN113311992A (en) | Dynamic adjustment method and device for reserved space of solid state disk | |
JP5217155B2 (en) | File compression automatic determination method and method, and program | |
CN106598508A (en) | Solid-state hard disc and write-in arbitrating method and system thereof | |
CN110795386B (en) | Data writing method and server | |
CN111026331A (en) | Request response method, device, equipment and computer readable storage medium | |
CN109471598A (en) | Data deleting method and device of storage equipment and computer readable storage medium | |
CN102243636B (en) | Method and device for storing file information to be protected and protecting file | |
CN113204300A (en) | Method and system for automatically executing operation by equipment | |
CN107357479B (en) | Application program management method and device | |
CN112069189A (en) | Method and system for updating multi-level mapping table, terminal device and storage medium | |
CN103177019B (en) | Usb storage device and driving method thereof | |
US11132134B2 (en) | Flexible over-provisioning of storage space within solid-state storage devices (SSDs) | |
CN104268231B (en) | A kind of file access method, device and Intelligent File System | |
CN115981565A (en) | Memory, data storage method and electronic equipment | |
JP2009157441A (en) | Information processor, file rearrangement method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 518000 area a, 7th floor, building A1, Shenzhen digital technology park, 17 Gaoxin South 7th Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Patentee after: Deyi Microelectronics Co.,Ltd. Address before: 518000 09-2, 10-11 unit, 6 building, Changhong science and technology building, 18 South Road, science and Technology Park, Nanshan District, Shenzhen, Guangdong, China 18 Patentee before: YEESTOR MICROELECTRONICS Co.,Ltd. |
|
CP03 | Change of name, title or address |