CN105843656A - System upgrading method for insufficient disk space, terminal device and server - Google Patents
System upgrading method for insufficient disk space, terminal device and server Download PDFInfo
- Publication number
- CN105843656A CN105843656A CN201610255784.1A CN201610255784A CN105843656A CN 105843656 A CN105843656 A CN 105843656A CN 201610255784 A CN201610255784 A CN 201610255784A CN 105843656 A CN105843656 A CN 105843656A
- Authority
- CN
- China
- Prior art keywords
- aku
- subregion
- size
- fragment
- terminal unit
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a system upgrading method for insufficient disk space, a terminal device and a server. The method comprises steps as follows: the size of available space of each partition in a disk of the terminal device is calculated; the size of the available space of all partitions is accumulated, and whether the size of the available space of all the partitions is smaller than that of an upgrade package is judged; when the size of the available space of all the partitions is not smaller than that of the upgrade package, upgrade package downloads are distributed to the partitions sequentially and sent to the server, and the server divides the upgrade package into multiple upgrade package fragments according to a distribution result and returns the upgrade package fragments to the terminal device; the multiple upgrade package fragments sent by the server are received and written into the corresponding partitions according to the distribution record, and system upgrading is performed by means of the multiple upgrade package fragments. According to the system upgrading method for insufficient disk space, the terminal device and the server, the system upgrading stability and the user experience are improved.
Description
Technical field
The invention belongs to Internet technical field, particularly relate to a kind of Insufficient disk space method for upgrading system,
Terminal unit and server.
Background technology
At present, along with the continuous change of various operating system application versions, system upgrade have become as mobile phone,
The requisite function of the terminal units such as TV.By system upgrade, terminal unit can solve the problem that current system can
The problem that can exist, makes user get up-to-date Consumer's Experience.Meanwhile, equipment vendors can pass through system
Upgrading solves software issue in time, and to value-added services such as user's advertisements, therefore system upgrade is also
Equipment vendors realize the effective way of extra earning.
The system upgrade of terminal unit many employings FOTA (Firmware Over The Air, nothing in prior art
Line firmware upgrade) upgrading mode, i.e. push AKU to terminal unit by the webserver, then by end
End equipment utilization AKU is upgraded.But, if owing to the storage chip of terminal unit typically can be divided into
Dry subregion, the effect of each subregion is different, and the upgrading mode of generally FOTA is all by AKU
Under be loaded in some fixing subregion, such as: data subregion or cache subregion etc., when this partition space holds
Can do not receive any more whole AKU time, subscriber terminal equipment insufficient memory will be pointed out, it is desirable to user is the most clear
Manage data or cleared up data by force by the current system of terminal unit.But, both processing modes are all deposited
There iing certain defect: if the former user will not operate or be not desired to manually to clear up data, then terminal unit is just
System upgrade cannot be smoothly completed;The latter may after can cause some useful data of by mistake deleting user, to user
Bring bad experience.
Summary of the invention
The purpose of the embodiment of the present invention is to provide the method for upgrading system of a kind of Insufficient disk space, terminal to set
Standby and server, it is intended to solve the upgrading mode of above-mentioned FOTA terminal unit can be caused to smoothly complete be
System upgrading or the problem bringing bad experience to user.
The embodiment of the present invention is achieved in that the method for upgrading system of a kind of Insufficient disk space, including:
The size of the free space of each subregion in computing terminal equipment disk;
The size of accumulative all subregion free spaces, and judge whether the size of all subregion free spaces is less than
The size of described AKU;
When the size of all subregion free spaces is more than or equal to the size of described AKU, it is followed successively by each point
District's distribution AKU download, and assignment record is sent to server, make described server according to described point
Join after described AKU is divided into multiple AKU fragment by record and be back to described terminal unit successively;
Receive multiple AKU fragments that described server issues, according to described assignment record by each AKU sheet
In the subregion that section write is corresponding, and multiple described AKU fragment is utilized to carry out system upgrade.
In the method for upgrading system of the Insufficient disk space described in the embodiment of the present invention, described accumulative all points
The size of district's free space, and judge whether the size of all subregion free spaces is less than the big of described AKU
Also include before little:
Judge whether the subregion of free space maximum is large enough to hold AKU;
When the subregion that free space is maximum can not accommodate described AKU, entering accumulative all subregions can be with sky
Between size, and judge that the size of all subregion free spaces is whether less than the step of size of described AKU;
When the subregion that free space is maximum is large enough to hold described AKU, described AKU is downloaded to described
The subregion that free space is maximum, and utilize described AKU to carry out system upgrade.
In the method for upgrading system of the Insufficient disk space described in the embodiment of the present invention, described in be followed successively by each point
District's distribution AKU download specifically includes:
Each subregion is ranked up from big to small according to free space, divides from the subregion that free space is maximum successively
Join AKU download.
In the method for upgrading system of the Insufficient disk space described in the embodiment of the present invention, described utilize multiple liter
Level bag fragment carries out system upgrade and specifically includes:
Obtain the assignment record of the AKU download that terminal unit is the distribution of each subregion;
Successively the AKU fragment in each subregion is loaded onto in internal memory according to described assignment record, and passes through cat
Each AKU fragment combination is become complete AKU by order;
AKU in internal memory is carried out a read lock;
The integrity of AKU in verification internal memory;
If verification is not passed through, then delete the AKU in internal memory, and return according to described record successively by each point
The step that AKU fragment in district is loaded onto in internal memory;
If verification is passed through, then this AKU is utilized to carry out system upgrade.
The another object of the embodiment of the present invention is to provide the method for upgrading system of a kind of Insufficient disk space, bag
Include:
The request of the size of the required AKU of inquiry system upgrading that receiving terminal apparatus sends, and according to described
The size of described AKU is back to described terminal unit by request, makes described terminal unit according to described upgrading
The AKU download of subregion each in disk is allocated by the size of bag;
Receive the assignment record of AKU download of each subregion distribution that described terminal unit sends, and according to
AKU correspondence is divided into multiple AKU fragment by described assignment record;
Successively multiple AKU fragments are sent to terminal unit, make described terminal unit according to described distribution note
Record is respectively by subregion corresponding for the write of each AKU fragment, and utilizes the plurality of AKU fragment to be
System upgrading.
In the method for upgrading system of the Insufficient disk space described in the embodiment of the present invention, divide described in described basis
Joining record is divided into multiple AKU fragment to specifically include AKU correspondence:
Corresponding relation according to partition identification each in described assignment record and AKU download is by described AKU
Correspondence is divided into multiple AKU fragment, and is that each AKU fragment adds corresponding partition identification.
The another object of the embodiment of the present invention is to provide a kind of terminal unit, including:
First computing module, the size of the free space of each subregion in computing terminal equipment disk;
Second computing module, for adding up the size of all subregion free spaces;
Second judge module, for judging that whether the size of all subregion free spaces is less than described AKU
Size;
Second download module, for the size when all subregion free spaces more than or equal to described AKU
During size, it is followed successively by each subregion distribution AKU download, and assignment record is sent to server, make institute
State after described AKU is divided into multiple AKU fragment according to described assignment record by server and be back to successively
Described terminal unit;Receive multiple AKU fragments that described server issues, will according to described assignment record
In the subregion that the write of each AKU fragment is corresponding;
Second upgraded module, is used for utilizing multiple described AKU fragment to carry out system upgrade.
In the terminal unit described in the embodiment of the present invention, also include:
First judge module, for judging whether the subregion of free space maximum is large enough to hold described AKU,
When the subregion that free space is maximum can not accommodate described AKU, control described second computing module and add up institute
There is the size of subregion free space;
First download module, for when the maximum subregion of free space is large enough to hold described AKU, by institute
State AKU and download to the subregion that described free space is maximum;
First upgraded module, is used for utilizing described AKU to carry out system upgrade.
In the terminal unit described in the embodiment of the present invention, described second download module specifically for:
Each subregion is ranked up from big to small according to free space, divides from the subregion that free space is maximum successively
Join AKU download.
In the terminal unit described in the embodiment of the present invention, described second upgraded module specifically for:
Obtain the assignment record of the AKU download that terminal unit is the distribution of each subregion;
Successively the AKU fragment in each subregion is loaded onto in internal memory according to described assignment record, and passes through cat
Each AKU fragment combination is become complete AKU by order;
AKU in internal memory is carried out a read lock;
The integrity of AKU in verification internal memory;
If verification is not passed through, then delete the AKU in internal memory, and again by the AKU fragment in each subregion
It is loaded onto in internal memory;
If verification is passed through, then this AKU is utilized to carry out system upgrade.
The another object of the embodiment of the present invention is to provide a kind of server, including:
Receiver module, needed for the inquiry system upgrading that receiving terminal apparatus sends, the size of AKU please
Ask, and according to described request, the size of described AKU is back to described terminal unit, make described terminal set
For according to the size of described AKU, the AKU download of subregion each in disk being allocated;
AKU segmentation module, downloads for receiving the AKU of each subregion distribution that described terminal unit sends
The assignment record of amount, and according to described assignment record, AKU correspondence is divided into multiple AKU fragment;
Sending module, for sending multiple AKU fragments to terminal unit successively, makes described terminal unit
Respectively each AKU fragment is write in corresponding subregion according to described assignment record, and utilize the plurality of liter
Level bag fragment carries out system upgrade.
In the server described in the embodiment of the present invention, described AKU segmentation module specifically for:
Corresponding relation according to partition identification each in described assignment record and AKU download is by described AKU
Correspondence is divided into multiple AKU fragment, and is that each AKU fragment adds corresponding partition identification.
Implement the method for upgrading system of Insufficient disk space, terminal unit and service that the embodiment of the present invention provides
Device has the advantages that
The embodiment of the present invention is due to the size of the free space of each subregion in first computing terminal equipment disk;Tired
The size of all subregion free spaces in meter disk, if the size of all subregion free spaces is more than rising in disk
The size of level bag, then be each subregion according to the size of the free space of each subregion in the size of AKU and disk
The AKU download that distribution is corresponding, and assignment record is sent to server, make server according to described point
Join record and AKU correspondence is divided into multiple AKU fragment, finally received server by terminal unit and issue
Multiple AKU fragments, according to described assignment record respectively by subregion corresponding for the write of multiple AKU fragments
In, and utilize multiple AKU fragment to carry out system upgrade, thus avoid and work as magnetic present in prior art
In dish when the free space deficiency of the fixed partition storing AKU, may result in terminal unit cannot
Smoothly complete system upgrade or the problem bringing bad experience to user, it is possible to by subregion each in disk
In free space fully utilize, substantially increase the stability of system upgrade and the experience sense of user.
Accompanying drawing explanation
Fig. 1 is implementing of the method for upgrading system of the Insufficient disk space that first embodiment of the invention provides
Flow chart;
Fig. 2 is implementing of the method for upgrading system of the Insufficient disk space that second embodiment of the invention provides
Flow chart;
Fig. 3 is the structural representation of the terminal unit that third embodiment of the invention provides;
Fig. 4 is the structural representation of the server that fourth embodiment of the invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
Fig. 1 is implementing of the method for upgrading system of the Insufficient disk space that first embodiment of the invention provides
Flow chart, the executive agent of the method is the terminal unit described in the embodiment of the present invention.It is shown in Figure 1,
The method for upgrading system of a kind of Insufficient disk space that the present embodiment provides, including:
In S101, the size of the free space of each subregion in computing terminal equipment disk.
In the present embodiment, in disk, some subregion is the need for certain headspace, these headspaces
The guarantee that the system that is probably is properly functioning, thus when subregion needs certain headspace this subregion can
The free space in addition to headspace it is in this subregion with space, and when subregion need not headspace
Time, the free space of this subregion is the free space of this subregion.
In S102, it is judged that whether the subregion of free space maximum is large enough to hold described AKU, when available sky
Between maximum subregion when being large enough to hold described AKU, enter step S103;When the subregion that free space is maximum
When can not accommodate described AKU, enter step S104.
In the present embodiment, before whether the subregion judging free space maximum is large enough to hold described AKU
Need the size of AKU needed for server lookup system upgrade, then big according to maximum available space
Little and AKU size judges whether the subregion of free space maximum is large enough to hold described AKU, works as maximum
When the size of free space is more than or equal to the size of described AKU, the subregion foot that free space is maximum is described
Enough accommodate described AKU, now enter step S103;When the size of maximum available space is less than described upgrading
During the size wrapped, illustrate that the subregion of free space maximum can not accommodate described AKU, now enter step
S104。
In S103, described AKU is downloaded to the subregion that described free space is maximum, and utilizes described liter
Level bag carries out system upgrade.
In the present embodiment, when in terminal unit, the size of maximum available space is more than the size of AKU,
Terminal unit can send corresponding download instruction to server, includes and have maximum can use in this download instruction
The mark of the subregion in space, such server can will have maximum according to the download instruction that terminal unit sends
The mark of the subregion of free space is added in AKU, in order to terminal unit is receiving what server returned
During AKU, AKU write is had in the subregion of maximum available space, is utilized by terminal unit the most again
This AKU carries out system upgrade, and terminates flow process after upgrading completes.
In S104, the size of accumulative all subregion free spaces, and judge the big of all subregion free spaces
The little size whether being less than described AKU, when the size of all subregion free spaces is more than or equal to described liter
During the size that level is wrapped, enter step S105;When the size of all subregion free spaces is less than described AKU
During size, enter step S107.
In S105, it is followed successively by each subregion distribution AKU download, and assignment record is sent to described clothes
Business device, after making described server, according to described assignment record, described AKU are divided into multiple AKU fragment
It is back to described terminal unit successively;
In the present embodiment, it is followed successively by each subregion distribution AKU download described in specifically include: by each subregion
It is ranked up from big to small according to free space, downloads from the subregion distribution AKU that free space is maximum successively
Amount.
In S106, receive multiple AKU fragments that described server issues, and according to described assignment record
Each AKU fragment is write in corresponding subregion, and utilizes multiple described AKU fragment to carry out system upgrade.
In the present embodiment, close according to partition identification each in described assignment record is corresponding with AKU download
System, terminal unit, when receiving multiple AKU fragment that server issues, can be incited somebody to action according to this assignment record
Each AKU fragment is respectively written in the subregion of each correspondence.Further, described multiple AKU fragment is utilized
Carry out system upgrade to specifically include:
Obtain the assignment record of the AKU download that terminal unit is the distribution of each subregion;According to described distribution note
AKU fragment in each subregion is loaded onto in internal memory by record successively, and by cat order by each AKU sheet
Section is combined into complete AKU;AKU in internal memory is carried out a read lock;AKU in verification internal memory
Integrity;If verification is not passed through, then delete the AKU in internal memory, and return according to described record successively general
The step that AKU fragment in each subregion is loaded onto in internal memory;If verification is passed through, then this AKU is utilized to enter
Row system upgrade.
In the present embodiment, after each AKU fragment combination is become in internal memory complete AKU, right
The internal memory of loading upgrading bag carries out a read lock such that it is able to ensure that this partial memory can only be read, it is impossible to
It is written over and reclaims, it is possible to ensureing that AKU is not destroyed in escalation process.
In S107, abandon this system upgrade.
In the present embodiment, when the accumulated size of free space of subregions all in disk is still less than AKU
Size time, then illustrate that now disk can not accommodate this AKU, now terminal unit can abandon this automatically
Secondary upgrading, and point out user disk insufficient space to cause failed information of upgrading, make user according to prompting
Information takes corresponding remedial measure.
Above it can be seen that the method for upgrading system of a kind of Insufficient disk space of the present embodiment offer is due to head
The size of the free space of each subregion in first computing terminal equipment disk, and judge the subregion that free space is maximum
Whether it is large enough to hold described AKU;When the subregion that free space is maximum can not accommodate described AKU, tired
The size of all subregion free spaces in meter disk, if the size of all subregion free spaces is more than rising in disk
The size of level bag, then be each subregion according to the size of the free space of each subregion in the size of AKU and disk
The AKU download that distribution is corresponding, and assignment record is sent to server, make server according to described point
Join record and AKU correspondence is divided into multiple AKU fragment, finally received server by terminal unit and issue
Multiple AKU fragments, according to described assignment record respectively by subregion corresponding for the write of multiple AKU fragments
In, and utilize multiple AKU fragment to carry out system upgrade, thus avoid and work as magnetic present in prior art
In dish when the free space deficiency of the fixed partition storing AKU, may result in terminal unit cannot
Smoothly complete system upgrade or the problem bringing bad experience to user, it is possible to by subregion each in disk
In free space fully utilize, substantially increase the stability of system upgrade and the experience sense of user.
Fig. 2 is implementing of the method for upgrading system of the Insufficient disk space that second embodiment of the invention provides
Flow chart, the executive agent of the method is the server described in the present invention implements.Shown in Figure 2, this
The method for upgrading system of a kind of Insufficient disk space that embodiment provides, including:
In S201, the request of the size of the required AKU of inquiry system upgrading that receiving terminal apparatus sends,
And according to described request, the size of described AKU is back to described terminal unit, make described terminal unit root
According to the size of described AKU, the AKU download of subregion each in disk is allocated;
In S202, receive the distribution note of the AKU download of each subregion distribution that described terminal unit sends
Record, and according to described assignment record, AKU correspondence is divided into multiple AKU fragment;
In S203, successively by multiple AKU fragments send to terminal unit, make described terminal unit according to
Each AKU fragment is write in corresponding subregion by described assignment record respectively, and utilizes the plurality of AKU
Fragment carries out system upgrade.
In the present embodiment, described according to described assignment record, AKU correspondence is divided into multiple AKU sheet
Section specifically includes: according to the corresponding relation of partition identification each in described assignment record and AKU download by institute
State AKU correspondence and be divided into multiple AKU fragment, and be that each AKU fragment adds corresponding subregion mark
Know.
The method for upgrading system of a kind of Insufficient disk space that the present embodiment provides, equally avoids existing skill
Present in art when in disk for the free space deficiency of the fixed partition storing AKU, may lead
Cause terminal unit and cannot smoothly complete system upgrade or the problem bringing bad experience to user, it is possible to will
In disk, the free space in each subregion fully utilizes, substantially increase system upgrade stability and
The experience sense of user.
Fig. 3 is the structural representation of the terminal unit that third embodiment of the invention provides, and this terminal unit is used for
Run the method that embodiment illustrated in fig. 1 of the present invention provides.For convenience of description, illustrate only and this enforcement
The part that example is relevant.
A kind of terminal unit shown in Figure 3, that the present embodiment provides, including:
First computing module 31, the size of the free space of each subregion in computing terminal equipment disk;
Second computing module 35, for adding up the size of all subregion free spaces;
Second judge module 36, for judging that whether the size of all subregion free spaces is less than described AKU
Size;
Second download module 37, for the size when all subregion free spaces more than or equal to described AKU
Size time, be followed successively by each subregion distribution AKU download, and assignment record sent to described server,
Described server is made to return successively after described AKU being divided into multiple AKU fragment according to described assignment record
It is back to described terminal unit;According to the labelling in each AKU fragment respectively by each AKU fragment write correspondence
Subregion in;When the size of all subregion free spaces is less than the size of described AKU, abandoning this is
System upgrading;
Second upgraded module 38, is used for utilizing multiple described AKU fragment to carry out system upgrade.
Optionally, described terminal unit also includes:
First judge module 32, for judging whether the subregion of free space maximum is large enough to hold described AKU,
When the subregion that free space is maximum can not accommodate described AKU, control described second computing module and add up institute
There is the size of subregion free space;
First download module 33, is used for when the subregion that free space is maximum is large enough to hold described AKU, will
Described AKU downloads to the subregion that described free space is maximum;
First upgraded module 34, is used for utilizing described AKU to carry out system upgrade;
Optionally, described second download module 37 specifically for:
Each subregion is ranked up from big to small according to free space, divides from the subregion that free space is maximum successively
Join AKU download.
Optionally, described second upgraded module 38 specifically for:
Obtain the assignment record of the AKU download that terminal unit is the distribution of each subregion;
Successively the AKU fragment in each subregion is loaded onto in internal memory according to described assignment record, and passes through cat
Each AKU fragment combination is become complete AKU by order;
AKU in internal memory is carried out a read lock;
The integrity of AKU in verification internal memory;
If verification is not passed through, then delete the AKU in internal memory, and again by the AKU fragment in each subregion
It is loaded onto in internal memory;
If verification is passed through, then this AKU is utilized to carry out system upgrade.
Optionally, free space in addition to headspace during described free space is subregion.
It should be noted that the embodiment of the present invention provide above-mentioned terminal unit in modules, due to this
Embodiment of the method shown in invention Fig. 1 based on same design, its technique effect brought and Fig. 1 institute of the present invention
The embodiment of the method shown is identical, and particular content can be found in the narration in the embodiment of the method shown in Fig. 1 of the present invention,
Here is omitted.
Thus, it will be seen that the terminal unit that provides of the present embodiment is also due to first computing terminal equipment magnetic
The size of the free space of each subregion in dish, and it is described to judge whether the subregion of free space maximum is large enough to hold
AKU;When the subregion that free space is maximum can not accommodate described AKU, all subregions in accumulative disk
The size of free space, if the size of all subregion free spaces is more than the size of AKU, then root in disk
It is that each subregion distributes corresponding AKU according to the size of the free space of the size of AKU subregion each with in disk
Download, and assignment record is sent to server, make server according to described assignment record by AKU pair
Multiple AKU fragment should be divided into, finally received, by terminal unit, multiple AKU fragments that server issues,
Respectively multiple AKU fragments are write in corresponding subregion according to described assignment record, and utilize multiple upgrading
Bag fragment carries out system upgrade, thus avoid present in prior art when in disk for storing AKU
The free space deficiency of fixed partition time, may result in terminal unit cannot smoothly complete system upgrade or
The problem that person brings bad experience to user, it is possible to by the most sharp for the free space in subregion each in disk
Use, substantially increase the stability of system upgrade and the experience sense of user.
Fig. 4 is the structural representation of the server that fourth embodiment of the invention provides, and this server is used for running
The method that embodiment illustrated in fig. 2 of the present invention provides.For convenience of description, illustrate only and the present embodiment phase
The part closed.
A kind of server shown in Figure 4, that the present embodiment provides, including:
Receiver module 41, the size of AKU needed for the inquiry system upgrading that receiving terminal apparatus sends
Request, and according to described request, the size of described AKU is back to described terminal unit, make described terminal
The AKU download of subregion each in disk is allocated by equipment according to the size of described AKU;
AKU segmentation module 42, under the AKU receiving each subregion distribution that described terminal unit sends
The assignment record of carrying capacity, and according to described assignment record, AKU correspondence is divided into multiple AKU fragment;
Sending module 43, for sending multiple AKU fragments to terminal unit successively, makes described terminal set
In the standby subregion that respectively each AKU fragment is write correspondence according to described assignment record, and utilize the plurality of
AKU fragment carries out system upgrade.
Optionally, described AKU segmentation module 42 specifically for:
Corresponding relation according to partition identification each in described assignment record and AKU download is by described AKU
Correspondence is divided into multiple AKU fragment, and is that each AKU fragment adds corresponding partition identification.
A kind of server that the present embodiment provides equally avoid present in prior art when in disk for
During the free space deficiency of fixed partition of storage AKU, may result in terminal unit cannot smoothly complete
System upgrade or the problem bringing bad experience to user, it is possible to by can use in subregion each in disk
Space fully utilizes, and substantially increases the stability of system upgrade and the experience sense of user.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention
Protection domain within.
Claims (12)
1. the method for upgrading system of an Insufficient disk space, it is characterised in that including:
The size of the free space of each subregion in computing terminal equipment disk;
The size of accumulative all subregion free spaces, and judge whether the size of all subregion free spaces is less than
The size of described AKU;
When the size of all subregion free spaces is more than or equal to the size of described AKU, it is followed successively by each point
District's distribution AKU download, and assignment record is sent to server, make described server according to described point
Join after described AKU is divided into multiple AKU fragment by record and be back to described terminal unit successively;
Receive multiple AKU fragments that described server issues, according to described assignment record by each AKU sheet
In the subregion that section write is corresponding, and multiple described AKU fragment is utilized to carry out system upgrade.
2. the method for upgrading system of Insufficient disk space as claimed in claim 1, it is characterised in that described
The size of accumulative all subregion free spaces, and judge that whether the size of all subregion free spaces is less than described
Also include before the size of AKU:
Judge whether the subregion of free space maximum is large enough to hold AKU;
When the subregion that free space is maximum can not accommodate described AKU, entering accumulative all subregions can be with sky
Between size, and judge that the size of all subregion free spaces is whether less than the step of size of described AKU;
When the subregion that free space is maximum is large enough to hold described AKU, described AKU is downloaded to described
The subregion that free space is maximum, and utilize described AKU to carry out system upgrade.
3. the method for upgrading system of Insufficient disk space as claimed in claim 1, it is characterised in that described
It is followed successively by each subregion distribution AKU download to specifically include:
Each subregion is ranked up from big to small according to free space, divides from the subregion that free space is maximum successively
Join AKU download.
4. the method for upgrading system of Insufficient disk space as claimed in claim 2, it is characterised in that described
Utilize multiple AKU fragment to carry out system upgrade to specifically include:
Obtain the assignment record of the AKU download that terminal unit is the distribution of each subregion;
Successively the AKU fragment in each subregion is loaded onto in internal memory according to described assignment record, and passes through cat
Each AKU fragment combination is become complete AKU by order;
AKU in internal memory is carried out a read lock;
The integrity of AKU in verification internal memory;
If verification is not passed through, then delete the AKU in internal memory, and return according to described record successively by each point
The step that AKU fragment in district is loaded onto in internal memory;
If verification is passed through, then this AKU is utilized to carry out system upgrade.
5. the method for upgrading system of an Insufficient disk space, it is characterised in that including:
The request of the size of the required AKU of inquiry system upgrading that receiving terminal apparatus sends, and according to described
The size of described AKU is back to described terminal unit by request, makes described terminal unit according to described upgrading
The AKU download of subregion each in disk is allocated by the size of bag;
Receive the assignment record of AKU download of each subregion distribution that described terminal unit sends, and according to
AKU correspondence is divided into multiple AKU fragment by described assignment record;
Successively multiple AKU fragments are sent to terminal unit, make described terminal unit according to described distribution note
Record is respectively by subregion corresponding for the write of each AKU fragment, and utilizes the plurality of AKU fragment to be
System upgrading.
6. the method for upgrading system of Insufficient disk space as claimed in claim 5, it is characterised in that described
It is divided into multiple AKU fragment to specifically include AKU correspondence according to described assignment record:
Corresponding relation according to partition identification each in described assignment record and AKU download is by described AKU
Correspondence is divided into multiple AKU fragment, and is that each AKU fragment adds corresponding partition identification.
7. a terminal unit, it is characterised in that including:
First computing module, the size of the free space of each subregion in computing terminal equipment disk;
Second computing module, for adding up the size of all subregion free spaces;
Second judge module, for judging that whether the size of all subregion free spaces is less than described AKU
Size;
Second download module, for the size when all subregion free spaces more than or equal to described AKU
During size, it is followed successively by each subregion distribution AKU download, and assignment record is sent to server, make institute
State after described AKU is divided into multiple AKU fragment according to described assignment record by server and be back to successively
Described terminal unit;Receive multiple AKU fragments that described server issues, will according to described assignment record
In the subregion that the write of each AKU fragment is corresponding;
Second upgraded module, is used for utilizing multiple described AKU fragment to carry out system upgrade.
8. terminal unit as claimed in claim 7, it is characterised in that also include:
First judge module, for judging whether the subregion of free space maximum is large enough to hold described AKU,
When the subregion that free space is maximum can not accommodate described AKU, control described second computing module and add up institute
There is the size of subregion free space;
First download module, for when the maximum subregion of free space is large enough to hold described AKU, by institute
State AKU and download to the subregion that described free space is maximum;
First upgraded module, is used for utilizing described AKU to carry out system upgrade.
9. terminal unit as claimed in claim 7, it is characterised in that described second download module is specifically used
In:
Each subregion is ranked up from big to small according to free space, divides from the subregion that free space is maximum successively
Join AKU download.
10. terminal unit as claimed in claim 7, it is characterised in that described second upgraded module is specifically used
In:
Obtain the assignment record of the AKU download that terminal unit is the distribution of each subregion;
Successively the AKU fragment in each subregion is loaded onto in internal memory according to described assignment record, and passes through cat
Each AKU fragment combination is become complete AKU by order;
AKU in internal memory is carried out a read lock;
The integrity of AKU in verification internal memory;
If verification is not passed through, then delete the AKU in internal memory, and again by the AKU fragment in each subregion
It is loaded onto in internal memory;
If verification is passed through, then this AKU is utilized to carry out system upgrade.
11. 1 kinds of servers, it is characterised in that including:
Receiver module, needed for the inquiry system upgrading that receiving terminal apparatus sends, the size of AKU please
Ask, and according to described request, the size of described AKU is back to described terminal unit, make described terminal set
For according to the size of described AKU, the AKU download of subregion each in disk being allocated;
AKU segmentation module, downloads for receiving the AKU of each subregion distribution that described terminal unit sends
The assignment record of amount, and according to described assignment record, AKU correspondence is divided into multiple AKU fragment;
Sending module, for sending multiple AKU fragments to terminal unit successively, makes described terminal unit
Respectively each AKU fragment is write in corresponding subregion according to described assignment record, and utilize the plurality of liter
Level bag fragment carries out system upgrade.
12. servers as claimed in claim 11, it is characterised in that described AKU segmentation module is concrete
For:
Corresponding relation according to partition identification each in described assignment record and AKU download is by described AKU
Correspondence is divided into multiple AKU fragment, and is that each AKU fragment adds corresponding partition identification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610255784.1A CN105843656B (en) | 2016-04-22 | 2016-04-22 | System upgrading method for insufficient disk space, terminal equipment and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610255784.1A CN105843656B (en) | 2016-04-22 | 2016-04-22 | System upgrading method for insufficient disk space, terminal equipment and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105843656A true CN105843656A (en) | 2016-08-10 |
CN105843656B CN105843656B (en) | 2020-12-01 |
Family
ID=56590297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610255784.1A Active CN105843656B (en) | 2016-04-22 | 2016-04-22 | System upgrading method for insufficient disk space, terminal equipment and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105843656B (en) |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909428A (en) * | 2017-03-31 | 2017-06-30 | 广东欧珀移动通信有限公司 | Software updating control method, device and electronic equipment |
CN106970816A (en) * | 2017-03-31 | 2017-07-21 | 广东欧珀移动通信有限公司 | A kind of software upgrading processing method, device and audio-frequence player device |
CN107092506A (en) * | 2017-04-12 | 2017-08-25 | 惠州Tcl移动通信有限公司 | A kind of application program for mobile terminal installation suggestion method and system |
CN107193651A (en) * | 2017-04-18 | 2017-09-22 | 广州视源电子科技股份有限公司 | Dual system internal memory sharing method and device |
CN107220008A (en) * | 2017-06-27 | 2017-09-29 | 北京小米移动软件有限公司 | Memory space method for obligating and device |
CN107273156A (en) * | 2017-06-06 | 2017-10-20 | 珠海全志科技股份有限公司 | A kind of OTA upgrade methods and device |
CN107992312A (en) * | 2016-10-25 | 2018-05-04 | 中兴通讯股份有限公司 | A kind of upgrade package delivery method and device |
CN108446130A (en) * | 2018-03-12 | 2018-08-24 | 北京百瑞互联技术有限公司 | OTA upgrade methods |
CN108572837A (en) * | 2018-06-11 | 2018-09-25 | 广州视源电子科技股份有限公司 | Method for upgrading software, device, readable storage medium storing program for executing and computer equipment |
CN109450962A (en) * | 2018-08-30 | 2019-03-08 | 百度在线网络技术(北京)有限公司 | Data transmission method, packaged service device, storage server and readable storage medium storing program for executing |
CN109947450A (en) * | 2019-03-19 | 2019-06-28 | 深圳创维-Rgb电子有限公司 | System file upgrade method, device, mobile terminal and readable storage medium storing program for executing |
CN110083380A (en) * | 2018-01-26 | 2019-08-02 | 和硕联合科技股份有限公司 | Firmware update and the electronic device for using the method |
CN110134416A (en) * | 2019-04-12 | 2019-08-16 | 平安普惠企业管理有限公司 | Oftware updating method, device and computer readable storage medium |
CN110221856A (en) * | 2019-06-25 | 2019-09-10 | 努比亚技术有限公司 | A kind of wearable device upgrade method, wearable device and storage medium |
CN110502256A (en) * | 2018-05-18 | 2019-11-26 | 佛山市顺德区美的电热电器制造有限公司 | A kind of method for upgrading software, terminal and storage medium |
CN111124451A (en) * | 2019-12-24 | 2020-05-08 | 山东有人信息技术有限公司 | Distributed backup upgrading method |
CN111459524A (en) * | 2020-04-02 | 2020-07-28 | 安谋科技(中国)有限公司 | Software upgrading method, device and system |
CN112817617A (en) * | 2019-11-18 | 2021-05-18 | 华为技术有限公司 | Software upgrading method, device and system |
CN113010195A (en) * | 2019-12-19 | 2021-06-22 | 深圳Tcl数字技术有限公司 | System upgrading method, storage medium and terminal equipment |
CN113094077A (en) * | 2019-12-23 | 2021-07-09 | 深圳Tcl数字技术有限公司 | System differential upgrading method and device, intelligent terminal and storage medium |
WO2023169035A1 (en) * | 2022-03-11 | 2023-09-14 | 荣耀终端有限公司 | Operating system upgrade method, electronic device, and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7249152B2 (en) * | 2002-05-24 | 2007-07-24 | Oracle International Corporation | Dynamic disk space management by multiple database server instances in a cluster configuration |
CN101557407A (en) * | 2008-04-11 | 2009-10-14 | 盛大计算机(上海)有限公司 | Transmission and storage method of program-ordering data of high definition media P2P |
CN102163155A (en) * | 2011-03-09 | 2011-08-24 | 深圳创维数字技术股份有限公司 | Upgrade controlling device and method for upgrading memory device |
CN102622184A (en) * | 2011-01-27 | 2012-08-01 | 北京东方广视科技股份有限公司 | Data storage system and method |
CN103237300A (en) * | 2013-04-28 | 2013-08-07 | 北京小米科技有限责任公司 | Method, device and system for downloading file |
EP2631821A1 (en) * | 2011-03-21 | 2013-08-28 | Huawei Technologies Co., Ltd. | File storage method and device thereof |
CN104077234A (en) * | 2014-07-10 | 2014-10-01 | 三星电子(中国)研发中心 | Method and device for subarea dynamic adjustment of embedded system |
-
2016
- 2016-04-22 CN CN201610255784.1A patent/CN105843656B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7249152B2 (en) * | 2002-05-24 | 2007-07-24 | Oracle International Corporation | Dynamic disk space management by multiple database server instances in a cluster configuration |
CN101557407A (en) * | 2008-04-11 | 2009-10-14 | 盛大计算机(上海)有限公司 | Transmission and storage method of program-ordering data of high definition media P2P |
CN102622184A (en) * | 2011-01-27 | 2012-08-01 | 北京东方广视科技股份有限公司 | Data storage system and method |
CN102163155A (en) * | 2011-03-09 | 2011-08-24 | 深圳创维数字技术股份有限公司 | Upgrade controlling device and method for upgrading memory device |
EP2631821A1 (en) * | 2011-03-21 | 2013-08-28 | Huawei Technologies Co., Ltd. | File storage method and device thereof |
CN103237300A (en) * | 2013-04-28 | 2013-08-07 | 北京小米科技有限责任公司 | Method, device and system for downloading file |
CN104077234A (en) * | 2014-07-10 | 2014-10-01 | 三星电子(中国)研发中心 | Method and device for subarea dynamic adjustment of embedded system |
Non-Patent Citations (2)
Title |
---|
吴宏: "海啸文件分割器将超大文件切成碎片", 《HTTPS://ARTICLE.PCHOME.NET/CONTENT-659424.HTML》 * |
张小娜,郭飞燕: "VB实现大型文件的分割与还原", 《电脑学习》 * |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107992312A (en) * | 2016-10-25 | 2018-05-04 | 中兴通讯股份有限公司 | A kind of upgrade package delivery method and device |
CN106970816A (en) * | 2017-03-31 | 2017-07-21 | 广东欧珀移动通信有限公司 | A kind of software upgrading processing method, device and audio-frequence player device |
CN106970816B (en) * | 2017-03-31 | 2021-01-26 | Oppo广东移动通信有限公司 | Software upgrading processing method and device and audio playing equipment |
CN106909428A (en) * | 2017-03-31 | 2017-06-30 | 广东欧珀移动通信有限公司 | Software updating control method, device and electronic equipment |
CN107092506A (en) * | 2017-04-12 | 2017-08-25 | 惠州Tcl移动通信有限公司 | A kind of application program for mobile terminal installation suggestion method and system |
WO2018192184A1 (en) * | 2017-04-18 | 2018-10-25 | 广州视源电子科技股份有限公司 | Method and device enabling two operating systems to share memory |
CN107193651A (en) * | 2017-04-18 | 2017-09-22 | 广州视源电子科技股份有限公司 | Dual system internal memory sharing method and device |
CN107193651B (en) * | 2017-04-18 | 2019-11-12 | 广州视源电子科技股份有限公司 | Dual system internal memory sharing method and device |
CN107273156A (en) * | 2017-06-06 | 2017-10-20 | 珠海全志科技股份有限公司 | A kind of OTA upgrade methods and device |
CN107220008A (en) * | 2017-06-27 | 2017-09-29 | 北京小米移动软件有限公司 | Memory space method for obligating and device |
CN107220008B (en) * | 2017-06-27 | 2020-08-07 | 北京小米移动软件有限公司 | Storage space reservation method and device |
CN110083380A (en) * | 2018-01-26 | 2019-08-02 | 和硕联合科技股份有限公司 | Firmware update and the electronic device for using the method |
CN108446130A (en) * | 2018-03-12 | 2018-08-24 | 北京百瑞互联技术有限公司 | OTA upgrade methods |
CN110502256A (en) * | 2018-05-18 | 2019-11-26 | 佛山市顺德区美的电热电器制造有限公司 | A kind of method for upgrading software, terminal and storage medium |
CN108572837A (en) * | 2018-06-11 | 2018-09-25 | 广州视源电子科技股份有限公司 | Method for upgrading software, device, readable storage medium storing program for executing and computer equipment |
CN109450962A (en) * | 2018-08-30 | 2019-03-08 | 百度在线网络技术(北京)有限公司 | Data transmission method, packaged service device, storage server and readable storage medium storing program for executing |
CN109450962B (en) * | 2018-08-30 | 2021-08-10 | 百度在线网络技术(北京)有限公司 | Data transmission method, packaging server, storage server and readable storage medium |
CN109947450A (en) * | 2019-03-19 | 2019-06-28 | 深圳创维-Rgb电子有限公司 | System file upgrade method, device, mobile terminal and readable storage medium storing program for executing |
CN109947450B (en) * | 2019-03-19 | 2023-03-17 | 深圳创维-Rgb电子有限公司 | System file upgrading method and device, mobile terminal and readable storage medium |
CN110134416A (en) * | 2019-04-12 | 2019-08-16 | 平安普惠企业管理有限公司 | Oftware updating method, device and computer readable storage medium |
CN110221856A (en) * | 2019-06-25 | 2019-09-10 | 努比亚技术有限公司 | A kind of wearable device upgrade method, wearable device and storage medium |
CN110221856B (en) * | 2019-06-25 | 2024-03-19 | 努比亚技术有限公司 | Wearable device upgrading method, wearable device and storage medium |
CN112817617A (en) * | 2019-11-18 | 2021-05-18 | 华为技术有限公司 | Software upgrading method, device and system |
WO2021098212A1 (en) * | 2019-11-18 | 2021-05-27 | 华为技术有限公司 | Software upgrade method, apparatus and system |
US11972247B2 (en) | 2019-11-18 | 2024-04-30 | Huawei Technologies Co., Ltd. | Software upgrading method, apparatus, and system |
CN113010195A (en) * | 2019-12-19 | 2021-06-22 | 深圳Tcl数字技术有限公司 | System upgrading method, storage medium and terminal equipment |
CN113010195B (en) * | 2019-12-19 | 2023-03-10 | 深圳Tcl数字技术有限公司 | System upgrading method, storage medium and terminal equipment |
CN113094077A (en) * | 2019-12-23 | 2021-07-09 | 深圳Tcl数字技术有限公司 | System differential upgrading method and device, intelligent terminal and storage medium |
CN111124451A (en) * | 2019-12-24 | 2020-05-08 | 山东有人信息技术有限公司 | Distributed backup upgrading method |
CN111459524A (en) * | 2020-04-02 | 2020-07-28 | 安谋科技(中国)有限公司 | Software upgrading method, device and system |
WO2023169035A1 (en) * | 2022-03-11 | 2023-09-14 | 荣耀终端有限公司 | Operating system upgrade method, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105843656B (en) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105843656A (en) | System upgrading method for insufficient disk space, terminal device and server | |
US10528742B2 (en) | Method and apparatus for repairing kernel vulnerability | |
US7747997B1 (en) | Firmware update in electronic devices employing SIM card for saving metadata information | |
CN101571809B (en) | Implementation method of plug-in registration and device thereof | |
CN102760080B (en) | A kind of method and apparatus of memory management | |
CN106528432A (en) | Construction method and apparatus for test scene data, and buried point test method | |
CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
CN107506221A (en) | Application program updating method, apparatus and equipment | |
CN104899049B (en) | File deletion method and device | |
CN103902696A (en) | Method and device for loading resource files | |
CN109254825A (en) | A kind of method and device for receiving pipe virtual hard disk | |
CN105335187A (en) | Application processing method and apparatus | |
CN105095263B (en) | method and device for generating card number | |
CN105516079A (en) | Method for efficient download of data package, client device, and server | |
CN110337036A (en) | Upgrade method, device and the storage medium of set-top box | |
CN104375866B (en) | The driving update method and device of a kind of veneer | |
CN102082833A (en) | Automatic upgrading method and device of communication equipment | |
CN101390053A (en) | Adaptive compiled code | |
CN105740017A (en) | Cloud television system upgrading method and device | |
CN105867962A (en) | System upgrading method and device | |
CN106815051A (en) | A kind of firmware upgrade method of embedded device, device and currency examination device | |
CN111768238A (en) | Channel tracking method, device, equipment and storage medium | |
CN106686073A (en) | Information processing method and system | |
CN106990988A (en) | The method and device that a kind of program updates | |
CN106203179A (en) | A kind of completeness check system and method to file |
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 | ||
CB02 | Change of applicant information |
Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province Applicant after: TCL Technology Group Co.,Ltd. Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District Applicant before: TCL RESEARCH AMERICA Inc. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |