CN102622301A - Method and system for reading and updating flash-memory files - Google Patents

Method and system for reading and updating flash-memory files Download PDF

Info

Publication number
CN102622301A
CN102622301A CN2011100310574A CN201110031057A CN102622301A CN 102622301 A CN102622301 A CN 102622301A CN 2011100310574 A CN2011100310574 A CN 2011100310574A CN 201110031057 A CN201110031057 A CN 201110031057A CN 102622301 A CN102622301 A CN 102622301A
Authority
CN
China
Prior art keywords
file
bunch
information
address information
control information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011100310574A
Other languages
Chinese (zh)
Inventor
周军
袁兰平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN SINOSUN TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN SINOSUN 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 SHENZHEN SINOSUN TECHNOLOGY Co Ltd filed Critical SHENZHEN SINOSUN TECHNOLOGY Co Ltd
Priority to CN2011100310574A priority Critical patent/CN102622301A/en
Publication of CN102622301A publication Critical patent/CN102622301A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is applicable to the field of memory technology, and provides a method and system for reading and updating flash-memory files. The method comprises the following steps: matching an input file name with a file name in file control information of a file system, wherein file status identifier information in the file control information is a valid file identifier; acquiring the cluster address information of the file from the file control information in which the matched file name is; and according to the reading mode of the input file, returning the cluster address information of the file or file data stored in a cluster corresponding to the cluster address information. According to the invention, an file is read according to a file reading mode, thereby improving the utilization ratio of a memory space of the file system and the reading efficiency of files; and in the process of file updating, an operation of file writing-in is performed in the way of redistributing the memory space without erasing original files, thereby providing guarantees for power-fail recovery in the writing-in process, and improving the speed of file writing-in.

Description

Reading and update method and system of a kind of flash file
Technical field
The invention belongs to technical field of memory, relate in particular to a kind of flash file and read and update method and system.
Background technology
NOR FLASH and NAND FLASH are two kinds of main nonvolatile flash memory technology on the present market.NOR FLASH is fit to the less code of storage data volume, data etc.; Embedded program can be to carry out (Execute In Place in the chip; XIP) mode is carried out, and makes application program directly in flash memory, to move, and need not code be read in the Installed System Memory and carry out.
At present existing flash memory file system (for example FAT32, JFFS2 etc.) function ratio is more complete; Yet existing flash memory file system power loss recovery ability; System needs bigger internal memory support, and itself program occupation space is big, causes the space availability ratio of flash memory low; Data read-write operation is loaded down with trivial details, and data security is poor.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of flash file to read and update method and system; Be intended to solve because at present existing flash memory file system power loss recovery ability; System needs bigger internal memory support, and itself program occupation space is big, causes the space availability ratio of flash memory low; Data read-write operation is loaded down with trivial details, the problem of data security difference.
The embodiment of the invention is achieved in that a kind of flash file read method, and said method comprises the steps:
Filename in the document control information of filename of importing and file system is mated, and the file status identification information in the said document control information is that file effectively identifies;
From the document control information that the filename that matees belongs to, obtain bunch address information of file;
Read bunch address information or the said bunch of corresponding bunch files stored data of address information of mode backspace file according to the file of input.
Another purpose of the embodiment of the invention is to provide a kind of flash file reading system, and said system comprises:
The filename matching unit is used for the filename of the document control information of filename and the file system of input is mated, and the file status identification information in the said document control information is that file effectively identifies;
Information acquisition unit is used for obtaining from the document control information at the filename place of coupling bunch address information of file; And
File data returns the unit, is used for reading according to the file of input bunch address information or said bunch of corresponding bunch files stored data of address information of mode backspace file.
Another purpose of the embodiment of the invention is to provide a kind of flash file update method, and said method comprises the steps:
Be set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file to be updated in the file update instruction;
Redistribute bunch for said file to be updated, said file status identification information is set to file and writes sign, with the file data of said file to be updated be written to redistribute bunch;
Bunch address information of file to be updated described in the updating file system, said bunch of address information is arranged in the document control information of file system.
Another purpose of the embodiment of the invention is to provide a kind of flash file update system, and said system comprises:
Second sign is provided with subelement, is used for being set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file update instruction file to be updated;
Data write unit is used to said file to be updated and redistributes bunch, and said file status identification information is set to file and writes sign, with the file data of said file to be updated be written to redistribute bunch; And
Bunch address information updating block is used for bunch address information of file to be updated described in the updating file system, and said bunch of address information is arranged in the document control information of file system.
The embodiment of the invention is mated the filename in the document control information of filename of importing and file system when reading flash file, from the document control information that the filename that matees belongs to, obtains bunch address information of file; Read bunch address information or the corresponding bunch files stored data of bunch address information of mode backspace file according to the file of input, when upgrading flash file, the file status identification information in the file system in the document control information of file to be updated is set to the file operation sign; For file to be updated is redistributed bunch; The file status identification information is set to file and writes sign, with the file data of file to be updated be written to redistribute bunch, bunch address information of file to be updated in the updating file system; The embodiment of the invention reads mode according to file and carries out reading of file; Improve the reading efficiency of file system operating factor of memory space and file, when updating file, adopted the mode of redistributing storage space to carry out the renewal of file; Do not wipe original; Thereby,, improved the speed that file writes with advancing for the power loss recovery in the file renewal process provides guarantee.
Description of drawings
Fig. 1 is the realization flow figure of the flash file read method that provides of first embodiment of the invention;
Fig. 2 is the structural drawing of the flash file reading system that provides of second embodiment of the invention;
Fig. 3 is the realization flow figure of the flash file update method that provides of third embodiment of the invention;
Fig. 4 is the structural drawing of the flash file update system that provides of fourth embodiment of the invention;
Fig. 5 is the structural drawing of the instantiation of the flash memory file system that provides of fifth embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention reads mode according to the file of importing and carries out reading of file when reading file data, has improved the reading efficiency of file system operating factor of memory space and file; When updating file; Employing is redistributed the mode of storage space and is carried out the renewal of file, does not wipe original, thereby guarantee is provided for the power loss recovery in the file renewal process; With advancing, improved the speed that file writes.
The embodiment of the invention provides a kind of flash file read method, and said method comprises the steps:
Filename in the document control information of filename of importing and file system is mated, and the file status identification information in the said document control information is that file effectively identifies;
From the document control information that the filename that matees belongs to, obtain bunch address information of file;
Read bunch address information or the said bunch of corresponding bunch files stored data of address information of mode backspace file according to the file of input.
The embodiment of the invention also provides a kind of flash file reading system, and said system comprises:
The filename matching unit is used for the filename of the document control information of filename and the file system of input is mated, and the file status identification information in the said document control information is that file effectively identifies;
Information acquisition unit is used for obtaining from the document control information at the filename place of coupling bunch address information of file; And
File data returns the unit, is used for reading according to the file of input bunch address information or said bunch of corresponding bunch files stored data of address information of mode backspace file.
The embodiment of the invention also provides a kind of flash file update method, and said method comprises the steps:
Be set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file to be updated in the file update instruction;
Redistribute bunch for said file to be updated, said file status identification information is set to file and writes sign, with the file data of said file to be updated be written to redistribute bunch;
Bunch address information of file to be updated described in the updating file system, said bunch of address information is arranged in the document control information of file system.
The embodiment of the invention also provides a kind of flash file update system, and said system comprises:
Second sign is provided with subelement, is used for being set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file update instruction file to be updated;
Data write unit is used to said file to be updated and redistributes bunch, and said file status identification information is set to file and writes sign, with the file data of said file to be updated be written to redistribute bunch; And
Bunch address information updating block is used for bunch address information of file to be updated described in the updating file system, and said bunch of address information is arranged in the document control information of file system.
The embodiment of the invention is mated the filename in the document control information of filename of importing and file system when reading flash file, from the document control information that the filename that matees belongs to, obtains bunch address information of file; Read bunch address information or the corresponding bunch files stored data of bunch address information of mode backspace file according to the file of input, when upgrading flash file, the file status identification information in the file system in the document control information of file to be updated is set to the file operation sign; For file to be updated is redistributed bunch; The file status identification information is set to file and writes sign, with the file data of file to be updated be written to redistribute bunch, bunch address information of file to be updated in the updating file system; The embodiment of the invention reads mode according to file and carries out reading of file; Improve the reading efficiency of file system operating factor of memory space and file, when updating file, adopted the mode of redistributing storage space to carry out the renewal of file; Do not wipe original; Thereby,, improved the speed that file writes with advancing for the power loss recovery in the file renewal process provides guarantee.
Below in conjunction with specific embodiment concrete realization of the present invention is described in detail:
Embodiment one:
Flash memory file system is responsible for the storage space of unified management flash memories, implements the distribution and the recovery of storage space, by name file is read and write, and to the user a convenient interface that uses is provided.In embodiments of the present invention, through corresponding file status identification information is set, according to this identification information, make that the read-write process of flash file is simpler in the document control information of file system, space availability ratio is higher.
Fig. 1 shows the realization flow of the flash file read method that first embodiment of the invention provides, and details are as follows:
In step S101, the filename in the document control information of filename of importing and file system is mated, the file status identification information in this document control information is that file effectively identifies.
In embodiments of the present invention; Be provided with the file status sign in the document control information of file system; This document status indicator comprises the status information that file uses; For example: file effectively identifies, file operation sign, file write file status information such as sign, and the effective label table of the file part control information corresponding file of soliciting articles is effectively, and the file operation label table part control information corresponding file of soliciting articles is operated; For example read operation, write operation, file write the label table part control information corresponding file of soliciting articles and are carrying out write operation.In the practical implementation process; When receiving the file read instruction fetch of system's transmission; Retrieving files status indicator information is the document control information of the effective sign of file in file system, and the filename of input and the filename that has in the effective document control information that identifies of file are mated.
In step S102, from the document control information that the filename that matees belongs to, obtain bunch address information of file.
In embodiments of the present invention; After matching filename, realize reading of file by name, obtain bunch address information of storage this document; And be file operation sign with the file status information setting in this document corresponding file document control information; With convenient management to this document, for example, exclusive reference etc.If do not have the filename of coupling, then return corresponding prompt information.
In step S103, read bunch address information or the corresponding bunch files stored data of this bunch address information of mode backspace file according to the file of input.
In embodiments of the present invention, in the file read instruction fetch that receives, the mode that reads of this document can be set; For example: directly read the content of file, or only read the address information (pointer) of file, in the unspecified situation that reads mode; Can give tacit consent to the content that directly reads file, thereby, help quick operation file for file reads the selection that provides different; For example, when setting up the operation to the soft link of file, then can only read the address information of file.Therefore; When the file of input reads mode when reading document content information,, read the file data of bunch address information correspondence bunch then according to the document cluster address information of obtaining; When the file of input reads mode when reading file pointer information, bunch address information of a backspace file then.
In embodiments of the present invention, read mode, and bunch address information, realized the reading of the different modes of file improved the reading efficiency of file system operating factor of memory space and file according to the file status of file system sign, file.
Embodiment two:
Fig. 2 shows the structure of the flash file reading system that second embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.
This flash file reading system can be the software unit that runs in the flash memory, or is integrated in the embedded system based on flash-memory storage system, wherein as suspension member independently:
Filename matching unit 21 matees the filename in the document control information of filename of importing and file system, and the file status identification information in this document control information is that file effectively identifies.
In embodiments of the present invention; Be provided with the file status sign in the document control information of file system; This document status indicator comprises the status information that file uses; For example: file effectively identifies, file operation sign, file write file status information such as sign, and the effective label table of the file part control information corresponding file of soliciting articles is effectively, and the file operation label table part control information corresponding file of soliciting articles is operated; For example read operation, write operation, file write the label table part control information corresponding file of soliciting articles and are carrying out write operation.In the practical implementation process; When receiving the file read instruction fetch of system's transmission; Retrieving files status indicator information is the document control information of the effective sign of file in file system, and the filename of input and the filename that has in the effective document control information that identifies of file are mated.
Information acquisition unit 22 is obtained bunch address information of file from the document control information at the filename place of coupling.
It is the file operation sign with the document control information file status indicator information setting of file system that first sign is provided with subelement 23.
In embodiments of the present invention, after matching filename, obtain bunch address information of storage this document according to filename; And be file operation sign with the file status information setting in this document corresponding file document control information; With convenient management to this document, for example, exclusive reference etc.If do not have the filename of coupling, then return corresponding prompt information.
File data returns unit 24 reads the mode backspace file according to the file of input bunch address information or the corresponding bunch files stored data of this bunch address information.
In embodiments of the present invention, in the file read instruction fetch that receives, the mode that reads of this document can be set; For example: directly read the content of file, or only read the address information (pointer) of file, in the unspecified situation that reads mode; Can give tacit consent to the content that directly reads file, thereby, help quick operation file for file reads the selection that provides different; For example, when setting up the operation to the soft link of file, then can only read the address information of file.Therefore; When the file of input reads mode when reading document content information,, read the file data of bunch address information correspondence bunch then according to the document cluster address information of obtaining; When the file of input reads mode when reading file pointer information, bunch address information of a backspace file then.Therefore, in concrete implementation process, file data returns unit 24 and can comprise: file data reading unit 241 and address information reading unit 242, wherein:
File data reading unit 241 is used for reading mode when reading document content information when the file of input, according to the document cluster address information of obtaining, reads the file data of bunch address information correspondence bunch; And
Address information reading unit 242 is used for reading mode when reading file pointer information, bunch address information of backspace file when the file of input.
Embodiment three:
Fig. 3 shows the realization flow of the flash file update method that third embodiment of the invention provides, and details are as follows:
In step S301, be set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file to be updated in the file update instruction.
In embodiments of the present invention; Be provided with the file status sign in the document control information of file system; This document status indicator comprises the status information that file uses; For example: file effectively identifies, file operation sign, file write file status information such as sign, and the effective label table of the file part control information corresponding file of soliciting articles is effectively, and the file operation label table part control information corresponding file of soliciting articles is operated; For example read operation, write operation, file write the label table part control information corresponding file of soliciting articles and are carrying out write operation.
In embodiments of the present invention; When receiving when the corresponding flash file of the filename of input upgraded operation, be set to the file operation sign according to the file status identification information in the document control information of file to be updated in the filename file system of file to be updated in the file update instruction.
In step S302, redistribute bunch for file to be updated, the file status identification information is set to file and writes sign, with the file data of file to be updated be written to redistribute bunch
In embodiments of the present invention; According to available bunch address information; For the new bunch space of file allocation to be updated, be used to store the file data that writes, and the file status identification information is set to file and writes sign; Preventing that other process from operating this document, so with the file data of file to be updated be written to redistribute bunch.
In embodiments of the present invention; The file data with file to be updated be written to redistribute bunch after, should be according to bunch address information of the original in the document control information, obtain bunch status indicator information of the corresponding bunch storage of bunch address information; With a bunch status indicator information setting is a bunch invalidated identification; Thereby with being placed in disarmed state in the original, bunch status indicator is used to characterize the state of this bunch, for example disarmed state, distress condition etc.; The file data that disarmed state characterizes this bunch lost efficacy, and distress condition characterizes this bunch and is damaged.
In step S303, bunch address information of file to be updated in the updating file system, bunch address information is arranged in the document control information of file system.
In embodiments of the present invention, after the renewal operation of accomplishing file, should bunch address information of document control information file be upgraded, thereby the renewal that realizes file is operated.
Implement among the embodiment in the present invention; Flash file is upgraded when operation, write the characteristic of data, adopted the mode of redistributing storage space to carry out the renewal of file according to flash memory; Thereby, improved the speed that file writes for the power loss recovery in the file renewal process provides guarantee.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
Embodiment four:
Fig. 4 shows the structure of the flash file writing system that fourth embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.
This flash file writing system can be the software unit that runs in the flash memory (for example NOR FLASH), or is integrated in the embedded system based on flash-memory storage system, wherein as suspension member independently:
Second sign is provided with subelement 41 and is set to the file operation sign according to the file status identification information in the document control information of file to be updated in the filename file system of file to be updated in the file update instruction.
In embodiments of the present invention; Be provided with the file status sign in the document control information of file system; This document status indicator comprises the status information that file uses; For example: file effectively identifies, file operation sign, file write file status information such as sign, and the effective label table of the file part control information corresponding file of soliciting articles is effectively, and the file operation label table part control information corresponding file of soliciting articles is operated; For example read operation, write operation, file write the label table part control information corresponding file of soliciting articles and are carrying out write operation.
In embodiments of the present invention; When receiving when the corresponding flash file of the filename of input upgraded operation, be set to the file operation sign according to the file status identification information in the document control information of file to be updated in the filename file system of file to be updated in the file update instruction.
Data write unit 42 is redistributed bunch for file to be updated, and the file status identification information is set to file and writes sign, with the file data of file to be updated be written to redistribute bunch.
In embodiments of the present invention; According to available bunch address information; For the new bunch space of file allocation to be updated, be used to store the file data that writes, and the file status identification information is set to file and writes sign; Preventing that other process from operating this document, so with the file data of file to be updated be written to redistribute bunch.
The 3rd sign is provided with bunch address information in the document control information that subelement 43 obtains file system, obtains bunch status indicator information of the corresponding bunch storage of bunch address information, is a bunch invalidated identification with a bunch status indicator information setting.
In embodiments of the present invention; The file data with file to be updated be written to redistribute bunch after, should be according to bunch address information of the original in the document control information, obtain bunch status indicator information of the corresponding bunch storage of bunch address information; With a bunch status indicator information setting is a bunch invalidated identification; Thereby with being placed in disarmed state in the original, bunch status indicator is used to characterize the state of this bunch, for example disarmed state, distress condition etc.; The file data that disarmed state characterizes this bunch lost efficacy, and distress condition characterizes this bunch and is damaged.
Bunch address information of file to be updated in bunch address information updating block 44 updating file systems, bunch address information is arranged in the document control information of file system.
In embodiments of the present invention, after the renewal operation of accomplishing file, should bunch address information of document control information file be upgraded, thereby the renewal that realizes file is operated.
Embodiment five:
Fig. 5 shows the structure of the instantiation of the flash memory file system that fifth embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.
In embodiments of the present invention; This flash memory file system comprises: document control information and file data information; Document control information includes fields such as file status sign, User Defined file attribute, filename and bunch address, and wherein file status sign is used to characterize the status information that file uses, and for example: file effectively identifies, file operation sign, file write file status information such as sign; The User Defined attribute field provides the method for self-defined file attribute for the user; The User Defined attribute can be self-defined filename, father file, file description information etc.; The filename field is not supported long filenames, can adopt 8.3 file designation forms; Bunch address field is used to preserve bunch address information that file is preserved.The memory capacity of document control message part can be provided with according to the different application scene of flash memory; For example; Can be the 64*X byte with the shared space representation of document control message part, wherein the size of a sector of 64 expressions be 64 bytes, and X can be provided with according to the application scenarios of flash memory.
File data information comprises file data field and bunch status indicator field, and the file data field is used to preserve file data, and bunch status indicator is used to characterize the state of this bunch, for example disarmed state, distress condition etc.The memory capacity of file data message part can be provided with according to the file characteristic of flash memory storage; For example; Can be the 64*Y byte with the shared space representation of file data information, wherein the size of a sector of 64 expressions be 64 bytes, and Y can be provided with according to the file characteristic of flash memory storage.
The embodiment of the invention is when reading flash file; File according to input reads mode, and the filename in the document control information of filename of importing and file system is mated, and returns corresponding bunch address information or the corresponding bunch of files stored data of bunch address information of filename with the filename coupling; Thereby realize reading mode according to file status sign, the file of file system; And bunch address information, accomplish the reading of the different modes of file, improved the reading efficiency of file system operating factor of memory space and file; When writing file to flash memory and carry out the renewal of file; Adopted the mode of redistributing storage space, thereby, improved the speed that file writes for the power loss recovery in the file renewal process provides guarantee.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a flash file read method is characterized in that, said method comprises the steps:
Filename in the document control information of filename of importing and file system is mated, and the file status identification information in the said document control information is that file effectively identifies;
From the document control information that the filename that matees belongs to, obtain bunch address information of file;
Read bunch address information or the said bunch of corresponding bunch files stored data of address information of mode backspace file according to the file of input.
2. the method for claim 1 is characterized in that, said file status identification information comprises file effectively sign and file operation sign.
3. method as claimed in claim 2; It is characterized in that; Obtain the document control information at said filename place from coupling after the step of bunch address information of file; Said file according to input reads before the step of bunch address information or the corresponding bunch files stored data of said bunch of address information of mode backspace file, and said method also comprises the steps:
File status identification information in the document control information of file system is set to the file operation sign.
4. the method for claim 1 is characterized in that, said file according to input reads bunch address information of mode backspace file or the step of the said bunch of corresponding bunch files stored data of address information specifically comprises the steps:
When the file of input reads mode when reading document content information,, read the file data of bunch address information correspondence bunch according to the document cluster address information of obtaining;
When the file of input reads mode when reading file pointer information, bunch address information of backspace file.
5. a flash file reading system is characterized in that, said system comprises:
The filename matching unit is used for the filename of the document control information of filename and the file system of input is mated, and the file status identification information in the said document control information is that file effectively identifies;
Information acquisition unit is used for obtaining from the document control information at the filename place of coupling bunch address information of file; And
File data returns the unit, is used for reading according to the file of input bunch address information or said bunch of corresponding bunch files stored data of address information of mode backspace file.
6. system as claimed in claim 5 is characterized in that, said file status identification information comprises file effectively sign and file operation sign.
7. system as claimed in claim 5 is characterized in that, said system also comprises:
First sign is provided with subelement, and the document control information file status indicator information setting that is used for file system is the file operation sign.
8. system as claimed in claim 5 is characterized in that, said file data returns the unit and specifically comprises:
The file data reading unit is used for reading mode when reading document content information when the file of input, according to the document cluster address information of obtaining, reads the file data of bunch address information correspondence bunch; And
The address information reading unit is used for reading mode when reading file pointer information, bunch address information of backspace file when the file of input.
9. a flash file update method is characterized in that, said method comprises the steps:
Be set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file to be updated in the file update instruction;
Redistribute bunch for said file to be updated, said file status identification information is set to file and writes sign, with the file data of said file to be updated be written to redistribute bunch;
Bunch address information of file to be updated described in the updating file system, said bunch of address information is arranged in the document control information of file system.
10. method as claimed in claim 9; It is characterized in that saidly redistribute bunch for said file to be updated, said file status identification information is set to file and writes sign; With the file data of said file to be updated be written to redistribute bunch step after; Bunch address information of file to be updated described in the said updating file system, said bunch of address information are arranged in before the step of document control information of file system, and said method also comprises the steps:
Obtaining bunch address information in the document control information of file system, obtain bunch status indicator information of the corresponding bunch storage of said bunch of address information, is a bunch invalidated identification with said bunch of status indicator information setting.
11. a flash file update system is characterized in that, said system comprises:
Second sign is provided with subelement, is used for being set to the file operation sign according to the file status identification information in the document control information of file to be updated described in the filename file system of file update instruction file to be updated;
Data write unit is used to said file to be updated and redistributes bunch, and said file status identification information is set to file and writes sign, with the file data of said file to be updated be written to redistribute bunch; And
Bunch address information updating block is used for bunch address information of file to be updated described in the updating file system, and said bunch of address information is arranged in the document control information of file system.
12. system as claimed in claim 11 is characterized in that, said system also comprises:
The 3rd sign is provided with subelement, is used for obtaining the document control information bunch address information of file system, obtains bunch status indicator information of the corresponding bunch storage of said bunch of address information, is a bunch invalidated identification with said bunch of status indicator information setting.
CN2011100310574A 2011-01-28 2011-01-28 Method and system for reading and updating flash-memory files Pending CN102622301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100310574A CN102622301A (en) 2011-01-28 2011-01-28 Method and system for reading and updating flash-memory files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100310574A CN102622301A (en) 2011-01-28 2011-01-28 Method and system for reading and updating flash-memory files

Publications (1)

Publication Number Publication Date
CN102622301A true CN102622301A (en) 2012-08-01

Family

ID=46562228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100310574A Pending CN102622301A (en) 2011-01-28 2011-01-28 Method and system for reading and updating flash-memory files

Country Status (1)

Country Link
CN (1) CN102622301A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960472A (en) * 2019-04-01 2019-07-02 浙江中控技术股份有限公司 Embedded file system and file system operation method based on Flash
CN111580890A (en) * 2020-05-18 2020-08-25 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and computer-readable medium for processing features

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1963810A (en) * 2005-11-09 2007-05-16 康佳集团股份有限公司 Method for realizing cache memory relates to file allocation table on Flash storage medium
US7234078B2 (en) * 2003-07-28 2007-06-19 Matsushita Electric Industrial Co., Ltd. Data recovery method and data recording apparatus
CN101075211A (en) * 2007-06-08 2007-11-21 马彩艳 Flash memory management based on sector access

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7234078B2 (en) * 2003-07-28 2007-06-19 Matsushita Electric Industrial Co., Ltd. Data recovery method and data recording apparatus
CN1963810A (en) * 2005-11-09 2007-05-16 康佳集团股份有限公司 Method for realizing cache memory relates to file allocation table on Flash storage medium
CN101075211A (en) * 2007-06-08 2007-11-21 马彩艳 Flash memory management based on sector access

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
于鹏飞: "嵌入式存储设备上文件系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 June 2009 (2009-06-15) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960472A (en) * 2019-04-01 2019-07-02 浙江中控技术股份有限公司 Embedded file system and file system operation method based on Flash
CN109960472B (en) * 2019-04-01 2022-04-19 浙江中控技术股份有限公司 Flash-based embedded file system and file system operation method
CN111580890A (en) * 2020-05-18 2020-08-25 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and computer-readable medium for processing features

Similar Documents

Publication Publication Date Title
US11636032B2 (en) Memory system, data storage device, user device and data management method thereof
US9298384B2 (en) Method and device for storing data in a flash memory using address mapping for supporting various block sizes
TWI425355B (en) Data access method, memory controller, memory storage system
US8521949B2 (en) Data deleting method and apparatus
US8230160B2 (en) Flash memory storage system and flash memory controller and data processing method thereof
CN102096639B (en) Method for trimming data on non-volatile flash media
US8037112B2 (en) Efficient access of flash databases
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
KR101395778B1 (en) Memory card and memory system including the same and operating method thereof
CN101983376B (en) Access device, information recording device, information recording system, file management method, and program
US20030065876A1 (en) Flash management system using only sequential Write
CN100585595C (en) Method for managing file system data using dbms
CN101727395A (en) Flash memory device and management system and method thereof
US7870122B2 (en) Self-tuning index for flash-based databases
US9389998B2 (en) Memory formatting method, memory controller, and memory storage apparatus
US20080250189A1 (en) Circuit and Method for Improving Operation Life of Memory
US7861074B2 (en) Electronic systems using flash memory modules as main storage and related system booting methods
CN102541969A (en) File protection method and system based on file allocation table (FAT) file system, and memory
US8595426B2 (en) Handling commands within a write-once read-many storage device configuration
CN1963810A (en) Method for realizing cache memory relates to file allocation table on Flash storage medium
US9535796B2 (en) Method, apparatus and computer for data operation
CN104133640A (en) Quick recovery from dormancy
CN102622301A (en) Method and system for reading and updating flash-memory files
CN111949212B (en) File system and file management method based on self-defined open channel SSD
CN105630692A (en) File storage system storing file directory by using MRAM

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120801