CN112631516B - FLASH file management system with service life management function - Google Patents

FLASH file management system with service life management function Download PDF

Info

Publication number
CN112631516B
CN112631516B CN202011530484.2A CN202011530484A CN112631516B CN 112631516 B CN112631516 B CN 112631516B CN 202011530484 A CN202011530484 A CN 202011530484A CN 112631516 B CN112631516 B CN 112631516B
Authority
CN
China
Prior art keywords
file
area
storage
attribute data
data
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.)
Active
Application number
CN202011530484.2A
Other languages
Chinese (zh)
Other versions
CN112631516A (en
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.)
Shanghai Holystar Information Technology Co ltd
Original Assignee
Shanghai Holystar Information Technology Co 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 Shanghai Holystar Information Technology Co ltd filed Critical Shanghai Holystar Information Technology Co ltd
Priority to CN202011530484.2A priority Critical patent/CN112631516B/en
Publication of CN112631516A publication Critical patent/CN112631516A/en
Application granted granted Critical
Publication of CN112631516B publication Critical patent/CN112631516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a FLASH file management system with service life management, comprising: a file storage module comprising: the directory area is used for storing basic information of the Flash file to form a file directory; the file information area is used for storing the attribute data of the Flash file; the data area is used for storing the content data of the Flash file; a file management module comprising: the balance management unit stores the attribute data in each storage block in a rotating manner; the write-in management unit is used for extracting the basic information, the attribute data and the content data of a file to be written in, sequentially writing the basic information into the directory area, writing the attribute data into the storage block and writing the content data into the file information area; and the power failure management unit is used for performing power failure management on the directory area by respectively reading and comparing the directory area and the file information area in the power-on recovery process when detecting that power failure occurs in the writing process of the directory area. The beneficial effects are that the service life of FLASH is effectively prolonged; and the data loss caused by power failure is reduced.

Description

FLASH file management system with service life management function
Technical Field
The invention relates to the technical field of storage data management, in particular to a FLASH file management system with service life management function.
Background
The FLASH memory has the advantages of high speed, large capacity, low cost and the like, so the FLASH memory is widely used as a storage device, and the FLASH memory needs to have a file system of the FLASH memory to realize data storage and management. The existing file management system aiming at the FLASH memory is few, the influence of the existing general file management system on a power-down file is uncontrollable after hardware is powered down, a power-down processing mechanism is not perfect, meanwhile, as the record information of the general file management system needs to be modified for many times and is placed in a fixed block of the FLASH memory, and the balance of the file life is lacked, the service life of the FLASH memory is shortened due to frequent operation of the block.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a FLASH file management system with service life management, which is used for carrying out storage management on a FLASH file and comprises the following steps:
a file storage module, the file storage module comprising:
the directory area is used for storing the basic information of each Flash file to form a file directory;
the file information area is used for correspondingly storing the attribute data of each Flash file in the file directory and is provided with a plurality of storage blocks;
the data area is used for correspondingly storing the content data of each Flash file in the file directory;
the file management module is connected with the file storage module and comprises:
the balance management unit is used for rotating and storing each attribute data in each storage block and setting the storage block which currently stores the attribute data to be in a usable state;
a write-in management unit, configured to extract the basic information, the attribute data, and the content data of a file to be written in, write the basic information into the directory area in sequence, write the attribute data into the storage block in the usable state, and write the content data into the file information area;
and the power failure management unit is used for performing power failure management on the directory area by respectively reading and comparing the directory area and the file information area in the power-on recovery process when detecting that power failure occurs in the writing process of the directory area.
Preferably, the file information area comprises a main information storage area and a standby information storage area, wherein a plurality of storage blocks are arranged in the main information storage area, and the storage blocks in the standby information storage area correspond to the storage blocks in the main information storage area one to one;
and the writing management unit correspondingly writes the attribute data into the storage blocks which are in a usable state in the main information storage area and the standby information storage area respectively.
Preferably, the file management module further includes a reading management unit, and the reading management unit includes:
the first checking subunit is used for obtaining the corresponding attribute data by matching the basic information of the file to be read in the main information storage area, checking the attribute data, outputting a first checking signal when the checking is passed, and outputting a second checking signal when the checking is not passed;
the second checking subunit is connected with the first checking subunit and used for obtaining the corresponding attribute data according to the matching of the second checking signal and the basic information in the standby information storage area, checking the attribute data, outputting a third checking signal when the checking is passed and outputting a fourth checking signal when the checking is not passed;
the first processing subunit is respectively connected with the first checking subunit and the second checking subunit, and is configured to read the corresponding content data in the data area according to the first checking signal and the corresponding attribute data, and read the corresponding content data in the data area according to the third checking signal and the corresponding attribute data;
and the second processing subunit is connected with the second checking subunit and is used for replacing the attribute data corresponding to the main information storage area with the attribute data stored in the standby information storage area according to the third checking signal and performing system formatting according to the fourth checking signal.
Preferably, a checksum algorithm is used to verify the attribute data.
Preferably, the attribute data includes a file type of the file to be written;
each storage block is divided into a plurality of storage areas in advance, each storage area is associated with a preset file type, and each storage area is associated with at least one storage address in the data area;
the writing management unit writes the attribute data into the storage area associated with the corresponding file type, and then writes the content data of the file to be written into the data area according to the storage address associated with the storage area.
Preferably, each of the memory regions is pre-divided into a plurality of sub-regions, and each of the sub-regions is associated with at least one of the memory addresses in the data region;
the write-in management unit writes the attribute data into the corresponding sub-area in the storage area associated with the corresponding file type, and writes the content data of the file to be written into the data area according to the storage address associated with the sub-area.
Preferably, the balance management unit moves the attribute data in the original storage block to a next storage block when a preset trigger condition is met, sets the original storage block to be in an unavailable state, and sets the next storage block to be in an available state.
Preferably, each of the memory blocks is associated with a flag bit, and the balance management unit implements, by assigning a value to the flag bit, setting the corresponding memory block to the unavailable state or the available state.
Preferably, the power down management unit includes:
a detecting subunit, configured to read the basic information stored in the directory area and the attribute data stored in the file information area, respectively, and output a detection signal indicating that a power failure occurs when the directory area is written in when the attribute data associated with the basic information does not exist in the file information area;
and the covering subunit is connected with the detecting subunit and used for taking the basic information which is not associated with the attribute data as power failure loss data in the power-on recovery process according to the detection signal and covering the power failure loss data when a next file is written so as to realize power failure management on the directory area.
The technical scheme has the following advantages or beneficial effects:
1) the file information area which needs to be erased and written frequently is subjected to balanced management, so that the service life of the FLASH is effectively prolonged;
2) when the hardware is powered down, whether power down occurs in the process of writing in the directory area can be detected, and power down management can be performed on the directory area in the process of power up recovery, so that data loss caused by power down in the process of writing in the directory area is reduced;
3) by carrying out area division on the storage block and associating the storage address of the data area, the searching time during data reading is effectively shortened, the data reading speed is improved, and the use experience of a user is further improved.
Drawings
FIG. 1 is a schematic structural diagram of a FLASH document management system with lifetime management according to a preferred embodiment of the present invention;
FIG. 2 is a schematic diagram of a file storage module according to a preferred embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present invention is not limited to the embodiment, and other embodiments may be included in the scope of the present invention as long as the gist of the present invention is satisfied.
In a preferred embodiment of the present invention, based on the above problems in the prior art, a FLASH file management system with lifetime management is now provided, for performing storage management on a FLASH file, as shown in fig. 1 and fig. 2, including:
the file storage module 1, the file storage module 1 includes:
the directory area 11 is used for storing the basic information of each Flash file to form a file directory;
a file information area 12 for storing the attribute data of each Flash file in the file directory, the file information area having a plurality of storage blocks 121;
a data area 13 for correspondingly storing the content data of each Flash file in the file directory;
file management module 2, connect file storage module 1, file management module 2 includes:
the balance management unit 21 is configured to store each attribute data in each storage block in a round-robin manner, and set the storage block in which the attribute data is currently stored to a usable state;
the write-in management unit 22 is configured to extract basic information, attribute data, and content data of a file to be written in, write the basic information into the directory area in sequence, write the attribute data into the storage block in the usable state, and write the content data into the file information area;
and the power failure management unit 23 is configured to, when detecting that a power failure occurs in the writing process of the directory area, perform power failure management on the directory area by respectively reading and comparing the directory area and the file information area in the power-on recovery process.
Specifically, in this embodiment, the file storage module 1 is divided into three blocks, so that the basic information, the attribute data, and the content data of the Flash file are respectively stored, and each block is conveniently and respectively managed. The basic information includes but is not limited to a file name of the Flash file, and the attribute data includes but is not limited to a file size and a setup time of the Flash file. By setting the directory area 11 for storing the basic information, the basic information of each Flash file is intensively placed, so that the file retrieval is conveniently carried out according to the basic information, and the file retrieval efficiency is effectively improved. Further, since the file name of the Flash file is fixed, before the file to be written is written, it may be checked whether the file name of the file to be written is stored in the directory area 11, if the file name of the file to be written already exists in the directory area 11, the writing process does not need to perform an erasing operation on the directory area, if the file name of the file to be written does not exist in the directory area 11, the file to be written is a new file, and at this time, the erasing operation needs to be performed on the directory area 11, based on this, the erasing operation frequency of the directory area 11 is low, and the erasing life of Flash is usually about 10 ten thousand times, which can meet the normal use requirement, so in this embodiment, the directory area 11 is not subjected to balanced management.
Taking the attribute data as the file size as an example, since the attribute data of the Flash file with the same file name may be updated in the file size due to the increase and decrease of part of the content data at different acquisition times, the corresponding attribute data is usually updated in real time during each writing of the Flash file, that is, the file information area 12 needs to be frequently erased and written. Based on this, in the present embodiment, by providing a plurality of storage blocks 121 in the file information area 12, the balanced management of the attribute data in the file information area 12 is realized. The set number of the storage blocks 121 can be adjusted according to the requirement of the design service life, and the greater the set number of the storage blocks 121, the longer the service life is. Taking the three storage blocks 121 as an example, the three storage blocks are respectively a first storage block, a second storage block and a third storage block, preferably, each time one of the storage blocks is set to be in a usable state, the other two storage blocks are set to be in an unusable state, when the first storage block is in the usable state, the attribute data written in and read from the first storage block are both directed to the first storage block, when the storage state of the first storage block meets a certain preset trigger condition, the attribute data stored in the first storage block can be moved to the second storage block, when the original storage data in the first storage block is erased, the first storage block is set to be in the unusable state, the second storage block is set to be in the usable state, so as to facilitate the subsequent writing in and reading of the attribute data, and so on, when the storage state of the third storage block meets a certain preset trigger condition, the attribute data in in the third storage block is moved to the first storage block, completing one rotation. Because the erasing frequency of the whole file information area is equally divided into the three storage blocks, the service life of each storage block is effectively prolonged, and the service life of the whole file storage module 1 is prolonged. It should be noted that the above-mentioned rotation method is only one example, and the technical solution is not limited thereto.
Further, in the writing process of the file to be written, firstly writing the basic information of the file to be written into the directory area 1, then writing the attribute data into the corresponding file information area, and further storing the content data into the storage address of the data area according to the storage address of the data area associated with the attribute data.
In this embodiment, since the basic information stored in the directory area 11 and the attribute data stored in the file information area 12 are in one-to-one correspondence, by the above-described writing order, when a power loss occurs during the writing of the directory area 11, due to the writing of the directory area 11 with the basic information at this time, whereas the attribute data has not yet been written due to the power failure, the file information area 12 has no attribute data corresponding to the basic information, therefore, by comparing the stored data in the directory area 11 and the file information area 12, it is possible to locate the write data before the power failure of the directory area 11, in other words, it is possible to determine the normal data and abnormal data stored in the directory area 11, therefore, normal data is reserved, abnormal data is covered when the data is written next time, data loss caused by power failure is minimized, and the phenomenon that the whole directory area is disordered due to power failure in the existing directory area writing process is effectively avoided.
In a preferred embodiment of the present invention, the file information area 12 includes a main information storage area 122 and a standby information storage area 123, wherein a plurality of storage blocks 121 are disposed in the main information storage area 122, and the storage blocks 121 in the standby information storage area 123 correspond to the storage blocks 121 in the main information storage area 122 one to one;
the write management unit 222 writes the attribute data correspondingly to the memory blocks in the usable state in the main information memory area 122 and the spare information memory area 123, respectively.
Specifically, in this embodiment, the main information storage area 122 and the standby information storage area 123 are redundantly arranged in the file information area 12, so that the attribute data is backed up, and the influence on data reading caused by loss or damage of the attribute data stored in the main information storage area 122 due to power failure or other influence factors in the data writing process is avoided.
Further, a plurality of storage blocks 121 are respectively and correspondingly arranged in the main information storage area 122 and the standby information storage area 123, that is, the main information storage area 122 and the standby information storage area 123 are both managed in a balanced manner, and the service life is effectively prolonged.
In a preferred embodiment of the present invention, the file management module 2 further includes a reading management unit 24, and the reading management unit 24 includes:
the first checking subunit 241 is configured to obtain corresponding attribute data by matching the basic information of the file to be read in the main information storage area, check the attribute data, output a first checking signal when the checking is passed, and output a second checking signal when the checking is not passed;
the second checking subunit 242, connected to the first checking subunit 241, is configured to obtain corresponding attribute data by matching the second checking signal and the basic information in the standby information storage area, check the attribute data, output a third checking signal when the checking is passed, and output a fourth checking signal when the checking is not passed;
a first processing subunit 243, respectively connected to the first checking subunit 241 and the second checking subunit 242, for reading the corresponding content data in the data area according to the first checking signal and the corresponding attribute data, and reading the corresponding content data in the data area according to the third checking signal and the corresponding attribute data;
the second processing sub-unit 244 is connected to the second checking sub-unit 242, and is configured to replace the attribute data stored in the main information storage area with the attribute data stored in the spare information storage area according to the third checking signal, and perform system formatting according to the fourth checking signal.
Specifically, in this embodiment, since the attribute data stored in the main information storage area 122 may cause data loss or damage due to factors such as hardware power failure, the attribute data is verified after being read, and only after the main information storage area 122 and the standby information storage area 123 both pass the verification, the attribute data is complete and correct, so as to ensure the correctness of the read data.
In the preferred embodiment of the present invention, the attribute data is verified using a checksum algorithm.
In a preferred embodiment of the present invention, the attribute data includes a file type of a file to be written;
each storage block is divided into a plurality of storage areas in advance, each storage area is associated with a preset file type, and each storage area is associated with at least one storage address in a data area;
the write management unit 22 writes the attribute data into the storage area associated with the corresponding file type, and then writes the content data of the file to be written into the data area according to the storage address associated with the storage area.
Specifically, in this embodiment, the application may be applied to an application scenario that has standard requirements on the type and the file size of a storage file, such as an electric power project application scenario, where the Flash file to be stored has a preset file type, and there is an upper limit requirement on the file size of each Flash file, that is, the file type and the file size of the file to be written in are predictable. Based on the above, the attribute data of each Flash file can be stored in the storage area associated with the matched file type.
In a preferred embodiment of the present invention, each memory region is pre-divided into a plurality of sub-regions, and each sub-region is associated with at least one memory address in the data region;
the write management unit 22 writes the attribute data into the corresponding sub-area in the storage area associated with the corresponding file type, and writes the content data of the file to be written into the data area according to the storage address associated with the sub-area.
Specifically, in this embodiment, based on the file to be written in which the file type and the file size are predictable, the storage area may be pre-divided into a plurality of sub-areas, and preferably, the storage space of each sub-area is set to be not smaller than the upper limit of the file size, so that when the attribute data is written in, and the original sub-area needs to be covered, only the stored data in the original sub-area needs to be erased, and then the attribute data is written in, and calculation of the data size is not needed, and then subsequent operations such as allocation of the storage space and the like are performed according to the data size, thereby effectively increasing the storage rate.
In a preferred embodiment of the present invention, the balance management unit 21 moves the attribute data in the original storage block to the next storage block when a preset trigger condition is satisfied, and sets the original storage block to be in an unavailable state and sets the next storage block to be in an available state.
Specifically, in this embodiment, the preset trigger condition may be a preset time, that is, the attribute data may be moved at a certain time every day, but not limited thereto.
In the preferred embodiment of the present invention, each memory block 121 is associated with a flag bit, and the balance management unit 21 implements setting of the corresponding memory block to the unavailable state or the available state by assigning a value to the flag bit.
Specifically, in this embodiment, a flag bit associated with a memory block may be assigned a 0 value to indicate an unavailable state, while a flag bit may be assigned a 1 value to indicate a usable state.
In a preferred embodiment of the present invention, the power down management unit 23 includes:
a detection subunit 231, configured to read the basic information stored in the directory area and the attribute data stored in the file information area, respectively, and output a detection signal indicating that a power failure occurs when the directory area is written in when there is no attribute data associated with the basic information in the file information area;
and the covering subunit 232 is connected to the detecting subunit 231, and is configured to use, according to the detection signal, the basic information not associated with the attribute data as power loss data in the power-on recovery process, and cover the power loss data when the next file is written, so as to implement power loss management on the directory area.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (9)

1. A FLASH file management system with service life management is characterized by being used for carrying out storage management on a FLASH file and comprising the following steps:
a file storage module, the file storage module comprising:
the directory area is used for storing the basic information of each Flash file to form a file directory;
the file information area is used for correspondingly storing the attribute data of each Flash file in the file directory, and the file information area is provided with a plurality of storage blocks;
the data area is used for correspondingly storing the content data of each Flash file in the file directory;
the file management module is connected with the file storage module and comprises:
the balance management unit is used for alternately storing each attribute data in each storage block and setting the storage block which currently stores the attribute data to be in a usable state;
a write-in management unit, configured to extract the basic information, the attribute data, and the content data of a file to be written in, write the basic information into the directory area in sequence, write the attribute data into the storage block in the usable state, and write the content data into the file information area;
and the power failure management unit is used for performing power failure management on the directory area by respectively reading and comparing the directory area and the file information area in the power-on recovery process when detecting that power failure occurs in the writing process of the directory area.
2. The FLASH file management system according to claim 1, wherein the file information area comprises a main information storage area and a standby information storage area, wherein a plurality of the storage blocks are arranged in the main information storage area, and the storage blocks in the standby information storage area correspond to the storage blocks in the main information storage area one to one;
and the writing management unit correspondingly writes the attribute data into the storage blocks which are in a usable state in the main information storage area and the standby information storage area respectively.
3. The FLASH file management system of claim 2, wherein said file management module further comprises a read management unit, said read management unit comprising:
the first checking subunit is used for obtaining the corresponding attribute data according to the matching of the basic information of the file to be read in the main information storage area, checking the attribute data, outputting a first checking signal when the checking is passed, and outputting a second checking signal when the checking is not passed;
the second checking subunit is connected with the first checking subunit and used for obtaining the corresponding attribute data according to the matching of the second checking signal and the basic information in the standby information storage area, checking the attribute data, outputting a third checking signal when the checking is passed and outputting a fourth checking signal when the checking is not passed;
the first processing subunit is respectively connected with the first checking subunit and the second checking subunit, and is configured to read the corresponding content data in the data area according to the first checking signal and the corresponding attribute data, and read the corresponding content data in the data area according to the third checking signal and the corresponding attribute data;
and the second processing subunit is connected with the second checking subunit and is used for replacing the attribute data corresponding to the main information storage area with the attribute data stored in the standby information storage area according to the third checking signal and performing system formatting according to the fourth checking signal.
4. The FLASH file management system according to claim 3, wherein a checksum algorithm is used to verify said attribute data.
5. The FLASH file management system of claim 1 wherein said attribute data includes a file type of said file to be written;
each storage block is divided into a plurality of storage areas in advance, each storage area is associated with a preset file type, and each storage area is associated with at least one storage address in the data area;
the write-in management unit writes the content data of the file to be written into the data area according to the storage address associated with the storage area after writing the attribute data into the storage area associated with the corresponding file type.
6. The FLASH file management system of claim 5 wherein each of said storage regions is pre-partitioned into a plurality of sub-regions, each of said sub-regions being associated with at least one of said storage addresses in said data region;
the write-in management unit writes the attribute data into the corresponding sub-area in the storage area associated with the corresponding file type, and writes the content data of the file to be written into the data area according to the storage address associated with the sub-area.
7. The system according to claim 1, wherein the balance management unit moves the attribute data in the original storage block to the next storage block when a preset trigger condition is satisfied, sets the original storage block to the unavailable state, and sets the next storage block to the available state.
8. The FLASH file management system according to claim 7, wherein each of the storage blocks is associated with a flag bit, and the balance management unit implements setting of the corresponding storage block to the unavailable state or the available state by assigning a value to the flag bit.
9. The FLASH file management system of claim 1, wherein the power down management unit comprises:
a detecting subunit, configured to read the basic information stored in the directory area and the attribute data stored in the file information area, respectively, and output a detection signal indicating that a power failure occurs when the directory area is written in when the attribute data associated with the basic information does not exist in the file information area;
and the covering subunit is connected with the detecting subunit and used for taking the basic information which is not associated with the attribute data as power failure loss data in the power-on recovery process according to the detection signal and covering the power failure loss data when a next file is written so as to realize power failure management on the directory area.
CN202011530484.2A 2020-12-22 2020-12-22 FLASH file management system with service life management function Active CN112631516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011530484.2A CN112631516B (en) 2020-12-22 2020-12-22 FLASH file management system with service life management function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011530484.2A CN112631516B (en) 2020-12-22 2020-12-22 FLASH file management system with service life management function

Publications (2)

Publication Number Publication Date
CN112631516A CN112631516A (en) 2021-04-09
CN112631516B true CN112631516B (en) 2022-09-30

Family

ID=75321885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011530484.2A Active CN112631516B (en) 2020-12-22 2020-12-22 FLASH file management system with service life management function

Country Status (1)

Country Link
CN (1) CN112631516B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237513A (en) * 2021-12-17 2022-03-25 四川九洲空管科技有限责任公司 File data memory, writing method, reading method and storage system
CN114265562B (en) * 2021-12-27 2022-09-20 北京国腾创新科技有限公司 File storage method and system based on flash memory
CN114327292B (en) * 2021-12-31 2024-02-02 上海移为通信技术股份有限公司 File management method, system, electronic device and storage medium
CN117742588B (en) * 2023-11-30 2024-06-04 武汉芯必达微电子有限公司 Data storage method and system using Flash simulation EEPROM

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176752A (en) * 2012-07-02 2013-06-26 晶天电子(深圳)有限公司 Super-endurance solid-state drive with Endurance Translation Layer (ETL) and diversion of temp files for reduced Flash wear
CN108874688A (en) * 2018-06-29 2018-11-23 深圳市风云实业有限公司 A kind of message data caching method and device
CN109086221A (en) * 2018-07-20 2018-12-25 郑州云海信息技术有限公司 A kind of method and system increasing storage device memory capacity
CN111159114A (en) * 2019-12-30 2020-05-15 中国科学院寒区旱区环境与工程研究所 File storage method and device and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7181611B2 (en) * 2002-10-28 2007-02-20 Sandisk Corporation Power management block for use in a non-volatile memory system
JP6584823B2 (en) * 2014-06-20 2019-10-02 株式会社東芝 Memory management apparatus, program, and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176752A (en) * 2012-07-02 2013-06-26 晶天电子(深圳)有限公司 Super-endurance solid-state drive with Endurance Translation Layer (ETL) and diversion of temp files for reduced Flash wear
CN108874688A (en) * 2018-06-29 2018-11-23 深圳市风云实业有限公司 A kind of message data caching method and device
CN109086221A (en) * 2018-07-20 2018-12-25 郑州云海信息技术有限公司 A kind of method and system increasing storage device memory capacity
CN111159114A (en) * 2019-12-30 2020-05-15 中国科学院寒区旱区环境与工程研究所 File storage method and device and server

Also Published As

Publication number Publication date
CN112631516A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN112631516B (en) FLASH file management system with service life management function
JP5162535B2 (en) Method and memory system using memory system
US8886912B2 (en) Methods and apparatus for reallocating addressable spaces within memory devices
US10120769B2 (en) Raid rebuild algorithm with low I/O impact
US20090265403A1 (en) File system
KR20100080350A (en) Recovery for non-volatile memory after power loss
CN109496292B (en) Disk management method, disk management device and electronic equipment
US9811275B2 (en) Memory system and data control method
CN103377143A (en) Memorizer management method, memorizer controller and memorizer memory device
US10423524B2 (en) Memory storage device, control circuit unit and method including storing logical-to-physical table bit map information in a management unit and not storing identical data content
CN102279757A (en) Method and device for starting system program
CN108664208B (en) File additional writing operation method and device based on FLASH memory
US9990152B1 (en) Data writing method and storage controller
CN103578566B (en) Memory storage apparatus and restorative procedure thereof
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
US8966161B2 (en) Memory storage device and restoring method thereof
EP2264602A1 (en) Memory device for managing the recovery of a non volatile memory
US11294779B2 (en) Memory device providing fast data recovery
KR100954603B1 (en) A log file of file system and method for recovering file system
KR20050062638A (en) Method and apparatus for resolving physical blocks associated with a common logical block
WO2010145967A1 (en) Memory device for managing the recovery of a non volatile memory
CN111258498B (en) FLASH memory management method
CN114840358A (en) Data restoration method, device and medium based on virtual disk
CN110286850B (en) Writing method and recovery method of metadata of solid state disk and solid state disk
JP3826115B2 (en) Storage device, memory management 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