CN105573766A - Software upgrading method and device and electronic equipment - Google Patents

Software upgrading method and device and electronic equipment Download PDF

Info

Publication number
CN105573766A
CN105573766A CN201410528297.9A CN201410528297A CN105573766A CN 105573766 A CN105573766 A CN 105573766A CN 201410528297 A CN201410528297 A CN 201410528297A CN 105573766 A CN105573766 A CN 105573766A
Authority
CN
China
Prior art keywords
patch
request
client
electronic equipment
service end
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
CN201410528297.9A
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 CN201410528297.9A priority Critical patent/CN105573766A/en
Priority to PCT/CN2015/072807 priority patent/WO2016054886A1/en
Publication of CN105573766A publication Critical patent/CN105573766A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a software upgrading method and device and electronic equipment. The method comprises the steps of receiving a patch adding request; simultaneously adding a first patch and a second patch which are designated by the patch adding request, wherein the first patch is used for hot patch upgrading and the second patch is used for cold patch upgrading; controlling a client side to carry out real-time application on the first patch; and controlling the client side to apply the second patch when the electronic equipment is restarted.

Description

A kind of method for upgrading software, device and electronic equipment
Technical field
The present invention relates to computer technology, particularly a kind of method for upgrading software, device and electronic equipment.
Background technology
At present, carrying out in the method for software upgrading to electronic equipment (as communication facilities), having hot patch to upgrade and cold patch is upgraded two kinds of modes.Hot patch upgrading and code segment are replaced, and cold patch upgrading refers to replaces perform bulk (i.e. process) itself.Described patch refers to the program of dealing with problems developed for the problem exposed in software application process.
Hot patch upgrading when non-interrupting service runs, can realize the amendment of software local in time, decreases the number of times of the overall edition upgrading of software.But hot patch upgrading has again following restriction and shortcoming in use: first, can not revise grand value, original structure body with the number of parameters of variable, function; Secondly, the mutual dependence of hot patch is complicated, and follow-up maintenance and Comparison of Management difficulty, even may cause hot patch unavailable.
Cold patch upgrading is a kind of thorough and pure restorative procedure, there is not the restriction of above-mentioned hot patch upgrading.But owing to needing for the reparation of critical processes to redistribute some underlying resources, therefore carrying out cold patch upgrading needs device reset, and longer to service outage duration, traffic affecting normally carries out.
Summary of the invention
For solving the technical matters of existing existence, the embodiment of the present invention provides a kind of method for upgrading software, device and electronic equipment.
A kind of method for upgrading software that the embodiment of the present invention provides, be applied to the service end of electronic equipment, described electronic equipment is provided with software, and described method comprises:
Receive patch and add request;
The first patch specified by described patch interpolation request and the second patch are added, described first patch is used for hot patch upgrading, and described second patch is used for cold patch and upgrades simultaneously;
Control client immediately to apply described first patch, and when described electronic equipment restarts, control the second patch described in described client application.
Wherein, described first patch and the second patch comprise program information and configuration information respectively,
Describedly described patch is added the first patch specified by request and the second patch adds simultaneously, comprising:
The configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Wherein, described method also comprises:
Receive patch removal request;
Delete the first patch specified by described patch removal request.
Wherein, the first patch specified by the described patch removal request of described deletion, comprising:
From volatile memory, delete the configuration information of described first patch, from nonvolatile memory, delete described first patch.
Wherein, described method also comprises:
Receive patch state inquiry request;
Described patch state inquiry request is sent out described to client;
Receive and export the patch status information of described client feedback, described patch status information is that described client is obtained by inquiry according to the patch state inquiry request received.
A kind of method for upgrading software that the embodiment of the present invention provides, be applied to and be provided with in the electronic equipment of software, described electronic equipment comprises service end and client, and described method comprises:
Described service end receives patch and adds request;
Described patch is added the first patch specified by asking to described service end and the second patch adds in described electronic equipment simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading; Notify that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Described client is applied described first patch or the second patch according to the notice of described service end.
Wherein, described method also comprises:
Described service end receives patch removal request;
Described service end deletes the first patch specified by described patch removal request.
A kind of software updating apparatus that the embodiment of the present invention provides, described device is arranged in electronic equipment, and described electronic equipment is provided with software, and described device comprises:
Patch adding device, adds request for receiving patch, and the first patch specified by described patch interpolation request and the second patch are added, described first patch is used for hot patch upgrading, and described second patch is used for cold patch and upgrades simultaneously;
Notification unit, for notifying that client is applied immediately to described first patch, and when described electronic equipment restarts, notifies the second patch described in described client application.
Wherein, described first patch and the second patch comprise program information and configuration information respectively,
Described patch adding device, specifically for the configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Wherein, described device also comprises:
Patch delete cells, for receiving patch removal request, deletes the first patch specified by described patch removal request.
Wherein, described patch delete cells, specifically for deleting the configuration information of described first patch from volatile memory, deletes described first patch from nonvolatile memory.
Wherein, described device also comprises:
Patch state query unit, for receiving patch state inquiry request, sends out described to client by described patch state inquiry request; Receive and export the patch status information of described client feedback, described patch status information is that described client is obtained by inquiry according to the patch state inquiry request received.
A kind of electronic equipment that the embodiment of the present invention provides, described electronic equipment is provided with software, and described electronic equipment comprises: service end and client, wherein,
Described service end, adds request for receiving patch, and the first patch added by described patch specified by request and the second patch add simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading; And for notifying that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Described client, applies described first patch or the second patch for the notice according to described service end.
Wherein, described service end, also for receiving patch removal request, deletes the first patch specified by described patch removal request.
As from the foregoing, the technical scheme of the embodiment of the present invention adds cold patch while interpolation hot patch.Hot patch can be applied immediately, but cold patch can not be applied immediately, but because of system maintenance to electronic equipment implement reset time application.Like this, hot patch first can being used problem reparation, when restarting equipment when being in due course, re-using cold patch, thus avoid restarting equipment because suddenly upgrading, guarantee business is normally carried out.And the hot patch no longer needed can be deleted, thus the harmful effect avoided subsequent thermal patch too many and cause.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the first embodiment of a kind of method for upgrading software provided by the invention;
Fig. 2 is the schematic flow sheet of the second embodiment of a kind of method for upgrading software provided by the invention;
Fig. 3 is the schematic flow sheet of the first embodiment of another kind of method for upgrading software provided by the invention;
Fig. 4 is the schematic flow sheet of the second embodiment of another kind of method for upgrading software provided by the invention;
Fig. 5 is the structural representation of the embodiment of a kind of software updating apparatus provided by the invention;
Fig. 6 is the structural representation of an embodiment of a kind of electronic equipment provided by the invention;
Fig. 7 is the structural representation of another embodiment of a kind of electronic equipment provided by the invention;
Fig. 8 is the schematic flow sheet of the application scenarios of a kind of method for upgrading software provided by the invention;
The schematic flow sheet that the patch that Fig. 9 provides for the embodiment of the present invention adds;
The schematic flow sheet of the patch application that Figure 10 provides for the embodiment of the present invention;
The schematic flow sheet that Figure 11 deletes for the patch that the embodiment of the present invention provides;
The schematic flow sheet of the patch information inquiry that Figure 12 provides for the embodiment of the present invention;
The schematic flow sheet of the patch application state inquiry that Figure 13 provides for the embodiment of the present invention.
Embodiment
First embodiment of a kind of method for upgrading software provided by the invention, is applied to the service end of electronic equipment, and described electronic equipment is provided with software, and as shown in Figure 1, described method comprises:
Step 101, reception patch add request;
Step 102, described patch added the first patch specified by request and the second patch adds simultaneously, described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading;
Here it should be noted that, described first patch can be one or more, described second patch can to multiple the first patch added or apply for problem repair.
Be understandable that, described first patch and described second patch can be arranged in an AKU, certainly, also can be arranged at independently in two AKU.
Concrete, described first patch and the second patch comprise program information and configuration information respectively, here, described configuration information can comprise the information of patch itself and the information of patch reparation object, wherein, the information of described patch itself can comprise the information such as size, title, state (as whether applied), version number, filename of patch.
Describedly described patch is added the first patch specified by request and the second patch adds simultaneously, comprising:
The configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Here, described volatile memory can be internal memory, and described nonvolatile memory can be hard disk.
Step 103, control client are immediately applied described first patch, and when described electronic equipment restarts, are controlled the second patch described in described client application.
Second embodiment of a kind of method for upgrading software provided by the invention, is applied to the service end of electronic equipment, and described electronic equipment is provided with software, and as shown in Figure 2, described method comprises:
Step 201, reception patch add request;
Step 202, described patch added the first patch specified by request and the second patch adds simultaneously, described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading;
Here it should be noted that, described first patch can be one or more, described second patch can to multiple the first patch added or apply for problem repair.
Be understandable that, described first patch and described second patch can be arranged in an AKU, certainly, also can be arranged at independently in two AKU.
Concrete, described first patch and the second patch comprise program information and configuration information respectively, here, described configuration information can comprise the information of patch itself and the information of patch reparation object, wherein, the information of described patch itself can comprise the information such as size, title, state (as whether applied), version number, filename of patch.
Describedly described patch is added the first patch specified by request and the second patch adds simultaneously, comprising:
The configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Here, described volatile memory can be internal memory, and described nonvolatile memory can be hard disk.
Step 203, control client are immediately applied described first patch, and when described electronic equipment restarts, are controlled the second patch described in described client application.
Step 204, reception patch removal request;
Step 205, delete the first patch specified by described patch removal request.
Concrete, the first patch specified by the described patch removal request of described deletion, can comprise:
From volatile memory, delete the configuration information of described first patch, from nonvolatile memory, delete described first patch.
In one embodiment, described method can also comprise:
Receive patch state inquiry request;
Described patch state inquiry request is sent out described to client;
Receive and export the patch status information of described client feedback, described patch status information is that described client is obtained by inquiry according to the patch state inquiry request received.
In one embodiment, described method also comprises:
Described service end receives patch information inquiry request;
Described service end obtains according to described patch information inquiry request and exports the configuration information specified by described patch information inquiry request from volatile memory.
Here, it should be noted that, in actual applications, described method also comprises:
After described first patch or the application of the second patch, described first patch or configuration information corresponding to described second patch are modified.
First embodiment of another kind of method for upgrading software provided by the invention, is applied to and is provided with in the electronic equipment of software, and described electronic equipment comprises service end and client, and as shown in Figure 3, described method comprises:
Step 301, described service end receive patch and add request;
Described patch is added the first patch specified by asking for step 302, described service end and the second patch adds in described electronic equipment simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading;
Here it should be noted that, described first patch can be one or more, described second patch can to multiple the first patch added or apply for problem repair.
Be understandable that, described first patch and described second patch can be arranged in an AKU, certainly, also can be arranged at independently in two AKU.
Concrete, described first patch and the second patch comprise program information and configuration information respectively, here, described configuration information can comprise the information of patch itself and the information of patch reparation object, wherein, the information of described patch itself can comprise the information such as size, title, state (as whether applied), version number, filename of patch.
Describedly described patch is added the first patch specified by request and the second patch adds simultaneously, comprising:
The configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Here, described volatile memory can be internal memory, and described nonvolatile memory can be hard disk.
Step 303, notify that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Step 304, described client are applied described first patch or described second patch according to the notice of described service end.
Second embodiment of another kind of method for upgrading software provided by the invention, is applied to and is provided with in the electronic equipment of software, and described electronic equipment comprises service end and client, and as shown in Figure 4, described method comprises:
Step 401, described service end receive patch and add request;
Described patch is added the first patch specified by asking for step 402, described service end and the second patch adds in described electronic equipment simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading;
Here it should be noted that, described first patch can be one or more, described second patch can to multiple the first patch added or apply for problem repair.
Be understandable that, described first patch and described second patch can be arranged in an AKU, certainly, also can be arranged at independently in two AKU.
Concrete, described first patch and the second patch comprise program information and configuration information respectively, here, described configuration information can comprise the information of patch itself and the information of patch reparation object, wherein, the information of described patch itself can comprise the information such as size, title, state (as whether applied), version number, filename of patch.
Describedly described patch is added the first patch specified by request and the second patch adds simultaneously, comprising:
The configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Here, described volatile memory can be internal memory, and described nonvolatile memory can be hard disk.
Step 403, notify that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Step 404, described client are applied described first patch or the second patch according to the notice of described service end.
Step 405, described service end receive patch removal request;
Step 406, described service end delete the first patch specified by described patch removal request.
In one embodiment, described method can also comprise:
Described service end receives patch state inquiry request;
Described patch state inquiry request is sent out described to client by described service end;
Described client obtains patch status information according to the patch state inquiry request received by inquiry;
Described service end receives and exports the patch status information of described client feedback.
In one embodiment, described method also comprises:
Described service end receives patch information inquiry request;
Described service end obtains according to described patch information inquiry request and exports the configuration information specified by described patch information inquiry request from volatile memory.
Here, it should be noted that, in actual applications, described method also comprises:
After described first patch or the application of the second patch, described first patch or configuration information corresponding to described second patch are modified.
The embodiment of a kind of software updating apparatus provided by the invention, described device is arranged in electronic equipment, and described electronic equipment is provided with software, in actual applications, described software updating apparatus can be the service end of electronic equipment, and as shown in Figure 5, described device comprises:
Patch adding device 501, adds request for receiving patch, and the first patch specified by described patch interpolation request and the second patch are added, described first patch is used for hot patch upgrading, and described second patch is used for cold patch and upgrades simultaneously;
Here it should be noted that, described first patch can be one or more, described second patch can to multiple the first patch added or apply for problem repair.
Be understandable that, described first patch and described second patch can be arranged in an AKU, certainly, also can be arranged at independently in two AKU.
Concrete, described first patch and the second patch comprise program information and configuration information respectively, here, described configuration information can comprise the information of patch itself and the information of patch reparation object, wherein, the information of described patch itself can comprise the information such as size, title, state (as whether applied), version number, filename of patch.
Described patch adding device, specifically for the configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Here, described volatile memory can be internal memory, and described nonvolatile memory can be hard disk.
Notification unit 502, for notifying that client is applied immediately to described first patch, and when described electronic equipment restarts, notifies the second patch described in described client application.
In one embodiment, described device also comprises:
Patch delete cells 503, for receiving patch removal request, deletes the first patch specified by described patch removal request.
Concrete, described patch delete cells, specifically for deleting the configuration information of described first patch from volatile memory, deletes described first patch from nonvolatile memory.
In one embodiment, described device also comprises:
Patch state query unit 504, for receiving patch state inquiry request, sends out described to client by described patch state inquiry request; Receive and export the patch status information of described client feedback, described patch status information is that described client is obtained by inquiry according to the patch state inquiry request received.
In one embodiment, described device also comprises:
Patch information query unit, for receiving patch information inquiry request; And obtain from volatile memory according to described patch information inquiry request and export the configuration information specified by described patch information inquiry request.
Here, it should be noted that, in actual applications, after described first patch or the application of the second patch, described first patch or configuration information corresponding to described second patch are modified.
The embodiment of a kind of electronic equipment provided by the invention, described electronic equipment is provided with software, and as shown in Figure 6, described electronic equipment comprises: service end 601 and client 602, wherein,
Described service end 601, adds request for receiving patch, and the first patch added by described patch specified by request and the second patch add simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading; And for notifying that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Described client 602, applies described first patch or the second patch for the notice according to described service end.
Here it should be noted that, described first patch can be one or more, described second patch can to multiple the first patch added or apply for problem repair.
Be understandable that, described first patch and described second patch can be arranged in an AKU, certainly, also can be arranged at independently in two AKU.
Concrete, described first patch and the second patch comprise program information and configuration information respectively, here, described configuration information can comprise the information of patch itself and the information of patch reparation object, wherein, the information of described patch itself can comprise the information such as size, title, state (as whether applied), version number, filename of patch.
Described service end 601, specifically for the configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
Here, described volatile memory can be internal memory, and described nonvolatile memory can be hard disk.
In one embodiment, described service end, also for receiving patch removal request, deletes the first patch specified by described patch removal request.
In one embodiment, described service end, also for receiving patch information inquiry request; And obtain from volatile memory according to described patch information inquiry request and export the configuration information specified by described patch information inquiry request.
Here, it should be noted that, in actual applications, after described first patch or the application of the second patch, described first patch or configuration information corresponding to described second patch are modified.
The electronic equipment that the embodiment of the present invention provides both was applicable to single cpu mode, was also applicable to distributed mode, shown in Figure 7.Service end, manages all patch informations, as the patch information of interpolation and the patch information of application; And be responsible for the process interpolation of patch, application, deletion, status poll operation; After patch information changes, can determine whether notify client according to configuration.Client, is responsible for the execution of patch application; Initiatively from service end solicited message, or the passive patch Notification of Changes accepting service end.Service end also can be called patch management services end herein, and client also can be called patch management client.
For ease of understanding, be introduced a kind of method for upgrading software that the embodiment of the present invention provides below in conjunction with application scenarios, as shown in Figure 8, the method comprises:
S801, makes the AKU comprising hot patch, cold patch.
Wherein, cold patch cluster contains the reparation to former hot patch.But, do not limit cold patch here and hot patch one fixes in an AKU, can separately make.
S802, adds AKU in service end.
If hot patch and cold patch separately make, then to add together herein.
S803, application upgrade bag.
Wherein, hot patch is applied immediately, and cold patch can not be applied immediately.If unit exception is restarted, then restarting rear cold patch can come into force.
S804, checks hot patch application state.
Inquiry hot patch whether application success, and verify whether business is normally run by business.
S805, resets electronic equipment when allowing during safeguarding.
S806, checks cold patch application state.
S807, deletes the hot patch do not re-used.
As shown in Figure 9, be the flow process that patch adds, its detailed step is as follows:
S901, service end receives the request of outside interpolation service packs.
S902, service packs and information thereof add by service end, and patch information is recorded to memory database.Forever there is medium as hard disk, flash etc. in what service packs can be stored in electronic equipment, uses when electronic device starts.Here, patch information can refer to configuration information above.
S903, provide service packs and add response, adding procedure completes.
As shown in Figure 10, be the flow process of patch application, its detailed step is as follows:
S1001, service end receives the request of applications service packs.
S1002, patch information is recorded to memory database by service end.If do not need to come into force, then directly turn S1007; If need to come into force, turn S1003.
Namely general cold patch is configured to not need to come into force, and hot patch is configured to come into force.
S1003, service end notice client patch information.
S1004, client downloads also applies patch.
S1005, client is replied to service end.
S1006, if patch is applied unsuccessfully, then application operating rollback.
S1007, service end is replied to applications service packs.
As shown in figure 11, be the flow process that patch is deleted, its detailed step is as follows:
S1101, service end receives the request of outside deletion service packs.
S1102, service end is by service packs and information deletion thereof, and just patch information record is deleted from memory database, and service packs is by permanent delet.
S1103, provide service packs and delete response, delete procedure completes.
As shown in figure 12, be the flow process of patch information inquiry, inquiry be add or the patch information of patch of application.Its detailed step is as follows:
S1201, service end receives outside patch information inquiry request.
S1202, service end is from internal storage data library inquiry patch information record.
S1203, provide patch information response, patch information query script completes.
As shown in figure 13, be the flow process of patch application state inquiry, inquiry be that the patch of application is at the application state of all clients.Its detailed step is as follows:
S1301, service end receives outside patch application state inquiry request.
S1302, service end sends application state inquiry request to client.
S1303, client collects patch application state.
S1304, client is replied to service end.
S1305, service end gives outside patch application state inquiry response.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (14)

1. a method for upgrading software, is applied to the service end of electronic equipment, and described electronic equipment is provided with software, it is characterized in that, described method comprises:
Receive patch and add request;
The first patch specified by described patch interpolation request and the second patch are added, described first patch is used for hot patch upgrading, and described second patch is used for cold patch and upgrades simultaneously;
Control client immediately to apply described first patch, and when described electronic equipment restarts, control the second patch described in described client application.
2. method according to claim 1, is characterized in that, described first patch and the second patch comprise program information and configuration information respectively,
Describedly described patch is added the first patch specified by request and the second patch adds simultaneously, comprising:
The configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
Receive patch removal request;
Delete the first patch specified by described patch removal request.
4. method according to claim 3, is characterized in that, the first patch specified by the described patch removal request of described deletion, comprising:
From volatile memory, delete the configuration information of described first patch, from nonvolatile memory, delete described first patch.
5. method according to claim 1, is characterized in that, described method also comprises:
Receive patch state inquiry request;
Described patch state inquiry request is sent out described to client;
Receive and export the patch status information of described client feedback, described patch status information is that described client is obtained by inquiry according to the patch state inquiry request received.
6. a method for upgrading software, is applied to and is provided with in the electronic equipment of software, and described electronic equipment comprises service end and client, it is characterized in that, described method comprises:
Described service end receives patch and adds request;
Described patch is added the first patch specified by asking to described service end and the second patch adds in described electronic equipment simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading;
Notify that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Described client is applied described first patch or described second patch according to the notice of described service end.
7. method according to claim 6, is characterized in that, described method also comprises:
Described service end receives patch removal request;
Described service end deletes the first patch specified by described patch removal request.
8. a software updating apparatus, described device is arranged in electronic equipment, and described electronic equipment is provided with software, it is characterized in that, described device comprises:
Patch adding device, adds request for receiving patch, and the first patch specified by described patch interpolation request and the second patch are added, described first patch is used for hot patch upgrading, and described second patch is used for cold patch and upgrades simultaneously;
Notification unit, for notifying that client is applied immediately to described first patch, and when described electronic equipment restarts, notifies the second patch described in described client application.
9. device according to claim 8, is characterized in that, described first patch and the second patch comprise program information and configuration information respectively,
Described patch adding device, specifically for the configuration information of described first patch and the second patch is stored into volatile memory, by described first patch and the second patch storage to nonvolatile memory.
10. device according to claim 8 or claim 9, it is characterized in that, described device also comprises:
Patch delete cells, for receiving patch removal request, deletes the first patch specified by described patch removal request.
11. devices according to claim 10, is characterized in that, described patch delete cells, specifically for deleting the configuration information of described first patch from volatile memory, delete described first patch from nonvolatile memory.
12. devices according to claim 8, is characterized in that, described device also comprises:
Patch state query unit, for receiving patch state inquiry request, sends out described to client by described patch state inquiry request; Receive and export the patch status information of described client feedback, described patch status information is that described client is obtained by inquiry according to the patch state inquiry request received.
13. 1 kinds of electronic equipments, described electronic equipment is provided with software, it is characterized in that, described electronic equipment comprises: service end and client, wherein,
Described service end, adds request for receiving patch, and the first patch added by described patch specified by request and the second patch add simultaneously, and described first patch is used for hot patch upgrading, and described second patch is used for cold patch upgrading; And for notifying that described client is applied immediately to described first patch, and when described electronic equipment restarts, notify the second patch described in described client application;
Described client, applies described first patch or described second patch for the notice according to described service end.
14. electronic equipments according to claim 13, is characterized in that, described service end, also for receiving patch removal request, delete the first patch specified by described patch removal request.
CN201410528297.9A 2014-10-09 2014-10-09 Software upgrading method and device and electronic equipment Pending CN105573766A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410528297.9A CN105573766A (en) 2014-10-09 2014-10-09 Software upgrading method and device and electronic equipment
PCT/CN2015/072807 WO2016054886A1 (en) 2014-10-09 2015-02-11 Software upgrade method and apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410528297.9A CN105573766A (en) 2014-10-09 2014-10-09 Software upgrading method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN105573766A true CN105573766A (en) 2016-05-11

Family

ID=55652528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410528297.9A Pending CN105573766A (en) 2014-10-09 2014-10-09 Software upgrading method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN105573766A (en)
WO (1) WO2016054886A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409096B (en) * 2018-11-15 2021-02-26 百度在线网络技术(北京)有限公司 Kernel vulnerability repairing method, device, server and system
CN111949292B (en) * 2020-07-30 2023-03-21 锐捷网络股份有限公司 Hot patch loading method and device, electronic equipment and storage medium
CN113312079A (en) * 2020-11-20 2021-08-27 锐捷网络股份有限公司 Hot patch upgrading method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177486A1 (en) * 2002-03-13 2003-09-18 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for performing SW upgrade in a real-time system
CN1741664A (en) * 2004-08-29 2006-03-01 华为技术有限公司 Communication equipment sub-system staging method
CN101008899A (en) * 2007-01-26 2007-08-01 上海华为技术有限公司 Software version update method and device in communication equipment
CN101192157A (en) * 2006-11-22 2008-06-04 乐金电子(昆山)电脑有限公司 Domestic network system software upgrading method
CN102609290A (en) * 2012-02-17 2012-07-25 青岛海信电器股份有限公司 Software updating method for electronic product

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1200341C (en) * 2002-06-25 2005-05-04 联想(北京)有限公司 Method for realizing flush type system firmware program online updating
CN101137177A (en) * 2007-10-10 2008-03-05 中兴通讯股份有限公司 Method for managing software mend of wireless communication system
US8819660B2 (en) * 2011-06-29 2014-08-26 Microsoft Corporation Virtual machine block substitution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177486A1 (en) * 2002-03-13 2003-09-18 Telefonaktiebolaget Lm Ericsson (Publ) Method and system for performing SW upgrade in a real-time system
CN1741664A (en) * 2004-08-29 2006-03-01 华为技术有限公司 Communication equipment sub-system staging method
CN101192157A (en) * 2006-11-22 2008-06-04 乐金电子(昆山)电脑有限公司 Domestic network system software upgrading method
CN101008899A (en) * 2007-01-26 2007-08-01 上海华为技术有限公司 Software version update method and device in communication equipment
CN102609290A (en) * 2012-02-17 2012-07-25 青岛海信电器股份有限公司 Software updating method for electronic product

Also Published As

Publication number Publication date
WO2016054886A1 (en) 2016-04-14

Similar Documents

Publication Publication Date Title
AU2018261579B2 (en) Backup and restore framework for distributed computing systems
CN107870968B (en) Performing real-time updates to a file system volume
CN108964982B (en) Method, apparatus and storage medium for enabling deployment of multiple nodes of a blockchain
US10956374B2 (en) Data recovery method, apparatus, and system
US11662996B2 (en) System and method for downgrading applications
EP2696532A2 (en) Method, server and system for starting application
KR20130138635A (en) Method and apparatus for fault tolerant fota update with single backup block write
US10795579B2 (en) Methods, apparatuses, system and computer program products for reclaiming storage units
US20130167148A1 (en) Computing device and virtual machine operation control method
CN110333876A (en) A kind of data clearing method and control equipment
CN105573766A (en) Software upgrading method and device and electronic equipment
CN106293790B (en) application program upgrading method and device based on Firefox operating system
US10635523B2 (en) Fast recovery from failures in a chronologically ordered log-structured key-value storage system
CN103984621B (en) log separation method and system
CN105786575A (en) Mobile terminal and data elimination avoiding method thereof during system rewriting
WO2017036197A1 (en) Method and device for managing network element model
CN115134238B (en) Business system publishing method, device, computer equipment and storage medium
WO2020063002A1 (en) Data management method and apparatus, and server
EP4130982A1 (en) Network-based solution module deployment platform
CN111488117A (en) Method, electronic device, and computer-readable medium for managing metadata
CN115080538A (en) Block chain version verification method and device
US20180124170A1 (en) Resource management device and method
US20190278747A1 (en) System and method to optimally apply local retention in a remote repository
CN104461382A (en) Internal writing method for file server operating multiple file systems and server
CN113094211B (en) Backup data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160511

WD01 Invention patent application deemed withdrawn after publication