CN113806007A - Disk mounting method, disk mounting device, storage medium, and electronic device - Google Patents

Disk mounting method, disk mounting device, storage medium, and electronic device Download PDF

Info

Publication number
CN113806007A
CN113806007A CN202010546757.6A CN202010546757A CN113806007A CN 113806007 A CN113806007 A CN 113806007A CN 202010546757 A CN202010546757 A CN 202010546757A CN 113806007 A CN113806007 A CN 113806007A
Authority
CN
China
Prior art keywords
application
disk
virtual machine
private data
data
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
CN202010546757.6A
Other languages
Chinese (zh)
Inventor
冯茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202010546757.6A priority Critical patent/CN113806007A/en
Priority to PCT/CN2021/099815 priority patent/WO2021254280A1/en
Publication of CN113806007A publication Critical patent/CN113806007A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a disk mounting method and a disk mounting device, wherein the method comprises the following steps: detecting application starting, and differentially separating application disks corresponding to the virtual machines according to the application mother disks of the application; the application disk and the private data disk of the application are mounted in the virtual machine, wherein the virtual machine is used for identifying the application in the application disk and loading the application into a system, the private data disk is used for storing data of the application, the problems that in the related technology, the cloud android virtual machine needs to be expanded due to insufficient memory, too large memory space is allocated, and resource waste is caused by trial playing or long-term non-use of the application by a user can be solved, the application in the disk can be used by mounting the disk without manual installation of the application by the user, the disk can be suitable for different virtual machines, and the residual space of the virtual machine does not need to be considered.

Description

Disk mounting method, disk mounting device, storage medium, and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a disk mounting method, a disk mounting device, a storage medium and an electronic device.
Background
At present, in order to realize unified management of set top boxes, reduce performance requirements and operation cost of the set top boxes of terminals, solve various problems of video experience difference of users of new and old set top boxes and the like, a cloud set top box is a development direction, namely a thin client direction, application and realization are finished at a cloud end, the client only sends corresponding commands, and feedback operation interfaces are obtained from the cloud end.
How to effectively reduce resource allocation of the Android virtual machine becomes a key problem in the cloud Android field. In the traditional mode of externally hanging a disk, because applications cannot be shared on other android devices, when a user is required to log in a specified virtual machine device, load balance cannot be guaranteed, and the utilization rate of the device is improved; meanwhile, when a user is allocated with a large disk space, the resource space is also wasted due to the fact that the user cannot repeatedly use the disk space.
Disclosure of Invention
The embodiment of the invention provides a disk mounting method, a disk mounting device, a storage medium and an electronic device, which are used for at least solving the problems that in the related technology, a cloud android virtual machine needs to be expanded due to insufficient memory, and the problem of resource waste caused by the allocation of too large memory space and the trial playing or long-term non-use of application of a user is solved.
According to an embodiment of the present invention, there is provided a disk mounting method including:
detecting application starting, and differentially separating application disks corresponding to the virtual machines according to the application mother disks of the application;
and mounting the application disk and a private data disk of the application into the virtual machine, wherein the virtual machine is used for identifying the application in the application disk and loading the application into a system, and the private data disk is used for storing data of the application.
According to another embodiment of the present invention, a disk mount method applied to a virtual machine is provided, including:
identifying an application in an application disk;
and loading the application into a system, wherein the application disk is differentially separated and mounted into the virtual machine according to the application master disk when the server detects that the application is started, and meanwhile, the server mounts a private data disk of the application into the virtual machine, wherein the private data disk is used for storing data of the application.
According to another embodiment of the present invention, there is provided a disk mounting apparatus including:
the difference module is used for detecting application starting and differentially separating an application disk corresponding to the virtual machine according to the application master disk of the application;
and the mounting module is used for mounting the application disk and a private data disk of the application into the virtual machine, wherein the virtual machine is used for identifying the application in the application disk and loading the application into a system, and the private data disk is used for storing data of the application.
According to another embodiment of the present invention, there is provided a disk mount apparatus applied to a virtual machine, including:
the identification module is used for identifying the application in the application disk;
the first loading module is configured to load the application into a system, where the application disk is differentially separated and mounted in the virtual machine according to the application master disk when the server detects that the application is started, and the server mounts a private data disk of the application into the virtual machine, where the private data disk is used to store data of the application.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, when the application is started, the application is respectively installed in the application disk and the user private data disk; when the disk is mounted, different virtual machine devices can identify application and user data in the disk, normal use can be achieved without installation, the problem that in the related technology, the cloud android virtual machine needs capacity expansion due to insufficient memory, too large memory space is allocated, users try to play or the application is not used for a long time, resource waste is caused can be solved, the application is not required to be manually installed by the users, the disk can use the application in the disk, the disk can be suitable for different virtual machines, and the residual space of the virtual machines is not required to be considered.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a disk mounting method according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a disk mounting method according to an embodiment of the present invention;
FIG. 3 is a flowchart II of a disk mounting method according to an embodiment of the present invention;
FIG. 4 is a flow chart of personalized disk production according to an embodiment of the application;
FIG. 5 is a flow diagram of a personalized disk mount, according to an embodiment of the invention;
FIG. 6 is a flow diagram of a personalized disk upgrade, according to an embodiment of the invention;
FIG. 7 is a block diagram of a first configuration of a disk mounting apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of the second configuration of the disk mounting apparatus according to the embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of the disk mounting method according to the embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, where the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the disk mounting method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The virtual machine corresponding to the virtual Android system is stored in a cloud server, more end users are connected to the cloud server through a remote connection protocol FreeRDP/Spice and the like, the virtual machine is connected to the corresponding virtual machine like remote desktop connection of Windows, corresponding pictures are transmitted back to the terminal, for unified management, the virtual machine of the native Android system basically maintains one copy, namely the same content is copied into a plurality of copies for different users to log in, and generally, in order to accelerate the login speed and time, the corresponding virtual machine is started in advance and enters an Android environment to wait for the user to log in.
Because different users log in the started Android system, private data generated by each user can only be stored in the virtual machine, when the virtual machine is used by other users, only the use environment of the previous user can be seen, the disk corresponding to the virtual machine is not completely separated from the private environment and data of each user, and the uniform management of the VSTB is inconvenient, so that the requirement of private data of VSTB users exists, namely the public disk corresponding to the virtual machine is completely separated from the user data as much as possible, the public disk corresponding to the virtual machine can be the same for all users, and the user data needs to be stored in other disks or network storage paths.
In the android system, the installed application packages of users are placed under a/data/app directory, and private data of the users are generally stored under the directories of/data/data and built-in/sdcard. However, applications in the related art are installed in the external sdcard or the disk, and only the application installation package is placed in the external sdcard or the disk, and the application data and the application installation information still need to be stored in the android system, so that the applications in the external disk cannot be used by other virtual machines and cannot be shared by other android devices.
In view of the foregoing problems, in this embodiment, a disk mounting method operating in the mobile terminal or the network architecture is provided, and fig. 2 is a first flowchart of the disk mounting method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, detecting application start, and differentially separating application disks corresponding to virtual machines according to application mother disks of the application, specifically, differentially separating application disks corresponding to virtual machines according to application mother disks when a user opens the application;
step S204, the application disk and the private data disk of the application are mounted in a virtual machine, wherein the virtual machine is used for identifying the application in the application disk and loading the application into the system, and the private data disk is used for storing the data of the application.
Through the steps S202 to S204, when the application is started, the application is installed in the application disk and the user private data disk, respectively; when the disk is mounted, different virtual machine devices can identify application and user data in the disk, normal use can be achieved without installation, the problem that in the related technology, the cloud android virtual machine needs capacity expansion due to insufficient memory, too large memory space is allocated, users try to play or the application is not used for a long time, resource waste is caused can be solved, the application is not required to be manually installed by the users, the disk can use the application in the disk, the disk can be suitable for different virtual machines, and the residual space of the virtual machines is not required to be considered.
In an exemplary embodiment, before the application disk and the private data disk of the application are mounted in the virtual machine, whether the private data disk of the application exists is judged; if the private data disk of the application exists, acquiring the private data disk of the application; and if the private data disk of the application does not exist, creating the private data disk of the application.
In an exemplary embodiment, after the application disk and the private data disk are mounted into the virtual machine, the integrity of the application installation file in the application disk is checked to ensure that the application installation file in the application disk is complete and valid.
In an exemplary embodiment, after an application disk and a private data disk are mounted in a virtual machine, an increment upgrade file of an application pushed by the virtual machine is received; and upgrading the application disk of the virtual machine in the non-running state according to the increment upgrading file, and/or upgrading the application disk of the virtual machine under the condition that the application is not upgraded after the application in the running state is quitted. When the application installation package or the application resource package has push update, and a user opens an application, updating the application or the application resource package to an application disk; after the application updating is finished, pushing updating resources to the application mother disc; after the application master disc is updated, the application master disc is pushed to each virtual machine user disc for upgrading, so that the operation of users and operation and maintenance personnel can be reduced, and the occupation of virtual machines on network resources is reduced.
In this embodiment, after the user installs the application, the installation data may be divided into two parts: the package data and the private application data of the user are installed. The installation package data is theoretically universal for all users and can be shared among different users; the private application data belongs to privacy data of a user and mainly comprises account information, progress information, chat information and the like of the user.
If the application can be used as a disk, i.e. mounted, the operation and maintenance personnel do not need to consider the memory problem of the virtual machine.
According to the personalized disk mounting scheme, the application installation package can be installed in the application disk, the existing application data loading process of the android system is modified, and data in the user data disk is directly read; during the running process of the game, the produced user data can be directly stored in a private data disk; and a personalized disk upgrading and updating scheme is provided for the problem of inconvenient disk application updating.
The personalized disk mounting scheme can be divided into three parts: the method comprises three parts of personalized disk manufacturing, personalized disk mounting and personalized disk upgrading.
The personalized disk manufacturing mainly realizes that installation package data and private application data of an application are respectively installed in an application master disk and an application data disk and then are pushed to a user for use. The existing android system does not support the installation of the application in a disk or an sdcard, and the embodiment needs to modify the native installation flow of the android system and reassign the installation path of the application.
The personalized disk mounting mainly realizes the identification of the application in the disk and the normal operation of the application, and simultaneously stores the private data generated by the application in an application data disk, specifically, when a user opens the application, the application disk corresponding to the virtual machine is differentially separated according to an application master disk; and then creating an application private data disk according to the original application data disk. Finally, mounting the created disk into a corresponding virtual machine; the virtual machine scans and identifies applications in the disk and loads the applications into the system. And the virtual machine opens the application, loads the data in the private data disk and reads the historical data of the user. Writing the private data generated by the application in a private data disk of the user; and when the user quits the application, the loading information of the application is cleared, and the disk is unloaded at the same time.
The personalized disk upgrading part mainly realizes the functions of application upgrading and application resource package upgrading, solves the problem of manual upgrading of all users or unified upgrading of operation and maintenance personnel, and particularly updates the application or the application resource package to the application disk when the application installation package or the application resource package is pushed and updated and the user opens the application; after the application updating is finished, pushing updating resources to the application mother disc; and after the application master disk is updated, pushing the application master disk to each virtual machine user.
According to the embodiment, the application disk can be mounted and used instantly, and the application installation step is omitted. Because the application does not need to be installed in the virtual machine, the memory space occupied by the virtual machine can be reduced; the application mother disk can be shared among the virtual machines, and further different users use the space occupied by the application; the application is not used any longer, unloading is not needed, and the corresponding application disk is directly deleted, so that operation and maintenance management are facilitated. Meanwhile, the personalized disk upgrading scheme can reduce the operation of users and operation and maintenance personnel and reduce the occupation of the virtual machine on network resources.
According to another embodiment of the present invention, there is further provided a disk mounting method applied to a virtual machine, and fig. 3 is a second flowchart of the disk mounting method according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, identifying the application in the application disk;
in an exemplary embodiment, the step S302 may specifically include: and scanning a path of the application disk mounting, and identifying an installation file of the application under the path.
Step S304, the application is loaded into the system, wherein the application disk is differentially separated and mounted into the virtual machine according to the application master disk when the server detects that the application is started, and meanwhile, the server mounts the private data disk of the application into the virtual machine, wherein the private data disk is used for storing the data of the application.
In an exemplary embodiment, the step S304 may specifically include: analyzing the installation file to obtain application information, and updating the application information into the system; modifying the file authority in the private data disc according to the application information; and broadcasting a message that the application installation is successful in the system.
Further, the virtual machine opens the application, loads the data in the private data disk, reads the historical data of the user, and writes the private data generated by the application in the private data disk of the user.
Through the steps S302 to S304, when the application is started, the application is installed in the application disk and the user private data disk, respectively; when the disk is mounted, different virtual machine devices can identify application and user data in the disk, normal use can be achieved without installation, the problem that in the related technology, the cloud android virtual machine needs capacity expansion due to insufficient memory, too large memory space is allocated, users try to play or the application is not used for a long time, resource waste is caused can be solved, the application is not required to be manually installed by the users, the disk can use the application in the disk, the disk can be suitable for different virtual machines, and the residual space of the virtual machines is not required to be considered.
In an exemplary embodiment, after the application is loaded into the system, the application is opened, the data in the private data disk is loaded, and further, when the system creates an application process, the path of the application data is modified into the path of the private data disk so as to load the data in the private data disk; reading the history data of the application, writing the data generated by the application into the private data disk, and further modifying the application data path of the application into the path of the private data disk when the application requests the application data so as to write the data generated by the application into the private data disk.
In an exemplary embodiment, after the application is loaded into the system, when the application exits, the loading information of the application is cleared, and the application disk and the private data disk are unloaded at the same time.
In an exemplary embodiment, when the installation file is updated, the installation path of the application is updated, and the installation file is updated to the application disk; comparing the updated application disk with the application master disk to generate an increment upgrading file; and pushing an increment upgrading file of the application to the server, wherein the increment upgrading file is used for upgrading the application disk of the virtual machine in the non-running state by the server, and/or upgrading the application disk of the virtual machine under the condition that the application is not upgraded after the application in the running state is quitted.
The present embodiment will be further described below by taking an application as an example of a game.
In the embodiment, when the android application is installed on the plug-in disk, the application can be respectively installed on the application disk and the user private data disk; when the disk is mounted, different android virtual machine devices can identify the application and user data in the disk, and the disk can be normally used without installation. And then solve the problem that the existing cloud android virtual machine needs capacity expansion due to insufficient memory and causes resource waste due to too large memory space allocation, and the problem that the user tries to play or does not use the application for a long time, causes resource waste. Need not user manual installation application, mount the application in the disk can use the disk, and the disk can be applicable to the android virtual machine of difference, also need not concern the residual space of android virtual machine simultaneously yet, specifically includes:
step 1, when a new push application is online, an application master disk of a game application and an original private application data disk are first manufactured through a personalized disk manufacturing function, fig. 4 is a flow chart of personalized disk manufacturing according to an embodiment of the present application, and as shown in fig. 4, the method includes:
step S401, pushing application online;
step S402, judging whether the application is installed in the disk, if not, executing step S403, otherwise, executing step S404;
step S403, installing an application;
step S404, mounting the game master disc and the private data disc, namely respectively mounting the empty application master disc and the private application data disc to the lower part of the appointed private mounting catalog of the virtual machine;
step S405, when the application is installed, modifying an installation path of the application in the system install, and respectively installing an application installation package and application data in different disks;
step S406, after the application is successfully installed, MD5 information of the file in the application master disk is generated and stored in the server, and integrity check is provided for subsequent mounting.
And 2, when the application is opened, triggering the personalized disk mounting function, and then normally using the application. Fig. 5 is a flowchart of personalized disk mount according to an embodiment of the present invention, as shown in fig. 5, including:
step S501, when an application is opened, triggering a virtual machine to mount a corresponding application disk and a corresponding private data disk, wherein the application disk is differentiated through an application master disk; firstly, judging whether the user has the private data disk of the application, and if not, newly making a private data disk for the user according to the original application data disk.
Step S502, if the application disk and the private data disk are mounted normally, performing MD5 value verification on the file in the application disk;
in step S503, the virtual machine scans and identifies the application in the application disk, and loads the application into the system. The method specifically comprises the following steps:
step S5031, calling a PMS (PackageManagerService) to scan a path of a disk mount, and then identifying an application installation file under the path;
step S5032, calling PackageParse to analyze the application installation file and updating the application information into the system;
step S5033, file authority (including user group, user authority and the like) in the private data disk is changed according to the analyzed application installation file;
step S5034, a broadcast message of successful application installation is sent in the system.
Step S504, the virtual machine starts the application, loads the data in the private data disk, and reads the historical data of the user. Writing the private data generated by the application in a private data disk of the user, which specifically comprises the following steps:
step S5041, when the android system passes through the application process created by zygate, the path of the application data is modified to the path of the private application data disk, so as to ensure normal loading of the game.
Step S5042, when the application requests the application data, dynamically changing the application data path of the application to the path of the private data disk of the user, thereby implementing reading and writing of the user data directly stored in the disk.
And step S505, when the user quits the application, the loading information of the application is cleared, and the disk is unloaded at the same time.
Step 3, the virtual machine pushes application upgrade and application resource package upgrade, fig. 6 is a flow chart of personalized disk upgrade according to the embodiment of the present invention, as shown in fig. 6, including:
step S601, updating the application online and updating the game application disk, specifically, when the user opens the application and the application installation package or the application resource package has push update, updating the installation path of the application or the application resource package, updating the application to the game disk, and uploading the incremental upgrade package file to the server.
Step S602, the updated game disk and the original game master disk are compared to generate an incremental upgrade file package.
Step S603, determining whether the virtual machine runs the game application, if yes, executing step S604, otherwise executing step S606;
step S604, pushing and upgrading when the application exits;
step S605, judging whether the application disk finishes upgrading, if not, executing step S606, otherwise, executing step S607;
step S606, upgrading the application disk;
and step S607, finishing the upgrading.
The server inquires the running state of the current application in each android virtual machine, if the current application is not in running, an increment upgrading packet is pushed to an application disk of the corresponding virtual machine for upgrading, and upgrading information is reported to the server; otherwise, when waiting for the application to quit, judging whether the application is upgraded, and if not, continuing to push the upgrade.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a disk mounting apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram showing a first configuration of a disk mounting apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus includes:
a difference module 72, configured to detect application startup, and differentially separate an application disk of a corresponding virtual machine according to an application master of the application;
and a mounting module 74, configured to mount the application disk and a private data disk of the application into a virtual machine, where the virtual machine is configured to identify the application in the application disk and load the application into the system, and the private data disk is configured to store data of the application.
In an exemplary embodiment, the apparatus further comprises:
the judging module is used for judging whether the private data disk of the application exists or not;
the acquisition module is used for acquiring the private data disc of the application under the condition that the judgment result is yes;
and the creating module is used for creating the private data disc of the application under the condition that the judgment result is negative.
In an exemplary embodiment, the apparatus further comprises:
and the verification module is used for verifying the integrity of the application installation file in the application disk.
In an exemplary embodiment, the apparatus further comprises:
the receiving module is used for receiving the increment upgrading file of the application pushed by the virtual machine;
and the upgrading module is used for upgrading the application disk of the virtual machine in the non-running state according to the increment upgrading file, and/or upgrading the application disk of the virtual machine under the condition that the application is not upgraded after the application in the running state is quitted.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
In this embodiment, a disk mounting apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a second configuration of a disk mounting apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
an identification module 82 for identifying applications in the application disk;
the first loading module 84 is configured to load an application into the system, where the application disk is differentially dropped and mounted into a virtual machine according to an application master disk when the server detects that the application is started, and the server mounts a private data disk of the application into the virtual machine, where the private data disk is used to store data of the application.
In an exemplary embodiment, the above-mentioned identification module 82 includes:
the scanning submodule is used for scanning a path for mounting an application disk;
and the identification submodule is used for identifying the installation files applied under the path.
In an exemplary embodiment, the first loading module 84 described above includes:
the analysis submodule is used for analyzing the installation file to obtain application information and updating the application information into the system;
the modification submodule is used for modifying the file authority in the private data disc according to the application information;
and the broadcast submodule is used for broadcasting a message that the application is successfully installed in the system.
In an exemplary embodiment, the apparatus further comprises:
the second loading module is used for opening the application and loading the data in the private data disk;
and the writing module is used for reading the history data of the application and writing the data generated by the application into the private data disk.
In an exemplary embodiment, the second loading module is further configured to modify a path of the application data to a path of the private data disk when the system creates the application process, so as to load data in the private data disk;
the writing module is further configured to modify an application data path of the application into a path of the private data disk when the application requests the application data, so as to write the data generated by the application into the private data disk.
In an exemplary embodiment, the apparatus further comprises:
and the unloading module is used for clearing the loading information of the application and unloading the application disk and the private data disk simultaneously when the application exits.
In an exemplary embodiment, the apparatus further comprises:
the updating module is used for updating the installation path of the application and updating the installation file to an application disk when the installation file is updated;
the generating module is used for comparing the updated application disk with the application master disk and generating an increment upgrading file;
the pushing module is used for pushing an increment upgrading file of an application to a server, wherein the increment upgrading file is used for upgrading an application disk of a virtual machine in a non-running state by the server, and/or upgrading the application disk of the virtual machine under the condition that the application is not upgraded after the application in the running state is quitted.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (14)

1. A disk mounting method comprises the following steps:
detecting application starting, and differentially separating application disks corresponding to the virtual machines according to the application mother disks of the application;
and mounting the application disk and a private data disk of the application into the virtual machine, wherein the virtual machine is used for identifying the application in the application disk and loading the application into a system, and the private data disk is used for storing data of the application.
2. The method of claim 1, wherein prior to mounting the application disk and the application's private data disk into the virtual machine, the method further comprises:
judging whether a private data disc of the application exists or not;
if the judgment result is yes, acquiring a private data disc of the application;
and under the condition that the judgment result is negative, creating a private data disc of the application.
3. The method of claim 1 or 2, wherein after mounting the application disk and the private data disk into the virtual machine, the method further comprises:
receiving an increment upgrading file of the application pushed by the virtual machine;
and upgrading the application disk of the virtual machine in the non-running state according to the increment upgrading file, and/or upgrading the application disk of the virtual machine under the condition that the application is not upgraded after the application in the running state is quitted.
4. A disk mounting method is applied to a virtual machine and comprises the following steps:
identifying an application in an application disk;
and loading the application into a system, wherein the application disk is used for detecting application starting by a server, differentially separating and mounting the application disk into the virtual machine according to the application master disk, and simultaneously mounting a private data disk of the application into the virtual machine by the server, wherein the private data disk is used for storing data of the application.
5. The method of claim 4, wherein identifying the application in the application disk comprises:
scanning the path of the application disk mounting;
identifying an installation file of the application under the path.
6. The method of claim 5, wherein loading the application into a system comprises:
analyzing the installation file to obtain application information, and updating the application information into the system;
modifying the file authority in the private data disc according to the application information;
broadcasting a message that the application installation is successful in the system.
7. The method of claim 4, wherein after loading the application into a system, the method further comprises:
opening the application and loading the data in the private data disk;
and reading the history data of the application, and writing the data generated by the application into the private data disk.
8. The method of claim 7,
loading the data in the private data disk comprises: when the system creates an application process, modifying the path of application data into the path of the private data disk so as to load the data in the private data disk;
writing the data generated by the application to the private data disk comprises: and when the application requests the application data, modifying the application data path of the application into the path of the private data disk so as to write the data generated by the application into the private data disk.
9. The method of any of claims 4 to 8, wherein after loading the application into a system, the method further comprises:
and when the application exits, clearing the loading information of the application, and unloading the application disk to the private data disk.
10. The method according to any one of claims 4 to 8, further comprising:
when the installation file is updated, updating the installation path of the application, and updating the installation file to the application disk;
comparing the updated application disk with the application master disk to generate an increment upgrading file;
and pushing an increment upgrading file of the application to the server, wherein the increment upgrading file is used for upgrading an application disk of the virtual machine in a non-running state by the server, and/or upgrading the application disk of the virtual machine under the condition that the application is not upgraded after the application in the running state is quitted.
11. A disk mounting apparatus comprising:
the difference module is used for detecting application starting and differentially separating an application disk corresponding to the virtual machine according to the application master disk of the application;
and the mounting module is used for mounting the application disk and a private data disk of the application into the virtual machine, wherein the virtual machine is used for identifying the application in the application disk and loading the application into a system, and the private data disk is used for storing data of the application.
12. A disk mounting device is applied to a virtual machine and comprises:
the identification module is used for identifying the application in the application disk;
the first loading module is configured to load the application into a system, where the application disk is differentially separated and mounted in the virtual machine according to the application master disk when the server detects that the application is started, and the server mounts a private data disk of the application into the virtual machine, where the private data disk is used to store data of the application.
13. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 3 when executed, or to perform the method of any of claims 4 to 10.
14. An electronic apparatus comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the method of any of claims 1 to 3 or to perform the method of any of claims 4 to 10.
CN202010546757.6A 2020-06-15 2020-06-15 Disk mounting method, disk mounting device, storage medium, and electronic device Pending CN113806007A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010546757.6A CN113806007A (en) 2020-06-15 2020-06-15 Disk mounting method, disk mounting device, storage medium, and electronic device
PCT/CN2021/099815 WO2021254280A1 (en) 2020-06-15 2021-06-11 Disk mounting method and device, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010546757.6A CN113806007A (en) 2020-06-15 2020-06-15 Disk mounting method, disk mounting device, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN113806007A true CN113806007A (en) 2021-12-17

Family

ID=78892455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010546757.6A Pending CN113806007A (en) 2020-06-15 2020-06-15 Disk mounting method, disk mounting device, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113806007A (en)
WO (1) WO2021254280A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840267A (en) * 2022-04-20 2022-08-02 北京金山云网络技术有限公司 Cloud application program running method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402446A (en) * 2011-11-22 2012-04-04 成都市华为赛门铁克科技有限公司 Application software installation method and application software installation device
CN103136000A (en) * 2011-11-21 2013-06-05 财团法人资讯工业策进会 Method and system of providing application program for virtual machine
CN106503587A (en) * 2016-11-28 2017-03-15 航天恒星科技有限公司 A kind of hanging method of data disks and monitor of virtual machine
CN109684028A (en) * 2017-10-18 2019-04-26 中兴通讯股份有限公司 A kind of method, device and equipment that operating system is separated with user data
CN110806911A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Cloud desktop management and control method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7437438B2 (en) * 2001-12-27 2008-10-14 Hewlett-Packard Development Company, L.P. System and method for energy efficient data prefetching
CN107992355B (en) * 2017-12-21 2021-07-13 中兴通讯股份有限公司 Method and device for deploying application software and virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136000A (en) * 2011-11-21 2013-06-05 财团法人资讯工业策进会 Method and system of providing application program for virtual machine
CN102402446A (en) * 2011-11-22 2012-04-04 成都市华为赛门铁克科技有限公司 Application software installation method and application software installation device
CN106503587A (en) * 2016-11-28 2017-03-15 航天恒星科技有限公司 A kind of hanging method of data disks and monitor of virtual machine
CN109684028A (en) * 2017-10-18 2019-04-26 中兴通讯股份有限公司 A kind of method, device and equipment that operating system is separated with user data
CN110806911A (en) * 2018-08-06 2020-02-18 中兴通讯股份有限公司 Cloud desktop management and control method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840267A (en) * 2022-04-20 2022-08-02 北京金山云网络技术有限公司 Cloud application program running method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
WO2021254280A1 (en) 2021-12-23

Similar Documents

Publication Publication Date Title
US8935687B2 (en) Incrementally updating a software appliance
US9614931B2 (en) Identifying a resource set require for a requested application and launching the resource set in a container for execution in a host operating system
CN110753088B (en) System deployment method and device
CN110933036B (en) Cloud game service system and server
CN109725952B (en) Method, system and related device for application program plug-in
CN102457541A (en) System and method for avoiding resource competition during starting diskless workstation
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN112615747B (en) Method and device for automatically deploying and configuring network equipment
US20140109089A1 (en) System to rebuild difference virtual hard disk for updating operation system and method thereof
CN110928554A (en) Deployment method, device, equipment and storage medium
CN112468545A (en) Cloud host creation method, device, system, equipment and readable storage medium
CN115357198A (en) Mounting method and device of storage volume, storage medium and electronic equipment
CN111736876A (en) Client update control method, device, storage medium and server
CN113806007A (en) Disk mounting method, disk mounting device, storage medium, and electronic device
WO2024193352A1 (en) Data processing method and apparatus, computer device, and readable storage medium
CN114115920A (en) Operating system deployment method, system, device and computer-readable storage medium
CN112948008A (en) Ironic based physical bare computer management method
CN116724543A (en) Container cluster management method and device
US9323907B2 (en) Distribution apparatus, device, control method for distribution apparatus, and storage medium
CN115442206B (en) Method and system for remote deployment of GO micro-services in cloud environment
CN114500268B (en) Method and device for deploying char resources, server and storage medium
CN116208498A (en) Method, device, equipment and medium for node differential configuration of OpenStack cloud platform
CN111475176B (en) Data reading and writing method, related device, system and storage medium
CN114662102A (en) File processing method and device and storage medium
CN113900765A (en) Cloud application starting method, equipment, terminal and computer readable storage medium

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