CN101727367B - System reducing method capable of reserving refreshing data - Google Patents

System reducing method capable of reserving refreshing data Download PDF

Info

Publication number
CN101727367B
CN101727367B CN2010100400097A CN201010040009A CN101727367B CN 101727367 B CN101727367 B CN 101727367B CN 2010100400097 A CN2010100400097 A CN 2010100400097A CN 201010040009 A CN201010040009 A CN 201010040009A CN 101727367 B CN101727367 B CN 101727367B
Authority
CN
China
Prior art keywords
interval
content
headspace
read
read operation
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
CN2010100400097A
Other languages
Chinese (zh)
Other versions
CN101727367A (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.)
HANGZHOU ICAFE TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU ICAFE 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 HANGZHOU ICAFE TECHNOLOGY Co Ltd filed Critical HANGZHOU ICAFE TECHNOLOGY Co Ltd
Priority to CN2010100400097A priority Critical patent/CN101727367B/en
Publication of CN101727367A publication Critical patent/CN101727367A/en
Priority to SG2010081503A priority patent/SG173249A1/en
Application granted granted Critical
Publication of CN101727367B publication Critical patent/CN101727367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a system reducing method capable of reserving refreshing data. The method comprises the following steps of: designating a reserved space for redirection in a disc; designating a first space for recording a correspondence relationship in the disc or a memory; generating a private interface for refreshing data; capturing the reading and writing operations of upper software to the disc; and respectively processing the captured reading and writing operations according to whether the captured reading and writing operations are initiated through the private interface or not. On the basis of the system reducing method of the prior art, one safe and controlled private interface is additionally arranged for the upper management program to use. When the method captures the information that the reading and writing operations to the disc are performed through the private interface, the reading and writing operations to the area are directly performed without redirection, and finally the reading and writing operations are completed through the private interface. When the system is restarted and reduced, the content written through a public interface is cleared off, but the content refreshed through the private interface is reserved.

Description

But a kind of system reducing method of reserving refreshing data
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of system reducing method, when carrying out system reducing, can keep data updated.
Background technology
In public places such as school computer center or Internet bars; a general computer all is a plurality of users' uses that offer at times; this scheme is with the obvious advantage; but in actual operation, also exist deficiency; one of them tangible problem is; file or configuration when a last user has a mind to or (maloperation/middle virus etc.) have revised system unintentionally then just may directly influence the normal use of subsequent user.For addressing this problem, more typical solution is installed hard disk reduction card exactly, as long as by once restarting, software systems just return to original state like this.
The realization principle (as Fig. 1) of general method of reducing mainly is the write operation of intercepting and capturing disk, this write operation interval is redirected between the free area writing again, writes down the corresponding relation between this write operation interval and redirection area simultaneously, finishes this write operation at last.When intercepting disk read operation, then, carry out judgment processing, do not have common factor as this read operation interval and the interval in the redirected corresponding relation that has write down in conjunction with the corresponding relation between the redirection area that has write down, then, finish this read operation at last by the read operation of normal read flow performing; If any above-mentioned two intervals common factor is arranged, then can read the non-interval content of occuring simultaneously by the normal read flow process earlier,, read the interval content of this common factor that is redirected again in conjunction with the corresponding relation between redirection area, after the content that reads that merges two kinds of read operations, finish this read operation at last.In conjunction with the processing of above-mentioned reducing program to read-write, reducing program is as long as after system restarts, and empties shared space between corresponding relation between redirection area last time and redirection area, just can make software systems return to original state, arrives the purpose of reducing.
But development along with computing machine, when software also becomes need upgrade often the time, this safeguards on computing machine that similar reduction card etc. has restoring function and just becomes pretty troublesome having installed, generally all need the keeper use and management person of elder generation authority that computing machine is switched to non-reduced state, restart system again, install again or update software, be set to reducing condition again, cancel administrator right again, and then restart system.Obviously, safeguard that in similar this mode tens even hundreds of platform computing machine are unusual poor efficiencys.
Summary of the invention
It is a kind of on the basis of realizing restoring function that purpose of the present invention just is to provide, and can carry out the controlled method for updating of safety to software systems.
But a kind of system reducing method of reserving refreshing data comprises the steps:
Step (one)
A) in disk, specify the headspace that is used to be redirected;
B) in disk or internal memory, specify first space that is used to write down corresponding relation;
C) generation is used for the privately owned interface of new data;
The described headspace of specifying in disk can be just to have finished division before starting the operating system in advance; Also can be after starting the operating system, again to operating system application headspace.
Specify after the headspace, all reading and writing of user are operated all directly at non-headspace, and can not be directly at described headspace.
Step (two)
Intercept and capture the reading and writing operation of upper layer software (applications), following processing carried out in the reading and writing operation that intercepts disk:
About write operation
If a) this write operation is not initiated by privately owned interface, then with this write operation institute at former disk space be redirected to the described headspace of step (), soon the related data of this write operation write headspace;
And with this write operation at former disk space and the corresponding relation of the actual headspace that writes record in described first space; Also we can say this write operation at former disk space be redirected.
B) if this write operation is initiated by privately owned interface,, directly carry out write operation without re-orientation processes by normal write operation flow process.
About read operation
If a) this read operation is initiated by privately owned interface, then, directly carry out read operation without re-orientation processes by the normal read operation flow process;
B) if this read operation is not initiated by privately owned interface, then, make the following judgment in conjunction with the corresponding relation that writes down in first interval:
As this read operation at the interval with reference to interval do not have occur simultaneously, then, finish this read operation at last by the read operation of normal read flow performing;
As this read operation at the interval with reference to the interval common factor is arranged, then read by the normal read flow process for the non-interval content of occuring simultaneously; For the interval content of occuring simultaneously,, from headspace, read corresponding content according to this corresponding relation interval and headspace that occurs simultaneously; The non-content of occuring simultaneously the interval content and the interval of occuring simultaneously that will read at last merges, and finishes this read operation; Non-ly occur simultaneously interval and not strict sequencing requirement when occuring simultaneously content interval reading, can following three kinds of situations:
1. earlier the non-interval content A that occurs simultaneously is all read from non-headspace by normal flow with the interval content B that occurs simultaneously, from headspace, read again and the interval corresponding content B` that occurs simultaneously, use the content B` in the common factor interval of from headspace, reading that the content B in the common factor interval of reading from non-headspace is covered then, constitute complete content AB`.
2. earlier the non-interval content A that occurs simultaneously is read from non-headspace by normal flow, from headspace, read again and the interval corresponding content B` that occurs simultaneously, after merging, constitute complete content AB`.
3. from headspace, read earlier and the interval corresponding content B` that occurs simultaneously, the more non-interval content A that occurs simultaneously is read from non-headspace by normal flow, after merging, constitute complete content AB`.
Described is through being redirected and writing down all intervals in first interval in the write operation process with reference to the interval.
Step (three)
When carrying out system reducing, empty the content in first space that is used for writing down corresponding relation;
If described headspace is after starting the operating system,, then discharge this headspace again to the operating system application;
If described headspace is just to finish division in advance before starting the operating system, then need not to operate.
Need to prove that when the inventive method was carried out system reducing, the process that empties first space and selectively discharge headspace was to finish before the reboot operation system enters user's login interface, this point is same as the prior art.Will empty first space when for example shutting down, and finish selectable release headspace during the reboot operation system.
Because the reading and writing that need data updated are all initiated by privately owned interface,,, can not be eliminated even when carrying out system reducing so all can in disk, keep yet.
The present invention is in the prior art on the basis of system reducing method, add a privately owned interface that safety is controlled again, offering the tension management program uses, when intercepting is by this privately owned interface, when disk is carried out read-write operation, just directly read-write operation is carried out in this zone, finish read-write operation at last by this privately owned interface without being redirected.Like this when system restarts and reduce, the content of writing by non-privately owned interface can be eliminated, but kept the content of upgrading by privately owned interface, reduced workload in this way greatly, very high dirigibility is provided simultaneously computer maintenance.
Description of drawings
Fig. 1 is the synoptic diagram of the realization principle of system reducing method in the prior art.
But Fig. 2 is the synoptic diagram of realization principle of the system reducing method of reserving refreshing data of the present invention.
Embodiment
In the following detailed description, having described specific details comprehensively understands the present invention so that provide.Yet the professional and technical personnel will appreciate that the present invention also can implement with other similar details.
Although the invention is not restricted to this, as a specific embodiment of the present invention, a kind of have two subregions of C/D in hard disk, and at the C subregion Windows XP system has been installed, and with the situation of D subregion as the headspace use.
Referring to Fig. 2, by method provided by the invention, the reduction that enforcement is revised first sector content (is 0xAA entirely as raw content) of A file in the C subregion, first sector content (being 0xBB entirely as the raw content) updating steps that keeps simultaneously B file in the C subregion is as follows:
Method provided by the invention can realize by writing restoring function software, this software comprises a bsp driver such as called after Driver.sys and tension management program such as called after Manager.exe, Driver wherein passes through calling system function IoAttachDevice when initial, be articulated to represent the C subregion system equipment Device on the HarddiskVolume1, this Driver.sys is after operation like this, just can intercept in the system read-write operation to the disk zone, place of C subregion, the function interface called after ProtectWrite that this Driver.sys intercepts and captures write operation, function interface called after ProtectRead to read operation operation intercepting and capturing, simultaneously again by calling system function IoCreateDevice create another privately owned implementor name such as called after Device PassthruC, use to Manager.exe, promptly generated and be used for the privately owned interface of new data.
And when this Driver.sys initial launch, apply for a part of memory headroom, and as called after Map, be used to write down corresponding relation between redirection area, be first space.
From D subregion application part disk space,, be used to preserve the content that resets backward operation, i.e. headspace simultaneously as called after Swap.
When the user has carried out the modification write operation to first sector of A file, all change 0x00 into as content with this sector, can be intercepted and captured this moment by Driver.sys, and enter the ProtectWrite interface, in the implementation of this interface function, earlier by calling system function ObQueryNameString, obtain this write operation initiating equipment name and be Device HarddiskVolume1, can learn that this operation is by privately owned interface initiation, so this write operation content is write by calling system function ZwWriteFile, in first sector in the Swap space of applying for previously, finish being redirected of its write operation, in front among the Map of application, write down the relation that this is redirected simultaneously, be used for representing that first sector of A file has been redirected to first sector of Swap, finish this write request at last; And work as the user is the Manager.exe that provides by software systems of the present invention, when B file first sector is upgraded, content as the sector all changes 0xFF into, will by privately owned implementor name Device PassthruC, carry out write operation, caught by Driver.sys like this, and when carrying out the ProtectWrite interface, same by calling system function ObQueryNameString, but obtain this write operation initiating equipment name and be Device PassthruC, can learn it is the operation of initiating by privately owned interface, just directly call ZwWriteFile in this case, and without being redirected, be written in first sector of B file, finish this write request by privately owned interface;
When the user carries out read operation to first sector of A file, can be intercepted and captured this moment by Driver.sys, and enter the ProtectRead interface, in the implementation of this interface function, common factor is done in existing corresponding relation interval among this read operation interval and the Map, can find that this read operation interval has been redirected in first sector of Swap, be redirected relation according to this, Driver.sys just can pass through calling system function ZwReadFile, read this content (being 0x00 entirely) from first sector of Swap, finish this read request; And when what read be, during as first and second two sectors of A file, just can directly read the second sector content earlier, read the Swap first sector content again through being redirected without the A file that is redirected excessively, after the content that merging is read for twice, finish this read request at last; And privately owned interface reads for passing through of being initiated by Manager.exe, and then just without re-orientation processes, and after directly carrying out read operation, finishes this read request;
After system restarts, when restoring system moves once more, the Map of the last time application release of when shutdown, being cleared, can apply for certain content space and same called after Map this moment once more, and the Swap space to applying for last time, again application or directly multiplexing again after can deleting, there is first sector of pair A file to carry out read operation as the user back, the redirected relation of this sector not also among this moment Map, so directly by calling system function ZwReadFile, the raw content that reads first sector of A file is original 0xAA (rather than the 0x00 that write last time) entirely, has just reached the purpose of reduction; And for carrying out read operation in first sector of B file, same, read this interval content, but should have been write full 0xFF (not being original 0xBB) in the interval, so the content that read this moment is exactly full 0xFF, reached the purpose that keeps renewal.
Though herein declarative description certain this feature of the present invention and a kind of implementation method, for the professional and technical personnel, many modifications, replacement, variation and equivalent substitution will appear.Therefore, protection scope of the present invention is as the criterion by the scope of appended claim.

Claims (4)

1. but the system reducing method of a reserving refreshing data is characterized in that, comprises the steps:
Step (one)
A) in disk, specify the headspace that is used to be redirected;
B) in disk or internal memory, specify first space that is used to write down corresponding relation;
C) generation is used for the privately owned interface of new data;
Described headspace is just to have finished division before starting the operating system in advance, or after starting the operating system, again to the operating system application;
Step (two)
Intercept and capture the reading and writing operation of upper layer software (applications), following processing carried out in the reading and writing operation that intercepts disk:
About write operation
If a) this write operation is not initiated by privately owned interface, then with this write operation at former disk space be redirected to the described headspace of step ();
B) if this write operation is initiated by privately owned interface, directly carry out write operation;
About read operation
If a) this read operation is initiated by privately owned interface, directly carry out read operation;
B) if this read operation is not initiated by privately owned interface, make the following judgment:
As this read operation at the interval with reference to interval do not have occur simultaneously, then directly carry out read operation;
As this read operation at the interval with reference to the interval common factor is arranged, then directly carry out read operation for the non-interval content of occuring simultaneously; For the interval content of occuring simultaneously,, from headspace, read corresponding content according to this corresponding relation interval and headspace that occurs simultaneously; The non-content of occuring simultaneously the interval content and the interval of occuring simultaneously that will read at last merges, and finishes this read operation;
Described is through being redirected and writing down all intervals in first space in the write operation process with reference to the interval;
Step (three)
When carrying out system reducing, empty the content in first space that is used for writing down corresponding relation; If described headspace is after starting the operating system,, then discharge this headspace again to the operating system application.
2. but the system reducing method of reserving refreshing data as claimed in claim 1, it is characterized in that, b in the read operation of step (two)) in, earlier the non-interval content A that occurs simultaneously is read from non-headspace with the interval content B that occurs simultaneously, from headspace, read again and the interval corresponding content B` that occurs simultaneously, use the content B` in the common factor interval of from headspace, reading that the content B in the common factor interval of reading from non-headspace is covered then, constitute complete content AB`.
3. but the system reducing method of reserving refreshing data as claimed in claim 1, it is characterized in that, b in the read operation of step (two)) in, earlier the non-interval content A that occurs simultaneously is read from non-headspace, from headspace, read again and the interval corresponding content B` that occurs simultaneously, after merging, constitute complete content AB`.
4. but the system reducing method of reserving refreshing data as claimed in claim 1, it is characterized in that, b in the read operation of step (two)) in, from headspace, read earlier and the interval corresponding content B` that occurs simultaneously, again the non-interval content A that occurs simultaneously is read from non-headspace, after merging, constitute complete content AB`.
CN2010100400097A 2010-01-18 2010-01-18 System reducing method capable of reserving refreshing data Active CN101727367B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010100400097A CN101727367B (en) 2010-01-18 2010-01-18 System reducing method capable of reserving refreshing data
SG2010081503A SG173249A1 (en) 2010-01-18 2010-11-03 A system restoration method capable of reserving updated data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100400097A CN101727367B (en) 2010-01-18 2010-01-18 System reducing method capable of reserving refreshing data

Publications (2)

Publication Number Publication Date
CN101727367A CN101727367A (en) 2010-06-09
CN101727367B true CN101727367B (en) 2011-06-01

Family

ID=42448288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100400097A Active CN101727367B (en) 2010-01-18 2010-01-18 System reducing method capable of reserving refreshing data

Country Status (2)

Country Link
CN (1) CN101727367B (en)
SG (1) SG173249A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799798A (en) * 2011-05-23 2012-11-28 金宏中天(北京)科技有限公司 Method for not restoring write-ins in overall restoring condition of computer system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530849A (en) * 2003-03-14 2004-09-22 宏�股份有限公司 Multifunctional operating system reduction method and system
CN101814038A (en) * 2010-03-23 2010-08-25 杭州顺网科技股份有限公司 Method for increasing booting speed of computer
CN101833485A (en) * 2010-03-23 2010-09-15 杭州顺网科技股份有限公司 System protection method based on snapshot

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530849A (en) * 2003-03-14 2004-09-22 宏�股份有限公司 Multifunctional operating system reduction method and system
CN101814038A (en) * 2010-03-23 2010-08-25 杭州顺网科技股份有限公司 Method for increasing booting speed of computer
CN101833485A (en) * 2010-03-23 2010-09-15 杭州顺网科技股份有限公司 System protection method based on snapshot

Also Published As

Publication number Publication date
CN101727367A (en) 2010-06-09
SG173249A1 (en) 2011-08-29

Similar Documents

Publication Publication Date Title
CN105474210B (en) System for operating an automation process
US8966045B1 (en) Identity migration apparatus and method
CN101359355B (en) Method for raising user's authority for limitation account under Windows system
US8639973B2 (en) System reset
CN101814038A (en) Method for increasing booting speed of computer
US7028140B2 (en) Storage system and method for acquisition and utilization of snapshots
KR101954623B1 (en) Apparatus and method for updating software on the virtualized environment
CN110083399B (en) Applet running method, computer device and storage medium
US11334338B2 (en) Operating system update management
CN102591675A (en) Method and system for management of multiple software images with shared memory blocks
US20190340083A1 (en) Configurable recovery states
US9684548B2 (en) Integrating operating systems
CN103581187A (en) Method and system for controlling access rights
US20190108012A1 (en) Enhanced techniques for updating software
MX2013010912A (en) System and method for managing role based access controls of users.
JP5092046B1 (en) Information processing apparatus and program
CN101770379B (en) Method and computer system for loading high-grade configuration and power interface denomination space
CN109343863B (en) Interface configuration method and system for HDFS (Hadoop distributed File System) permission
CN113360893B (en) Container-based intelligent contract execution method and device and storage medium
CN100514305C (en) System and method for implementing safety control of operation system
CN104615383A (en) Software operation method and device based on virtual disk
CN101727367B (en) System reducing method capable of reserving refreshing data
US9852029B2 (en) Managing a computing system crash
CN101833485B (en) System protection method based on snapshot
CN102375700A (en) Method for directly updating hard drive data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Cheng Chen

Inventor after: Xie Haiyan

Inventor after: Jiang Guanping

Inventor before: Cheng Chen

Inventor before: Jiang Guanping

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: CHENG CHEN JIANG GUANPING TO: CHENG CHEN XIE HAIYAN JIANG GUANPING