Desktop login method and apparatus, and electronic device and storage medium

By mounting the virtual disk files of the network storage device and generating a redirect configuration when the user logs into the cloud desktop, the file access request on the cloud desktop is forwarded to the virtual disk for processing, which solves the problem of data loss after the user exits the cloud desktop, and realizes data roaming and saving.

WO2025177084A1PCT designated stage Publication Date: 2025-08-28CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/IB2025/050758
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-20
Filing Date
2025-01-24
Publication Date
2025-08-28

AI Technical Summary

Technical Problem

When a user disconnects the cloud desktop, the cloud platform unbinds the user from the cloud desktop, resulting in the loss of data generated by the user on the cloud desktop.

Method used

When a user logs into the cloud desktop, based on the network storage authentication information in the desktop login request, the virtual disk files in the network storage device are mounted to the cloud desktop, and a redirection configuration is generated, and the file access request is forwarded to the virtual disk for processing, realizing user data roaming to the network storage device.

Benefits of technology

It solves the problem of data loss after a user exits the cloud desktop, and by saving personal data on a network storage device, ensuring that the data is still available when the user exits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure IB2025050758_28082025_PF_FP_ABST
    Figure IB2025050758_28082025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present disclosure are a desktop login method and apparatus, and an electronic device and a storage medium. The method comprises: on the basis of a desktop login request of a user, allocating a cloud desktop to the user; on the basis of first identity verification information carried in the desktop login request, mounting, to the cloud desktop, a virtual disk file of the user in a network storage device, so as to obtain a virtual disk of the user; generating a redirection configuration of the virtual disk; and sending desktop data of the cloud desktop to a terminal device of the user. A virtual disk file in a network storage device is mounted on the basis of first identity verification information in a desktop login request, and a redirection configuration that forwards, to a mounted virtual disk for processing, a file access request of a user on a cloud desktop, is generated, such that all personal data on the cloud desktop can be roamed to the network storage device; and when the user logs out of the cloud desktop, only the virtual disk in the cloud desktop is uninstalled, but the personal data in the network storage device is still present, such that the problem of data loss after the user logs out of the cloud desktop can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001]A Desktop Login Method, Apparatus, Electronic Device, and Storage Medium. This disclosure claims priority to Chinese patent application number 202410190047.2, filed with the Chinese Patent Office on February 20, 2024, entitled "A Desktop Login Method, Apparatus, Electronic Device, and Storage Medium," the entire contents of which are incorporated herein by reference. Technical Field: This disclosure relates to the field of computer technology, and more specifically, to a desktop login method, apparatus, electronic device, and storage medium. Background: In the field of cloud desktops, a desktop group refers to a collection of virtual desktops or cloud desktop instances that can be authorized for use by multiple users. When an authorized user logs in to a cloud desktop client and connects to the cloud desktop, the cloud platform assigns a virtual desktop to the user in the desktop group and establishes a binding relationship to complete the cloud desktop connection. This allows the user to perform various operations on the cloud desktop, such as accessing applications, files, and personalizing settings. However, when a user disconnects from a cloud desktop, the cloud platform will unbind the user from the cloud desktop to release the cloud desktop, resulting in the loss of data generated by the user on the cloud desktop. SUMMARY OF THE INVENTION The present disclosure addresses the shortcomings of the prior art by providing a desktop login method, apparatus, electronic device, and storage medium. This objective is achieved through the following technical solutions. In a first aspect, the present disclosure provides a desktop login method, comprising: allocating a cloud desktop to a user based on a desktop login request; mounting the user's virtual disk file in a preset network storage device to the cloud desktop based on first identity authentication information for network storage carried in the desktop login request, thereby obtaining the user's virtual disk; generating a redirection configuration for the virtual disk, the redirection configuration being used to forward file access requests initiated by the user on the cloud desktop to the virtual disk for processing; and sending desktop data of the cloud desktop to the user's terminal device. A second aspect of the present disclosure proposes a desktop login device, which includes: a desktop allocation module, which is used to allocate a cloud desktop to a user according to the user's desktop login request; a disk mounting module, which is used to mount the user's virtual disk file in a preset network storage device to the cloud desktop based on first identity authentication information for network storage carried in the desktop login request, so as to obtain the user's virtual disk; a configuration module, which is used to generate a redirection configuration of the virtual disk, and the redirection configuration is used to forward a file access request initiated by the user on the cloud desktop to the virtual disk for processing; and a response module, which is used to send desktop data of the cloud desktop to the user's terminal device.A third aspect of the present disclosure provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in the first aspect. A fourth aspect of the present disclosure provides a computer-readable storage medium storing a computer program, wherein the program is executed by the processor to implement the method described in the first aspect. A fifth aspect of the present disclosure provides a computer program that, when executed in a computer, causes the computer to execute the method described in the first aspect. Based on the desktop login method and apparatus described in the first and second aspects, the present disclosure has at least the following beneficial effects or advantages: When a user logs in to a cloud desktop, a virtual disk file on a network storage device is mounted based on the first authentication information for network storage in the desktop login request. A redirection configuration is generated to forward the user's file access requests on the cloud desktop to the mounted virtual disk for processing, thereby roaming the user's personal data on the cloud desktop to the network storage device. Since when a user logs out of the cloud desktop, only the virtual disk in the cloud desktop is unmounted, but the personal data on the network storage device remains, this can solve the problem of personal data loss on the cloud desktop after the user logs out of the cloud desktop. The above description is merely an overview of the technical solutions of the present disclosure. To better understand the technical solutions of the present disclosure, implementation is possible in accordance with the contents of this specification. To make the above and other objectives, features, and advantages of the present disclosure more readily apparent, specific embodiments of the present disclosure are described below. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings described herein are provided to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are intended to explain the present disclosure and do not constitute undue limitations thereon. In the accompanying drawings: FIG1 is a flowchart of an embodiment of a desktop login method according to an exemplary embodiment; FIG2 is a schematic diagram of a desktop login interaction process according to an exemplary embodiment; FIG3 is a schematic diagram of the structure of a desktop login device according to an exemplary embodiment; FIG4 is a schematic diagram of the hardware structure of an electronic device according to an exemplary embodiment; and FIG5 is a schematic diagram of the structure of a storage medium according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS The exemplary embodiments will be described in detail herein, with examples thereof illustrated in the accompanying drawings. In the following description, when referring to the drawings, unless otherwise indicated, identical numerals in different drawings represent identical or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure as recited in the appended claims.The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or," as used herein, refers to and encompasses any and all possible combinations of one or more of the associated listed items. It should be understood that while this disclosure may employ the terms "first," "second," and "third," etc., to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information could be referred to as second information, and similarly, second information could be referred to as first information, without departing from the scope of this disclosure. Depending on the context, the term "if," as used herein, could be interpreted as meaning "when," "when," or "in response to determining." As previously mentioned, when a user disconnects from a cloud desktop, the binding between the user and the cloud desktop is automatically untied, thereby enabling automatic scheduling of cloud desktops within a desktop group. However, personal data generated on the cloud desktop must be downloaded locally or uploaded to a network disk before logging out, as unbinding the user from the cloud desktop means the user's personal data will be lost. To address the aforementioned technical issues, the present disclosure proposes a desktop login method. When a user logs in to a cloud desktop, a virtual disk file on a network storage device is mounted based on the first authentication information for network storage in the desktop login request. A redirection configuration is generated to forward the user's file access requests on the cloud desktop to the mounted virtual disk for processing, thereby roaming the user's personal data on the cloud desktop to the network storage device. Since when a user logs out of the cloud desktop, only the virtual disk on the cloud desktop is unmounted, but the personal data on the network storage device remains. This solves the problem of personal data loss on the cloud desktop after the user logs out of the cloud desktop. The following describes in detail the technical solution of the present disclosure and how it solves the aforementioned technical issues through specific embodiments. The specific embodiments listed above may be combined with each other, and identical or similar concepts or processes may not be described in detail in certain embodiments. The embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. Example 1: FIG1 is a flowchart illustrating an embodiment of a desktop login method according to an exemplary embodiment, comprising the following steps 101-104: Step 101: Allocate a cloud desktop to a user based on a user's desktop login request. Step 102: Based on the first authentication information for network storage carried in the desktop login request, mount the user's virtual disk file from a preset network storage device to the cloud desktop to obtain the user's virtual disk.Step 103: Generate a redirection configuration for the virtual disk. This redirection configuration is used to forward file access requests initiated by the user on the cloud desktop to the virtual disk for processing. Step 104: Send the desktop data of the cloud desktop to the user's terminal device. The execution entity of this embodiment of the present disclosure may be a cloud platform providing cloud desktop services. In this embodiment of the present disclosure, a desktop login request is generated by a desktop client on the terminal device based on the authentication information entered by the user for logging into the cloud desktop. In addition to the authentication information for logging into the cloud desktop (hereinafter referred to as the second authentication information), the desktop login request also includes authentication information for network storage (hereinafter referred to as the first authentication information) and the network path of the network storage device where the virtual disk file is stored. Both the authentication information for logging into the cloud desktop and the authentication information for network storage are used to verify the correctness of the user's identity. This disclosure does not limit the specific implementation method, and may be implemented in the form of an account and password, or in other forms, such as biometric verification information. The network storage device may be a NAS (Network Attached Storage) device, a device dedicated to data storage, where data can be accessed via the network. By mounting a virtual disk file pre-stored for the user on a network storage device to the cloud desktop and generating a redirection configuration for the virtual disk, the redirection configuration redirects the user's file access on the cloud desktop to the virtual disk. Therefore, the generated personal data is also stored on the virtual disk, effectively saving the user's personal data on the cloud desktop to the network storage device. This completes the desktop login process shown in FIG1 . When a user logs in to the cloud desktop, the virtual disk file on the network storage device is mounted based on the first authentication information for network storage in the desktop login request. A redirection configuration is generated to forward the user's file access requests on the cloud desktop to the mounted virtual disk for processing. This allows the user's personal data on the cloud desktop to be roamed to the network storage device. Since, when the user logs out of the cloud desktop, only the virtual disk on the cloud desktop is unmounted, but the personal data on the network storage device remains. This solves the problem of personal data loss on the cloud desktop after the user logs out of the cloud desktop. In some embodiments of the present disclosure, in the process of assigning a cloud desktop to a user based on a desktop login request, the second authentication information for logging into the cloud desktop carried in the desktop login request is verified. If the second authentication information is verified successfully, a cloud desktop is assigned to the user from a preset desktop group, and a binding relationship is established between the cloud desktop and the user.In this embodiment, the second authentication information is the authentication information entered by the user on the desktop client to log in to the cloud desktop. The established binding relationship is a mapping between the cloud desktop and the user, indicating that the user can subsequently perform operations such as application access, file access, and personalization settings on the corresponding cloud desktop. In addition to the second authentication information, the desktop login request also carries the first authentication information. The first authentication information does not require user input and is pre-stored by the desktop client backend. In other embodiments of the present disclosure, after assigning a cloud desktop to the user based on the desktop login request, the second authentication information can be determined based on the preset administrator user group to determine whether it belongs to a non-administrator identity. If it does, volume management permissions are enabled for the user. If not, the user is removed from the administrator user group and then volume management permissions are enabled for the user. In this embodiment, since administrators have the highest system permissions, restricting users from logging in with non-administrator identities can prevent access to other users' data in multi-session scenarios, without achieving user isolation. Furthermore, because the system grants very limited permissions to non-administrators, in actual systems, the system does not support non-administrator users mounting virtual disks. Therefore, it is necessary to grant non-administrator users the privilege of enabling volume management permissions so that they can perform volume maintenance tasks, thereby facilitating subsequent user mounting operations on the system. In specific implementations, a non-administrator user group can be created for each cloud desktop in the desktop group, and permissions to perform volume maintenance tasks can be configured for each non-administrator user group. If the second authentication information is determined to indicate a non-administrator identity, the user is added to the non-administrator user group corresponding to the assigned cloud desktop. In some embodiments of the present disclosure, the process of mounting the user's virtual disk file from a preset network storage device to the cloud desktop based on the first authentication information for network storage carried in the desktop login request can be accomplished by sending a mount request containing the first authentication information to the network storage device, mounting the network storage device based on the verification result returned by the network storage device, and then mounting the user's virtual disk file from the network storage device as a virtual disk in the cloud desktop. Wherein, a directory of a virtual disk file is created for the user in advance in the file system of the network storage device, user permissions are set for the directory of the virtual disk file, and verification information for identity verification is set.When mounting a network storage device, the cloud platform initiates a mount request to the network storage device for authentication. The network storage device verifies the first authentication information in the mount request using pre-set verification information. Upon completion, the verification result is returned to the cloud platform, completing the mounting of the network storage device and establishing a network connection between the cloud platform and the network storage device. Using the user information, the cloud platform can access the user's virtual disk file on the network storage device, obtain the virtual disk file's file directory, and then mount the virtual disk file using the obtained file directory. In an optional embodiment, the process of sending the mount request containing the first authentication information to the network storage device can be performed by obtaining the user's session information. Based on the obtained session information, the mount request containing the first authentication information is sent to the network storage device. In this embodiment, the session information indicates the session created when the user is assigned a cloud desktop. During the user's interaction with the cloud platform, this session information is used to track the user's activities. Therefore, using this session information, the network storage device can be mounted within the session, performing the network storage device mounting as the user, thereby achieving isolated mounting between different users and ensuring user data isolation in multi-session scenarios. Those skilled in the art will understand that a multi-session scenario refers to a scenario where multiple users use a single cloud desktop. Because each user corresponds to a session, multiple sessions exist within a cloud desktop environment. In an optional embodiment, to mount the user's virtual disk file on the network storage device as a virtual disk within the cloud desktop, a mount command is executed within the cloud desktop using the virtual disk file's file directory within the network storage device and a parameter indicating that a drive letter should not be automatically assigned. Mounting the virtual disk file without a drive letter prevents other users from directly editing or modifying the files within the virtual disk through the resource manager, ensuring independent mounting of the virtual disk. In some embodiments of the present disclosure, to generate a redirection configuration for the virtual disk, the device path of the virtual disk is obtained, a data file is created in the user's personal directory within the cloud desktop, and a redirection configuration is generated based on the data file's file directory within the cloud desktop and the obtained device path. In this embodiment, the device path is the path used to access the virtual disk. By creating a data file in the user's personal directory dedicated to storing personal data and configuring a redirection configuration for file access requests for the data file, the user can subsequently access the personal data stored in the virtual disk file by accessing the data file in the personal directory, thereby realizing the need to roam the personal data in the data file to the virtual disk.In an optional embodiment, the process of generating a redirection configuration based on the file directory of a data file in a cloud desktop and the obtained device path involves generating a redirection configuration in the cloud desktop's file filter driver, using the file directory as the source path and the device path as the target path. The file filter driver is a module for monitoring and processing file system operations, which can perform various file processing operations based on specific rules. Therefore, by generating the redirection configuration as a specific rule in the file filter driver, access to data files in the file directory can be redirected to the virtual disk indicated by the device path. Example 2: Based on the embodiment shown in FIG. 1 above, FIG. 2 is a schematic diagram of a desktop login interaction process according to an exemplary embodiment. This embodiment involves a user-side terminal device, a desktop management service on a cloud platform, and a cloud desktop. The desktop management service serves as the backend server of the desktop client, implementing the allocation and management of user cloud desktops. Furthermore, this embodiment also involves a network storage device for storing data. First, the desktop management service creates a non-administrator user group, Vhdllsers, for each cloud desktop in the desktop group and configures permissions for each user group, VhdUsers, to perform volume maintenance tasks. Upon receiving the second authentication information input by the user, the desktop client on the terminal device generates a desktop login request containing the first and second authentication information and sends the desktop login request to the desktop management service. The desktop management service verifies the second authentication information carried in the desktop login request. If the verification passes, the desktop management service assigns the cloud desktop to the user. If the user information in the second authentication information is determined to be non-administrator, the desktop client adds the user information in the second authentication information to the user group, VhdUsers, corresponding to the assigned cloud desktop. Then, the desktop management service creates a session between the user and the assigned cloud desktop and sends a desktop login request to the cloud desktop assigned to the user. The cloud desktop then sends a mount request containing the first authentication information to the network storage device based on the session information and mounts the network storage device according to the authentication result returned by the network storage device. This allows the network storage device to be mounted as the user. The user information is used to access the user's virtual disk file on the network storage device to obtain the file directory of the virtual disk file. The virtual disk file is then mounted using the obtained file directory and a parameter indicating not to automatically assign a drive letter, thereby obtaining the user's virtual disk. The desktop management service then obtains the device path of the virtual disk mounted on the cloud desktop.Finally, the desktop management service creates a data file, vhdMountPath, in the user's personal directory on the cloud desktop. The cloud desktop's file filtering driver generates a redirection configuration based on the data file's directory on the cloud desktop (for example, C:\Users\A\vhdMountPath) and the obtained device path (for example, \Device\HarddiskVoIume_X). It then sends the cloud desktop's desktop data to the terminal device. In other words, when the file filtering driver subsequently detects a user accessing C:\Users\A\vhdMountPath, it forwards the file access request to C:\Users\A\vhdMountPath for processing by the mounted virtual disk. Based on the above implementation, in a multi-session scenario, multiple users can simultaneously use a cloud desktop. Because the network storage device is mounted in each user's session, users are isolated from each other, eliminating the risk of data leakage. Furthermore, each user has a virtual disk file on the network storage device, so each user's virtual disk file is also mounted independently on the cloud desktop without a drive letter. Each user uses a corresponding virtual disk, preventing other users from editing or modifying files on the virtual disk through the resource manager, ensuring independent and isolated mounting of the virtual disk. The execution entities of the embodiments of the present disclosure can be applications, services, instances, software-based functional modules, virtual machines (VMs), containers, or cloud servers, or hardware devices with data processing capabilities (such as servers or terminal devices) or hardware chips (such as CPUs, GPUs, FPGAs, NPUs, AI accelerator cards, or DPUs). The device for realizing desktop login can be deployed on the computing equipment of the application party that provides the corresponding service or on the cloud computing platform that provides computing power, storage and network resources. The service model provided by the cloud computing platform to the outside world can be IaaS (Infrastructure as a Service), PaaS (Platform as a Service), SaaS (Software as a Service) or DaaS (Data as a Service).Taking the example of a platform providing SaaS (Software as a Service), a cloud computing platform can leverage its own computing resources to train desktop login models or execute desktop login module functions. The specific application architecture can be built based on service requirements. For example, the platform can provide a model-based construction service to application parties or individuals using platform resources. Furthermore, based on desktop login requests submitted by relevant clients or servers, the platform can invoke the model and implement online or offline desktop login functionality. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, storage, and display) referred to in this disclosure are all authorized by the user or fully authorized by all parties. The collection, use, and processing of such data must comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or deny. Corresponding to the aforementioned desktop login method embodiments, this disclosure also provides embodiments of desktop login devices. FIG3 is a schematic diagram illustrating the structure of a desktop login device according to an exemplary embodiment. The device is configured to execute the desktop login method provided in any of the aforementioned embodiments. As shown in FIG3 , the desktop login device includes: a desktop allocation module 310 for allocating a cloud desktop to a user based on a user's desktop login request; a disk mounting module 320 for mounting the user's virtual disk file from a preset network storage device to the cloud desktop based on first authentication information for network storage carried in the desktop login request, thereby obtaining the user's virtual disk; a configuration module 330 for generating a redirection configuration for the virtual disk, the redirection configuration being configured to forward file access requests initiated by the user on the cloud desktop to the virtual disk for processing; and a response module 340 for transmitting desktop data of the cloud desktop to the user's terminal device. In an optional implementation, the disk mounting module 320 is specifically configured to send a mount request containing the first authentication information to the network storage device; mount the network storage device based on a verification result returned by the network storage device; and mount the user's virtual disk file from the network storage device as a virtual disk in the cloud desktop. In an optional implementation, the disk mounting module 320 is specifically configured to obtain session information of the user during a process of sending a mount request including the first authentication information to the network storage device, where the session indicated by the session information is created when a cloud desktop is assigned to the user; and send the mount request including the first authentication information to the network storage device based on the session information.In an optional implementation, the disk mounting module 320 is specifically configured to, during the process of mounting the user's virtual disk file on the network storage device as a virtual disk in the cloud desktop, execute a mount command in the cloud desktop using the file directory of the virtual disk file on the network storage device and a parameter indicating that a drive letter should not be automatically assigned, to complete the mounting of the virtual disk file. In an optional implementation, the configuration module 330 is specifically configured to obtain a device path for the virtual disk; the device path is used to access the virtual disk; create a data file in the user's personal directory in the cloud desktop; and generate the redirection configuration based on the file directory of the data file in the cloud desktop and the device path. In an optional implementation, the configuration module 330 is specifically configured to, during the process of generating the redirection configuration based on the file directory of the data file in the cloud desktop and the device path, generate a redirection configuration in the file filter driver of the cloud desktop that uses the file directory as the source path and the device path as the target path. In an optional implementation, the desktop assignment module 310 is specifically configured to verify the second authentication information for logging into the cloud desktop carried in the desktop login request; if the second authentication information is verified successfully, assign a cloud desktop to the user from a preset desktop group, establishing a binding relationship between the cloud desktop and the user. The implementation of the functions and effects of each unit in the aforementioned apparatus is described in detail in the implementation of the corresponding steps in the aforementioned method and will not be repeated here. Since the apparatus embodiments generally correspond to the method embodiments, reference will be made to the description of the method embodiments for relevant details. The apparatus embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of these modules may be selected to achieve the objectives of the disclosed solution based on actual needs. Persons of ordinary skill in the art will be able to understand and implement the disclosed solution without inventive effort. The disclosed embodiments also provide an electronic device corresponding to the desktop login method provided in the aforementioned embodiments, for executing the aforementioned desktop login method. 4 is a hardware structure diagram of an electronic device according to an exemplary embodiment. The electronic device includes a communication interface 601, a processor 602, a memory 603, and a bus 604. The communication interface 601, the processor 602, and the memory 603 communicate with each other via the bus 604.The processor 602 can execute the desktop login method described above by reading and executing machine-executable instructions corresponding to the control logic of the desktop login method in the memory 603. The specific content of this method is described in the above embodiments and will not be repeated here. The memory 603 mentioned in this disclosure can be any electronic, magnetic, optical, or other physical storage device and can contain stored information such as executable instructions, data, etc. Specifically, the memory 603 can be RAM (Random Access Memory), flash memory, a storage drive (such as a hard disk drive), any type of storage disk (such as an optical disk, DVD, etc.), or similar storage media, or a combination thereof. The system network element and at least one other network element are connected via at least one communication interface 601 (which can be wired or wireless). The communication connection can be achieved using the Internet, a wide area network, a local area network, a metropolitan area network, etc. The bus 604 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be classified into an address bus, a data bus, a control bus, etc. Memory 603 is used to store programs, and processor 602 executes the programs after receiving execution instructions. Processor 602 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method may be completed by hardware integrated logic circuits in processor 602 or by software instructions. Processor 602 may be a general-purpose processor, including a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in conjunction with the embodiments of this disclosure may be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The electronic device provided by the embodiment of the present disclosure and the desktop login method provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.The present embodiments also provide a computer-readable storage medium corresponding to the desktop login method provided in the aforementioned embodiments. Referring to FIG. 5 , the computer-readable storage medium shown is an optical disc 30 storing a computer program (i.e., a program product). When executed by a processor, the computer program executes the desktop login method provided in any of the aforementioned embodiments. It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory, or other optical or magnetic storage media, which are not described in detail here. The computer-readable storage medium provided in the aforementioned embodiments of the present disclosure and the desktop login method provided in the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the method employed, executed, or implemented by the application program stored therein. The present embodiments also provide a computer program that, when executed in a computer, causes the computer to execute the desktop login method provided in any of the aforementioned embodiments. Those skilled in the art will readily envision other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only; the true scope and spirit of the present disclosure are indicated by the following claims. It should also be noted that the terms "comprise," "comprising," or any other variations thereof are intended to encompass a non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, the phrase "comprising an element..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element. The above description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

Claims 1. A desktop login method, comprising: Allocate a cloud desktop to the user according to the user's desktop login request; Based on the first authentication information for network storage carried in the desktop login request, mounting the user's virtual disk file in a preset network storage device to the cloud desktop to obtain the user's virtual disk; generating a redirection configuration for the virtual disk, the redirection configuration being used to forward file access requests initiated by the user on the cloud desktop to the virtual disk for processing; The desktop data of the cloud desktop is sent to the terminal device of the user.

2. The method according to claim 1, wherein the step of mounting the user's virtual disk file in a preset network storage device to the cloud desktop based on the first identity authentication information for network storage carried in the desktop login request to obtain the user's virtual disk comprises: Sending a mount request including the first identity authentication information to the network storage device; Mounting the network storage device according to the verification result returned by the network storage device; The virtual disk file of the user in the network storage device is mounted as a virtual disk in the cloud desktop.

3. The method according to claim 2, wherein the sending the mount request including the first identity authentication information to the network storage device comprises: Acquire session information of the user, where the session indicated by the session information is created when a cloud desktop is allocated to the user; A mount request including the first authentication information is sent to the network storage device based on the session information.

4. The method according to claim 2 or 3, wherein mounting the user's virtual disk file in the network storage device as a virtual disk in the cloud desktop comprises: A mount command is executed in the cloud desktop using the file directory of the virtual disk file in the network storage device and a parameter indicating not to automatically assign a drive letter, so as to complete the mounting of the virtual disk file.

5. The method according to any one of claims 1 to 4, wherein generating the redirection configuration of the virtual disk comprises: obtaining a device path of the virtual disk; using the device path to access the virtual disk; creating a data file in the user's personal directory in the cloud desktop; and generating the redirection configuration based on the file directory of the data file in the cloud desktop and the device path.

6. The method according to claim 5, wherein generating the redirection configuration according to the file directory of the data file in the cloud desktop and the device path comprises: A redirection configuration is generated in the file filter driver of the cloud desktop, which uses the file directory as the original path and the device path as the target path.

7. The method according to any one of claims 1 to 6, wherein allocating a cloud desktop to the user according to the user's desktop login request comprises: Verifying the second identity authentication information for logging into the cloud desktop carried in the desktop login request; When the second identity authentication information is verified successfully, a cloud desktop is allocated to the user from a preset desktop group, and a binding relationship between the cloud desktop and the user is established.

8. A desktop login device, comprising: A desktop allocation module is used to allocate a cloud desktop to a user according to a desktop login request of the user; The disk mounting module is used to mount the user's virtual disk file in the preset network storage device to the cloud desktop based on the first identity authentication information for network storage carried by the desktop login request, and obtain the user's virtual disk file. a virtual disk; a configuration module for generating a redirection configuration of the virtual disk, the redirection configuration being used to forward a file access request initiated by the user on the cloud desktop to the virtual disk for processing; A response module is used to send the desktop data of the cloud desktop to the terminal device of the user.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method according to any one of claims 1 to 7.

11. A computer program, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • USB mapping-based multi-user isolating method and device for storage equipment

    CN104202379A

  • System and method for mounting network disk on cloud desktop based on distributed storage

    CN112235371A

  • User data synchronization method and device based on cloud desktop, equipment and storage medium

    CN114679442A

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

    CN116303255A