CN110865772A - Method and device for protecting system data physical block erasure count value, computer equipment and storage medium - Google Patents
Method and device for protecting system data physical block erasure count value, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110865772A CN110865772A CN201911093822.8A CN201911093822A CN110865772A CN 110865772 A CN110865772 A CN 110865772A CN 201911093822 A CN201911093822 A CN 201911093822A CN 110865772 A CN110865772 A CN 110865772A
- Authority
- CN
- China
- Prior art keywords
- physical block
- erase count
- count value
- unit
- system physical
- 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
Links
Images
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/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0616—Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
-
- 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/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
- G06F3/0619—Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
-
- 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/064—Management of blocks
-
- 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)
- Computer Security & Cryptography (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention relates to a method, a device, computer equipment and a storage medium for protecting an erasure count value of a system data physical block; the method comprises the following steps: judging whether the system physical block erasure count table is damaged or not; if not, recovering the erase count values of all system physical blocks; if the system is damaged, acquiring an Nth system physical block; reading an erase count value of an nth physical page of an nth system physical block; judging whether the erase count value of the Nth system physical block fails to be acquired; if the acquisition fails, reading the erase count values of n +1 physical pages; if the acquisition is successful, judging whether a system physical block is not read; if yes, acquiring N +1 system physical blocks; if not, recovering the erase count values of all system physical blocks. The invention reduces the probability of the damage of the erase count value of the system physical block, improves the robustness of the firmware and prolongs the service life of the SSD.
Description
Technical Field
The present invention relates to the technical field of system data physical block protection, and more particularly, to a method, an apparatus, a computer device, and a storage medium for protecting an erase count value of a system data physical block.
Background
SSD (solid state disk) system data is non-user data that maintains or records a normal operating state of firmware, except for a mapping table. Such as BB _ table (bad block table), smart (SSD running state information), host log (host log), etc. The system data is generally stored by separate physical blocks, and the system data physical blocks are managed separately and are not managed together with the user data physical blocks. The physical blocks can continuously generate ec (erase count) values during the running of the firmware, the ec values are recorded in an ec table of a system physical block, the ec table is different from an ec table of a user data physical block and cannot be uniformly managed, the firmware can allocate special physical blocks for the ec table of the system data physical block to store, if the physical block for storing the ec table is damaged due to abnormal power failure or some reasons, the ec table cannot be read out, so that the ec value of each system data physical block cannot be known, and the service life of the SSD is shortened; therefore, the demand cannot be satisfied.
Disclosure of Invention
The present invention is directed to overcoming the drawbacks of the prior art and providing a method, an apparatus, a computer device, and a storage medium for protecting an erase count value of a physical block of system data.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of protecting a physical block erase count of system data, comprising the steps of:
judging whether the system physical block erasure count table is damaged or not;
if the system physical block erase count table is not damaged, recovering the erase count values of all system physical blocks;
if the system physical block erasure count table is damaged, acquiring an Nth system physical block, wherein the initial value of N is 1;
reading an erase count value of an nth physical page of an nth system physical block, wherein an initial value of N is 1;
judging whether the erase count value of the Nth system physical block fails to be acquired;
if the acquisition of the erase count value of the Nth system physical block fails, reading the erase count values of N +1 physical pages, and returning to the step of judging whether the acquisition of the erase count value of the Nth system physical block fails;
if the erase count value of the Nth system physical block is successfully obtained, judging whether a system physical block is not read;
if the system physical blocks are not read, acquiring N +1 system physical blocks, and returning to the step of reading the erase count value of the nth physical page;
and if no system physical block is not read, recovering the erase count values of all the system physical blocks.
The further technical scheme is as follows: before the step of judging whether the system physical block erasure count table is damaged, the method also comprises the storage of a system physical block erasure count value, and the storage of the system physical block erasure count value comprises the following steps:
erasing the original system physical block, and increasing an erasing count value by 1;
acquiring an increased erase count value of the system physical block;
and writing the increased erase count value of the system physical block and the system data into the original physical block together, and writing the latest erase count value of the original physical block into a physical page spare area of the original physical block.
The further technical scheme is as follows: the physical page comprises a main area and a spare area; the main area is used for storing data, and the spare area is used for storing an erase count value.
The further technical scheme is as follows: the storage capacity of the main area is 5KB-60KB, and the storage capacity of the spare area is 30 bytes-500 bytes.
An apparatus for protecting a physical block erase count of system data, comprising: the device comprises a first judgment unit, a first acquisition unit, a reading unit, a second judgment unit, a reading return unit, a third judgment unit, an acquisition return unit and a recovery unit;
the first judging unit is used for judging whether the system physical block erasure count table is damaged or not;
the first obtaining unit is configured to obtain an nth system physical block, where an initial value of N is 1;
the reading unit is configured to read an erase count value of an nth physical page of an nth system physical block, where an initial value of N is 1;
the second judging unit is configured to judge whether the acquisition of the erase count value of the nth system physical block fails;
the reading return unit is used for reading the erase count values of n +1 physical pages;
the third judging unit is used for judging whether a system physical block is not read;
the acquisition returning unit is used for acquiring N +1 system physical blocks;
and the recovery unit is used for recovering the erase count values of all the system physical blocks.
The further technical scheme is as follows: further comprising: an erase increment unit, a second acquisition unit, and a write unit;
the erasing increasing unit is used for erasing the original system physical block, and the erasing count value is increased by 1;
the second obtaining unit is configured to obtain an increased erase count value of the system physical block;
the writing unit is used for writing the increased erase count value of the system physical block and the system data into the original physical block together, and writing the latest erase count value of the original physical block into the physical page spare area of the writing unit.
The further technical scheme is as follows: the physical page comprises a main area and a spare area; the main area is used for storing data, and the spare area is used for storing an erase count value.
The further technical scheme is as follows: the storage capacity of the main area is 5KB-60KB, and the storage capacity of the spare area is 30 bytes-500 bytes.
A computer device comprising a memory having a computer program stored thereon and a processor implementing the method of protecting a system data physical block erase count value as described above when executing the computer program.
A storage medium storing a computer program comprising program instructions which, when executed by a processor, implement a method of protecting a system data physical block erase count value as described above.
Compared with the prior art, the invention has the beneficial effects that: and scanning each system physical block, reading the erase count value from the first physical page of each system data physical block, and writing the new erase count table into a special physical block after successful reading, so that the probability of the erase count value of the system physical block being damaged is reduced, the robustness of firmware is improved, the service life of the SSD is prolonged, and the requirement can be better met.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for protecting a system data physical block erase count value according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a process of storing a physical block erase count value according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating the storage of a system data physical block erase count according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of an apparatus for protecting a system data physical block erase count according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to the embodiments shown in fig. 1 to 5, wherein, referring to fig. 1 to 3, the present invention discloses a method for protecting an erase count value of a system data physical block, comprising the following steps:
s1, judging whether the system physical block erasure count table is damaged; if the system physical block erase count table is not damaged, then go to S8;
s2, if the system physical block erase count table is damaged, acquiring the Nth system physical block, wherein the initial value of N is 1;
s3, reading the erase count value of the nth physical page of the nth system physical block, wherein the initial value of N is 1;
s4, judging whether the erase count value of the Nth system physical block fails to be acquired;
s5, if the erase count value of the Nth system physical block fails to be obtained, reading the erase count values of N +1 physical pages, and returning to the step S4 to judge whether the erase count value of the Nth system physical block fails to be obtained;
s6, if the erase count value of the Nth system physical block is successfully obtained, judging whether a system physical block is not read; if no system physical block is not read, go to S8;
s7, if there are system physical blocks not read, acquiring N +1 system physical blocks, and returning to step S3 "read the erase count value of the nth physical page";
and S8, recovering the erase count values of all system physical blocks.
After the SSD is powered on, the erase count table of the system data physical block is loaded from the special physical block and fails, at this time, each system physical block needs to be scanned, the erase count value is read from the first physical page of each system data physical block, and if the read fails, each physical page is tried to be read until the erase count value is successfully read; reading the erase count value of each system data physical block in this way, a new erase count table of the system data physical block is obtained, and then the new erase count table is written into a special physical block, so that the probability that the erase count value of the system physical block is damaged is reduced, the robustness of firmware is improved, the service life of the SSD is prolonged, and the requirements can be better met.
As shown in fig. 2, before the step of determining whether the system physical block erase count table is damaged, the method further includes storing a system physical block erase count value, where the storing of the system physical block erase count value includes the following steps:
a1, erasing the original system physical block, and increasing the erasing count value by 1;
a2, obtaining the increased erase count value of the system physical block;
a3, writing the added erase count value of the system physical block and the system data into the original physical block, and writing the latest erase count value of the original physical block into its own physical page spare area.
The method comprises the steps that system data are continuously generated or updated during the running period of the SSD, the generated or updated system data are generally stored in a system physical block in real time, the system physical block is continuously written, the physical block is erased before a new free physical block is written, the erase count of the erase times of the physical block is increased, the increased erase count and the system data to be written are written into the physical block together, the latest erase count of the physical block is written into a spare area of a physical page of the physical block, each time data is written in the mode, the ec value of the physical block is also written, and when the physical block is full, each physical page of the physical block stores the erase count of the physical block.
Referring to fig. 3, the Nand flash memory is composed of a plurality of physical blocks, each of which includes a plurality of physical pages, and each of the physical pages is a basic unit for storing data. The physical page has two areas, namely a spare area and a main area; the Main area is relatively large, and can generally store data of a few KB or dozens of KB; the spare area is relatively small, and is generally dozens of bytes or hundreds of bytes; the erase count of a physical block is generally stored by 4 bytes, and may be stored by using a spare area of the physical block, and each physical block of system data stores its own erase count in the spare area of each physical page, so that even if the erase count table of the physical block of system data is destroyed, the erase count of each physical block of system data can be obtained by scanning each physical block of system data.
Further, in this embodiment, the physical page includes a main area and a spare area; the main area is used for storing data, and the spare area is used for storing an erase count value.
Further, the storage amount of the main area is 5KB-60KB, and the storage amount of the spare area is 30 bytes-500 bytes.
The invention prevents the erasure count value of the system data physical block from losing by using the mode of storing the erasure count value of the spare area of each physical page of the system data physical block, improves the robustness of firmware and prolongs the service life of SSD.
Referring to fig. 4, the present invention also discloses a device for protecting the erase count value of the system data physical block, including: a first judgment unit 40, a first acquisition unit 50, a reading unit 60, a second judgment unit 70, a reading return unit 80, a third judgment unit 90, an acquisition return unit 100, and a recovery unit 110;
the first judging unit 40 is configured to judge whether the system physical block erase count table is damaged;
the first obtaining unit 50 is configured to obtain an nth system physical block, where an initial value of N is 1;
the reading unit 60 is configured to read an erase count value of an nth physical page of an nth system physical block, where an initial value of N is 1;
the second determining unit 70 is configured to determine whether the acquisition of the erase count value of the nth system physical block fails;
the read return unit 80 is configured to read the erase count values of n +1 physical pages;
the third judging unit 90 is configured to judge whether there are any system physical blocks that have not been read;
the obtaining and returning unit 100 is configured to obtain N +1 system physical blocks;
the recovery unit 110 is configured to recover the erase count values of all system physical blocks.
Wherein, the device still includes: an erase adding unit 10, a second obtaining unit 20, and a writing unit 30;
the erasure increment unit 10 is configured to erase an original system physical block, and increment an erasure count value by 1;
the second obtaining unit 20 is configured to obtain an increased erase count value of the system physical block;
the writing unit 30 is configured to write the increased erase count value of the system physical block and the system data into the original physical block together, and write the latest erase count value of the original physical block into its own physical page spare area.
Wherein the physical page includes a main area and a spare area; the main area is used for storing data, and the spare area is used for storing an erase count value.
Further, the storage amount of the main area is 5KB-60KB, and the storage amount of the spare area is 30 bytes-500 bytes.
It should be noted that, as can be clearly understood by those skilled in the art, the above-mentioned apparatus for protecting the system data physical block erasure count value and the specific implementation process of each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided here.
The means for protecting the system data physical block erase count value described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present application; the computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 5, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a method of protecting system data physical block erase count values.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be caused to perform a method for protecting the system data physical block erase count value.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions which, when executed by a processor, implement the method of protecting a system data physical block erase count value described above.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.
Claims (10)
1. A method for protecting a physical block erase count of system data, comprising the steps of:
judging whether the system physical block erasure count table is damaged or not;
if the system physical block erase count table is not damaged, recovering the erase count values of all system physical blocks;
if the system physical block erasure count table is damaged, acquiring an Nth system physical block, wherein the initial value of N is 1;
reading an erase count value of an nth physical page of an nth system physical block, wherein an initial value of N is 1;
judging whether the erase count value of the Nth system physical block fails to be acquired;
if the acquisition of the erase count value of the Nth system physical block fails, reading the erase count values of N +1 physical pages, and returning to the step of judging whether the acquisition of the erase count value of the Nth system physical block fails;
if the erase count value of the Nth system physical block is successfully obtained, judging whether a system physical block is not read;
if the system physical blocks are not read, acquiring N +1 system physical blocks, and returning to the step of reading the erase count value of the nth physical page;
and if no system physical block is not read, recovering the erase count values of all the system physical blocks.
2. The method for protecting system data physical block erase count values of claim 1, further comprising storing system physical block erase count values prior to said step of determining if said system physical block erase count table is corrupted, said storing of system physical block erase count values comprising the steps of:
erasing the original system physical block, and increasing an erasing count value by 1;
acquiring an increased erase count value of the system physical block;
and writing the increased erase count value of the system physical block and the system data into the original physical block together, and writing the latest erase count value of the original physical block into a physical page spare area of the original physical block.
3. The method of protecting a system data physical block erase count value of claim 1, wherein said physical page includes a main area and a spare area; the main area is used for storing data, and the spare area is used for storing an erase count value.
4. The method of claim 3, wherein the main area is 5KB to 60KB and the spare area is 30 bytes to 500 bytes.
5. An apparatus for protecting a physical block erase count of system data, comprising: the device comprises a first judgment unit, a first acquisition unit, a reading unit, a second judgment unit, a reading return unit, a third judgment unit, an acquisition return unit and a recovery unit;
the first judging unit is used for judging whether the system physical block erasure count table is damaged or not;
the first obtaining unit is configured to obtain an nth system physical block, where an initial value of N is 1;
the reading unit is configured to read an erase count value of an nth physical page of an nth system physical block, where an initial value of N is 1;
the second judging unit is configured to judge whether the acquisition of the erase count value of the nth system physical block fails;
the reading return unit is used for reading the erase count values of n +1 physical pages;
the third judging unit is used for judging whether a system physical block is not read;
the acquisition returning unit is used for acquiring N +1 system physical blocks;
and the recovery unit is used for recovering the erase count values of all the system physical blocks.
6. The apparatus for protecting a system data physical block erase count value of claim 5, further comprising: an erase increment unit, a second acquisition unit, and a write unit;
the erasing increasing unit is used for erasing the original system physical block, and the erasing count value is increased by 1;
the second obtaining unit is configured to obtain an increased erase count value of the system physical block;
the writing unit is used for writing the increased erase count value of the system physical block and the system data into the original physical block together, and writing the latest erase count value of the original physical block into the physical page spare area of the writing unit.
7. The apparatus for protecting a system data physical block erase count value of claim 5, wherein said physical page includes a main area and a spare area; the main area is used for storing data, and the spare area is used for storing an erase count value.
8. The apparatus for protecting a system data physical block erase count value of claim 7, wherein said main area stores 5KB to 60KB and said spare area stores 30 bytes to 500 bytes.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method of protecting a system data physical block erase count value according to any of claims 1-4 when executing the computer program.
10. A storage medium, characterized in that the storage medium stores a computer program comprising program instructions which, when executed by a processor, implement the method of protecting a system data physical block erase count value according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911093822.8A CN110865772A (en) | 2019-11-11 | 2019-11-11 | Method and device for protecting system data physical block erasure count value, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911093822.8A CN110865772A (en) | 2019-11-11 | 2019-11-11 | Method and device for protecting system data physical block erasure count value, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110865772A true CN110865772A (en) | 2020-03-06 |
Family
ID=69653634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911093822.8A Pending CN110865772A (en) | 2019-11-11 | 2019-11-11 | Method and device for protecting system data physical block erasure count value, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110865772A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113126916A (en) * | 2021-03-29 | 2021-07-16 | 广州安凯微电子股份有限公司 | Data restoration method and device after abnormal power failure |
CN114005476A (en) * | 2021-10-29 | 2022-02-01 | 锐凌无线通讯科技(深圳)有限公司 | Flash memory, flash memory erasing and writing counting method, electronic equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1754230A (en) * | 2003-01-28 | 2006-03-29 | 桑迪士克股份有限公司 | Non-volatile semiconductor memory with large erase blocks storing cycle count values |
CN102073595A (en) * | 2011-01-24 | 2011-05-25 | 华亚微电子(上海)有限公司 | Power failure prevention loss balanced storage method |
CN102081577A (en) * | 2011-01-12 | 2011-06-01 | 厦门雅迅网络股份有限公司 | Data storage structure of Flash memory and data manipulation mode thereof |
CN108628752A (en) * | 2017-03-17 | 2018-10-09 | 北京兆易创新科技股份有限公司 | A kind of date storage method and device |
CN110333971A (en) * | 2019-07-10 | 2019-10-15 | 深圳忆联信息系统有限公司 | SSD bad block table backup method, device, computer equipment and storage medium |
-
2019
- 2019-11-11 CN CN201911093822.8A patent/CN110865772A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1754230A (en) * | 2003-01-28 | 2006-03-29 | 桑迪士克股份有限公司 | Non-volatile semiconductor memory with large erase blocks storing cycle count values |
CN102081577A (en) * | 2011-01-12 | 2011-06-01 | 厦门雅迅网络股份有限公司 | Data storage structure of Flash memory and data manipulation mode thereof |
CN102073595A (en) * | 2011-01-24 | 2011-05-25 | 华亚微电子(上海)有限公司 | Power failure prevention loss balanced storage method |
CN108628752A (en) * | 2017-03-17 | 2018-10-09 | 北京兆易创新科技股份有限公司 | A kind of date storage method and device |
CN110333971A (en) * | 2019-07-10 | 2019-10-15 | 深圳忆联信息系统有限公司 | SSD bad block table backup method, device, computer equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113126916A (en) * | 2021-03-29 | 2021-07-16 | 广州安凯微电子股份有限公司 | Data restoration method and device after abnormal power failure |
CN114005476A (en) * | 2021-10-29 | 2022-02-01 | 锐凌无线通讯科技(深圳)有限公司 | Flash memory, flash memory erasing and writing counting method, electronic equipment and computer storage medium |
WO2023070842A1 (en) * | 2021-10-29 | 2023-05-04 | 锐凌无线有限责任公司 | Flash memory, flash memory erase/write counting method, electronic device, and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070055969A1 (en) | System and method for updating firmware | |
US9710340B2 (en) | Replacement of a corrupt driver variable record | |
CN110333971B (en) | SSD bad block table backup method and device, computer equipment and storage medium | |
CN109508148B (en) | Metadata reconstruction method and device and computer readable storage medium | |
TWI633428B (en) | Data storage device and methods for processing data in the data storage device | |
CN111324303A (en) | SSD garbage recycling method and device, computer equipment and storage medium | |
CN113391947A (en) | SSD RAID stripe power failure rapid recovery method, device, computer equipment and storage medium | |
CN109213450B (en) | Associated metadata deleting method, device and equipment based on flash memory array | |
CN110865772A (en) | Method and device for protecting system data physical block erasure count value, computer equipment and storage medium | |
CN113641309A (en) | Weak block identification method and device of SSD, computer equipment and storage medium | |
CN115543217B (en) | Data organization method, device, server and medium for independent redundant disk array | |
CN108920107B (en) | Method and device for screening cold data, computer equipment and storage medium | |
CN110471625B (en) | Bad block information protection method and device, computer equipment and storage medium | |
CN111966531B (en) | Data snapshot method and device, computer equipment and storage medium | |
CN109960611B (en) | Data recovery method and device, electronic equipment and machine-readable storage medium | |
CN110729014A (en) | Method and device for backing up erase count table in SSD (solid State disk) storage, computer equipment and storage medium | |
CN114155906A (en) | Data block repairing method, device, equipment and storage medium | |
CN106909512B (en) | Storage device using method and system | |
CN118152181A (en) | Solid state disk data recovery method, terminal equipment, electronic equipment and storage medium | |
CN105335095A (en) | Flash file system processing method and apparatus | |
CN115587050A (en) | Mapping table garbage recovery efficiency method and device, computer equipment and medium | |
JP4239754B2 (en) | Nonvolatile memory system | |
CN116360705A (en) | Method, device, equipment and storage medium for improving SSD starting speed | |
CN114816833B (en) | Writing method, device and system of flash data | |
KR100575927B1 (en) | How to boot from mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200306 |