CN104834610A - Magnetic disk power-down protection circuit and method - Google Patents

Magnetic disk power-down protection circuit and method Download PDF

Info

Publication number
CN104834610A
CN104834610A CN201410108261.5A CN201410108261A CN104834610A CN 104834610 A CN104834610 A CN 104834610A CN 201410108261 A CN201410108261 A CN 201410108261A CN 104834610 A CN104834610 A CN 104834610A
Authority
CN
China
Prior art keywords
disk
external power
power source
cache memory
control module
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
CN201410108261.5A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410108261.5A priority Critical patent/CN104834610A/en
Priority to PCT/CN2014/086164 priority patent/WO2015139432A1/en
Publication of CN104834610A publication Critical patent/CN104834610A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2015Redundant power supplies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/81Threshold
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/85Active fault masking without idle spares

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a magnetic disk power-down protection circuit and method. The magnetic disk power-down protection circuit comprises a boosting module, a monitoring module, an energy-storage capacitor, a voltage conversion module, a magnetic disk, a control module and a high-speed cache memory, wherein the monitoring module is used for monitoring whether or not an external power supply fails; the energy-storage capacitor is used for providing voltage required by working for the magnetic disk, the control module and the high-speed cache memory through the voltage conversion module when the external power supply fails; and the control module is used for writing data to be written into the magnetic disk in the high-speed cache memory into the magnetic disk when the external power supply fails. Through adoption of the magnetic disk power-down protection circuit and method, short-time power supply is provided for the magnetic disk through the energy-storage capacitor, and data to be written into the magnetic disk in the high-speed cache memory is written into the magnetic disk when the external power supply fails.

Description

A kind of disk power-down protection circuit and method
Technical field
The present invention relates to computer realm, be related specifically to a kind of disk power-down protection circuit and method.
Background technology
Relative to random access memory ram (random access memory), the read-write speed of disk is very low, and (SuSE) Linux OS, in order to solve the inefficient problem of disk read-write, introduces page cache mechanism and block device I/O scheduling mechanism.Page cache mechanism sets up mapping relations between page and disk sector, for write operation, is first write in page cache by user data, and corresponding page is labeled as dirty page, and then operating system can timing be write the content of dirty page in disk; Adopt in this way, although access efficiency improves, but bring a problem, if there occurs the situation of external power source power down, content so in page cache just lost, if lost the metadata of file system, file system will be caused impaired, disk under serious conditions, can be caused unavailable.
For data loss problem under power-down conditions, the solution of current employing provides backup battery (as adopted uninterrupted power source or reserve battery) to system, after working power power down, switch to backup battery provide long-time power supply to system, this mode realizes more complicated, hardware drops into comparatively large, and there is no need to provide long-time power supply to system.
Summary of the invention
Fundamental purpose of the present invention is for providing a kind of disk power-down protection circuit and method; overcome the problem that the unexpected power down of the disk existed in prior art causes loss of data; short time is provided to power by storage capacitor to disk when external power supply power-fail; the data of the disk to be written in cache memory are written in disk, avoid loss of data.
The invention provides a kind of disk power-down protection circuit, this circuit comprises: boost module, monitoring modular, storage capacitor, voltage transformation module, disk, control module, cache memory, the input end of described boost module is connected with external power source, the output terminal of described boost module connects the first end of storage capacitor and the input end of voltage transformation module respectively, the second end ground connection of described storage capacitor; The output terminal of described voltage transformation module connects disk, control module, cache memory respectively, the input end of described monitoring modular connects external power source, the output terminal link control module of described monitoring modular, described control module is also connected with described disk, cache memory respectively, wherein:
Described monitoring modular, for monitoring external power source whether power down;
Described storage capacitor, for when described external power source power down, by described voltage transformation module be disk, control module, cache memory provide voltage needed for work;
The data of the disk to be written in described cache memory, for when outside power supply power-fail, are written in disk by described control module.
Preferably, described control module comprises: erasing logical device able to programme, controller, wherein:
Described erasing logical device able to programme, for when outside power supply power-fail, to described controller report external power source powered-off fault information;
The data of the disk to be written in described cache memory, for when receiving described external power source powered-off fault information, are written in disk by described controller.
Preferably, described controller comprises searches unit, control module, wherein:
Describedly search unit, for when receiving described external power source powered-off fault information, the overall superblock chained list of traversal file system, finds the superblock that disk is corresponding;
Described control module, for the data write disk of the dirty page by cache memory corresponding for superblock corresponding for described disk.
Preferably, control module comprises:
First sub-control unit, for traveling through the dirty index chained list of superblock corresponding to described disk, and obtains dirty index node;
Second sub-control unit, for finding corresponding address space according to described dirty index node, and the write operation calling the address space of described correspondence writes disk the data of the dirty page of the cache memory of correspondence.
Preferably, whether described monitoring modular is less than predeterminated voltage threshold values specifically for the voltage of monitoring external power source, if the voltage of described external power source is less than predeterminated voltage threshold values, then determines described external power source power down.
The present invention also provides a kind of disk power-off protection method using disk power-down protection circuit described in above-mentioned any one, and the method comprises:
The whether power down of monitoring module monitors external power source;
When described external power source power down, storage capacitor by voltage transformation module be disk, control module, cache memory provide voltage needed for work;
When described external power source power down, the data of the disk to be written in cache memory are written in disk by control module.
Preferably, described when described external power source power down, the step that the data of the disk to be written in cache memory are written in disk comprises by control module:
When outside power supply power-fail, the erasing logical device able to programme of described control module is to the controller report external power source powered-off fault information of described control module;
The data of the disk to be written in described cache memory, when receiving described external power source powered-off fault information, are written in disk by described controller.
Preferably, the step that the data of the disk to be written in described cache memory are written in disk, when receiving described external power source powered-off fault information, comprises by described controller:
Described controller search unit when receiving described external power source powered-off fault information, the overall superblock chained list of traversal file system, finds the superblock that disk is corresponding;
The control module of described controller is by the data of the dirty page of cache memory corresponding for superblock corresponding for described disk write disk.
Preferably, the step of the data of the dirty page of cache memory corresponding for superblock corresponding for described disk write disk comprises by the control module of described controller:
First sub-control unit of described control module travels through the dirty index chained list of superblock corresponding to described disk, and obtains dirty index node;
Second sub-control unit of described control module finds corresponding address space according to described dirty index node, and the write operation calling the address space of described correspondence writes disk the data of the dirty page of the cache memory of correspondence.
Preferably, the step of described monitoring module monitors external power source whether power down is specially:
Whether the voltage of described monitoring module monitors external power source is less than predeterminated voltage threshold values, if the voltage of described external power source is less than predeterminated voltage threshold values, then determines described external power source power down.
Adopt the present invention, when external power supply power-fail, provide power supply by storage capacitor to disk, cache memory, the data of the disk to be written in cache memory are written in disk, avoid the loss of data in cache memory, and adopt storage capacitor cost low.
Accompanying drawing explanation
Fig. 1 is the preferred embodiment structural representation of inventive disk power-down protection circuit;
Fig. 2 is the structural representation of Fig. 1 middle controller;
Fig. 3 is the preferred embodiment schematic flow sheet of inventive disk power-off protection method;
Fig. 4 is the detailed process schematic diagram of step S30 in Fig. 3.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the preferred embodiment schematic flow sheet of inventive disk power-down protection circuit, this circuit comprises: boost module 10, monitoring modular 20, storage capacitor 30, voltage transformation module 40, disk 50, control module 60, cache memory 70, the input end of this boost module 10 is connected with external power source, the output terminal of this boost module 10 connects the first end of storage capacitor 30 and the input end of voltage transformation module 40 respectively, the second end ground connection of this storage capacitor 30; The output terminal of this voltage transformation module 40 connects disk 50, control module 60, cache memory 70 respectively, the input end of this monitoring modular 20 connects external power source, the output terminal link control module 60 of this monitoring modular 20, this control module 60 is also connected with this disk 50, cache memory 70 respectively, wherein:
This monitoring modular 20, for monitoring external power source whether power down;
This storage capacitor 30, for when this external power source power down, by this voltage transformation module 40 be disk 50, control module 60, cache memory 70 provide voltage needed for work;
The data of the disk to be written in this cache memory 70, for when outside power supply power-fail, are written in disk 60 by this control module 60.
This disk 60 comprises hard disk and floppy disk.
When external power source normal power supply, this boost module 10 by the boost in voltage of external power source to preset voltage value (as external power source 48V is boosted to 72V), this external power source is charged for energy-storage module 30 by this boost module 10, the voltage that boost module 10 exports is changed by this voltage conversion circuit 40, for the disk 50 be connected with this voltage conversion circuit 40, control module 60, cache memory 70 provides the voltage needed for work, voltage as provided for disk 50 is V1, the voltage provided for control module 60 is V2, the voltage provided for cache memory 70 is V3.When external power source normal power supply, storage capacitor 30 is in charged state or is full of electricity condition, when this storage capacitor 30 be in be full of electricity condition time, the magnitude of voltage of the first end of this storage capacitor 30 is the output voltage (as when external power source 48V is boosted to 72V by boost module 10, the magnitude of voltage of the first end of this storage capacitor 30 is 72V) of this boost module 10.
This monitoring modular 20 detects in real time external power source whether power down, and concrete, whether the voltage that this monitoring modular 20 monitors external power source is less than predeterminated voltage threshold values, if the voltage of this external power source is less than predeterminated voltage threshold values, then determines this external power source power down.This predeterminated voltage threshold values can be arranged according to actual needs.When this external power source power down, this external power source cannot be disk 50 by boost module 10 and voltage transformation module 40, control module 60, cache memory 70 provide voltage needed for work; Now, this storage capacitor 30 discharges, by this voltage transformation module 40 be disk 50, control module 60, cache memory 70 provide voltage needed for work, this storage capacitor 30 to replace external power source is disk 50, control module 60, cache memory 70 provide voltage needed for work.
This control module 60 is when outside power supply power-fail, the data of the disk to be written in this cache memory 70 are written in disk 60, namely this control module 60 storage capacitor 30 be disk 50, control module 60, cache memory 70 power time, in time by the data of the disk to be written in cache memory 70 write disk 70, to prevent loss of data.Namely before the discharge off of this storage capacitor 30, this storage capacitor 30 carries out the short time and powers to disk 50, control module 60, cache memory 70, and this control module 60 has enough time by the data of the disk to be written in cache memory 70 write disk 70 before storage capacitor 30 discharge off.
Further, this control module 60 comprise erasing logical device 61 able to programme, with this erasing logical device 61 connection control device 62 able to programme, wherein:
This erasing logical device 61 able to programme, for when outside power supply power-fail, to this controller report external power source powered-off fault information;
The data of the disk to be written in this cache memory, for when receiving this external power source powered-off fault information, are written in disk by this controller 62.
This erasing logical device 61 able to programme, when receiving monitoring result that monitoring modular 20 sends and being external power source power down, generates external power source powered-off fault information, and the external power source powered-off fault information of this generation is sent to controller 62.This controller 62, when receiving this external power source powered-off fault information, performs interrupt handling routine, the data of the disk to be written in this cache memory is written in disk.
Further, as shown in Figure 2, this controller 62 comprises to be searched unit 63, searches unit 63 connection control unit 64 with this, wherein:
This searches unit 63, and for when receiving this external power source powered-off fault information, the overall superblock chained list of traversal file system, finds the superblock that disk is corresponding;
This control module 64, for the data write disk of the dirty page by cache memory corresponding for superblock corresponding for this disk.
The overall superblock chained list of this file system comprises various superblock, superblock as corresponding in disk, the superblock etc. that FLASH is corresponding, various types of superblocks in this overall superblock chained list have different identifiers, and the identifier of superblock as corresponding in disk is the identifier of the superblock that f1, FLASH are corresponding is f2.
This searches unit 63 when receiving external power source powered-off fault information, the overall superblock chained list of traversal file system, to determine which is the superblock that disk is corresponding, as searched the superblock that identifier is f1 in this overall superblock chained list.Concrete, this is searched unit 63 and travels through this overall superblock chained list in order successively, until traveled through all superblocks.
This control module 64 is analyzed searching the superblock that unit 63 finds out, the data write disk of the dirty page of the cache memory that the superblock this found out is corresponding.
Further, this control module 64 comprises the first sub-control unit 641 and the second sub-control unit 642, wherein:
This first sub-control unit 641, for traveling through the dirty index chained list of superblock corresponding to this disk, and obtains dirty index node;
This second sub-control unit 642, for finding corresponding address space according to this dirty index node, and the write operation calling the address space of this correspondence writes disk the data of the dirty page of the cache memory of correspondence.
The superblock that this disk is corresponding has one or more, and this first sub-control unit 641 travels through the dirty index chained list of superblock corresponding to this disk successively, obtains dirty index node.Concrete, this first sub-control unit 641 first travels through the dirty index chained list of first superblock corresponding to disk, if the dirty index chained list of first superblock that this disk is corresponding is empty, then continue to travel through the dirty index chained list of second superblock corresponding to disk; If the dirty index chained list of first superblock that this disk is corresponding is not empty, then obtain dirty index node, then find corresponding address space by the second sub-control unit 642 according to this dirty index node, and the write operation calling the address space of this correspondence writes disk the data of the dirty page of the cache memory of correspondence; This dirty index node, after the data write disk of the dirty page by cache memory corresponding for dirty index node, is shifted out the dirty index chained list of superblock by this second sub-control unit 642.The rest may be inferred, travels through the dirty index chained list of all the other superblocks corresponding to disk, the data of the dirty page of the cache memory of correspondence write disk.
With reference to the preferred embodiment schematic flow sheet that Fig. 3, Fig. 3 are inventive disk power-off protection method, use above-mentioned disk power-down protection circuit, the method comprises:
The whether power down of S10, monitoring module monitors external power source.
When external power source normal power supply, boost module by the boost in voltage of external power source to preset voltage value (as external power source 48V is boosted to 72V), this external power source is energy-storage module charging by this boost module, the voltage that boost module exports is changed by voltage conversion circuit, for the disk, control module, the cache memory that are connected with this voltage conversion circuit provide the voltage needed for work, the voltage as provided for disk is V1, the voltage that provides for control module is V2, the voltage that provides for cache memory is V3.When external power source normal power supply, storage capacitor is in charged state or is full of electricity condition, when this storage capacitor be in be full of electricity condition time, the magnitude of voltage of the first end of this storage capacitor is the output voltage (as when external power source 48V is boosted to 72V by boost module 10, the magnitude of voltage of the first end of this storage capacitor is 72V) of this boost module.
In this step S10, monitoring modular detects external power source whether power down in real time, and concrete, whether the voltage of this monitoring module monitors external power source is less than predeterminated voltage threshold values, if the voltage of this external power source is less than predeterminated voltage threshold values, then determine this external power source power down.This predeterminated voltage threshold values can be arranged according to actual needs.
S20, when this external power source power down, storage capacitor by voltage transformation module be disk, control module, cache memory provide voltage needed for work.
When external power source power down, this external power source cannot be disk by boost module and voltage transformation module, control module, cache memory provide voltage needed for work.Then in this step S20, this storage capacitor discharges, by this voltage transformation module be disk, control module, cache memory provide voltage needed for work, this storage capacitor replaces that external power source is disk, control module, cache memory provide voltage needed for work.
S30, when this external power source power down, the data of the disk to be written in cache memory are written in disk by control module.
In this step S30, control module is when outside power supply power-fail, the data of the disk to be written in this cache memory are written in disk, namely this control module storage capacitor be disk, control module, cache memory power time, in time by the data of the disk to be written in cache memory write disk, to prevent loss of data.Namely before the discharge off of this storage capacitor, this storage capacitor carries out the short time power to disk, control module, cache memory, and this control module has enough time by the data of the disk to be written in cache memory write disk before storage capacitor discharge off.
Further, this step S30 comprises (as shown in Figure 4):
S31, when outside power supply power-fail, the erasing logical device able to programme of this control module is to the controller report external power source powered-off fault information of this control module.
This erasing logical device able to programme, when receiving monitoring result that monitoring modular sends and being external power source power down, generates external power source powered-off fault information, and the external power source powered-off fault information of this generation is sent to controller.
The data of the disk to be written in this cache memory, when receiving this external power source powered-off fault information, are written in disk by S32, this controller.
This controller, when receiving this external power source powered-off fault information, performs interrupt handling routine, the data of the disk to be written in this cache memory is written in disk.
Further, this step S32 comprises:
S33, this controller search unit when receiving this external power source powered-off fault information, the overall superblock chained list of traversal file system, finds the superblock that disk is corresponding.
The overall superblock chained list of this file system comprises various superblock, superblock as corresponding in disk, the superblock etc. that FLASH is corresponding, various types of superblocks in this overall superblock chained list have different identifiers, and the identifier of superblock as corresponding in disk is the identifier of the superblock that f1, FLASH are corresponding is f2.
This searches unit when receiving external power source powered-off fault information, the overall superblock chained list of traversal file system, to determine which is the superblock that disk is corresponding, as searched the superblock that identifier is f1 in this overall superblock chained list.Concrete, this is searched unit and travels through this overall superblock chained list in order successively, until traveled through all superblocks.
The control module of S34, this controller is by the data of the dirty page of cache memory corresponding for superblock corresponding for this disk write disk.
This control module is analyzed searching the superblock that unit finds out, the data write disk of the dirty page of the cache memory that the superblock this found out is corresponding.
Further, this step S34 comprises:
First sub-control unit of S341, control module travels through the dirty index chained list of superblock corresponding to this disk, and obtains dirty index node.
Second sub-control unit of S342, this control module finds corresponding address space according to this dirty index node, and the write operation calling the address space of this correspondence writes disk the data of the dirty page of the cache memory of correspondence.
The superblock that this disk is corresponding has one or more, and this first sub-control unit travels through the dirty index chained list of superblock corresponding to this disk successively, obtains dirty index node.Concrete, this first sub-control unit first travels through the dirty index chained list of first superblock corresponding to disk, if the dirty index chained list of first superblock that this disk is corresponding is empty, then continue to travel through the dirty index chained list of second superblock corresponding to disk; If the dirty index chained list of first superblock that this disk is corresponding is not empty, then obtain dirty index node, then find corresponding address space by the second sub-control unit according to this dirty index node, and the write operation calling the address space of this correspondence writes disk the data of the dirty page of the cache memory of correspondence; This dirty index node, after the data write disk of the dirty page by cache memory corresponding for dirty index node, is shifted out the dirty index chained list of superblock by this second sub-control unit.The rest may be inferred, travels through the dirty index chained list of all the other superblocks corresponding to disk, the data of the dirty page of the cache memory of correspondence write disk.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a disk power-down protection circuit, it is characterized in that, described circuit comprises: boost module, monitoring modular, storage capacitor, voltage transformation module, disk, control module, cache memory, the input end of described boost module is connected with external power source, the output terminal of described boost module connects the first end of storage capacitor and the input end of voltage transformation module respectively, the second end ground connection of described storage capacitor; The output terminal of described voltage transformation module connects disk, control module, cache memory respectively, the input end of described monitoring modular connects external power source, the output terminal link control module of described monitoring modular, described control module is also connected with described disk, cache memory respectively, wherein:
Described monitoring modular, for monitoring external power source whether power down;
Described storage capacitor, for when described external power source power down, by described voltage transformation module be disk, control module, cache memory provide voltage needed for work;
The data of the disk to be written in described cache memory, for when outside power supply power-fail, are written in disk by described control module.
2. circuit according to claim 1, is characterized in that, described control module comprises: erasing logical device able to programme, controller, wherein:
Described erasing logical device able to programme, for when outside power supply power-fail, to described controller report external power source powered-off fault information;
The data of the disk to be written in described cache memory, for when receiving described external power source powered-off fault information, are written in disk by described controller.
3. circuit according to claim 2, is characterized in that, described controller comprises searches unit, control module, wherein:
Describedly search unit, for when receiving described external power source powered-off fault information, the overall superblock chained list of traversal file system, finds the superblock that disk is corresponding;
Described control module, for the data write disk of the dirty page by cache memory corresponding for superblock corresponding for described disk.
4. circuit according to claim 3, is characterized in that, control module comprises:
First sub-control unit, for traveling through the dirty index chained list of superblock corresponding to described disk, and obtains dirty index node;
Second sub-control unit, for finding corresponding address space according to described dirty index node, and the write operation calling the address space of described correspondence writes disk the data of the dirty page of the cache memory of correspondence.
5. circuit according to claim 1, is characterized in that, whether described monitoring modular is less than predeterminated voltage threshold values specifically for the voltage of monitoring external power source, if the voltage of described external power source is less than predeterminated voltage threshold values, then determines described external power source power down.
6. use a disk power-off protection method for the disk power-down protection circuit described in any one of the claims 1-5, it is characterized in that, the method comprises:
The whether power down of monitoring module monitors external power source;
When described external power source power down, storage capacitor by voltage transformation module be disk, control module, cache memory provide voltage needed for work;
When described external power source power down, the data of the disk to be written in cache memory are written in disk by control module.
7. method according to claim 6, is characterized in that, described when described external power source power down, the step that the data of the disk to be written in cache memory are written in disk comprises by control module:
When outside power supply power-fail, the erasing logical device able to programme of described control module is to the controller report external power source powered-off fault information of described control module;
The data of the disk to be written in described cache memory, when receiving described external power source powered-off fault information, are written in disk by described controller.
8. method according to claim 7, is characterized in that, the step that the data of the disk to be written in described cache memory are written in disk, when receiving described external power source powered-off fault information, comprises by described controller:
Described controller search unit when receiving described external power source powered-off fault information, the overall superblock chained list of traversal file system, finds the superblock that disk is corresponding;
The control module of described controller is by the data of the dirty page of cache memory corresponding for superblock corresponding for described disk write disk.
9. method according to claim 8, is characterized in that, the step of the data of the dirty page of cache memory corresponding for superblock corresponding for described disk write disk comprises by the control module of described controller:
First sub-control unit of described control module travels through the dirty index chained list of superblock corresponding to described disk, and obtains dirty index node;
Second sub-control unit of described control module finds corresponding address space according to described dirty index node, and the write operation calling the address space of described correspondence writes disk the data of the dirty page of the cache memory of correspondence.
10. method according to claim 6, is characterized in that, the step of described monitoring module monitors external power source whether power down is specially:
Whether the voltage of described monitoring module monitors external power source is less than predeterminated voltage threshold values, if the voltage of described external power source is less than predeterminated voltage threshold values, then determines described external power source power down.
CN201410108261.5A 2014-03-21 2014-03-21 Magnetic disk power-down protection circuit and method Pending CN104834610A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410108261.5A CN104834610A (en) 2014-03-21 2014-03-21 Magnetic disk power-down protection circuit and method
PCT/CN2014/086164 WO2015139432A1 (en) 2014-03-21 2014-09-09 Disk power failure protection circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410108261.5A CN104834610A (en) 2014-03-21 2014-03-21 Magnetic disk power-down protection circuit and method

Publications (1)

Publication Number Publication Date
CN104834610A true CN104834610A (en) 2015-08-12

Family

ID=53812514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410108261.5A Pending CN104834610A (en) 2014-03-21 2014-03-21 Magnetic disk power-down protection circuit and method

Country Status (2)

Country Link
CN (1) CN104834610A (en)
WO (1) WO2015139432A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106602698A (en) * 2015-10-19 2017-04-26 沈阳新松机器人自动化股份有限公司 Power-off loss prevention system of operating parameter of servo system
CN106847318A (en) * 2017-01-24 2017-06-13 上海麦歌恩微电子股份有限公司 Nonvolatile memory based on electric capacity
WO2018040969A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Method and device for improving reliability of nand flash memory
CN110909395A (en) * 2018-09-14 2020-03-24 武汉海康存储技术有限公司 Method and device for destroying data of nonvolatile storage device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107422828A (en) * 2017-05-16 2017-12-01 宜鼎国际股份有限公司 The data storage system and circumscribed power supply module of stand-by power supply can be provided

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1705574A2 (en) * 2005-03-21 2006-09-27 Sun Microsystems, Inc. Non-volatile backup for data cache
CN101464719A (en) * 2008-12-17 2009-06-24 成都市华为赛门铁克科技有限公司 Magnetic disk array system and power-down data protection system and method for the same
CN101826060A (en) * 2010-05-24 2010-09-08 中兴通讯股份有限公司 Method and device for protecting power failure data of solid state disk
CN102033826A (en) * 2010-12-03 2011-04-27 创新科存储技术有限公司 Power failure data protection device and method for internal memory
CN202696263U (en) * 2012-04-20 2013-01-23 中兴通讯股份有限公司 Power-down holding circuit and master control apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412565B2 (en) * 2003-08-18 2008-08-12 Intel Corporation Memory optimization for a computer system having a hibernation mode
CN101630293B (en) * 2009-07-23 2011-11-09 成都市华为赛门铁克科技有限公司 Data protection method, power-fail protection device and storage device
CN202513599U (en) * 2011-12-30 2012-10-31 珠海艾派克微电子有限公司 Charging circuit, memory chip and consumable container
CN102929805A (en) * 2012-10-19 2013-02-13 浪潮电子信息产业股份有限公司 Power-down protection method for cache data in memory system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1705574A2 (en) * 2005-03-21 2006-09-27 Sun Microsystems, Inc. Non-volatile backup for data cache
CN101464719A (en) * 2008-12-17 2009-06-24 成都市华为赛门铁克科技有限公司 Magnetic disk array system and power-down data protection system and method for the same
CN101826060A (en) * 2010-05-24 2010-09-08 中兴通讯股份有限公司 Method and device for protecting power failure data of solid state disk
CN102033826A (en) * 2010-12-03 2011-04-27 创新科存储技术有限公司 Power failure data protection device and method for internal memory
CN202696263U (en) * 2012-04-20 2013-01-23 中兴通讯股份有限公司 Power-down holding circuit and master control apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106602698A (en) * 2015-10-19 2017-04-26 沈阳新松机器人自动化股份有限公司 Power-off loss prevention system of operating parameter of servo system
WO2018040969A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Method and device for improving reliability of nand flash memory
CN106847318A (en) * 2017-01-24 2017-06-13 上海麦歌恩微电子股份有限公司 Nonvolatile memory based on electric capacity
CN106847318B (en) * 2017-01-24 2019-02-05 上海麦歌恩微电子股份有限公司 Nonvolatile memory based on capacitor
CN110909395A (en) * 2018-09-14 2020-03-24 武汉海康存储技术有限公司 Method and device for destroying data of nonvolatile storage device
CN110909395B (en) * 2018-09-14 2022-02-08 杭州海康存储科技有限公司 Method and device for destroying data of nonvolatile storage device

Also Published As

Publication number Publication date
WO2015139432A1 (en) 2015-09-24

Similar Documents

Publication Publication Date Title
US9042197B2 (en) Power fail protection and recovery using low power states in a data storage device/system
CN201075737Y (en) Power down protection circuit
CN104834610A (en) Magnetic disk power-down protection circuit and method
CN101667748A (en) Circuit power fail safeguard device and protection method thereof
CN104935072A (en) Switch control method and apparatus for reserve power supply
CN109189605A (en) A kind of power-off protection of solid state disk method
US20190354157A1 (en) Storage device and method for powering storage device
CN100474271C (en) Multi-level buffering type memory system and method therefor
CN103019363A (en) Power supply device, storage system and power supply method
CN101499313A (en) Method, equipment and memory system for guaranteeing data security
CN105279109A (en) Solid state disk power down protection circuit and power down protection method
CN105677241A (en) Charging method and device, and solid state disk
CN102789422B (en) The method for writing data of solid state hard disc
CN105703021A (en) Battery management system with low standby power consumption and battery management system awaking method
CN113223566B (en) Control system and control method of memory
CN208460018U (en) A kind of solid state hard disk that can be destroyed with hardware
CN103886893A (en) Power down protection circuit and storage equipment
CN210246387U (en) Power supply switching circuit and electronic equipment
CN105205015A (en) Data storage method and storage equipment
US20230305722A1 (en) Data Storage Device With Enhanced Power Mode Management
CN206649501U (en) A kind of computer software testing device
CN212061147U (en) Industrial personal computer production data protection system based on super capacitor
CN105490319A (en) Information processing method and electronic equipment
CN203850001U (en) Power down protection circuit of static memory
CN102981591A (en) Method for reducing power consumption of computer system in sleep mode and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812

RJ01 Rejection of invention patent application after publication