CN108089890A - A kind of application operation method and system based on disk - Google Patents

A kind of application operation method and system based on disk Download PDF

Info

Publication number
CN108089890A
CN108089890A CN201611048255.0A CN201611048255A CN108089890A CN 108089890 A CN108089890 A CN 108089890A CN 201611048255 A CN201611048255 A CN 201611048255A CN 108089890 A CN108089890 A CN 108089890A
Authority
CN
China
Prior art keywords
data
mirror image
bag
manager
image bag
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
Application number
CN201611048255.0A
Other languages
Chinese (zh)
Other versions
CN108089890B (en
Inventor
杨正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201611048255.0A priority Critical patent/CN108089890B/en
Priority to PCT/CN2017/078722 priority patent/WO2018090528A1/en
Publication of CN108089890A publication Critical patent/CN108089890A/en
Application granted granted Critical
Publication of CN108089890B publication Critical patent/CN108089890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

An embodiment of the present invention provides a kind of application operation method and system based on disk, including:In advance in non-installation targets in application, obtaining the startup operation bag of intended application and starting mirror image bag;When starting the intended application, establish local cache manager and establish the local cache manager with start mirror image bag the first access and, establish the alternate path of local cache manager and server;The first virtual disk is being locallyd create, is establishing the third path of local cache manager and the first virtual disk;Local cache manager is received by third path and asked;When request is read request, local cache manager is by the first access, from the first data for starting mirror image bag acquisition read request;And/or by alternate path, the first data of acquisition read request from the original image bag of server.The embodiment of the present invention can save the time of intended application initial start-up, and can reduce the memory space that the intended application occupies in the terminal.

Description

A kind of application operation method and system based on disk
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of application operation method based on disk and are System.
Background technology
With the continuous development of computer technology, the function of various application programs constantly improves such as picture editor by abundant The various functions that the toolbar of software (Photoshop, PS) is showed, the increase at the outpost of the tax office of various Games Softwares etc.;And All pictures in application program are rendered to the effect of 3D, such as 3D game by certain applications program in order to enhance visual effect, Virtual reality etc. application the occupancy of various computing resources is required it is higher and higher, such as artificial intelligence, mathematical computations etc. to CPU at The requirement of reason ability, requirement of the graphic operation to the processing capacity of graphics processor, picture, person model, cartographic model, big rule Requirement of the mould database to memory space, this all so that the function of application program is increasingly complicated, and data packet is increasing.
Due to user for the first time use application program when, it is necessary to from server download the complete software installation of application program Bag and data packet, and need the software installation bag for installing application in terminal that could start application program, this causes to download number Long time is often expended according to the process for wrapping and installing software installation bag.In order to solve this problem, part company pin at present The characteristics of to itself application program by executable program and resource data separate management, and by resource data such as:Picture, mould Type, built in video etc. are split generally according to the most quotas for accounting for program data bag size, and modularized processing must The executable program and resource module data wanted are packaged, to make miniature client.
And during being split to application program, it generally requires (1) analysis program and tentatively runs what needs loaded The resource file that executable file and executable file rely on.(2) dependence between multiple executable files is analyzed, And the resource that each executable file relies on simultaneously, such as:Some functional interface can trigger which resource or program tune With.(3) since the large program having can rely on many third-party program libraries or system function component, such as 3D figures draw It holds up, data transmission storehouse, image/video compression/decompression storehouse, native operating sys-tern hardware -- CPU, video card, disk, network management connects Mouthful etc., the general internal structure of these components is sufficiently complex, and understands the substantial amounts of background knowledge of correlative detail needs;To third party The resolving in storehouse needs to carry out substantial amounts of study and work, understands mode and feature that they operationally access resource.But It is usually incomplete due to understanding related mechanism, a large amount of compatibility and performance issue can be caused, dealt with time-consuming and laborious;It can See, it is above-mentioned complex to application program progress fractured operation, substantial amounts of additional human cost and time cost can be introduced.
The content of the invention
The technical problem to be solved is that provide a kind of application operation method based on disk, Yi Zhongji for the embodiment of the present invention Start mirror image bag production method using original image bag production method and a kind of application based on disk in disk, it is existing to solve Have in technology and application program split to make miniature client, caused by efficiency it is low and of high cost the problem of.
Correspondingly, the embodiment of the present invention additionally provides corresponding system for the above method, it is respectively:One kind is based on disk Application operation system, it is a kind of based on disk using original image bag manufacturing system and it is a kind of based on disk application start mirror As bag manufacturing system, to ensure the realization of the above method and application.
The invention discloses a kind of methods of the application operation based on disk, specifically include:It in advance should in non-installation targets Used time obtains the startup operation bag of the intended application and starts mirror image bag, wherein, the startup operation bag is described for starting Intended application, the mirror image bag that starts include the log-on data of the intended application;Started by described described in operation bag startup During intended application, establish local cache manager and establish the local cache manager and lead to starting the first of mirror image bag Road and, establish the alternate path of local cache manager and server;The first virtual disk is being locallyd create, is establishing described The third path of ground cache manager and first virtual disk;The local cache manager is connect by the third path Request is received, the request is that first virtual disk is received from the intended application;When the request is read request, institute Local cache manager is stated by first access, from the first data of the startup mirror image bag acquisition read request;With/ Or, the local cache manager, by the alternate path, the reading is obtained from the original image bag of the server please The first data asked;Wherein, the original image bag includes the log-on data of the intended application and operation data;By described Third path gives first data feedback to the intended application, so that the intended application is run.
Corresponding, the embodiment of the invention also discloses a kind of application operation systems based on disk, specifically include:Data packet Acquisition module, in advance in non-installation targets in application, obtain the intended application startup operation bag and start mirror image bag, Wherein, described to start operation bag for starting the intended application, the mirror image bag that starts includes the startup of the intended application Data;Local cache manager establishes module, when starting the intended application for being wrapped by the startup operation, establishes locally Cache manager, establish the local cache manager with start mirror image bag the first access and, establish local cache manager With the alternate path of server;First virtual disk establishes module, is localling create the first virtual disk, establishes the local and delays Deposit the third path of manager and first virtual disk;First request of data receiving module, for the local to be called to delay Manager is deposited, request of data is received by the third path, the request of data is first virtual disk from the mesh Mark application receives;Data acquisition module, for when the request of data is read request, calling the local cache management Device, by first access, from the first data of the startup mirror image bag acquisition read request;And/or call described By the alternate path, the first of the read request is obtained from the original image bag of the server for ground cache manager Data;Wherein, the original image bag includes the log-on data of the intended application and operation data;Data feedback module is used In giving first data feedback to the intended application by the third path, so that the intended application is run.
Original image bag production method is applied based on disk the invention discloses a kind of, is specifically included:Establish data packet It makes manager and creates empty original image bag and establish the data packet and make manager and the original image bag 8th access;The second virtual disk is being locallyd create, second virtual disk is being established and makes manager with the data packet 9th access;The data packet makes manager and receives data write request by the 9th access, wherein, the data are write please The second virtual disk is obtained from process described in Seeking Truth;The data packet makes manager and is write the data by the 8th access Corresponding 3rd data is asked to write in the original image bag, wherein, the 3rd data are the initial data of intended application Comprising data.
It is corresponding, original image bag manufacturing system is applied based on disk the invention also discloses a kind of, is specifically included:Number Module is established as manager according to packing, manager and the original image bag for creating sky and foundation are made for establishing data packet The data packet makes the 8th access of manager and the original image bag;Second virtual disk establishes module, at this Ground creates the second virtual disk, establishes the 9th access that second virtual disk makes manager with the data packet;Second For the data packet to be called to make manager, data write request is received by the 9th access for request of data receiving module, Wherein, the data write request is that second virtual disk is obtained from process;Original image bag data writing module, is used for The data packet is called to make manager, corresponding 3rd data of the data write request are write by the original by the 8th access In beginning mirror image bag, wherein, the 3rd data are the data that the initial data of intended application includes.
The invention discloses a kind of applications based on disk to start mirror image bag production method, specifically includes:Starting target In application, it establishes local manager and establishes the tenth access of local manager and original image bag;Establish empty startup mirror As bag and the local manager is established with starting the 11st access of mirror image bag;The 3rd virtual disk is being locallyd create, is being built Found the 12nd access of the local manager and the 3rd virtual disk;The local manager passes through the tenth two-way Road receives request of data, and the request of data is that the 3rd virtual disk is received from the intended application;When the request For read request when, the local manager obtains the read request by the tenth access from the original image bag and corresponds to The 4th data;And the 4th data are write in the startup mirror image bag by the 11st access;In the mesh When mark application is out of service, stop the 4th data write-in startup mirror image bag.
Corresponding, the invention also discloses a kind of applications based on disk to start mirror image bag manufacturing system, specifically includes:This Ground manager establishes module, for when starting intended application, establish local manager and establish local manager with it is original Tenth access of mirror image bag;Start mirror image bag and establish module, establish the empty startup mirror image bag and establish the local pipe Device is managed with starting the 11st access of mirror image bag;3rd virtual disk establishes module, for localling create the 3rd virtual disk, Establish the 12nd access of the local manager and the 3rd virtual disk;3rd request of data receiving module, for adjusting With the local manager, request of data is received by the 12nd access, the request of data is the 3rd virtual magnetic Disk is received from the intended application;Start mirror image bag data writing module, for when the request is read request, calling institute Local manager is stated, corresponding 4th data of the read request are obtained from the original image bag by the tenth access; And the 4th data are write in the startup mirror image bag by the 11st access;Stop transporting in the intended application During row, stop the 4th data write-in startup mirror image bag.
Compared with prior art, the embodiment of the present invention includes advantages below:
The embodiment of the present invention need to only establish data packet and make manager, the second virtual disk when making original image bag, Access with foundation between empty original image bag and three;Can when obtaining write request, by corresponding access, All data in the raw data packets of intended application are copied in original image bag;Equally, startup mirror image bag is being made When, it also need to only establish empty startup mirror image bag, local manager and the 3rd virtual disk;And it establishes and starts mirror image bag, original Access between mirror image bag, the 3rd virtual disk and local manager, may then pass through corresponding access, from original image bag The middle log-on data by intended application is copied to and starts in mirror image bag, thus when making original image bag and starting mirror image bag, Remove the parsing for relying on application program runtime environment from and modularization splits work, greatly reduce cost of labor And time cost.
Further, the embodiment of the present invention the original image bag that completes, start mirror image bag and start operation bag after, When user makes intended application for the first time, obtain the startup operation bag of intended application and start mirror image bag;It is run and wrapped by the startup When starting application program, establish local cache manager and establish local cache manager, start mirror image bag and original image Access between bag;Establish the first virtual disk and its access between local cache manager;In local cache management When device receives read request, can by corresponding access from start mirror image bag and/or, obtained in the original image bag of server The corresponding data of the read request are taken, and feed back to the intended application, so that the intended application is run;So as to fulfill only Obtain start operation bag and start mirror image bag in the case of, during being run in intended application, from start mirror image bag and/ Or the data of demand described in intended application are obtained in the original image bag of server, ensure the normal operation of intended application.In addition, Due to starting the log-on data amount of the intended application included in mirror image bag, much smaller than the original data volume of intended application, so as to big The big time for having saved user's initial start-up intended application, enhance the experience of user;In addition, in intended application long-play During, repertoire will not be used under normal circumstances, and then only understand download part program data, such user is local The space holds of device memory systems can substantially reduce.
Description of the drawings
Fig. 1 is that a kind of of the present invention packs the structure diagram for making system embodiment using original image based on disk;
Fig. 2A is that another the packing using original image based on disk of the present invention makees the step flow of system embodiment Figure;
Fig. 2 B are that a kind of of the present invention packs the structure diagram for making system embodiment using original image based on disk;
A kind of application startup mirror image based on disk that Fig. 3 is the present invention packs the structure diagram for making system embodiment;
Another application startup mirror image based on disk that Fig. 4 A are the present invention packs the step flow for making embodiment of the method Figure;
A kind of application startup mirror image based on disk that Fig. 4 B are the present invention packs the step structure diagram for making system embodiment;
Fig. 5 is a kind of structure diagram of application operation system embodiment based on disk of the present invention;
Fig. 6 A are the step flow charts of another application operation embodiment of the method based on disk of the present invention;
Fig. 6 B are a kind of structure diagrams of application operation system embodiment based on disk of the present invention;
Fig. 7 is the step flow chart of another application operation embodiment of the method based on disk of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
The embodiment of the present invention can be applied in the various operating systems of terminal, and the terminal includes PC ends and movement eventually End, operating system include the operating system such as Windows at PC ends, and Linux, Unix and virtual machine analogue system etc. are further included The operating system of mobile terminal such as Android, IOS etc..
Intended application in the embodiment of the present invention refers to software installation bag and the larger application program of data packet, as 3D is swum The application programs such as play, PS;Wherein, intended application can be the application program at PC ends or the application program of mobile terminal (Application, APP);Below by taking mobile terminal as an example, the method and system of the embodiment of the present invention is illustrated.
An embodiment of the present invention provides a kind of application operation system based on disk, for corresponding in acquisition intended application After starting operation bag and starting mirror image bag, when intended application is run, from the original mirror started in mirror image bag and/or server As in bag, the required data of intended application being obtained, so that intended application normal operation;It should therefore, it is necessary to pre-production target Startup mirror image bag and original image bag, to ensure the normal operation of intended application;So as to which the embodiment of the present invention additionally provides A kind of packing using original image based on disk makees method and system, for making the original image bag and one of intended application Application startup mirror image of the kind based on disk, which packing, makees method and system, for making the startup mirror image bag of intended application.Below will Above-mentioned three kinds of systems and corresponding method are described in detail.
Embodiment one
With reference to Fig. 1, show that a kind of of the present invention packs the knot for making system embodiment using original image based on disk Structure block diagram can specifically include:Data packet makes manager and establishes module 101, and the second virtual disk establishes module 102, and second Request of data receiving module 103 and original image bag data writing module 104, wherein,
Data packet makes manager and establishes module 101, for establishing the original mirror that data packet makes manager and establishment sky The 8th access of manager and the original image bag is made as wrapping and establishing the data packet.
Second virtual disk establishes module 102, for localling create the second virtual disk, establishes second virtual magnetic Disk makes the 9th access of manager with the data packet.
Second request of data receiving module 103 for the data packet to be called to make manager, passes through the 9th access Data write request is received, wherein, the data write request is that second virtual disk is obtained from process.
Original image bag data writing module 104, will by the 8th access for the data packet to be called to make manager In the data write request corresponding 3rd data write-in original image bag, wherein, the 3rd data are intended applications The data that include of initial data.
In the embodiment of the present invention, the second virtual disk is established module 102 and is disposed in the terminal, and data packet makes management Device is established module 101, the second request of data receiving module 103 and original image bag data writing module 104 and can be deployed in In mobile terminal, can also it dispose on the server, wherein, installation targets application and intended application in the mobile terminal Raw data packets, and intended application can in the mobile terminal normal operation, as mobile terminal be mounted with game A APP;In addition, a kind of application original image bag manufacturing system based on disk provided in an embodiment of the present invention, described mobile whole Have corresponding control panel in end, after control panel starts, can by the way that corresponding control module is controlled to start corresponding process, To control aforementioned four module.When receiving user in operation of the mobile terminal to the control panel, control module, which obtains, moves The configuration information of intended application in dynamic terminal, wherein, the configuration information includes:Intended application title, raw data packets size Wait content description informations;And start and pack the process of work using original image, after the process initiation, data packet makes manager and establishes Module 101 establishes data packet and makes manager;The configuration information of acquisition is sent to the data packet and made by control module Manager, data packet make manager according to the configuration information, create an empty original image bag, the appearance of the original image bag Amount is more than the capacity of the raw data packets of intended application, and the capacity of the raw data packets for the A that such as plays is 4GB, then play the original of A The capacity of mirror image bag can be 4.2GB;The empty original image bag of establishment includes:Empty mirror image data area, empty verification and Database data area and the configuration data area for having set form;Data packet makes manager and is again added to configuration information In the configuration data area;Then the 8th access between original image bag and data packet making manager is established.
Then, control module starts disk establishment process, and module 102 is established in the mobile terminal by the second virtual disk The second virtual disk of middle establishment, the second virtual disk establish module 102 and create the second virtual disk and data packet making management again The 9th access between device, and pass through systematic difference routine interface (Application Programming Interface, API) virtual disk of establishment is identified in notice operating system, specifically, the various file system of system enumeration -- ext2,3, 4 yaffs jffs fat ntfs ..., verify disk unit one by one, and attempt to take over;It is second after identifying virtual disk equipment Virtual disk creates a mount point such as/apps/app_id, at this point, second virtual disk can be accessed.
After the completion of 8th access and the 9th path setting, control module log-on data copy process, by intended application Data in raw data packets including resource file and perform file, are copied in the empty mirror image data area of original image bag; Specifically, after copy process initiation, data write request is sent to second virtual disk, the second virtual disk is logical by the 9th The data write request is sent to the data packet and makes manager by road, and the second request of data receiving module 103 then calls The data packet makes manager, receives the data write request;Original image bag data writing module 104 is according to the number of acquisition According to write request, the data packet is called to make manager by corresponding 3rd data of the data write request, writes the original mirror In the empty mirror image data area of picture bag;Mirror image until the initial data of intended application to be all copied to the original image bag In data field.
The making of original image bag is completed above, if data packet makes manager and establishes module 101, the second request of data Receiving module 103 and original image bag data writing module 104 are disposed on the server, then intended application in mobile terminal Raw data packets are copied into the original image bag of server;If data packet makes manager and establishes the number of module 101, second It disposes on mobile terminals, then will can make again according to request receiving module 103 and original image bag data writing module 104 The original image of completion, which is wrapped, to be reached in server, different users to be facilitated to be used when operational objective is applied.
Embodiment two
With reference to Fig. 2A and 2B, on the basis of above-described embodiment one, to a kind of packing using original image based on disk Make the corresponding method of system to illustrate.
Data packet in the embodiment of the present invention, which makes manager M2, to be included:Second application manager M2A and second is deposited Stack M2B is stored up, wherein, the second application manager M2A can include the second configuration manager M20;Second stack M2B can be wrapped It includes:Second disk simulator M21, the second incremental data manager M22 and the second mirror cache manager M23, below with above-mentioned Exemplified by data packet makes the manager and stack that manager M2 includes, the method for making original image bag is carried out specifically It is bright.
In the embodiment of the present invention, original image bag includes mirror image data area, configuration data area and verification and database data Area;Wherein, there are many realization methods of data field, one kind is achieved in that creates a big file for original image bag, alternatively, One piece of independent disk subregion is divided for original image bag, by the file, alternatively, independent disk subregion divides three regions point Not Shi Xian mirror image data area, configuration data area and verification and database data field, with realize related data storage function;It is another Kind is achieved in that, is respectively mirror image data area, configuration data area and the verification in original image bag and database data field, is drawn Divide a corresponding independent ordinary file, then corresponding original image bag includes:Image file, configuration file and verification and data Library file.
Step 201 establishes data packet and makes manager and create empty original image bag and establish the data and packs Make the 8th access of manager and the original image bag.
Due to the capacity of original image bag and the configuration information of data, determined according to the raw data packets of intended application 's;Therefore, in the mobile terminal of the application of installation targets, according to the operation of user, the second control panel M24 is started, second Control module M25 obtains process by starting configuration information, and the raw data packets M26 of the intended application of mobile terminal is swept It retouches, obtains the configuration information of the raw data packets M26 of intended application, the configuration information includes:It is the title of intended application, original The content description informations such as data package size.Meanwhile second control module M25 can also start packed using original image make into Journey calls data packet making manager to establish module 101 and establishes data packet making manager M2;Specifically, data packet makes pipe Reason device establishes module 101 and starts the second application manager M2A and establish second disk simulator M21, the second incremental data pipe Manage device M22 and the second mirror cache manager M23;At this point, the second configuration manager M20 in the second application manager M2A It is activated.After the completion of data packet makes manager M2 foundation, it is corresponding with confidence that the second application manager M2A obtains intended application Breath, and the configuration information of acquisition is stored in the second configuration manager M20;Then according to the configuration information, then one is created The capacity of empty original image bag M27, original image bag M27 are more than the capacity of raw data packets M26;Wherein, it is empty original Mirror image bag M27 includes:Empty mirror image data area, empty verification and database data field and the empty of form is set Configuration data area;The second configuration manager M20 is recalled, by the corresponding configuration information of intended application, added to having set lattice In the empty configuration data area of formula.Then, the 8th access between data packet making manager M2 and original image bag M27 is established S8。
The process for specifically establishing the 8th access S8 is as follows:(1) second mirror cache manager M23 opens original image bag Mirror image data area in M27, and relevant content description information in initial configuration data field, wherein, the second mirror cache pipe It is for managing original image bag M27 to manage device M23;(2) second incremental data manager M22 create a file stream example, build The vertical data path between the second mirror cache manager M23, it is former can be opened by the second mirror cache manager M23 Mirror image data area in beginning mirror image bag M27;(3) second disk simulator M21 opens what the second incremental data manager M22 was created File stream example establishes the data path between the second incremental data manager M22, wherein, the second incremental data manager The request of second disk simulator M21 is forwarded directly to the second mirror cache manager M23 by M22.
Step 202 is localling create the second virtual disk, establishes second virtual disk and makes pipe with the data packet Manage the 9th access of device.
After the 8th access S8 of the data packet making manager M2 and original image bag M27 has been established, second Control module M25 starts disk and creates process, and establishing module 102 in the mobile terminal by the second virtual disk creates second Virtual disk M28 and the 9th access S9 for creating the second virtual disk M28 and above-mentioned second disk simulator M21;So The operating system of mobile terminal creates mount point for the second virtual disk afterwards, and the process in operating system can pass through the carry Point accesses to the second virtual disk M28.In addition, in operating system, exist and second virtual disk corresponding second Virtual disk IO simulator M29, for identifying the read-write operation for the second virtual disk M28.
Step 203, the data packet make manager and receive data write request by the 9th access, wherein, it is described Data write request is that second virtual disk is obtained from process.
After the completion for the treatment of that the 8th access S8 and the 9th access S9 is established, the second control module M25 log-on datas copy process, with The data in the raw data packets M26 of intended application are copied in the empty mirror image data area of original image bag M27;Specifically , after copying process initiation, which sends data write request, the second virtual disk to the second virtual disk M28 After IO simulators M29 receives the data write request, by the 9th access S9, the data write request is forwarded to described Two disk simulator M21, the second request of data receiving module 103 call the second disk simulator M21 to pass through the 9th access S9 obtains the write request.
Step 204, the data packet make manager and are counted the data write request the corresponding 3rd by the 8th access According in the write-in original image bag.
The write request is transmitted to the second incremental data manager M22 by the second disk simulator M21;Original image Bag data writing module 104 calls the second incremental data manager M22, according to the file stream example of establishment, passes through the second mirror image Cache manager M23 opens the mirror image data area in original image bag M27, and corresponding 3rd data of the write request are write In the mirror image data area, until the initial data of intended application being all copied in the original image bag M27, wherein institute State the data that the initial data that the 3rd data are intended applications includes.
In addition, after the initial data of intended application is all copied to the original image bag, the second virtual disk is established 102 call operation system API of module closes the second virtual disk M28, and unloads mount point, disconnect the second virtual disk M28 with Data packet makes the 9th access S9 between manager M2;Data packet making manager establishes 101 turn-off data of module and packs work The 8th access S8 of the manager M2 and original image bag M27;And it generates the corresponding operation bag that starts of intended application and starts Performer;Wherein, it is described to start in operation bag comprising the most basic file for starting intended application, utilize the startup in terminal Operation bag runs corresponding in application, the operation bag that starts completes intended application in installation process, and basic component is installed With configuration and the interactive action of intended application and terminal.Meanwhile second control module M25 start configuration process so that data packet It making manager and establishes the second application manager M2A of calling of module 101, block-by-block scans the mirror image data area in original image bag, For the corresponding verification of each data block generation in mirror image data area and, wherein, the size of data block can be continuous 8KB, 16KB, 64KB, and by the verification of each data block and preserve into verification and database data field;Then, scanned for checkout and database data Area generates the MD5 of database, and the characteristic information of each data block when MD5 and making original image bag is such as downloaded priority, It is updated in configuration data area.
A kind of packing using original image based on disk of above-mentioned offer makees system and method, can be used for making various The original image bag of large-scale application program, to reduce the development cost of application program, such as such as 3D game, PS etc.;With 3D Exemplified by game, illustrate to utilize the above-mentioned original image applied original image bag manufacturing system, make 3D game based on disk The method of bag, specifically:It has been mounted with that the 3D plays on mobile terminal, and has been stored in the mobile terminal and supported 3D trips It plays the raw data packets of operation, original image bag and establish the above-mentioned 8th that 3D plays can be created on the mobile terminal Access S8 and the 9th access S9;Then by the 8th access S8, all data in the raw data packets that 3D is played, including Resource file and execution file, are copied in the mirror image data area for the original image bag that 3D plays;Mirror in the original image bag The startup of 3D game and the data of normal operation are supported as the data of data field include;It is completed in data copy and then to be somebody's turn to do 3D game generates corresponding APP Launcher;User can start 3D game by APP Launcher.
The embodiment of the present invention need to only establish data packet and make manager and the second virtual magnetic when making original image bag Disk and the original image bag for establishing sky;And the access between three;It can be when getting write request, by corresponding Access is copied to all data in the raw data packets of intended application in original image bag;Without to intended application Original binary code and data are analyzed, you can complete, by the initial data of intended application, to be copied to original image bag In;Greatly reduce development time and cost of labor that intended application needs modularization to split work.
Embodiment three
After the startup operation bag and original image bag of intended application create, if opening for intended application is not stored in mobile terminal Dynamic operation bag, then can download from server;It, can be straight if storing the startup operation bag of intended application in mobile terminal The local acquisition startup operation bag is connected on, is then run by the startup and wraps startup intended application;In the startup of intended application During, the required data of intended application can be obtained from original image bag, due to what is needed when intended application starts Data are more, and the storage of original image bag is in the server, so as to which user can be caused to be needed in initial start-up intended application Treat longer time, it, can be with pre-production intended application pair in order to reduce the time waited during user's initial start-up intended application The startup mirror image bag answered, the startup mirror image bag include the log-on data of intended application;Mobile terminal is obtaining startup operation bag Meanwhile obtain the startup mirror image bag, then when intended application starts, can the corresponding data of startup be locally directly being obtained, this Greatly reduce the time of intended application startup.
With reference to Fig. 3, show that a kind of application based on disk of the present invention starts mirror image and packs the knot for making system embodiment Structure block diagram can specifically include:Local manager establishes module 301, startup mirror image bag establishes module 302, the 3rd virtual disk It establishes module 303, the 3rd request of data receiving module 304 and starts mirror image bag data writing module 305;Wherein,
Local manager establishes module 301, for when starting intended application, establishing local manager and establishing this Tenth access of ground manager and original image bag.
Start mirror image bag and establish module 302, for establishing the empty startup mirror image bag and establishing the local management Device and the 11st access for starting mirror image bag.
3rd virtual disk establishes module 303, for localling create the 3rd virtual disk, establishes the local manager With the 12nd access of the 3rd virtual disk.
3rd request of data receiving module 304 for calling the local manager, is received by the 12nd access Request of data, the request of data are that the 3rd virtual disk is received from the intended application.
Start mirror image bag data writing module 305, for when the request is read request, calling the local management Device obtains corresponding 4th data of the read request by the tenth access from the original image bag;And pass through institute Stating the 11st access will be in the 4th data write-in startup mirror image bag;When the intended application is out of service, stop By the 4th data write-in startup mirror image bag.
In the embodiment of the present invention, local manager establishes module 301, startup mirror image bag establishes module 302, the 3rd virtual magnetic Disk, which establishes module 303, the 3rd request of data receiving module 304 and starts mirror image bag data writing module 305, is deployed in movement In terminal.
The embodiment of the present invention can run bag startup intended application by starting, and can also start target by control panel Using wherein control panel and startup operation bag corresponds to different control modules;When intended application starts, control module from Start and intended application corresponding mark such as APP ID are obtained in operation bag;And log-on data packs the process of work so that local management Device establishes module 301 and establishes local manager, and then the mark of intended application is sent to local manager by control module;If mesh The original image bag of mark application is stored in local cache, then local manager is searched corresponding with the mark of intended application original Mirror image bag resettles the tenth access between local manager and original image bag;If the original image bag storage of intended application In the server, then local manager is according to the mark of intended application, with original corresponding with the mark of intended application in server Beginning mirror image bag establishes the tenth access;Then start mirror image bag and establish the startup that module 302 creates sky according to the configuration information of acquisition Mirror image bag;The capacity of the startup mirror image bag, equal to the capacity of original image bag;Then by school corresponding with the mark of intended application It tests to be copied to database data field and configuration information and start in mirror image bag;Mirror image is further included in the empty startup mirror image bag of establishment Data field and incremental data area.Start mirror image bag establish module 302 resettle local manager and start between mirror image bag the 11 accesses.3rd virtual disk establishes module 303 and is localling create the 3rd virtual disk, establishes the local manager and institute State the 12nd access of the 3rd virtual disk;3rd request of data receiving module 304 calls the local manager, by described 12nd access receives request of data;Since the 3rd virtual disk establishes 303 and the 3rd request of data receiving module 304 of module Effect it is identical with the effect of the second request of data receiving module 103 to establish module 102, herein not with, above-mentioned second virtual disk It repeats again.After local manager obtains the request of data, when the request of data is read request, starts mirror image bag data and write Enter module and call the local manager, the read request is obtained from the original image bag by the tenth access corresponds to The 4th data;And the 4th data are write in the startup mirror image bag by the 11st access;It is meanwhile local 4th data of acquisition by the 12nd access, are returned to intended application by manager.
When the intended application is out of service, stopping will be in the 4th data write-in startup mirror image bag.This hair When intended application is out of service in bright embodiment, can be when intended application just starts or intended application start after Short period in, to ensure that the data started in mirror image bag only account for the fraction of original image bag.Preferably, the startup mirror As 5% of the data of bag less than the data of original image bag, as 30 minutes after intended application startup;So as to ensure that mobile terminal exists The time obtained when starting mirror image bag is shorter.For example, play the game A of 20 minutes in mobile terminal examination, the of game A can be played 6 close, then game A is included in the startup mirror image bag for the A that plays from the data for starting to the 6th pass.If for example, start the storage of mirror image bag Data account for the 3% of original image bag;Such as play A original image bag for 4.3GB, then the capacity of the startup mirror image bag for the A that plays is 4.3GB, the data for starting the storage of mirror image bag account for the 3% of 4.3GB;Start the memory space that mirror image bag really occupies to only have 4.3GB*3%=0.129GB, it is preferred that can also be further processed to starting mirror image bag by compression algorithm so that start mirror As bag smaller.
Example IV
With reference to Fig. 4 A and 4B, on the basis of above-described embodiment three, pair with a kind of application startup mirror image bag based on disk A kind of corresponding application based on disk of manufacturing system starts mirror image bag production method and illustrates.
Local manager M4 in the embodiment of the present invention can include:3rd application manager M4A and the 3rd stack M4B, wherein, the 3rd application manager can include the 3rd configuration manager M40;3rd stack M4B can include:3rd magnetic Disk simulator M41, the 3rd incremental data manager M42, the 3rd mirror cache manager M43 and the 3rd current divider M44;Below with Exemplified by manager and stack that above-mentioned local manager M4 includes, the method for starting mirror image bag to making carries out specifically It is bright.
In the embodiment of the present invention, start mirror image bag include mirror image data area, configuration data area, incremental data area and verification and Database data area;Wherein, there are many realization methods of data field, one kind is achieved in that start mirror image bag establishment one greatly File, alternatively, one piece of independent disk subregion of division;Four regions are divided in this document or disk partition, realize mirror image data Area, configuration data area, incremental data area and verification and database data field, to realize the function of related data storage;It is another It is achieved in that, respectively starts mirror image data area, incremental data area, configuration data area and verification and database in mirror image bag Data field divides a corresponding independent ordinary file, then corresponding startup mirror image bag includes:Image file, delta file are matched somebody with somebody Put file and verification and database file.
Step 401, when starting intended application, establish local manager and establish local manager and original image Tenth access of bag.
Step 402 establishes empty startup mirror image bag and establishes the local manager with starting the 11st of mirror image bag Access.
The embodiment of the present invention starts intended application pair by the startup operation bag of intended application or, the 3rd control panel M45 During the startup program P1 answered, local manager establishes module 301 and establishes local manager M4, specifically, the 3rd control module M46 Start the 3rd application manager M4A and establish the 3rd disk simulator M41, the 3rd incremental data manager M42, the 3rd mirror As cache manager M43 and the 3rd current divider M44;Wherein, the 3rd configuration manager M40 in the 3rd application manager M4A It is activated.If the original image bag M47 of intended application is stored in local, local manager M4 and local original image are established Wrap the tenth access of M47.If intended application original image bag M47 storage in the server, establish local manager M4 with The tenth access of original image bag M47 on server;Preferably, server S E includes configuration server SE1 and data server SE2, establishing local manager M4 and the tenth access of original image bag M47 on server includes:Establish the 3rd application manager The access S101 of M4A and configuration server SE1, to obtain configuration information and verification and database data field;And establish the 3rd The access S102 of current divider M44 and data server SE2, to obtain the data in original image Bao Zhong mirror image datas area.3rd should The 3rd configuration manager M40 is called by the configuration information in raw data packets M47 and verification and database data with manager M4A Area is added in empty startup mirror image bag, in addition, starting mirror image bag further includes empty incremental data area and empty mirror image data Area.
Then start mirror image bag establish module 302 establish local manager M4 and start between mirror image bag M48 the 11st Access establishes local manager M4 with starting the access S111 in mirror image Bao Zhong mirror image datas area, specifically, (1) the 3rd mirror image Cache manager M43 is on mirror image data area and initialization content description information in mirror image bag M48.(2) the 3rd shuntings Device M44 will initialize a file stream example, establish the logical of mirror image data area in the 3rd current divider M44 and original image bag M47 Road, to obtain the data in mirror image data area in original image bag M47, and the startup opened with the 3rd mirror cache manager M43 The mirror image data area example of mirror image bag M48 establishes data path.(3) the 3rd incremental data manager M42 will create a file Flow example, establish with the 3rd current divider M44 in file stream example access and be on incremental data in mirror image bag M48 Area checks initialization dirty data distribution, establishes description information in memory.(4) the 3rd disk simulator M41 open the 3rd increment The file stream example that data management system M42 is created.
Step 403 is localling create the 3rd virtual disk, establishes the local manager and the 3rd virtual disk 12nd access.
After the 11st access and the tenth access has been established, the 3rd control module M46 starts disk and creates process, by the Three virtual disks establish module 303 and the 3rd virtual disk M49 are created in the mobile terminal and creates the 3rd virtual magnetic The 12nd access S12 of disk M49 and the 3rd disk simulator M41;Then the operating system of mobile terminal is the 3rd virtual disk M49 creates mount point, and the process in operating system can access to the 3rd virtual disk by the mount point.In addition, behaviour Make in system, there is threeth virtual disk IO simulator M410 corresponding with the 3rd virtual disk M49, be directed to for identifying The read-write operation of 3rd virtual disk M49.
Step 404, the local manager receive request of data by the 12nd access, and the request of data is institute State what the 3rd virtual disk was received from the intended application.
During intended application is run, the 3rd virtual disk M49 can be accessed, to be obtained by the 3rd virtual disk M49 Take the data of the needs;After 3rd virtual disk IO simulators M410 gets the request of intended application, pass through the tenth two-way Road S12 forwards the request to the 3rd disk simulator M41;3rd request of data receiving module 304 calls the 3rd magnetic Disk simulator M41 obtains the request by the 12nd access S12.
Step 405, when the request for read request when, the local manager is by the tenth access from described original Corresponding 4th data of the read request are obtained in mirror image bag;And the 4th data are write by the 11st access In the startup mirror image bag;When the intended application is out of service, stop the 4th data writing the startup mirror image Bag.
The 3rd disk simulator M41 forwards the request to the 3rd incremental data manager M42;When the described 3rd Incremental data manager M42 determine the request for read request when, start mirror image bag data writing module 305 and call the 3rd increment The read request according to the file stream example of establishment, is transmitted to the 3rd current divider M44 by data management system M42, and described Three current divider M44 obtain corresponding 4th data of the read request from the mirror image data area of original image bag M47;Obtain institute After stating the 4th data, be the 4th data data block generation it is corresponding verification and;And by the school of the corresponding data block of the 4th data Test and, with the 4th data verification and database data field in corresponding data block verification and compared;When such a match occurs, 4th data are stored in and are started in mirror image bag, and the second bit identification of the 4th data corresponding data block is set to the 3rd shape State;When the two mismatches, the 4th data are obtained from original image bag M47 again, and repeat above-mentioned verification and matching operation;If The verification of 4th data and repeatedly match it is unsuccessful, can first by the 4th data be stored in start mirror image bag in, and by the 4th number The 4th state is set to according to the second bit identification of corresponding data block;It can be when next intended application starts, again from original image bag It is middle to obtain the 4th data.Wherein, second bit identification is the mark of data block in mirror image data area;3rd shape State is the effective status of data block in the mirror image data area;4th state is data block in the mirror image data area Disarmed state.
In addition, the corresponding second of data block is identified as the third state by the 3rd current divider M44 by file stream example 4th data, are back to the 3rd incremental data manager M42, and the 3rd incremental data manager M42 returns to the 4th data To the 3rd disk simulator M41, the 3rd disk simulator M41 by the 12nd access S12, the 4th data are returned To intended application.
In addition, when establishing local manager M4 and starting the access between mirror image bag M48, further include and establish the 3rd increment Access S112 in data management system M42 and startup mirror image bag M48 between incremental data area, when the 3rd incremental data management Device M42 determines the request received when being write request, and the write-in of institute's write request corresponding data is directly started to the increment of mirror image bag M48 In data field.
After the intended application runs a period of time, when out of service, stop to open described in the 4th data write-in Index glass picture bag M48;At this point, complete the making for starting mirror image bag M48;In order to make more acquisition for mobile terminal intended applications Startup mirror image bag M48, the startup mirror image to complete can be wrapped and reached in data server.
A kind of application startup mirror image based on disk of above-mentioned offer, which packs, makees system and method, can be used for swimming for 3D The application programs such as play, PS, which make, starts mirror image bag;Original image bag is much smaller than due to starting mirror image bag, it is possible to reduce it uses Family stand-by period when for the first time using 3D game, PS;By taking 3D plays as an example, illustrate to start mirror using the above-mentioned application based on disk As bag manufacturing system, the method for making the startup mirror image bag of 3D game, specifically:The APP of 3D game can obtained On the mobile terminal of Launcher, 3D game is played by starting APP Launcher examinations;After 3D game starts;System will create The startup mirror image bag of 3D game, then establishes above-mentioned tenth access, the 11st access and the 12nd access;System will pass through the tenth Access obtains the required data of 3D game from original image bag;3D game is returned to by the 12nd access, to ensure The normal operation of 3D game;Then by the 11st access, the data that will be obtained from original image bag, write-in starts mirror image bag In;It treats that examination is played 20~30 minutes or so, at this point, 3D game has been activated, and runs to preceding several outposts of the tax office;It is then shut off 3D trips Play, at this point, starting the log-on data that 3D game is contained in mirror image bag and the data at preceding several outposts of the tax office;In this way, APP is opened next time When dynamic, the resource data at log-on data and preceding several outposts of the tax office can be directly obtained from local boot mirror image bag, tries the time played And content can be determined according to the 3D sizes played or game mode, in addition, the game for not having to type, tries what is played Time can not also be same, such as strategic type game, character play the part of type game immediately.
In the embodiment of the present invention when making startup mirror image bag, empty startup mirror image bag, local manager also need to be only established; And the access started between mirror image bag, original image bag and local manager is established, corresponding access is may then pass through, from In original image bag by data copy into startup mirror image bag;Since the time of intended application operation is shorter, start mirror image The data volume of bag is much smaller than the data volume of original image bag, so as to, mobile terminal it is first obtain start mirror image bag when, during wait Between it is short.And when making startup mirror image bag, can also remove the parsing that runtime environment is relied on application program and module from Change and split work, greatly reduce cost of labor and time cost.
If making the original image bag of intended application by same mobile terminal and starting mirror image bag, above-mentioned second control Panel processed and the 3rd control panel are same control panel;If not made on same mobile terminal, the second control panel with 3rd control panel is different.
Original image bag manufacturing system is applied based on disk by above-mentioned, can realize the original mirror for making intended application As bag and startup operation bag, mirror image bag manufacturing system is started by the above-mentioned application based on disk, can realize that making target should Startup mirror image bag.Therefore, in the terminal by starting before running bag startup intended application, the embodiment of the present invention carries A kind of application operation system based on disk supplied obtains startup operation bag and starts mirror image bag in advance;It is run in intended application When, by the access of foundation, the required data of intended application operation are obtained in mirror image bag and/or original image bag from starting;With Under a kind of application operation system based on disk is illustrated.
Embodiment five
With reference to Fig. 5, a kind of structure diagram of application operation system embodiment based on disk of the present invention is shown, it is described System specifically includes:Data packet acquisition module 501, local cache manager establish module 502, the first virtual disk establishes module 503rd, the first request of data receiving module 504, data acquisition module 505 and data feedback module 506, wherein,
Data packet acquisition module 501, in advance in non-installation targets in application, obtaining the startup fortune of the intended application Row bag and startup mirror image bag, wherein, described to start operation bag for starting the intended application, the startup mirror image bag includes institute State the log-on data of intended application.
Local cache manager establishes module 502, when starting the intended application for being wrapped by the startup operation, builds Vertical local cache manager, establish the local cache manager with start mirror image bag the first access and, establish local cache The alternate path of manager and server.
First virtual disk establishes module 503, for localling create the first virtual disk, establishes the local cache pipe Manage the third path of device and first virtual disk.
First request of data receiving module 504 for calling the local cache manager, is connect by the third path Request of data is received, the request of data is that first virtual disk is received from the intended application.
Data acquisition module 505, for when the request of data is read request, calling the local cache manager, By first access, from the first data of the startup mirror image bag acquisition read request;And/or call the local Cache manager, by the alternate path, first that the read request is obtained from the original image bag of the server counts According to;Wherein, the original image bag includes the log-on data of the intended application and operation data.
Data feedback module 506, for giving first data feedback to the intended application by the third path, So that the intended application operation.
In the embodiment of the present invention, data packet acquisition module 501, local cache manager establish module 502, the first virtual magnetic Disk establishes module 503, the first request of data receiving module 504, data acquisition module 505 and data feedback module 506, disposes On mobile terminals, and the application operation system based on disk can be disposed on each different mobile terminal, you can with Operational objective application on each mobile terminal.If the mobile terminal of operational objective application, and in above-described embodiment three or example IV When the mobile terminal of the startup mirror image bag of making intended application is same, then the first access, second are led in the embodiment of the present invention Road and third path are respectively same with the 11st access, the tenth access and the 12nd access of embodiment three or example IV Access, the first virtual disk and the 3rd virtual disk are same virtual disk;If the mobile terminal of embodiment five and embodiment three Difference, then the first access, alternate path and third path in the embodiment of the present invention, respectively with the of embodiment three or example IV 11 accesses, the tenth access and the 12nd access are not same accesses, and the first virtual disk and the 3rd virtual disk are not same One virtual disk.
Data packet acquisition module 501 is in advance in non-installation targets in application, the intended application can be obtained from local Startup operation bag and start mirror image bag;Startup operation bag can also be obtained from server and starts mirror image bag, due to target The startup operation bag and startup mirror image bag of application are smaller, therefore, the stand-by period of user are greatly saved.User is installing After the startup operation bag of intended application, destination application can be started by starting operation bag;Local cache manager is built Formwork erection block 502 establishes local cache manager after destination application startup;Then call local cache manager search with It is described to start the corresponding startup mirror image bag of operation bag;It resettles the local cache manager and leads to starting the first of mirror image bag Road and, establish the alternate path of local cache manager and server;After the completion of the first access and alternate path are established, the One virtual disk establishes module 503 and is localling create the first virtual disk, establishes the local cache manager and described first The third path of virtual disk;First request of data receiving module 504 for calling the local cache manager, passes through institute It states third path and receives request of data, the request of data is that first virtual disk is received from the intended application;This In local cache manager establishes module 502, the first virtual disk establishes 503 and first request of data receiving module 504 of module, Module 301 is established with local manager in embodiment three, the 3rd virtual disk is established 303 and the 3rd request of data of module and connect respectively The effect of receipts module 304 is identical, and details are not described herein.Data acquisition module 505 is called when the request of data is read request The local cache manager, by first access, from the first data of the startup mirror image bag acquisition read request; Alternatively, calling the local cache manager, by the alternate path, institute is obtained from the original image bag of the server State the first data of read request;Alternatively, obtain first data from starting in mirror image bag and original image bag;Data feedback mould Block 506 gives first data feedback to the intended application by the third path, so that the intended application is run.
Furthermore, it is possible to it is the local cache in intended application initial start-up or when intended application starts every time Manager establishes module 502 and establishes local cache manager, establishes the local cache manager with starting the first of mirror image bag Access and, establish the alternate path of local cache manager and server;And first virtual disk establish module 503 this Ground creates the first virtual disk, establishes the third path of the local cache manager and first virtual disk.
Embodiment six
With reference to Fig. 6 A and 6B, on the basis of above-described embodiment five, below for a kind of application operation based on disk The corresponding method of system illustrates.
Local cache manager M6 in the embodiment of the present invention can include:The storages of first application manager M6A and first Stack M6B, wherein, the first application manager M6A can include the first configuration manager M60;First stack M6B can include: First disk simulator M61, the first incremental data manager M62, the first mirror cache manager M63 and the first current divider M64.
Step 601, in advance in non-installation targets in application, obtain the intended application startup operation bag and start mirror image Bag, wherein, described to start operation bag for starting the intended application, the mirror image bag that starts includes opening for the intended application Dynamic data.
The operational objective application in the mobile terminal of any non-installation targets application from local, it is necessary to obtain the mesh in advance The startup operation of mark application wraps M65 and starts mirror image bag M68;If the local startup operation bag M65 there is no the intended application With startup mirror image bag M68, then obtained from server and start operation bag M65 and start mirror image bag M68, and be stored in local.It obtains After taking startup operation bag M65 and starting mirror image bag M68 successes, when user, which clicks on, starts operation bag M65, mobile terminal is directly beaten Dynamic operation bag M65 is opened, completes to start the installation of the required basic module of intended application and the corresponding startup program of operation P2, to start corresponding intended application.The log-on data that the startup mirror image bag M68 of the acquisition is included, can be intended application During complete starting state, the data of intended application needs;Can also be from off state to complete During a period of time being run after starting state, the data of intended application needs;This depends on target in above-described embodiment should Startup mirror image bag is when making, the time of intended application operation.
Step 602, by it is described start operation bag start the intended application when, establish local cache manager and Establish the local cache manager with start mirror image bag the first access and, establish local cache manager and server Alternate path.
Local cache manager establishes module 502, when intended application starts, establishes local cache manager M6, specifically , the first control module M66 call establishment local cache processes start the first application of the first application manager M6A and control Manager M6A establish the first disk simulator M61, the first incremental data manager M62, the first mirror cache manager M63 and First current divider M64;Wherein, the first configuration manager M60 in the first application manager M6A is also started up.Then resettle Local cache manager M6 is with starting the first access of mirror image bag M68 and establishing the of local cache manager M6 and server Two accesses.
Step 603 is localling create the first virtual disk, establishes the local cache manager and first virtual magnetic The third path of disk.
Step 604, the local cache manager receive request of data by the third path, and the request of data is What first virtual disk was received from the intended application.
Step 603 and step 604, identical with above-mentioned steps 403 and 404 respectively, which is not described herein again.
Step 605, when the request of data is read request, the local cache manager by first access, The first data of the read request are obtained from the startup mirror image bag;And/or the local cache manager passes through described second Access obtains the first data of the read request from the original image bag of the server;Wherein, the original image bag Include the log-on data of the intended application and operation data.
After the first access and alternate path has been established, the first control module M66 starts disk and creates process, passes through first Virtual disk establishes module 503 and the first virtual disk M69 is created in the mobile terminal and creates first virtual disk The third path S3 of M69 and the first disk simulator M61;Then the operating system of mobile terminal is created for the first virtual disk M69 Build mount point, the process in operating system can access to the first virtual disk by the mount point.In addition, operation system In system, there is first virtual disk IO simulator M610 corresponding with the first virtual disk M69, for identifying for first The read-write operation of virtual disk M69.
The first disk simulator M61 forwards the request to the first incremental data manager M62;By the first increment Data management system M62 judges that the request is read request or write request;Described in being determined as the first incremental data manager M62 Ask for read request when, then the read request is sent to the first current divider M64;After first current divider M64 receives the read request, In the mirror image data area for the startup mirror image bag being locally stored first by the judgement of the first access, if there are the read request is corresponding First data;If in the presence of judging whether the first data are effective;If first data are effective, can be passed through One access obtains first data from local boot mirror image bag M68.If it is not present in the startup mirror image bag M68 being locally stored First data, alternatively, state of first data in local boot mirror image bag is invalid state, then the first current divider can To obtain first data from the original image bag M67 of server by alternate path.If the startup mirror image being locally stored It is effective there are partial data in first data in bag, then from starting the portion that is obtained in mirror image bag in first data Divided data, then obtain from the original image bag M67 of server the data of other parts in the first data.
Step 606 gives first data feedback to the intended application by the third path, so that the target Application operation.
First data of acquisition are back to the first incremental data manager M62, the first incremental data by the first current divider M64 First data are relayed to the first disk simulator by manager M62;First disk simulator M61 passes through third path S3 is back to the first virtual disk M69, the first virtual disk M69 and first data is passed through the first virtual disk IO simulators M610 feeds back to intended application.
The embodiment of the present invention is after the original image bag that completes, startup mirror image bag and startup operation bag, at the beginning of user It is secondary when making intended application, it obtains the startup operation bag of intended application and starts mirror image bag;Bag is run by the startup and starts application During program, establish local cache manager and establish local cache manager, start between mirror image bag and original image bag Access;When local cache manager receives read request, can by corresponding access from the startup mirror image bag being locally stored, And/or the corresponding data of the read request are obtained in the original image bag of server and feed back to the intended application, so that institute State intended application operation;In the case of starting operation bag in only acquisition and starting mirror image bag, by intended application During operation, the required data of intended application are obtained from the original image bag for starting mirror image bag and/or server, with Ensure the normal operation of intended application.Further, since what is included in startup mirror image bag is the log-on data of intended application, it is much smaller than The raw data packets size of intended application, so as to which the time of user's initial start-up intended application be greatly saved, enhances user Experience;In addition, during intended application long-play, repertoire will not be used under normal circumstances, and then Only meeting download part program data, the space hold of the device memory systems of such user local can substantially reduce.
Embodiment seven
With reference to Fig. 7 and 6B, on the basis of above-described embodiment six, described ask is got for the first incremental data manager Processing procedure after asking is described in detail.
In the embodiment of the present invention, establishing above-mentioned first access can include establishing the first incremental data manager M62 with opening Data path S1A between the incremental data area of index glass picture bag M68, so that the first incremental data manager M62 writes data into Start in the incremental data area of mirror image bag M68 and the first mirror cache manager M63 is with starting mirror image data in mirror image bag M68 The data path S1B in area.
Step 701 judges whether the request is read request, if it is not, then performing step 702;If so, perform step 703。
During intended application is run, request of data can be sent to the first virtual disk M69, the request of data of transmission can To be write request or read request;When the request of data is write request, start mirror image bag M68's in order not to destroy In mirror image data area, the write-in of write request corresponding second data can start mirror image bag by the first incremental data manager M62 In the incremental data area of M68, that is, perform step 702;When the request of data is read request, the first incremental data manager The read request can be sent to the first current divider M64, the first current divider M64 and perform step 703 by M62.
Step 702 is write the second data of the write request in the incremental data area by first access;If The first bit identification of the second data corresponding data block is put as first state, then performs the step of terminating.
First incremental data manager M62 determines the request of data when being write request, by the corresponding number of the write request According to being determined as the second data;First incremental data manager M62 is by the first access, from the mirror image data for starting mirror image bag M68 Qu Zhong and/or, by alternate path, the corresponding data block of the second data is read from the original image bag of server, by second The corresponding data block of data is put in memory, and the first incremental data manager M62 is according to the write request, update second number According to corresponding data in corresponding data block, such as change data or increase data;And it when data block is updated successfully, then updates First bit identification of the data block is first state such as 1;When data block updates failure, then the first of the data block is updated Bit identification is the second state such as 0.Then it is by access S1A, the corresponding data block of the second data and each data block is corresponding First bit identification, write-in start in the incremental data area of mirror image bag M68, then perform the step of terminating;Wherein, the first bit identification For the mark of data block in incremental data area, first state is the success status of the first bit identification, and the second state is first mark The status of fail of knowledge.
When the first incremental data manager M62 determine the request for read request when, which is sent to described the One current divider M64;First current divider M64 can be from local boot mirror image bag M68 and/or the original image bag of data server It is obtained in M67;Wherein, the first incremental data manager M62 obtains the first data, Ke Yicong from local boot mirror image bag M68 Start in the incremental data area of mirror image bag M68 and/or start and obtained in the mirror image data area of mirror image bag M68, wherein, start mirror image Bag includes:Incremental data area, mirror image data area, configuration data area and verification and database data field, specific step are as follows:
Step 703 judges to whether there is first data in the incremental data area;If in the presence of performing step 704;If being not present, step 706 is performed.
When first incremental data manager M62 obtains the first data from startup mirror image bag M68, first judge to start mirror image bag With the presence or absence of the corresponding data block of first data in the incremental data area of M68, when there are the first data in incremental data area During corresponding data block, then step 704 is performed;When data block corresponding there is no the first data in incremental data area, then hold Row step 706.
Step 704, judge the first bit identification of the first data corresponding data block in the incremental data area state whether For first state, if so, performing step 705;If it is not, then perform step 706.
When data block corresponding there are the first data in incremental data area, the is corresponded to according to data block in incremental data area One bit identification, determines whether the corresponding data block of the first data is successfully updated.When the state of the first bit identification of data block is It during first state, determines that data data in the block are successfully updated, performs step 705;When first bit identification of data block It when state is the second state, determines that data data in the block are not successfully updated, performs step 706.Wherein, the first data pair The data block answered may be one, it is also possible to multiple;First data may include the total data of each data block, it is also possible to It is the partial data of each data block.
Step 705 obtains first data from the incremental data area, then performs step 714.
When the state of the first bit identification is first state, first data are obtained from the incremental data area.By It may include multiple data blocks, multiple data several data blocks in the block that the first data include, in incremental number in the first data It is first state according to the first bit identification in area, then the data of these data blocks is obtained from incremental data area, performs step 714;State for the first bit identification is other several data blocks of the second state, performs step 706.
When the state of the first bit identification is the second state, first data are read from the mirror image data area, are had There is the step as follows:
Step 706 judges when it is present, then to perform step with the presence or absence of first data in the mirror image data area 707, when it be not present, then perform step 709.
First current divider M64 from mirror image data area read the first data before, it is necessary to first judge be in mirror image data area It is no there are first data, when it is present, then perform step 707, when it be not present, then perform step 709.
Whether step 707, the state of the second bit identification for judging the corresponding data block of first data are the third state, If so, perform step 708;If it is not, then perform step 709.
When data block corresponding there are the first data in mirror image data area, it is necessary to judge in the first data corresponding data block Data it is whether effective, to ensure to feed back to the first data of intended application, can support the normal operation of intended application.Specifically , it can judge that the first data correspond in mirror image data area according to the state of the second bit identification of data block in mirror image data area Data block it is whether effective;When the state of the second bit identification is the third state, it is determined that data are effective in corresponding data block;When When the state of second bit identification is four state, it is determined that data invalid in corresponding data block;Wherein, the third state is second The effective status of mark, the 4th state are the disarmed state of the second bit identification.
Step 708 obtains first data from the mirror image data area, then performs step 714.
When the state of corresponding second bit identification of data block is the third state, from the mirror image data area described in acquisition First data.Since the first data may include multiple data blocks, multiple data several data in the block that the first data include Block, the second in mirror image data area are identified as the third state, then the number of these data blocks is obtained from mirror image data area According to execution step 714;State for the second bit identification is other several data blocks of the 4th state, performs step 709.
Step 709 obtains first data from the original image bag of the server.
When the first current divider M64 is determined in the local cache of mobile terminal, start incremental data area and the mirror of mirror image bag M68 As in data field there is no first data or, there are when part first data or, first data invalid, First data then can be obtained from the original image bag M67 of data server.
Step 710, the first verification for calculating the first data corresponding data block and, and in the verification and database number According to inquired about in area the first data corresponding data block second verification and.
Step 711 verifies described first and verifies and match with second.
Due to the unstability or other factors of network, it may cause the first data obtained from server may It is wrong or incomplete;After first data are got in the original image bag M67 from data server, First current divider M64 needs verify the first data of acquisition, to judge the first data obtained from data server It is whether correct;Therefore, calculate the corresponding data block of the first data of acquisition first verification and;And starting mirror image bag M68 Verification and database data field in search, data block corresponding with first data second verification and.By the first verification It verifies and is matched with second, according to matched as a result, whether judging the first data obtained from original image bag M67 Correctly.
Step 712, judge first verification and with second verification and whether successful match, if success, perform step 713; If unsuccessful, step 709 is performed.
Judge first verification and with second verification and whether successful match, if successful match, step 713 can be performed, If matching is unsuccessful, needs to perform step 709, i.e., first data are obtained from server again, if repeatedly from service First verification of the first data that device obtains and, with the second verification and when matching unsuccessful, then return to the information of failure to target Using, perform terminate the step of.
First data are preserved into the mirror image data area, and first data are set to correspond to number by step 713 The third state is identified as according to the second of block.
Before first data of acquisition are back to the first incremental data manager M62 by the first current divider M64, by the first number According in preservation to the mirror image data area for starting mirror image bag M68;And the second bit identification of the first data corresponding data block is set For effective state, the i.e. third state.
Step 714 gives first data feedback to the intended application.
If the data that the first current divider M64 is obtained include from start in mirror image bag M68 the data that obtain and, from original mirror As the data obtained in bag M67, then this two parts data is merged, be back to the first incremental data manager M62;If first point The data that stream device M64 is obtained only include the data obtained from startup mirror image bag M68, then will be obtained from starting in mirror image bag M68 Data be back to the first incremental data manager M62;If the data that the first current divider M64 is obtained are only included from original image bag The data obtained from original image bag M67 are then back to the first incremental data manager M62 by the data obtained in M67.If First incremental data manager M62 obtains data from the incremental data area for starting mirror image bag M68, then by this first point of reception The stream device M64 data sent and two parts data obtained from incremental data area merge, and are back to the first disk simulator M61;If the first incremental data manager M62 only obtains data from the first current divider M64, directly the data of acquisition are sent out It send to the first disk simulator M61;If the first incremental data manager M62 only obtains data from incremental data area, directly It connects the data sending of acquisition to the first disk simulator M61, the first disk simulator M61 through third path S3, by described in Corresponding first data feedback of read request is to intended application.
Preferably, the server S E of the embodiment of the present invention can include configuration server SE1 and data server SE2, wherein, configuration server SE1 is used to store the configuration information of a variety of intended applications, and data server SE2 is used for It stores the original image bag M67 of different target application and starts mirror image bag M68 and start operation bag M65;Establish local cache Manager M6 and the alternate path of server S E include:Establish the four-way of the first application manager M6A and configuration server SE1 Road S21, then, the first application manager M6A are obtained and the mesh according to the mark of intended application from configuration server SE1 It marks corresponding first configuration information of mark of application and verifies and database data field.Establish local cache manager M6 and service The alternate path of device SE further includes:Establish the fifth passage S22 between the first current divider M64 and data server SE2;Specifically , the first current divider M64 is searched corresponding with configuration information according to the first configuration information of acquisition in data server SE2 Then original image bag M67 is attached with the original image bag M67.The embodiment of the present invention is establishing local cache management , it is necessary to search startup mirror corresponding with starting operation bag M65 in local cache before accesses of the device M6 with starting mirror image bag M68 As wrapping, specifically, the first application manager M6A runs the mark of intended application in bag M65 according to startup, in locally lookup and mesh The corresponding startup mirror image bag of mark of application is marked, then the second configuration information is obtained from the startup mirror image bag, second is matched somebody with somebody The first configuration information that confidence is ceased and obtained from configuration server SE1 is compared, when such a match occurs, then by the startup Mirror image bag is determined as the startup mirror image bag M68 of intended application.It, then can be in local lookup and target again when matching unsuccessful The mark of application is corresponding to start mirror image bag.
The related datas such as the first data, second data described in the embodiment of the present invention, can be with, with fixed size (8KB, 16KB, 64KB etc.) data block set form realize, can also, in the form of data area realize, such as establish data descriptor note Data start offset (Start Offset) is recorded, size of data (Size) describes the corresponding scope of the data.
It, only need to be according to making original image in above-described embodiment if intended application needs upgrading in the embodiment of the present invention The process of M27 is wrapped, all data that intended application needs upgrade are copied in upgrading original image bag;Then according to upper The manufacturing process that intended application starts mirror image bag M48 is stated, makes the starting and upgrading mirror image bag of upgrading data;When user is mobile whole When upgrading is selected in end, mobile terminal need to only directly download starting and upgrading mirror image bag from server;When intended application starts, In addition to establishing above-mentioned data path, the 6th access of local cache manager and starting and upgrading mirror image bag is resettled;And it builds Seventh access of the vertical local cache manager with upgrading original image bag in server;During intended application is run, if Ask for read request when, it is corresponding first to obtain read request from local starting and upgrading mirror image bag and/or upgrading original image bag Data;When local cache manager starting and upgrading mirror image bag and/or upgrading original image bag in, do not get corresponding number According to or can only fetching portion data when;Then corresponding data are obtained from local boot mirror image bag and/or original image bag;Tool Body, from local starting and upgrading mirror image bag and/or upgrading original image bag, the step of obtaining corresponding data and above-mentioned step Suddenly
703-712 is identical, and details are not described herein again.
If the number of succeeding target application upgrade is more, the data of all upgradings can be generated to an original mirror of upgrading As bag, the data of all upgradings and initial data can also be merged, using the data packet of merging as raw data packets, Ran Houchong New production original image bag and startup mirror image bag.
The application program such as network game of various large sizes, PS etc. can utilize a kind of answering based on disk of the embodiment of the present invention With runtime and method, it can start and run on the mobile terminal for not installing the application program, by taking network game A as an example, tool Body, on the mobile terminal for not installing network game A, the startup mirror image bag of the APP Launcher and network game A of network game A are obtained, Data when data and network game A when only starting in startup mirror image bag comprising network game A are run to the 5th outpost of the tax office;User can lead to It crosses click APP Launcher and starts network game A, when starting network game A, establish local cache manager and create the first virtual magnetic Disk;And establish above-mentioned first access, alternate path and third path, when user is registered in network game A, network game A to First virtual disk sends write request;After local cache manager obtains the write request by third path, register customers as Information write-in start mirror image bag incremental data area in;When network game A starts and is closed to operation to the 5th, local cache manager By the first access, the required all data of network game A are obtained in mirror image bag from starting, and pass through third path by the number of acquisition According to feeding back to network game A;When network game A, which is run to the 6th, to close, then local cache manager is by alternate path, from the original of server The 6th data closed are obtained in beginning mirror image bag, and passes through third path and gives the data feedback of acquisition to network game A;And the number closed the 6th Start according to being stored in mirror image bag;It is achieved thereby that while network game A is run, the startup mirror image bag of network game A is made.When another After secondary startup network game A, when network game A is run to the 6th pass, local cache manager can obtain net from local startup mirror image bag Close required data in swim A the 6th.If the 1st, 5,10 to network game A put into and have gone upgrading;Then can by the 1st of network game A the, 5, 10 close the data after corresponding upgrading, are fabricated to upgrading original image bag and corresponding starting and upgrading mirror image bag;It will upgrading original Beginning mirror image bag stores on the server, and starting and upgrading mirror image bag is stored in, the mobile terminal of the startup mirror image bag with network game A On;At this point, the network game A after upgrading can be run on the mobile terminal.
The embodiment of the present invention can be during object run, on the one hand can be by from starting mirror image bag and/or original Data are obtained in beginning mirror image bag, to ensure the normal operation of intended application;On the other hand can will be obtained from original image bag Data be stored in start mirror image bag in, so as to intended application next time operation need the data when, can be from local cache Startup mirror image bag in directly acquire data, ensure that intended application operation fluency.In addition, when intended application upgrades, Upgrading original image bag and starting and upgrading mirror image bag need to be only obtained, in operational objective in application, the liter of intended application can be completed Grade substantially increases the efficiency of intended application upgrading, has saved cost.
The embodiment of the present application additionally provides a kind of non-volatile readable storage medium, in the storage medium storage there are one or Multiple modules (programs) when the one or more module is used in terminal device, can cause the terminal device to perform The instruction (instructions) of various method steps in the embodiment of the present application.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates bag The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
A kind of application operation method based on disk provided by the present invention and a kind of application based on disk are transported above Row system, is described in detail, and specific case used herein is set forth the principle of the present invention and embodiment, The explanation of above example is only intended to help to understand method and its core concept of the invention;Meanwhile for the one of this field As technical staff, thought according to the invention, there will be changes in specific embodiments and applications, to sum up institute It states, this specification content should not be construed as limiting the invention.

Claims (21)

  1. A kind of 1. application operation method based on disk, which is characterized in that including:
    In advance in non-installation targets in application, obtain the intended application startup operation bag and start mirror image bag, wherein, it is described Start operation bag for starting the intended application, the mirror image bag that starts includes the log-on data of the intended application;
    When starting the intended application by the startup operation bag, establish local cache manager and establish the local Cache manager with start mirror image bag the first access and, establish the alternate path of local cache manager and server;
    The first virtual disk is being locallyd create, is establishing the threeway of the local cache manager and first virtual disk Road;
    The local cache manager is received by the third path and asked, and the request is first virtual disk from institute State intended application reception;
    When the request is read request, the local cache manager is by first access, from the startup mirror image bag Obtain the first data of the read request;And/or the local cache manager is by the alternate path, from the service The first data of the read request are obtained in the original image bag of device;Wherein, the original image bag includes the intended application Log-on data and operation data;
    By the third path by first data feedback to the intended application, so that the intended application is run.
  2. 2. according to the method described in claim 1, it is characterized in that, the startup mirror image bag includes incremental data area, the side Method further includes:
    When the request for write request when, the local cache manager is by first access by the second of the write request Data are write in the incremental data area;
    The first bit identification for setting the second data corresponding data block is first state.
  3. 3. according to the method described in claim 1, it is characterized in that, the startup mirror image bag includes incremental data area and mirror image number According to area, the local cache manager obtains the first of the read request by first access from the startup mirror image bag The step of data, including:
    The local cache manager by first access, obtained from the incremental data area first data and/ Or, first data are obtained from the mirror image data area.
  4. 4. according to the method described in claim 3, it is characterized in that, described first is obtained from the incremental data area described Before the step of data, further include:
    Judge to whether there is first data in the incremental data area;
    When it is present, the state of the first bit identification of the corresponding data block of first data is judged;
    When it be not present, the step of obtaining first data from the mirror image data area is performed.
  5. 5. according to the method described in claim 4, it is characterized in that, judging the first of the corresponding data block of first data After the step of state of bit identification, further include:
    When the state of the first bit identification is first state, the step that first data are obtained from the incremental data area is performed Suddenly;
    When the state of the first bit identification is the second state, the step that first data are obtained from the mirror image data area is performed Suddenly.
  6. 6. according to the method described in claim 3, it is characterized in that, described first is obtained from the mirror image data area described Before the step of data, further include:
    Judge to whether there is first data in the mirror image data area;
    When it is present, the state of the second bit identification of the corresponding data block of first data is judged;
    When it be not present, the step of obtaining first data from the original image bag of the server is performed.
  7. 7. according to the method described in claim 6, it is characterized in that, judging the second of the corresponding data block of first data After the step of state of bit identification, including:
    When the state of the second bit identification is the third state, the step that first data are obtained from the mirror image data area is performed Suddenly;
    When the state of the second bit identification is four state, performs and obtain described first from the original image bag of the server The step of data.
  8. 8. according to the method described in claim 1, it is characterized in that, the startup mirror image bag includes verification and database data Area,
    After the step of obtaining first data in the original image bag from the server, further include:
    Calculate the first data corresponding data block first verification and, and it is described verification and database data field in inquire about institute State the first data corresponding data block second verification and;
    Described first is verified and verifies and matches with second;
    When the described first verification and with the second verification and during successful match, perform it is described by first data feedback to the mesh The step of mark application;
    When described first verifies and verify with second and match unsuccessful, perform and obtained from the original image bag of the server The step of taking first data.
  9. 9. according to the method described in claim 8, it is characterized in that, the startup mirror image bag includes mirror image data area, when described First verification and with the second verification and during successful match, the method further includes:
    First data are preserved into the mirror image data area, and the second of the first data corresponding data block is set It is identified as the third state.
  10. 10. according to the method described in claim 1, it is characterized in that, the server includes configuration server, foundation is local slow The step of depositing the fourth passage of manager and configuration server, including:
    Obtain the mark of the intended application;
    According to the mark, the fourth passage of the local cache manager and the configuration server is established, and described in obtaining Identify corresponding first configuration information.
  11. 11. according to the method described in claim 10, it is characterized in that, the server includes data server, foundation is local It the step of fifth passage of cache manager and data server, further includes:
    According to first configuration information, the fifth passage of the local cache manager and the data server is established.
  12. It is 12. described according to the method described in claim 10, it is characterized in that, the startup mirror image bag includes configuration data area Configuration data area includes configuration information;
    It is described establish the local cache manager with start mirror image bag the first access the step of before, further include:
    According to the mark, the corresponding startup mirror image bag of the mark is searched in local cache and from the startup mirror image The second configuration information is searched in the configuration data area of bag;
    First configuration information is matched with second configuration information;
    When first configuration information and the second configuration information successful match, the startup mirror image bag is determined as described The startup mirror image bag of intended application.
  13. 13. according to the method described in claim 1, it is characterized in that, the startup mirror image bag includes mirror image data area, described Ground cache manager includes mirror cache manager;
    It is described establish the local cache manager with start mirror image bag the first access the step of, including:
    The mirror cache manager opens the mirror image data area, establishes the mirror cache manager and the mirror image data First access in area.
  14. 14. according to the method described in claim 1, it is characterized in that, when intended application needs upgrading, the method is also wrapped It includes:
    Intended application starting and upgrading mirror image bag is obtained, wherein, the part that the starting and upgrading mirror image bag includes intended application updates Data;
    After local cache manager is established, the 6th access of local cache manager and the starting and upgrading mirror image bag is established, And establish the 7th access of local cache manager and server;
    Before first data are obtained from the startup mirror image bag and/or original image bag, the local cache manager By the 6th access, from the first data of the starting and upgrading mirror image bag acquisition read request;And/or the local Cache manager obtains the first of the read request by the 7th access from the upgrading original image bag of the server Data;Wherein, the whole that the upgrading original image bag includes the intended application updates the data.
  15. 15. a kind of apply original image bag production method based on disk, which is characterized in that including:
    Data packet is established to make manager and create empty original image bag and establish the data packet making manager and institute State the 8th access of original image bag;
    The second virtual disk is being locallyd create, second virtual disk is being established and the data packet makes the 9th of manager and leads to Road;
    The data packet makes manager and receives data write request by the 9th access, wherein, the data write request is What second virtual disk was obtained from process;
    The data packet makes manager and corresponding 3rd data of the data write request is write the original by the 8th access In beginning mirror image bag, wherein, the 3rd data are the data that the initial data of intended application includes.
  16. 16. according to the method for claim 15, which is characterized in that when by the 3rd data all in the raw data packets After writing the original image bag, the method further includes:
    The data packet makes corresponding start of the manager generation intended application and runs bag, and described start runs bag for opening Move the intended application.
  17. 17. a kind of application based on disk starts mirror image bag production method, which is characterized in that including:
    When starting intended application, establish local manager and establish the tenth access of local manager and original image bag;
    It establishes empty startup mirror image bag and establishes the local manager with starting the 11st access of mirror image bag;
    The 3rd virtual disk is being locallyd create, is establishing the 12nd access of the local manager and the 3rd virtual disk;
    The local manager receives request of data by the 12nd access, and the request of data is the 3rd virtual magnetic Disk is received from the intended application;
    When the request is read request, the local manager is obtained by the tenth access from the original image bag Corresponding 4th data of the read request;And the 4th data are write by the startup mirror image by the 11st access Bao Zhong;When the intended application is out of service, stop the 4th data write-in startup mirror image bag.
  18. 18. according to the method for claim 17, which is characterized in that the data volume for starting mirror image bag is less than described original The 5% of the data volume of mirror image bag.
  19. 19. a kind of application operation system based on disk, which is characterized in that including:
    Data packet acquisition module, in advance in non-installation targets in application, obtain the intended application startup operation bag and Start mirror image bag, wherein, described to start operation bag for starting the intended application, the startup mirror image bag includes the target The log-on data of application;
    Local cache manager establishes module, when starting the intended application for being wrapped by the startup operation, establishes locally Cache manager, establish the local cache manager with start mirror image bag the first access and, establish local cache manager With the alternate path of server;
    First virtual disk establishes module, is localling create the first virtual disk, establish the local cache manager with it is described The third path of first virtual disk;
    For calling the local cache manager, data are received by the third path for first request of data receiving module Request, the request of data is that first virtual disk is received from the intended application;
    Data acquisition module, for when the request of data is read request, the local cache manager being called, by described First access obtains the first data of the read request from the startup mirror image bag;And/or call the local cache management Device by the alternate path, obtains the first data of the read request from the original image bag of the server;Wherein, The original image bag includes the log-on data of the intended application and operation data;
    Data feedback module, for giving first data feedback to the intended application by the third path, so that institute State intended application operation.
  20. 20. a kind of apply original image bag manufacturing system based on disk, which is characterized in that including:
    Data packet makes manager and establishes module, for establishing the original image bag that data packet makes manager and establishment sky, with And establish the 8th access that the data packet makes manager and the original image bag;
    Second virtual disk establishes module, for localling create the second virtual disk, establishes second virtual disk and institute State the 9th access that data packet makes manager;
    For the data packet to be called to make manager, number is received by the 9th access for second request of data receiving module According to write request, wherein, the data write request is that second virtual disk is obtained from process;
    Original image bag data writing module, for the data packet to be called to make manager, by the 8th access by the number It is write according to corresponding 3rd data of write request in the original image bag, wherein, the 3rd data are the original of intended application The data that data include.
  21. 21. a kind of application based on disk starts mirror image bag manufacturing system, which is characterized in that including:
    Local manager establishes module, for when starting intended application, establishing local manager and establishing local manager With the tenth access of original image bag;
    Start mirror image bag and establish module, establish the empty startup mirror image bag and establish the local manager with starting mirror As the 11st access of bag;
    3rd virtual disk establishes module, for localling create the 3rd virtual disk, establish the local manager with it is described 12nd access of the 3rd virtual disk;
    3rd request of data receiving module, for calling the local manager, receiving data by the 12nd access please It asks, the request of data is that the 3rd virtual disk is received from the intended application;
    Start mirror image bag data writing module, for when the request is read request, calling the local manager, passing through institute It states the tenth access and corresponding 4th data of the read request is obtained from the original image bag;It is and logical by the described 11st It road will be in the 4th data write-in startup mirror image bag;When the intended application is out of service, stop the described 4th The data write-in startup mirror image bag.
CN201611048255.0A 2016-11-21 2016-11-21 It is a kind of that operation method and system are applied based on disk Active CN108089890B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611048255.0A CN108089890B (en) 2016-11-21 2016-11-21 It is a kind of that operation method and system are applied based on disk
PCT/CN2017/078722 WO2018090528A1 (en) 2016-11-21 2017-03-30 Method and system for mirror image package preparation and application operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611048255.0A CN108089890B (en) 2016-11-21 2016-11-21 It is a kind of that operation method and system are applied based on disk

Publications (2)

Publication Number Publication Date
CN108089890A true CN108089890A (en) 2018-05-29
CN108089890B CN108089890B (en) 2019-09-20

Family

ID=62145214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611048255.0A Active CN108089890B (en) 2016-11-21 2016-11-21 It is a kind of that operation method and system are applied based on disk

Country Status (2)

Country Link
CN (1) CN108089890B (en)
WO (1) WO2018090528A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023226314A1 (en) * 2022-05-23 2023-11-30 杨正 Application cache-scalable processing method and apparatus, device and medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113972989B (en) * 2020-07-06 2023-09-15 宇龙计算机通信科技(深圳)有限公司 Data verification method, storage medium and electronic equipment
CN112347167A (en) * 2020-09-30 2021-02-09 长沙市到家悠享网络科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112667361B (en) * 2020-12-31 2023-10-17 北京北信源软件股份有限公司 Management method and device based on system virtual machine, electronic equipment and storage medium
CN112764814B (en) * 2021-01-13 2023-11-10 西藏子墨网络科技有限公司 Method, device, terminal and medium for setting starting memory of mobile terminal
CN112925536B (en) * 2021-03-26 2024-05-10 平安科技(深圳)有限公司 Virtual machine system mirror image processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006163885A (en) * 2004-12-08 2006-06-22 Hitachi Ltd Deploy method, program and server system
CN101452402A (en) * 2008-11-28 2009-06-10 珠海金山软件股份有限公司 Software operation system and software operation method
CN101916172A (en) * 2010-08-17 2010-12-15 中国人民解放军国防科学技术大学 Virtual disk image logic partitioning-based on-demand software distribution method
CN102402446A (en) * 2011-11-22 2012-04-04 成都市华为赛门铁克科技有限公司 Method and device for installing application software

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135892B (en) * 2010-01-22 2015-03-04 广州华多网络科技有限公司 Application program running method, device and system
WO2012146985A2 (en) * 2011-04-28 2012-11-01 Approxy Inc. Ltd. Adaptive cloud-based application streaming
CN104391719A (en) * 2014-11-24 2015-03-04 上海盈方微电子有限公司 Compiling-free fast mirror image customizing method based on Android platform
CN105988809B (en) * 2015-02-13 2019-03-22 广州四三九九信息科技有限公司 A kind of on-line loaded method of game resource and micro- end engine
CN105320578A (en) * 2015-11-09 2016-02-10 青岛海信移动通信技术股份有限公司 Method and apparatus for backing up and recovering APP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006163885A (en) * 2004-12-08 2006-06-22 Hitachi Ltd Deploy method, program and server system
CN101452402A (en) * 2008-11-28 2009-06-10 珠海金山软件股份有限公司 Software operation system and software operation method
CN101916172A (en) * 2010-08-17 2010-12-15 中国人民解放军国防科学技术大学 Virtual disk image logic partitioning-based on-demand software distribution method
CN102402446A (en) * 2011-11-22 2012-04-04 成都市华为赛门铁克科技有限公司 Method and device for installing application software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023226314A1 (en) * 2022-05-23 2023-11-30 杨正 Application cache-scalable processing method and apparatus, device and medium

Also Published As

Publication number Publication date
WO2018090528A1 (en) 2018-05-24
CN108089890B (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN108089888B (en) It is a kind of that operation method and system are applied based on file system
CN108089890B (en) It is a kind of that operation method and system are applied based on disk
CN102200921B (en) Intelligent boot device is selected and recovered
US20240048631A1 (en) Demand resources
CN105446793B (en) The method and apparatus for migrating fictitious assets
CN103312761B (en) System and method for optimizing downloadable content transmission
US5490266A (en) Process oriented logic simulation having stability checking
US11294958B2 (en) Managing a distributed knowledge graph
US20160357538A1 (en) On demand resources
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
US8296119B2 (en) Saving and restarting discrete event simulations
US11762651B2 (en) Software and firmware updates in a combined single pane of glass interface
US20150120674A1 (en) Virtual program installation and state restoration
US11669325B2 (en) Desired state model for managing lifecycle of virtualization software
US11269609B2 (en) Desired state model for managing lifecycle of virtualization software
CN104104645A (en) Cross-platform resource management method and system
US20230342181A1 (en) Validation of combined software/firmware updates
CN107667343A (en) On-demand loading resource
US11182147B2 (en) Deploying virtualization software in a remote cluster
US11640689B1 (en) Emulation pipeline selection and emulation pipeline parameter prediction
US20220179633A1 (en) Desired state model for managing lifecycle of virtualization software installed in heterogeneous cluster of hosts
Legrand et al. [Re] Velho and Legrand (2009)-Accuracy Study and Improvement of Network Simulation in the SimGrid Framework
SGREVA A Practical Approach to Containerization and Distribution of Game Engines
Zheng This page is NOT part of the dissertation/thesis. It should be disabled before making final, formal submission, but should be included in the version submitted for format check.
Zheng The Challenges of Scaling Up High-Throughput Workflow with Container Technology

Legal Events

Date Code Title Description
PB01 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: 435005 Room 202, Unit 22, 28 Xinxia Landscape Avenue, Xiashan District, Huangshi City, Hubei Province

Applicant after: Yang Zheng

Applicant after: Lu Cong

Address before: 100080 Building 207, No. 16, Qingyunbei District, Zhongguancun Street, Haidian District, Beijing

Applicant before: Yang Zheng

Applicant before: Lu Cong

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant