CN105630631B - A kind of mirror image visually shows method and apparatus - Google Patents

A kind of mirror image visually shows method and apparatus Download PDF

Info

Publication number
CN105630631B
CN105630631B CN201510990682.XA CN201510990682A CN105630631B CN 105630631 B CN105630631 B CN 105630631B CN 201510990682 A CN201510990682 A CN 201510990682A CN 105630631 B CN105630631 B CN 105630631B
Authority
CN
China
Prior art keywords
mirror image
sector
mirrored
state
file
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.)
Active
Application number
CN201510990682.XA
Other languages
Chinese (zh)
Other versions
CN105630631A (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.)
XLY SALVATIONDATA TECHNOLOGY Inc.
Original Assignee
SICHUAN MWH INFORMATION SAFETY TECHNOLOGY 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 SICHUAN MWH INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN MWH INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority to CN201510990682.XA priority Critical patent/CN105630631B/en
Publication of CN105630631A publication Critical patent/CN105630631A/en
Application granted granted Critical
Publication of CN105630631B publication Critical patent/CN105630631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1466Management of the backup or restore process to make the backup process non-disruptive
    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of mirror image visualization devices, including display module, mirror module, logging modle.Also disclose the method based on the present apparatus: S1: record sectors status;S2: display sectors status;S3: mirror image simultaneously returns to state value;S4: the return value stored according to mirrored state file shows whether sector successfully restores by corresponding block in display interface.Beneficial effects of the present invention are as follows: in mirrored procedure it can be seen that the data of corresponding sector whether mirror image succeeds and records Mirror Info and avoid frequent operating writing-file;Scroll bar can be dragged in mirrored procedure or when breakpoint transmission checks the corresponding mirrored state in certain sector;When the abnormal conditions such as thinking to stop to occur in mirror image or mirrored procedure to power off, the sector position of current mirror image can be saved, again mirror image when can since stop position mirror image, quickly can check and save mirror image result.

Description

A kind of mirror image visually shows method and apparatus
Technical field
The present invention relates to data recovery technique field, in particular to a kind of mirror image visually shows method, further relates to base In the device of this method.
Background technique
At present on the market there are can be with the software of mirror image, but all there are the following problems: only providing image feature, gives use For the image file that the final mirror image in family is completed as a result, in mirrored procedure, user cannot intuitively check the mirror image of certain sector Mirrored state, is not saved in file by state, the mirrored state before breakpoint transmission when can not also check when mirror image.
Summary of the invention
The present invention in view of the drawbacks of the prior art, provides a kind of mirror image and visually shows method and apparatus, can be effective Solution the above-mentioned problems of the prior art.
A kind of mirror image visualization device, including display module, mirror module, logging modle,
The display module is for showing mirrored state and color, required for being generated according to the size in mirror image data source Block number, and choose the state and color for wanting the sector setting INIT block of mirror image;In mirrored procedure, by the whether successful mirror in sector The information of picture is shown on block in a manner of color change, when mouse is parked on certain block, reads the fan by the sector number that block indicates The mirrored state in area, is shown by tips;
The mirror module is used for the sector mirror image that will be chosen, and stores to local image file;
The logging modle is used in mirrored procedure, and the content of mirrored state is saved in real-time update memory, works as memory When the middle content update for saving mirrored state is more than the space of memory application, by the information one-time write in memory to mirror image shape In state file, frequent operating writing-file is avoided, loads this mirrored state file when dragging display or continuation mirror image Show corresponding sectors status.
A kind of mirror image visually shows method, comprising the following steps:
S1: creating and initializes mirrored state file, and for recording the sector for needing mirror image, recording the sector chosen is mark Note state, unchecked sector are not mark state;
S2: according to the sectors status stored in mirrored state file, sector selected state is shown in display interface;
S3: for choosing sector to carry out mirror image, judge whether mirror image success in mirrored procedure, and return to corresponding value and arrive mirror As status file;
S4: the return value stored according to mirrored state file shows that sector is by corresponding block in display interface No success mirror image.
Preferably, in the S3 to mirror image success or not carry out judgement be by the value of the value of image file and original into Row comparison, it is identical, indicate success, it is not identical, it indicates to fail, and represented successfully and failed with different values, in memory Shen The space that 1 T data can please be saved will be indicated as the value deposit caching of function and failure, when update be more than the space when, just This is cached in disposable deposit mirrored state file, while applying for that another block space saves the value of next T, and so on it is straight Terminate to mirror image.
Preferably, the structure of the mirrored state file is divided into file header and file content,
File header occupies 128 bytes, and the main starting position for saving mirror image, end position, block size, block are total, current The position of processing and verification;
File content mainly saves the corresponding mirrored state in sector, and a total of mark is not marked, completed, 4 kinds of shapes of failure State, 4 kinds of states need 2bit to indicate, are indicated respectively with 01,00,10,11, the mirrored state of 8 sectors of the 2bit expression, and one A byte can then indicate the mirrored state of 32 sectors.
Preferably, the mirror image of the reading mirrored state file sector can be removed according to the corresponding sector value of interface current page State, and in different colors and text prompt is shown on interface according to mirrored state value;
It, can be by the sector position of current mirror image when thinking to stop the abnormal conditions powered off occur in mirror image or mirrored procedure Save, again when mirror image since stop position mirror image, and check the corresponding mirrored state in sector that last time mirror image is crossed.
Compared with prior art the present invention has the advantages that in mirrored procedure it can be seen that the data of corresponding sector whether mirror As success and records Mirror Info and avoid frequent operating writing-file;Rolling can be dragged in mirrored procedure or when breakpoint transmission Item checks the corresponding mirrored state in certain sector;When thinking to stop the abnormal conditions powered off, meeting occur in mirror image or mirrored procedure The sector position of current mirror image is saved, again when mirror image since stop position mirror image, quickly can check and save mirror image result.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, by the following examples, to the present invention do into One step is described in detail.
A kind of mirror image visualization device, including display module, mirror module, logging modle,
The display module is for showing mirrored state and color, required for being generated according to the size in mirror image data source Block number, and choose the state and color for wanting the sector setting INIT block of mirror image;In mirrored procedure, by the whether successful mirror in sector The information of picture is shown on block in a manner of color change, when mouse is parked on certain block, reads the fan by the sector number that block indicates The mirrored state in area, is shown by tips;
The mirror module is used for the sector mirror image that will be chosen, and stores to local image file;
The logging modle is used in mirrored procedure, and the content of mirrored state is saved in real-time update memory, works as memory When the middle content update for saving mirrored state is more than the space of memory application, by the information one-time write in memory to mirror image shape In state file, frequent operating writing-file is avoided, loads this mirrored state file when dragging display or continuation mirror image Show corresponding sectors status.
A kind of mirror image visually shows method, including below step:
S1: creating and initializes mirrored state file, and for recording the sector for needing mirror image, recording the sector chosen is mark Note state, unchecked sector are not mark state;
S2: according to the sectors status stored in mirrored state file, state area point, sector are carried out on the block of display interface It is indicated for mark state available green, sector is not mark state to be indicated with grey;
S3: for choosing sector to carry out mirror image, judge whether mirror image success in mirrored procedure, and return to corresponding value and arrive mirror As status file;
S4: the return value stored according to mirrored state file shows that sector is by corresponding block in display interface No success mirror image, can be distinguished by showing other colors on block.
Carrying out judgement to mirror image success or not in the S3 is to compare the value of the value of image file and original, phase It is same then indicate success, it is not identical, it indicates to fail, and represented successfully and failure with different values, has applied to protect in memory The space (128M) for depositing 1 T data will be indicated as the value deposit caching of function and failure, when update is more than the space, just by this In the disposable deposit mirrored state file of caching, while applying for that another block space saves the value of next T, and so on until mirror As terminating.
The structure of the mirrored state file is divided into file header and file content,
File header occupies 128 bytes, and the main starting position for saving mirror image, end position, block size are (for minimum mirror image list Position for expression sector number), block sum, currently processed position and verification;
File content mainly saves the corresponding mirrored state in sector, and a total of mark is not marked, completed, 4 kinds of shapes of failure State, 4 kinds of states need 2bit to indicate, are indicated respectively with 01,00,10,11, the mirrored state of 8 sectors of 2bit expression, and one Byte can then indicate that the mirrored state of 32 sectors, such as 0x55 indicate that 32 sectors are mark state.
Those of ordinary skill in the art will understand that the embodiments described herein, which is to help reader, understands this hair Bright implementation method, it should be understood that protection scope of the present invention is not limited to such specific embodiments and embodiments.Ability The those of ordinary skill in domain disclosed the technical disclosures can make its various for not departing from essence of the invention according to the present invention Its various specific variations and combinations, these variations and combinations are still within the scope of the present invention.

Claims (5)

1. a kind of mirror image visualization device, it is characterised in that: including display module, mirror module, logging modle;
The display module is for showing mirrored state and color, block required for being generated according to the size in mirror image data source Number, and choose the state and color for wanting the sector setting INIT block of mirror image;In mirrored procedure, by the whether successful mirror image in sector Information be shown on block in a manner of color change, when mouse is parked on certain block, which is read by the sector number that block indicates Mirrored state, shown by tips;
The mirror module is used for the sector mirror image that will be chosen, and stores to local image file;
The logging modle is used in mirrored procedure, the content of mirrored state is saved in real-time update memory, when protecting in memory It is when depositing the content update of mirrored state and being more than the space of memory application, the information one-time write in memory is literary to mirrored state In part, frequent operating writing-file is avoided, this mirrored state file is loaded when dragging display or continuation mirror image, can show Corresponding sectors status.
2. a kind of mirror image visually shows method, it is characterised in that the following steps are included:
S1: creating and initializes mirrored state file, and for recording the sector for needing mirror image, recording the sector chosen is mark shape State, unchecked sector are not mark state;
S2: according to the sectors status stored in mirrored state file, sector selected state is shown in display interface;
S3: for choosing sector to carry out mirror image, judge whether mirror image success in mirrored procedure, and return to corresponding value and arrive mirror image shape State file;
S4: the return value stored according to mirrored state file, by corresponding block in display interface show sector whether at Function mirror image.
3. a kind of mirror image according to claim 2 visually shows method, it is characterised in that: in the S3 to mirror image at It is to compare the value of the value of image file and original that judgement is carried out whether function, identical, indicates success, not identical then table Show failure, and represented successfully and failed with different values, has applied for the space that can save 1 T data in memory, will indicate The value of success and failure is stored in caching, when update is more than the space, just caches this in disposable deposit mirrored state file, Apply for that another block space saves the value of next T simultaneously, and so on terminate until mirror image.
4. a kind of mirror image according to claim 3 visually shows method, it is characterised in that: the mirrored state file Structure be divided into file header and file content;
File header occupies 128 bytes, saves starting position, the end position, block size, block sum, currently processed position of mirror image It sets and verifies;
File content saves the corresponding mirrored state in sector, and a total of mark is not marked, completed, 4 kinds of states of failure, 4 kinds of states It needs 2bit to indicate, is indicated respectively with 01,00,10,11, the 2bit indicates that the mirrored state of 8 sectors, a byte then may be used Indicate the mirrored state of 32 sectors.
5. a kind of mirror image according to claim 4 visually shows method, it is characterised in that: according to interface current page Corresponding sector value goes to read the mirrored state of the mirrored state file sector, and in different colors and literary according to mirrored state value Word prompt is shown on interface;
When thinking to stop the abnormal conditions powered off occur in mirror image or mirrored procedure, the sector position of current mirror image can be protected Deposit, again when mirror image since stop position mirror image, and check the corresponding mirrored state in sector that last time mirror image is crossed.
CN201510990682.XA 2015-12-25 2015-12-25 A kind of mirror image visually shows method and apparatus Active CN105630631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510990682.XA CN105630631B (en) 2015-12-25 2015-12-25 A kind of mirror image visually shows method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510990682.XA CN105630631B (en) 2015-12-25 2015-12-25 A kind of mirror image visually shows method and apparatus

Publications (2)

Publication Number Publication Date
CN105630631A CN105630631A (en) 2016-06-01
CN105630631B true CN105630631B (en) 2019-07-12

Family

ID=56045606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510990682.XA Active CN105630631B (en) 2015-12-25 2015-12-25 A kind of mirror image visually shows method and apparatus

Country Status (1)

Country Link
CN (1) CN105630631B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61169954A (en) * 1985-01-23 1986-07-31 Nec Corp Transmission system of terminal information
CN101146286B (en) * 2007-08-30 2011-01-05 Tcl天一移动通信(深圳)有限公司 A data backup method for mobile terminal
CN103885858B (en) * 2014-03-11 2017-05-10 惠州Tcl移动通信有限公司 Method and system for mobile phone backup and data recovery

Also Published As

Publication number Publication date
CN105630631A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
TWI421712B (en) Storage area network system
CN108062262A (en) Operating system backup-and-restore method and its system based on storage sector data
JP4712102B2 (en) Storage device, data processing method, and data processing program
US10489011B2 (en) Systems and methods for accessing system utilities
CN110399247A (en) A kind of data reconstruction method, device, equipment and computer readable storage medium
KR20170125698A (en) Generalized write operations verification method
EP2960777A1 (en) Data protection method, apparatus and device
CN110020528A (en) A kind of BMC starting method, apparatus and electronic equipment and storage medium
CN103309819B (en) Embedded system and internal memory method for managing security therein
CN105630631B (en) A kind of mirror image visually shows method and apparatus
CN107729178A (en) A kind of Metadata Service process takes over method and device
CN105022663B (en) Power system monitoring and control system
CN105264608B (en) Method, Memory Controller Hub and the central processing unit of data storage
WO2010032330A1 (en) Information processing device and its memory protection method
CN106406771B (en) Log recording method and logger
CN108595287A (en) Data truncation method and device based on correcting and eleting codes
CN106254806B (en) A kind of Video data guard method and device
CN108153521A (en) The management method and its system of a kind of XML configuration file
CN104679535A (en) Server and identification code synchronization method
CN109117406B (en) PCIE hot plug test method, device, terminal and storage medium
CN104239245A (en) Electronic system and operating method
CN106599236A (en) Metadata storage method and apparatus for file system
JP5011574B2 (en) Information processing apparatus, usage restriction method, and program
CN104267975B (en) A kind of processing method and device of expanded application data, card
US10331381B2 (en) Method and device for recording memory access operation information

Legal Events

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

Address after: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan

Patentee after: Sichuan Miwu Traceless Science and Technology Co.,Ltd.

Address before: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan

Patentee before: SICHUAN MWH INFORMATION SECURITY TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211019

Address after: 641100 No.1 Hanyu Avenue, Shizhong District, Neijiang City, Sichuan Province

Patentee after: XLY SALVATIONDATA TECHNOLOGY Inc.

Address before: No. 183 Songshan Road, Neijiang, Sichuan, Sichuan

Patentee before: Sichuan Miwu Traceless Science and Technology Co.,Ltd.