Disk space management method, device, electronic device and storage medium
By creating and managing virtual disk files on a cloud terminal and deciding data transmission based on disk space information, the problem of insufficient disk space in the cloud terminal is solved, efficient utilization of disk space and reducing capacity expansion costs.
Patent Information
- Application Number
- CN202210191750.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-02-28
AI Technical Summary
The problem of insufficient disk space when cloud terminals use cloud desktops. The existing expansion solution is costly, which limits the application of cloud desktops.
By creating parent virtual disk files and first-level virtual disk files, grouping the application software according to preset classification rules, and installing different first-level virtual disk files on the cloud terminal, and deciding whether to send the target first-level virtual disk based on disk space information. files to improve disk space utilization.
It effectively saves physical disk space, makes full use of the disk space of cloud terminals, alleviates the problem of insufficient storage space, and reduces the cost of expansion.
Smart Images

Figure CN114564283B_ABST
Abstract
Description
Background Art
[0002] With the development of cloud computing and virtualization technology, cloud desktop has gradually become one of the application options for computer desktops, and its application in various industries is increasingly popular. Cloud desktop is also called virtual desktop or virtual machine. Among them, Transparent Computing Infrastructure (TCI) / Intelligent Desktop Virtualization (IDV) cloud desktop, by using virtualized disk technology, virtualizes a cloud terminal into a logical computer that can be easily managed on a cloud server.
[0003] As the TCI / IDV architecture cloud desktop is increasingly used in various industries, the problem of insufficient disk space on the cloud terminal has emerged when users use the cloud desktop. In the related art, the solution to this problem is mainly to expand the disk capacity. However, the high cost of this solution limits the application of cloud desktops.
[0004] Therefore, how to improve the disk space utilization of cloud terminals has become a problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a disk space management method, device, electronic device and storage medium to improve the disk space utilization of a cloud terminal.
[0006] The first disk space management method provided in the embodiment of the present application is applied to a cloud server, including:
[0007] Creating at least one parent virtual disk file and at least one primary virtual disk file, wherein different parent virtual disk files correspond to different operating system types;
[0008] Grouping the application software according to a preset classification rule to obtain at least one application software package, and installing the at least one application software package to different primary virtual disk files respectively;
[0009] Send the at least one parent virtual disk file and the corresponding first-level virtual disk file name set to the cloud terminal, and after receiving the disk download request for the target first-level virtual disk file sent by the cloud terminal, send the target first-level virtual disk file to the cloud terminal, so that the cloud terminal starts the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0010] In an optional implementation, after receiving the disk download request for the target first-level virtual disk file sent by the cloud terminal, sending the target first-level virtual disk file to the cloud terminal includes:
[0011] Obtaining disk space information of the cloud terminal in the disk download request;
[0012] When it is determined that the disk space information meets the disk delivery condition, the target primary virtual disk file is sent to the cloud terminal.
[0013] In an optional implementation, the disk space information includes occupied space resource information;
[0014] When it is determined that the disk space information does not meet the disk delivery condition, the method further includes:
[0015] Determining the occupied space of the deletable resources of the cloud terminal according to the occupied space resource information;
[0016] If it is determined that after deleting the deletable resource, the disk space information satisfies the disk delivery condition, a resource deletion instruction and the target primary virtual disk file are sent to the cloud terminal, so that the cloud terminal deletes the deletable resource according to the resource deletion instruction;
[0017] If after determining to delete the deletable resource, the disk space information still does not meet the disk delivery condition, or the cloud terminal does not have the deletable resource, a prompt message is sent to the cloud terminal so that the cloud terminal cannot enter the cloud desktop according to the prompt message.
[0018] In an optional implementation, the operation occupied space of the target first-level virtual disk file includes: the occupied space of the target first-level virtual disk file, and the occupied space of the second-level virtual disk file corresponding to the target first-level virtual disk file, the second-level virtual disk file is used to record the operation process data of the cloud desktop;
[0019] In an optional implementation, the disk space information includes at least one of a historical occupied space of at least one of the secondary virtual disk files and an occupied space of a parent virtual disk file corresponding to the target primary virtual disk file, and the occupied space of the secondary virtual disk file is determined based on at least one of the following methods:
[0020] Using the historical occupied space of at least one of the secondary virtual disk files as the occupied space of the secondary virtual disk file, wherein the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server after the cloud terminal closes the cloud desktop each time in response to the closing operation of the object;
[0021] Based on a preset ratio of the occupied space of the parent virtual disk file, the occupied space of the secondary virtual disk file is determined.
[0022] In an optional implementation, the disk space information includes remaining space resource information; whether the disk space information satisfies the disk delivery condition is determined by:
[0023] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is not less than the running space occupied by the target primary virtual disk file, and the disk space information satisfies the disk delivery condition;
[0024] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is less than the running occupied space of the target primary virtual disk file, and then the disk space information does not meet the disk delivery condition.
[0025] The first disk space management device provided in the embodiment of the present application is applied to a cloud server, including:
[0026] A creating unit, used to create at least one parent virtual disk file and at least one primary virtual disk file, wherein different parent virtual disk files correspond to different operating system types;
[0027] A grouping unit, used to group the various application software according to a preset classification rule, obtain at least one application software package, and install the at least one application software package into different primary virtual disk files respectively;
[0028] A sending unit is used to send the at least one parent virtual disk file and the corresponding first-level virtual disk file name set to the cloud terminal, and after receiving a disk download request for a target first-level virtual disk file sent by the cloud terminal, send the target first-level virtual disk file to the cloud terminal, so that the cloud terminal can start a corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0029] Optionally, the sending unit is specifically used for:
[0030] Obtaining disk space information of the cloud terminal in the disk download request;
[0031] When it is determined that the disk space information meets the disk delivery condition, the target primary virtual disk file is sent to the cloud terminal.
[0032] Optionally, the disk space information includes occupied space resource information; when it is determined that the disk space information does not meet the disk delivery condition, the sending unit is further used to:
[0033] Determining the occupied space of the deletable resources of the cloud terminal according to the occupied space resource information;
[0034] If it is determined that after deleting the deletable resource, the disk space information satisfies the disk delivery condition, a resource deletion instruction and the target primary virtual disk file are sent to the cloud terminal, so that the cloud terminal deletes the deletable resource according to the resource deletion instruction;
[0035] If after determining to delete the deletable resource, the disk space information still does not meet the disk delivery condition, or the cloud terminal does not have the deletable resource, a prompt message is sent to the cloud terminal so that the cloud terminal cannot enter the cloud desktop according to the prompt message.
[0036] Optionally, the operating space occupied by the target first-level virtual disk file includes: the space occupied by the target first-level virtual disk file, and the space occupied by the second-level virtual disk file corresponding to the target first-level virtual disk file, and the second-level virtual disk file is used to record the operating process data of the cloud desktop.
[0037] Optionally, the disk space information includes at least one of a historical occupied space of at least one of the secondary virtual disk files and an occupied space of a parent virtual disk file corresponding to the target primary virtual disk file, and the occupied space of the secondary virtual disk file is determined based on at least one of the following methods:
[0038] Taking the average value of the historical occupied space of at least one of the secondary virtual disk files as the occupied space of the secondary virtual disk file, wherein the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server after the cloud terminal closes the cloud desktop each time in response to the closing operation of the object;
[0039] Based on a preset ratio of the occupied space of the parent virtual disk file, the occupied space of the secondary virtual disk file is determined.
[0040] Optionally, the disk space information includes remaining space resource information; whether the disk space information satisfies the disk delivery condition is determined by:
[0041] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is not less than the running space occupied by the target primary virtual disk file, and the disk space information satisfies the disk delivery condition;
[0042] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is less than the running occupied space of the target primary virtual disk file, and then the disk space information does not meet the disk delivery condition.
[0043] The second disk space management method provided in the embodiment of the present application is applied to a cloud terminal, including:
[0044] Receive at least one parent virtual disk file and a set of first-level virtual disk file names corresponding to each of them sent by the cloud server, and display each set of first-level virtual disk file names to the object, wherein different parent virtual disk files correspond to different operating system types, and different first-level virtual disk files are installed with different application software packages;
[0045] In response to the object's selection operation on the target first-level virtual disk file, sending a disk download request for the target first-level virtual disk file to the cloud server;
[0046] The target first-level virtual disk file sent by the cloud server is received, and based on the target first-level virtual disk file and the corresponding parent virtual disk file, a corresponding cloud desktop is started on the cloud terminal.
[0047] In an optional implementation, the sending a corresponding disk download request to the cloud server includes:
[0048] Sending a disk download request including disk space information of the cloud terminal to the cloud server;
[0049] The target primary virtual disk file is sent by the cloud server when it determines that the disk space information meets the disk sending conditions.
[0050] In an optional implementation, starting a corresponding cloud desktop on the cloud terminal based on the target primary virtual disk file and the corresponding parent virtual disk file includes:
[0051] Generate a secondary virtual disk file of the target primary virtual disk file, and based on the secondary virtual disk file, the target primary virtual disk file and the corresponding parent virtual disk file, start the corresponding cloud desktop on the cloud terminal, and the secondary virtual disk file is used to record the operation process data of the cloud desktop.
[0052] In an optional embodiment, the method further includes:
[0053] Receive a resource deletion instruction sent by the cloud server, and delete the deletable resources based on the resource deletion instruction, wherein the resource deletion instruction is sent by the cloud server after determining to delete the deletable resources and the disk space information meets the disk delivery condition.
[0054] In an optional embodiment, the method further includes:
[0055] Receive a prompt message sent by the cloud server, and prompt the object that it cannot enter the cloud desktop according to the prompt message, wherein the prompt message is sent to the cloud terminal by the cloud server after it is determined to delete the deletable resources and the disk space information still does not meet the disk delivery conditions, or the cloud terminal does not have the deletable resources.
[0056] In an optional embodiment, the method further includes:
[0057] In response to a closing operation of the object, the cloud desktop is closed and the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server, so that after receiving the historical occupied space, the cloud server determines the occupied space of the secondary virtual disk file based on the historical occupied space; and based on the type of the secondary virtual disk file, determines the target operation to be performed on the secondary virtual disk file.
[0058] In an optional implementation, the determining, based on the type of the secondary virtual disk file, a target operation to be performed on the secondary virtual disk file includes:
[0059] If the type of the secondary virtual disk file is restoration, deleting the secondary virtual disk file;
[0060] Otherwise, the secondary virtual disk file is retained.
[0061] The second disk space management device provided in the embodiment of the present application is applied to a cloud terminal, including:
[0062] a receiving unit, configured to receive at least one parent virtual disk file and a set of first-level virtual disk file names corresponding to the parent virtual disk file sent by the cloud server, and to display each set of first-level virtual disk file names to the object, wherein different parent virtual disk files correspond to different operating system types, and different first-level virtual disk files are installed with different application software packages;
[0063] a sending unit, configured to send a disk download request for the target first-level virtual disk file to the cloud server in response to the object's selection operation for the target first-level virtual disk file;
[0064] The startup unit is used to receive the target first-level virtual disk file sent by the cloud server, and start the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0065] Optionally, the sending unit is specifically used for:
[0066] Sending a disk download request including disk space information of the cloud terminal to the cloud server;
[0067] The target primary virtual disk file is sent by the cloud server when it determines that the disk space information meets the disk sending conditions.
[0068] Optionally, the startup unit is specifically used for:
[0069] Generate a secondary virtual disk file of the target primary virtual disk file, and based on the secondary virtual disk file, the target primary virtual disk file and the corresponding parent virtual disk file, start the corresponding cloud desktop on the cloud terminal, and the secondary virtual disk file is used to record the operation process data of the cloud desktop.
[0070] Optionally, the startup unit is further used for:
[0071] Receive a resource deletion instruction sent by the cloud server, and delete the deletable resources based on the resource deletion instruction, wherein the resource deletion instruction is sent by the cloud server after determining to delete the deletable resources and the disk space information meets the disk delivery condition.
[0072] Optionally, the sending unit is further used for:
[0073] Receive a prompt message sent by the cloud server, and prompt the object that it cannot enter the cloud desktop according to the prompt message, wherein the prompt message is sent to the cloud terminal by the cloud server after determining to delete the deletable resource and the disk space information still does not meet the disk delivery condition, or the cloud terminal does not have the deletable resource.
[0074] Optionally, the sending unit is further used for:
[0075] In response to a closing operation of the object, the cloud desktop is closed and the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server, so that after receiving the historical occupied space, the cloud server determines the occupied space of the secondary virtual disk file based on the historical occupied space; and based on the type of the secondary virtual disk file, determines the target operation to be performed on the secondary virtual disk file.
[0076] Optionally, the sending unit is specifically used for:
[0077] If the type of the secondary virtual disk file is restoration, deleting the secondary virtual disk file;
[0078] Otherwise, the secondary virtual disk file is retained.
[0079] An electronic device provided by an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned disk space management methods.
[0080] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the above-mentioned disk space management methods.
[0081] An embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps of any one of the above-mentioned disk space management methods.
[0082] The beneficial effects of this application are as follows:
[0083] The disk space management method, device, electronic device and storage medium provided by the embodiments of the present application, because the embodiments of the present application create at least one parent virtual disk file and at least one first-level virtual disk file, group each application software according to a preset classification rule, obtain at least one application software package, and install at least one application software package to different first-level virtual disk files respectively, further, send at least one parent virtual disk file and their corresponding first-level virtual disk file name set to the cloud terminal, in this way, for a parent virtual disk file, its corresponding first-level virtual disk file name set indicates that a parent virtual disk file can correspond to multiple first-level virtual disk files, that is, when there are multiple first-level virtual disk files with the same operating system, only one parent virtual disk file needs to be sent, which effectively saves physical disk space, and the object can select the first-level virtual disk file to be downloaded according to demand, and after receiving the disk download request for the target first-level virtual disk file sent by the cloud terminal, the target first-level virtual disk file is sent to the cloud terminal, so only the first-level virtual disk file selected by the object needs to be sent to the cloud terminal, which can make full use of the physical disk space of the cloud terminal, improve the disk space utilization rate, and thus alleviate the problem of insufficient storage space.
[0084] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0086] Figure 1 It is a structural diagram of a TCI / IDV cloud desktop architecture in the related technology;
[0087] Figure 2 A structural diagram of a differential virtual disk in the related art;
[0088] Figure 3 An optional schematic diagram of an application scenario in an embodiment of the present application;
[0089] Figure 4 This is a flowchart of another disk space management method in an embodiment of the present application;
[0090] Figure 5 A schematic diagram of the composition structure of a TCI / IDV cloud desktop system in an embodiment of the present application;
[0091] Figure 6 A schematic diagram of a software package selection interface in an embodiment of the present application;
[0092] Figure 7 This is a flowchart of another disk space management method in an embodiment of the present application;
[0093] Figure 8 A schematic diagram of an interactive process of a disk space management method in an embodiment of the present application;
[0094] Fig. 9 A schematic diagram of the structure of a disk space management device in an embodiment of the present application;
[0095] Fig.10 A schematic diagram of the structure of another disk space management device in an embodiment of the present application;
[0096] Fig.11 A schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;
[0097] Fig.12The present invention is a schematic diagram of the hardware structure of another electronic device to which the embodiments of the present application are applied. DETAILED DESCRIPTION
[0098] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.
[0099] The following is an introduction to some concepts involved in the embodiments of the present application.
[0100] Cloud server: It has a physical network connection with the cloud terminal, is responsible for creating the parent virtual disk and the first-level virtual disk, and provides an operating environment for installing application software on the first-level virtual disk.
[0101] Cloud terminal: It is an x86 or ARM (a type of processor) architecture system, installs and runs the Linux system desktop, and installs and runs the client on the Linux system. It can run TCI / IDV cloud desktops of Windows, Linux, and domestic series systems (such as Zhongbiao Kylin, Galaxy Kylin, Ubuntu Kylin, unified operating system UOS, etc.).
[0102] Cloud desktop: A computer desktop in the form of Windows, Linux, or a domestic series of systems that is presented to cloud terminal users. It runs on cloud terminals and provides an operating environment for application software on the cloud desktop.
[0103] Parent virtual disk file: refers to a clean Windows, Linux, or domestic series virtual disk file that does not have any third-party application software installed, which can be referred to as the parent virtual disk.
[0104] Child virtual disk file: refers to the virtual disk file used to install third-party application software, which can be referred to as a child virtual disk.
[0105] Application software: a third-party application running on the TCI / IDV cloud desktop. In the embodiment of the present application, application software mainly refers to the application that the user needs to use on the cloud desktop.
[0106] Client: also known as user end, refers to the program that corresponds to the server and provides local services to customers. Except for some applications that only run locally (i.e. application software), they are generally installed on ordinary client computers and need to cooperate with the server to run. After the development of the Internet, the more commonly used user terminals include web browsers used for the World Wide Web, email clients for sending and receiving emails, and client software for instant messaging. For this type of application, there needs to be corresponding servers and service programs in the network to provide corresponding services, such as database services, email services, etc. In this way, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application. The client is essentially also a kind of application software. In the embodiment of the present application, the client refers to the cloud desktop client, which is an application that runs locally on the cloud terminal device to provide cloud desktop services.
[0107] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0108] The following is a brief introduction to the design concept of the embodiment of the present application:
[0109] With the development of cloud computing and virtualization technology, cloud desktop has gradually become one of the application options for computer desktops, and its application in various industries is increasingly popular. Cloud desktop is also called virtual desktop or virtual machine. Cloud desktop has a cloud terminal and cloud server architecture. In this architecture, the cloud desktop runs on the cloud terminal side (user side) in the form of a virtual disk; the cloud server is generally composed of one or more high-performance computers, providing virtual disk management and cloud desktop operation and maintenance services for users and terminals.
[0110] The cloud desktop involved in this application is a cloud desktop based on TCI / IDV architecture technology. TCI / IDV cloud desktop refers to a cloud terminal that is virtualized into a logical computer that can be easily managed on a cloud server by using virtualized disk technology (referred to as virtual disk file or virtual disk). Each logical computer desktop is called a cloud desktop. Among them, the cloud terminal can also be a personal computer (Personal Computer, PC), including but not limited to desktops, notebooks, multimedia all-in-one computers, all-in-one computers with screens, etc.
[0111] The operating system (including mainstream Microsoft Windows system, Linux system, and domestic series system) and application software required by users can be deployed on the cloud desktop. Under the TCI / IDV architecture, the cloud desktop is carried and managed in the form of files in virtual disk format. A virtual disk is composed of multiple virtual disk files, such as a parent virtual disk, a primary virtual disk, a secondary virtual disk, etc., among which the primary virtual disk, the secondary virtual disk, etc. are referred to as differential virtual disks. Through the cloud terminal TCI / IDV boot technology, the virtual disk file issued by the cloud server is started on the cloud terminal side, and the entire cloud desktop is presented to the user on the cloud terminal.
[0112] TCI / IDV cloud desktop architecture Figure 1 As shown, the virtual disk file system is created on the cloud server and then sent to the cloud terminal through the network. The cloud terminal starts the TCI / IDV cloud desktop through the TCI / IDV boot technology and displays the computer cloud desktop for users to use, such as the Windows 7 desktop.
[0113] However, as TCI / IDV cloud desktops are increasingly used in various industries, the problem of insufficient disk space on cloud terminals has gradually emerged when users use cloud desktops. The problem of insufficient disk space is because TCI / IDV cloud desktops are implemented through virtual disks and their differential technology.
[0114] Under this technical architecture, compared with the desktop usage of ordinary PCs, there is still a gap in the cloud terminal disk space utilization of TCI / IDV cloud desktops compared with ordinary PCs.
[0115] Taking the disk space required by TCI / IDV cloud desktop running in virtual disk file format as an example, the maximum space required is twice the maximum upper limit of the parent virtual disk. This is mainly because TCI / IDV cloud desktop is composed of parent virtual disk + child virtual disk (which can include multiple children, such as primary virtual disk..., secondary virtual disk...), which is composed of two parts. Figure 2 As shown, the child virtual disk is used to realize the personality and restore functions of the cloud desktop, and the maximum size of the child virtual disk is equal to the size of the parent virtual disk, so it requires twice the space.
[0116] For example, for a 50GB TCI / IDV cloud desktop, the maximum upper limit of the parent virtual disk is 50GB, and the maximum upper limit of the child virtual disk is also 50GB, then 100GB of physical disk space is required. If there is insufficient space, the cloud desktop will display a blue screen. On an ordinary PC, a 50GB desktop occupies 50GB of physical disk space.
[0117] In the related art, the problem of insufficient disk space of cloud terminals is mainly solved by expanding the disk capacity, but this solution is costly and limits the application of cloud desktops.
[0118] In view of this, the embodiments of the present application provide a disk space management method, device, electronic device and storage medium. Since the embodiments of the present application create at least one parent virtual disk file and at least one first-level virtual disk file, group each application software according to a preset classification rule, obtain at least one application software package, and install at least one application software package to different first-level virtual disk files respectively, further, send at least one parent virtual disk file and their corresponding first-level virtual disk file name sets to a cloud terminal, so that the same first-level virtual disk files of multiple operating systems can use one parent virtual disk file, effectively saving physical disk space, and the object can select the first-level virtual disk file to be downloaded according to demand, and after receiving the disk download request for the target first-level virtual disk file sent by the cloud terminal, send the target first-level virtual disk file to the cloud terminal, so that only the first-level virtual disk file selected by the object needs to be sent to the cloud terminal, which can make full use of the physical disk space of the cloud terminal, improve the disk space utilization rate, and thus alleviate the problem of insufficient storage space.
[0119] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0120] like Figure 3 As shown, it is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes two terminal devices 310 and a server 320, wherein the terminal device 310 is a cloud terminal in the embodiment of the present application, and the server 320 is a cloud server.
[0121] In the embodiment of the present application, a client related to the cloud desktop may be installed on the terminal device 310, and the client may be software (such as a browser, cloud desktop software, etc.), or a web page, a small program, etc. The server 320 is a background server corresponding to the software or web page, small program, etc., or a server specifically used to provide a cloud desktop, which is not specifically limited in the present application. The server 320 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0122] It should be noted that the disk space management method in the embodiment of the present application can be executed by an electronic device, which can be a server 320 or a terminal device 310, that is, the method can be executed by the server 320 or the terminal device 310 alone, or can be executed by the server 320 and the terminal device 310 together. For example, when the method is executed by the server 320 and the terminal device 310 together, the server 320 creates at least one parent virtual disk file and at least one primary virtual disk file, groups each application software according to a preset classification rule, obtains at least one application software package, and installs at least one application software package to different primary virtual disk files, then sends at least one parent virtual disk file and a corresponding primary virtual disk file name set to the terminal device 310, and after receiving a disk download request for a target primary virtual disk file sent by the terminal device 310, sends the target primary virtual disk file to the terminal device 310, so that the terminal device 310 starts the corresponding cloud desktop on the terminal device 310 based on the target primary virtual disk file and the corresponding parent virtual disk file.
[0123] In an optional implementation, the terminal device 310 and the server 320 may communicate with each other via a communication network.
[0124] In an optional implementation, the communication network is a wired network or a wireless network.
[0125] It should be noted that Figure 3 The figure is only an example. In fact, the number of terminal devices and servers is not limited and is not specifically limited in the embodiments of the present application.
[0126] In an embodiment of the present application, when there are multiple servers, the multiple servers can form a blockchain, and the servers are nodes on the blockchain; as in the disk space management method disclosed in the embodiment of the present application, the virtual disk files involved can be saved on the blockchain.
[0127] In addition, the embodiments of the present application can be applied to various scenarios, including not only cloud technology scenarios, but also including but not limited to artificial intelligence, smart transportation, assisted driving and other scenarios.
[0128] The following describes the disk space management method provided by the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation methods of the present application are not limited in this regard.
[0129] See also Figure 4 As shown, it is an implementation flow chart of a disk space management method provided by an embodiment of the present application. Taking the execution subject as a cloud server as an example, the specific implementation process of the method includes the following steps S41-S43:
[0130] S41: The cloud server creates at least one parent virtual disk file and at least one primary virtual disk file;
[0131] Among them, different parent virtual disk files correspond to different operating system types. For example, the operating system corresponding to the parent virtual disk file 1 is Windows 10, and the operating system corresponding to the parent virtual disk file 2 is Linux.
[0132] For the management and operation architecture of cloud desktops, depending on the business needs of the user scenario, a cloud terminal may need to run two different types of systems, such as Windows 10 and Ubuntu. Therefore, the cloud server supports the creation of parent virtual disk files for multiple operating systems. For cloud desktops that need to use multiple different operating system types on the same cloud terminal, the process of creating virtual disk files by the cloud server is as follows:
[0133] For Cloud Desktop 1, Ubuntu system:
[0134] Create Ubuntu parent virtual disk file 1 of cloud desktop 1;
[0135] Create Ubuntu primary virtual disk file 1 of cloud desktop 1;
[0136] For Cloud Desktop 2, Windows 10 system:
[0137] Create Win10 parent virtual disk file 2 of cloud desktop 2;
[0138] Create Win10 level 1 virtual disk file 2 of cloud desktop 2;
[0139] For Cloud Desktop 3, Windows 10 system:
[0140] There is no need to create the parent virtual disk file 3 of cloud desktop 3. Directly use the Win10 parent virtual disk file 2 of cloud desktop 2.
[0141] Create Win10 level 1 virtual disk file 3 of cloud desktop 3.
[0142] Compared with the related art, the method of creating a parent virtual disk file and a first-level virtual disk file for each cloud desktop will result in wasteful occupation of storage space on the cloud server and cloud terminal side. In this application, the first-level virtual disk file with the same operating system only needs to use one parent virtual disk file, which effectively saves physical disk space.
[0143] S42: The cloud server groups the application software according to a preset classification rule to obtain at least one application software package, and installs the at least one application software package to different primary virtual disk files respectively;
[0144] Specifically, the cloud server can set different classification rules according to the needs of users. For example, in the cloud classroom scenario, application software can be grouped according to subjects to obtain application software package 1 used in art classes, which can include various painting and color matching software, and application software package 2 used in music classes, which can include various music players and instrument simulation software. The application software packages are installed into different primary virtual disk files, and users can select the primary virtual disk files they need to download according to their needs.
[0145]
[0146] Among them, the parent disk is the parent virtual disk file, and the first-level difference is the first-level virtual disk file. As can be seen from Table 1, in this application, when there are three types of users in the user scenario and three different combinations of software need to be used: according to different user scenarios, multiple application software are installed separately or in combination in different first-level differences according to actual needs. This can avoid all software being installed on the same first-level difference, resulting in a single difference space occupying a large space in the cloud terminal. As shown in the table above, create a Win10 parent disk, and then install software 1, 2, and 3 on different first-level differences according to user scenarios, which require 11.5GB, 11GB, and 12.5GB of space respectively. In the related art, all three software are installed in a first-level difference, create a Win10 parent disk, and then install software 1, 2, and 3 on the first-level difference, which requires 13.5GB of space. For example, when user 1 uses the cloud desktop, in this application, the first-level difference of software package 1 with software 1 installed is sent to the cloud terminal, occupying 11.5GB of cloud terminal space. In the related art, although user 1 only needs to use software 1, because the application software is not classified and packaged into different first-level differences, the first-level differences of three softwares installed at the same time need to be sent to the cloud terminal, occupying 13.5GB of cloud terminal space. Therefore, the solution in this application can effectively save the disk space of the cloud terminal.
[0147] Application software is classified and packaged into different software packages. Compared with the method of installing all software in a virtual disk in related technologies, this avoids the problem of insufficient space in the cloud terminal and maximizes the smoothness of using the cloud desktop. Because application software is installed and used together in the smallest combination, it avoids software occupying too many system resources, causing driver conflicts and background processes grabbing system resources and causing jams.
[0148] It should be noted that the parent virtual disk and the first-level virtual disk are both stored in the form of files on the physical disk of the cloud terminal, so they can be called parent virtual disk files and first-level virtual disk files. Users choose to enter different cloud desktops according to their needs, that is, to run different first-level virtual disk files.
[0149] S43: The cloud server sends at least one parent virtual disk file and a set of corresponding first-level virtual disk file names to the cloud terminal, and after receiving a disk download request for a target first-level virtual disk file sent by the cloud terminal, sends the target first-level virtual disk file to the cloud terminal, so that the cloud terminal starts the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0150] Among them, since the operating system types corresponding to the first-level virtual disk files in the same first-level virtual disk file name set are the same, the first-level virtual disk file name set only needs to display the available first-level virtual disk file names corresponding to the parent virtual disk file. After the user selects the first-level virtual disk file to be downloaded, the cloud server sends the first-level virtual disk file selected by the user to the cloud terminal.
[0151] In an embodiment of the present application, by creating at least one parent virtual disk file and at least one first-level virtual disk file, each application software is grouped according to a preset classification rule, at least one application software package is obtained, and at least one application software package is installed to different first-level virtual disk files respectively. Further, at least one parent virtual disk file and a corresponding first-level virtual disk file name set are sent to the cloud terminal. In this manner, for a parent virtual disk file, its corresponding first-level virtual disk file name set indicates that a parent virtual disk file may correspond to multiple first-level virtual disk files, that is, when there are multiple first-level virtual disk files with the same operating system, only one parent virtual disk file needs to be sent, which effectively saves physical disk space, and the object can select the first-level virtual disk file to be downloaded according to demand. After receiving the disk download request for the target first-level virtual disk file sent by the cloud terminal, the target first-level virtual disk file is sent to the cloud terminal. Therefore, only the first-level virtual disk file selected by the object needs to be sent to the cloud terminal, which can make full use of the physical disk space of the cloud terminal, improve the disk space utilization rate, and thus alleviate the problem of insufficient storage space.
[0152] In an optional implementation, step S43 may be specifically implemented as follows:
[0153] First, the disk space information of the cloud terminal in the disk download request is obtained. When it is determined that the disk space information meets the disk delivery conditions, the target first-level virtual disk file is sent to the cloud terminal.
[0154] Specifically, when the cloud terminal sends a target first-level virtual disk download request to the cloud server, it can also report the disk space information of the cloud terminal, so that the cloud server can send the target first-level virtual disk file after determining that the disk delivery conditions are met.
[0155] In an optional implementation, the cloud server sends a disk space collection instruction to the cloud terminal, so that the cloud terminal monitors and uploads real-time and historical data of space resource consumption of the cloud terminal physical disk.
[0156] Since the underlying system of the cloud terminal uses the Linux system, the space resource collection instructions of the Linux system can be used for collection. The collection method is real-time acquisition. The collection can be initiated by the client running on the cloud terminal, and the disk space information is recorded locally on the cloud terminal. The disk space information includes: the overall space resources of the cloud terminal, the currently occupied resources, and the available free resources. The client sends the disk space information to the cloud server. The collected space resource information is used to calculate the remaining available resources of the cloud terminal in order to determine the execution strategy of actions such as software package distribution and deletion.
[0157] In an optional implementation, the disk space information includes remaining space resource information, and whether the disk space information meets the disk delivery condition is determined in the following manner:
[0158] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is not less than the running space occupied by the target first-level virtual disk file, and the disk space information meets the disk delivery conditions;
[0159] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is less than the running space occupied by the target first-level virtual disk file, and the disk space information does not meet the disk delivery conditions.
[0160] Specifically, if the remaining space resources of the cloud terminal are not less than the operating space occupied by the target first-level virtual disk file, the target first-level virtual disk can be issued to the cloud terminal, that is, the disk issuance condition is met. If the remaining space resources of the cloud terminal are less than the operating space occupied by the target first-level virtual disk file, it indicates that the cloud terminal cannot provide the space required to run the target first-level virtual disk file, that is, the disk issuance condition is not met.
[0161] In an optional implementation, the running space occupied by the target first-level virtual disk file includes: the space occupied by the target first-level virtual disk file, and the space occupied by the second-level virtual disk file corresponding to the target first-level virtual disk file.
[0162] The secondary virtual disk file is used to record the operation process data of the cloud desktop. Specifically, when determining whether to send the primary virtual disk file to the cloud terminal, it is necessary to determine whether the cloud terminal has enough storage space to store the primary virtual disk file and the secondary virtual disk file.
[0163] In an optional implementation, the disk space information includes at least one of the historical occupied space of at least one secondary virtual disk file and the occupied space of a parent virtual disk file corresponding to the target primary virtual disk file. The occupied space of the secondary virtual disk file can be determined based on the following two methods:
[0164] Method 1: using an average value of the historical occupied space of at least one secondary virtual disk file as the occupied space of the secondary virtual disk file, wherein the historical occupied space of the secondary virtual disk file is recorded after the cloud terminal closes the cloud desktop in response to a closing operation of the object;
[0165] Method 2: Determine the occupied space of the secondary virtual disk file based on the occupied space of the parent virtual disk file corresponding to the target primary virtual disk file of a preset ratio.
[0166] Specifically, since the secondary virtual disk file records the operation process data of the cloud desktop, the size cannot be accurately calculated before the cloud desktop runs. When the cloud terminal has run the primary virtual disk file corresponding to the secondary virtual disk file, the cloud terminal will record the occupied space of the secondary virtual disk file as its historical occupied space, and report the historical occupied space information to the cloud server. The cloud server can use the average value of the historical occupied space as the occupied space of the secondary virtual disk file; when the cloud terminal has not run the primary virtual disk file corresponding to the secondary virtual disk file, that is, there is no historical occupied space information, then the preset ratio of the occupied space of the parent virtual disk file corresponding to the primary virtual disk file is used as the occupied space of the secondary virtual disk file. For example, the preset ratio can be 0.5, then 0.5 times the occupied space of the parent virtual disk file is used as the occupied space of the secondary virtual disk file. In specific implementation, the preset ratio can be customized as needed, and this application does not make specific restrictions here.
[0167] In the embodiment of the present application, when the cloud desktop runs a large set of application software, there are problems such as insufficient space and blue screen, and when there are many application software installed in the cloud desktop or a lot of file data stored, the cloud desktop can run without any problems, achieving the same experience as running on a normal PC. The disk space of the cloud terminal can be fully utilized without the need to expand the additional physical hard disk space.
[0168] In an optional implementation, the disk space information includes occupied space resource information; when it is determined that the disk space information does not meet the disk delivery condition, step S43 further includes:
[0169] Based on the occupied space resource information, the occupied space of the deletable resources of the cloud terminal is determined. If it is determined that the deletable resources will be deleted and the disk space information meets the disk delivery conditions, the resource deletion instruction and the target first-level virtual disk file are sent to the cloud terminal so that the cloud terminal can delete the deletable resources according to the resource deletion instruction.
[0170] Specifically, when it is determined that the disk space information does not meet the disk delivery conditions, the deletable resources in the cloud terminal can be searched according to the occupied space resource information. If it is determined that after deleting the deletable resources, the remaining space of the cloud terminal can store the operating space occupied by the target first-level virtual disk, the target first-level virtual disk file can still be delivered. It should be noted that the cloud server can send a resource deletion instruction and a target first-level virtual disk file to the cloud terminal at the same time, or it can first send a resource deletion instruction to the cloud terminal, and then send the target first-level virtual disk file after the cloud terminal deletes the deletable resources. This application does not make specific limitations here.
[0171] In addition, the cloud server sends a resource deletion instruction to the cloud terminal, instructing the cloud terminal to delete some or all of the deletable resources, as long as the disk space information meets the disk delivery conditions after deletion. For example, the deletable resources include: first-level virtual disk file 1, first-level virtual disk file 2, and first-level virtual disk file 3, then the cloud server can instruct the cloud terminal to delete first-level virtual disk file 1 and first-level virtual disk file 2 through the resource deletion instruction.
[0172] In an optional implementation, if after it is determined that the deletable resources are to be deleted, the disk space information still does not meet the disk delivery conditions, or the cloud terminal does not have deletable resources, a prompt message is sent to the cloud terminal so that the cloud terminal prompts the object that it cannot enter the cloud desktop according to the prompt message.
[0173] Specifically, if the space occupied by the deletable resources is smaller than the space occupied by the target primary virtual disk file, or there are no deletable resources, the target primary virtual disk file cannot be delivered, and the user is prompted that he cannot enter the cloud desktop.
[0174] In the embodiment of the present application, the object refers to a user who uses a cloud desktop on a cloud terminal. This article mainly uses the user as an example for explanation.
[0175] For a cloud terminal with a physical disk of 128GB, in the scenario of using three software packages on the Win10 system, the physical disk space resource data record details (i.e. disk space information) are shown in the following table:
[0176]
[0177] Among them, the first-level difference of the software package refers to the first-level virtual disk file in which the software package is installed, the restored second-level difference of the software package refers to the need to delete this second-level virtual disk file after the cloud desktop is closed to clear the data generated during the user's use of the cloud desktop, and the personalized second-level difference of the software package refers to the need to retain this second-level virtual disk file after the cloud desktop is closed to retain the data generated during the user's use of the cloud desktop.
[0178] In the embodiment of the present application, a scheduling algorithm is used to analyze the historical space data of various types of application software packages occupying the cloud terminal, determine the type of application software package requested by the user, and automatically schedule the application software package to run in the optimal way, thereby maximizing the use of the space resources of the local system of the cloud terminal, improving the operating efficiency of the application software, and achieving maximum use of the disk space of the cloud terminal under the background of virtual disk technology.
[0179] See also Figure 5 , which is a schematic diagram of the composition structure of a TCI / IDV cloud desktop system in an embodiment of the present application, including at least a cloud terminal side and a cloud server side. The cloud terminal side includes: a cloud terminal, a cloud desktop, and a client.
[0180] The cloud server side includes: cloud server, parent virtual disk file, primary virtual disk file, application software (hereinafter referred to as software), virtual disk dispatch center (hereinafter referred to as dispatch center). The functions of the client and dispatch center are as follows:
[0181] Client:
[0182] (1) The client runs on the Linux system of the cloud terminal and is used to connect to the cloud server and report the space information of the cloud terminal;
[0183] (2) The client receives the virtual disk file (including the parent virtual disk file and the first-level virtual disk differential file) issued by the virtual disk scheduling center;
[0184] (3) The client stores the virtual disk file sent by the virtual disk dispatch center to the directory specified by the cloud terminal;
[0185] (4) The client receives the disk space collection instruction issued by the virtual disk scheduling center;
[0186] (5) The client monitors and uploads the real-time and historical data of the physical disk space consumption of the cloud terminal to the virtual disk scheduling center according to the "disk space collection instruction";
[0187] (7) The client generates a secondary virtual disk file based on the parent virtual disk file and the primary virtual disk file according to the operation instructions of the cloud terminal user (the user clicks on the client interface to enter a certain cloud desktop), and boots and starts the specified cloud desktop directly on the cloud terminal through the secondary virtual disk file.
[0188] Virtual Disk Scheduling Center:
[0189] (1) The virtual disk scheduling center runs on the cloud server;
[0190] (2) The virtual disk dispatch center sends instructions to the client to collect cloud terminal disk space;
[0191] (3) The virtual disk dispatch center receives the real-time and historical data of the physical disk space consumption resources of the cloud terminal reported;
[0192] (4) The virtual disk scheduling center classifies the application software and installs it into different primary virtual disk files;
[0193] (5) The virtual disk scheduling center calculates and analyzes the optimal scheduling strategy based on the operations of the cloud server administrator and the space resource consumption of the cloud terminal physical disk, and sends the parent virtual disk file and the first-level virtual disk file to the client.
[0194] In the specific implementation, the dispatch center sends the parent virtual disk file (for example, Win10 system) to the client, the client receives the parent virtual disk file and stores it in the cloud terminal. If there are multiple parent virtual disk files, multiple parent virtual disk files are sent to the client. If multiple software packages use the parent virtual disk file of the same system type, then only one parent virtual disk file needs to be sent to the cloud terminal. However, the traditional practice is that multiple software packages send multiple parent virtual disk files to the client.
[0195] Since a parent disk can be used as a dependency for the primary virtual disk files of multiple software packages, the list of available software packages corresponding to the parent disk (i.e. the set of primary virtual disk file names) needs to be synchronized to the client so that users can access the cloud desktop corresponding to the software package and open the software package. Figure 6 As shown, a list of software package 1, software package 2, and software package 3 is sent to the client, and the user can enter the cloud desktop by clicking the corresponding software package.
[0196] In the embodiment of the present application, in order to solve the problem of insufficient storage space in the cloud terminal, the storage capacity of the local disk space resources of the cloud terminal is fully utilized through differential technology to optimize the scheduling and allocation of resources.
[0197] It should be noted that the virtual disk scheduling center involved in this application can also be extended to the field of using virtual disk technology on the cloud server side to start the cloud desktop as a virtual server desktop. For example, when the cloud server is used as a time-sharing multiplexing environment, that is, it is only used as a certain type of cloud server at the same time, the method in this application can also be used. For example, when building a test environment for a cloud server, different test environments need to be switched at different times. Through the parent virtual disk technology, as well as the first-level difference and the second-level difference, the required test environment can be effectively switched without wasting the space of the cloud server.
[0198] Another disk space management method in the present application is introduced below. Taking the execution subject as a cloud terminal as an example, the specific implementation process of the method includes the following steps S71-S73:
[0199] S71: The cloud terminal receives at least one parent virtual disk file and the corresponding first-level virtual disk file name set sent by the cloud server, and displays each first-level virtual disk file name set to the object;
[0200] Different parent virtual disk files correspond to different operating system types, and different primary virtual disk files are installed with different application software packages;
[0201] S72: The cloud terminal sends a disk download request for the target first-level virtual disk file to the cloud server in response to the object's selection operation for the target first-level virtual disk file;
[0202] S73: The cloud terminal receives the target first-level virtual disk file sent by the cloud server, and starts the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0203] In an optional implementation, the cloud terminal sends a disk download request including disk space information of the cloud terminal to the cloud server.
[0204] The target primary virtual disk file is sent by the cloud server when the disk space information determines that the disk space information meets the disk delivery conditions.
[0205] In an optional implementation, step S73 is implemented in the following manner:
[0206] First, a secondary virtual disk file of the target primary virtual disk file is generated, and then, based on the secondary virtual disk file, the target primary virtual disk file and the corresponding parent virtual disk file, the corresponding cloud desktop is started on the cloud terminal.
[0207] The secondary virtual disk file is used to record the operation process data of the cloud desktop. After the user selects the primary virtual disk file to be downloaded, the client generates a secondary virtual disk file based on the parent virtual disk file and the primary virtual disk file, and boots the specified cloud desktop directly on the cloud terminal through the secondary virtual disk file.
[0208] In an optional implementation, step S73 further includes the following contents:
[0209] Receive resource deletion instructions sent by the cloud server, and delete deletable resources based on the resource deletion instructions.
[0210] The resource deletion instruction is sent by the cloud server after it determines to delete the deletable resources and the disk space information meets the disk delivery conditions. The cloud terminal deletes the specified resources according to the resource deletion instruction to provide sufficient storage space for the operation of the target first-level virtual disk file.
[0211] In an optional implementation, step S73 further includes:
[0212] Receive a prompt message sent by the cloud server, and according to the prompt message, the object cannot enter the cloud desktop, wherein the prompt message is sent to the cloud terminal by the cloud server after it is determined to delete the deletable resources, but the disk space information still does not meet the disk delivery conditions, or the cloud terminal does not have the deletable resources.
[0213] In an optional implementation, step S73 further includes:
[0214] In response to a closing operation on the object, the cloud desktop is closed and the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server, so that after receiving the historical occupied space, the cloud server determines the occupied space of the secondary virtual disk file based on the historical occupied space; and based on the type of the secondary virtual disk file, determines the target operation to be performed on the secondary virtual disk file.
[0215] Specifically, after the user closes the cloud desktop, the occupied space of the secondary virtual disk file is recorded and reported to the cloud server, so that the occupied space of the secondary virtual disk file can be pre-calculated when the cloud desktop corresponding to the secondary virtual disk file is started next time.
[0216] In an optional implementation, based on the type of the secondary virtual disk file, the target operation performed on the secondary virtual disk file includes:
[0217] If the type of the secondary virtual disk file is restore, the secondary virtual disk file is deleted; otherwise, the secondary virtual disk file is retained.
[0218] Specifically, the types of secondary virtual disk files include restore and personalization. If the type is restore, the secondary virtual disk file needs to be deleted after the user closes the cloud desktop. If the type is personalization, the secondary virtual disk file needs to be retained after the user closes the cloud desktop.
[0219] In an embodiment of the present application, by creating at least one parent virtual disk file and at least one first-level virtual disk file, each application software is grouped according to a preset classification rule, so that the first-level virtual disk files with the same multiple operating systems can use one parent virtual disk file, thereby effectively saving physical disk space. Only the first-level virtual disk file selected by the object needs to be sent to the cloud terminal, which can make full use of the physical disk space of the cloud terminal, improve disk space utilization, and thus alleviate the problem of insufficient storage space.
[0220] See also Figure 8 , which is an interactive flow chart of a disk space management method in an embodiment of the present application, used to illustrate the interactive logic in the software package scheduling process, including the following steps:
[0221] S801: The scheduling center sends the parent virtual disk file and software package list;
[0222] S802: The client receives and stores the parent virtual disk file and displays a software package list;
[0223] S803: The client determines whether there is a primary virtual disk file of software package n locally. If so, execute step S812; if not, execute step S804;
[0224] S804: The client reports disk space information and a disk download request;
[0225] S805: The scheduling center receives the disk space information and the disk download request, and prepares a primary virtual disk file of software package n;
[0226] S806: The dispatch center determines whether the remaining space resources of the cloud terminal are sufficient to store the primary virtual disk file and the secondary virtual disk file of the software package n. If so, execute step 807; if not, execute step S808;
[0227] S807: The dispatch center sends the first-level virtual disk file of software package n;
[0228] S808: The dispatch center determines whether the remaining space resources of the cloud terminal are sufficient to store the primary virtual disk file and the secondary virtual disk file of the software package n after deleting the deletable resources. If yes, execute step S809; otherwise, execute step S811;
[0229] S809: The dispatch center sends a resource deletion instruction and the primary virtual disk file of software package n;
[0230] S810: The client deletes the deletable resource and executes step S812;
[0231] S811: The client prompts "Insufficient space, unable to send";
[0232] S812: The client generates a secondary virtual disk file of software package n;
[0233] S813: The client starts the cloud desktop of software package n.
[0234] The following three embodiments are used to introduce the specific implementation of the disk space management method in this application: Embodiment 1, software package 1 scheduling operation process:
[0235] Scheduling process:
[0236] a. The client initiates a request to download the first-level virtual disk file
[0237] (1) When the user clicks to use "Software Package 1" on the client, the client determines that there is no first-level virtual disk file of Software Package 1 locally, and then sends a request to download "the first-level virtual disk file of Software Package 1" to the dispatch center;
[0238] (2) When the user clicks to use "Software Package 1" on the client, the client determines that there is a primary virtual disk file of Software Package 1 locally, and then enters the operation process;
[0239] b. The client reports the cloud terminal space information
[0240] (3) At the same time, the client reports the cloud terminal disk space information to the dispatch center;
[0241] c. The dispatch center issues the first-level virtual disk file
[0242] (4) The dispatch center receives the client's download request and the disk space information of the cloud terminal;
[0243] (5) The dispatch center determines whether the remaining space of the cloud terminal is sufficient to store "the primary virtual disk file of software package 1" + "the restored secondary virtual disk file of software package 1";
[0244] Since there is no historical data for the size B of the restored secondary virtual disk file of software package 1, it is calculated based on the preset ratio of the maximum upper limit space of the parent virtual disk of software package 1.
[0245] (6) If the space is sufficient, the "first-level virtual disk file of software package 1" is issued;
[0246] (7) If the space does not meet the conditions for issuing, determine whether there is data that can be deleted, for example, the primary virtual disk files of other software packages can be deleted, and return a "primary virtual disk file of software package n (n=1, 2, 3, ...) can be deleted" instruction to the client, and the client executes the deletion of the primary virtual disk file of software package n;
[0247] (8) The dispatch center determines again whether the space is sufficient. If it is sufficient, the "first-level virtual disk file of software package 1" is sent. Otherwise, the client is prompted with the message "insufficient space and cannot be sent".
[0248] Operation process:
[0249] a. Client startup software package 1
[0250] (1) At this point, the cloud terminal has the Win10 "parent disk" and "primary virtual disk file of software package 1" that software package 1 depends on to start;
[0251] (2) The client generates a "secondary virtual disk file of software package 1";
[0252] The client starts the cloud desktop 1 of software package 1 from the "secondary virtual disk file of software package 1";
[0253] b. Close the cloud desktop on the client 1
[0254] (1) During the operation of cloud desktop 1, the secondary virtual disk file will continue to grow and occupy space;
[0255] (2) When there is no user using cloud desktop 1, the client closes cloud desktop 1;
[0256] c. Client collects information
[0257] (1) After cloud desktop 1 is closed, the client records the size of the secondary virtual disk file of software package 1;
[0258] (2) Since cloud desktop 1 is a restored desktop, its secondary virtual disk file needs to be deleted after closing, so that the terminal space is released;
[0259] d. Start software package 1 again
[0260] (1) When software package 1 is started again, the "secondary virtual disk file of software package 1" is created again to start cloud desktop 1 of software package 1;
[0261] (2) After closing, the size of the secondary virtual disk file of software package 1 is recorded again, and the secondary virtual disk file is deleted;
[0262] e. Statistical software package 1's secondary virtual disk file size
[0263] When software package 1 is started multiple times, there are multiple secondary virtual disk files of software package 1. Data statistics are performed on them to calculate the average size and record it as A.
[0264] Example 2, software package 2 scheduling operation process:
[0265] Scheduling process:
[0266] a. The client initiates a request to download the first-level virtual disk file
[0267] (1) When the user clicks to use "Software Package 2" on the client, the client determines that there is no primary virtual disk file of Software Package 2 locally, and then sends a request to download "Primary virtual disk file of Software Package 2" to the dispatch center;
[0268] (2) When the user clicks to use "Software Package 2" on the client, the client determines that there is a primary virtual disk file of Software Package 2 locally, and then enters the operation process;
[0269] b. The client reports the terminal space information
[0270] (3) At the same time, the client reports the disk space information of the cloud terminal to the dispatch center;
[0271] c. The dispatch center issues the first-level virtual disk file
[0272] (4) The dispatch center receives the client request and the cloud terminal disk space information;
[0273] (5) The dispatch center determines whether the remaining space of the cloud terminal is sufficient to store “the primary virtual disk file of software package 2” + “the restored secondary virtual disk file of software package 2”;
[0274] Since there is no historical data for the size B of the restored secondary virtual disk file of software package 2, it is calculated based on the preset ratio of the maximum upper limit space of the parent virtual disk of software package 2.
[0275] (6) If the space is sufficient, the "first-level virtual disk file of software package 2" is issued;
[0276] (7) If the space does not meet the conditions for issuing, determine whether there is data that can be deleted, for example, the primary virtual disk files of other software packages can be deleted, and return a "primary virtual disk file of software package n (n=1, 2, 3, ...) can be deleted" instruction to the client, and the client executes the deletion of the primary virtual disk file of software package n;
[0277] (8) The dispatch center determines again whether the space is sufficient. If it is sufficient, the "primary virtual disk file of software package 2" is sent. Otherwise, the client is prompted with the message "insufficient space and unable to send".
[0278] Operation process:
[0279] a. Client startup software package 2
[0280] (1) At this point, the cloud terminal has the Win10 "parent disk" and "primary virtual disk file of software package 2" that software package 2 depends on to start;
[0281] (2) The client generates a "secondary virtual disk file of software package 2";
[0282] The client starts the cloud desktop 2 of software package 2 from the "secondary virtual disk file of software package 2";
[0283] b. The client closes the cloud desktop 2
[0284] (1) During the operation of Cloud Desktop 2, the secondary virtual disk file will continue to grow and occupy space;
[0285] (2) When there is no user using cloud desktop 2, the client closes cloud desktop 2;
[0286] c. Client collects information
[0287] (1) After cloud desktop 2 is closed, the client records the size of the secondary virtual disk file of software package 2;
[0288] (2) Since cloud desktop 2 is a restored desktop, its secondary virtual disk file needs to be deleted after closing, so that the space of the cloud terminal is released again;
[0289] d. Start software package 2 again
[0290] (1) When software package 2 is started again, the "secondary virtual disk file of software package 2" is created again to start cloud desktop 2 of software package 2;
[0291] (2) After closing, the size of the secondary virtual disk file of software package 2 is recorded again, and the secondary virtual disk file is deleted;
[0292] e. Statistical software package 2's secondary virtual disk file size
[0293] When software package 2 is started multiple times, there are multiple secondary virtual disk files of software package 2. Data statistics are performed on them to calculate the average size and record it as B.
[0294] Example 3, software package 3 scheduling operation process:
[0295] Scheduling process:
[0296] a. The client initiates a request to download the first-level virtual disk file
[0297] (1) When the user clicks to use "Software Package 3" on the client, the client determines that there is no primary virtual disk file of Software Package 3 locally, and then sends a request to download "Primary virtual disk file of Software Package 3" to the dispatch center;
[0298] (2) When the user clicks to use "Software Package 3" on the client, the client determines that there is a primary virtual disk file of Software Package 3 locally, and then enters the operation process;
[0299] b. The client reports the terminal space information
[0300] (3) At the same time, the client reports the disk space information of the cloud terminal to the dispatch center;
[0301] c. The dispatch center issues the first-level virtual disk file
[0302] (4) The dispatch center receives the client request and the cloud terminal disk space information;
[0303] (5) The dispatch center determines whether the remaining space of the cloud terminal is sufficient to store "the primary virtual disk file of software package 3" + "the restored secondary virtual disk file of software package 3";
[0304] Since there is no historical data for the size C of the personalized secondary virtual disk file of software package 3, it is calculated based on the preset ratio of the maximum upper limit space of the parent virtual disk of software package 3.
[0305] (6) If the space is sufficient, the "first-level virtual disk file of software package 3" is issued;
[0306] (7) If the space does not meet the conditions for issuing, determine whether there is data that can be deleted, for example, the primary virtual disk files of other software packages can be deleted, and return a "primary virtual disk file of software package n (n=1, 2, 3, ...) can be deleted" instruction to the client, and the client executes the deletion of the primary virtual disk file of software package n;
[0307] (8) The dispatch center determines again whether the space is sufficient. If it is sufficient, the "primary virtual disk file of software package 2" is sent. Otherwise, the client is prompted with the message "insufficient space and unable to send".
[0308] Operation process:
[0309] a. Client startup software package 3
[0310] (1) At this point, the cloud terminal has the Win10 "parent disk" and "primary virtual disk file of software package 3" that software package 3 depends on to start;
[0311] (2) The client generates a "secondary virtual disk file of software package 3";
[0312] The client starts the cloud desktop 3 of software package 3 from the "secondary virtual disk file of software package 3";
[0313] b. The client closes the cloud desktop 3
[0314] (1) During the operation of Cloud Desktop 3, the secondary virtual disk file will continue to grow and occupy space;
[0315] (2) When there is no user using the cloud desktop 3, the client closes the cloud desktop 3;
[0316] c. Client collects information
[0317] (1) After cloud desktop 3 is closed, the client records the size of the secondary virtual disk file of software package 3;
[0318] (2) Since cloud desktop 3 is a personalized desktop, its secondary virtual disk file needs to be retained after closing, so that the space of the cloud terminal will not be released and will always be occupied by the secondary virtual disk file of cloud desktop 3;
[0319] d. Start software package 3 again
[0320] (1) When software package 3 is started again, cloud desktop 3 is started from the secondary virtual disk file of software package 3;
[0321] (2) After closing, the size of the secondary virtual disk file of software package 3 is recorded again, and the secondary virtual disk file is retained;
[0322] e. Statistical software package 3's secondary virtual disk file size
[0323] Because there is only one secondary virtual disk file of software package 3 after software package 3 is started multiple times, there is no need to perform data statistics to calculate the average size. Instead, it is only necessary to record the size of the secondary virtual disk file as B.
[0324] Based on the same inventive concept, the first disk space management device provided by the embodiment of the present application is as follows. Fig. 9 As shown, it is a schematic diagram of the structure of the disk space management device 900, which may include:
[0325] A creating unit 901 is used to create at least one parent virtual disk file and at least one primary virtual disk file, wherein different parent virtual disk files correspond to different operating system types;
[0326] A grouping unit 902 is used to group the application software according to a preset classification rule to obtain at least one application software package, and install the at least one application software package to different primary virtual disk files respectively;
[0327] The sending unit 903 is used to send at least one parent virtual disk file and a set of corresponding first-level virtual disk file names to the cloud terminal, and after receiving a disk download request for a target first-level virtual disk file sent by the cloud terminal, send the target first-level virtual disk file to the cloud terminal, so that the cloud terminal starts the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0328] Optionally, the sending unit 903 is specifically configured to:
[0329] Get the disk space information of the cloud terminal in the disk download request;
[0330] When it is determined that the disk space information meets the disk delivery conditions, the target first-level virtual disk file is sent to the cloud terminal.
[0331] Optionally, the disk space information includes occupied space resource information; when it is determined that the disk space information does not meet the disk delivery condition, the sending unit 903 is further used to:
[0332] Determine the occupied space of the deletable resources of the cloud terminal according to the occupied space resource information;
[0333] If it is determined that the deletable resource is to be deleted and the disk space information meets the disk delivery conditions, a resource deletion instruction and a target first-level virtual disk file are sent to the cloud terminal so that the cloud terminal deletes the deletable resource according to the resource deletion instruction;
[0334] If after it is determined that the deletable resources are to be deleted, the disk space information still does not meet the disk delivery conditions, or the cloud terminal does not have deletable resources, a prompt message is sent to the cloud terminal so that the cloud terminal cannot enter the cloud desktop according to the prompt message.
[0335] Optionally, the running space occupied by the target first-level virtual disk file includes: the space occupied by the target first-level virtual disk file, and the space occupied by the second-level virtual disk file corresponding to the target first-level virtual disk file, and the second-level virtual disk file is used to record the running process data of the cloud desktop.
[0336] Optionally, the disk space information includes at least one of a historical occupied space of at least one secondary virtual disk file and an occupied space of a parent virtual disk file corresponding to the target primary virtual disk file, and the occupied space of the secondary virtual disk file is determined based on at least one of the following methods:
[0337] The average value of the historical occupied space of at least one secondary virtual disk file is used as the occupied space of the secondary virtual disk file, wherein the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server after the cloud terminal closes the cloud desktop each time in response to a closing operation of the object;
[0338] Based on a preset ratio of the occupied space of the parent virtual disk file, the occupied space of the secondary virtual disk file is determined.
[0339] Optionally, the disk space information includes remaining space resource information. Whether the disk space information meets the disk delivery condition is determined in the following manner:
[0340] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is not less than the running space occupied by the target first-level virtual disk file, and the disk space information meets the disk delivery conditions;
[0341] Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is less than the running space occupied by the target first-level virtual disk file, and the disk space information does not meet the disk delivery conditions.
[0342] Based on the same inventive concept, the present application embodiment provides a second disk space management device. Fig.10 As shown, it is a schematic diagram of the structure of the disk space management device 1000, which may include:
[0343] The receiving unit 1001 is used to receive at least one parent virtual disk file and a set of first-level virtual disk file names corresponding to each of the parent virtual disk files sent by the cloud server, and to display each set of first-level virtual disk file names to the object, wherein different parent virtual disk files correspond to different operating system types, and different first-level virtual disk files are installed with different application software packages;
[0344] A sending unit 1002 is used to send a disk download request for the target first-level virtual disk file to the cloud server in response to the object's selection operation for the target first-level virtual disk file;
[0345] The starting unit 1003 is used to receive the target first-level virtual disk file sent by the cloud server, and start the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file.
[0346] Optionally, the sending unit 1002 is specifically configured to:
[0347] Sending a disk download request containing disk space information of the cloud terminal to the cloud server;
[0348] The target primary virtual disk file is sent by the cloud server when the disk space information determines that the disk space information meets the disk delivery conditions.
[0349] Optionally, the starting unit 1003 is specifically used for:
[0350] Generate a secondary virtual disk file of the target primary virtual disk file, and start the corresponding cloud desktop on the cloud terminal based on the secondary virtual disk file, the target primary virtual disk file and the corresponding parent virtual disk file. The secondary virtual disk file is used to record the running process data of the cloud desktop.
[0351] Optionally, the starting unit 1003 is further used for:
[0352] Receive a resource deletion instruction sent by the cloud server, and delete the deletable resources based on the resource deletion instruction, wherein the resource deletion instruction is sent by the cloud server after determining to delete the deletable resources and the disk space information meets the disk delivery condition.
[0353] Optionally, the sending unit 1002 is further configured to:
[0354] Receive a prompt message sent by the cloud server, and according to the prompt message, the object cannot enter the cloud desktop, wherein the prompt message is sent to the cloud terminal by the cloud server after it is determined to delete the deletable resources, but the disk space information still does not meet the disk delivery conditions, or the cloud terminal does not have the deletable resources.
[0355] Optionally, the sending unit 1002 is further configured to:
[0356] In response to a closing operation of the object, the cloud desktop is closed and the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server, so that after receiving the historical occupied space, the cloud server determines the occupied space of the secondary virtual disk file based on the historical occupied space; and, based on the type of the secondary virtual disk file, determines the target operation to be performed on the secondary virtual disk file.
[0357] Optionally, the sending unit 1002 is specifically configured to:
[0358] If the type of the secondary virtual disk file is restore, delete the secondary virtual disk file;
[0359] Otherwise, the secondary virtual disk file is retained.
[0360] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0361] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0362] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be a server, such as Figure 3 In this embodiment, the structure of the electronic device can be as follows: Fig.11 As shown, it includes a memory 1101 , a communication module 1103 and one or more processors 1102 .
[0363] The memory 1101 is used to store computer programs executed by the processor 1102. The memory 1101 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0364] The memory 1101 may be a volatile memory, such as a random-access memory (RAM); the memory 1101 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 1101 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1101 may be a combination of the above memories.
[0365] The processor 1102 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 1102 is used to implement the above disk space management method when calling the computer program stored in the memory 1101 .
[0366] The communication module 1103 is used to communicate with terminal devices and other servers.
[0367] The specific connection medium between the memory 1101, the communication module 1103 and the processor 1102 is not limited in the embodiment of the present application. Fig.11 In the embodiment, the memory 1101 and the processor 1102 are connected via a bus 1104. The bus 1104 is connected to the processor 1102 via a bus 1104. Fig.11 The connections between the other components are described with bold lines, which are only for illustration and are not intended to be limiting. The bus 1104 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Fig.11 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or only one type of bus.
[0368] The memory 1101 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the disk space management method of the embodiment of the present application. The processor 1102 is used to execute the above-mentioned disk space management method, such as Figure 4 or Figure 7 shown.
[0369] In another embodiment, the electronic device may also be other electronic devices, such as Figure 3 The terminal device 310 is shown in FIG. In this embodiment, the structure of the electronic device can be as follows: Fig.12As shown, it includes: a communication component 1210, a memory 1220, a display unit 1230, a camera 1240, a sensor 1250, an audio circuit 1260, a Bluetooth module 1270, a processor 1280 and other components.
[0370] The communication component 1210 is used to communicate with the server. In some embodiments, a wireless fidelity (WiFi) module may be included. The WiFi module belongs to a short-range wireless transmission technology. The electronic device can help the user to send and receive information through the WiFi module.
[0371] The memory 1220 can be used to store software programs and data. The processor 1280 executes various functions and data processing of the terminal device 310 by running the software programs or data stored in the memory 1220. The memory 1220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The memory 1220 stores an operating system that enables the terminal device 310 to run. In the present application, the memory 1220 can store an operating system and various application programs, and can also store code for executing the disk space management method of the embodiment of the present application.
[0372] The display unit 1230 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal device 310. Specifically, the display unit 1230 may include a display screen 1232 disposed on the front of the terminal device 310. The display screen 1232 may be configured in the form of a liquid crystal display, a light-emitting diode, etc. The display unit 1230 may be used to display the cloud desktop user interface in the embodiment of the present application, etc.
[0373] The display unit 1230 can also be used to receive input digital or character information, and generate signal input related to user settings and function control of the terminal device 310. Specifically, the display unit 1230 may include a touch screen 1231 arranged on the front of the terminal device 310, which can collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.
[0374] The touch screen 1231 may be covered on the display screen 1232, or the touch screen 1231 and the display screen 1232 may be integrated to realize the input and output functions of the terminal device 310, and the integrated touch screen may be referred to as a touch display screen. In the present application, the display unit 1230 may display the application and the corresponding operation steps.
[0375] The camera 1240 can be used to capture still images, and users can post comments on the images taken by the camera 1240 through the application. There can be one or more cameras 1240. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the processor 1280 to convert it into a digital image signal.
[0376] The terminal device may further include at least one sensor 1250, such as an acceleration sensor 1251, a distance sensor 1252, a fingerprint sensor 1253, and a temperature sensor 1254. The terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.
[0377] The audio circuit 1260, the speaker 1261, and the microphone 1262 can provide an audio interface between the user and the terminal device 310. The audio circuit 1260 can transmit the electrical signal converted from the received audio data to the speaker 1261, which is converted into a sound signal for output. The terminal device 310 can also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 1262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1260 and converted into audio data, and then the audio data is output to the communication component 1210 to be sent to, for example, another terminal device 310, or the audio data is output to the memory 1220 for further processing.
[0378] The Bluetooth module 1270 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 1270 to exchange data.
[0379] The processor 1280 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal device and processes data by running or executing software programs stored in the memory 1220 and calling data stored in the memory 1220. In some embodiments, the processor 1280 may include one or more processing units; the processor 1280 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 1280. In the present application, the processor 1280 can run the operating system, application programs, user interface display and touch response, as well as the disk space management method of the embodiment of the present application. In addition, the processor 1280 is coupled to the display unit 1230.
[0380] In some possible implementations, various aspects of the disk space management method provided by the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the disk space management method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device may execute the following steps: Figure 4 or Figure 7 Follow the steps shown in .
[0381] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0382] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, apparatus, or device.
[0383] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.
[0384] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0385] Computer programs for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The computer program may be executed entirely on the user electronic device, partially on the user device, as a separate software package, partially on the user electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In the case of a remote electronic device, the remote electronic device may be connected to the user electronic device via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external electronic device (e.g., via the Internet using an Internet service provider).
[0386] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0387] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0388] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain a computer-usable computer program.
[0389] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program commands. These computer program commands can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0390] These computer program commands may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the commands stored in the computer readable memory produce an article of manufacture comprising a command device, the command device implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0391] These computer program commands can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the commands executed on the computer or other programmable device provide the instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0392] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0393] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A disk space management method, characterized in that: Applied to a cloud server, the method includes: Creating at least one parent virtual disk file and at least one primary virtual disk file, wherein different parent virtual disk files correspond to different operating system types; Grouping the application software according to a preset classification rule to obtain at least one application software package, and installing the at least one application software package to different primary virtual disk files respectively; Sending the at least one parent virtual disk file and the corresponding first-level virtual disk file name set to the cloud terminal, and after receiving the disk download request for the target first-level virtual disk file sent by the cloud terminal, sending the target first-level virtual disk file to the cloud terminal, so that the cloud terminal starts the corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file; After receiving the disk download request for the target primary virtual disk file sent by the cloud terminal, sending the target primary virtual disk file to the cloud terminal includes: Obtaining disk space information of the cloud terminal in the disk download request; the disk space information includes at least one of a historical occupied space of a secondary virtual disk file corresponding to at least one of the target primary virtual disk file and an occupied space of a parent virtual disk file corresponding to the target primary virtual disk file, wherein the occupied space of the secondary virtual disk file is determined based on at least one of the following methods: Taking the average value of the historical occupied space of at least one of the secondary virtual disk files as the occupied space of the secondary virtual disk file, wherein the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server after the cloud terminal closes the cloud desktop each time in response to the closing operation of the object; Determining the occupied space of the secondary virtual disk file based on the occupied space of the parent virtual disk file of a preset ratio; When it is determined that the disk space information meets the disk delivery condition, the target first-level virtual disk file is sent to the cloud terminal.
2. The method according to claim 1, characterized in that The disk space information includes occupied space resource information; When it is determined that the disk space information does not meet the disk delivery condition, the method further includes: Determining the occupied space of the deletable resources of the cloud terminal according to the occupied space resource information; If it is determined that after deleting the deletable resource, the disk space information satisfies the disk delivery condition, a resource deletion instruction and the target primary virtual disk file are sent to the cloud terminal, so that the cloud terminal deletes the deletable resource according to the resource deletion instruction; If after determining to delete the deletable resource, the disk space information still does not meet the disk delivery condition, or the cloud terminal does not have the deletable resource, a prompt message is sent to the cloud terminal so that the cloud terminal cannot enter the cloud desktop according to the prompt message.
3. The method according to claim 1, characterized in that The disk space information includes remaining space resource information; whether the disk space information meets the disk delivery condition is determined by: Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is not less than the running space occupied by the target primary virtual disk file, and the disk space information satisfies the disk delivery condition; Based on the remaining space resource information, it is determined that the remaining space resource of the cloud terminal is less than the running occupied space of the target primary virtual disk file, and then the disk space information does not meet the disk delivery condition.
4. The method according to claim 2 or 3, characterized in that The operating space occupied by the target first-level virtual disk file includes: the space occupied by the target first-level virtual disk file, and the space occupied by the second-level virtual disk file corresponding to the target first-level virtual disk file, and the second-level virtual disk file is used to record the operating process data of the cloud desktop.
5. A disk space management method, characterized in that: Applied to a cloud terminal, the method includes: Receive at least one parent virtual disk file and a set of first-level virtual disk file names corresponding to each of them sent by the cloud server, and display each set of first-level virtual disk file names to the object, wherein different parent virtual disk files correspond to different operating system types, and different first-level virtual disk files are installed with different application software packages; In response to the object's selection operation on the target first-level virtual disk file, sending a disk download request for the target first-level virtual disk file to the cloud server; Receiving the target first-level virtual disk file sent by the cloud server, and starting a corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file; The starting a corresponding cloud desktop on the cloud terminal based on the target primary virtual disk file and the corresponding parent virtual disk file includes: Generate a secondary virtual disk file of the target primary virtual disk file, and start a corresponding cloud desktop on the cloud terminal based on the secondary virtual disk file, the target primary virtual disk file and the corresponding parent virtual disk file, wherein the secondary virtual disk file is used to record the operation process data of the cloud desktop; In response to a closing operation of the object, the cloud desktop is closed, and the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server, so that after receiving the historical occupied space, the cloud server determines the occupied space of the secondary virtual disk file based on the historical occupied space; and based on the type of the secondary virtual disk file, determines the target operation to be performed on the secondary virtual disk file.
6. The method according to claim 5, characterized in that The sending a corresponding disk download request to the cloud server includes: Sending a disk download request including disk space information of the cloud terminal to the cloud server; The target primary virtual disk file is sent by the cloud server when it determines that the disk space information meets the disk sending conditions.
7. The method according to claim 6, characterized in that The method further comprises: Receive a resource deletion instruction sent by the cloud server, and delete the deletable resources based on the resource deletion instruction, wherein the resource deletion instruction is sent by the cloud server after determining to delete the deletable resources and the disk space information meets the disk delivery condition.
8. The method according to claim 6, characterized in that The method further comprises: Receive a prompt message sent by the cloud server, and prompt the object that it cannot enter the cloud desktop according to the prompt message, wherein the prompt message is sent to the cloud terminal by the cloud server after it is determined to delete the deletable resources and the disk space information still does not meet the disk delivery conditions, or the cloud terminal does not have the deletable resources.
9. A disk space management device, characterized in that: Applied to cloud servers, including: A creating unit, used to create at least one parent virtual disk file and at least one primary virtual disk file, wherein different parent virtual disk files correspond to different operating system types; A grouping unit, used to group the various application software according to a preset classification rule, obtain at least one application software package, and install the at least one application software package into different primary virtual disk files respectively; A sending unit, configured to send the at least one parent virtual disk file and the corresponding first-level virtual disk file name set to the cloud terminal, and after receiving a disk download request for a target first-level virtual disk file sent by the cloud terminal, send the target first-level virtual disk file to the cloud terminal, so that the cloud terminal starts a corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file; After receiving the disk download request for the target primary virtual disk file sent by the cloud terminal, sending the target primary virtual disk file to the cloud terminal includes: Obtaining disk space information of the cloud terminal in the disk download request; the disk space information includes at least one of a historical occupied space of a secondary virtual disk file corresponding to at least one of the target primary virtual disk file and an occupied space of a parent virtual disk file corresponding to the target primary virtual disk file, wherein the occupied space of the secondary virtual disk file is determined based on at least one of the following methods: Taking the average value of the historical occupied space of at least one of the secondary virtual disk files as the occupied space of the secondary virtual disk file, wherein the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server after the cloud terminal closes the cloud desktop each time in response to the closing operation of the object; Determining the occupied space of the secondary virtual disk file based on the occupied space of the parent virtual disk file of a preset ratio; When it is determined that the disk space information meets the disk delivery condition, the target primary virtual disk file is sent to the cloud terminal.
10. A disk space management device, characterized in that: Applied to cloud terminals, including: a receiving unit, configured to receive at least one parent virtual disk file and a set of first-level virtual disk file names corresponding to the parent virtual disk file sent by the cloud server, and to display each set of first-level virtual disk file names to the object, wherein different parent virtual disk files correspond to different operating system types, and different first-level virtual disk files are installed with different application software packages; A sending unit, configured to send a corresponding disk download request to the cloud server in response to the object's selection operation on the target primary virtual disk file; A startup unit, configured to receive the target first-level virtual disk file sent by the cloud server, and start a corresponding cloud desktop on the cloud terminal based on the target first-level virtual disk file and the corresponding parent virtual disk file; The starting a corresponding cloud desktop on the cloud terminal based on the target primary virtual disk file and the corresponding parent virtual disk file includes: Generate a secondary virtual disk file of the target primary virtual disk file, and start a corresponding cloud desktop on the cloud terminal based on the secondary virtual disk file, the target primary virtual disk file and the corresponding parent virtual disk file, wherein the secondary virtual disk file is used to record the operation process data of the cloud desktop; In response to a closing operation of the object, the cloud desktop is closed, and the historical occupied space of the secondary virtual disk file is recorded and sent to the cloud server, so that after receiving the historical occupied space, the cloud server determines the occupied space of the secondary virtual disk file based on the historical occupied space; and based on the type of the secondary virtual disk file, determines the target operation to be performed on the secondary virtual disk file.
11. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 8.
Citation Information
Patent Citations
Highly available system of network cloud disk
CN107995318A
System recovering method and device
CN108572889A
Virtual disk data synchronization server, client and system
CN110928494A
Cloud desktop upgrading method and device, cloud server and storage medium
CN111221537A
Mirror image file downloading method, device and system, equipment and storage medium
CN111866099A
