A file transfer method and system

By mounting cloud storage space on the physical machine as the local disk of the virtual machine, file transfer between the user and the virtual machine can be directly realized, which solves the problems of low transfer efficiency and poor stability and improves the user experience.

CN116107699BActive Publication Date: 2026-11-06SHENZHEN WEIKE SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310116149.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-31
Publication Date
2026-11-06
Estimated Expiration
2043-01-31

AI Technical Summary

Technical Problem

In existing technologies, file transfer between the client and the virtual machine is inefficient and unstable, especially due to the limitations of the physical machine's transfer rate and the failure caused by operational interruptions, which affects the user experience.

Method used

By mounting the cloud storage space address to the storage management directory of the physical machine, the startup parameters of the target virtual machine are constructed, and the target virtual machine is started on the physical machine, so that it mounts the cloud storage space as a local disk. The user end can directly transfer files through the cloud storage end, avoiding the relay between the relay server and the physical machine.

Benefits of technology

It improves file transfer efficiency, enhances transfer stability, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116107699B_ABST
    Figure CN116107699B_ABST
Patent Text Reader

Abstract

The application discloses a file transmission method and system. The method comprises the following steps: a cloud storage end mounts a cloud storage space address to a storage management directory of a physical machine; the physical machine constructs a starting parameter of a target virtual machine based on the storage management directory, and starts the target virtual machine on the physical machine based on the starting parameter; the target virtual machine mounts part of a target cloud storage space in the cloud storage space as a local disk when starting; and a user end transmits a target file between the user end and the target virtual machine through the cloud storage end in response to a target file transmission operation triggered on a cloud desktop of the target virtual machine. Through the technical scheme of the embodiment, efficient transmission of the target file between the user end and the target virtual machine can be realized, the stability of the file transmission is enhanced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of file transfer technology, and in particular to a file transfer method and system. Background Technology

[0002] Cloud desktops, also known as desktop virtualization, display a virtual machine desktop on a user's device, allowing users to use various applications within the cloud desktop for work, study, and other purposes. In practical use, file transfers between the user's device and the virtual machine are frequently required.

[0003] Currently, a portion of the physical machine's disk is typically used as the virtual machine's local disk. File transfers require the file to first be sent to a relay server, which then forwards it to the physical machine, and finally, the physical machine copies the file to the virtual machine.

[0004] Due to the limitations of physical machine transfer rates, file transfer efficiency is low. Furthermore, if the physical machine or virtual machine exits operation during file transfer, the transfer will fail, resulting in poor stability and negatively impacting user experience. Summary of the Invention

[0005] This invention provides a file transfer method to achieve efficient transfer of target files between a user terminal and a target virtual machine, enhance the stability of file transfer, and thus improve the user experience.

[0006] In a first aspect, embodiments of the present invention provide a file transfer method, the method comprising:

[0007] The cloud storage client mounts the cloud storage space address to the physical machine's storage management directory;

[0008] The physical machine constructs the startup parameters of the target virtual machine based on the storage management directory, and starts the target virtual machine on the physical machine based on the startup parameters;

[0009] When the target virtual machine starts, it mounts a portion of the target cloud storage space as a local disk.

[0010] In response to a target file transfer operation triggered on the cloud desktop of the target virtual machine, the user terminal transfers the target file between the user terminal and the target virtual machine via the cloud storage terminal.

[0011] On the other hand, embodiments of the present invention also provide a file transfer system applied in a file transfer method. This file transfer system includes: a user terminal, a cloud storage terminal, and a physical machine, wherein...

[0012] The cloud storage terminal is used to mount the cloud storage space address to the storage management directory of the physical machine;

[0013] The physical machine is used to construct the startup parameters of the target virtual machine based on the storage management directory, and to start the target virtual machine on the physical machine based on the startup parameters;

[0014] The target virtual machine is used to mount a portion of the target cloud storage space as a local disk when it starts up.

[0015] The user terminal is used to respond to a target file transfer operation triggered on the cloud desktop of the target virtual machine, and transfer the target file between the user terminal and the target virtual machine through the cloud storage terminal.

[0016] The technical solution of this invention involves mounting a cloud storage space address to the storage management directory of a physical machine via a cloud storage terminal. The physical machine constructs startup parameters for a target virtual machine based on the storage management directory and starts the target virtual machine based on these parameters. Upon startup, the target virtual machine mounts a portion of the target cloud storage space as a local disk, thus enabling the target cloud storage space to be used as a local disk for the target virtual machine. The user terminal responds to a target file transfer operation triggered on the cloud desktop of the target virtual machine, achieving efficient transfer of the target file between the user terminal and the target virtual machine through the cloud storage terminal. In this invention, the transfer of the target file does not require a relay server or physical machine, improving file transfer efficiency, enhancing file transfer stability, and thus improving the user experience.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of a file transfer method provided according to Embodiment 1 of the present invention;

[0020] Figure 2 This is a flowchart of a file transfer method provided according to Embodiment 2 of the present invention;

[0021] Figure 3This is a flowchart of a file transfer method provided according to Embodiment 3 of the present invention;

[0022] Figure 4 This is a schematic diagram of a file transfer system according to Embodiment 4 of the present invention. Detailed Implementation

[0023] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] Example 1

[0026] Figure 1 This is a flowchart of a file transfer method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of file transfer between a user terminal and a target virtual machine. The method can be executed by a file transfer system, which can be implemented in hardware and / or software and can be configured in an electronic device.

[0027] like Figure 1 As shown, the method includes:

[0028] S110, The cloud storage terminal mounts the cloud storage space address to the physical machine's storage management directory.

[0029] In this context, cloud storage refers to devices that provide users with services such as file storage, file backup, and file security checks. A cloud storage space address refers to the address corresponding to the location where files are stored on the cloud storage device; users can access files stored at that address by accessing the cloud storage space address. Mounting refers to the process by which the operating system makes computer files and directories on a storage device accessible to users through the computer's file system. In this embodiment, mounting refers to the process by which the operating system of the physical machine makes files and directories on the cloud storage device accessible to users within the physical machine's file system. A physical machine refers to a physical computer device. A storage management directory is a data structure used to identify files in the physical machine's operating system and their corresponding access addresses. For example, in Windows, the storage management directory can be a disk directory; in Linux, all resources and devices are considered files, therefore, the storage management directory in Linux refers to a file directory.

[0030] Specifically, the cloud storage provider can mount the cloud storage space address to the physical machine's storage management directory via a mounting protocol. This mounting protocol can be, but is not limited to, file transfer protocols or SMB protocols.

[0031] For example, in a Windows system, the storage management directory is: Win10 Pro x64 (C:), Files (A:), Software (B:). Now, the cloud storage space address M is mounted to the physical machine's storage management directory, resulting in the following storage management directory after the mounting operation: Win10 Pro x64 (C:), Files (A:), Software (B:), Files (M:).

[0032] S120. The physical machine constructs the startup parameters of the target virtual machine based on the storage management directory, and starts the target virtual machine on the physical machine based on the startup parameters.

[0033] In this context, a virtual machine (VM) refers to a virtual computer device. Furthermore, a VM is defined relative to a physical machine. A physical machine provides the hardware environment for a VM, and a single physical machine can host multiple VMs, each with its own operating system. The target VM can be the VM currently running on the physical machine that requires file transfer. The startup parameters of the target VM refer to the various parameters that need to be set when the target VM starts. For example, the startup parameters of the target VM can be, but are not limited to, memory parameters, operating system parameters, and storage location parameters.

[0034] Specifically, when constructing the target virtual machine's startup parameters, the storage location parameter of the target virtual machine is set to the cloud storage space address in the storage management directory. After the startup parameters are set, the target virtual machine is started on the physical machine by receiving the user-triggered target virtual machine startup command.

[0035] S130. When the target virtual machine starts, it mounts a portion of the target cloud storage space as a local disk.

[0036] In this context, cloud storage space refers to the physical media on the cloud storage platform where files are stored. Target cloud storage space is a portion of the cloud storage space available for use by the target virtual machine. Local disk refers to the virtual disk within the target virtual machine used to store files.

[0037] Specifically, when the target virtual machine starts, it dynamically allocates a portion of the cloud storage space as the target cloud storage space based on disk parameters, and mounts the target cloud storage space as a local disk. Furthermore, the dynamic allocation can be random or in a preset order.

[0038] For example, if the target virtual machine's disk parameters are set to 8GB and the cloud storage space is 256GB, then when the target virtual machine starts, it will randomly mount the 8GB of free cloud storage space from the 256GB cloud storage space as a local disk. This 8GB of cloud storage space is the target cloud storage space.

[0039] S140. In response to a target file transfer operation triggered on the cloud desktop of the target virtual machine, the user terminal transfers the target file between the user terminal and the target virtual machine through the cloud storage terminal.

[0040] In this context, "user terminal" refers to the terminal device used by the user to transfer files. For example, the user terminal can be, but is not limited to, a computer, tablet, or mobile phone. The target virtual machine's cloud desktop refers to the virtual desktop that is sent to the user terminal via a transmission protocol and displayed on the user terminal's interface. The target file refers to the file that the user wants to upload to the target virtual machine from the user terminal or download from the target virtual machine to the user terminal. For example, the target file can be, but is not limited to, videos, images, documents, or audio files. It should be noted that the cloud desktop can be considered a mirror image of the target virtual machine's desktop; therefore, file transfer between the user terminal and the cloud desktop is equivalent to file transfer between the user terminal and the target virtual machine.

[0041] Specifically, the user opens the cloud desktop of the target virtual machine, where a file transfer button is displayed. The user can trigger a target file transfer operation by clicking this button. For example, the user pastes the target file from the user's device to a location on the cloud desktop or clicks the file transfer option, thus triggering the target file transfer operation. The user responds to the user-triggered target file transfer operation by uploading the target file to the target cloud storage space, or by sending a file transfer command to the cloud storage, which then retrieves the target file from the target cloud storage space and sends it to the user, thereby realizing the transfer of the target file between the user's device and the target virtual machine.

[0042] The technical solution of this invention involves mounting a cloud storage space address to the storage management directory of a physical machine via a cloud storage terminal. The physical machine constructs startup parameters for a target virtual machine based on the storage management directory and starts the target virtual machine based on these parameters. Upon startup, the target virtual machine mounts a portion of the target cloud storage space as a local disk, thus enabling the target cloud storage space to be used as a local disk for the target virtual machine. The user terminal responds to a target file transfer operation triggered on the cloud desktop of the target virtual machine, achieving efficient transfer of the target file between the user terminal and the target virtual machine through the cloud storage terminal. In this invention, the transfer of the target file does not require a relay server or physical machine, improving file transfer efficiency, enhancing file transfer stability, and thus improving the user experience.

[0043] Based on the above embodiments, S140 may include: in response to a target file upload operation triggered on the cloud desktop of the target virtual machine, the user terminal uploads the target file in the user terminal to the target virtual machine through the cloud storage terminal.

[0044] The target file upload operation refers to the operation that a user needs to perform to upload a target file from the user's desktop to the target virtual machine. For example, the target file upload operation can be the user clicking the file upload option on the cloud desktop, or the user dragging the target file directly from the user's desktop to the cloud desktop.

[0045] Specifically, after the user detects that the user has triggered a target file upload operation on the cloud desktop of the target virtual machine, the user sends the target file to the cloud storage terminal, which then stores the target file in the target cloud storage space, thereby uploading the target file to the target virtual machine.

[0046] Based on the above embodiments, S140 may further include: in response to a target file download operation triggered on the cloud desktop of the target virtual machine, the user terminal downloads the target file in the target virtual machine to the user terminal through the cloud storage terminal.

[0047] The target file download operation refers to the operation required to download the target file from the target virtual machine to the user's desktop. For example, the target file download operation can be the user clicking the file download option on the cloud desktop, or the user dragging the target file directly from the cloud desktop to the user's desktop.

[0048] Specifically, after the client detects that the user has triggered a target file download operation on the cloud desktop of the target virtual machine, it accesses the target cloud storage space in the cloud storage terminal and then downloads the target file in the target virtual machine to the client.

[0049] Example 2

[0050] Figure 2 This is a flowchart of a file transfer method provided in Embodiment 2 of the present invention. Based on the foregoing embodiments, the method can be further refined to respond to a target file transfer operation triggered by the user terminal on the cloud desktop of the target virtual machine and transfer the target file between the user terminal and the target virtual machine through the cloud storage terminal. For specific implementation methods, please refer to the detailed description of the embodiments of the present invention. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0051] like Figure 2 As shown, the method includes:

[0052] S210, The cloud storage terminal mounts the cloud storage space address to the physical machine's storage management directory.

[0053] S220. The physical machine constructs the startup parameters of the target virtual machine based on the storage management directory, and starts the target virtual machine on the physical machine based on the startup parameters.

[0054] S230. When the target virtual machine starts, it mounts a portion of the target cloud storage space as a local disk.

[0055] S240. The user terminal responds to the target file upload operation triggered on the cloud desktop of the target virtual machine by uploading the target file to the target cloud storage space corresponding to the target virtual machine in the cloud storage terminal.

[0056] Specifically, after the client detects that the user has triggered a target file upload operation on the cloud desktop of the target virtual machine, it accesses the address of the target cloud storage space corresponding to the cloud desktop and uploads the target file to the target cloud storage space corresponding to the target virtual machine.

[0057] In this embodiment, after S240, the following steps may be included: if the cloud storage terminal detects that the target file is a preset type file, it performs compliance testing on the target file based on preset compliance conditions; if the target file is detected to meet the preset compliance conditions, it sends the target file to the file management terminal and displays the target file on the file management terminal.

[0058] Among these, "preset file type" refers to files corresponding to pre-defined file types, such as, but not limited to, compressed files, plain text, image files, video files, web page files, and audio files. "Preset compliance conditions" refers to the conditions established for judging whether a target file conforms to the rules of the current scenario. For example, in an educational scenario, preset compliance conditions might include the absence of entertaining language; the absence of misleading or deceptive text; and the absence of misleading images. "Management terminal" refers to the device that centrally manages the cloud desktop. "File management terminal" refers to the device that provides the cloud desktop for users to manage target files uploaded by users. Furthermore, on the file management terminal, users providing the cloud desktop can monitor target files on the cloud desktop in real time.

[0059] Specifically, if the preset type is a video file, the preset compliance conditions are: educational videos and positive energy videos. The cloud storage terminal detects whether the target file is a video file by its file extension. If the target file is an audio file, video frames can be extracted. Optionally, each video frame is input into a pre-trained neural network model to determine whether the video frame and the corresponding target file meet the preset compliance conditions. If the cloud storage terminal detects that the target file meets the preset compliance conditions, it sends the target file to the file management terminal and displays the target file on the file management terminal's interface. Further, if the cloud storage terminal detects that the target file does not meet the preset compliance conditions, it sends the target file to the file management terminal and blurs or hides the target file on the file management terminal's display interface.

[0060] S250. If the cloud storage terminal detects that the target file exists in the target cloud storage space, it sends a file copy request to the target virtual machine.

[0061] A file copy request is an instruction sent from the cloud storage to the target virtual machine to copy a target file. Furthermore, the file copy request may include information such as the target file's name, type, size, and access address within the target cloud storage space.

[0062] Specifically, the cloud storage client can monitor the number and type of files in the target storage space in real time or periodically. When the cloud storage client detects a change in the number of files in the target storage space, it indicates that the target file has been successfully uploaded, and then sends a file copy request to the target virtual machine.

[0063] S260. Based on the file copy request, the target virtual machine copies the target file to a specified location on the target virtual machine.

[0064] The specified location of the target virtual machine refers to the location where the target virtual machine can store files. For example, the specified location can be, but is not limited to, the location clicked by the user in the cloud desktop, the desktop, folder 1, documents, etc.

[0065] Specifically, after uploading the target file, users can click, double-click, or long-press a specified location on the cloud desktop. When the target virtual machine receives the file copy request sent by the cloud storage terminal, it can copy the target file from the target cloud storage space to the specified location on the target virtual machine by accessing the access address of the target file in the target cloud storage space.

[0066] In this embodiment, "copying the target file to a specified location on the target virtual machine" in S260 can be: copying the target file to the desktop of the target virtual machine and synchronously displaying the target file on the cloud desktop in the user terminal.

[0067] Specifically, when the target virtual machine receives a file copy request from the cloud storage terminal, it locates the target file by accessing its address in the target cloud storage space and copies it to the desktop of the target virtual machine, then displays the target file synchronously on the user's cloud desktop.

[0068] The technical solution of this invention involves a user client responding to a target file upload operation triggered on the cloud desktop of the target virtual machine, uploading the target file to the target cloud storage space corresponding to the target virtual machine in the cloud storage terminal. If the cloud storage terminal detects the existence of the target file in the target cloud storage space, it sends a file copy request to the target virtual machine. Based on the file copy request, the target virtual machine copies the target file to a specified location within the target virtual machine. In this process, the user can specify the storage location of the target file according to its intended use, enabling interaction between the user and the cloud desktop and further enhancing the user experience.

[0069] Example 3

[0070] Figure 3 This is a flowchart of a file transfer method provided in Embodiment 3 of the present invention. Based on the foregoing embodiments, the method of transferring the target file between the user terminal and the target virtual machine in response to a target file transfer operation triggered on the cloud desktop of the target virtual machine through the cloud storage terminal can be further refined. For specific implementation methods, please refer to the detailed description of the embodiments of the present invention. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0071] like Figure 3 As shown, the method includes:

[0072] S310, the cloud storage terminal mounts the cloud storage space address to the physical machine's storage management directory.

[0073] S320. The physical machine constructs the startup parameters of the target virtual machine based on the storage management directory, and starts the target virtual machine on the physical machine based on the startup parameters.

[0074] S330. When the target virtual machine starts, it mounts a portion of the target cloud storage space as a local disk.

[0075] S340. In response to the target file download operation triggered on the cloud desktop of the target virtual machine, the user terminal sends a file download request to the cloud storage terminal.

[0076] A file download request refers to a request sent by the user to the cloud storage to download a target file. Furthermore, the file download request may include information such as the name, type, size of the target file, and the access address of the target file in the target cloud storage space.

[0077] Specifically, after the client detects that the user has triggered a target file download operation on the cloud desktop of the target virtual machine, it sends a file download request to the cloud storage.

[0078] S350. Based on the file download request, the cloud storage terminal sends the target file in the target cloud storage space corresponding to the target virtual machine to the user terminal.

[0079] Specifically, after receiving a file download request, the cloud storage terminal sends the target file to the user terminal by accessing the access address of the target file in the target cloud storage space in the download request.

[0080] Optionally, "sending the target file in the target cloud storage space corresponding to the target virtual machine to the user terminal" in S350 may include: the cloud storage terminal determining the target storage node closest to the user terminal based on the file download request; and sending the target file in the target storage node to the user terminal.

[0081] In this context, storage nodes refer to the devices that store the target files. Furthermore, users of the cloud desktop service can set up corresponding storage nodes in different locations and copy all files from the cloud storage to each storage node, ensuring that the files stored on each storage node are identical. The target storage node can be the storage node closest to the user.

[0082] Specifically, after receiving a file download request, the cloud storage terminal calculates the distance between each storage node and the user's terminal based on the user's geographical location information, and selects the storage node closest to the user's terminal as the target storage node. The target file is then sent to the user's terminal via the target storage node, improving the download speed, saving the user's time, and further enhancing the user experience.

[0083] S360, The user terminal receives the target file sent by the cloud storage terminal.

[0084] Specifically, when the user receives the target file sent by the cloud storage terminal, the user can specify the storage location of the target file according to its type or purpose, and then place the target file in the specified location.

[0085] The technical solution of this invention involves a user terminal responding to a target file download operation triggered on the cloud desktop of the target virtual machine by sending a file download request to the cloud storage terminal. Based on the file download request, the cloud storage terminal sends the target file from the target cloud storage space corresponding to the target virtual machine to the user terminal. The user terminal receives the target file sent by the cloud storage terminal, which improves the efficiency of the user downloading the target file from the target virtual machine, saves the user's time cost, and further enhances the user experience.

[0086] Example 4

[0087] Figure 4 This is a schematic diagram of a file transfer system provided in Embodiment 4 of the present invention. This embodiment is applicable to situations where file transfer occurs between a user terminal and a cloud desktop, such as... Figure 4 As shown, the system specifically includes: a user terminal 410, a cloud storage terminal 420, and a physical machine 430.

[0088] The user terminal 410 is configured to respond to a target file transfer operation triggered on the cloud desktop of the target virtual machine by transferring the target file between the user terminal and the target virtual machine via the cloud storage terminal; the cloud storage terminal 420 is configured to mount the cloud storage space address to the storage management directory of the physical machine; the physical machine 430 is configured to construct the startup parameters of the target virtual machine based on the storage management directory, and start the target virtual machine on the physical machine based on the startup parameters; the target virtual machine is configured to mount a portion of the target cloud storage space as a local disk when it starts.

[0089] Based on the above technical solutions, the user terminal 410 is specifically used to: respond to a target file upload operation triggered on the cloud desktop of the target virtual machine, and upload the target file in the user terminal 410 to the target virtual machine through the cloud storage terminal 420.

[0090] Based on the above technical solutions, the user terminal 410 is further configured to: upload the target file to the target cloud storage space corresponding to the target virtual machine in the cloud storage terminal;

[0091] The cloud storage terminal 420 is also used to: if the target file is detected to exist in the target cloud storage space, send a file copy request to the target virtual machine;

[0092] The target virtual machine is also used to: copy the target file to a specified location on the target virtual machine based on the file copy request.

[0093] Based on the above technical solutions, the target virtual machine can be used for:

[0094] The target file is copied to the desktop of the target virtual machine and simultaneously displayed on the cloud desktop in the user terminal 410.

[0095] Based on the above technical solutions, the cloud storage terminal 420 can be used for:

[0096] If the target file is detected to be a preset type of file, then a compliance check is performed on the target file based on preset compliance conditions; if the target file is detected to meet the preset compliance conditions, then the target file is sent to the file management terminal and displayed on the file management terminal.

[0097] Based on the above technical solutions, the user terminal 410 can also be used for:

[0098] In response to a target file download operation triggered on the cloud desktop of the target virtual machine, the target file in the target virtual machine is downloaded to the user terminal 410 via the cloud storage terminal 420.

[0099] Based on the above technical solutions, the user terminal 410 is also used to: send a file download request to the cloud storage terminal 420;

[0100] The cloud storage terminal 420 is also used to: send the target file in the target cloud storage space corresponding to the target virtual machine to the user terminal 410 based on the file download request;

[0101] The user terminal 410 is also used to: receive the target file sent by the cloud storage terminal 420.

[0102] Based on the above technical solutions, the cloud storage terminal 420 can also be used for:

[0103] Based on the file download request, the target storage node closest to the user terminal 410 is determined; the target file in the target storage node is sent to the user terminal 410.

[0104] Based on the above technical solutions, the target virtual machine can be used for:

[0105] When the target virtual machine starts, it dynamically allocates a portion of the cloud storage space as the target cloud storage space and mounts the target cloud storage space as a local disk.

[0106] The technical solution of this invention involves mounting a cloud storage space address to the storage management directory of a physical machine via a cloud storage terminal. The physical machine constructs startup parameters for a target virtual machine based on the storage management directory and starts the target virtual machine based on these parameters. Upon startup, the target virtual machine mounts a portion of the target cloud storage space as a local disk, thus enabling the target cloud storage space to be used as a local disk for the target virtual machine. The user terminal responds to a target file transfer operation triggered on the cloud desktop of the target virtual machine, achieving efficient transfer of the target file between the user terminal and the target virtual machine through the cloud storage terminal. In this invention, the transfer of the target file does not require a relay server or physical machine, improving file transfer efficiency, enhancing file transfer stability, and thus improving the user experience.

[0107] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A file transfer method, characterized in that, include: The cloud storage client mounts the cloud storage space address to the physical machine's storage management directory; The mounting refers to the process of enabling users to access files and directories in the cloud storage through the physical machine's operating system. The physical machine constructs the startup parameters of the target virtual machine based on the storage management directory, and starts the target virtual machine on the physical machine based on the startup parameters; When the target virtual machine starts, it mounts a portion of the target cloud storage space as a local disk. In response to a target file upload operation triggered on the cloud desktop of the target virtual machine, the user client uploads the target file from the user client to the target virtual machine via the cloud storage terminal. The user terminal uploads the target file to the target cloud storage space corresponding to the target virtual machine in the cloud storage terminal; If the cloud storage terminal detects that the target file exists in the target cloud storage space, it sends a file copy request to the target virtual machine. Based on the file copy request, the target virtual machine copies the target file to a specified location on the target virtual machine.

2. The method according to claim 1, characterized in that, Copying the target file to a specified location on the target virtual machine includes: The target file is copied to the desktop of the target virtual machine and simultaneously displayed on the cloud desktop in the user's client.

3. The method according to claim 1, characterized in that, After the user uploads the target file to the target cloud storage space corresponding to the target virtual machine in the cloud storage terminal, the process further includes: If the cloud storage terminal detects that the target file is a preset type file, it performs a compliance check on the target file based on preset compliance conditions. If the target file is detected to meet the preset compliance conditions, the target file is sent to the file management terminal and displayed on the file management terminal.

4. The method according to claim 1, characterized in that, In response to a target file transfer operation triggered on the cloud desktop of the target virtual machine, the user client transfers the target file between the user client and the target virtual machine via the cloud storage terminal, including: In response to a target file download operation triggered on the cloud desktop of the target virtual machine, the user client downloads the target file from the target virtual machine to the user client via the cloud storage terminal.

5. The method according to claim 4, characterized in that, Downloading the target file from the target virtual machine to the user terminal via the cloud storage terminal includes: The user terminal sends a file download request to the cloud storage terminal; Based on the file download request, the cloud storage terminal sends the target file in the target cloud storage space corresponding to the target virtual machine to the user terminal; The user terminal receives the target file sent by the cloud storage terminal.

6. The method according to claim 5, characterized in that, Based on the file download request, the cloud storage terminal sends the target file from the target cloud storage space corresponding to the target virtual machine to the user terminal, including: Based on the file download request, the cloud storage terminal determines the target storage node that is closest to the user terminal; The target file in the target storage node is sent to the user terminal.

7. The method according to any one of claims 1-6, characterized in that, When the target virtual machine starts, it mounts a portion of the target cloud storage space as a local disk, including: When the target virtual machine starts, it dynamically allocates a portion of the cloud storage space as the target cloud storage space and mounts the target cloud storage space as a local disk.

8. A file transfer system, characterized in that, The system includes: a user terminal, a cloud storage terminal, and physical machines, wherein, The cloud storage terminal is used to mount the cloud storage space address to the storage management directory of the physical machine; the mounting refers to the process by which the operating system of the physical machine makes the files and directories in the cloud storage terminal accessible to users in the file system of the physical machine. The physical machine is used to construct the startup parameters of the target virtual machine based on the storage management directory, and to start the target virtual machine on the physical machine based on the startup parameters; The target virtual machine is used to mount a portion of the target cloud storage space as a local disk when it starts up. The user terminal is configured to respond to a target file upload operation triggered on the cloud desktop of the target virtual machine, and upload the target file from the user terminal to the target virtual machine via the cloud storage terminal; the user terminal uploads the target file to the target cloud storage space corresponding to the target virtual machine in the cloud storage terminal; if the cloud storage terminal detects that the target file exists in the target cloud storage space, it sends a file copy request to the target virtual machine; based on the file copy request, the target virtual machine copies the target file to a specified location on the target virtual machine.

Citation Information

Patent Citations

  • Virtual machine management method and device

    CN108196943A

  • File transmission method and device

    CN114579522A