A Method of Improving the Stability of Ext File System

A file system and stability technology, which is used in response to errors, redundant data error detection in operations, special data processing applications, etc. It can solve file system damage, poor disk file system stability, and file disappearance. problem, to overcome the file system crash, achieve file system stability, and reduce the difficulty of development

Inactive Publication Date: 2015-09-09
BEIJING INTELLIX TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The hard disk is a fixed storage device, and usually there is no protection on the embedded system. Therefore, in the course of multiple uses, it is inevitable that the file system will crash and data will be lost. These problems will affect the reading of data, thereby affecting the entire system. product use
The main problems that arise: 1) The file system crashes, and all data is lost; 2) The deleted file will reappear after the power is turned off; 3) The created file disappears after the power is turned off; 4) Some files are lost, input / output error problem
However, this tool will cause certain damage to the file system, and the repair time is very long
[0006] In the existing technology, only one attempt is made to mount the disk partition, and the lack of a corresponding fault-tolerant processing mechanism leads to poor stability of the disk file system; in addition, the current EXT-based disk file system is due to abnormal power failures and other reasons. The system crashes and all data is lost; deleted files will reappear after power failure; created files disappear after power failure; some files are lost, and problems such as input and output also occur frequently

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
  • A Method of Improving the Stability of Ext File System
  • A Method of Improving the Stability of Ext File System
  • A Method of Improving the Stability of Ext File System

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] Step 11, read the super block of the 0th block group, if the reading is successful, go to the next step; otherwise, read the backup super block (the first block of the third block group), read the backup super block and exit the mounting process; If the backup super block is successfully read, restore the backup super block to the super block position of the 0th block group, read the super block of the 0th block group again, and enter the next step if the read is successful, otherwise exit the mounting process.

[0038] Step 12, read the group descriptor of the 0th block group, and proceed to the next step if the verification is successful; if it fails to read the backup group descriptor information (the second block of the third block group), the verification fails and exits the mounting process; If the verification is successful, restore the backup group descriptor to the 0th block group, and re-read the group descriptor of the 0th block group. If the reading is succes...

Embodiment 2

[0050] Because the Linux file system is built by the virtual file system as a medium. The virtual file system VFS (virtual file system) is a framework implemented by the kernel layer, which provides a unified file operation interface for user space. Each filesystem implementation exports a set of common interfaces for use by VFS. Buffers are used to cache requests between the file system and associated block devices. That is, the read and write requests to the underlying device driver will be passed through the buffer cache to reduce the number of times to access the physical device and speed up the access. If the read and write requests in the buffer are not executed and the power is turned off abnormally, 1) the file system crashes and all data is lost; 2) the deleted file will reappear after the power is turned off; 3) the created file is broken It disappears after power on; 4) Some files are lost, input / output error and other problems. In order to avoid the above proble...

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 method for improving stability of an EXT (extended) file system. Stability of the EXT file system is improved during disk driving by the method. The method includes the steps of backing up information of a disk file system during a period or when a disk is uninstalled; if mounting of disk partitions fails, trying to mount one more time according to the backup information; and if mounting fails again, ending the mounting process. The information of the file system includes super blocks, chunking and root node information. The method further includes: synchronously processing read-write operations to disk files. The synchronous processing includes: when read-write operations are performed to the disk file system, transmitting a read-write request in a memory buffer to a storage medium, namely transmitting all unwritten data stored in the buffer to a device driver and transmitting the data to a storage device to complete synchronization. The read-write operations include file creating or file deleting and the like.

Description

technical field [0001] The invention relates to a software mechanism method for realizing the optimization of an embedded file system, in particular to a method for improving the stability of an ext file system. Background technique [0002] In this rapidly developing society, people's needs are getting higher and higher. At present, the video field is developing towards high-definition. Although the video coding compression ratio has been optimized, the files are inevitably getting larger and larger, so hard disk storage is necessary; As a result, various set-top boxes, industrial computers, etc. have higher and higher requirements for the reliability of the file system. Currently, the operating system is the Linux operating system, and the file system used is generally the ext file system, such as EXT2, EXT3, and EXT4. Among them, EXT2 does not have a log function, and EXT3 and EXT4 have a log function. [0003] However, during the long-term use of hard disks, file system...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/14G06F17/30
Inventor 齐向东胡建良姜京梅潘梁邱延萍
Owner BEIJING INTELLIX TECH
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