CN110519355A - Issue method, system, equipment and the storage medium of OVA the file information - Google Patents

Issue method, system, equipment and the storage medium of OVA the file information Download PDF

Info

Publication number
CN110519355A
CN110519355A CN201910760799.7A CN201910760799A CN110519355A CN 110519355 A CN110519355 A CN 110519355A CN 201910760799 A CN201910760799 A CN 201910760799A CN 110519355 A CN110519355 A CN 110519355A
Authority
CN
China
Prior art keywords
file
ova
subfile
host side
data content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910760799.7A
Other languages
Chinese (zh)
Inventor
方浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN201910760799.7A priority Critical patent/CN110519355A/en
Publication of CN110519355A publication Critical patent/CN110519355A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of methods for issuing OVA the file information, are applied in server, OVA file is made of multinomial subfile, comprising: the first inquiry instruction that receiving host end is sent;Read the file name and file size for corresponding to each single item subfile of OVA file of the first inquiry instruction;In the way of file stream, the file name of the every subfile read out and file size are successively sent to host side, so that host side gets OVA the file information.Using the scheme of the application, when advantageously reducing server and issuing OVA the file information, more degree of the memory space of caused host side are occupied.Disclosed herein as well is a kind of system for issuing OVA the file information, equipment and storage mediums, have corresponding effect.

Description

Issue method, system, equipment and the storage medium of OVA the file information
Technical field
The present invention relates to server technology fields, more particularly to a kind of method for issuing OVA the file information, system, set Standby and storage medium.
Background technique
OVA (Open Virtualization Appliance, open virtual equipment) is a kind of cloud computing and server A kind of data format being commonly used under virtual platform, the file of the format is by DMTF (Distributed Management Task Force, distributed management task group) definition includes all information required for for disposing virtual machine.
OVA file is a compressed package, i.e. a tar packet, generally includes virtual disk files, OVF (Open Virtualization Format, open virtualization format) file and mf file.Wherein virtual disk files are virtual machines Data storage file;OVF file is the relevant configuration file of virtual machine, and main includes virtual disk, memory and the CPU of virtual machine Configuration, network configuration, OS Type etc.;Mf file is the set to SHA such as virtual disk files, OVF files, main to use In preventing image file from being distorted by illegal user.
OVA file is generally placed in shared server, is used in order to which OVA file can be downloaded by multiple main frames. But in many occasions, host side does not need to use entire OVA file, but only that knowing each in OVA file The title and corresponding file size of item file, or only need using partial data therein, such as only need to obtain Take virtual disk files therein.And in traditional scheme, host side be directly by entire OVA file download to local, then Carry out local parsing, finally analytically after file in obtain the data of needs.Such scheme can occupy double in host side Memory space, that is, need to store the every subfile obtained after a complete OVA file and the OVA document analysis, example Such as parse storage virtual disk files, OVF file and mf file.Especially only needing to utilize the items in OVA file In the occasion of the title of file and corresponding file size, or need concurrently to obtain the occasion of the information of multiple OVA files In, such scheme will lead to the excessive occupancy of great memory space, and the function of causing host side to obtain OVA the file information is tight It is limited again.
In conclusion when how to reduce server and issuing OVA the file information, more degree of the memory space of caused host side It occupies, is current those skilled in the art technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide a kind of method for issuing OVA the file information, system, equipment and storage mediums, with drop When low server issues OVA the file information, more degree of the memory space of caused host side are occupied.
In order to solve the above technical problems, the invention provides the following technical scheme:
A method of OVA the file information is issued, is applied in server, OVA file is made of multinomial subfile, packet It includes:
The first inquiry instruction that receiving host end is sent;
File name and the file for reading each single item subfile of OVA file for corresponding to first inquiry instruction are big It is small;
In the way of file stream, successively the file name of the every subfile read out and file size are sent to The host side, so that the host side gets OVA the file information.
Preferably, further includes:
Receive the second inquiry instruction for any one subfile in the OVA file;
Since the initial position of this subfile, the data content that this subfile is obtained in the way of file stream is straight Extremely the reading of this subfile is finished, and carries out data parsing in each read, and after parsing according to preset agreement Data content after each parsing is issued to the host side.
Preferably, further includes:
Receive the download instruction for being directed to the OVA file;
According to preset order, target subfile is selected in the subfile to be issued from items;
The data content of the target subfile is obtained in the way of file stream, and after parsing, according to preset Data content after each parsing is issued to the host side by agreement;
It returns and executes described according to preset order, the behaviour of target subfile is selected in the subfile to be issued from items Make, until every subfile in the OVA file was selected primary conduct target subfile, to complete the OVA text Part issues.
It is preferably, described that the data content after each parsing is issued to the host side according to preset agreement, comprising:
When issuing data content every time, data name belonging to the data content that this time issues is issued in advance, the data The size of data of the data start of content and the data content, then the host side will be issued in the secondary data.
Preferably, it is described receive the download instruction for the OVA file after, it is described according to preset order, from each Before selecting target subfile in subfile to be issued, further includes:
Detecting the host side whether there is the file of the same name for the every subfile being directed in the OVA file;
If there is the file of the same name of at least one subfile, then output error prompt information;
If it is not, then executing described according to preset order, target subfile is selected in the subfile to be issued from items Operation.
Preferably, the data content that the target subfile is obtained in the way of file stream, comprising:
The data content of the target subfile is obtained in the way of file stream, and the data content obtained every time is big It is small to be lower than preset network transmission threshold limit.
A kind of system issuing OVA the file information is applied in server, and OVA file is made of multinomial subfile, packet It includes:
First inquiry instruction receiving module, the first inquiry instruction sent for receiving host end;
First read module, for reading each single item subfile for corresponding to the OVA file of first inquiry instruction File name and file size;
First issues module, in the way of file stream, successively by the file name of the every subfile read out And file size is sent to the host side, so that the host side gets OVA the file information.
Preferably, further includes:
Second inquiry instruction receiving module, for receiving the second of any one subfile being directed in the OVA file Inquiry instruction;
Second issues module, for obtaining this in the way of file stream since the initial position of this subfile The data content of subfile is until the reading of this subfile is finished, and carry out data parsing in each read, and parsing The data content after each parsing is issued to the host side according to preset agreement later.
A kind of equipment issuing OVA the file information, comprising:
Memory, for storing computer program;
Processor realizes for executing the computer program OVA the file information described in any of the above embodiments that issues The step of method.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described The step of method described in any of the above embodiments for issuing OVA the file information is realized when computer program is executed by processor.
In the scheme of the application, when host side only needs to obtain the text of each single item subfile of the OVA file in server When part title and file size, entire OVA file can't be issued to host side, but host side hair is being read by server After the first inquiry instruction sent, the filename of each single item subfile of the OVA file corresponding to the first inquiry instruction is read out Title and file size, and then in the way of file stream, successively by the file name and text of the every subfile read out Part size is sent to host side, so that host side is available to arrive OVA the file information.Therefore, the scheme of the application is advantageous When reduction server issues OVA the file information, more degree of the memory space of caused host side are occupied.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart for the method for issuing OVA the file information in the present invention;
Fig. 2 is a kind of structural schematic diagram for the system for issuing OVA the file information in the present invention;
Fig. 3 is a kind of structural schematic diagram for the equipment for issuing OVA the file information in the present invention.
Specific embodiment
Core of the invention is to provide a kind of method for issuing OVA the file information, advantageously reduces server and issues OVA text When part information, more degree of the memory space of caused host side are occupied.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of implementation flow chart for the method for issuing OVA the file information in the present invention, this is issued The method of OVA the file information is applied in server, may comprise steps of:
Step S101: the first inquiry instruction that receiving host end is sent.
First inquiry instruction can be defined as to IOVA instruction, i.e. inquire OVA instruction.Received server-side is to host After holding the first inquiry instruction sent, the operation of step S102 can be executed.
Certainly, host side needs to pre-establish the communication connection with server, could be successfully transmitted the first inquiry instruction To server.When host side is established with the communication connection of server, IP, the port, use of server can be inputted in host side The information such as name in an account book and login password communicate to connect to establish.In addition, the communication protocol that server is taken is different, the communication of foundation Connection can be adaptably different.Such as server typically FTP (File Transfer Protocol, file transmission Agreement) server can also have the server of other forms certainly in other occasions.
Step S102: read correspond to the first inquiry instruction OVA file each single item subfile file name and File size.
It will include the information such as the OVA file name for needing to issue in first inquiry instruction.OVA file is by multinomial subfile structure At in most of occasion, by virtual disk files, OVF file and mf file are constituted.In small part occasion, can also exist More subfiles, such as there is also ios image files.It is emphasized that OVA file is made of multinomial subfile, not It is to say for these subfiles to be placed in a file just to constitute OVA file, but need these subfiles according to default Format compressed, compressed compressed package become OVA format file.
The organized formats of OVA file can be shown in Table one.
Table one:
File Header File Content …… File Header File Content
When OVA file is by virtual disk files, OVF file and this 3 subfiles compositions of mf file, then there are 3 The part File Header and the part corresponding 3 File Content.
The part File Header mainly including file name, size, permission control, uname, gname, file creation, The information such as modification time, the part File Content are the data storage of corresponding resource, the i.e. specific file content of subfile.
Server can find OVA file required for host side according to the content of the first inquiry instruction, and then inquiring should The file name and file size of each single item subfile of OVA file.Such as the OVA file has 3 portions File Header Point and the part corresponding 3 File Content, then can be read out from the 1st File Header of OVA top of file Then the file name and file size of first item subfile skip the File Content of the 1st subfile, then from The file name and file size of Section 2 subfile are read out in 2 File Header, finally from the 3rd File The file name and file size of Section 3 subfile are read out in Header.
Step S103: in the way of file stream, successively by the file name and file of the every subfile read out Size is sent to host side, so that host side gets OVA the file information.
It is big in the file name and file for reading out each single item subfile of the OVA file corresponding to the first inquiry instruction It after small, needs according to file stream, or the mode of referred to as data flow, successively by the file name of the every subfile read out And file size is sent to host side.Such as in a kind of specific occasion, transformat is as shown in Table 2.
Table two:
File name File size …… File name File size
File name can usually use 16 systems, and 128 bytes are transmitted, and file size can usually use 16 System, 16 bytes are transmitted, i.e., host side receives 128+16=144 bytes every time.Certainly, in other occasions, text Space occupied by part title and file size can be set and be adjusted according to actual needs.
In the scheme of the application, when host side only needs to obtain the text of each single item subfile of the OVA file in server When part title and file size, entire OVA file can't be issued to host side, but host side hair is being read by server After the first inquiry instruction sent, the filename of each single item subfile of the OVA file corresponding to the first inquiry instruction is read out Title and file size, and then in the way of file stream, successively by the file name and text of the every subfile read out Part size is sent to host side, so that host side is available to arrive OVA the file information.Therefore, the scheme of the application is advantageous When reduction server issues OVA the file information, more degree of the memory space of caused host side are occupied.
In a kind of specific embodiment of the invention, can also include:
Step 1: the download instruction for being directed to OVA file is received;
Step 2: according to preset order, target subfile is selected in the subfile to be issued from items;
Step 3: obtaining the data content of target subfile, and after parsing in the way of file stream, according to default Agreement the data content after each parsing is issued to host side;
Step 4: returning to step two operation, until every subfile in OVA file was selected primary work For target subfile, to complete issuing for OVA file.
Aforementioned four step is described collectively convenient for description.
Download instruction can be defined as to DOVA instruction, i.e. download OVA instruction.Received server-side is to host side After the download instruction of transmission, the operation of step 2 can be executed.Certainly, host side needs to pre-establish logical with server Letter connection.It would generally include the information such as the file name of OVA for needing to download in the download instruction.
Preset sequence can arbitrarily be set in advance by staff, and be can according to need and be adjusted, such as set Fixed sequence are as follows: preferentially issue virtual disk files, i.e., preferentially select virtual disk files as target subfile, later under Send out OVF file, finally issue mf file, i.e., virtual disk files issue finish after, choose OVF file as target Ziwen Part finally chooses mf file as target subfile.For another example, preset sequence are as follows: preferential OVF file of choosing is as target Ziwen Part, later mf file, last virtual disk files.
After selecting target subfile, need to obtain the data content of target subfile in the way of file stream, and After parsing, the data content after each parsing is issued to host side according to preset agreement.
Such as the target subfile selected is virtual disk files, then virtual disk text is obtained in the way of file stream The data content of part, the data content include the File Header of the virtual disk files and File of virtual disk files Content.The File Header of target subfile usually can be first issued, then issues the File Content of target subfile, Certainly, either File Header or File Content is to obtain and parse to issue in the way of file stream.
When issuing the data content of each single item subfile, server needs the inquiry respective text of each single item subfile in advance Part initial position, so as to since the initial position of this subfile, carry out data distributing in the way of file stream, and And need to inquire the file size of every subfile in advance, so that server can know whether all to issue this subfile It finishes.
Further, since being issued in the way of file stream, it usually needs inform host side by dependent instruction This data issued specific location locating in subfile, that is, need to be issued according to scheduled agreement, such as can be with It is issued according to the transport protocol of table 3.
Table three:
Data name Data start position Size of data Data content
Such as when data content in the File Header for issuing virtual disk files, data name is virtual magnetic The File Header of disk file.When issuing the data content in the File Header of virtual disk files for the first time, data are opened Beginning position is the initial position of the File Header of virtual disk files, the subsequent difference with the data content issued, number Just adaptably change according to starting position.What size of data indicated is the size of this data content issued.
Data name can usually be transmitted using 128 bytes, and data start position can usually use 16 Bytes is transmitted, and size of data can usually be transmitted using 16 bytes, and data content can then be set in advance It is fixed, and usually, the size of the data content issued every time can depend on getting in the way of file stream every time Data content size.
And in a specific embodiment, the data content of target subfile is obtained in the way of file stream, it can be with Specifically: the size for the data content for obtaining the data content of target subfile in the way of file stream, and obtaining every time is low In preset network transmission threshold limit.
In this kind of embodiment, the server of the application is considered when issuing data, is one and is constantly obtained data, constantly The process for parsing and issuing.The data volume obtained every time, which can according to need, to be set, but the data in view of issuing exist The limitation of network transmission obtains the accumulation that too many data are easy to cause data to be issued, therefore the number obtained every time every time According to being dimensioned to lower than preset network transmission threshold limit for content.For example, network transmission limits threshold in concrete scene Value is 2,000,000, set obtain every time 1,000,000 data content, after parsing can be with this 1,000,000 data content be issued to master Generator terminal.As can be seen that such setting is not allowed to easily cause the accumulation of data to be issued.
In the aforementioned embodiment, it when issuing data content every time, is issued belonging to the data content that this time issues in advance The size of data of data name, the data start of the data content and the data content, then will be under the secondary data content It is sent to host side, is issued in the way of file stream to realize, such as in aforementioned concrete scene, host side is first every time It obtains 128+16+16=160 bytes and obtains corresponding data content according still further to the size of data in 160 bytes.When So, in other occasions, this can also be had no effect on using the transport protocol of other forms come the transmission mode of actual file stream The implementation of invention.
After issuing and finishing by any one subfile, it is required to judge whether there is also to be issued in OVA file Subfile.If it is present return step two, when the subfile not wait issue, i.e., every subfile in OVA file is equal When being selected primary conduct target subfile, issuing for OVA file is just completed.The usually available composition OVA of server The respective file initial position of every subfile of file and file size.When a certain item subfile, which issues, to be finished, pass through Switch the initial position of reading of content, realizes the switching for the project that issues.
Server be can be seen that after receiving download instruction, it, can't be in host when issuing OVA file to host side End forms a complete OVA file.It specifically, server has directly carried out the parsing of OVA file, also, is according to file The mode of stream, while obtaining data content to be issued, side parses and issues.Such as the OVA file issued is by virtual disk files, OVF file and mf file are constituted, then server issues finish after, host side can only preserve virtual disk files, OVF text Part and mf file cause to occupy excessive host side without also preserving a complete OVA file in such as traditional scheme Memory space.Therefore, this kind of embodiment advantageously reduces when issuing OVA file to the occupancy of host side memory space.
In a kind of specific embodiment of the invention, after above-mentioned steps one, before step 2, can also include:
Detecting host side whether there is the file of the same name for the every subfile being directed in OVA file;
If there is the file of the same name of at least one subfile, then output error prompt information;
If it is not, then executing the operation of step 2.
In general, being directed to OVA file to be issued, there is no files of the same name in host side, but in this kind of embodiment, examine Consider the case where host side may cause naming errors due to user misoperation, leads in host side that there are files of the same name.When depositing In file of the same name, the OVA file that server issues will cover original content in host side, cause losing for correct data It loses, therefore in this kind of embodiment, detection host side whether there is the file of the same name for every subfile in OVA file, If there is the file of the same name of at least one subfile, then can output error prompt information, interruption issue process.It otherwise can root According to OVA file name to be issued, an empty file is created in host side, subsequent OVA file issued can be placed in In the empty file.The operation of step 2 can be normally executed, continue to execute the application issues process.
In a kind of specific embodiment of the invention, can also include:
Receive the second inquiry instruction for any one subfile in OVA file;
Since the initial position of this subfile, the data content that this subfile is obtained in the way of file stream is straight Extremely the reading of this subfile is finished, and carries out data parsing in each read, and after parsing according to preset agreement Data content after each parsing is issued to host side.
In the occasion of part, host side may not be needed to obtain each single item subfile in OVA file, but only need to obtain When taking one of them subfile, such as only needing to obtain OVF file, the second inquiry instruction can be defined as to IOVF instruction.
In this kind of embodiment, receive for any one subfile in OVA file the second inquiry instruction it Afterwards, server can only issue this targeted subfile of the second inquiry instruction, compared to needing in traditional scheme Entire OVA file is issued, the memory space that host side occupies in this kind of occasion is advantageously reduced.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of system for issuing OVA the file information, Reference can be corresponded to each other with above.
The system for issuing OVA the file information is applied in server, may include:
First inquiry instruction receiving module 201, the first inquiry instruction sent for receiving host end;
First read module 202, for reading the text for corresponding to each single item subfile of OVA file of the first inquiry instruction Part title and file size;
First issues module 203, in the way of file stream, successively by the filename of the every subfile read out Claim and file size is sent to host side, so that host side gets OVA the file information.
In a kind of specific embodiment of the invention, further includes:
Second inquiry instruction receiving module, for receiving the second inquiry of any one subfile being directed in OVA file Instruction;
Second issues module, for obtaining this in the way of file stream since the initial position of this subfile The data content of subfile is until the reading of this subfile is finished, and carry out data parsing in each read, and parsing The data content after each parsing is issued to host side according to preset agreement later.
In a kind of specific embodiment of the invention, further includes:
Download instruction receiving module, for receiving the download instruction for being directed to OVA file;
Target subfile chooses module, for selecting target in the subfile to be issued from items according to preset order Subfile;
Third issues module, for obtaining the data content of target subfile in the way of file stream, and in parsing Afterwards, the data content after each parsing is issued to host side according to preset agreement;
Loop module chooses module for returning to triggering target subfile, until every subfile quilt in OVA file It chose once as target subfile, to complete issuing for OVA file.
In a kind of specific embodiment of the invention, third issues module, is specifically used for:
The data content of target subfile is obtained in the way of file stream, and after parsing, issuing data every time When content, issue data name belonging to the data content that this time issues in advance, the data start of the data content and The size of data of the data content, then host side will be issued in the secondary data.
In a kind of specific embodiment of the invention, the downloading for being directed to OVA file is received in download instruction receiving module After instruction, before triggering target subfile chooses module, further includes judgment module, is used for:
Detecting host side whether there is the file of the same name for the every subfile being directed in OVA file;
If there is the file of the same name of at least one subfile, then output error prompt information;
If it is not, then triggering target subfile chooses module.
In a kind of specific embodiment of the invention, third issues module, is specifically used for:
The size for the data content for obtaining the data content of target subfile in the way of file stream, and obtaining every time is low It, will be under the data content after each parsing according to preset agreement in preset network transmission threshold limit, and after parsing It is sent to host side.
Corresponding to above method and system embodiment, the embodiment of the invention also provides one kind to issue OVA the file information Equipment and a kind of computer readable storage medium, can with correspond to each other reference above.
This issues the equipment of OVA the file information, comprising:
Memory 301, for storing computer program;
Processor 302 is realized in any of the above-described embodiment for executing computer program and issues OVA the file information The step of method.
It is stored with computer program on computer readable storage medium, is realized when computer program is executed by processor above-mentioned The step of method for issuing OVA the file information in any embodiment.Computer readable storage medium mentioned here include with Machine memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, Any other form of storage medium well known in moveable magnetic disc, CD-ROM or technical field.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art , without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these Improvement and modification are also fallen within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of method for issuing OVA the file information, which is characterized in that be applied in server, OVA file is by multinomial subfile It constitutes, comprising:
The first inquiry instruction that receiving host end is sent;
Read the file name and file size for corresponding to each single item subfile of OVA file of first inquiry instruction;
In the way of file stream, successively the file name of the every subfile read out and file size are sent to described Host side, so that the host side gets OVA the file information.
2. the method according to claim 1 for issuing OVA the file information, which is characterized in that further include:
Receive the second inquiry instruction for any one subfile in the OVA file;
Since the initial position of this subfile, the data content of this subfile is obtained in the way of file stream until will The reading of this subfile finishes, and carries out data parsing in each read, and after parsing will be every according to preset agreement Data content after secondary parsing is issued to the host side.
3. the method according to claim 1 for issuing OVA the file information, which is characterized in that further include:
Receive the download instruction for being directed to the OVA file;
According to preset order, target subfile is selected in the subfile to be issued from items;
The data content of the target subfile is obtained in the way of file stream, and after parsing, according to preset agreement Data content after each parsing is issued to the host side;
It returns and executes described according to preset order, the operation of target subfile is selected in the subfile to be issued from items, directly It was selected primary conduct target subfile to every subfile in the OVA file, to complete under the OVA file Hair.
4. the method according to claim 3 for issuing OVA the file information, which is characterized in that described according to preset agreement Data content after each parsing is issued to the host side, comprising:
When issuing data content every time, data name belonging to the data content that this time issues is issued in advance, the data content Data start and the data content size of data, then the host side will be issued in the secondary data.
5. the method according to claim 3 for issuing OVA the file information, which is characterized in that receive described for described It is described according to preset order after the download instruction of OVA file, target subfile is selected in the subfile to be issued from items Before, further includes:
Detecting the host side whether there is the file of the same name for the every subfile being directed in the OVA file;
If there is the file of the same name of at least one subfile, then output error prompt information;
If it is not, then executing described according to preset order, the behaviour of target subfile is selected in the subfile to be issued from items Make.
6. according to the described in any item methods for issuing OVA the file information of claim 3 to 5, which is characterized in that described according to text The mode of part stream obtains the data content of the target subfile, comprising:
The data content of the target subfile is obtained in the way of file stream, and the size of the data content obtained every time is low In preset network transmission threshold limit.
7. a kind of system for issuing OVA the file information, which is characterized in that be applied in server, OVA file is by multinomial subfile It constitutes, comprising:
First inquiry instruction receiving module, the first inquiry instruction sent for receiving host end;
First read module, for reading the file for corresponding to each single item subfile of OVA file of first inquiry instruction Title and file size;
First issues module, in the way of file stream, successively by the file name of the every subfile read out and File size is sent to the host side, so that the host side gets OVA the file information.
8. the system according to claim 7 for issuing OVA the file information, which is characterized in that further include:
Second inquiry instruction receiving module, for receiving the second inquiry of any one subfile being directed in the OVA file Instruction;
Second issues module, for obtaining this Ziwen in the way of file stream since the initial position of this subfile The data content of part is until the reading of this subfile is finished, and carry out data parsing in each read, and after parsing The data content after each parsing is issued to the host side according to preset agreement.
9. a kind of equipment for issuing OVA the file information characterized by comprising
Memory, for storing computer program;
Processor issues OVA file as claimed in any one of claims 1 to 6 to realize for executing the computer program The step of method of information.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor and issues OVA file letter as claimed in any one of claims 1 to 6 The step of method of breath.
CN201910760799.7A 2019-08-16 2019-08-16 Issue method, system, equipment and the storage medium of OVA the file information Pending CN110519355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910760799.7A CN110519355A (en) 2019-08-16 2019-08-16 Issue method, system, equipment and the storage medium of OVA the file information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910760799.7A CN110519355A (en) 2019-08-16 2019-08-16 Issue method, system, equipment and the storage medium of OVA the file information

Publications (1)

Publication Number Publication Date
CN110519355A true CN110519355A (en) 2019-11-29

Family

ID=68626461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910760799.7A Pending CN110519355A (en) 2019-08-16 2019-08-16 Issue method, system, equipment and the storage medium of OVA the file information

Country Status (1)

Country Link
CN (1) CN110519355A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159120A (en) * 2019-12-16 2020-05-15 西门子电力自动化有限公司 Method, device and system for processing files in power system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514198A (en) * 2012-06-25 2014-01-15 北京智慧风云科技有限公司 File management method, cloud storage system and cloud terminal server in cloud storage system
US20190026138A1 (en) * 2017-07-20 2019-01-24 Vmware, Inc. Intelligent deployment of virtual processing instances from ova templates
CN109309696A (en) * 2017-07-27 2019-02-05 腾讯科技(深圳)有限公司 Portfolios method, sender, recipient and storage medium
CN109462650A (en) * 2018-11-14 2019-03-12 深圳市小牛普惠投资管理有限公司 Data file downloading method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514198A (en) * 2012-06-25 2014-01-15 北京智慧风云科技有限公司 File management method, cloud storage system and cloud terminal server in cloud storage system
US20190026138A1 (en) * 2017-07-20 2019-01-24 Vmware, Inc. Intelligent deployment of virtual processing instances from ova templates
CN109309696A (en) * 2017-07-27 2019-02-05 腾讯科技(深圳)有限公司 Portfolios method, sender, recipient and storage medium
CN109462650A (en) * 2018-11-14 2019-03-12 深圳市小牛普惠投资管理有限公司 Data file downloading method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159120A (en) * 2019-12-16 2020-05-15 西门子电力自动化有限公司 Method, device and system for processing files in power system

Similar Documents

Publication Publication Date Title
US6886084B2 (en) Storage controlling device and control method for a storage controlling device
CN110209642A (en) Method, apparatus, server and the computer-readable medium of information processing
JP2004227359A (en) Operation management method for storage system based on policy
CN108664660A (en) Distributed implementation method, apparatus, equipment and the storage medium of time series database
JPH05509430A (en) Downloading the operating system over the network
CN107861760A (en) BIOS collocation method, terminal and server
CN108984177A (en) A kind of data processing method and system
CN104820701A (en) Method and system for recording and synchronizing data
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
CN101156379B (en) Method and system for selecting service quality policy
CN106170968B (en) A kind of data compression storage method, device and distributed file system
CN101753362A (en) Configuring method and device of stacking virtual local area network of distributed network device
CN111045715A (en) Hot updating method and system of cloud game and readable storage medium
CN107741859A (en) Software package management method, apparatus and system based on domestic CPU and OS
CN102609466A (en) Method and system for controlling shared memory
CN103916440A (en) Remote upgrade method and device
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN110519355A (en) Issue method, system, equipment and the storage medium of OVA the file information
CN108234551A (en) A kind of data processing method and device
CN112491592B (en) Storage resource grouping method, system, terminal and storage medium
US6704836B1 (en) Method for dynamic control of concurrent extended copy tasks
CN109213701A (en) Control method, system, equipment and the storage medium of the peripheral hardware of shared I O board
CN109408487A (en) Document handling system and method under a kind of NAS file system
CN112804276B (en) Virtual broadband remote access server, control method thereof and communication system
CN108804711A (en) A kind of method, apparatus and computer readable storage medium of data processing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191129