CN103593219B - A kind of quick start method of the highly reliable file system for NAND FLASH device - Google Patents

A kind of quick start method of the highly reliable file system for NAND FLASH device Download PDF

Info

Publication number
CN103593219B
CN103593219B CN201310625980.XA CN201310625980A CN103593219B CN 103593219 B CN103593219 B CN 103593219B CN 201310625980 A CN201310625980 A CN 201310625980A CN 103593219 B CN103593219 B CN 103593219B
Authority
CN
China
Prior art keywords
file system
storage device
nand flash
initial
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.)
Active
Application number
CN201310625980.XA
Other languages
Chinese (zh)
Other versions
CN103593219A (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.)
AVIC No 631 Research Institute
Original Assignee
AVIC No 631 Research Institute
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 AVIC No 631 Research Institute filed Critical AVIC No 631 Research Institute
Priority to CN201310625980.XA priority Critical patent/CN103593219B/en
Publication of CN103593219A publication Critical patent/CN103593219A/en
Application granted granted Critical
Publication of CN103593219B publication Critical patent/CN103593219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention relates to the quick start method of a kind of highly reliable file system for NAND FLASH device, comprise the following steps: 1] realize file system consistency: 1.1] application memory space, dynamically distribution and file system configuration according to file system create an initial transaction point, and submit initial transaction point to;The current state information of the file system 1.2] recorded, creates a new affairs point according to the current state information of file system;1.3] buffer stopper is utilized to reclaim the initial memory of initial transaction point, standby;1.4] step 1.1 is performed], until initial operation content completes;2] startup file system.The present invention solves the problem that the file system toggle speed of existing NAND FLASH device is the slowest, the present invention to reduce the integrity checking of file system by a kind of rational file system consistency scheme, is only scanned disk suitable time and effectively shortens the file system startup time.

Description

A kind of quick start method of the highly reliable file system for NAND FLASH device
Technical field
The invention belongs to computer software fields, being specifically related to a kind of height for NAND FLASH device can Quick start method by file system.
Background technology
Towards the file system of the Mass Data Storage Facilities such as NAND FLASH on startup owing to enter Row following steps:
1, device power need to run the integrity of the Application inspection file system such as similar chkdsk when starting.
2, when towards big array flash memory device, owing to needs scan whole big array flash memory to set up its disk Status information, the most jumbo storage device, scans whole disk and can take the substantial amounts of time.
Comprehensive factors above, causes file system toggle speed the slowest.It is thus desirable to design a kind of new setting Meter method, reduces above step, improves file system toggle speed.
Summary of the invention
Technology in order to solve the file system toggle speed of existing NAND FLASH device the slowest is asked Topic, the present invention provides the quickly side of startup of a kind of highly reliable file system for NAND FLASH device Method, the present invention is by designing a kind of rational file system consistency scheme to reduce the integrity of file system Check, and only scanning disk effectively shortens file system startup to reduce disk scanning expense suitable time Time.
The technical solution of the present invention:
The quick start method of a kind of highly reliable file system for NAND FLASH device, including following Step:
1] file system consistency is realized:
1.1] application memory space, dynamically distribution and file system according to file system configure at the beginning of creating one Beginning affairs point, and submit initial transaction point to;
Described initial transaction point includes initial memory and initial operation content, and described initial memory is File system is dynamically distributed, and described initial operation content is file system configuration;
1.2] current state information of log file system, creates one according to the current state information of file system Individual new affairs point;New affairs point includes new memory space and new operation content, described new operation Content is consistent with initial operation content;
New affairs point, new operation content is submitted to cover the initial operation content of initial transaction point;
1.3] buffer stopper is utilized to reclaim the initial memory of initial transaction point, standby;
1.4] step 1.1 is repeated]-1.3], until initial operation content completes;
2] startup file system.
Also include whether before being additionally included in startup file system to scan sentencing of NAND FLASH storage device Disconnected step:
A] NAND FLASH storage device carry first, each memory block application in storage device is deposited Storage space, by the memory block residing for the VBF information of memory space record storage device of application and memory space VBF information;
B] NAND FLASH storage device reloads, and obtains the current state information of storage device, with Time the VBF information of the storage device of storage and the VBF information of each memory block when searching carry first;
C] entering the VBF information of the VBF information of current state information and storage device and each memory block Row compares, if unanimously, then NAND FLASH storage device directly uses above-mentioned VBF information, need not Rescan NAND FLASH storage device;If it is inconsistent, to NAND FLASH storage device Perform scanning.
Advantage for present invention:
1, the present invention is by affairs point mechanism, it is ensured that the concordance of file system, decreases by similar chkdsk Etc. the integrity that should spend extra inspection file system.
2, the present invention file system start needed for equipment carry time, the scan full hard disk becoming each is swept into on-demand Retouch, by preserving storing device information, it is judged that information state is the most correct, decides whether again to store Device scan.It is greatly improved the toggle speed of file system, when meeting airborne field to the startup of file system Between requirement.
Accompanying drawing explanation
Fig. 1 is affairs point mechanism functions;
Fig. 2 is file system Booting sequence comparison diagram.
Detailed description of the invention
A kind of reasonably file system consistency scheme of design, reduces the file system integrity after device power Check.
The present invention uses affairs point mechanism to ensure when file system at any time breaks down and can return to A certain correct status.Realize especially by following steps:
1] file system consistency is realized:
1.1] application memory space, dynamically distribution and file system according to file system configure at the beginning of creating one Beginning affairs point, and submit initial transaction point to;(data in internal memory will update storage and set on initial transaction point Standby upper)
Initial transaction point includes initial memory and initial operation content, and initial memory is file system Dynamically distribution, initial operation content is file system configuration;
1.2] current state information of log file system, creates one according to the current state information of file system Individual new affairs point;New affairs point includes new memory space and new operation content, new operation content Consistent with initial operation content;
New affairs point, new operation content is submitted to cover the initial operation content of initial transaction point;(work as file When system occurs power-off between two affairs points, file data is reverted to the stable shape that file system is last State.It is supplied to user one with this and is always maintained at conforming file system)
1.3] buffer stopper is utilized to reclaim the initial memory of initial transaction point, standby;
1.4] step 1.1 is repeated]-1.2], until initial operation content completes;
2] startup file system.When device power starts, it is not necessary to rerun the application programs such as similar chkdsk Carry out the integrity checking of file system.
Affairs point mechanism is as it is shown in figure 1, T1 moment user configured affairs point task occurs, at the beginning of preserving one Beginning affairs point, then, user configured initial transaction point task (such as written document) is successfully completed backward system Submitting to, system triggers affairs point after receiving submission request and creates, new affairs point record file system at that time System status information, and covers an initial transaction point, and system is knowing execution after affairs point creates successfully External memory reclaims.During file operation, such as TI-T2 moment, system crash or power down, file system rolls back to A upper affairs dotted state.
Further determined whether to scan NAND FLASH storage device before startup file system: setting up disk During status information, suitable time, only scan disk to reduce disk scanning expense.
When storage device carry first, each memory block is distributed a little block space and is stored this storage device VBF information and the VBF information of corresponding memory block;
After storage device is reloaded, the VBF information of preservation can be found, if it find that and determine this VBF Information is that effectively it can use this status information, and need not rescan storage device.
Once being used, for preventing the outmoded of status information, on disk, there is any other activity in this state Before, this status information will lose efficacy.If after disk establishment, effective status information is not found, will be by biography System method performs disk scanning.Especially for large capacity disc, the scanning of whole disk can be wasted substantial amounts of Time organizes Disk State information, by reducing disk scanning number of times, only carries out disk needs when Scanning, can greatly reduce time overhead, improves toggle speed.
As in figure 2 it is shown, the file system that the present invention saves similar chkdsk by affairs point Mechanism Design is complete Whole property checks step, and during equipment carry needed for file system starts, becomes each scan full hard disk into pressing Need scanning, by preserving disc information, it is judged that information state is the most correct, decides whether disk again Scanning.
By said method, the toggle speed of file system can be greatly improved, meet airborne field to file The startup time requirement of system.Do not using the whole logic magnetic disc of on-demand scanning (testing the electric board for 8G) Time, the toggle speed of file system is 58 seconds, by preserving Disk State information during first time carry, logical When crossing lookup status information on-demand scanning logic disk, the toggle speed of file system is less than 10 seconds.
Use the specific works step of file system quick start method of the present invention:
(1) ensure that the concordance of file system (i.e. reduces the file system of similar chkdsk by affairs point mechanism System integrity checking step);
(2) file system device carry obtains disc information time-varying scan full hard disk is on-demand scanning;
(3) startup file system: if equipment carry for the first time, need to scan whole disk, and store phase The Disk State information answered, then, when being again started up after step 3 successfully starts up, can realize the present invention and be reached The effect arrived.

Claims (1)

1., for the quick start method of highly reliable file system for NAND FLASH device, it is special Levy and be, comprise the following steps:
1] file system consistency is realized:
1.1] application memory space, dynamically distribution and file system according to file system configure at the beginning of creating one Beginning affairs point, and submit initial transaction point to;
Described initial transaction point includes initial memory and initial operation content, and described initial memory is File system is dynamically distributed, and described initial operation content is file system configuration;
1.2] current state information of log file system, creates one according to the current state information of file system Individual new affairs point;New affairs point includes new memory space and new operation content, described new operation Content is consistent with initial operation content;
New affairs point, new operation content is submitted to cover the initial operation content of initial transaction point;
1.3] buffer stopper is utilized to reclaim the initial memory of initial transaction point, standby;
1.4] step 1.1 is repeated]-1.3], until initial operation content completes;
2] the judgement step of NAND FLASH storage device whether is scanned:
A] NAND FLASH storage device carry first, each memory block application in storage device is deposited Storage space, by the memory block residing for the VBF information of memory space record storage device of application and memory space VBF information;
B] NAND FLASH storage device reloads, and obtains the current state information of storage device, with Time the VBF information of the storage device of storage and the VBF information of each memory block when searching carry first;
C] entering the VBF information of the VBF information of current state information and storage device and each memory block Row compares, if unanimously, then NAND FLASH storage device directly uses above-mentioned VBF information, need not Rescan NAND FLASH storage device;If it is inconsistent, to NAND FLASH storage device Perform scanning;
3] startup file system.
CN201310625980.XA 2013-11-27 2013-11-27 A kind of quick start method of the highly reliable file system for NAND FLASH device Active CN103593219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310625980.XA CN103593219B (en) 2013-11-27 2013-11-27 A kind of quick start method of the highly reliable file system for NAND FLASH device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310625980.XA CN103593219B (en) 2013-11-27 2013-11-27 A kind of quick start method of the highly reliable file system for NAND FLASH device

Publications (2)

Publication Number Publication Date
CN103593219A CN103593219A (en) 2014-02-19
CN103593219B true CN103593219B (en) 2016-08-17

Family

ID=50083377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310625980.XA Active CN103593219B (en) 2013-11-27 2013-11-27 A kind of quick start method of the highly reliable file system for NAND FLASH device

Country Status (1)

Country Link
CN (1) CN103593219B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794180B (en) * 2015-04-09 2018-06-15 广东小天才科技有限公司 A kind of point reader scanning obtains the method and device of learning materials
CN110019046B (en) * 2017-12-29 2024-05-14 北京奇虎科技有限公司 Log landing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1822230A (en) * 2006-03-02 2006-08-23 浙江大学 Method for realizing memory file system based on NAND Flash
EP2071463A2 (en) * 2007-11-14 2009-06-17 Infineon Technologies AG Method for processing a file, storage medium and processing arrangement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1822230A (en) * 2006-03-02 2006-08-23 浙江大学 Method for realizing memory file system based on NAND Flash
EP2071463A2 (en) * 2007-11-14 2009-06-17 Infineon Technologies AG Method for processing a file, storage medium and processing arrangement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
事务型文件***存储管理机制的研究与实现;杨琼 等;《航空计算技术》;20110930;第41卷(第5期);第82页 *

Also Published As

Publication number Publication date
CN103593219A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
US11797191B2 (en) Systems and methods for storing data in SSD
CA3104353C (en) Storage volume creation method and apparatus, server, and storage medium
CN109800185B (en) Data caching method in data storage system
US20120110293A1 (en) Method and system for managing virtual machine storage space and physical host
CN103810020A (en) Virtual machine elastic scaling method and device
CN104571955A (en) Method and device for expanding storage capacity
CN105824846B (en) Data migration method and device
CN105874428B (en) Technology for the operating system transformation in multiple operating system environments
CN114466027B (en) Cloud primary database service providing method, system, equipment and medium
CN106227621A (en) The data back up method of logic-based volume management simplification volume and system
CN111061431B (en) Distributed storage method, server and client
CN108880898A (en) Active and standby containment system switching method and device
CN103593219B (en) A kind of quick start method of the highly reliable file system for NAND FLASH device
CN109086168A (en) A kind of method and its system using hardware backup solid state hard disk writing rate
CN107301021B (en) Method and device for accelerating LUN (logical Unit number) by utilizing SSD (solid State disk) cache
CN105138426B (en) A kind of business data method for protecting consistency and device based on snapshot
CN109284070B (en) Solid-state storage device power-off recovery method based on STT-MRAM
CN109522273B (en) Method and device for realizing data writing
CN104517067A (en) Method, device and system for data access
CN111176559B (en) Data writing method and device and dual-activity system
CN105825126A (en) File protecting method and device
CN108132759A (en) A kind of method and apparatus that data are managed in file system
CN112433812A (en) Method, system, equipment and computer medium for virtual machine cross-cluster migration
CN112527455A (en) Service container deployment method, computer equipment and storage medium
CN109032843B (en) STT-MRAM-based method for accelerating starting of solid state memory device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant