Data sharing methods, cloud computer and terminal device
By establishing a network disk mapping between the cloud computer terminal and the virtual machine, the problem of data sharing between the cloud computer and the terminal device is solved, enabling cross-device file operations and directory management, and improving the convenience of data interaction.
Patent Information
- Application Number
- PCT/CN2025/093473
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-27
- Filing Date
- 2025-05-08
- Publication Date
- 2026-01-02
AI Technical Summary
In existing technologies, cloud computers cannot share data with other terminals such as mobile phones.
The cloud computer terminal synchronizes the mounted directory of the terminal device to the virtual machine and realizes data interaction based on network disk mapping, including cross-device file operation and directory management.
It enables data sharing between cloud computers and terminal devices, allowing users to directly operate and manage files on terminal devices from the cloud desktop of the cloud computer, thus improving the convenience and efficiency of data interaction.
Smart Images

Figure CN2025093473_02012026_PF_FP_ABST
Abstract
Description
Data sharing method, cloud computer and terminal device
[0001] Cross-reference to Related Applications
[0002] The present application claims priority to the Chinese patent application No. 202410848945.2, filed on June 27, 2024, and entitled "Data sharing method, cloud computer and terminal device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present application belongs to the field of cloud computers, and particularly relates to a data sharing method, a cloud computer and a terminal device. BACKGROUND
[0004] A cloud computer is a whole service solution, including cloud resources, transmission protocols and cloud terminals. Compared with a traditional computer, the computing and storage resources of the cloud computer are all in the cloud, and a user only needs a small and simple terminal device to access a network in any place with a network, so as to access personal desktops, data and various applications, which is no different from using a common personal computer. With the rapid development of cloud computing and cloud system technologies, the application of the cloud computer is also more and more extensive.
[0005] In the related art, the display information of the cloud computer can be displayed and controlled on a mobile phone or other display terminals, but the essence is to display the interface of the cloud computer through the mobile phone, and the data sharing between the cloud computer and the mobile phone or other terminals cannot be realized. SUMMARY
[0006] The present application aims to provide a data sharing method, a cloud computer and a terminal device, and at least solve the problem that the data sharing between the cloud computer and the mobile phone or other terminals cannot be realized in the related art.
[0007] In a first aspect, the embodiments of the present application provide a data sharing method applied to a cloud computer, the cloud computer comprising a cloud computer terminal and a virtual machine, the method comprising: in a case where a mounting directory of a terminal device is received through a distributed bus, synchronizing the mounting directory of the terminal device to the virtual machine through the cloud computer terminal; creating a network disk mapping based on the mounting directory by the virtual machine; and performing data interaction with the terminal device based on the network disk mapping.
[0008] In a second aspect, the embodiments of the present application provide a data sharing method applied to a terminal device, the method comprising: mounting a directory to a cloud computer through a distributed bus; and performing data interaction with the cloud computer in a case where the directory is mounted to the cloud computer.
[0009] In a third aspect, an embodiment of the present application provides a cloud computer, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the method according to the first aspect are implemented.
[0010] In a fourth aspect, an embodiment of the present application provides a terminal device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the method according to the second aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present application provides a storage medium, the storage medium storing a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented, or the steps of the method according to the second aspect are implemented.
[0012] In a sixth aspect, an embodiment of the present application provides a program product stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the method according to the first aspect, or to implement the steps of the method according to the second aspect. BRIEF DESCRIPTION OF DRAWINGS
[0013] FIG. 1 is a flowchart of a data sharing method according to an embodiment of the present application;
[0014] FIG. 2 is a schematic diagram of an interaction system of a cloud computer and a terminal device according to an embodiment of the present application;
[0015] FIG. 3 is a schematic diagram of an interface of a cloud desktop of a cloud computer according to an embodiment of the present application;
[0016] FIG. 4 is a flowchart of another data sharing method according to an embodiment of the present application;
[0017] FIG. 5 is a detailed flowchart of data sharing between a cloud computer and a terminal device according to an embodiment of the present application;
[0018] FIG. 6 is a schematic diagram of a data sharing apparatus according to an embodiment of the present application;
[0019] FIG. 7 is a schematic diagram of another data sharing apparatus according to an embodiment of the present application;
[0020] FIG. 8 is a schematic diagram of a structure of a terminal device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The embodiments of the present application will be described in detail below, examples of which are shown in the drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only, for the purpose of explanation, and are not to be understood as limiting the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work under the premise that the scope of protection of the present application.
[0022] The terms "first", "second" in the description and claims of the present application can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally represents that the front and rear associated objects are in a "or" relationship.
[0023] In the description of the present application, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.
[0024] In the description of the present application, it should be noted that unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connecting" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those skilled in the art, the meaning of the above terms in the present application can be understood according to the situation.
[0025] The data sharing method, cloud computer and terminal device provided by the embodiments of the present application will be described in detail below in combination with FIGS. 1 to 8 through embodiments and application scenarios.
[0026] As shown in FIG. 1, the present application provides a flow chart of a data sharing method. As shown in FIG. 1, the data sharing method is applied to a cloud computer, and the cloud computer includes a cloud computer terminal and a virtual machine. The data sharing method can include the contents shown in S101 to S103.
[0027] In S101, in a case that the terminal device sends a mounting directory through the distributed bus, the cloud computer terminal synchronizes the mounting directory of the terminal device to the virtual machine.
[0028] The terminal device and the cloud computer can be connected through the distributed bus, that is, the terminal device and the cloud computer are connected through the network.
[0029] It should be noted that the cloud computer terminal is a terminal device of the cloud computer, which can be any device with a display screen, such as a computer, a notebook computer, a tablet computer, a mobile phone, etc. The actual application is subject to the actual application, and the embodiment is not limited. The cloud computer terminal and the virtual machine are connected through the cloud desktop transmission protocol, and the terminal device and the virtual machine can share data through the cloud computer terminal.
[0030] The mounting directory is a directory on the terminal device that needs to be mounted on the virtual machine. Through mounting, the virtual machine can access the corresponding location on the terminal device.
[0031] In S102, the virtual machine creates a network disk mapping based on the mounting directory.
[0032] That is, the virtual machine can map the terminal device to the cloud desktop of the cloud computer through the mounting directory, that is, the user can see the files of the terminal device on the cloud desktop of the cloud computer, which can be screen mirroring the terminal device to the cloud desktop of the cloud computer, facilitating user operation.
[0033] In S103, data interaction is performed with the terminal device based on the network disk mapping.
[0034] That is, through the virtual machine creating a network disk mapping, data interaction can be performed between the cloud desktop and the terminal device. The data interaction can include cross-device file opening, cross-device file copying, file deletion, type-based viewing / management of remote device directories and files, mounting remote device directories in a file manager, cross-device file searching, etc.
[0035] In the embodiment of the present application, first, in a case that the terminal device sends a mounting directory through the distributed bus, the cloud computer terminal synchronizes the mounting directory of the terminal device to the virtual machine, then the virtual machine creates a network disk mapping based on the mounting directory, and finally, data interaction is performed with the terminal device based on the network disk mapping. The present application embodiment mounts the directory of the terminal device to the cloud computer, so that the cloud computer can create a network disk mapping in the virtual machine based on the mounting directory, and data interaction between the cloud computer and the terminal device can be realized based on the network disk mapping.
[0036] In a possible implementation of the present application, the data sharing method can further include: mapping, by the disk redirection service, a directory of the terminal device to a cloud desktop of the cloud computer to display and operate the file corresponding to the directory on the cloud desktop.
[0037] That is, the terminal device can be projected onto the cloud desktop of the cloud computer, and the file can be displayed, viewed, copied, and cut across devices on the cloud desktop. For example, the user can copy the file on the terminal device to the cloud computer or copy the file from the cloud computer to the terminal device through the cloud desktop of the cloud computer, thereby realizing data interaction between the terminal device and the cloud computer.
[0038] As shown in FIG. 2, the virtual machine includes a virtual machine agent (VDagent) and a disk redirection service (Usbipc), which interact with the cloud computer terminal through the cloud desktop transmission protocol and the disk redirection service, to realize display and operation of the directory and the file of the terminal device on the cloud desktop. The operation can include viewing, creating, deleting, renaming, reading and writing, copying, and the like.
[0039] As shown in FIG. 2, taking a mobile phone as an example of the terminal device, the interaction system of the cloud computer and the terminal device includes the mobile phone and the cloud computer, and the cloud computer includes a cloud computer terminal and a virtual machine.
[0040] The mobile phone includes a distributed service manager, a data collaboration service, and a distributed bus (DFS).
[0041] The cloud computer terminal includes a distributed service manager, a data collaboration service, a distributed bus, a virtual machine client, and a virtualization service component (Libvdisk.so).
[0042] The virtual machine includes a virtual machine agent (VDagent) and a disk redirection service (Usbipc).
[0043] The distributed service manager is configured to control connection of data, notify the collaboration service to connect and disconnect with a remote terminal, and the control message includes a remote device identifier (ID). The data collaboration service is configured to transmit data, and receive file data information of a specified device ID. The distributed bus is configured to shield differences in underlying network protocols, and realize fast connection of different terminals. The bus shields differences in devices, underlying links, communication protocols, and operating systems, provides device discovery, connection, and transmission capabilities without distinguishing links, and simplifies application development in a distributed scenario. The data transmission includes three transmission capabilities, namely, stream, message, and file.
[0044] The mobile phone and the cloud computer terminal are connected through the distributed bus, the virtual machine client and the virtualization service component of the cloud computer terminal interact with the VDagent and the Usbipc in the virtual machine through the cloud desktop transmission protocol and disk redirection, and the mobile phone directory and file are displayed and operated on the cloud desktop. That is, the mobile phone and the cloud computer terminal are in one network, and the cloud computer terminal and the virtual machine are in another network.
[0045] The disk redirection service is used to redirect the mobile phone as a file directory into the cloud desktop, and the service is deployed to the cloud computer terminal and the cloud virtual machine. The cloud computer user establishes a connection with the mobile phone on the cloud desktop of the cloud computer, makes the mobile phone a local disk of the cloud computer, and then maps the mobile phone directory to the cloud desktop through the redirection service. When the mobile phone screen is displayed on the cloud desktop, the user can operate the documents on the mobile phone, and realize the cut and copy operations between the files in the mobile phone and the cloud desktop through direct dragging.
[0046] It is worth noting that the distributed service manager, the data collaboration service and the distributed bus are bus services, and the virtual machine client and the virtualization service component are cloud computer services.
[0047] As shown in FIG. 3, it is an interface schematic diagram of mapping the mobile phone to the cloud desktop of the cloud computer. The type of terminal device to be mapped can be selected, such as A40pro mobile phone, Z40 mobile phone, other types or models of mobile phone, tablet computer and the like, and the A40pro mobile phone is connected to the cloud computer for screen sharing and data interaction in FIG. 3.
[0048] It is worth noting that the file in the terminal device can be directly dragged to the cloud desktop through the dragging operation, that is, the file in the terminal device is copied to the cloud computer through the dragging, and other operations can also be performed, which will not be enumerated one by one in the embodiment.
[0049] In one possible embodiment of the present application, based on the network disk mapping, the data interaction with the terminal device can include: based on the network disk mapping, receiving an operation request on the file in the terminal device, the operation request including a copy operation; in response to the operation request, copying the file in the terminal device to the cloud desktop of the cloud computer on the cloud desktop.
[0050] In this embodiment, the cloud computer terminal receives a user's operation request on a file in the terminal device, such as a viewing operation, a copying operation, a deleting operation, a renaming operation, etc. Since the directory of the terminal device is mapped to the network disk, the cloud computer terminal can respond to the operation request and perform a corresponding operation on the cloud desktop, for example, based on the copying operation, the cloud computer terminal directly copies the file in the terminal device to the cloud desktop of the cloud computer. This embodiment can realize the interaction between the terminal device and the cloud computer on the cloud desktop, that is, the user can access the file and the directory of the terminal device, such as a mobile phone, through the cloud desktop of the cloud computer, just like accessing the file and the directory in the cloud desktop, which is convenient for the user to operate.
[0051] In one possible implementation of the present application, in response to the operation request, copying the file in the terminal device to the cloud desktop of the cloud computer on the cloud desktop can include: the cloud computer terminal sends a copying operation instruction to the terminal device when the cloud computer terminal listens to the copying operation; the cloud computer terminal receives the file path information sent by the terminal device based on the copying operation instruction; the cloud computer terminal sends a clipboard data update notification to the virtual machine; the virtual machine requests the copying content from the cloud computer terminal when the virtual machine receives the clipboard data update notification; the cloud computer terminal sends the file path information of the copying content to the virtual machine; and the virtual machine copies the file in the terminal device in the cloud desktop to the cloud desktop based on the network disk mapping and the file path information.
[0052] That is, the cloud computer terminal can listen to the user's operation, which can be real-time listening or periodic listening, depending on the actual application. When the cloud computer terminal listens to the copying operation sent by the user, the cloud computer terminal can send a copying operation instruction to the terminal device, then receive the file path information sent by the terminal device, set the file path information to the clipboard, send a clipboard data update notification to the virtual machine, the virtual machine receives the clipboard data update notification, clears the clipboard, requests the copying content from the cloud computer terminal, the cloud computer terminal sends the file path information of the copying content to the virtual machine, and the virtual machine copies the file in the terminal device in the cloud desktop to the cloud desktop based on the network disk mapping and the file path information, thereby completing the copying operation.
[0053] In one possible implementation of the present application, the data sharing method can further include: monitoring the file path of the mounted directory and the access permission of the mounted directory through the data collaboration service.
[0054] That is, the cloud computer terminal can monitor the file path of the mounted directory and the access permission of the mounted directory through the data collaboration service, so as to create a network disk mapping for the mounted directory in the virtual machine, and the user can see the screen and the corresponding file of the mobile phone on the cloud desktop of the cloud computer.
[0055] The monitoring can be uninterrupted monitoring or periodic monitoring, and can be determined according to actual application.
[0056] In a possible implementation of the present application, the synchronizing of the mounting directory of the terminal device to the virtual machine through the cloud computer terminal can include: cyclically searching for a file path of the mounting directory through a virtualization service component in the cloud computer terminal, and synchronizing to the virtual machine.
[0057] In the present embodiment, the virtualization service component cyclically searches for paths that have been mounted on the terminal, creates a network mapping for each mounting point in the virtual machine through interaction with the virtual machine, maps the directory of the mobile phone to the cloud desktop of the cloud computer through the disk redirection service, and after successful redirection, various file operations (viewing, creating, deleting, renaming, reading and writing, etc.) can be performed on the mapped disk of the mobile phone in the virtual machine.
[0058] As shown in FIG. 4, the present embodiment provides a flowchart of a data sharing method. As shown in FIG. 4, the data sharing method is applied to a terminal device, and the data sharing method can include the contents shown in S401 and S402.
[0059] In S401, the directory is mounted to the cloud computer through the distributed bus.
[0060] It is worth noting that the terminal device mounts the directory to the cloud computer, and the corresponding files on the terminal device can be accessed through the cloud computer.
[0061] In S402, data interaction is performed with the cloud computer in the case of mounting the directory to the cloud computer.
[0062] In the present embodiment, the directory is first mounted to the cloud computer through the distributed bus, and then data interaction is performed with the cloud computer in the case of mounting the directory to the cloud computer. The present embodiment mounts the directory of the terminal device to the cloud computer, so that the cloud computer can realize data interaction with the terminal device based on the mounted directory.
[0063] In a possible implementation of the present application, the data sharing method can further include: in the case of mounting the directory to the cloud computer, mapping the screen of the terminal device to the cloud desktop of the cloud computer to display and operate the files corresponding to the directory on the cloud desktop.
[0064] That is, the terminal device can be projected onto the cloud desktop of the cloud computer, and the display, viewing, copying and cutting of the files across devices can be performed on the cloud desktop. For example, the user can realize the copying of the files on the terminal device to the cloud computer or the copying of the files from the cloud computer to the terminal device through the cloud desktop of the cloud computer, thereby realizing the data interaction between the terminal device and the cloud computer.
[0065] In a possible implementation of the present application, the data interaction with the cloud computer can include: sending the file path information to the cloud computer in the case that the copy operation instruction sent by the cloud computer is received.
[0066] In an example, the terminal device can establish a network connection with the cloud computer, and then can mount a directory to the cloud computer through the data collaboration service. The distributed bus on the terminal device monitors operation events such as mobile phone screen projection and file data sharing. The user operates on the cloud desktop, projects the mobile phone onto the cloud desktop, and performs operations such as cutting and copying files from the mobile phone to the cloud desktop in the projection window on the cloud desktop. In the case that the copy operation instruction sent by the cloud computer is received, the clipboard data set is obtained, the clipboard data set includes the file path information, and the clipboard content is sent to the cloud computer, that is, the file path information is sent to the cloud computer, so that the cloud computer copies the file in the terminal device to the cloud computer based on the file path information.
[0067] As shown in FIG. 5, it is a detailed flow chart of data sharing between the cloud computer and the terminal device, and the terminal device is taken as an example of a mobile phone.
[0068] The cloud computer and the mobile phone establish a network connection through the distributed bus in Bluetooth or Wifi. The bus service can provide PublishService(), DiscoverService(), StartService(), onStartService(), RegisterConnCB(), RequestConnection(), AcceptConnection() and other message processing services on the mobile phone and the cloud computer terminal, and complete the link establishment between the mobile phone and the cloud computer.
[0069] After the link is established, the mobile phone mounts a directory to the cloud computer through the data collaboration service. The data collaboration service of the cloud computer terminal can monitor the mounted file path and check the access permission of the file directory.
[0070] The cloud computer terminal synchronizes the mounted directory to the virtual machine in the case that the mounted directory of the mobile phone is received. The virtual machine creates a network disk mapping in the virtual machine for the mounted directory. The user can see the screen of the mobile phone and the corresponding files on the cloud desktop of the cloud computer. That is, the virtualization service component cyclically finds the paths that have been mounted on the terminal, creates a network mapping in the virtual machine for each mount point, maps the directory of the mobile phone to the cloud desktop of the cloud computer through the disk redirection service, and performs various file operations (viewing, creating, deleting, renaming, reading and writing, etc.) under the mapped disk of the mobile phone in the virtual machine after the redirection is successful.
[0071] The distributed bus on the mobile phone monitors the operation events such as mobile phone screen projection, file data sharing, etc. The user operates on the cloud desktop, projects the mobile phone onto the cloud desktop, and performs the operations such as cutting and copying files from the mobile phone to the cloud desktop in the screen projection window on the cloud desktop.
[0072] For example, the cloud computer terminal detects the cutting and copying event, and the data collaboration service sends a message to the mobile phone through a request message transfer command (RequestMsgTransfer()).
[0073] The mobile phone performs the cutting operation, the data collaboration service synchronizes the message to the cloud computer terminal through onTransferConnResult(), and the cloud computer terminal sets the clipboard dataset to the clipboard through clipboard.setPrimaryClip(clipDataSet).
[0074] The cloud computer terminal sends a clipboard data update notification to the virtual machine, the virtual machine receives the clipboard data update notification, performs clipboard processing, i.e. clears the original data on the clipboard, and requests the cloud computer terminal to copy the corresponding data.
[0075] The cloud computer terminal sends the file path information of the copied content to the virtual machine, and the virtual machine copies the file in the terminal device in the cloud desktop to the cloud desktop based on the network disk mapping and the file path information, and completes the copying operation. In an example, the mobile phone can be mapped as a network disk into the cloud desktop based on redirection, so as to realize the file drag and copy between the mobile phone mapping screen in the cloud desktop and the cloud desktop, and facilitate user operation.
[0076] The embodiment of the application enables the cloud computer and other terminal products to have the ability of mutual collaboration, mutual assistance, and resource sharing between devices, and simultaneously interacts through the cloud desktop client inside the cloud computer, the cloud desktop transmission protocol, and the cloud virtual machine, to realize the data sharing between the cloud desktop and the mobile phone across the network. The distributed bus provides the device discovery, connection, and transmission ability without distinguishing the link for the cloud computer, and the two devices establish physical connection through the link that can be connected to each other, including Bluetooth connection, WIFI P2P connection, local area network connection, WIFI hotspot connection, etc. The cloud computer protocol provides the connection and interaction between the cloud desktop virtual machine and the mobile phone across the network. The embodiment realizes the file collaboration service between the cloud computer and the terminal device such as the mobile phone, including the functions of file cross-device copying, file cross-device opening, viewing and managing the directory and file of the remote device by type, mounting the remote device directory in the file manager, and cross-device file search. In the view of the user, the access to the file and directory of the mobile phone and other terminal devices through the cloud computer cloud desktop is the same as the access to the file and directory in the cloud desktop.
[0077] FIG. 6 is a schematic diagram of a data sharing device according to an embodiment of the present application. As shown in FIG. 6, the data sharing device is applied to a cloud computer, and the data sharing device can include a synchronization module 601, a creation module 602, and a first interaction module 603.
[0078] The synchronization module 601 is configured to synchronize the mounting directory of the terminal device to the virtual machine through the cloud computer terminal when receiving the mounting directory sent by the terminal device through the distributed bus. The creation module 602 is configured to create a network disk mapping based on the mounting directory by the virtual machine. The first interaction module 603 is configured to perform data interaction with the terminal device based on the network disk mapping.
[0079] In the embodiment of the present application, when receiving the mounting directory sent by the terminal device through the distributed bus, the synchronization module 601 synchronizes the mounting directory of the terminal device to the virtual machine through the cloud computer terminal. Then, the creation module 602 creates a network disk mapping based on the mounting directory. Finally, the first interaction module 603 performs data interaction with the terminal device based on the network disk mapping. According to the embodiment of the present application, the directory of the terminal device is mounted to the cloud computer, so that the cloud computer can create a network disk mapping in the virtual machine based on the mounting directory, and the data interaction between the cloud computer and the terminal device can be realized based on the network disk mapping.
[0080] In a possible implementation of the present application, the data sharing device can further include a redirection module.
[0081] The redirection module is configured to map the directory of the terminal device to the cloud desktop of the cloud computer through a disk redirection service, so as to display and operate the file corresponding to the directory on the cloud desktop.
[0082] In a possible implementation of the present application, the first interaction module 603 is configured to: receive an operation request on the file in the terminal device based on the network disk mapping, the operation request including a copy operation; and in response to the operation request, copy the file in the terminal device to the cloud desktop of the cloud computer.
[0083] In a possible implementation of the present application, the first interaction module 603 is configured to: send a copy operation instruction to the terminal device when the cloud computer terminal listens to the copy operation; receive file path information sent by the terminal device based on the copy operation instruction by the cloud computer terminal; send a clipboard data update notification to the virtual machine by the cloud computer terminal; request the copy content from the cloud computer terminal by the virtual machine when receiving the clipboard data update notification; send the file path information of the copy content to the virtual machine by the cloud computer terminal; and copy the file in the terminal device in the cloud desktop to the cloud desktop based on the network disk mapping and the file path information by the virtual machine.
[0084] In a possible implementation of the present application, the data sharing apparatus can further comprise a monitoring module.
[0085] The monitoring module is configured to monitor the file path of the mounted directory and the access permission of the mounted directory through the data collaboration service.
[0086] In a possible implementation of the present application, the synchronization module 601 is configured to: cyclically search the file path of the mounted directory through a virtualization service component in the cloud computer terminal, and synchronize to the virtual machine.
[0087] The data sharing apparatus provided by the application embodiments can implement the various processes implemented by the method embodiments of FIGS. 1-3, and achieve the same technical effects. To avoid repetition, details are not repeated here.
[0088] FIG. 7 is a schematic diagram of a data sharing apparatus provided by an application embodiment. As shown in FIG. 7, the data sharing apparatus is applied to a cloud computer, and the data sharing apparatus can comprise a mounting module 701 and a second interaction module 702.
[0089] The mounting module 701 is configured to mount the directory to the cloud computer through the distributed bus; and the second interaction module 702 is configured to perform data interaction with the cloud computer in the case of mounting the directory to the cloud computer.
[0090] In the application embodiment, the mounting module 701 mounts the directory to the cloud computer through the distributed bus, and then the second interaction module 702 performs data interaction with the cloud computer in the case of mounting the directory to the cloud computer. The application embodiment mounts the directory of the terminal device to the cloud computer, so that the cloud computer can realize data interaction with the terminal device based on the mounted directory.
[0091] In a possible implementation of the present application, the data sharing apparatus can further comprise a mapping module.
[0092] The mapping module is configured to map the screen of the terminal device to the cloud desktop of the cloud computer in the case of mounting the directory to the cloud computer, so as to perform display and operation of the file corresponding to the directory on the cloud desktop.
[0093] In a possible implementation of the present application, the second interaction module 702 is configured to: in the case of receiving the copy operation instruction sent by the cloud computer, send the file path information to the cloud computer.
[0094] The data sharing apparatus provided by the application embodiments can implement the various processes implemented by the method embodiments of FIGS. 2-5, and achieve the same technical effects. To avoid repetition, details are not repeated here.
[0095] The embodiment of the present application further provides a cloud computer, comprising a processor, a memory and a program or instructions stored in the memory and executable on the processor, the program or instructions being executed by the processor to implement the processes of the data sharing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0096] As shown in FIG. 8, the embodiment of the present application further provides a terminal device 800, comprising a processor 801, a memory 802, a program or instructions stored in the memory 802 and executable on the processor 801, the program or instructions being executed by the processor 801 to implement the processes of the data sharing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0097] The embodiment of the present application further provides a storage medium, the storage medium storing a program or instructions, the program or instructions being executed by a processor to implement the processes of the data sharing method embodiments provided in any of the above embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0098] The processor is the processor in the terminal device in the above embodiments. The storage medium includes a computer storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0099] The embodiment of the present application further provides a chip, the chip comprising a processor and a communication interface, the communication interface being coupled with the processor, the processor being configured to run a program or instructions to implement the processes of the data sharing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0100] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system-level chip, a system chip, a chip system or a system-on-chip, etc.
[0101] The embodiment of the present application further provides a computer program / program product, the computer program / program product being stored in a storage medium, the computer program / program product being executed by at least one processor to implement the processes of the data sharing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0102] The embodiment of the present application further provides a processing device, the processing device being configured to implement the processes of the data sharing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0103] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element. Furthermore, it is to be understood that the method and apparatus of the present application can be carried out by more than one process, method, article, or apparatus either simultaneously, concurrently, or with intervening action that are carried out at the same time, either in a simultaneous fashion or in a fashion that is interleaved in time. For example, the described methods can be performed in a different order from that described, and / or various steps can be combined or omitted, and / or additional steps can be added, without departing from the scope of the present application. Also, features described with respect to certain examples can be combined in other examples.
[0104] From the above description of the embodiments, it is apparent that the above-mentioned method can be realized by means of software and necessary universal hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solution of the present application can be embodied in the form of computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) execute the method described in various embodiments of the present application.
[0105] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, rather than limiting, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A data sharing method applied to a cloud computer, the cloud computer comprising a cloud computer terminal and a virtual machine, the method comprising: Upon receiving the mount directory sent by the terminal device via the distributed bus, the cloud computer terminal synchronizes the mount directory of the terminal device to the virtual machine; The virtual machine creates a network disk mapping based on the mounted directory; Based on the network disk mapping, data interaction is performed with the terminal device.
2. The method according to claim 1, wherein, The method further includes: The disk redirection service maps the directory of the terminal device to the cloud desktop of the cloud computer, so that the files corresponding to the directory can be displayed and manipulated on the cloud desktop.
3. The method according to claim 2, wherein, The data interaction with the terminal device based on the network disk mapping includes: Based on the network disk mapping, an operation request for a file in the terminal device is received, the operation request including a copy operation; In response to the operation request, the files in the terminal device are copied to the cloud desktop of the cloud computer.
4. The method according to claim 3, wherein, The step of copying files from the terminal device to the cloud desktop of the cloud computer in response to the operation request includes: Upon detecting the copy operation, the cloud computer terminal sends a copy operation instruction to the terminal device. The cloud computer terminal receives file path information sent by the terminal device based on the copy operation instruction; The cloud computer terminal sends a clipboard data update notification to the virtual machine; When the virtual machine receives the clipboard data update notification, it requests the cloud computer terminal to copy the content. The cloud computer terminal sends the file path information of the copied content to the virtual machine; The virtual machine copies files from the terminal device to the cloud desktop based on the network disk mapping and the file path information.
5. The method according to claim 1, wherein, The method further includes: The data collaboration service monitors the file paths of the mounted directories and the access permissions of those directories.
6. The method according to claim 5, wherein, The step of synchronizing the mount directory of the terminal device to the virtual machine via the cloud computer terminal includes: The virtualization service component in the cloud computer terminal continuously searches for the file path of the mount directory and synchronizes it to the virtual machine.
7. A data sharing method applied to a terminal device, the method comprising: Mount the directory to the cloud computer via a distributed bus; When the directory is mounted to the cloud computer, data interaction is performed with the cloud computer.
8. The method according to claim 7, wherein, The method further includes: When the directory is mounted to the cloud computer, the screen of the terminal device is mapped to the cloud desktop of the cloud computer so that the files corresponding to the directory can be displayed and operated on the cloud desktop.
9. The method according to claim 7, wherein, The data interaction with the cloud computer includes: Upon receiving a copy operation instruction from the cloud computer, file path information is sent to the cloud computer.
10. A cloud computer, comprising a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in any one of claims 1 to 6.
11. A terminal device comprising a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in any one of claims 7 to 9.
12. A storage medium storing a program or instructions that, when executed by a processor, implement the steps of the method as claimed in any one of claims 1 to 6, or when executed, implement the steps of the method as claimed in any one of claims 7 to 9.
13. A program product stored in a storage medium, the program product being executed by at least one processor to implement the steps of the method as claimed in any one of claims 1 to 6, or to implement the steps of the method as claimed in any one of claims 7 to 9.
Citation Information
Patent Citations
Method and system for device mapping between cloud terminal and cloud desktop
CN105404544A
Shared access system and method for remotely mounting local disk into cloud desktop virtual machine
CN111782318A
Personal disk mounting method and device
CN113126912A
Optimized directory enumeration and data copy for client drive redirection in virtual desktops
US20220229922A1
Cloud desktop system, network redirection method, and device and storage medium
WO2023246927A1