CN111045834A - Method, device and storage medium for accessing USB storage device under cloud desktop - Google Patents

Method, device and storage medium for accessing USB storage device under cloud desktop Download PDF

Info

Publication number
CN111045834A
CN111045834A CN201811198601.2A CN201811198601A CN111045834A CN 111045834 A CN111045834 A CN 111045834A CN 201811198601 A CN201811198601 A CN 201811198601A CN 111045834 A CN111045834 A CN 111045834A
Authority
CN
China
Prior art keywords
usb storage
shared directory
storage device
terminal
cloud desktop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811198601.2A
Other languages
Chinese (zh)
Other versions
CN111045834B (en
Inventor
李繁
郭热思
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201811198601.2A priority Critical patent/CN111045834B/en
Publication of CN111045834A publication Critical patent/CN111045834A/en
Application granted granted Critical
Publication of CN111045834B publication Critical patent/CN111045834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, equipment and a storage medium for accessing a USB storage device under a cloud desktop, and belongs to the technical field of cloud desktop management. The method comprises the following steps: actively loading the inserted USB storage equipment, mounting the USB storage equipment under a terminal shared directory, and simultaneously acquiring and sending the shared directory parameters of the USB storage equipment to a remote virtual machine; and receiving the remote virtual machine, calling a system function according to the shared directory parameters, and accessing the USB storage equipment under the terminal shared directory. The technical scheme of the invention can support the USB storage device of the access terminal under the VPN network environment, and simultaneously provides higher mapping access speed and data transmission speed.

Description

Method, device and storage medium for accessing USB storage device under cloud desktop
Technical Field
The invention relates to the technical field of cloud desktop management, in particular to a method, equipment and a storage medium for accessing a USB storage device under a cloud desktop.
Background
Cloud computing is a computing mode for realizing access to a shared resource pool (such as computing facilities, storage equipment, application programs and the like) conveniently and anytime and anywhere by using the internet, the development of the fields of cloud desktops, cloud terminals and the like is promoted, the construction and maintenance cost of users, particularly large enterprises and public institutions, is greatly reduced by the cloud desktop and a cloud terminal system, and data is safer.
In the process that a user uses a cloud desktop on a terminal, the situation that a USB storage device is inserted into the terminal and needs to be accessed through the cloud desktop is avoided, the existing mode of accessing the USB storage device on the cloud desktop is mainly realized by adopting a USB redirection mode, but the USB storage device is accessed through the USB redirection mode, the speed is very low, the user experience is easily influenced, and meanwhile, a common network mapping mode does not support a cross-network-segment VPN network environment.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a method, equipment and a storage medium for accessing a USB storage device under a cloud desktop, and aims to solve the technical problems that the existing cloud desktop accesses the USB storage device in a USB redirection mode, the speed is too low, and a common network mapping mode does not support a cross-network-segment VPN network environment.
In order to achieve the above object, an embodiment of the present invention provides a method for accessing a USB storage device under a cloud desktop, where the method includes the following steps: actively loading an inserted USB storage device, mounting the USB storage device under a terminal shared directory, and simultaneously acquiring and sending a shared directory parameter of the USB storage device to a remote virtual machine; and receiving the remote virtual machine to call a system function according to the shared directory parameters to access the USB storage equipment in the terminal shared directory.
In order to achieve the above object, an embodiment of the present invention provides a method for accessing a USB storage device under a cloud desktop, where the method includes the following steps: after the receiving terminal mounts the inserted USB storage device to the terminal shared directory, acquiring and sending the shared directory parameters of the USB storage device; and calling a system function according to the shared directory parameters to access the USB storage equipment under the terminal shared directory.
In order to achieve the above object, an embodiment of the present invention further provides a device for accessing a USB storage device under a cloud desktop, where the device includes a memory, a processor, a program stored on the memory and operable on the processor, and a data bus for implementing connection communication between the processor and the memory, and the program implements the steps of the foregoing method when executed by the processor.
To achieve the above object, the present invention provides a storage medium for a computer-readable storage, the storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the aforementioned method.
According to the method, the device and the storage medium for accessing the USB storage device under the cloud desktop, the inserted USB storage device is actively loaded on the terminal side, the USB storage device is mounted under the terminal sharing directory, and meanwhile the sharing directory parameters of the USB storage device are obtained and sent to the remote virtual machine. Therefore, the USB storage device under the terminal shared directory can be accessed by calling a system function according to the shared directory parameters through the remote virtual machine, and the process of quickly accessing the terminal storage device by the cloud desktop (namely the remote virtual machine) is started. Compared with the existing USB redirection mode, the method can improve the identification speed and the data transmission speed of the USB storage device to a greater extent. Compared with the local network mapping mode which only can support local area network access and must use a 445 port (the 445 port is forbidden in many systems), the method can support a cross-network-segment vpn access mode and does not need to use the 445 port. Therefore, the technical scheme can support the USB storage device of the access terminal under the VPN network environment, and simultaneously provides higher mapping access speed and data transmission speed.
Drawings
Fig. 1 is a flowchart of a method for accessing a USB storage device under a cloud desktop according to an embodiment of the present invention.
Fig. 2 is an interaction diagram of access to a USB storage device under a cloud desktop according to an embodiment of the present invention.
Fig. 3 is a specific flowchart of step S110 of the method for accessing the USB storage device under the cloud desktop shown in fig. 1.
Fig. 4 is a specific flowchart of step S120 of the method for accessing the USB storage device under the cloud desktop shown in fig. 1.
Fig. 5 is a flowchart of a method for accessing a USB storage device under a cloud desktop according to a second embodiment of the present invention.
Fig. 6 is a specific flowchart of step S110 of the method for accessing the USB storage device under the cloud desktop shown in fig. 5.
Fig. 7 is a specific flowchart of step S120 of the method for accessing the USB storage device under the cloud desktop shown in fig. 5.
Fig. 8 is a block diagram of a device accessed by a USB storage device under a cloud desktop according to a third embodiment of the present invention.
Fig. 9 is a block diagram of a device accessed by a USB storage device under a cloud desktop according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "part", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no peculiar meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The first embodiment.
As shown in fig. 1, an embodiment of the present invention provides a method for accessing a USB storage device under a cloud desktop, where the method is mainly based on a terminal side, and includes the following steps:
step S110: and actively loading the inserted USB storage equipment, mounting the USB storage equipment under a terminal shared directory, and simultaneously acquiring and sending the shared directory parameters of the USB storage equipment to the remote virtual machine.
Specifically, as shown in fig. 2, a natdistkredirect (Nat) program is added on the local terminal side, and when the program runs, the following operations may be performed: first, a shared services subroutine S is initiated for remote directory access. And secondly, actively mounting the mount into the USB storage device of the terminal, and simultaneously acquiring the mount directory name of the device (as a remote shared directory path), the accessed user name and password information and the IP address information of the terminal, and storing the information into a Nat program cache. And thirdly, after the USB storage device is detected to be inserted, an agent service client terminal program TC and two monitoring threads (including a link connection monitoring thread and a data transmission monitoring thread) are created. And fourthly, sending the shared directory information stored in the cache, the user name, the password and other information to the remote virtual machine through the TC.
Wherein, for the agent service client terminal program TC, when it runs, the following operations can be executed: firstly, two TCP connection links are created, one is communicated with a local terminal side sharing service subprogram S, and the other is communicated with a proxy service subprogram PS in the remote virtual machine. Two forwarding threads are created, and are respectively responsible for data forwarding in one direction at the same time, for example, the content received from the socket building the link with the PS is sent out through the socket building the link with the S. Similarly, the content received from S is sent out through the socket which establishes a link with PS, and data conversion is completed.
For two monitoring threads, the link connection monitoring thread is used for detecting the connection status and state of the two TCP connection links, and is responsible for reconnection and connection closing when the link has an error and for closing the link connection when data transmission is finished. The data transmission monitoring thread is used for detecting whether errors occur in sending and receiving in the data transmission process, is responsible for closing transmission when the transmission errors occur, and informs a Nat program to reestablish link retransmission and statistics of the size of transmission data and average data when the transmission is successful.
As shown in fig. 3, when this step is executed, the specific process includes:
step S111: and acquiring a global type code of the inserting equipment, if the inserting equipment is a USB storage equipment, mounting the inserting equipment to a terminal shared directory, and acquiring shared directory parameters of the inserting equipment and storing the shared directory parameters into a cache.
Step S112: and carrying out socket communication with the remote virtual machine, and sending the shared directory parameters of the inserting equipment stored in the cache to the remote virtual machine through the socket communication.
Specifically, the shared directory parameter includes a remote shared directory path of the device, accessed user name and password information, and IP address information of the terminal. And the local terminal side detects the inserted equipment and acquires the equipment type global title, if the equipment belongs to the USB storage equipment, the terminal Nat program stores the USB storage equipment mount to an X directory of a terminal file system, stores the X directory, an access user name, a password and an IP address into a Nat program cache and sends the X directory, the access user name, the password and the IP address to the virtual machine through the TC.
Step S120: and receiving the remote virtual machine to call a system function according to the shared directory parameter to access the USB storage device in the terminal shared directory.
Specifically, as shown in fig. 2, a disk access program V is deployed in the remote virtual machine, and when it runs, the following operations may be performed: firstly, when the disk access program V is started, a proxy service subprogram PS is created for forwarding data between the disk access program V and the shared service subprogram S. And secondly, a network card filtering subprogram F is created and is used for filtering the data packet related to the disk access. And thirdly, a thread is created to establish a TCP connection with a specific port of the PS. And fourthly, calling a system function according to the shared directory information, the user name, the password, the terminal IP and other parameters received from the terminal to access the shared directory of the terminal.
For the agent service subprogram PS, when it runs, the following operations may be performed: first, the connection of two ports, which are respectively the port a connected with the terminal side TC and the port B connected with the remote virtual machine side V, is monitored. Two forwarding threads are created, and are respectively responsible for data forwarding in one direction at the same time, for example, contents received from a socket connected with the TC are sent out through a socket connected with the V. Similarly, the content received from V is sent out through the socket connected with TC to complete data conversion.
For the network card filtering subroutine F, when it runs, the following operations may be performed: network packets of a particular type are filtered to pass only packets associated with the shared directory of the access terminal.
Therefore, as shown in fig. 4, the process of the remote virtual machine calling the system function according to the shared directory parameter to access the USB storage device under the terminal shared directory specifically includes:
step S121: and the remote virtual machine obtains the network packet containing the shared directory parameters through network packet filtering.
Step S122: the remote virtual machine accesses the USB storage device under the terminal shared directory by analyzing the shared directory parameters and calling system functions.
Specifically, the remote virtual machine acquires data sent by the terminal side through data interchange of the PS, and filters a specific type of network packet through the F, so that only a packet related to the shared directory of the access terminal passes through, that is, a network packet including parameters of the shared directory is acquired. Finally, the USB storage device of the terminal is accessed by calling the system function through the V, at the moment, the data transmission process starts, and the user experience is not different from that of using the USB storage device locally on the PC.
In this way, after the terminal is inserted into the USB storage device each time, the Nat program sends the updated shared directory name, the accessed user name, the password, and the terminal IP to the proxy service subprogram PS of the remote virtual machine through the proxy service client subprogram TC, and then the updated shared directory name, the accessed user name, the password, and the terminal IP are forwarded by the PS to the disk access program V of the remote virtual machine. Therefore, the V can call a system function to access the shared directory corresponding to the USB storage device of the terminal, and therefore a process that the cloud desktop (namely the remote virtual machine) quickly accesses the storage device of the terminal is started. At this time, the cloud desktop issues a setting policy according to the server, and can perform access control, such as read-write, read-only, and the like, on the USB storage device. If the access authority of the USB storage device on the local terminal side needs to be changed, the server1 where the remote virtual machine is located sends a command to the Nat program on the local terminal side, and the Nat program changes the configuration file of the sharing service subprogram S by calling the command and restarts the S program.
Example two
As shown in fig. 5, a second embodiment of the present invention provides a method for accessing a USB storage device under a cloud desktop, which is based on a remote virtual machine side and includes the following steps:
step S210: and after the receiving terminal mounts the inserted USB storage equipment to the terminal shared directory, acquiring and sending the shared directory parameters of the USB storage equipment.
Specifically, as shown in fig. 2, a natdistkredirect (Nat) program is added on the local terminal side, and when the program runs, the following operations may be performed: first, a shared services subroutine S is initiated for remote directory access. And secondly, actively mounting the mount into the USB storage device of the terminal, and simultaneously acquiring the mount directory name of the device (as a remote shared directory path), the accessed user name and password information and the IP address information of the terminal, and storing the information into a Nat program cache. And thirdly, after the USB storage device is detected to be inserted, an agent service client terminal program TC and two monitoring threads (including a link connection monitoring thread and a data transmission monitoring thread) are created. And fourthly, sending the shared directory information stored in the cache, the user name, the password and other information to the remote virtual machine through the TC.
Wherein, for the agent service client terminal program TC, when it runs, the following operations can be executed: firstly, two TCP connection links are created, one is communicated with a local terminal side sharing service subprogram S, and the other is communicated with a proxy service subprogram PS in the remote virtual machine. Two forwarding threads are created, and are respectively responsible for data forwarding in one direction at the same time, for example, the content received from the socket building the link with the PS is sent out through the socket building the link with the S. Similarly, the content received from S is sent out through the socket which establishes a link with PS, and data conversion is completed.
For two monitoring threads, the link connection monitoring thread is used for detecting the connection status and state of the two TCP connection links, and is responsible for reconnection and connection closing when the link has an error and for closing the link connection when data transmission is finished. The data transmission monitoring thread is used for detecting whether errors occur in sending and receiving in the data transmission process, is responsible for closing transmission when the transmission errors occur, and informs a Nat program to reestablish link retransmission and statistics of the size of transmission data and average data when the transmission is successful.
As shown in fig. 6, after the terminal mounts the inserted USB storage device to the terminal shared directory, the process of acquiring and sending the shared directory parameter of the USB storage device specifically includes:
step S211: the terminal obtains the global type code of the inserting device, if the inserting device is a USB storage device, the inserting device is mounted under the terminal sharing directory, and meanwhile the sharing directory parameter of the inserting device is obtained and stored in the cache.
Step S212: and the terminal and the remote virtual machine carry out socket communication, and the shared directory parameters of the inserting equipment stored in the cache are sent to the remote virtual machine through the socket communication.
Specifically, the shared directory parameter includes a remote shared directory path of the device, accessed user name and password information, and IP address information of the terminal. And the local terminal side detects the inserted equipment and acquires the equipment type global title, if the equipment belongs to the USB storage equipment, the terminal Nat program stores the USB storage equipment mount to an X directory of a terminal file system, stores the X directory, an access user name, a password and an IP address into a Nat program cache and sends the X directory, the access user name, the password and the IP address to the virtual machine through the TC.
Step S220: and calling a system function according to the shared directory parameter to access the USB storage device under the terminal shared directory.
Specifically, as shown in fig. 2, a disk access program V is deployed in the remote virtual machine, and when it runs, the following operations may be performed: firstly, when the disk access program V is started, a proxy service subprogram PS is created for forwarding data between the disk access program V and the shared service subprogram S. And secondly, a network card filtering subprogram F is created and is used for filtering the data packet related to the disk access. And thirdly, a thread is created to establish a TCP connection with a specific port of the PS. And fourthly, calling a system function according to the shared directory information, the user name, the password, the terminal IP and other parameters received from the terminal to access the shared directory of the terminal.
For the agent service subprogram PS, when it runs, the following operations may be performed: first, the connection of two ports, which are respectively the port a connected with the terminal side TC and the port B connected with the remote virtual machine side V, is monitored. Two forwarding threads are created, and are respectively responsible for data forwarding in one direction at the same time, for example, contents received from a socket connected with the TC are sent out through a socket connected with the V. Similarly, the content received from V is sent out through the socket connected with TC to complete data conversion.
For the network card filtering subroutine F, when it runs, the following operations may be performed: network packets of a particular type are filtered to pass only packets associated with the shared directory of the access terminal.
As shown in fig. 7, the execution process of this step specifically includes:
step S221: and obtaining the network packet containing the shared directory parameter through network packet filtering.
Step S222: and analyzing the shared directory parameters, and calling a system function to access the USB storage equipment under the terminal shared directory.
Specifically, the remote virtual machine acquires data sent by the terminal side through data interchange of the PS, and filters a specific type of network packet through the F, so that only a packet related to the shared directory of the access terminal passes through, that is, a network packet including parameters of the shared directory is acquired. Finally, the USB storage device of the terminal is accessed by calling the system function through the V, at the moment, the data transmission process starts, and the user experience is not different from that of using the USB storage device locally on the PC.
In this way, after the terminal is inserted into the USB storage device each time, the Nat program sends the updated shared directory name, the accessed user name, the password, and the terminal IP to the proxy service subprogram PS of the remote virtual machine through the proxy service client subprogram TC, and then the updated shared directory name, the accessed user name, the password, and the terminal IP are forwarded by the PS to the disk access program V of the remote virtual machine. Therefore, the V can call a system function to access the shared directory corresponding to the USB storage device of the terminal, and therefore a process that the cloud desktop (namely the remote virtual machine) quickly accesses the storage device of the terminal is started. At this time, the cloud desktop issues a setting policy according to the server, and can perform access control, such as read-write, read-only, and the like, on the USB storage device. If the access authority of the USB storage device on the local terminal side needs to be changed, the server1 where the remote virtual machine is located sends a command to the Nat program on the local terminal side, and the Nat program changes the configuration file of the sharing service subprogram S by calling the command and restarts the S program.
EXAMPLE III
As shown in fig. 8, a third embodiment of the present invention provides an apparatus 20 for accessing a USB storage device under a cloud desktop, where the apparatus 20 includes a memory 21, a processor 22, a program stored in the memory and executable on the processor, and a data bus 23 for implementing connection communication between the processor 21 and the memory 22, and when the program is executed by the processor 21, the steps of the method for accessing a USB storage device under a cloud desktop in the first embodiment of the present invention are implemented.
It should be noted that, the embodiment of the device 20 and the embodiment of the method for accessing the USB storage device under the cloud desktop in the embodiment of the present invention belong to the same concept, and specific implementation processes thereof are described in detail in the first method embodiment, and technical features in the first method embodiment are correspondingly applicable to the embodiment of the device 20 for accessing the USB storage device under the cloud desktop, which is not described herein again.
Example four
As shown in fig. 9, a device 30 for accessing a USB storage device under a cloud desktop according to a fourth embodiment of the present invention is provided, where the device 30 includes a memory 31, a processor 32, a program stored in the memory and running on the processor, and a data bus 33 for implementing connection communication between the processor 31 and the memory 32, and when the program is executed by the processor 31, the steps of the method for accessing a USB storage device under a cloud desktop according to the second embodiment are implemented.
It should be noted that the embodiment of the device 30 and the embodiment of the method for accessing the USB storage device under the cloud desktop belong to the same concept, and specific implementation processes thereof are described in detail in method embodiment two, and technical features in method embodiment two are correspondingly applicable to the embodiment of the device 30 for accessing the USB storage device under the cloud desktop, and are not described herein again.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs may be executed by one or more processors to implement the specific steps of the method for accessing a USB storage device under a cloud desktop in the first embodiment.
It should be noted that the above computer-readable storage medium and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the first method embodiment, and technical features in the first method embodiment are correspondingly applicable to the computer-readable storage medium embodiment, which is not described herein again.
EXAMPLE six
An embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs may be executed by one or more processors to implement the specific steps of the method for accessing a USB storage device under a cloud desktop in the second embodiment.
It should be noted that the above computer-readable storage medium and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in method embodiment two, and technical features in method embodiment two are correspondingly applicable in the computer-readable storage medium embodiment, which is not described herein again.
According to the method, the device and the storage medium for accessing the USB storage device under the cloud desktop, the inserted USB storage device is actively loaded on the terminal side, the USB storage device is mounted under the terminal sharing directory, and meanwhile the sharing directory parameters of the USB storage device are obtained and sent to the remote virtual machine. Therefore, the USB storage device under the terminal shared directory can be accessed by calling a system function according to the shared directory parameters through the remote virtual machine, and the process of quickly accessing the terminal storage device by the cloud desktop (namely the remote virtual machine) is started. Compared with the existing USB redirection mode, the method can improve the identification speed and the data transmission speed of the USB storage device to a greater extent. Compared with the local network mapping mode which only can support local area network access and must use a 445 port (the 445 port is forbidden in many systems), the method can support a cross-network-segment vpn access mode and does not need to use the 445 port. Therefore, the technical scheme can support the USB storage device of the access terminal under the VPN network environment, and simultaneously provides higher mapping access speed and data transmission speed.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Any modifications, equivalents and improvements which may occur to those skilled in the art without departing from the scope and spirit of the present invention are intended to be within the scope of the claims.

Claims (10)

1. A method for accessing a USB storage device under a cloud desktop is characterized by comprising the following steps:
actively loading an inserted USB storage device, mounting the USB storage device under a terminal shared directory, and simultaneously acquiring and sending a shared directory parameter of the USB storage device to a remote virtual machine;
and receiving the remote virtual machine to call a system function according to the shared directory parameters to access the USB storage equipment in the terminal shared directory.
2. The method for accessing the USB storage device under the cloud desktop according to claim 1, wherein the step of actively loading the inserted USB storage device, mounting the USB storage device under a terminal shared directory, and simultaneously acquiring and sending the shared directory parameter of the USB storage device to the remote virtual machine specifically includes:
acquiring a global type code of an inserting device, if the inserting device is a USB storage device, mounting the inserting device under a terminal shared directory, and acquiring shared directory parameters of the inserting device and storing the shared directory parameters into a cache;
and carrying out socket communication with the remote virtual machine, and sending the shared directory parameters of the insertion equipment stored in the cache to the remote virtual machine through the socket communication.
3. The method for accessing the USB storage device under the cloud desktop according to claim 1 or 2, wherein the shared directory parameters include a remote shared directory path of the device, accessed user name and password information, and IP address information of the terminal.
4. The method according to claim 1, wherein the process of the remote virtual machine calling a system function according to the shared directory parameter to access the USB storage device in the terminal shared directory specifically includes:
the remote virtual machine obtains a network packet containing the shared directory parameters through network packet filtering;
and the remote virtual machine accesses the USB storage equipment under the terminal shared directory by analyzing the shared directory parameters and calling a system function.
5. A method for accessing a USB storage device under a cloud desktop is characterized by comprising the following steps:
after the receiving terminal mounts the inserted USB storage device to the terminal shared directory, acquiring and sending the shared directory parameters of the USB storage device;
and calling a system function according to the shared directory parameters to access the USB storage equipment under the terminal shared directory.
6. The method for accessing the USB storage device under the cloud desktop according to claim 5, wherein the process of acquiring and sending the shared directory parameters of the USB storage device after the terminal mounts the inserted USB storage device to the terminal shared directory specifically comprises:
the terminal acquires a global type code of the insertion equipment, if the insertion equipment is a USB storage equipment, the insertion equipment is mounted under a terminal shared directory, and meanwhile, shared directory parameters of the insertion equipment are acquired and stored in a cache;
the terminal and the remote virtual machine carry out socket communication, and the shared directory parameters of the insertion equipment stored in the cache are sent to the remote virtual machine through the socket communication.
7. The method for accessing the USB storage device under the cloud desktop according to claim 5 or 6, wherein the shared directory parameters include a remote shared directory path of the device, accessed user name and password information, and IP address information of the terminal.
8. The method according to claim 5, wherein the step of calling a system function according to the shared directory parameter to access the USB storage device in the terminal shared directory specifically comprises:
obtaining a network packet containing the shared directory parameters through network packet filtering;
and analyzing the shared directory parameters, and calling a system function to access the USB storage equipment under the terminal shared directory.
9. An apparatus for accessing a USB storage device under a cloud desktop, the apparatus comprising a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for implementing connection communication between the processor and the memory, wherein the program when executed by the processor implements the steps of the method for accessing a USB storage device under a cloud desktop according to any one of claims 1 to 4, or implements the steps of the method for accessing a USB storage device under a cloud desktop according to any one of claims 5 to 8.
10. A storage medium for computer readable storage, the storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the method for USB storage device access under a cloud desktop as claimed in any one of claims 1 to 4 or to perform the steps of the method for USB storage device access under a cloud desktop as claimed in any one of claims 5 to 8.
CN201811198601.2A 2018-10-15 2018-10-15 Method, device and storage medium for accessing USB storage device under cloud desktop Active CN111045834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811198601.2A CN111045834B (en) 2018-10-15 2018-10-15 Method, device and storage medium for accessing USB storage device under cloud desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811198601.2A CN111045834B (en) 2018-10-15 2018-10-15 Method, device and storage medium for accessing USB storage device under cloud desktop

Publications (2)

Publication Number Publication Date
CN111045834A true CN111045834A (en) 2020-04-21
CN111045834B CN111045834B (en) 2023-08-08

Family

ID=70230593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811198601.2A Active CN111045834B (en) 2018-10-15 2018-10-15 Method, device and storage medium for accessing USB storage device under cloud desktop

Country Status (1)

Country Link
CN (1) CN111045834B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111939562A (en) * 2020-07-15 2020-11-17 着迷科技(深圳)有限公司 Shared storage method, electronic device and computer readable storage medium
CN112558877A (en) * 2020-12-16 2021-03-26 福建极存数据科技有限公司 Desktop-level super-high-speed shared storage system
CN113242322A (en) * 2021-07-12 2021-08-10 广东睿江云计算股份有限公司 Mapping method and system of mobile storage device
CN115348308A (en) * 2022-08-15 2022-11-15 西安万像电子科技有限公司 Method and device for sharing USB storage device files in multi-session scene
WO2023010918A1 (en) * 2021-08-02 2023-02-09 中兴通讯股份有限公司 Information processing method, terminal device, cloud server, and storage medium
WO2024001642A1 (en) * 2022-06-28 2024-01-04 中兴通讯股份有限公司 Management and control method for usb device, cloud device, terminal device, and storage medium
CN117478719A (en) * 2023-10-30 2024-01-30 上海贝锐信息科技股份有限公司 DWC 3-based universal USB device remote mapping method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130332575A1 (en) * 2012-06-11 2013-12-12 Zerodesktop, Inc. Efficient data transfer for cloud storage by centralized management of access tokens
CN104954451A (en) * 2015-06-02 2015-09-30 华中科技大学 Access control method of USB (universal serial bus) device in virtualized environment
CN105589657A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Method and device for realizing mounting of mobile storage
CN108205504A (en) * 2016-12-16 2018-06-26 广州杰赛科技股份有限公司 Terminal USB mapping methods, virtual machine USB mapping methods and system
CN108205623A (en) * 2016-12-16 2018-06-26 杭州华为数字技术有限公司 For the method and apparatus of share directory
CN108390927A (en) * 2018-02-09 2018-08-10 山东乾云启创信息科技股份有限公司 A kind of method and device of the transmitted in both directions file between client computer and virtual machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130332575A1 (en) * 2012-06-11 2013-12-12 Zerodesktop, Inc. Efficient data transfer for cloud storage by centralized management of access tokens
CN105589657A (en) * 2014-10-23 2016-05-18 中兴通讯股份有限公司 Method and device for realizing mounting of mobile storage
CN104954451A (en) * 2015-06-02 2015-09-30 华中科技大学 Access control method of USB (universal serial bus) device in virtualized environment
CN108205504A (en) * 2016-12-16 2018-06-26 广州杰赛科技股份有限公司 Terminal USB mapping methods, virtual machine USB mapping methods and system
CN108205623A (en) * 2016-12-16 2018-06-26 杭州华为数字技术有限公司 For the method and apparatus of share directory
CN108390927A (en) * 2018-02-09 2018-08-10 山东乾云启创信息科技股份有限公司 A kind of method and device of the transmitted in both directions file between client computer and virtual machine

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111939562A (en) * 2020-07-15 2020-11-17 着迷科技(深圳)有限公司 Shared storage method, electronic device and computer readable storage medium
CN111939562B (en) * 2020-07-15 2024-04-19 着迷科技(深圳)有限公司 Shared storage method, electronic device, and computer-readable storage medium
CN112558877A (en) * 2020-12-16 2021-03-26 福建极存数据科技有限公司 Desktop-level super-high-speed shared storage system
CN113242322A (en) * 2021-07-12 2021-08-10 广东睿江云计算股份有限公司 Mapping method and system of mobile storage device
CN113242322B (en) * 2021-07-12 2021-10-08 广东睿江云计算股份有限公司 Mapping method and system of mobile storage device
WO2023010918A1 (en) * 2021-08-02 2023-02-09 中兴通讯股份有限公司 Information processing method, terminal device, cloud server, and storage medium
WO2024001642A1 (en) * 2022-06-28 2024-01-04 中兴通讯股份有限公司 Management and control method for usb device, cloud device, terminal device, and storage medium
CN115348308A (en) * 2022-08-15 2022-11-15 西安万像电子科技有限公司 Method and device for sharing USB storage device files in multi-session scene
CN115348308B (en) * 2022-08-15 2024-01-23 西安万像电子科技有限公司 Sharing method and device for USB storage device files under multi-session scene
CN117478719A (en) * 2023-10-30 2024-01-30 上海贝锐信息科技股份有限公司 DWC 3-based universal USB device remote mapping method and system
CN117478719B (en) * 2023-10-30 2024-04-19 上海贝锐信息科技股份有限公司 DWC 3-based universal USB device remote mapping method and system

Also Published As

Publication number Publication date
CN111045834B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN111045834B (en) Method, device and storage medium for accessing USB storage device under cloud desktop
WO2019100605A1 (en) Platform-as-a-service paas container platform construction method, server, system, and storage medium
CN108965203B (en) Resource access method and server
CN111225020B (en) User mode network file system dual-stack access method, device and equipment
US20070124435A1 (en) Database server discovery using a configuration file
CN111010340B (en) Data message forwarding control method and device and computing device
CN112398847B (en) Intranet penetration method and system based on TCP Socket and improved heartbeat mechanism
CN111277481B (en) Method, device, equipment and storage medium for establishing VPN tunnel
US20230161541A1 (en) Screen projection method and system
US10499311B2 (en) Method and apparatus for implementing network sharing
US20180248940A1 (en) Distributed data management
CN114124929A (en) Cross-network data processing method and device
CN112187903B (en) Message pushing method and device and message service system
CN113220484A (en) Micro-service calling method and device, electronic equipment and storage medium
CN112769876B (en) Method, device, equipment and medium for acquiring equipment channel information
CN113873057B (en) Data processing method and device
US20120144036A1 (en) Network location based processing of data communication connection requests
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
CN105933298B (en) Apparatus and method for performing transmission control protocol handshaking
CN107483637B (en) NFS-based client link management method and device
US7350065B2 (en) Method, apparatus and program storage device for providing a remote power reset at a remote server through a network connection
CN113873041B (en) Message transmission method, device, network equipment and computer readable storage medium
US20230216918A1 (en) Method and apparatus for sharing operating system, and system and computer-readable storage medium
Cisco IPM Error Messages
CN114390095A (en) Remote equipment control method and Internet of things equipment management platform and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant