CN102902770B - Method and system for assembling mirror image files - Google Patents

Method and system for assembling mirror image files Download PDF

Info

Publication number
CN102902770B
CN102902770B CN201210364741.9A CN201210364741A CN102902770B CN 102902770 B CN102902770 B CN 102902770B CN 201210364741 A CN201210364741 A CN 201210364741A CN 102902770 B CN102902770 B CN 102902770B
Authority
CN
China
Prior art keywords
assembled
file
software
current
image file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210364741.9A
Other languages
Chinese (zh)
Other versions
CN102902770A (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Neusoft Corp filed Critical Neusoft Corp
Priority to CN201210364741.9A priority Critical patent/CN102902770B/en
Publication of CN102902770A publication Critical patent/CN102902770A/en
Application granted granted Critical
Publication of CN102902770B publication Critical patent/CN102902770B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for assembling mirror image files, wherein the method comprises the following steps: acquiring all assembled files required by current mirror image files according to the assembling requests of the current mirror image files; generating all assembled files to be an orderly assembled file sequence according to preset software dependency relationship and software release dependency relationship; determining the file attribute of each assembled file in the orderly assembled file sequence according to the file layout of the assembled files recorded in the resource library of the assembled files; and assembling each assembled file according to an assembling path in sequence according to the determined file attribute to obtain the current mirror image files. According to the method and the system for assembling mirror image files, the storage of the software dependency relationship and the software release dependency relationship is used for replacing the storage of different mirror image files, and the space required for storing the software dependency relationship and the software release dependency relationship is smaller than the size of a mirror image file; and therefore, a large amount of storage space is saved.

Description

A kind of image file assembling method and system
Technical field
The present invention relates to computer technology, particularly relate to a kind of image file assembling method and system.
Background technology
Under Visualized data centre environment, virtual machine image file (image file) is running software support server running environment file layout on a storage device in virtualized environment.Image file comprises the data of the runtime such as operating system, software dependence, and image file is comparatively large and the time of structure is longer.Frequently copying and building in order to avoid image file, those skilled in the art adopt the form building virtual machine image asset library to store the virtual machine image file of having installed different software usually.User is stored into by image file needed for queries asset library lookup and by described image file to specify on physical server and runs use.
Because image file size is usually in 10GB rank, and dissimilar or same type different editions software asset all needs corresponding independent virtual machine image file just directly can be stored use by user, as " Tomcat5.5+MySQL5.0+Ubuntu10 " and " Tomcat 6+MySQL5.0+Ubuntu10 " just need two virtual machine image file, and the data major part stored in described two image files is identical, this just causes the waste of storage space.
Summary of the invention
Technical matters to be solved by this invention is that the compression realizing image file stores, a kind of image file assembling method and system are provided, to solve in prior art because the identical phenomenon causing data redundancy of data major part stored in multiple image file, and the problem of the waste of storage space that this phenomenon causes.
In order to solve the problems of the technologies described above, the invention provides a kind of image file assembling method and system, the invention provides following technical scheme:
A kind of image file assembling method, the method comprises:
According to all assembled file needed for the current image file of assembled acquisition request of current image file;
According to the software dependence preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one;
According to the assembled file layout recorded in assembled file resource storehouse, determine the file attribute of each assembled file in orderly assembled file sequence;
Successively each assembled file described is carried out assembled to obtain current image file according to described assembled path according to the file attribute determined.
Preferably, the software dependence that described basis is preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one, specifically comprise:
According to the software dependence preset, determine in-degree be zero or closest to zero the assembled file of software type, described in-degree refers to and depends on the assembled file of described software type and the number of other assembled files that exists;
According to the version number of assembled file that the software version dependence preset is determined the assembled file of described software type and relied on;
According to the software dependence preset and described version number, generate the assembled path of current image file;
According to described assembled path by the orderly assembled file sequence of described all assembled file generateds one.
Preferably, the file attribute of described all assembled files at least comprises in image file, mirror snapshot and software package.
Preferably, each assembled file described carries out assembled to obtain current image file by the described file attribute according to determining successively according to described assembled path, specifically comprise:
According to first assembled file in the orderly assembled file sequence of described assembled path reading as current assembled file, enter current assembled file processing flow process, described current assembled file processing flow process comprises:
Whether the file attribute judging described current assembled file is mirror image, if mirror image, then from explorer, searches the assembled image file that described current assembled file is corresponding, and is installed in current image file to be assembled by described assembled image file;
If not mirror image, whether the file attribute then judging described current assembled file is snapshot, if snapshot, then from explorer, search the assembled snapshot document that described current assembled file is corresponding, and described assembled snapshot document is installed in current image file to be assembled;
If not snapshot, then from explorer, search the software package that described current assembled file is corresponding, and described software package is installed in current image file to be assembled;
Judge whether the assembled file in described orderly assembled file sequence is read all, if not, then according to assembled path, read the assembled file of the next one of current assembled file described in described orderly assembled file set as current assembled file, perform the step whether described file attribute judging current assembled file is mirror image, until the assembled file in described orderly assembled file sequence is read all.
Preferably, each assembled file described carries out assembled to obtain current image file by the described file attribute according to determining successively according to described assembled path, afterwards, also comprise:
Described current image file is sent in the server of specifying in the assembled request of described current image file and runs, to start virtual unit corresponding to described current image file.
A kind of image file assembling system, described system comprises:
Acquiring unit, for all assembled file of root needed for the current image file of assembled acquisition request of current image file;
Sequence generating unit, for according to the software dependence preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one;
Attribute determining unit, for according to the assembled file layout recorded in assembled file resource storehouse, determines the file attribute of each assembled file in orderly assembled file sequence;
Assembled unit, for carrying out assembled to obtain current image file by each assembled file described successively according to the file attribute determined according to described assembled path.
Preferably, described sequence generating unit comprises:
Determine subelement, for according to the software dependence preset, determine in-degree be zero or closest to zero the assembled file of software type, described in-degree refers to and depends on the assembled file of described software type and the number of other assembled files that exists;
Version determination subelement, for the version number of assembled file determining the assembled file of described software type according to the software version dependence preset and rely on;
Coordinates measurement subelement, for according to the software dependence preset and described version number, generates the assembled path of current image file;
Generate subelement, for according to described assembled path by the orderly assembled file sequence of described all assembled file generateds one.
Preferably, the file attribute of described all assembled files at least comprises in image file, mirror snapshot and software package.
Preferably, described assembled unit comprises:
Read subelement, for according to described assembled path, read first assembled file in orderly assembled file sequence as current assembled file;
Process subelement, for performing current assembled file processing flow process, described current assembled file processing flow process comprises:
Whether the file attribute judging described current assembled file is mirror image, if mirror image, then from explorer, searches the assembled image file that described current assembled file is corresponding, and is installed in current image file to be assembled by described assembled image file;
If not mirror image, whether the file attribute then judging described current assembled file is snapshot, if snapshot, then from explorer, search the assembled snapshot document that described current assembled file is corresponding, and described assembled snapshot document is installed in current image file to be assembled;
If not snapshot, then from explorer, search the software package that described current assembled file is corresponding, and described software package is installed in current image file to be assembled;
Judge whether the assembled file in described orderly assembled file sequence is read all, if not, then according to assembled path, read the assembled file of the next one of current assembled file described in described orderly assembled file sequence as current assembled file, perform the step whether described file attribute judging current assembled file is mirror image, until the assembled file in described orderly assembled file sequence is read all.
Preferably, described system also comprises:
Running unit, runs for being sent to by described current image file in the server of specifying in the assembled request of described current image file, to start virtual unit corresponding to described current image file.
In the present invention, the software dependence preset and software version dependence are according to dissimilar, the general character of the software of different editions, to remove after redundancy abstract out, so compared with prior art, the present invention does not need to store corresponding to dissimilar, the image file of the software resource of different editions, but by dissimilar, software dependence and the software version dependence of different editions store, correspond to dissimilar when needs according to the assembled generation of described dependence, the image file of the software resource of different editions, because store dissimilar, the software dependence of different editions and the space needed for software version dependence will be far smaller than the size of an image file, so save a large amount of storage spaces.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the assembling method embodiment 1 of a kind of image file of the present invention;
Fig. 2 is the software dependence graph that the present invention adopts;
Fig. 3 is the software version dependence graph that the present invention adopts;
Fig. 4 is the process flow diagram of the assembling method embodiment 2 of a kind of image file of the present invention;
Fig. 5 is the structural representation of the assembling system embodiment of a kind of image file of the present invention;
Fig. 6 is the structural representation of sequence generating unit in system embodiment;
Fig. 7 is the structural representation of assembled unit in present system embodiment;
Fig. 8 is the present invention's a kind of structural representation in actual applications.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Shown in figure 1, be the process flow diagram of the assembling method embodiment 1 of a kind of image file of the present invention, the present embodiment specifically can comprise:
Step 101: according to all assembled file needed for the current image file of assembled acquisition request of current image file.
User will generate the image file of the software corresponding to certain type, the software of certain type could be used, and if the image file of the software corresponding to certain type will be generated, first the assembled request of the image file corresponding to the type software and version thereof will be generated, what described assembled request was defined as required by user comprises required software type and version information, have the message bag of certain format, described assembled request generates by graphical tools or text editor.
Step 102: according to the software dependence preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one.
Described software dependence be generality abstract when installing according to dissimilar software out, can represent that dissimilar software needs erection sequence and the dependence of the related software followed when mounted.Software dependence citing when taking software type as Tomcat and MySQL is described, shown in figure 2, Fig. 2 is the schematic diagram of software dependence, lines all in Fig. 2 can be called directed edge, described directed edge represents erection sequence between different software resource and dependence, such as, the installation of Tomcat and MySQL will rely on Ubuntu, Redhat OS or CentOS.
In Fig. 2, each rectangle can be regarded as a node, the different software resource of different node on behalf, wherein out-degree is the storage class of the software resource of the node on behalf of 0 is image file, described out-degree be 0 node refer to the number of the directed edge originating in described node, such as, originate in node Ubuntu, the number of the directed edge of Redhat OS and CentOS is zero, end at node Ubuntu, the number of the directed edge of Redhat OS and CentOS is 2, so node Ubuntu, Redhat OS and CentOS to be all out-degree be 0 node, in the software dependence shown in Fig. 2, find in-degree to be the node of zero or nearest connecting to neutral, described in-degree is the assembled file of node on behalf software type of zero or nearest connecting to neutral, described in-degree refers to the number of the directed edge ending at node, according to in-degree be zero or the assembled Archive sit of software type of nearest connecting to neutral search software version dependence graph, determine the version number of the assembled file of the assembled file of software type and dependence thereof, in Fig. 2 in-degree be zero or the assembled Archive sit of software type of nearest connecting to neutral be Tomcat and MySQL.
The assembled file being Tomcat and dependence thereof for the assembled file of software type is for Ubuntu, shown in figure 3, Fig. 3 is the schematic diagram of software version dependence, and software version dependence can represent the dependence of concrete version between complementary software.As shown in Figure 3, the version of Tomcat has V5.0, V5.5 and V6.0, wherein the installation of version V5.0 depends on the Ubuntu that version is V10, V11.04, when user needs mounting software time, the version of software is determined, the version of the assembled file that the assembled file of software type to be installed relies on can be determined according to the software version dependence preset, if do not comprise the version of the software that this is installed in the software version dependence provided, then the random version determining the software that this mounting software relies on according to software version dependence.
Software dependence so according to Fig. 2 and the version number of assembled file determined, determine that the principle in the assembled path of an image file is any one and comprises the simple path that out-degree is the node of zero, an image file will be generated as shown in Figure 2, determine more than one of the assembled path possibility of the image file that will generate, in actual applications, one can be selected according to actual needs as final assembled path in multiple assembled path, will carry out according to described assembled path when an assembled image file orderly assembled.
Referring to figs. 2 and 3 the principle generating assembled path, when generating current image file, the assembled path generating described current image file can be determined according to concrete software dependence and software version dependence, and according to the assembled path of described current image file by the orderly assembled file sequence of described all assembled file generateds one.
Step 103: according to the assembled file layout recorded in assembled file resource storehouse, determines the file attribute of each assembled file in orderly assembled file sequence.
All available assembled image files, assembled snapshot and assembled software package is have recorded in assembled file resource storehouse, that is the file layout of assembled file is image file, snapshot and software package, using the file attribute of the file layout of described assembled file as assembled file.
Step 104: successively each assembled file described is carried out assembled to obtain current image file according to described assembled path according to the file attribute determined.
After determining the file attribute of each assembled file, can according to the assembled path of current image file, successively by assembled for each assembled file described in current image file to obtain current image file.
In the technical scheme of the present embodiment, the software dependence preset and software version dependence are according to dissimilar, the general character of the software of different editions, to remove after redundancy abstract out, so compared with prior art, the present invention does not need to store corresponding to dissimilar, the image file of the software resource of different editions, but by dissimilar, software dependence and the software version dependence of different editions store, correspond to dissimilar when needs according to the assembled generation of described dependence, the image file of the software resource of different editions, because store dissimilar, the software dependence of different editions and the space needed for software version dependence will be far smaller than the size of an image file, so save a large amount of storage spaces.
Shown in figure 4, be a kind of process flow diagram of assembling method embodiment 2 of image file, the present embodiment can be regarded as a specific implementation of embodiment 1, and the present embodiment specifically can comprise:
Step 401: according to all assembled file needed for the current image file of assembled acquisition request of current image file.
Step 402: the software dependence according to presetting determines initial assembled path.
Step 403: according to the software version dependence preset, determine the version number of the assembled file of the assembled file of software type and dependence thereof.
Step 404: the assembled path of object determining the assembled file of current mirror image according to initial assembled path and version number.
Step 405: according to described assembled path by the orderly assembled file sequence of described all assembled file generateds one.
Step 406: the file attribute obtaining each assembled file in described orderly assembled file sequence.The implementation realizing the step 101 ~ step 103 in reference example 1 of step 401 ~ step 406 in the present embodiment, repeat no more herein, after all assembled file wherein obtained needed for current image file in step 401, further, all described assembled files can be searched in assembled file resource storehouse, if any one the assembled file in all assembled files not in assembled file resource storehouse, then terminates the assembled flow process of current image file.
Step 407: according to the file attribute of each assembled file, obtains current image file according to assembled path is assembled.
The specific implementation of this step can comprise following sub-step:
Sub-step A1: read current image file.
Wherein the acquisition of current image file is specially: according to first assembled file in the orderly assembled file sequence of described assembled path reading as current assembled file.
Sub-step A2: whether the file attribute judging described current assembled file is mirror image, if mirror image, then enters sub-step A3, if not mirror image, then enters sub-step A4.
Sub-step A3: search assembled image file corresponding to described current assembled file and install.
Being implemented as of this step: search the assembled image file that described current assembled file is corresponding from explorer, after finding, is installed to described assembled image file in current image file to be assembled.
Sub-step A4: whether the file attribute judging described current assembled file is snapshot, if snapshot, then enters sub-step A5, if not snapshot, then enters sub-step A6.
Sub-step A5: search assembled snapshot document corresponding to described current assembled file and install.
Being implemented as of this step: from explorer, after finding, is installed to described assembled snapshot document in current image file to be assembled.
Sub-step A6: search software package corresponding to described current assembled file and install.
Being implemented as of this step: search the software package that described current assembled file is corresponding from explorer, after finding, is installed to described software package in current image file to be assembled.
Sub-step A7: judge whether the assembled file in described orderly assembled file sequence is read all, if so, then terminates, if not, then enters sub-step A8.
Sub-step A8: according to assembled path, the assembled file of the next one reading current assembled file described in described orderly assembled file set, as current assembled file, returns sub-step A2.
Execute sub-step A1 ~ A8, assembled current image file can be obtained.Return the embodiment 2 shown in Fig. 4 again, enter step 408.
Step 408: run current image file.
Described current image file is sent in the server of specifying in the assembled request of described current image file and runs, to start virtual unit corresponding to described current image file.
In the technical scheme of the present embodiment, the software dependence preset and software version dependence are according to dissimilar, the general character of the software of different editions, to remove after redundancy abstract out, so compared with prior art, the present invention does not need to store corresponding to dissimilar, the image file of the software resource of different editions, but by dissimilar, software dependence and the software version dependence of different editions store, correspond to dissimilar when needs according to the assembled generation of described dependence, the image file of the software resource of different editions, because store dissimilar, the software dependence of different editions and the space needed for software version dependence will be far smaller than the size of an image file, so save a large amount of storage spaces.
Shown in figure 5, Fig. 5 is a kind of structural representation of image file assembling system, and described system comprises:
Acquiring unit 510, for all assembled file needed for the current image file of assembled acquisition request of current image file;
Sequence generating unit 520, for according to the software dependence preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one;
Attribute determining unit 530, for according to the assembled file layout recorded in assembled file resource storehouse, determines the file attribute of each assembled file in orderly assembled file sequence;
Assembled unit 540, for carrying out assembled to obtain current image file by each assembled file described successively according to the file attribute determined according to described assembled path.
In actual applications, shown in figure 6, be the structured flowchart of described sequence generating unit 520, described sequence generating unit 520 specifically can comprise:
Determine subelement 610, for according to the software dependence preset, determine in-degree be zero or closest to zero the assembled file of software type, described in-degree refers to and depends on the assembled file of described software type and the number of other assembled files that exists;
Version determination subelement 620, for the version number of assembled file determining the assembled file of described software type according to the software version dependence preset and rely on;
Coordinates measurement subelement 630, for according to the software dependence preset and described version number, generates the assembled path of current image file;
Generate subelement 640, for according to described assembled path by the orderly assembled file sequence of described all assembled file generateds one.
In actual applications, shown in figure 7, be the structured flowchart of described assembled unit 540, described assembled unit 540 specifically can comprise:
Read subelement 710, for according to described assembled path, read first assembled file in orderly assembled file sequence as current assembled file;
Process subelement 720, for performing current assembled file processing flow process, the specific implementation refer step 407 of described front assembled file processing flow process, repeats no more herein.
Further, described system can also comprise:
Running unit, runs for being sent to by described current image file in the server of specifying in the assembled request of described current image file, to start virtual unit corresponding to described current image file.
In actual applications, the specific implementation of the embodiment of the present invention can have been come by the structure shown in Fig. 8, comprising:
Analysis module 810, for parsing all image files needed for assembled current image file from assembled request;
Statement of assets 820, for providing all assembled file directory available on memory device, for other module provides document retrieval function;
Meta data manager 830, for the metadata stored in management database, for other module provides resource query and figure search function;
Asset metadata repository 840, for recording the version dependence graph between all available image files, snapshot, software package resource description and dissimilar resource between dependence graph, complementary resource;
Assembled server 850, for assembled current image file;
Explorer 860, for the image file of managed storage on dissimilar memory device, snapshot and software package resource, can provide resource query and read functions for other module.
In the technical scheme of the present embodiment, the software dependence preset and software version dependence are according to dissimilar, the general character of the software of different editions, to remove after redundancy abstract out, so compared with prior art, the present invention does not need to store corresponding to dissimilar, the image file of the software resource of different editions, but by dissimilar, software dependence and the software version dependence of different editions store, correspond to dissimilar when needs according to the assembled generation of described dependence, the image file of the software resource of different editions, because store dissimilar, the software dependence of different editions and the space needed for software version dependence will be far smaller than the size of an image file, so save a large amount of storage spaces.
It should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
For system embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. an image file assembling method, is characterized in that, comprising:
According to all assembled file needed for the current image file of assembled acquisition request of current image file;
According to the software dependence preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one;
According to the assembled file layout recorded in assembled file resource storehouse, determine the file attribute of each assembled file in orderly assembled file sequence;
Successively each assembled file described is carried out assembled to obtain current image file according to assembled path according to the file attribute determined;
Wherein, the software dependence that described basis is preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one, specifically comprise:
According to the software dependence preset, determine in-degree be zero or closest to zero the assembled file of software type, described in-degree refers to and depends on the assembled file of described software type and the number of other assembled files that exists;
According to the version number of assembled file that the software version dependence preset is determined the assembled file of described software type and relied on;
According to the software dependence preset and described version number, generate the assembled path of current image file;
According to described assembled path by the orderly assembled file sequence of described all assembled file generateds one.
2. method according to claim 1, is characterized in that, the file attribute of described all assembled files at least comprises one in image file, mirror snapshot and software package.
3. method according to claim 1, is characterized in that, each assembled file described carries out assembled to obtain current image file by the described file attribute according to determining successively according to described assembled path, specifically comprise:
According to first assembled file in the orderly assembled file sequence of described assembled path reading as current assembled file, enter current assembled file processing flow process, described current assembled file processing flow process comprises:
Whether the file attribute judging described current assembled file is mirror image, if mirror image, then from explorer, searches the assembled image file that described current assembled file is corresponding, and is installed in current image file to be assembled by described assembled image file;
If not mirror image, whether the file attribute then judging described current assembled file is snapshot, if snapshot, then from explorer, search the assembled snapshot document that described current assembled file is corresponding, and described assembled snapshot document is installed in current image file to be assembled;
If not snapshot, then from explorer, search the software package that described current assembled file is corresponding, and described software package is installed in current image file to be assembled;
Judge whether the assembled file in described orderly assembled file sequence is read all, if not, then according to assembled path, read the assembled file of the next one of current assembled file described in described orderly assembled file set as current assembled file, perform the step whether described file attribute judging current assembled file is mirror image, until the assembled file in described orderly assembled file sequence is read all.
4. method according to claim 1, is characterized in that, each assembled file described carries out assembled to obtain current image file by the described file attribute according to determining successively according to described assembled path, afterwards, also comprise:
Described current image file is sent in the server of specifying in the assembled request of described current image file and runs, to start virtual unit corresponding to described current image file.
5. an image file assembling system, is characterized in that, described system comprises:
Acquiring unit, for all assembled file of root needed for the current image file of assembled acquisition request of current image file;
Sequence generating unit, for according to the software dependence preset and software version dependence, by the orderly assembled file sequence of described all assembled file generateds one;
Attribute determining unit, for according to the assembled file layout recorded in assembled file resource storehouse, determines the file attribute of each assembled file in orderly assembled file sequence;
Assembled unit, for carrying out assembled to obtain current image file by each assembled file described successively according to the file attribute determined according to assembled path;
Wherein, described sequence generating unit comprises:
Determine subelement, for according to the software dependence preset, determine in-degree be zero or closest to zero the assembled file of software type, described in-degree refers to and depends on the assembled file of described software type and the number of other assembled files that exists;
Version determination subelement, for the version number of assembled file determining the assembled file of described software type according to the software version dependence preset and rely on;
Coordinates measurement subelement, for according to the software dependence preset and described version number, generates the assembled path of current image file;
Generate subelement, for according to described assembled path by the orderly assembled file sequence of described all assembled file generateds one.
6. system according to claim 5, is characterized in that, the file attribute of described all assembled files at least comprises one in image file, mirror snapshot and software package.
7. system according to claim 5, is characterized in that, described assembled unit comprises:
Read subelement, for according to described assembled path, read first assembled file in orderly assembled file sequence as current assembled file;
Process subelement, for performing current assembled file processing flow process, described current assembled file processing flow process comprises:
Whether the file attribute judging described current assembled file is mirror image, if mirror image, then from explorer, searches the assembled image file that described current assembled file is corresponding, and is installed in current image file to be assembled by described assembled image file;
If not mirror image, whether the file attribute then judging described current assembled file is snapshot, if snapshot, then from explorer, search the assembled snapshot document that described current assembled file is corresponding, and described assembled snapshot document is installed in current image file to be assembled;
If not snapshot, then from explorer, search the software package that described current assembled file is corresponding, and described software package is installed in current image file to be assembled;
Judge whether the assembled file in described orderly assembled file sequence is read all, if not, then according to assembled path, read the assembled file of the next one of current assembled file described in described orderly assembled file sequence as current assembled file, perform the step whether described file attribute judging current assembled file is mirror image, until the assembled file in described orderly assembled file sequence is read all.
8. system according to claim 5, is characterized in that, also comprises:
Running unit, runs for being sent to by described current image file in the server of specifying in the assembled request of described current image file, to start virtual unit corresponding to described current image file.
CN201210364741.9A 2012-09-26 2012-09-26 Method and system for assembling mirror image files Expired - Fee Related CN102902770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210364741.9A CN102902770B (en) 2012-09-26 2012-09-26 Method and system for assembling mirror image files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210364741.9A CN102902770B (en) 2012-09-26 2012-09-26 Method and system for assembling mirror image files

Publications (2)

Publication Number Publication Date
CN102902770A CN102902770A (en) 2013-01-30
CN102902770B true CN102902770B (en) 2015-04-15

Family

ID=47575002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210364741.9A Expired - Fee Related CN102902770B (en) 2012-09-26 2012-09-26 Method and system for assembling mirror image files

Country Status (1)

Country Link
CN (1) CN102902770B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942292A (en) * 2014-04-11 2014-07-23 华为技术有限公司 Virtual machine mirror image document processing method, device and system
CN105446757B (en) * 2014-08-21 2019-09-17 阿里巴巴集团控股有限公司 A kind of processing method and equipment of data packet
CN105955674B (en) * 2016-06-16 2019-02-12 北京航空航天大学 The quick assemble method of magnetic disk of virtual machine mirror moduleization, device and system
CN110427226A (en) * 2019-08-09 2019-11-08 杭州安恒信息技术股份有限公司 A kind of method and apparatus that quick release program relies on
CN113867778B (en) * 2021-09-18 2024-08-16 苏州浪潮智能科技有限公司 Image file generation method and device, electronic equipment and storage medium
CN114217908B (en) * 2022-02-23 2022-07-15 广州趣丸网络科技有限公司 Container starting method, system, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514361A (en) * 2002-12-31 2004-07-21 北京科泰世纪科技有限公司 Construction member self description packaging method and method of operation
CN101207633A (en) * 2006-12-21 2008-06-25 英业达股份有限公司 System and method for selecting function customization of network memory system
CN101501637A (en) * 2005-03-25 2009-08-05 索尼株式会社 Modular imaging download system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124355A1 (en) * 2010-11-11 2012-05-17 Sumant Kumar Patro Single volume image file extraction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514361A (en) * 2002-12-31 2004-07-21 北京科泰世纪科技有限公司 Construction member self description packaging method and method of operation
CN101501637A (en) * 2005-03-25 2009-08-05 索尼株式会社 Modular imaging download system
CN101207633A (en) * 2006-12-21 2008-06-25 英业达股份有限公司 System and method for selecting function customization of network memory system

Also Published As

Publication number Publication date
CN102902770A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN102902770B (en) Method and system for assembling mirror image files
US8738673B2 (en) Index partition maintenance over monotonically addressed document sequences
CN102932415B (en) Method and device for storing mirror image document
CN103078945B (en) To the method and system that browser crash data processes
CN102930035A (en) Driving content items from multiple different content sources
US10540325B2 (en) Method and device for identifying junk picture files
US9659021B1 (en) Client based backups and backup indexing
CN111241203A (en) Hive data warehouse synchronization method, system, equipment and storage medium
CN103425785A (en) Data storage system and user data storage and reading method thereof
CN113448938A (en) Data processing method and device, electronic equipment and storage medium
CN111240892B (en) Data backup method and device
CN106547646B (en) Data backup and recovery method and data backup and recovery device
CN105183789A (en) File merging method and system based on git source code confliction
CN113760847A (en) Log data processing method, device, equipment and storage medium
CN106339415A (en) Data checking method, device and system
US20050114834A1 (en) Grid-enabled ANT compatible with both stand-alone and grid-based computing systems
CN111552438B (en) Method, device, server and storage medium for writing object
CN116069725A (en) File migration method, device, apparatus, medium and program product
US9258258B2 (en) Implementing injection of formal numerical message identifiers in cloud stacks
US20150293938A1 (en) Replacing virtual file system data structures deleted by a forced unmount
EP2819028A2 (en) Content management system
CN104285221A (en) Efficient in-place preservation of content across content sources
US20120150898A1 (en) Dynamic Collection Of System Support Files In A Data Processing Environment
US11138075B2 (en) Method, apparatus, and computer program product for generating searchable index for a backup of a virtual machine
CN113312314A (en) Method, device and equipment for android platform repeated file retrieval

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150415

Termination date: 20210926

CF01 Termination of patent right due to non-payment of annual fee