CN104049985A - Cross-file-system version on-line upgrading method and device - Google Patents

Cross-file-system version on-line upgrading method and device Download PDF

Info

Publication number
CN104049985A
CN104049985A CN201310078309.8A CN201310078309A CN104049985A CN 104049985 A CN104049985 A CN 104049985A CN 201310078309 A CN201310078309 A CN 201310078309A CN 104049985 A CN104049985 A CN 104049985A
Authority
CN
China
Prior art keywords
file system
version
key plate
current
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.)
Pending
Application number
CN201310078309.8A
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 CN201310078309.8A priority Critical patent/CN104049985A/en
Publication of CN104049985A publication Critical patent/CN104049985A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a cross-file-system version on-line upgrading method and device. The method comprises the following steps: downloading a main version file to be operated from the current version system; starting a system guidance program to obtain the current file system type in a flash memory, and initializing the current file system; obtaining main version information and the file system type of the main version; judging whether the main version can be operated on the current file system or not, generating a result according to judgment, and causing the current file system to operate the main version. According to the on-line upgrading method disclosed by the invention, the version capable of operating different file systems can be supported to be upgraded on line, the version upgrading process is totally automatically recognized, the difference of the operation steps of upgrading and rolling back the version due to different file systems is not brought for the user, manual operation is reduced, and the upgrading efficiency and the use satisfaction degree of the user can be improved. The method disclosed by the invention is also suitable for upgrading the versions of the main system and backup system as well as the version of a line card.

Description

A kind of text on-line upgrading method across file system and device
Technical field
The present invention relates to communication technique field, particularly a kind of text on-line upgrading method across file system and device.
Background technology
Edition upgrading is modal a kind of operation in communication product.In order to meet what's new or new demand, product version needs upgrading, and likely occurs cross-platform or across the edition upgrading of file system.Such as original system adopt be the operating system of vxWorks, for the function of supporting that some is new, need to be replaced by the operating system of linux; For another example, owing to adopting the relation of platform, likely there is the different situation of file system of new and old edition.To carry out software release upgrade to these systems, need to guarantee to accomplish in situation that all hardware is constant: before and after upgrading, all data of version and file system the inside are not lost; Upgrading action is simple and convenient, can support online upgrading; The in the situation that of the engineering use of original version, need not make any change to early version, directly smooth upgrade is to new software version, and new version also can directly smoothly return back to old version.
In current version management, it is upper that version file and system data can separately be preserved (version file is saved in flash(flash memory), and system data is saved in file system), also can version file and data be all saved in file system the inside.No matter be which kind of preserving type, if new early version moves different file separately, the new old file system of system Bootloader None-identified, must be in legacy system first the data upload in file system on NM server or computing machine, the system of then upgrading new starts bootstrap version.The system for the treatment of starts after bootstrap version starts, then obtains key plate presents from NM server or computing machine, then move key plate this, data of backup in advance before key plate recovers in this.But the shortcoming of this method is: new key plate originally can not directly be upgraded in old version, must in new startup guiding software, upgrade key plate originally, complicated operation, can not meet online upgrading; Because the old and new's file system is incompatible, data can not be preserved, and need to shift to an earlier date Backup Data to other servers, treat could recover data after this operation of new key plate, and complicated operation, is difficult to meet batch operation; If redaction will return back to early version, can run into the identical problem running into during upgrading.
Certainly the system also having can be saved in version file and data in Installed System Memory or flash temporarily, reads the data in internal memory or flash, then re-write in file system in new startup bootstrap version.The shortcoming of this method is: in early version, retain owing to existing the conforming problem of obtaining data address in data address and new startup guiding software, need to customize transformation to early version and new startup guiding software, namely early version is first upgraded to temporary version, and then is upgraded to new version; If same new version need to return back to old version, need to transform old startup guiding software equally.
Summary of the invention
The object of the invention is to, a kind of method and apparatus across file system version online upgrading is provided, can complete the incompatible online upgrading across file system version and rollback.
Method across file system online upgrading of the present invention, comprising:
In current version system, download key plate presents to be moved;
Start system bootstrap routine, to obtain the current file system type in flash memory, the trade preceding document system initialization of going forward side by side;
Obtain main version information and key plate file system type originally;
Judge whether key plate originally can operate in current file system, and produce a result according to judgement, make current file system operation key plate originally.
The present invention also provides a kind of device across file system online upgrading, comprising:
This download module of key plate, for downloading key plate presents to be moved in current version system;
Current file system acquisition module, for starting system bootstrap routine, to obtain the current file system type in flash memory, the trade preceding document system initialization of going forward side by side;
This acquisition of information of key plate module, for obtaining main version information and key plate file system type originally;
Judge execution module, for producing a result according to judgement, make current file system operation key plate originally.
The invention has the beneficial effects as follows: according to the method for online upgrading of the present invention, can support to move the text on-line upgrading of different file, and in escalation process, support rollback operation.Advantage is as follows:
1. constant at hardware, flash and memory source be all in limited situation, realized that data are preserved automatically and version auto-update, Backward Function.
2. edition upgrading process is identification completely automatically, can not bring and anyly reduce manual operation because file system difference causes the difference of upgrading and rollback version operation steps to user, has improved the satisfaction of upgrading efficiency and user's use.
Brief description of the drawings
Fig. 1 is the process flow diagram of the method across file system version online upgrading of an embodiment of the present invention;
Fig. 2 is the process flow diagram of the operation key plate basis of an embodiment of the present invention;
Fig. 3 is the structured flowchart of the device across file system version online upgrading of an embodiment of the present invention.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, be the process flow diagram of the method across file system version online upgrading of an embodiment of the present invention, the method comprises the steps:
Step S101: download key plate presents to be moved in current version system;
Step S102: start system bootstrap routine, to obtain the current file system type in flash memory, the trade preceding document system initialization of going forward side by side;
Step S103: obtain main version information and key plate file system type originally;
Step S104: judge whether key plate originally can operate in current file system, and produce a result according to judgement, make current file system operation key plate originally.
The method of online upgrading of the present invention, can support to move the text on-line upgrading of different file, edition upgrading process is identification completely automatically, can not bring to user any because file system difference causes upgrading and the difference of rollback version operation steps, reduce manual operation, improved the satisfaction that upgrading efficiency and user use.The present invention can also realize the automatic rollback of version, and when key plate, this is early version, when current version is redaction, has realized the Backward Function of version.This method is suitable for the text on-line upgrading with standby usage system and line card simultaneously.
Wherein, step S101 downloads key plate presents to be moved in current version system, is downloaded new key plate presents and is saved in file system from remote online by current version system.This key plate originally can also be kept in file system; Or be kept at certain region of flash; Or version to be moved is kept at ftp, on tftp server.In order to make system bootstrap routine can support version to be moved, also need to upgrade new system starts guiding software version simultaneously, and this is version the to be moved starting system of laying equal stress on to activate new key plate.If system starts guiding, software can be supported version to be moved, and does not need to upgrade.
If active/standby backup version can be supported in flash space in system, new key plate presents saves as backup version file automatically, and after new key plate presents activates as version to be moved, old version file becomes backup version automatically.After new version file is upgraded unsuccessfully, old version file still exists like this, can reactivate old version file, thereby realizes version Backward Function.If not only comprise key plate presents and system guiding software version file in system, also have other software versions, such as firmware version etc., whether whether these versions upgrade itself has upgrading to determine according to them, is which kind of type and the key plate rollback of originally whether upgrading does not have association with this file system of current key plate.
Wherein, step S102 starts system bootstrap routine, to obtain the current file system type in flash memory, and the trade preceding document system initialization of going forward side by side; Identifying file system type in current flash can identify by the feature separately of file system.In system startup guiding software version, by reading the ad hoc structure of current file system region, automatically identify the file system type of original version operation, and carry out file system initialization operation.
Wherein, step S103 obtains main version information and key plate file system type originally.If version to be moved is kept in file system,, by first obtaining version name to be moved, then from file system, reads version to be moved, and read the file system type that can support version to be moved from version head to be moved; If version to be moved is kept in flash, obtains by flash parameter region version the to be moved region being kept in flash, thereby read version to be moved, and read the file system type that can support version to be moved from version head to be moved; If version to be moved is kept on ftp or tftp server, from server, directly obtains version to be moved, and read the file system type that can support version to be moved from version head to be moved; If version to be moved is placed in the file system of main control board, slave control board or line card can obtain version to be moved by communication between plate, and read the file system type that can support version to be moved from version head to be moved.
In this step, obtaining in the time moving version file, further comprise: if obtain version information failure to be moved, or treat operation version and carry out verification failure, when operation is described, there are abnormal conditions, now, can carry out verification from newly obtaining backup version file, after verification succeeds, Lookup protocol is version to be moved, thus operation early version.First obtain the filename of version to be moved by being kept at the act.txt of file system, from file system, read version head and the release content of version to be moved by filename, version to be moved in front face preserve data length and version exclusive or check and, can treat operation version by these information and carry out verification.If act.txt reads failure, or the version name to be moved that act.txt preserves the inside does not exist, or release content verification failure to be moved, from key plate presents catalogue the inside from new searching backup version file, backup version file verification success, backup version file is set for version file to be moved, and preserves backup version filename in act.txt file.
Wherein step S104, for judging whether key plate originally can operate in current file system, and produces a result according to judgement, makes current file system operation key plate originally.If YES, move key plate originally.
If NO, the file of the current file system in flash memory is saved in transfer storer, current file system in formatting flash memory, according to the type of main version file system, flash memory is carried out to file system initialization operation again, and the file in transfer storer is saved in flash memory, move key plate originally.The initialization operation of this step need to carry out initialization according to the type of main version file system, just makes key plate originally can move key plate originally.
As shown in Figure 2, for this process flow diagram of the operation key plate of an embodiment of the present invention, comprise the steps:
Step S1041: judge whether key plate originally can operate in current file system, if so, proceeds to step S1045, operation key plate originally; If NO, perform step S1042.
Step S1042: the file of the current file system in flash memory is saved in transfer storer to execution step S1043; The file of current file system is the file in flash memory, and transfer storer can be other parts in internal memory, hard disk or flash memory, for temporary transient storage current file system.If the transfer storeies such as Installed System Memory are not enough large, can not preserve All Files, adopt general lzma or gzip instrument, to being saved in transfer storer after whole file directory boil down to file map file, format flash file system, reinitialize file system according to version file system type to be moved, the file map file in centering unloading reservoir is saved in file system after decompressing.File directory image file can be saved in fixed address internal memory, also can be saved in Dram.By tools of compression such as lzma, to all boil down to image files of the whole catalogue of current file system (comprising version file to be moved), operation has versatility like this, and not needing to pay close attention to which vital document under which catalogue in file system needs to preserve.In one embodiment, original whole file directory 32M altogether that videos only takies the memory headroom of several M after the compression of lzma instrument, and Installed System Memory can meet the needs of preservation file directory image file completely like this.
Step S1043: after the current file system in formatting flash memory, flash memory is carried out to initialization operation; Execution step S1044.Reformatting file system, and initialization files system.File system formatization operation can adopt the mode of low-level formatting flash, and format is more thorough like this.
Step S1044: the file in transfer storer is saved in flash memory to execution step S1045.File in central unloading reservoir is compression, decompresses.This embodiment obtains file directory image file from the transfer storeies such as internal memory, is directly saved in new file system by after lzma decompression instrument decompress(ion), and version to be moved is also saved in file system.
Step S1045: operation key plate originally.If key plate originally can operate in current file system, can directly move key plate originally.If key plate originally can not operate in current file system, but when current file system is formatd, and carry out after initialization operation, current file system just can have been moved key plate originally.
As shown in Figure 3, be the structured flowchart of the device across file system version online upgrading of an embodiment of the present invention, this device comprises:
This download module of key plate 100, for download key plate presents to be moved in current version system, and preserves;
Current file system acquisition module 200, for starting system bootstrap routine, obtains the current file system type in flash memory, the trade preceding document system initialization of going forward side by side;
This acquisition of information of key plate module 300, for obtaining main version information and key plate file system type originally;
Judge execution module 400, for producing a result according to judgement, make current file system operation key plate originally.
The device of online upgrading of the present invention, can support to move the text on-line upgrading of different file, edition upgrading process is identification completely automatically, can not bring to user any because file system difference causes upgrading and the difference of rollback version operation steps, reduce manual operation, improved the satisfaction that upgrading efficiency and user use.This device is applicable to the text on-line upgrading of standby usage system and line card simultaneously.
Described judgement execution module 400 further comprises:
For moving key plate originally in the time being judged as YES, and
For in the time being judged as NO, the file of the current file system in flash memory is saved in transfer storer, current file system in formatting flash memory, according to the type of main version file system, flash memory is carried out to file system initialization operation again, and the file in transfer storer is saved in flash memory, move key plate originally.
Described judgement execution module 400 further comprises: in the time that described transfer memory span is less than the file of current file system, be saved in transfer storer after current file system compresses.
Described this acquisition module of key plate 300, further comprises in the time obtaining the file system type failure of main version information and key plate basis, moves current version.
In sum, according to the method across file system version online upgrading of the present invention, by automatic identification file system type, and situation about can not move in current file system for version to be moved, first All Files is temporarily saved in to transfer storer, then according to the needed file system type of version to be moved, from format initialization files system, the file data that simultaneously recovers to be temporarily stored in transfer storer arrives file system, thereby the in the situation that of internal memory and flash resource-constrained, realize the online upgrading across file system version, rollback, data are preserved automatically, updating operation does not limit, improve updating speed, reduce manual operation, improve user satisfaction.
Be more than in order to make those of ordinary skill in the art understand the present invention, and the detailed description that the present invention is carried out, but can expect, can also make other changes and modifications not departing from the scope that claim of the present invention contains.

Claims (10)

1. across a method for the text on-line upgrading of file system, it is characterized in that, comprising:
In current version system, download key plate presents to be moved;
Start system bootstrap routine, to obtain the current file system type in flash memory, the trade preceding document system initialization of going forward side by side;
Obtain main version information and key plate file system type originally;
Judge whether key plate originally can operate in current file system, and produce a result according to judgement, make current file system operation key plate originally.
2. the text on-line upgrading method across file system according to claim 1, it is characterized in that, describedly judge whether key plate originally can operate in current file system, produce a result according to judgement, make current file system can move key plate originally, further comprise: if NO, the file of the current file system in flash memory is saved in transfer storer, current file system in formatting flash memory, according to the type of main version file system, flash memory is carried out to file system initialization operation again, and the file in transfer storer is saved in flash memory, then move key plate originally.
3. the text on-line upgrading method across file system according to claim 1, it is characterized in that, describedly judge whether key plate originally can operate in current file system, produce a result according to judgement, make current file system operation key plate originally, further comprise: if YES, move key plate originally.
4. the text on-line upgrading method across file system according to claim 2, is characterized in that, when described transfer memory span is less than the file of current file system, is saved in transfer storer after current file system compresses.
5. the text on-line upgrading method across file system according to claim 4, is characterized in that, after described current file system compresses, being saved in transfer storer is that boil down to image file is stored.
6. according to the text on-line upgrading method across file system described in claim 1-5 any one, it is characterized in that, described main version information and the key plate file system type originally of obtaining, further comprise: if obtain main version information and key plate file system type failure originally, move current version.
7. across a text on-line upgrading device for file system, it is characterized in that, comprising:
This download module of key plate, for downloading key plate presents to be moved in current version system;
Current file system acquisition module, for starting system bootstrap routine, obtains the current file system type in flash memory, the trade preceding document system initialization of going forward side by side;
This acquisition of information of key plate module, for obtaining main version information and key plate file system type originally;
Judge execution module, for producing a result according to judgement, make current file system operation key plate originally.
8. the text on-line upgrading device across file system according to claim 7, is characterized in that, described judgement execution module further comprises:
For moving key plate originally in the time being judged as YES, and
For in the time being judged as NO, the file of the current file system in flash memory is saved in transfer storer, current file system in formatting flash memory, according to the type of main version file system, flash memory is carried out to file system initialization operation again, and the file in transfer storer is saved in flash memory, move key plate originally.
9. the text on-line upgrading device across file system according to claim 8, it is characterized in that, described judgement execution module further comprises: in the time that described transfer memory span is less than the file of current file system, be saved in transfer storer after current file system compresses.
10. according to the text on-line upgrading device across file system described in claim 7-9 any one, it is characterized in that, described this acquisition module of key plate, further comprises in the time obtaining the file system type failure of main version information and key plate basis, moves current version.
CN201310078309.8A 2013-03-12 2013-03-12 Cross-file-system version on-line upgrading method and device Pending CN104049985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310078309.8A CN104049985A (en) 2013-03-12 2013-03-12 Cross-file-system version on-line upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310078309.8A CN104049985A (en) 2013-03-12 2013-03-12 Cross-file-system version on-line upgrading method and device

Publications (1)

Publication Number Publication Date
CN104049985A true CN104049985A (en) 2014-09-17

Family

ID=51502893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310078309.8A Pending CN104049985A (en) 2013-03-12 2013-03-12 Cross-file-system version on-line upgrading method and device

Country Status (1)

Country Link
CN (1) CN104049985A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915362A (en) * 2015-11-09 2016-08-31 乐视致新电子科技(天津)有限公司 Method for controlling system upgrading according to version information and device thereof
CN109240990A (en) * 2018-09-12 2019-01-18 京信通信系统(中国)有限公司 A kind of guard method of file system and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770383A (en) * 2010-01-22 2010-07-07 中兴通讯股份有限公司 Method and device for on-line upgrade of cross-platform version
CN102375760A (en) * 2010-08-24 2012-03-14 中兴通讯股份有限公司 Embedded system and method for switching file systems in same
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770383A (en) * 2010-01-22 2010-07-07 中兴通讯股份有限公司 Method and device for on-line upgrade of cross-platform version
CN102375760A (en) * 2010-08-24 2012-03-14 中兴通讯股份有限公司 Embedded system and method for switching file systems in same
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915362A (en) * 2015-11-09 2016-08-31 乐视致新电子科技(天津)有限公司 Method for controlling system upgrading according to version information and device thereof
CN109240990A (en) * 2018-09-12 2019-01-18 京信通信系统(中国)有限公司 A kind of guard method of file system and device

Similar Documents

Publication Publication Date Title
US10114630B2 (en) Management of software and operating system updates required for the process of creating a virtual machine facsimile of an existing physical or virtual machine
CN101719073B (en) Intelligent client-based on-demand downloading realization method
CN101110788B (en) Method and system for updating client software
JP5342302B2 (en) Firmware update system, firmware distribution server, and program
CN112416406B (en) Terminal equipment upgrading method, device, terminal equipment and medium
CN104881604A (en) Method and apparatus for operating versions files
CN101770383B (en) Method and device for on-line upgrade of cross-platform version
JP2002196945A (en) Upgrading system and method of device driver
CN101158906A (en) Customer terminals program automatic update method
TWI533216B (en) Operating system updating method
CN105511911A (en) System firmware upgrade package generation method and device
CN107995284B (en) OTA (over the air) upgrading method suitable for POS (point of sale) machine
WO2018032757A1 (en) Method and device for updating component
CN110543318A (en) control device program updating method and device, storage medium and control device
CN105824722A (en) Backup restoring system for computer cloud
CN110908681A (en) Method and device for upgrading software
CN104049985A (en) Cross-file-system version on-line upgrading method and device
CN102331942A (en) Method for automatically upgrading BIOS (basic input/output system) and Linux core
CN112328284A (en) Application program upgrading method, system, equipment and storage medium
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
CN106681761B (en) Interactive upgrading method and system
CN111046389A (en) Method for securely updating firmware components and portable computer station for implementation
CN102999347B (en) A kind of system reloading method, system and client
CN107908441B (en) Database upgrading method and upgrading device
CN111552498A (en) Method and system for realizing screen parameter upgrading of display screen

Legal Events

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

Application publication date: 20140917

RJ01 Rejection of invention patent application after publication