CN101706822A - Method and device for improving speed of mounting journal file system - Google Patents

Method and device for improving speed of mounting journal file system Download PDF

Info

Publication number
CN101706822A
CN101706822A CN200910259323A CN200910259323A CN101706822A CN 101706822 A CN101706822 A CN 101706822A CN 200910259323 A CN200910259323 A CN 200910259323A CN 200910259323 A CN200910259323 A CN 200910259323A CN 101706822 A CN101706822 A CN 101706822A
Authority
CN
China
Prior art keywords
chained list
file system
index information
journal file
list index
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.)
Granted
Application number
CN200910259323A
Other languages
Chinese (zh)
Other versions
CN101706822B (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.)
Hangzhou DPtech Information Technology Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN2009102593231A priority Critical patent/CN101706822B/en
Publication of CN101706822A publication Critical patent/CN101706822A/en
Application granted granted Critical
Publication of CN101706822B publication Critical patent/CN101706822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for improving speed of mounting journal file system. The method comprises the following steps: an operation system scans the storage medium building the journal file system and obtains the chain table index information of the journal file system when the journal file system is mounted into the operation system of the embedded device for the first time; the operation system writes the chain table index information of the journal file system into the index storage medium when the journal file system is uninstalled for the first time, and sets different mark bits according to the normality or abnormality of the written chain table index information normally or abnormally; the subsequent journal file system is mounted into the operation system; the operation system reads the mark bit information, if the chain table index information is written normally, the operation system reads the chain table index information from the index storage medium directly; if the chain table index information is written abnormally, the operation system scans the storage medium building the journal file system again and obtains the chain table index information. The invention reduces the mounting time of journal file system in embedded device.

Description

Improve the method and apparatus of speed of mounting journal file system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and apparatus that improves speed of mounting journal file system.
Background technology
The software mechanism of being in charge of in the operating system with storage file information is called file management system, is called for short file system.File system is made up of three parts: the software relevant with file management, the file of being managed and the required data structure of enforcement file management.From system perspective, file system is that the file memory space is organized and distributed, and is responsible for the storage of file and the system that the file that deposits in is protected and retrieved.
File system is based upon on the physical storage device, for embedded device, the memory device that embedded device uses generally is not the disk on the multi-purpose computer, but Flash flash chip, compact flash cards, memory stick etc. aim at the storage medium of Embedded System Design.
The Flash storage medium can realize that the byte of completely random reads, but can not write twice to same memory address, and must just can write through behind the erase operation earlier.Because special Journal File System at flash memory has appearred in the uniqueness of storage medium in the embedded device.Journal File System has higher security than file system, write operation at first is that log file is operated, if whole write operation interrupts for a certain reason, then system reads the write operation that the content of log record file is recovered not finish when start next time.
Concrete, the design philosophy of journal file is: the variation of track record file system, and changing content is recorded into daily record.Journal File System is preserved log record in disk partition, write operation at first is that log file is operated, if whole write operation is (as system's power down) and interrupt for a certain reason, when Journal File System is restarted, the write operation before can recovering to interrupt according to log record.In Journal File System, the variation of all file system, interpolation and change all are recorded to daily record, promptly in the data of log file metadata information (information relevant with file).At regular intervals, file system can write disk with file metadata information and the file content after upgrading, and deletes this part daily record afterwards, restarts new log record.
In the prior art, Journal File System is managed data on the whole file system with the daily record node, the daily record node is called data entity again, for example use more at present JFFS2 just has only two types data entity jffs2_raw_inode and jffs2_raw_dirent on FLASH, the management information of the former include file, the latter is used for the position of description document in file system, and real data message just is kept at the back of jffs2_raw_inode node.
The daily record node is a data memory format unique on the flash memory device, and index is to help the data message of location daily record node fast.Journal File System of the prior art (for example JFFS2) is kept at index in the internal memory, and such design embodies great advantage on the flash memory of low capacity.When Journal File System is mounted to operating system, operating system scans full wafer flash storage medium rapidly, in internal memory, write the index of Journal File System, further set up various chained lists, for example chained list, the chained list of " dirty " and the chained list of erase block etc. of " clean piece " manage operation to file.
For high-capacity flash memory, when Journal File System is mounted to operating system, operating system scanning full wafer flash storage medium obtains the needed time of index will be very long. when Journal File System unloads, operating system is deleted the various information of buffer memory from internal memory, the index that comprises Journal File System, when time Journal File System is mounted to operating system again instantly, operating system re-executes scanning full wafer flash storage medium, and in internal memory, write the operation of the index of Journal File System. in the face of the embedded rapidly industry of development, the capacity of flash memory is increasing, the long bottleneck that has become prior art of mounting time.
There is following shortcoming in prior art:
When each Journal File System was mounted to operating system, operating system all needed to scan the full wafer storage medium, causes mounting time of journal file system long.
Summary of the invention
The invention provides a kind of method and apparatus that improves speed of mounting journal file system, to realize reducing mounting time of journal file system.
The invention provides a kind of method that improves speed of mounting journal file system, be applied to the embedded device of configuration log formula file system, dispose the chained list index information of index stores medium with storing daily record formula file system in the described embedded device, this method further may further comprise the steps:
When described Journal File System was mounted to the operating system of described embedded device for the first time, the storage medium of described Journal File System was set up in described operating system scanning, obtained the chained list index information of described Journal File System;
When described Journal File System unloaded for the first time, described operating system write described index stores medium with the chained list index information of described Journal File System, and according to writing described chained list index information different flag was set normally or unusually;
Follow-up described Journal File System is to described operating system carry, and described operating system reads flag information; If the chained list index information writes normally, described operating system directly reads described chained list index information from described index stores medium; If the chained list index information writes unusually, described operating system rescans the storage medium of setting up described Journal File System, obtains described chained list index information.
Described basis writes described chained list index information and different flag normally or unusually is set comprises: when writing described chained list index information just often, it is normal that described flag sign is set; When writing described chained list index information when unusual, it is unusual that described flag sign is set;
Described operating system also comprises after described index stores medium directly reads described chained list index information: the described flag of described operating system update is unusual for sign.
Described operating system also comprises after described index stores medium directly reads described chained list index information: described operating system normally is updated to sign unusually with described flag by sign.
Configuration comprises in order to the index stores medium of the chained list index information of storing daily record formula file system in the described embedded device:
In described embedded device, dispose independently index stores medium, to be specifically designed to the chained list index information of storing daily record formula file system; Perhaps
Reading speed storage area fast, easy to operate, that be not prone to bad piece is configured to described index stores medium in the storage medium of described Journal File System with setting up, and stores the chained list index information of described Journal File System.
Described operating system directly reads described chained list index information from described index stores medium and comprises:
Described chained list index information is read according to described memory location in the memory location of the pre-configured described chained list index information of described operating system in described index stores medium; Perhaps
Described operating system is searched the system banner of storage in advance and the corresponding relation of memory location according to the system banner of described Journal File System, obtains the memory location of described chained list index information in described index stores medium, reads described chained list index information.
Described operating system writes described index stores medium with the chained list index information of described Journal File System and comprises:
Described operating system is disposable to write described index stores medium with described chained list index information; Perhaps
Described operating system writes described index stores medium according to setting in advance several times with described chained list index information.
Described index stores medium is specially the Nor-Flash storage medium.
The invention provides a kind of equipment that is applied to said method, this equipment comprises that storage medium, dispensing unit, scanning element, writing unit, the sign of index stores medium, Journal File System are provided with unit and reading unit, wherein
Described dispensing unit is connected with described index stores medium, is used for the chained list index information of configuration index storage medium stores Journal File System;
Described scanning element, be connected with the storage medium of described reading unit and Journal File System, be used for when described Journal File System is mounted to the operating system of described embedded device for the first time, the storage medium of described Journal File System is set up in scanning, obtains the chained list index information of described Journal File System; The follow-up flag sign chained list index information that reads when described reading unit writes when unusual, rescans the storage medium of setting up described Journal File System, obtains described chained list index information;
The said write unit is connected with described index stores medium, is used for when the unloading of described Journal File System, and the chained list index information of described Journal File System is write described index stores medium;
Described sign is provided with the unit, is connected with said write unit and reading unit, is used for writing described chained list index information according to the said write unit different flag normally or unusually is set, and follow-uply read this flag by reading unit;
Described reading unit is provided with the unit with described sign and scanning element is connected, and is used for follow-up described Journal File System when described operating system carry, reads described sign the flag that the unit is provided with is set; If the chained list index information writes normally, directly read described chained list index information from described index stores medium, and writing when unusual, notify described scanning element to scan and obtain the chained list index information.
Described sign is provided with the unit and also is used for: when the said write unit writes described chained list index information just often, described flag sign is set normally; When the said write unit writes described chained list index information when unusual, it is unusual that described flag sign is set; When described reading unit after described index stores medium directly reads described chained list index information, it is unusual that described flag normally is updated to sign by sign.
Described dispensing unit also is used for:
Setting need write the chained list index information content in the described index stores medium.
Described reading unit also is used for:
According to the pre-configured memory location of described chained list index information in described index stores medium, read described chained list index information; Perhaps
Search the system banner of storage in advance and the corresponding relation of memory location according to the system banner of described Journal File System, obtain the memory location of described chained list index information in described index stores medium, read described chained list index information.
The said write unit also is used for:
With the described index stores medium of described chained list index information one-time write; Perhaps described chained list index information is write described index stores medium according to setting in advance several times.
Compared with prior art, the present invention has the following advantages:
Among the present invention, use the chained list index information of index stores medium memory Journal File System, when Journal File System is mounted to operating system, operating system can directly read the chained list index information of Journal File System from the index stores medium, do not need to scan the storage medium of setting up this Journal File System, thereby reduce mounting time of journal file system.
Description of drawings
Fig. 1 is the method flow synoptic diagram of raising speed of mounting journal file system provided by the invention;
Fig. 2 is the method flow synoptic diagram of the raising speed of mounting journal file system that provides of application scenarios of the present invention;
Fig. 3 is the structural representation of the equipment of raising speed of mounting journal file system provided by the invention.
Embodiment
Core concept of the present invention is: the configuration index storage medium is preserved the various chained list index informations of Journal File System, utilizes the thought of space change time to improve the carry performance of Journal File System.The index stores medium when operating system unloads, is kept at the various chained list index informations of the Journal File System in the internal memory at Journal File System; When this Journal File System is mounted to operating system next time, operating system directly reads the chained list index information of this Journal File System from the index stores medium, do not need to scan the storage medium of setting up Journal File System, thereby reduce mounting time of journal file system.
The invention provides a kind of method that improves speed of mounting journal file system, be applied to the embedded device of configuration log formula file system, dispose the chained list index information of index stores medium in the described embedded device separately, and the obtain manner of flag sign chained list index information further is set in described index stores medium with storing daily record formula file system; As shown in Figure 1, this method further comprises:
Step 101, when described Journal File System was mounted to the operating system of described embedded device for the first time, the storage medium of described Journal File System was set up in described operating system scanning, obtained the chained list index information of described Journal File System;
Step 102, when described Journal File System unloads for the first time, described operating system writes described index stores medium with the chained list index information of described Journal File System, and according to writing described chained list index information different flag is set normally or unusually;
Step 103, follow-up described Journal File System is to described operating system carry, and described operating system reads flag information; If the chained list index information writes normally execution in step 104; If the chained list index information writes unusually execution in step 105;
Step 104, described operating system directly reads described chained list index information from described index stores medium;
Step 105, described operating system rescans the storage medium of setting up described Journal File System, obtains described chained list index information.
Introduce the method for raising speed of mounting journal file system provided by the invention in detail below in conjunction with concrete application scenarios.
Application scenarios of the present invention provides a kind of method that improves speed of mounting journal file system, as shown in Figure 2, may further comprise the steps:
Step 201, independent configuration index storage medium in embedded device.
Concrete, the index stores medium that provides in the application scenarios of the present invention, have and be not prone to bad piece, have enough address pin to come addressing, easily each byte and the fast characteristics of reading speed of its inside of access, be specifically as follows the Nor-Flash storage medium.
Step 202 after embedded device starts, is mounted to operating system with Journal File System for the first time, writes the index of Journal File System in internal memory.
Concrete, have a Journal File System in the embedded device usually.But, because embedded device can comprise a plurality of disk partition, handle the difference of file according to each disk partition, each disk partition can corresponding different file system, so, can have plural Journal File System in the embedded device.
After embedded device started, operating system was set up root directory, the Journal File System that uses this root directory carry to need.When having only a Journal File System in the embedded device, when embedded device powers on, the operating system mounting journal file system; When embedded device is electric down, operating system unloading Journal File System, wherein the following electric mode of embedded device can be normal electricity or abnormal power-down down.When comprising two above Journal File Systems in the embedded device, operating system also can be switched different Journal File Systems as required.
When the operating system mounting journal file system first time, operating system scans the disk partition of this Journal File System correspondence, the daily record node of location Journal File System, and, call the file of the disk partition storage of Journal File System correspondence according to the index information in the internal memory and handle index and other chained list index information write memories of daily record node.
Step 203, before above-mentioned Journal File System unloading, operating system all writes the index stores medium with the index information of storing in the internal memory.
Provide special index stores medium to be used for the index information of stored memory in the application scenarios of the present invention.The capacity of this index stores medium is a principle with the index information of enough memory devices, have enough address pin to come addressing since simple index information to take capacity less, therefore, the index stores medium does not need jumbo storage medium.Consider that the index in the index stores medium will preserve for a long time, and when the index error of storage, will cause equipment not carry out operate as normal, so the index stores medium should have the performance that is not easy to occur bad piece according to index.Simultaneously, operating system will influence mounting time of journal file system in embedded device from the speed that the index stores medium reads index, and therefore, the index stores medium should possess the fast characteristics of reading speed.Satisfying the index stores medium of above-mentioned performance can select according to actual needs flexibly, for example can adopt the Nor-Flash storage medium.
Operating system writes index in internal memory after, can gradually the index in the internal memory be write the index stores medium according to the pre-configured time, for example every interval certain hour read one time in the internal memory index and the index that reads write the index stores medium; Also can when unload, Journal File System read all index in the internal memory and write the index stores medium.
Variation for the whole Journal File System of complete documentation, operating system adopts first kind of mode when the index stores medium writes index, write the operation that needs to finish before the index to the Journal File System All Files for the last time, comprise file read-write operation and refuse collection work; If operating system adopts the second way to write index to the index stores medium, then operating system is chosen in the process of unloading index is write the index stores medium, the All Files read-write operation of operating system closing journal formula file system, and refuse collection work before this.The employing of this dual mode can be selected according to actual needs flexibly by the user, and for example, when the index information data volume is very big, the user thinks when index information one-time write storage medium needed overlong time, can adopt first kind of mode to write several times; If the index information data volume is little or repeatedly write in the time of can impacting user's use, the user can adopt second way one-time write.
When operating system writes index in the index stores medium, follow-uply from medium, read index and write memory is a principle with convenient, for example can with index according to the time sequencing that produces, according to the address from small to large order write the index stores medium, certainly, also can order descending according to the address or that other conveniently read in the index stores medium, write index.
In the application scenarios of the present invention, when having only a Journal File System in the embedded device, operating system writes index according to above-mentioned index writing mode in the index stores medium; When embedded device has a plurality of Journal File System, accordingly, can dispose two above index stores media, perhaps in same index stores medium, divide the index that a plurality of storage areas are used for storing respectively each Journal File System.
Step 204 when operating system mounting journal file system subsequently, reads the flag in the index stores medium, need to judge whether the storage medium of this Journal File System correspondence of scanning; If judged result is for being execution in step 205; Otherwise, execution in step 206.
Concrete, when embedded device has a plurality of Journal File System, the system banner of the pre-configured Journal File System of operating system is distinguished the flag of different Journal File Systems and the storage area of various chained list index informations in the index stores medium of Journal File System according to system banner.
Consider that there is the situation of abnormal power-down in embedded device, at this moment, the uninstall process of last Journal File System is not finished smoothly, therefore, can not guarantee to write in the index stores medium all index in the preceding internal memory of unloading.Corresponding with daily record node in the Journal File System in order to guarantee the index in the index stores medium, when abnormal power-down, operating system need rescan the storage medium of Journal File System correspondence, obtains the index of daily record node, and promptly execution in step 205.Otherwise operating system can execution in step 206, with the index write memory in the index stores medium.
The obtain manner of flag sign chained list index information is set in the index stores medium, operating system perhaps directly reads the chained list index information from the index stores medium by reading the storage medium that this flag need to judge whether this Journal File System correspondence of scanning.During the each mounting journal file system of operating system, can judge whether that needs scan the storage medium of this Journal File System correspondence according to flag, when comprising the operating system mounting journal file system first time, operating system also can scan the storage medium of this Journal File System correspondence according to the flag judged result, obtains the index of daily record node in the Journal File System.
Concrete, operating system is when writing index in storage medium, and (for example first storage area) writes flag at first in predefined memory location, and this flag is initially 00; After operating system writes the index stores medium fully with index, flag is updated to FF.Next time is during the operating system mounting journal file system, operating system at first reads the flag in the index stores medium, if this flag is FF, then operating system directly reads index from the index stores medium, and flag is updated to 00, after the index in the internal memory is write the index stores medium fully, again flag is updated to FF.If Journal File System generation abnormal power-down, i.e. not smoothly unloading, flag remains 00, during next operating system mounting journal file system, finds this flag 00, then scans the storage medium of Journal File System correspondence.
Step 205, operating system scans the storage medium of Journal File System correspondence, obtains the index of daily record node in the Journal File System, writes index in internal memory.
Concrete, after the step 205, when Journal File System unloaded, operating system write the index stores medium with the index in the internal memory, and detailed process is with reference to above-mentioned steps 203.
Step 206, operating system read index and the write memory of storing in the index stores medium, carry out file processing according to index.
Concrete, when having only a Journal File System in the embedded device, the index of the single Journal File System of index stores medium memory, operating system directly reads the index of storing in the index stores medium.
When having a plurality of Journal File System in the embedded device, the index stores medium is at the index of the different Journal File Systems of a plurality of area stores, at this moment, operating system need be searched corresponding storage area according to being identified at of Journal File System in the index stores medium, read the index of this Journal File System correspondence.
The index stores medium that disposes in the application scenarios of the present invention can be a storage medium independently, a part that also can be used as the storage medium of existing Journal File System correspondence exists, at this moment, the storage medium of Journal File System correspondence is divided into two parts storage area, part storage area capacity is less, exist as above-mentioned index stores medium, this part storage area has that data reading speed is fast, easy operating and be not easy to occur the performance of bad piece, be used to store various chained list index informations, the start-up code of running log formula file system; Another part storage area capacity is big, is used for the alternative document or the data of storing daily record formula file system correspondence.
When adopting this storage medium, if Journal File System is mounted to operating system, then operating system at first reads the index stores zone of storage medium, judges whether another part storage area that needs scanning index storage medium is outer according to flag.If judged result is to need, operating system scans the chained list index information that another storage area obtains Journal File System, and when Journal File System unloads the chained list index information is write the index stores area stores.If judged result is not for needing, operating system directly reads the chained list index information index and the write memory of index stores area stores, does not need to scan another storage area.
By adopting method provided by the invention, the chained list index information of configuration index storage medium stores Journal File System, when Journal File System is mounted to operating system, operating system can directly read the chained list index information of Journal File System from the index stores medium, do not need to scan the storage medium of setting up this Journal File System, thereby reduce mounting time of journal file system.
The invention provides a kind of equipment that improves speed of mounting journal file system, as embedded device, perhaps be integrated in the embedded device as a functional module, as shown in Figure 3, this equipment comprises that storage medium, dispensing unit 301, scanning element 302, writing unit 303, the sign of index stores medium, Journal File System are provided with unit 304 and reading unit 305, wherein
Described dispensing unit 301 is connected with described index stores medium, is used for the chained list index information of configuration index storage medium stores Journal File System.Concrete; described dispensing unit 301 can also be provided with unit 304 with reading unit 305, writing unit 303 and sign and be connected; setting need write the chained list index information content in the described index stores medium; chained list index information content that configuration reading unit 305 need read or writing unit 303 need write the chained list index information content in the index stores medium; dispensing unit 301 can also the configuration identifier positions concrete form, for sign unit 304 is set and uses the concrete form sign of these flag normal or unusually.
Described scanning element 302, be connected with described reading unit 305 and file system storage medium, be used for when described Journal File System is mounted to the operating system of described embedded device for the first time, the storage medium of described Journal File System is set up in scanning, obtains the chained list index information of described Journal File System; The follow-up flag sign chained list index information that reads when described reading unit 305 writes when unusual, rescans the storage medium of setting up described Journal File System, obtains described chained list index information.
Said write unit 303, unit 304, reading unit 305 and index stores medium are set are connected with described dispensing unit 301, sign, be used for when the unloading of described Journal File System, the chained list index information of described Journal File System is write described index stores medium.Concrete, said write unit 303 can perhaps write described index stores medium according to setting in advance several times with described chained list index information with the described index stores medium of described chained list index information one-time write.
Described sign is provided with unit 304, is connected with reading unit 305 with said write unit 303, is used for writing described chained list index information according to said write unit 303 different flag normally or unusually is set.Concrete, when said write unit 303 writes described chained list index information just often, described sign is provided with unit 304, and that described flag sign is set is normal; When said write unit 303 writes described chained list index information when unusual, described sign is provided with unit 304, and that described flag sign is set is unusual.When described reading unit 305 after described index stores medium directly reads described chained list index information, described sign is provided with unit 304, and also to be used to upgrade described flag unusual for sign.
Described reading unit 305, with sign unit 304, index stores medium, writing unit 303 and scanning element 302 being set is connected, be used for follow-up described Journal File System when described operating system carry, read described sign the flag that unit 304 is provided with is set; If the chained list index information writes normally, directly read described chained list index information from described index stores medium; And writing when unusual, notify described scanning element 302 scannings to obtain the chained list index information.Concrete, described reading unit 305 reads described chained list index information according to the pre-configured memory location of described chained list index information in described index stores medium; Perhaps search the system banner of storage in advance and the corresponding relation of memory location, obtain the memory location of described chained list index information in described index stores medium, read described chained list index information according to the system banner of described Journal File System.
By adopting equipment provided by the invention, the chained list index information of configuration index storage medium stores Journal File System, when Journal File System is mounted to operating system, operating system can directly read the chained list index information of Journal File System from the index stores medium, do not need to scan the storage medium of setting up this Journal File System, thereby reduce mounting time of journal file system.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (11)

1. method that improves speed of mounting journal file system, be applied to the embedded device of configuration log formula file system, it is characterized in that, configuration is in order to the index stores medium of the chained list index information of storing daily record formula file system in the described embedded device, and this method further may further comprise the steps:
When described Journal File System was mounted to the operating system of described embedded device for the first time, the storage medium of described Journal File System was set up in described operating system scanning, obtained the chained list index information of described Journal File System;
When described Journal File System unloaded for the first time, described operating system write described index stores medium with the chained list index information of described Journal File System, and according to writing described chained list index information different flag was set normally or unusually;
Follow-up described Journal File System is to described operating system carry, and described operating system reads flag information; If the chained list index information writes normally, described operating system directly reads described chained list index information from described index stores medium; If the chained list index information writes unusually, described operating system rescans the storage medium of setting up described Journal File System, obtains described chained list index information.
2. the method for claim 1 is characterized in that,
Described basis writes described chained list index information and different flag normally or unusually is set comprises: when writing described chained list index information just often, it is normal that described flag sign is set; When writing described chained list index information when unusual, it is unusual that described flag sign is set;
Described operating system also comprises after described index stores medium directly reads described chained list index information: described operating system normally is updated to sign unusually with described flag by sign.
3. method as claimed in claim 1 or 2 is characterized in that, configuration comprises in order to the index stores medium of the chained list index information of storing daily record formula file system in the described embedded device:
In described embedded device, dispose independently index stores medium, to be specifically designed to the chained list index information of storing daily record formula file system; Perhaps
Reading speed storage area fast, easy to operate, that be not prone to bad piece is configured to described index stores medium in the storage medium of described Journal File System with setting up, and stores the chained list index information of described Journal File System.
4. method as claimed in claim 1 or 2 is characterized in that, described operating system directly reads described chained list index information from described index stores medium and comprises:
Described chained list index information is read according to described memory location in the memory location of the pre-configured described chained list index information of described operating system in described index stores medium; Perhaps
Described operating system is searched the system banner of storage in advance and the corresponding relation of memory location according to the system banner of described Journal File System, obtain the memory location of described chained list index information in described index stores medium, read described chained list index information.
5. method as claimed in claim 1 or 2 is characterized in that, described operating system writes described index stores medium with the chained list index information of described Journal File System and comprises:
Described operating system is disposable to write described index stores medium with described chained list index information; Perhaps
Described operating system writes described index stores medium according to setting in advance several times with described chained list index information.
6. method as claimed in claim 1 or 2 is characterized in that, described index stores medium is specially the Nor-Flash storage medium.
7. an equipment that is applied to the described method of claim 1 is characterized in that, this equipment comprises that storage medium, dispensing unit, scanning element, writing unit, the sign of index stores medium, Journal File System are provided with unit and reading unit, wherein
Described dispensing unit is connected with described index stores medium, is used for the chained list index information of configuration index storage medium stores Journal File System;
Described scanning element, be connected with the storage medium of described reading unit and Journal File System, be used for when described Journal File System is mounted to the operating system of described embedded device for the first time, the storage medium of described Journal File System is set up in scanning, obtains the chained list index information of described Journal File System; The follow-up flag sign chained list index information that reads when described reading unit writes when unusual, rescans the storage medium of setting up described Journal File System, obtains described chained list index information;
The said write unit is connected with described index stores medium, is used for when the unloading of described Journal File System, and the chained list index information of described Journal File System is write described index stores medium;
Described sign is provided with the unit, is connected with said write unit and reading unit, is used for writing described chained list index information according to the said write unit different flag normally or unusually is set, and follow-uply read this flag by reading unit;
Described reading unit is provided with the unit with described sign and scanning element is connected, and is used for follow-up described Journal File System when described operating system carry, reads described sign the flag that the unit is provided with is set; If the chained list index information writes normally, directly read described chained list index information from described index stores medium, and writing when unusual, notify described scanning element to scan and obtain the chained list index information.
8. equipment as claimed in claim 7 is characterized in that, described sign is provided with the unit and also is used for: when the said write unit writes described chained list index information just often, described flag sign is set normally; When the said write unit writes described chained list index information when unusual, it is unusual that described flag sign is set; When described reading unit after described index stores medium directly reads described chained list index information, it is unusual that described flag normally is updated to sign by sign.
9. as claim 7 or 8 described equipment, it is characterized in that described dispensing unit also is used for:
Setting need write the chained list index information content in the described index stores medium.
10. as claim 7 or 8 described equipment, it is characterized in that described reading unit also is used for:
According to the pre-configured memory location of described chained list index information in described index stores medium, read described chained list index information; Perhaps
Search the system banner of storage in advance and the corresponding relation of memory location according to the system banner of described Journal File System, obtain the memory location of described chained list index information in described index stores medium, read described chained list index information.
11., it is characterized in that the said write unit also is used for as claim 7 or 8 described equipment:
With the described index stores medium of described chained list index information one-time write; Perhaps described chained list index information is write described index stores medium according to setting in advance several times.
CN2009102593231A 2009-12-18 2009-12-18 Method and device for improving speed of mounting journal file system Active CN101706822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102593231A CN101706822B (en) 2009-12-18 2009-12-18 Method and device for improving speed of mounting journal file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102593231A CN101706822B (en) 2009-12-18 2009-12-18 Method and device for improving speed of mounting journal file system

Publications (2)

Publication Number Publication Date
CN101706822A true CN101706822A (en) 2010-05-12
CN101706822B CN101706822B (en) 2012-08-08

Family

ID=42377047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102593231A Active CN101706822B (en) 2009-12-18 2009-12-18 Method and device for improving speed of mounting journal file system

Country Status (1)

Country Link
CN (1) CN101706822B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523601A (en) * 2011-12-05 2012-06-27 大唐移动通信设备有限公司 Method and device for monitoring automatic drive test terminal
WO2012119384A1 (en) * 2011-08-10 2012-09-13 华为技术有限公司 Method, device and system for mounting file system
CN105468544A (en) * 2014-09-11 2016-04-06 深圳市腾讯计算机系统有限公司 Method and apparatus for realizing power-failure-proof file system, and power-failure-proof file system
CN106682162A (en) * 2016-12-26 2017-05-17 浙江宇视科技有限公司 Log management method and device
CN107766000A (en) * 2017-10-16 2018-03-06 北京易讯通信息技术股份有限公司 Data safety method for deleting based on distributed storage in a kind of cloud computing
CN108197478A (en) * 2017-08-08 2018-06-22 鸿秦(北京)科技有限公司 A kind of NandFlash encrypted file systems using random salt figure
CN108804709A (en) * 2018-06-22 2018-11-13 新华三云计算技术有限公司 Shared-file system lock management message treatment method, device and server
CN111427989A (en) * 2019-01-10 2020-07-17 北大方正集团有限公司 Index processing method, index processing system and storage medium for full-text retrieval
CN111813748A (en) * 2020-07-10 2020-10-23 济南浪潮数据技术有限公司 File system mounting method and device, electronic equipment and storage medium
CN114443442A (en) * 2022-04-08 2022-05-06 希诺麦田技术(深圳)有限公司 Log storage method and electronic equipment

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012119384A1 (en) * 2011-08-10 2012-09-13 华为技术有限公司 Method, device and system for mounting file system
CN102812458A (en) * 2011-08-10 2012-12-05 华为技术有限公司 Method, device and system for mounting file system
US8719467B2 (en) 2011-08-10 2014-05-06 Huawei Technologies Co., Ltd. Method, apparatus and system for mounting file system
CN102523601A (en) * 2011-12-05 2012-06-27 大唐移动通信设备有限公司 Method and device for monitoring automatic drive test terminal
CN102523601B (en) * 2011-12-05 2015-08-05 大唐移动通信设备有限公司 A kind of method for supervising of automatic drive test terminal and device
CN105468544A (en) * 2014-09-11 2016-04-06 深圳市腾讯计算机系统有限公司 Method and apparatus for realizing power-failure-proof file system, and power-failure-proof file system
CN106682162A (en) * 2016-12-26 2017-05-17 浙江宇视科技有限公司 Log management method and device
CN106682162B (en) * 2016-12-26 2021-03-09 浙江宇视科技有限公司 Log management method and device
CN108197478A (en) * 2017-08-08 2018-06-22 鸿秦(北京)科技有限公司 A kind of NandFlash encrypted file systems using random salt figure
CN107766000A (en) * 2017-10-16 2018-03-06 北京易讯通信息技术股份有限公司 Data safety method for deleting based on distributed storage in a kind of cloud computing
CN108804709A (en) * 2018-06-22 2018-11-13 新华三云计算技术有限公司 Shared-file system lock management message treatment method, device and server
CN108804709B (en) * 2018-06-22 2021-01-01 新华三云计算技术有限公司 Method and device for processing lock management message of shared file system and server
CN111427989A (en) * 2019-01-10 2020-07-17 北大方正集团有限公司 Index processing method, index processing system and storage medium for full-text retrieval
CN111813748A (en) * 2020-07-10 2020-10-23 济南浪潮数据技术有限公司 File system mounting method and device, electronic equipment and storage medium
CN111813748B (en) * 2020-07-10 2022-06-07 济南浪潮数据技术有限公司 File system mounting method and device, electronic equipment and storage medium
CN114443442A (en) * 2022-04-08 2022-05-06 希诺麦田技术(深圳)有限公司 Log storage method and electronic equipment

Also Published As

Publication number Publication date
CN101706822B (en) 2012-08-08

Similar Documents

Publication Publication Date Title
CN101706822B (en) Method and device for improving speed of mounting journal file system
US7039754B2 (en) Detachably mounted removable data storage device
US7472251B2 (en) Data storage apparatus detachably mounted to a host apparatus
CN1307554C (en) Data recorder and method for recording data in flash memory
US7401174B2 (en) File system defragmentation and data processing method and apparatus for an information recording medium
CN103270500A (en) Transaction log recovery
KR101570179B1 (en) - Cache synchronization method and system for fast power-off
JP2009510552A (en) Data management method in flash memory media
CN108628542B (en) File merging method and controller
CN109496292B (en) Disk management method, disk management device and electronic equipment
CN103136116A (en) Memory storage system and central control device, management method and blackout recovery method thereof
KR101049617B1 (en) Memory and memory systems
US7802072B2 (en) Data storage device, memory management method and program for updating data recorded in each of a plurality of physically partitioned memory areas
CN103577574A (en) High-reliability linear file system based on nand flash
CN102722443A (en) Bad block management method for flash memory
US20080250189A1 (en) Circuit and Method for Improving Operation Life of Memory
CN111797058A (en) Universal file system and file management method
CN102200986A (en) Storage system and method for generating file system in the storage system
CN101751340B (en) Data write method for improving service life of data storage equipment
CN109408416A (en) A kind of address of cache list item page management method and device
US20120260022A1 (en) Handling commands within a write-once read-many storage device configuration
WO2009110665A1 (en) Information storage medium for recording data according to journaling file system, and method of and apparatus for writing/recovering data using journaling file system
CN100409164C (en) Storage device and storage system
JP2007148965A (en) Error block management method and device for flash disk device
CN113535086B (en) Acceleration method for reconstruction in solid state disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 310013 Binjiang District, Hangzhou, Binjiang Avenue, No. Huarong Times Building, room 1601, room 3880

Patentee after: Hangzhou Dipu Polytron Technologies Inc

Address before: 310013 Binjiang District, Hangzhou, Binjiang Avenue, No. Huarong Times Building, room 1601, room 3880

Patentee before: Hangzhou Dipu Technology Co., Ltd.

TR01 Transfer of patent right

Effective date of registration: 20210617

Address after: 310051 05, room A, 11 floor, Chung Cai mansion, 68 Tong Xing Road, Binjiang District, Hangzhou, Zhejiang.

Patentee after: Hangzhou Dip Information Technology Co.,Ltd.

Address before: 1601, Huarong Times Building, No. 3880, Binjiang Road, Binjiang District, Zhejiang, Hangzhou, China

Patentee before: Hangzhou DPtech Technologies Co.,Ltd.

TR01 Transfer of patent right