Cloud storage method for terminal

By generating categorized files on a tablet and mapping them to a cloud desktop network storage device, the problem of insufficient local storage space on tablets is solved, enabling interoperability between the terminal and cloud storage, improving the convenience and security of file transfer, adapting to scenarios with poor network environments, and enhancing the user experience.

WO2026001497A1PCT designated stage Publication Date: 2026-01-02ZTE CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/097217
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-25
Filing Date
2025-05-26
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

Tablet computers have insufficient local storage space, and file transfer between the tablet and the cloud computer is slow, complicated, and insecure.

Method used

The service generates categorized files for local files by mounting them via categorized paths and maps them to the network storage device of the cloud desktop. Disk redirection technology is used to enable communication between the terminal and cloud storage, and redirection permissions are set to ensure the security and flexibility of file transfer.

Benefits of technology

It improves the convenience and security of file transfer, reduces the local storage space occupied on the terminal, adapts to scenarios with poor network environment, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025097217_02012026_PF_FP_ABST
    Figure CN2025097217_02012026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in embodiments of the present disclosure is a cloud storage method for a terminal. The method comprises: generating a classification file of a local file by means of a classification path mounting service, and mounting the classification file; and mapping the classification file to a network storage device of a cloud desktop by means of disk redirection.
Need to check novelty before this filing date? Find Prior Art

Description

A cloud storage method of a terminal

[0001] Cross-reference to Related Applications

[0002] The present disclosure is based on Chinese Patent Application No. CN202410830581.5 entitled "A cloud storage method of a terminal" filed on June 25, 2024, and claiming priority to the same, the disclosure of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present disclosure relates to the field of communication, and in particular, to a cloud storage method of a terminal. BACKGROUND

[0004] With the rapid development of cloud computing technology, cloud computers have become an indispensable part of modern office environments. Cloud computers refer to a service that accesses virtualized desktop environments and applications on remote servers through the Internet. This service mode allows users to access their work desktops and required office software as long as they have stable network connections, regardless of their location.

[0005] A personal assistant device (PAD) is a portable electronic device that can meet both entertainment and office needs of users. However, the local storage space of a PAD is limited, and with long-term use by users, it is easy to cause a problem of insufficient storage space.

[0006] In an office scenario, sometimes file transfer is needed between a PAD and a cloud computer, for example, photos taken by a PAD need to be processed in a cloud computer. However, file transfer between a PAD and a cloud computer usually relies on physical connection, email, third-party applications, or cloud storage services, and these methods also have problems such as slow speed, complex operation, low security, and the like. Cloud storage is a service that stores data on a remote server through a network, which stores user files in the cloud, so that these files can be accessed at any time on any device. However, the file transfer process of this way is relatively cumbersome, and the file transfer speed is also slow.

[0007] For the above problems, there is no good solution in the related art. SUMMARY

[0008] Embodiments of the present disclosure provide a cloud storage method of a terminal to at least solve the problem of insufficient local storage space of a terminal in the related art.

[0009] According to one embodiment of the present disclosure, a cloud storage method of a terminal is provided, the method comprising: generating a classified file of a local file through a classified path mounting service, and mounting the classified file; and mapping the classified file to a network storage device of a cloud desktop through disk redirection.

[0010] According to another embodiment of the present disclosure, a computer readable storage medium is also provided, the storage medium storing a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.

[0011] According to another embodiment of the present disclosure, an electronic device is also provided, comprising a memory storing a computer program and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.

[0012] According to another embodiment of the present disclosure, a computer program product is also provided, comprising a computer program executed by a processor to perform the steps in any of the above method embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0013] FIG. 1 is a hardware structure block diagram of a cloud storage method of a terminal according to an embodiment of the present disclosure;

[0014] FIG. 2 is a flowchart of a cloud storage method of a terminal according to an embodiment of the present disclosure;

[0015] FIG. 3 is a system schematic diagram of disk redirection according to an embodiment of the present disclosure;

[0016] FIG. 4 is a schematic diagram of mounting a terminal file to a system directory according to an embodiment of the present disclosure;

[0017] FIG. 5 is a flowchart of mounting a local disk file by a terminal according to an embodiment of the present disclosure;

[0018] FIG. 6 is a flowchart of redirection permission management of a local disk according to an embodiment of the present disclosure;

[0019] FIG. 7 is a schematic diagram of read-write permission file processing according to an embodiment of the present disclosure;

[0020] FIG. 8 is a schematic diagram of read-write file processing in a network interruption or weak network scenario according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence.

[0023] The method embodiments provided in the embodiments of the present disclosure can be applied to all terminals integrated with cloud computers, including tablets, mobile phones and personal computers (PCs), and are suitable for fat terminals, micro-fat terminals, thin terminals and the like. When applied to a thin terminal, a partition needs to be opened in the thin terminal for local display and use.

[0024] The method embodiments provided in the embodiments of the present disclosure can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking a computer terminal as an example, FIG. 1 is a hardware structure block diagram of a cloud storage method of a terminal according to an embodiment of the present disclosure. As shown in FIG. 1, a hardware board can include one or more (only one is shown in FIG. 1) processors 12 (the processor 12 can include but is not limited to a processing device such as a microprocessor MCU or programmable logic device) and a memory 14 for storing data. The computer terminal can further include a transmission device 16 for communication function and an input and output device 18. Those skilled in the art can understand that the structure shown in FIG. 1 is only schematic, which does not limit the structure of the computer terminal. For example, the computer terminal can include more or fewer components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1.

[0025] The memory 14 can be used to store computer programs, for example, software programs of application software and modules, such as a computer program corresponding to the cloud storage method of the terminal in the embodiments of the present disclosure. The processor 12 executes various functions and the cloud storage method of the terminal by running the computer program stored in the memory 14, that is, implements the method described above. The memory 14 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 14 can further include a memory remotely arranged with respect to the processor 12, which can be connected to the computer terminal through a network. Examples of the network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0026] The transmission device 16 is used to receive or send data via a network. Specific examples of the network can include a wireless network provided by a communication provider. In one example, the transmission device 16 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 16 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.

[0027] In an embodiment of the present disclosure, a cloud storage method of a terminal is provided. FIG. 2 is a flowchart of the cloud storage method of the terminal according to an embodiment of the present disclosure. As shown in FIG. 2, the flow includes the following steps:

[0028] In step S202, a classified file of a local file is generated by a classified path mounting service, and the classified file is mounted.

[0029] In step S204, the classified file is mapped to a network storage device of a cloud desktop by disk redirection.

[0030] In the present embodiment, the basic principle of disk redirection is to capture I / O requests of the classified file of the local terminal, and forward the requests to the network storage device of the cloud desktop, so that the local terminal can directly access the cloud desktop storage.

[0031] In the present embodiment, by the above steps S202 to S204, the classified file of the local file can be automatically generated by the classified path mounting service, and the classified file can be mounted. Then, the classified file can be mapped to the network storage device of the cloud desktop by disk redirection. Further, the local disk symbol of the terminal can be redirected to the cloud desktop. The user can directly access the files and folders in the cloud desktop on the local terminal, and can directly view the files stored in the local terminal on the cloud desktop. Thus, a file system bridge is built between the local terminal (especially a PAD) and the cloud desktop, and the access of the cloud storage and the local storage is interconnected. The occupation of the local storage space of the terminal can be reduced, and the problem of insufficient local storage space of the terminal in the related art can be solved.

[0032] In some embodiments, before step S202, the method further includes the following steps:

[0033] In step S200, the cloud desktop is logged in by a cloud computer client.

[0034] In step S201, a service start notification initiated by the cloud computer client is acquired, wherein the service start notification is used to control the terminal to start the classified path mounting service.

[0035] In the present embodiment, the cloud computer client is an application installed in the local terminal, and can be used to control the login permission of the cloud desktop. The cloud desktop is a cloud computing service, and can provide a virtual desktop environment for the user. After the cloud computer client successfully logs in the cloud desktop, the cloud computer client can automatically initiate the service start notification. For example, the terminal can listen to the cloud computer client to acquire the service start notification.

[0036] In the present embodiment, after the terminal receives the service start notification, the classified path mounting service is started, and the classified file is generated and mounted according to the above step S202.

[0037] In some embodiments, step S202 can include the following steps:

[0038] Step S2022, associating the local files to a plurality of classified directories according to file types of the local files, to obtain classified files, wherein the classified files include files of the plurality of classified directories, and each of the classified directories corresponds to one of the file types.

[0039] Step S2024, mounting the classified files to a system directory of a local user space file system.

[0040] In the embodiment, the file types can include, but are not limited to, video, audio, picture, document, etc. The classified directories are set based on the file types. For example, the classified directories can be set as / classified browse / picture, / classified browse / video, etc. Through the embodiment of the present disclosure, the classified browse of the terminal files can be realized in the cloud desktop, the browse mode is more convenient and flexible, and the user experience is improved.

[0041] In the embodiment, the local user space file system is a virtual file system created by the terminal side through a preset file system framework or protocol. For example, the preset file system framework can be Filesystem in Userspace (FUSE), which is a framework allowing file systems to be implemented in user space. It consists of a kernel module and a set of user space libraries, enabling developers to create file systems using standard system calls without modifying the kernel code or recompiling the kernel. However, the present disclosure is not limited thereto, and the virtual file system on the terminal side can also be created through other file system frameworks or protocols.

[0042] In some embodiments, the system directory of the local user space file system can be established according to the design logic of a Distributed File System (DFS). For example, the system directory of the FUSE file system xxfuse can be designed as / media / xxfuse, but the present disclosure is not limited thereto.

[0043] In some embodiments, step S2022 can include any of the following steps:

[0044] Step S2022-2, linking the local files to the classified directories according to the file types of the local files, to obtain the classified files; or step S2022-4, querying the local files through a media provider service according to the file types of the local files, and putting the query results under the corresponding classified directories, to obtain the classified files.

[0045] In the embodiment, there are mainly two ways to generate the classified files, one is through link generation, and the other is through querying a media provider service. Exemplarily, the link can include a hard link, a soft link and the like. The media provider is a component or service in an operating system responsible for managing storage devices. An application program can query a media library through an application programming interface (API) of the media provider to obtain metadata and a file path of a media file.

[0046] In some embodiments, the step S204 can include: calling, by the cloud computer client, a first redirection library locally and a second redirection library of the cloud desktop to map the classified file to the network storage device of the cloud desktop.

[0047] In the embodiment, the first redirection library and the second redirection library are a set of software libraries for implementing disk redirection. Exemplarily, the redirection library can adopt a USBMsg redirection library to present a terminal file in a manner similar to accessing a universal serial bus (USB) device in the cloud desktop.

[0048] In some embodiments, the method further includes the following steps:

[0049] The step S202' obtains a path file of the local file through the classified path mounting service, and mounts the path file;

[0050] The step S204' maps the path file to the network storage device of the cloud desktop through disk redirection.

[0051] In the embodiment, the steps S202' and S204' can be processed at the same time as the steps S202 and S204 described above, or can also be processed according to a pre-set trigger condition or trigger time. Exemplarily, the steps S202' and S204' can be automatically run after the classified path mounting service is started.

[0052] In the embodiment, the system directory can be a path directory generated based on a file storage path, and the path file is mounted on the corresponding path directory. The user can arbitrarily switch the directory type of the cloud desktop as needed, and the file browsing manner is more flexible and convenient.

[0053] In some embodiments, the step S204' can include: calling, by the cloud computer client, a first redirection library locally and a second redirection library of the cloud desktop to map the classified file to the network storage device of the cloud desktop.

[0054] In some embodiments, after step S204, the method can further include step S205 of setting a redirection permission.

[0055] Further, step S205 can include the following steps:

[0056] Step S2052, obtaining the redirection permission of the local file by the cloud computer client;

[0057] Step S2054, sending the redirection permission to the cloud desktop through the redirection interface.

[0058] In the embodiment, the redirection permission includes at least one of the following: write-only, read-only, read-write, and not allowed. The user can set the redirection permission of the local disk of the terminal on the cloud desktop management platform. The cloud desktop needs to obtain the redirection permission from the cloud desktop management platform through the cloud computer client, thereby improving the security of the file.

[0059] In an exemplary embodiment, the default permission of the cloud desktop can be set as read-only, that is, the file mapped on the terminal can be viewed in the cloud desktop, but the file cannot be copied to the terminal storage. For example, the redirection permission is set as write-only, which means that the file mapped on the terminal can be viewed in the cloud desktop, but cannot be opened, and the file can be copied to the terminal storage; the redirection permission is set as read-write, which means that the file can be copied between the local terminal and the cloud desktop; the redirection permission is set as not allowed, which means that the local storage mapped in the cloud desktop cannot be seen, and the cloud desktop only provides storage space for the terminal.

[0060] In the embodiment, the file transmission operation between the terminal and the cloud desktop is more simple and convenient, the user can directly copy the local file of the terminal to the cloud desktop, or directly copy the file from the cloud desktop to the local terminal, realizing the file access intercommunication between the cloud desktop and the terminal, and improving the user experience. By setting the redirection permission, the security performance of the document can be improved.

[0061] In some embodiments, after step S205, the method further includes the following steps:

[0062] Step S206, obtaining a target file with read-write permission by the cloud computer client, wherein the redirection permission of the target file is configured based on a file type or a file path;

[0063] Step S207, creating a cloud shared folder for storing the target file locally, and mapping the cloud shared folder to the cloud desktop.

[0064] In the embodiment, the redirection permission can be applied to two different browsing modes. For example, in the category browsing mode, the redirection permission is set based on the file type, and in the path browsing mode, the redirection permission is set based on the file path.

[0065] In some embodiments, the target file with the redirection permission of read-write permission can also have the anti-weak network capability, which can be achieved through the following steps:

[0066] In step S2081, the data synchronization function of the cloud sharing folder is started or stopped in the network disconnection or weak network scenario.

[0067] In step S2082, in the case that the data synchronization function is started and the target file triggers an update operation, the target file is updated synchronously in the local and the cloud desktop.

[0068] In some embodiments, the network disconnection scenario can include active network disconnection and passive network disconnection. The active network disconnection is actively disconnected from the network connection by the user operation. The passive network disconnection is similar to the weak network scenario, which is caused by poor network environment.

[0069] In an exemplary embodiment, in the active network disconnection scenario, when the user triggers the network disconnection operation, the client prompts the user whether to start the data synchronization function of the cloud sharing folder, and judges according to the user selection operation, or the client judges according to the user's previous configuration. After the data synchronization function is started, the documents of the cloud desktop are transmitted / synchronized / copied to the local terminal. After the network is restored and the cloud desktop is logged in again, the user can directly edit the documents locally. The local terminal will transmit / synchronize / copy the local documents back to the cloud desktop.

[0070] In an exemplary embodiment, when the network environment fluctuates, the client prompts the user whether to start the data synchronization function of the cloud sharing folder, and judges according to the user selection operation. After the data synchronization function is started, the documents of the cloud desktop are transmitted / synchronized / copied to the local terminal. The user can directly edit the documents locally and real-time overwrite the documents after saving the documents, and transmit / synchronize / copy the documents to the cloud desktop.

[0071] In the embodiment of the present disclosure, for the documents with read-write permission, the documents in the cloud desktop can be synchronized to the local terminal, and the viewing and editing of the documents can be performed in the local terminal, which facilitates office work in the network disconnection or weak network scenario. When the network is restored, the locally saved files can be synchronized and uploaded to the cloud desktop, thereby effectively avoiding the problem that the cloud terminal product using the cloud desktop has high requirements for the network in the related art.

[0072] In some embodiments, after step S2082, the following steps can also be included:

[0073] Step S2083, when exiting the cloud desktop, determining whether the cloud shared folder needs to be deleted;

[0074] Step S2084, in the case of yes, deleting the cloud shared folder from the local;

[0075] Step S2085, in the case of no, keeping the cloud shared folder.

[0076] In some embodiments, the user can set the related functions of cloud sharing in the client, such as whether to automatically start the data synchronization function in the weak network scenario, and whether to automatically delete the cloud shared folder when exiting the cloud desktop. Alternatively, the client can also trigger the user selection prompt in the related scenario, and execute the corresponding processing steps according to the user selection operation.

[0077] In some embodiments, the method further comprises the following steps:

[0078] Step S2091, exiting the cloud desktop through the cloud computer client;

[0079] Step S2092, obtaining a service stop notification initiated by the cloud computer client, wherein the service stop notification is used to control the terminal to stop the classification path mounting service and unmount the classified file.

[0080] Through the embodiments of the present disclosure, the local disk symbol of the terminal can be redirected to the inside of the cloud desktop, the user can directly access the files and folders in the cloud desktop on the local terminal, and also can directly view the files stored in the local terminal on the cloud desktop, realizing the access intercommunication of cloud storage and local storage, which can reduce the occupation of the local storage space of the terminal, and further solve the problem of insufficient local storage space of the terminal in the related technology. The embodiments of the present disclosure can also adapt to the scenario of poor network environment, and guarantee the user experience in the weak network and offline scenarios.

[0081] FIG. 3 is a system schematic diagram of disk redirection in an embodiment of the present disclosure, as shown in FIG. 3, the system comprises a terminal 31 and a cloud desktop 32. Wherein, the cloud computer client is installed on the terminal 31, and the local system directory is generated.

[0082] In the present embodiment, the system directory contains the file system of the local terminal, and the files can be viewed through the path and classification. Meanwhile, the system directory can listen to the messages of the cloud computer client. The system directory can be the directory of the FUSE file system, but the present disclosure is not limited thereto.

[0083] In the embodiment, the cloud computer client is integrated in the terminal, and a user logs in the cloud desktop through the client; the cloud computer client sends a message to the terminal (system directory) to mount when the user logs in the cloud desktop, and sends a message to the terminal (system directory) to unmount when the user logs out the cloud desktop.

[0084] In the embodiment, the cloud desktop is a remote virtual desktop logged in and used through the cloud computer client, and the cloud desktop can call the redirection library to redirect the system directory of the terminal and read the disk content of the terminal.

[0085] In an example embodiment, the cloud computer client includes a virtual desktop infrastructure (VDI) client and a disk redirection library (i.e., the first redirection library mentioned above) libvdisk.so. The VDI client is responsible for parsing the disk redirection strategy, displaying the device list and device redirection result, and parsing the permission of disk redirection; and the first redirection library is responsible for constructing and managing shared resources and implementing the interface of remote file operation.

[0086] In an example embodiment, the cloud desktop involves the following three components: a tunnel, a usb / pc, and a disk redirection library (i.e., the second redirection library mentioned above) lib_redirect_disk.so. The tunnel is responsible for the listening port in the virtual machine in the one-port scenario; the usb / pc is the process of listening port in the direct connection scenario, and the default listening port number can be set to 3246, but the disclosure is not limited thereto; the disk redirection library of the cloud desktop is used to load the fuse (user space file system) of the cloud desktop and is responsible for the mounting and unmounting of the disk (network storage device) of the cloud desktop; the disk redirection library of the cloud desktop can also register the interface to the fuse to make the system call the file interface function.

[0087] In the embodiment, the client obtains the shared resources (i.e., the local system directory) of the terminal when logging in the cloud desktop, parses the disk redirection strategy, and initiates a redirection of the shared resources to the virtual machine (i.e., the cloud desktop); the client and the virtual machine are connected through the redirection program, so that the local disk of the terminal is redirected to the virtual machine; after the redirection is successful, the virtual machine can operate the files in the local disk of the terminal through the fuse.

[0088] In the embodiment, the fuse is implemented through an interface between the user space application and the kernel. When the user space application requests to access a file, the system kernel calls the callback function on the fuse mount point. These callback functions are responsible for handling actual file operations, such as reading, writing, or opening a file, etc.

[0089] Through the embodiments of the present disclosure, the operation of the terminal on the local system directory can be mapped to the network storage device of the cloud desktop, so that the cloud storage is realized on the terminal, and the storage space of the terminal is expanded.

[0090] FIG. 4 is a schematic diagram of mounting a terminal file to a system directory in an embodiment of the present disclosure. As shown in FIG. 4, a file system is created on the terminal side, and the file system is mounted on a corresponding directory.

[0091] In the present embodiment, the terminal side is presented in a "logical directory + physical directory" MTP-like manner. MTP-like refers to a USB class conforming to the Media Transfer Protocol (MTP) standard, which is a set of rules and protocols for defining the behavior and functions of USB devices, allowing devices to transfer media files in a standardized manner. In the present embodiment, the user accesses the cloud storage in a manner similar to accessing a USB device, and can directly access the files in the cloud storage through the specified drive letter of the disk. The terminal side also establishes a FUSE directory according to the design logic of DFS, and provides it to the cloud computer client. The classification files in the FUSE directory can be designed according to the logic of reading the media provider of MTP.

[0092] In the present embodiment, a local FUSE file system xxfuse is developed on the terminal side, and is mounted under the / media / xxfuse directory. In this directory, the terminal can generate classification files by querying the media provider service, or can generate classification files through a link and place them in the file system.

[0093] FIG. 5 is a flowchart of mounting a local disk file on a terminal in an embodiment of the present disclosure. As shown in FIG. 5, the flowchart includes the following steps:

[0094] Step S501, the client logs in to the cloud desktop;

[0095] Step S502, mounting the local disk of the terminal;

[0096] Step S503, disk redirection;

[0097] Step S504, local file transmission to the cloud desktop;

[0098] Step S505, exiting the cloud desktop;

[0099] Step S506, unmounting.

[0100] In this embodiment, when the client logs in the cloud computer desktop, the client sends a notification to the terminal to start the classification path mounting service; after receiving the notification, the terminal starts the classification path mounting service to mount the classification file or path file in the local disk of the terminal to the corresponding directory. After the cloud desktop is connected successfully, the cloud desktop redirects the disk of the terminal by calling the usbmsg redirection library. The client also passes the redirection permission to the cloud desktop. To ensure the security of the document, the default permission is set to "read only". After the redirection is successful, the network disk symbol of the terminal disk can be seen in the cloud desktop.

[0101] In this embodiment, after the user opens the terminal disk, the user can see two directories, the classification browsing directory and the path browsing directory. In the classification browsing directory, the video, audio and document are placed in different directories according to the file type. In the path browsing directory, the video, document and the like are placed in different directories according to the directory to which the source file belongs.

[0102] In this embodiment, in the cloud desktop, the user can operate, view and transmit the file in the terminal disk. The data transmission is realized through the redirection library between the client and the cloud desktop. The file transmission in step S504 is realized through the redirection library or similar protocol library. After the file transmission, the operation and viewing of the terminal local file can be realized in the cloud desktop.

[0103] In this embodiment, when the user logs out of the cloud desktop, the client sends a notification to the terminal to stop the classification path mounting service, and the terminal cancels the mounting of the classification file or path file.

[0104] Through the embodiments of the present disclosure, the terminal local file can be redirected to the cloud desktop, the direct access to the terminal can be realized in the cloud desktop, and the terminal local file can be transmitted to the cloud desktop for storage, which can reduce the occupation of the terminal local storage space, and further solve the problem of insufficient terminal local storage space in the related art.

[0105] FIG. 6 is a flowchart of the redirection permission management of the local disk in an embodiment of the present disclosure. As shown in FIG. 6, the flowchart includes the following steps:

[0106] In step S1, the cloud computer client logs in the cloud desktop.

[0107] In step S2, the terminal local classification path mounting service is started.

[0108] In step S3, the local file system is mounted.

[0109] In step S4, the local disk is mapped in the cloud desktop.

[0110] In step S5, the redirection permission is obtained from the management platform.

[0111] Step S6, obtain the permission setting parameter;

[0112] Step S7, transmit the parameter to the redirection interface, and the parameter is different, and the file read-write permission is different.

[0113] In the embodiment, the local access permission can be set as read-only by default for security considerations. The read-write permission is controlled through the cloud desktop management platform, and the security risk problem is solved through the permission configuration.

[0114] In the embodiment, the redirection permission configured by the management platform includes the following types:

[0115] Redirection permission: read-only, the file mapped on the terminal can be viewed in the cloud desktop, and the file can be opened, but the file cannot be copied to the terminal storage;

[0116] Redirection permission: write-only, the file mapped on the terminal can be viewed in the cloud desktop, but cannot be opened, and the file can be copied to the terminal storage;

[0117] Redirection permission: read-write, the file can be copied between the local and the cloud desktop, the terminal storage file is copied to the cloud storage, and the cloud storage file is copied to the terminal storage;

[0118] Redirection permission: not allowed, the local storage mapped by the cloud storage cannot be viewed in the cloud desktop.

[0119] Through the embodiment of the disclosure, the file transmission efficiency between the terminal and the cloud desktop can be improved, and the security of the file transmission can be ensured.

[0120] FIG. 7 is a schematic diagram of a read-write permission file processing flow in an embodiment of the disclosure, as shown in FIG. 7, after the file permission is determined, for the file with read-write permission, the following steps can be performed:

[0121] Step S8, obtain the file with read-write permission;

[0122] Step S9, create a cloud share folder; save the cloud storage file content of the last / current login user;

[0123] Step S10, view the cloud share folder in the cloud desktop and the terminal local; wherein the cloud share folder includes all files with read-write permission;

[0124] Step S11, transmit the document of the cloud desktop to the terminal local.

[0125] In this embodiment, the cloud desktop management platform can configure the content of data synchronization by configuring the read-write permission in the redirection permission. The permission can be configured according to the file type or the directory. According to the file type, different file types such as documents, pictures, and videos can be set to different redirection permissions. According to the file path, all files under the path / data / share can be set to read-write permission, but the present disclosure is not limited thereto.

[0126] In this embodiment, the cloud sharing folder is generated locally on the terminal, which is used to save the cloud storage file content of the user. According to the creation of the folder named with the username for different cloud desktop users, each folder is set to an encrypted state, and the password of the cloud desktop user needs to be input to open it. In some embodiments, after the folder is unlocked, if the user does not manually lock it, the login state can be maintained, and if the user manually locks it, the password needs to be input to unlock the next time.

[0127] The embodiments of the present disclosure are also applicable to weak network / disconnected network scenarios. For files with read-write permissions, flexible file transmission between the terminal and the cloud desktop can be realized through the cloud sharing folder, the user editing operation can be ensured not to be interrupted in the weak network / disconnected network scenario, and the file can be timely synchronized and updated when the network is restored, thereby improving the user experience.

[0128] FIG. 8 is a schematic diagram of read-write file processing flow in a disconnected network / weak network scenario in an embodiment of the present disclosure. As shown in FIG. 8, the disconnected network scenario can be divided into active disconnected network and passive disconnected network. The active disconnected network can be triggered by user operation, and the passive disconnected network is similar to the weak network scenario, which is caused by poor network environment and network signal fluctuation.

[0129] In this embodiment, in the active disconnected network scenario, the following steps can be included:

[0130] Step S12, editing a document locally when the network is disconnected; and transmitting the document to the cloud desktop after logging in the cloud computer client when the network is restored.

[0131] In this embodiment, in the passive disconnected network / weak network scenario, the following steps can be included:

[0132] Step S13, detecting weak network or disconnected network when editing a document in the cloud sharing folder directory;

[0133] Step S14, prompting through a pop-up window whether to enable data synchronization due to poor network; after starting, the local and cloud computer modified contents can be synchronized in real time, which needs to be confirmed by the user; if the user clicks cancel, the edited contents will not be synchronized in real time; if the user clicks confirm, the user can edit the files in the cloud sharing folder in the local and cloud desktop; and the data is saved and overwritten in real time.

[0134] Step S15, the document can be opened locally and modified in real time to synchronize the cloud desktop; this step can unlock the folder and edit the document;

[0135] Step S16, save the document in real time to synchronize to the cloud desktop;

[0136] Step S17, exit the cloud computer and prompt the user whether to delete the shared folder; the cloud shared folder can contain shared folders of multiple cloud desktop users, and each user can only edit and delete the corresponding folder;

[0137] Step S18, if the deletion is confirmed, the folder in the local cloud shared directory of the terminal disappears;

[0138] Step S19, if the deletion is cancelled, the folder is retained in the local cloud shared directory of the terminal; the user password of the cloud computer needs to be input the next time the folder is opened, or the cloud desktop needs to be logged in before the folder can be opened.

[0139] Step S20, if the cloud desktop is logged in again, the readable and writable documents of the cloud desktop can be continuously synchronized in the cloud shared folder.

[0140] In the embodiment of the present disclosure, if the document is configured as a read-write permission, the document in the cloud desktop can be synchronized to the local terminal, the document can be viewed and edited in the local terminal, and the document can be saved, which facilitates office work in the case of network disconnection or weak network, and effectively avoids the problem that the cloud terminal product requires a large network when using the cloud computer.

[0141] In the present embodiment, the active network disconnection scenario: the user logs in to the cloud desktop, transmits the document to the local terminal, disconnects the cloud desktop or the network, edits the file in the local terminal and saves it, and logs in to the cloud desktop after the network is restored, and transmits the document to the cloud desktop.

[0142] In the present embodiment, the passive network disconnection scenario: when editing the file in the cloud shared folder in the cloud desktop, it is detected that the current network is weak or disconnected, a pop-up box is prompted to prompt whether to enable data synchronization, and the user is provided with confirmation and cancellation buttons. If the user clicks cancel, the edited content will not be synchronized in real time. If the user clicks confirm, the file in the cloud shared folder can be edited in the local terminal and the cloud desktop, and the data is synchronized and saved in real time, thereby solving the difficulty of office work in the cloud desktop when the network is poor.

[0143] In the embodiment, if the user exits the cloud desktop, the cloud computer client also prompts the user whether to delete the shared folder of the current user. If the user clicks to confirm the deletion, the folder named by the user under the local cloud sharing directory of the terminal disappears. If the user clicks to cancel the deletion, the folder named by the user under the local cloud sharing directory of the terminal is retained. For security considerations, the user needs to input the user password of the cloud desktop to log in and unlock the folder when the folder is opened for the first time or when the folder is opened again after being locked.

[0144] In the embodiment of the present disclosure, the user can effectively combine the use of the terminal local and the cloud computer / cloud desktop. The user can store the files of the terminal local into the cloud computer / cloud desktop without connecting a data line, and the operation is simple, convenient and fast. Meanwhile, the space occupation of the terminal local can be reduced. For the product manufacturer, the user can use the storage space of the cloud desktop as the storage space of the terminal, and the demand for the storage space of the terminal can be reduced. The product manufacturer can further reduce the production cost by reducing the size of the storage space of the terminal.

[0145] The embodiment of the present disclosure further provides a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program is run by a processor, the steps in any of the method embodiments described above are performed.

[0146] In an example embodiment, the computer readable storage medium described above can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.

[0147] The embodiment of the present disclosure further provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the method embodiments described above.

[0148] In an example embodiment, the electronic device described above can further include a transmission device and an input / output device. The transmission device is connected to the processor, and the input / output device is connected to the processor.

[0149] The embodiment of the present disclosure further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the method embodiments described above are implemented.

[0150] The specific examples in the embodiment can refer to the examples described in the above embodiments and example embodiments, and the embodiment will not be described here again.

[0151] It is apparent that those skilled in the art should understand that the modules or steps of the present disclosure described above can be realized by general computing devices, which can be centralized on a single computing device or distributed on a network composed of multiple computing devices, and can be realized by program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different orders, or they can be respectively manufactured into individual integrated circuit modules, or multiple modules or steps thereof can be manufactured into a single integrated circuit module. Thus, the present disclosure is not limited to any particular combination of hardware and software.

[0152] The preferred embodiments of the present disclosure are described above, but the present disclosure is not limited to the above. Those skilled in the art can make various modifications and changes to the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A cloud storage method for a terminal, the method comprising: The local file category file is generated through the category path mounting service, and the category file is mounted. The categorized files are mapped to the network storage device of the cloud desktop via disk redirection.

2. The method according to claim 1, wherein, Before mounting the category file, which generates a local file via the category path mounting service, the method further includes: Log in to the cloud desktop via a cloud PC client; Obtain the service startup notification initiated by the cloud computer client, wherein the service startup notification is used to control the terminal to start the category path mounting service.

3. The method according to claim 1, wherein, The process includes generating local file category files through a category path mounting service and mounting the category files, including: The local file is associated with multiple category directories according to its file type to obtain the category file, wherein the category file includes files from multiple category directories, and each category directory corresponds to one file type; Mount the categorized files to the system directory of the local user space file system.

4. The method according to claim 3, wherein, The local files are associated with multiple category directories based on their file types to obtain the category files, including: Based on the file type of the local file, link the local file to the category directory to obtain the category file; or, Based on the file type of the local file, the local file is queried through the media provider service, and the query results are placed in the corresponding category directory to obtain the category file.

5. The method according to claim 1, wherein, Mapping the categorized files to the network storage device of the cloud desktop via disk redirection includes: The cloud computer client calls the local first redirection library and the cloud desktop's second redirection library to map the categorized files to the network storage device of the cloud desktop.

6. The method according to claim 1, wherein, The method further includes: The path file of the local file is obtained through the categorized path mounting service, and the path file is mounted. The path file is mapped to the network storage device of the cloud desktop through disk redirection.

7. The method according to claim 6, wherein, Mapping the path file to the network storage device of the cloud desktop via disk redirection includes: The cloud computer client calls the local first redirection library and the cloud desktop's second redirection library to map the path file to the network storage device of the cloud desktop.

8. The method according to claim 1, wherein, After mapping the categorized files to the network storage device of the cloud desktop via disk redirection, the method further includes: Obtain redirection permissions for the local files via a cloud PC client; The redirection permission is sent to the cloud desktop via the redirection interface; The redirection permissions include at least one of the following: write-only, read-only, read-write, and not allowed.

9. The method according to claim 8, wherein, After sending the redirection permission to the cloud desktop via the redirection interface, the method further includes: The target file with read and write permissions is obtained through the cloud computer client, wherein the redirection permissions of the target file are configured based on file type or file path; Create a cloud shared folder locally to store the target files, and map the cloud shared folder to the cloud desktop.

10. The method according to claim 9, wherein, The method further includes: In scenarios with no network or weak network, enable or disable the data synchronization function of the cloud shared folder; When the data synchronization function is enabled and the target file triggers an update operation, the target file is updated synchronously on both the local machine and the cloud desktop.

11. The method according to claim 9, wherein, The method further includes: When exiting the cloud desktop, determine whether the cloud shared folder needs to be deleted; If the judgment result is yes, delete the cloud shared folder from the local machine; If the result is negative, the cloud shared folder will be retained.

12. The method according to claim 1, wherein, The method further includes: Exit the cloud desktop via the cloud PC client; Obtain a service stop notification initiated by the cloud computer client, wherein the service stop notification is used to control the terminal to stop the category path mounting service and unmount the category file.

13. A computer-readable storage medium storing a computer program, wherein, The computer program is executed by the processor to perform the method described in any one of claims 1 to 12.

14. An electronic device comprising a memory and a processor, the memory storing a computer program, the processor being configured to run the computer program to perform the method of any one of claims 1 to 12.

15. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Shared access system and method for remotely mounting local disk into cloud desktop virtual machine

    CN111782318A

  • Cloud desktop file copying method, device and equipment

    CN114546676A

  • Cloud storage access method and device, electronic equipment and storage medium

    CN116303255A

  • File directory redirection method and device, computer readable medium and electronic equipment

    CN118034577A

  • Direct loading of client cloud files in a remote desktop

    US20230266986A1