Flash-based file saving method and system

A storage method and file technology, which is applied in the protection of internal/peripheral computer components, digital data protection, instruments, etc., can solve the problems of data loss in the Flash file system, data restoration taking a long time, and time-consuming, etc. The effect of document efficiency, improving overall processing efficiency, and speeding up retrieval speed

Active Publication Date: 2018-03-20
C SKY MICROSYST CO LTD
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, due to the uncertainty of the power supply, if a power failure occurs while data is being recorded, the data in the Flash file system may be lost, and even the system may be damaged and cause serious consequences such as failure to start.
[0003] Therefore, in the current typical Flash file system, such as the second version (jffs2: journaling flash file system version 2) file system of the Linux system, although the power-off data can be protected, it will take up a lot of memo

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Flash-based file saving method and system
  • Flash-based file saving method and system
  • Flash-based file saving method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0055] Embodiments of the present invention provide a method for saving files based on Flash, such as figure 2 As shown, the method includes:

[0056] S11. Obtain the file name of the file to be saved, and judge whether the file name exists in the valid file address index table established according to the head Flash address of the valid fi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a Flash-based file saving method and system. The method comprises the following steps: acquiring a filename of a to-be-saved file, and judging whether the filename exists in a valid file address index list established according to a head Flash address of a valid file in a memory; if yes, applying to write the to-be-saved file into an idle Flash storage space so as to form afirst new file, enabling a head source file address field of the first new file to point to a Flash address of a source file, and marking the source file as a deletion state, so as to modify the file;and if not, applying to write the to-be-saved file into an idle Flash storage space so as to form a second new file, and preserving a head source file address field of the second new file, so as to newly build a file. According to the method, address links of same-name files can be stored in the Flash, so that the outage protection is realized, and the wear balancing effect is achieved.

Description

technical field [0001] The invention relates to the technical field of Flash storage, in particular to a method and system for saving files based on Flash. Background technique [0002] With the advancement of science and technology, all kinds of intelligent hardware are developing very rapidly. These devices need to have storage capabilities to record device configuration information, device operating status, etc.; at the same time, because Flash memory has high reliability, high storage The advantages of price, non-volatility, and easy erasing and writing have replaced traditional EPROM and EEPROM, and have been widely used in embedded systems. Flash memory can be divided into several blocks, and each block is composed of several pages. The erasing operation of Flash is performed in units of blocks, while the read and write operations are performed in units of pages. Flash memory must first erase the target block before performing a write operation. At the same time, due...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F21/62G06F21/79
CPCG06F21/6209G06F21/79
Inventor 高迎军毛晗刘鹏童琪杰尚云海李春强
Owner C SKY MICROSYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products