CN108205422A - A kind of storage method and device - Google Patents

A kind of storage method and device Download PDF

Info

Publication number
CN108205422A
CN108205422A CN201611182479.0A CN201611182479A CN108205422A CN 108205422 A CN108205422 A CN 108205422A CN 201611182479 A CN201611182479 A CN 201611182479A CN 108205422 A CN108205422 A CN 108205422A
Authority
CN
China
Prior art keywords
present
log information
data
orders
disk
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.)
Pending
Application number
CN201611182479.0A
Other languages
Chinese (zh)
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.)
Beijing Ingenic Semiconductor Co Ltd
Original Assignee
Beijing Ingenic Semiconductor 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 Beijing Ingenic Semiconductor Co Ltd filed Critical Beijing Ingenic Semiconductor Co Ltd
Priority to CN201611182479.0A priority Critical patent/CN108205422A/en
Publication of CN108205422A publication Critical patent/CN108205422A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The present invention relates to communication technique field more particularly to a kind of storage method and devices.For solving the problems, such as that disk really is written not yet just as power down suddenly causes to lose in data in the prior art.The method includes:Capture LOG information;It is performed simultaneously sync orders;The data write-in hard disk in caching is preserved after the sync orders are received.Method provided in an embodiment of the present invention can be used for solving the problems, such as that disk really is written not yet just as power down suddenly causes to lose in data in the prior art.

Description

A kind of storage method and device
Technical field
The present invention relates to communication technique field more particularly to a kind of storage method and devices.
Background technology
It is frequently necessary to check the LOG information or protect LOG information that serial ports Program performs in embedded development debugging It leaves come for analyzing and determining the operation conditions of program.Output redirection would generally be used by preserving in LOG information to some file " > " is operated.
But the inventors discovered that when debugging some problems, unexpected power down crash is restarted sometimes, at this moment if be used only LOG information is saved in file by output redirection, and there are no real for the data cached in possible file system buffer at this time Write-in disk is just as power down suddenly causes to lose.
Invention content
The embodiment of the present invention provides a kind of storage method, and disk is really written not yet for solving data in the prior art Just as the problem of power down suddenly causes to lose.
A kind of storage method, the method includes:
Capture LOG information;
It is performed simultaneously sync orders;
The data write-in hard disk in caching is preserved after the sync orders are received.
A kind of storage device, described device include:
Handling module, for capturing LOG information;
Execution module, for being performed simultaneously sync orders;
Writing module, for preserving the data write-in hard disk in caching after the sync orders are received.
As it can be seen that method provided in an embodiment of the present invention, can be used for solving data really write-in not yet in the prior art Disk is just as the problem of power down suddenly causes to lose.
Description of the drawings
It, below will be to embodiment or the prior art in order to illustrate more clearly of the present invention or technical solution of the prior art Attached drawing is briefly described needed in description.
Fig. 1 is a kind of storage method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of storage device provided in an embodiment of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present invention, and make the present invention's Above-mentioned purpose, feature and advantage can be more obvious understandable, technical solution in the present invention made below in conjunction with the accompanying drawings further detailed Thin explanation.
Method provided in an embodiment of the present invention can be used for solving data in the prior art and disk really be written just not yet Because the problem of unexpected power down causes to lose.As shown in Figure 1, detailed process is as follows:
Step 11, LOG information is captured;
LOG information is preserved by being captured in the output redirection to file by program in this step, operation is for example:App > log.txt;Wherein, LOG information refers to some sentences printed when program performs;
Step 12, sync orders are performed while step 11 is performed;
In this step, sync orders refer to for by the order of the data cached write-in hard disk in file system buffer;
Step 13, the data write-in hard disk in caching is preserved after the sync orders are received.
As it can be seen that if unexpected power-off is also because the sync orders that cycle performs are thus by the caching in file system buffer Data are written with hard disk.
As shown in Fig. 2, the embodiment of the present invention provides a kind of storage device, which includes:
Handling module 21, for capturing LOG information;
Execution module 22, for being performed simultaneously sync orders;
Writing module 23, for preserving the data write-in hard disk in caching after the sync orders are received.
In conclusion advantageous effect:
Method provided in an embodiment of the present invention can be used for solving data in the prior art and disk really be written just not yet Because the problem of unexpected power down causes to lose.
In conclusion advantageous effect:
Method provided in an embodiment of the present invention can be used for solving data in the prior art and disk really be written just not yet Because the problem of unexpected power down causes to lose.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.

Claims (2)

1. a kind of storage method, which is characterized in that the method includes:
Capture LOG information;
It is performed simultaneously sync orders;
The data write-in hard disk in caching is preserved after the sync orders are received.
2. a kind of storage device, which is characterized in that described device includes:
Handling module, for capturing LOG information;
Execution module, for being performed simultaneously sync orders;
Writing module, for preserving the data write-in hard disk in caching after the sync orders are received.
CN201611182479.0A 2016-12-19 2016-12-19 A kind of storage method and device Pending CN108205422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611182479.0A CN108205422A (en) 2016-12-19 2016-12-19 A kind of storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611182479.0A CN108205422A (en) 2016-12-19 2016-12-19 A kind of storage method and device

Publications (1)

Publication Number Publication Date
CN108205422A true CN108205422A (en) 2018-06-26

Family

ID=62603114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611182479.0A Pending CN108205422A (en) 2016-12-19 2016-12-19 A kind of storage method and device

Country Status (1)

Country Link
CN (1) CN108205422A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477822A (en) * 2003-07-31 2004-02-25 北京港湾网络有限公司 Extension storage method of journal information
CN101576860A (en) * 2009-06-11 2009-11-11 成都市华为赛门铁克科技有限公司 Detection method and detection system
CN105183626A (en) * 2015-09-30 2015-12-23 深圳怡化电脑股份有限公司 Log storage method and system of paper currency recognition module
CN105843852A (en) * 2016-03-16 2016-08-10 汉柏科技有限公司 Log storage management method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477822A (en) * 2003-07-31 2004-02-25 北京港湾网络有限公司 Extension storage method of journal information
CN101576860A (en) * 2009-06-11 2009-11-11 成都市华为赛门铁克科技有限公司 Detection method and detection system
CN105183626A (en) * 2015-09-30 2015-12-23 深圳怡化电脑股份有限公司 Log storage method and system of paper currency recognition module
CN105843852A (en) * 2016-03-16 2016-08-10 汉柏科技有限公司 Log storage management method and system

Similar Documents

Publication Publication Date Title
CN107391269B (en) Method and equipment for processing message through persistent queue
EP2434390A3 (en) Method of adding value to print data, a value-adding device, and a recording medium
EP2063361A3 (en) Storage apparatus, control method therefor, and storage system
US9946467B2 (en) Data storage method and electronic device
US8195619B2 (en) Extent reference count update system and method
EP2602707A3 (en) Environmental-based device operation
CN104572411B (en) A kind of processing method and processing device of daily record data
WO2009072102A3 (en) System and methods employing mock thresholds to generate actual reading thresholds in flash memory devices
EP1544708A3 (en) Subscriber identification module (SIM) emulator
WO2005013053A3 (en) Apparatus and method for software debugging
TR201902826T4 (en) The method for providing reliable software to an electronic device.
CN104331487B (en) The processing method and processing device of log
WO2007049109A3 (en) Method and system for compression of logical data objects for storage
CN106919494B (en) Method and device for realizing android application log
WO2012016089A3 (en) Apparatus, system, and method for conditional and atomic storage operations
WO2006095184A3 (en) Data processing system
WO2012074554A3 (en) Transaction log recovery
JP2018089936A5 (en)
TW200731074A (en) Hardware-assisted device configuration detection
EP2687986A3 (en) Information processing device with memory dump function, memory dump method, and recording medium
CN105868093A (en) Log write-in method and server side
US11997132B2 (en) System and method for protecting network resources
CN109118609B (en) Unmanned aerial vehicle flight log recording method and device, storage medium and computer equipment
CN102722430B (en) Method and device for detecting hot plug of secure digital card
CN104123204A (en) LPC bus detection system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180626