CN110795156B - Mobile memory loading method, thin client, storage medium and device - Google Patents

Mobile memory loading method, thin client, storage medium and device Download PDF

Info

Publication number
CN110795156B
CN110795156B CN201911022228.XA CN201911022228A CN110795156B CN 110795156 B CN110795156 B CN 110795156B CN 201911022228 A CN201911022228 A CN 201911022228A CN 110795156 B CN110795156 B CN 110795156B
Authority
CN
China
Prior art keywords
disk
redirection
mobile memory
disk redirection
information
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.)
Active
Application number
CN201911022228.XA
Other languages
Chinese (zh)
Other versions
CN110795156A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201911022228.XA priority Critical patent/CN110795156B/en
Publication of CN110795156A publication Critical patent/CN110795156A/en
Application granted granted Critical
Publication of CN110795156B publication Critical patent/CN110795156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of desktop clouds, and discloses a mobile memory loading method, a thin client, a storage medium and a device. The method comprises the steps of obtaining an insertion event and equipment information of a mobile memory; generating a disk redirection request according to the insertion event; generating a disk redirection instruction according to the disk redirection request and the equipment information; and sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine, and loading the mobile memory through disk redirection, so that the purpose of improving the transmission speed of the mobile memory is achieved.

Description

Mobile memory loading method, thin client, storage medium and device
Technical Field
The invention relates to the technical field of desktop clouds, in particular to a mobile memory loading method, a thin client, a storage medium and a device.
Background
Thin clients refer to a computing dumb terminal in a client-server network architecture that does not substantially require an application. It communicates with the server via protocols and then accesses the local area network. The thin client transmits the inputs of the mouse, the keyboard and the like to the server for processing, and the server transmits the processing result back to the thin client for display. Different thin clients can log on to the server at the same time, simulate a mutually independent working environment on the server, access cross-platform application programs through the desktop cloud thin clients or any other network-connected devices, and the whole client desktop.
At present, the scheme of USB flash disk transmission in the desktop cloud thin client environment in the industry is mainly a scheme of redirection through a universal serial bus (Universal Serial Bus, USB), but the transmission speed of the traditional USB redirection scheme is slower, so that the requirements of users cannot be met.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a mobile memory loading method, a thin client, a storage medium and a device, and aims to solve the technical problem of how to improve the transmission speed of a mobile memory.
In order to achieve the above object, the present invention provides a mobile memory loading method, which includes the following steps:
acquiring an insertion event and equipment information of a mobile memory;
generating a disk redirection request according to the insertion event;
generating a disk redirection instruction according to the disk redirection request and the equipment information;
and sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine.
Preferably, the acquiring the insertion event and the device information of the mobile memory includes:
and calling a monitoring program, and acquiring the insertion event and the equipment information of the mobile memory through the monitoring program.
Preferably, the generating a disk redirection instruction according to the disk redirection request and the device information includes:
the disk redirection request and the equipment information are sent to the disk redirection server, the disk redirection request and the equipment information are packaged through the disk redirection server, packaged disk redirection information is obtained, and the packaged disk redirection information is fed back;
and taking the received encapsulated disk redirection information as the disk redirection instruction.
Preferably, the sending the disk redirection instruction to a preset virtual machine includes:
and calling a network transmission program, and sending the disk redirection instruction to a preset virtual machine through a network.
Preferably, after the sending the disk redirection instruction to a preset virtual machine, the mobile memory loading method further includes:
acquiring a file operation instruction sent by a preset virtual machine through the network transmission program;
forwarding the file operation instruction to a disk redirection client, analyzing the file operation instruction through the disk redirection client to obtain analyzed file operation information, and feeding back the file operation information;
and operating the local file corresponding to the network disk according to the file operation information fed back by the disk redirection client.
Preferably, after the operation is performed on the local file corresponding to the network disk according to the file operation information fed back by the disk redirection client, the mobile memory loading method further includes:
determining the file operation type of the file operation information fed back by the disk redirection client;
and selecting a corresponding synchronization control according to the file operation type, and synchronizing the local file through the synchronization control.
Preferably, before determining the file operation type of the file operation information fed back by the disk redirection client, the mobile memory loading method further includes:
detecting operation result information;
and executing the step of determining the file operation type of the file operation information fed back by the disk redirection client according to the operation result information.
In addition, in order to achieve the above object, the present invention also proposes a thin client, including: a memory, a processor and a mobile memory loader stored on the memory and executable on the processor, the mobile memory loader implementing the steps of the mobile memory loading method as described above when executed by the processor.
In addition, to achieve the above object, the present invention also proposes a storage medium having stored thereon a mobile memory loading program which, when executed by a processor, implements the steps of the mobile memory loading method as described above.
In addition, to achieve the above object, the present invention also proposes a mobile memory loading device, including:
the acquisition module is used for acquiring the insertion event and the equipment information of the mobile memory;
the generation module is used for generating a disk redirection request according to the insertion event;
the generation module is further used for generating a disk redirection instruction according to the disk redirection request and the equipment information;
the loading module is used for sending the disk redirection instruction to a preset virtual machine, and the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine.
According to the technical scheme provided by the invention, the insertion event and the equipment information of the mobile memory are obtained; generating a disk redirection request according to the insertion event; generating a disk redirection instruction according to the disk redirection request and the equipment information; and sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine. The invention realizes the loading of the mobile memory through the disk redirection, thereby improving the transmission speed of the mobile memory.
Drawings
FIG. 1 is a schematic diagram of a gateway device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a mobile memory loading method according to a first embodiment of the present invention;
FIG. 3 is a flow chart illustrating a setup phase of an embodiment of a method for loading a mobile memory according to the present invention;
FIG. 4 is a flowchart of a mobile memory loading method according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a third embodiment of a method for loading a mobile memory according to the present invention;
FIG. 6 is a flow chart illustrating a use phase of an embodiment of a method for loading a mobile memory according to the present invention;
FIG. 7 is a block diagram of a mobile memory loading device according to a first embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a thin client structure of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the thin client may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), the optional user interface 1003 may also include a standard wired interface as well as a wireless interface, and the wired interface of the user interface 1003 may be a universal serial bus (Universal Serial Bus, USB) interface in the present invention. The network interface 1004 may optionally include a standard wired interface as well as a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high speed random access memory (Random Access Memory, RAM); the Memory may be a stable Memory, such as a Non-volatile Memory (Non-volatile Memory), and specifically, a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of a thin client and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a mobile memory loader may be included in the memory 1005, which is a type of computer storage medium.
In the thin client shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting peripherals; the thin client calls a mobile memory loader stored in the memory 1005 through the processor 1001, and executes the mobile memory loading method provided by the embodiment of the present invention.
Based on the above hardware structure, an embodiment of the mobile memory loading method of the present invention is presented.
Referring to fig. 2, fig. 2 is a flowchart of a mobile memory loading method according to a first embodiment of the invention.
In a first embodiment, the mobile memory loading method includes the steps of:
step S10: the insertion event and device information of the mobile memory are acquired.
It should be noted that, the execution body of the embodiment is a thin client, and may be other devices capable of implementing the same or similar functions, the embodiment is not limited to this, in the embodiment, the thin client is taken as an example for illustration, in the embodiment, the embodiment is mainly applied to the loading of a USB disk under a desktop cloud Linux thin client, and may also be a thin client of other systems, the embodiment is not limited to this, in the embodiment, the Linux thin client is taken as an example for illustration, linux is a set of Unix operating systems which are used and spread freely, and is a multi-user, multi-task, multi-thread and multi-central processing unit (central processing unit, CPU) supporting operation system based on a portable operating system interface (Portable Operating System Interface of Unix, POSIX) and Unix, and universal serial bus (Universal Serial Bus, USB) is an external bus standard for standardizing connection and communication between a computer and an external device.
It may be understood that the mobile memory may be a USB disk, that is, a USB disk, which is a micro high-capacity mobile storage product using a USB interface and without a physical driver, and is connected to a computer through the USB interface, so as to implement plug and play, or may be other devices capable of implementing the same or similar functions.
In this embodiment, the method mainly relates to an establishment stage and a use stage of the usb disk, where the establishment stage mainly completes a disk redirection function, solves a problem of slow transmission speed of the usb disk, and the use stage adopts a synchronous logic module, and mainly solves a problem of data loss and file operation failure caused by fast unplugging of the usb disk.
Step S20: and generating a disk redirection request according to the insertion event.
It should be noted that, the thin client includes a usb disk monitoring module, a usb disk management module, a disk redirection client and a Linux client software module, where the usb disk monitoring module sends an insertion event and basic device information to the usb disk management module, and the usb disk management module completes local usb disk mounting and maintenance of state according to the file system type of the usb disk, and sends a disk redirection request to the disk redirection client.
Step S30: and generating a disk redirection instruction according to the disk redirection request and the equipment information.
In this embodiment, the disk redirection client receives the request, encapsulates the information related to the usb disk and the disk redirection request into a disk redirection instruction, and sends the disk redirection instruction to the Linux client software module, where the disk redirection instruction refers to an interaction protocol between the disk redirection client and the disk redirection server, and the Linux client software module refers to a program running on the Linux thin client, and mainly completes data transmission and interaction with the virtual machine.
Step S40: and sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine.
In this embodiment, the preset virtual machine may be a virtual machine disposed at a remote end, the Linux client software module sends a disk redirection request instruction to the remote end virtual machine through network transmission, the virtual machine receives the disk redirection request and forwards the disk redirection request to the disk redirection server, where the disk redirection server completes instruction encapsulation and analysis of file operations, establishment and removal of disk redirection, and implementation of a network disk module conforming to a virtual machine framework, and registers the U disk to the virtual machine network disk management module through analysis instruction of the disk redirection server.
It can be understood that the virtual machine network disk management module refers to a network disk frame of the virtual machine, and the virtual machine network disk management module enables the virtual machine to complete loading of the network disk, and the U disk completes a disk redirection flow, so that redirection loading of the disk is realized, and the purpose of improving the transmission rate of the mobile memory is achieved.
As shown in the flow chart of the setup stage shown in fig. 3, when a usb disk is inserted, the insertion event and the insertion information of the usb disk are obtained through the usb disk monitoring module, maintenance and management of the usb disk are realized through the usb disk management module, the usb disk redirection request is sent to the disk redirection client through the usb disk management module, the disk redirection client receives the request, the related information of the usb disk and the disk redirection request are packaged into an instruction and sent to the Linux client software module, the Linux client software module sends the instruction to the virtual machine through a network, the virtual machine analyzes the instruction through the disk redirection server, and the network disk management module of the virtual machine realizes loading of the network disk according to the analysis result, thereby realizing the disk redirection loading.
According to the embodiment, through the scheme, the insertion event and the equipment information of the mobile memory are acquired; generating a disk redirection request according to the insertion event; generating a disk redirection instruction according to the disk redirection request and the equipment information; and sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine, and the traditional mobile memory is loaded by a USB redirection scheme, so that the transmission speed of the traditional USB redirection scheme is slower, but the transmission speed of the mobile memory loaded by the disk redirection is faster, thereby achieving the purpose of improving the transmission speed of the mobile memory.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of the method for loading a mobile memory according to the present invention, and the second embodiment of the method for loading a mobile memory according to the present invention is proposed based on the first embodiment shown in fig. 2.
In a second embodiment, the step S10 includes:
and calling a monitoring program, and acquiring the insertion event and the equipment information of the mobile memory through the monitoring program.
It should be noted that, the monitoring program may be a monitoring program set in a thin client, or may be a monitoring program set in another storage area, which is not limited in this embodiment, and when the monitoring program is set in another storage area, the monitoring program in another storage area is called to realize the monitoring of the event.
In a specific implementation, a program writing instruction is received, program information to be written and writing address information in the program writing instruction are extracted, the program information to be written is written into a preset storage area according to the writing address information, and tag information is generated in a preset encryption mode, so that the written program is convenient to manage, wherein the preset encryption mode can be Message-Digest Algorithm (MD 5)
When the monitoring program is arranged on the thin client, the monitoring module of the USB flash disk is arranged on the thin client, and the monitoring of the event is realized through the monitoring module of the USB flash disk.
Further, the step S30 includes:
step S301: and sending the disk redirection request and the equipment information to the disk redirection server, packaging the disk redirection request and the equipment information through the disk redirection server to obtain packaged disk redirection information, and feeding back the packaged disk redirection information.
The method comprises the steps that the disk redirection server side performs information interaction with the disk redirection client side, the disk redirection client side is located at a thin client side, the disk redirection server side is located at a far end, the disk redirection server side is used for completing instruction encapsulation and analysis of file operation, establishment and removal of disk redirection and network disk module realization conforming to a virtual machine framework, and a U disk is registered to a virtual machine network disk management module through the analysis instruction of the disk redirection server side.
Step S302: and taking the received encapsulated disk redirection information as the disk redirection instruction.
According to the embodiment, through the scheme, the information interaction is performed between the disk redirection server and the disk redirection client, so that encapsulation and analysis of redirection information are realized, and the safety of information transmission during redirection is ensured.
Referring to fig. 5, fig. 5 is a flow chart of a third embodiment of the mobile memory loading method according to the present invention, which is proposed based on the first embodiment or the second embodiment, in this embodiment, based on the first embodiment,
in a third embodiment, the step S40 includes:
step S401: and calling a network transmission program, and sending the disk redirection instruction to a preset virtual machine through a network.
It should be noted that, the network transmission program may be a Linux client software module, or may be another program capable of implementing the same or similar functions, which is not limited in this embodiment, and in this embodiment, a Linux client software module is taken as an example to describe the Linux client software module, and the Linux client software module sends the disk redirection instruction to a preset virtual machine through a network, so as to implement information interaction between the virtual machine and the thin client.
Further, after the step S401, the method further includes:
acquiring a file operation instruction sent by a preset virtual machine through the network transmission program; forwarding the file operation instruction to a disk redirection client, analyzing the file operation instruction through the disk redirection client to obtain analyzed file operation information, and feeding back the file operation information; and operating the local file corresponding to the network disk according to the file operation information fed back by the disk redirection client.
It should be noted that, the file operation instruction may include a write operation, a delete operation, an edit operation, a set attribute operation, and the like, and may further include other operation information, which is not limited in this embodiment.
In a specific implementation, when the file is in a use stage, as shown in a flow diagram of the use stage in fig. 6, a virtual machine operates a file of a network disk, wherein the network disk refers to a network mapping disk displayed in the virtual machine after the usb disk is redirected through a disk in the establishment stage, the disk redirecting server encapsulates the operation of the file in the network disk into a file operation instruction, the file operation instruction refers to a protocol between the disk redirecting server and a disk redirecting client, the virtual machine transmits the file operation instruction to a Linux thin client through network transmission, a Linux client software module forwards the instruction to the disk redirecting client after receiving the file operation instruction, the Linux client software module refers to a program running on the Linux thin client, mainly completes data transmission and interaction with the virtual machine, the disk redirecting client analyzes the file operation instruction through a predefined private protocol, and the disk redirecting client analyzes the actual file operation after analysis through a local file system to complete actual file operation.
Further, after the local file corresponding to the network disk is operated according to the file operation information fed back by the disk redirection client, the mobile memory loading method includes:
determining the file operation type of the file operation information fed back by the disk redirection client; and selecting a corresponding synchronization control according to the file operation type, and synchronizing the local file through the synchronization control.
It should be noted that, in the present disk redirection, there is a problem that the data is lost or the setting is invalid due to the fact that the U disk is pulled out by the standing horse after the file operation is completed, in this embodiment, the corresponding synchronization control is selected according to the file operation type, and the local file is synchronized by the synchronization control, where the file operation type may be a write operation, a delete operation, an edit operation, a set attribute operation, or other types, and this embodiment is not limited.
In order to improve the synchronization efficiency, when the file operation type is acquired, a corresponding synchronization control is selected according to the file operation type, the local file is synchronized through the synchronization control, for example, when the file operation type is write operation, only the written file is synchronized, and other files are not processed, so that the synchronization efficiency is greatly improved.
As shown in fig. 6, the synchronization operation is implemented through the synchronization logic module, after the operation is performed on the files in the local file system, whether the operation is successful is firstly judged, after the operation is successful, whether the operation of writing the U disk is performed is judged, when the operation of writing the U disk is performed, whether the files are deleted or whether the attributes of the files are set is judged, and corresponding different controls are selected to perform data synchronization according to the judgment result, so that the integrity of the data is realized.
In the specific implementation, after the file operation is finished, if the operation is successful, executing the judgment of whether the file operation is the operation of writing the U disk; otherwise, executing the operation of exiting the file. Judging whether the file operation is a U disk writing operation or not, and if so, executing data synchronization; otherwise, executing the operation of exiting the file. Judging whether the file operation is to delete the file, if so, executing data synchronization; otherwise, executing the operation of exiting the file. Judging whether the file operation is the set attribute, if so, executing data synchronization; otherwise, executing the operation of exiting the file. And selecting proper synchronous logic according to the file operation type, ensuring that data is immediately written into the U disk, and finishing the synchronous withdrawal of the data from the file operation.
Further, before determining the file operation type of the file operation information fed back by the disk redirection client, the mobile memory loading method further includes:
detecting operation result information; and executing the step of determining the file operation type of the file operation information fed back by the disk redirection client according to the operation result information.
It should be noted that, the operation result information may be operation success information or operation failure information, in order to identify the operation success information or the operation failure information, the preset identification information may be obtained, and the operation success information or the operation failure information may be identified by the preset identification information, for example, the identification is 1, and the identification is 0, which indicates that the operation is successful.
According to the scheme provided by the embodiment, the synchronous logic module is adopted, and corresponding different controls are selected according to the operation type to carry out data synchronization, so that the integrity of data is realized, and the problem that data is not synchronous in the redirection of a disk is solved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a mobile memory loading program, and the mobile memory loading program realizes the steps of the terminal network access method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
In addition, referring to fig. 7, an embodiment of the present invention further proposes a mobile memory loading device, where the mobile memory loading device includes:
an acquisition module 10, configured to acquire the insertion event and the device information of the mobile memory.
It should be noted that, in this embodiment, the method is mainly applied to loading a USB flash disk under a Linux thin client of a desktop cloud Lin Nake, and may also be a thin client of another system, which is not limited in this embodiment, the Linux thin client is taken as an example to describe, linux is a set of You Nisi Unix operating systems used and propagated freely, and is an operating system based on portable operating system interfaces (Portable Operating System Interface of Unix, POSIX) and Unix, which is multi-user, multi-tasking, and supports multiple threads and multiple central processors (central processing unit, CPU), and universal serial bus (Universal Serial Bus, USB) is an external bus standard, which is an interface technology for standardizing connection and communication between a computer and an external device.
It may be understood that the mobile memory may be a USB disk, that is, a USB disk, which is a micro high-capacity mobile storage product using a USB interface and without a physical driver, and is connected to a computer through the USB interface, so as to implement plug and play, or may be other devices capable of implementing the same or similar functions.
In this embodiment, the method mainly relates to an establishment stage and a use stage of the usb disk, where the establishment stage mainly completes a disk redirection function, solves a problem of slow transmission speed of the usb disk, and the use stage adopts a synchronous logic module, and mainly solves a problem of data loss and file operation failure caused by fast unplugging of the usb disk.
A generating module 20, configured to generate a disk redirection request according to the insertion event.
It should be noted that, the thin client includes a usb disk monitoring module, a usb disk management module, a disk redirection client and a Linux client software module, where the usb disk monitoring module sends an insertion event and basic device information to the usb disk management module, and the usb disk management module completes local usb disk mounting and maintenance of state according to the file system type of the usb disk, and sends a disk redirection request to the disk redirection client.
The generating module 20 is further configured to generate a disk redirection instruction according to the disk redirection request and the device information.
In this embodiment, the disk redirection client receives the request, encapsulates the information related to the usb disk and the disk redirection request into a disk redirection instruction, and sends the disk redirection instruction to the Linux client software module, where the disk redirection instruction refers to an interaction protocol between the disk redirection client and the disk redirection server, and the inux client software module refers to a program running on the Linux thin client, and mainly completes data transmission and interaction with the virtual machine.
The loading module 30 is configured to send the disk redirection instruction to a preset virtual machine, where the disk redirection instruction is used by the preset virtual machine to map the mobile memory to a network disk.
In this embodiment, the preset virtual machine may be a virtual machine disposed at a remote end, the Linux client software module sends a disk redirection request instruction to the remote end virtual machine through network transmission, the virtual machine receives the disk redirection request and forwards the disk redirection request to the disk redirection server, where the disk redirection server completes instruction encapsulation and analysis of file operations, establishment and removal of disk redirection, and implementation of a network disk module conforming to a virtual machine framework, and registers the U disk to the virtual machine network disk management module through analysis instruction of the disk redirection server.
It can be understood that the virtual machine network disk management module refers to a network disk frame of the virtual machine, and the virtual machine network disk management module enables the virtual machine to complete loading of the network disk, and the U disk completes a disk redirection flow, so that redirection loading of the disk is realized, and the purpose of improving the transmission rate of the mobile memory is achieved.
As shown in the flow chart of the setup stage shown in fig. 3, when a usb disk is inserted, the insertion event and the insertion information of the usb disk are obtained through the usb disk monitoring module, maintenance and management of the usb disk are realized through the usb disk management module, the usb disk redirection request is sent to the disk redirection client through the usb disk management module, the disk redirection client receives the request, the related information of the usb disk and the disk redirection request are packaged into an instruction and sent to the Linux client software module, the Linux client software module sends the instruction to the virtual machine through a network, the virtual machine analyzes the instruction through the disk redirection server, and the network disk management module of the virtual machine realizes loading of the network disk according to the analysis result, thereby realizing the disk redirection loading.
According to the embodiment, through the scheme, the insertion event and the equipment information of the mobile memory are acquired; generating a disk redirection request according to the insertion event; generating a disk redirection instruction according to the disk redirection request and the equipment information; and sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine, and the traditional loading mode of the mobile memory is a USB redirection scheme, but the traditional USB redirection scheme is slower in transmission speed, and the loading transmission speed of the mobile memory is faster by disk redirection, so that the purpose of improving the transmission speed of the mobile memory is achieved.
The mobile memory loading device of the present invention adopts all the technical solutions of all the above embodiments, so that the mobile memory loading device has at least all the beneficial effects brought by the technical solutions of the above embodiments, and will not be described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. do not denote any order, but rather the terms first, second, third, etc. are used to interpret the terms as names.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory, RAM, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A mobile memory loading method, applied to a thin client, comprising the steps of:
acquiring an insertion event and equipment information of a mobile memory;
generating a disk redirection request according to the insertion event;
generating a disk redirection instruction according to the disk redirection request and the equipment information;
the disk redirection instruction is sent to a preset virtual machine, and the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine;
the generating a disk redirection instruction according to the disk redirection request and the device information includes:
transmitting the disk redirection request and the equipment information to a disk redirection server;
receiving encapsulated disk redirection information from the disk redirection server, and taking the encapsulated disk redirection information as a disk redirection instruction, wherein the encapsulated disk redirection information is obtained by encapsulating the disk redirection request and the equipment information;
the generating a disk redirection request according to the insertion event includes:
determining the file system type of the mobile memory according to the insertion event and the equipment information;
generating a disk redirection request according to the file system type;
the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine, and comprises the following steps:
the disk redirection instruction is used for the preset virtual machine to analyze the disk redirection instruction through a disk redirection server, register the mobile memory to a virtual machine network disk management module according to an analysis result, and load the mobile memory into a network disk through the virtual machine network disk management module.
2. The mobile memory loading method of claim 1, wherein the acquiring the mobile memory insertion event and the device information comprises:
and calling a monitoring program, and acquiring the insertion event and the equipment information of the mobile memory through the monitoring program.
3. The mobile memory loading method according to any one of claims 1 or 2, wherein the sending the disk redirection instruction to a preset virtual machine includes:
and calling a network transmission program, and sending the disk redirection instruction to a preset virtual machine through a network.
4. The method for loading a mobile memory according to claim 3, wherein after said sending said disk redirection command to a preset virtual machine, said method for loading a mobile memory further comprises:
acquiring a file operation instruction sent by a preset virtual machine through the network transmission program;
forwarding the file operation instruction to a disk redirection client, analyzing the file operation instruction through the disk redirection client to obtain analyzed file operation information, and feeding back the file operation information;
and operating the local file corresponding to the network disk according to the file operation information fed back by the disk redirection client.
5. The method for loading a mobile memory according to claim 4, wherein after the local file corresponding to the network disk is operated according to the file operation information fed back by the disk redirection client, the method for loading a mobile memory further comprises:
determining the file operation type of the file operation information fed back by the disk redirection client;
and selecting a corresponding synchronization control according to the file operation type, and synchronizing the local file through the synchronization control.
6. The mobile memory loading method according to claim 5, wherein before determining the file operation type of the file operation information fed back by the disk redirection client, the mobile memory loading method further comprises:
detecting operation result information;
and executing the step of determining the file operation type of the file operation information fed back by the disk redirection client according to the operation result information.
7. A thin client, the thin client comprising: memory, a processor and a mobile memory loader stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the mobile memory loading method according to any of claims 1 to 6.
8. A storage medium having stored thereon a mobile memory loader program which, when executed by a processor, implements the steps of the mobile memory loading method according to any of claims 1 to 6.
9. A mobile memory loading device, the mobile memory loading device comprising:
the acquisition module is used for acquiring the insertion event and the equipment information of the mobile memory;
the generation module is used for generating a disk redirection request according to the insertion event, and particularly used for determining the file system type of the mobile memory according to the insertion event and the equipment information; generating a disk redirection request according to the file system type;
the generation module is further configured to generate a disk redirection instruction according to the disk redirection request and the device information, and specifically, send the disk redirection request and the device information to a disk redirection server; receiving encapsulated disk redirection information from the disk redirection server, and taking the encapsulated disk redirection information as a disk redirection instruction, wherein the encapsulated disk redirection information is obtained by encapsulating the disk redirection request and the equipment information;
the loading module is used for sending the disk redirection instruction to a preset virtual machine, wherein the disk redirection instruction is used for mapping the mobile memory into a network disk by the preset virtual machine, and particularly used for analyzing the disk redirection instruction by the preset virtual machine through a disk redirection server, registering the mobile memory to a virtual machine network disk management module according to an analysis result, and loading the mobile memory into the network disk by the virtual machine network disk management module.
CN201911022228.XA 2019-10-24 2019-10-24 Mobile memory loading method, thin client, storage medium and device Active CN110795156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911022228.XA CN110795156B (en) 2019-10-24 2019-10-24 Mobile memory loading method, thin client, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911022228.XA CN110795156B (en) 2019-10-24 2019-10-24 Mobile memory loading method, thin client, storage medium and device

Publications (2)

Publication Number Publication Date
CN110795156A CN110795156A (en) 2020-02-14
CN110795156B true CN110795156B (en) 2023-09-05

Family

ID=69441166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911022228.XA Active CN110795156B (en) 2019-10-24 2019-10-24 Mobile memory loading method, thin client, storage medium and device

Country Status (1)

Country Link
CN (1) CN110795156B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881466B (en) * 2020-08-06 2023-05-30 中电科网络安全科技股份有限公司 File output method and device, electronic equipment and storage medium
CN113312324A (en) * 2021-07-29 2021-08-27 深圳市永达电子信息股份有限公司 File operation synchronization method and equipment based on redirection and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN103679068A (en) * 2013-12-25 2014-03-26 北京云巢动脉科技有限公司 Method, device and system for safely handling USB flash disk
CN104539685A (en) * 2014-12-19 2015-04-22 华南理工大学 USB disk identifying system and method for OpenStack cloud desktop
CN105159749A (en) * 2015-09-11 2015-12-16 东莞市微云系统科技有限公司 Method and system for redirecting local disk to a virtual machine by cloud terminal
US9582444B1 (en) * 2015-12-01 2017-02-28 Dell Products L.P. Selective partition based redirection for multi-partitioned USB devices
CN107247618A (en) * 2017-05-13 2017-10-13 成都长天信息技术有限公司 A kind of disk reorientation method under the outside acquisition framework based on instruction

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990584B2 (en) * 2010-05-28 2015-03-24 Dell Products, Lp System and method for supporting task oriented devices in a client hosted virtualization system
US20130024856A1 (en) * 2011-07-19 2013-01-24 Nexenta Systems, Inc. Method and apparatus for flexible booting virtual storage appliances
US10148755B2 (en) * 2015-08-27 2018-12-04 Dell Products L.P. System and method to redirect USB mass storage devices in high latency VDI environments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN103679068A (en) * 2013-12-25 2014-03-26 北京云巢动脉科技有限公司 Method, device and system for safely handling USB flash disk
CN104539685A (en) * 2014-12-19 2015-04-22 华南理工大学 USB disk identifying system and method for OpenStack cloud desktop
CN105159749A (en) * 2015-09-11 2015-12-16 东莞市微云系统科技有限公司 Method and system for redirecting local disk to a virtual machine by cloud terminal
US9582444B1 (en) * 2015-12-01 2017-02-28 Dell Products L.P. Selective partition based redirection for multi-partitioned USB devices
CN107247618A (en) * 2017-05-13 2017-10-13 成都长天信息技术有限公司 A kind of disk reorientation method under the outside acquisition framework based on instruction

Also Published As

Publication number Publication date
CN110795156A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
WO2019114185A1 (en) App remote control method and related devices
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN110795156B (en) Mobile memory loading method, thin client, storage medium and device
CN110958217B (en) Method and device for remotely controlling server, computer equipment and storage medium
CN107526623B (en) Data processing method and device
CN111432033A (en) Application program downloading method, device and system, IOS equipment and medium
CN107273226B (en) Method and device for integrating components in android system and calling integrated components
CN113835911A (en) Intranet penetration agent method, system, host and computer readable storage medium
CN113672387A (en) Remote calling graphics rendering method and system based on drawing programming interface
CN111770043B (en) Game data communication method, device, storage medium and electronic equipment
US8938522B2 (en) Tiered XML services in a content management system
CN111078316A (en) Layout file loading method and device, storage medium and electronic equipment
CN107247618B (en) Disk redirection method based on instruction external acquisition architecture
CN108108203B (en) Method, device and system for downloading and installing process of installation package
WO2015062494A1 (en) Method and device for sdk uploading and downloading of a file
CN111611065A (en) Calling method and device of machine learning algorithm, storage medium and electronic equipment
CN114584618A (en) Information interaction method, device, equipment, storage medium and system
KR20140070200A (en) Apparatus and method for managing threads for software offloading computing
CN114610446B (en) Method, device and system for automatically injecting probe
CN107491330B (en) Method for improving running speed of embedded browser
KR101316677B1 (en) Application service system based on user interface virtualization and method thereof
CN112671814B (en) Cross-platform equipment development method, device and system
CN114028801A (en) User input method, device, equipment and storage medium based on cloud
CN113961162A (en) Screen projection control method, screen projection sending end, screen projection receiving end and screen projection 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