Abnormal power failure data recovery method

An electrical data and abnormal technology, applied in the field of information communication, can solve the problems of the imperfect data recovery mechanism of the log file system, the inability to save the cached data in time, and the inability to achieve safe data storage, etc., to avoid data inconsistency, easy to promote, and practical strong effect

Inactive Publication Date: 2014-11-05
INSPUR QILU SOFTWARE IND
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the file system used by the tax network invoicing machine may have the hidden danger of file damage when the power is off, including the Yaffs2, Jffs2 file system, etc. The main problem is that the data recovery mechanism of the log file system is not perfect. A large amount of cached data cannot be saved in time, so the requirements for safe storage

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
  • Abnormal power failure data recovery method
  • Abnormal power failure data recovery method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0028] The present invention provides a method for recovering abnormal power-off data, aiming at the functional requirements of power-down protection, business integrity, and safe storage of network invoice detail data, invoice volume data, and other important operating files. The remaining backup program runs the library, which realizes the functions of data redundancy backup and transaction processing, and is called by the application layer. Based on this design idea, as attached figure 1 , figure 2 As shown, the specific implementation process of this method is:

[0029] Three areas are set in the data memory of the embedded network ticket issuing machine: file system area, tax data area and redundant backup area;

[0030] Encapsulating a redundant backup program runtime library and an operating function library in the redundant backup a...

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 discloses an abnormal power failure data recovery method, which comprises the concrete realization processes that: three regional spaces including a file system region, a tax data region and a redundant backup region are set in a data memory of an embedded network billing machine; a redundant backup program runtime library and an operation function library are encapsulated in the redundant backup region, and the operation function library comprises a file creating function, a reading function and a writing function; when tax data relevant affairs are stored in the tax data region, the affairs are firstly written into the redundant backup region, and after the submission of the affairs in the redundant backup region is completed, original files are written into the tax data region; and when abnormal power failure occurs, an affair power failure recovery program is started, and the data recovery is completed through the redundant backup region. Compared with the prior art, the abnormal power failure data recovery method has the advantages that important data such as invoice volume data and invoice details of network billing can be enabled to realize synchronous storage; the service execution integrity is ensured; and the safe storage requirement of the machine is improved.

Description

technical field [0001] The invention relates to the field of information communication technology, in particular to the field of tax industry and a method for recovering abnormal power-off data. Background technique [0002] At present, the file system used by the tax network invoicing machine may have the hidden danger of file damage when the power is off, including the Yaffs2, Jffs2 file system, etc. The main problem is that the data recovery mechanism of the log file system is not perfect. A large amount of cached data cannot be saved in time, so the requirements for safe storage of important data cannot be met. Based on this, a method for recovering abnormal power-off data is provided. This method considers the design of dual mutual backup in the embedded system. Mechanism, double backup for reading and writing of important data to ensure safe storage of data, even if the original file is damaged, it can be restored through the backup file. Contents of the invention ...

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): G06F11/14
Inventor 刘来波黄正茂刘桂新
Owner INSPUR QILU SOFTWARE IND
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