[go: up one dir, main page]

CN107544751B - Method and device for remotely accessing disk - Google Patents

Method and device for remotely accessing disk Download PDF

Info

Publication number
CN107544751B
CN107544751B CN201710346760.1A CN201710346760A CN107544751B CN 107544751 B CN107544751 B CN 107544751B CN 201710346760 A CN201710346760 A CN 201710346760A CN 107544751 B CN107544751 B CN 107544751B
Authority
CN
China
Prior art keywords
disk
virtual
remote device
virtual machine
file
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
CN201710346760.1A
Other languages
Chinese (zh)
Other versions
CN107544751A (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.)
New H3C Cloud Technologies Co Ltd
Original Assignee
New H3C Cloud 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 New H3C Cloud Technologies Co Ltd filed Critical New H3C Cloud Technologies Co Ltd
Priority to CN201710346760.1A priority Critical patent/CN107544751B/en
Publication of CN107544751A publication Critical patent/CN107544751A/en
Application granted granted Critical
Publication of CN107544751B publication Critical patent/CN107544751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供一种远程访问磁盘的方法和装置,所述方法应用于虚拟机,所述方法包括:在虚拟机呈现的云桌面上建立远程设备上指定磁盘对应的虚拟磁盘;在建立虚拟磁盘之后,从所述远程设备获取所述指定磁盘的文件列表并缓存;在接收到访问所述虚拟磁盘的指令时,在所述云桌面上显示一窗口,并在所述窗口中显示缓存的所述文件列表,其中所述窗口的地址栏显示本地路径。这使得远程设备的磁盘在功能上和使用效果上可以等效于本地磁盘,提高了远程访问磁盘的灵活性。

Figure 201710346760

The present application provides a method and device for remotely accessing a disk. The method is applied to a virtual machine, and the method includes: creating a virtual disk corresponding to a specified disk on a remote device on a cloud desktop presented by the virtual machine; after creating the virtual disk , obtain the file list of the specified disk from the remote device and cache it; when receiving an instruction to access the virtual disk, display a window on the cloud desktop, and display the cached file in the window A list of files, where the window's address bar displays the local path. This enables the disk of the remote device to be equivalent to the local disk in function and use effect, and improves the flexibility of remote access to the disk.

Figure 201710346760

Description

Method and device for remotely accessing disk
Technical Field
The present application relates to the field of cloud computing, and in particular, to a method and an apparatus for remotely accessing a disk.
Background
The cloud desktop is used as a basic use scene of cloud computing, a plurality of virtual desktops are operated on a cloud server, and a user uses terminal equipment to access the virtual machine desktop through a network, so that the traditional desktop and a notebook computer are replaced. In cloud desktop technology, a user often needs to access disk data of a remote device on a cloud desktop. A commonly used method for remotely accessing a disk is to map disk data on a Remote device to a cloud Desktop in an RDP (Remote Desktop Protocol) mapping manner. FIG. 1 illustrates accessing disk data of a remote device by way of RDP mapping.
As shown in fig. 1, the cloud desktop maps the four disks C, D, E and G on the remote device "D12371G" to the local, and the user can access the disk of the remote device by clicking the corresponding icon on the cloud desktop. From the file path "\ \ tsclient \ D \ own reserved file" displayed in the window address bar, the RDP mapping mode accesses the disk of the remote device through a network path, wherein tsclient is a network protocol.
However, in real applications, some applications do not support a network path when accessing a disk of a remote device, and thus the network path may limit the versatility of the remote disk access manner to some extent. For example, when a file on a network is saved to a cloud desktop through a browser, if the browser cannot identify a network path, when another save of the file is selected, an option of saving the file to a disk of a remote device does not occur, that is, the file cannot be directly saved to the disk of the remote device.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for remotely accessing a disk, which are used to implement a general disk mapping technique, and improve the universality and flexibility of remotely accessing the disk.
Specifically, the method is realized through the following technical scheme:
in a first aspect of the present application, a method for remotely accessing a disk is provided, where the method is applied to a virtual disk driver in a cloud desktop, and the method includes:
establishing a virtual disk corresponding to a designated disk on remote equipment on a cloud desktop presented by a virtual machine;
after the virtual disk is established, acquiring a file list of the specified disk from the remote equipment and caching the file list;
and when an instruction for accessing the virtual disk is received, displaying a window on the cloud desktop, and displaying the cached file list in the window, wherein the address bar of the window displays a local path.
In a second aspect of the present application, a remote disk access apparatus is provided, where the apparatus is applied to a virtual disk driver in a cloud desktop, and the apparatus includes:
the virtual disk establishing unit is used for establishing a virtual disk corresponding to the specified disk on the remote equipment on a cloud desktop presented by the virtual machine;
a disk data obtaining unit, configured to obtain a file list of the specified disk from the remote device and cache the file list after the virtual disk is established by the disk establishing unit;
and the disk data processing unit is used for displaying a window on the cloud desktop and displaying the cached file list in the window when receiving an instruction for accessing the virtual disk, wherein the address bar of the window displays a local path.
According to the technical scheme, the virtual disk is established on the cloud desktop presented by the virtual machine, the virtual disk on the cloud desktop is communicated with the disk of the remote device through network connection, the data can not be limited by a network path, a user can use the local path to access the disk data of the remote device stored in the virtual disk like accessing the local disk on the cloud desktop, the disk of the remote device can be equivalent to the local disk in function and use effect, and the flexibility of remotely accessing the disk is improved.
Drawings
FIG. 1 is a diagram illustrating a prior art method for accessing a remote device through RDP mapping;
FIG. 2 is a schematic diagram illustrating a remote disk access according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for remotely accessing a disk according to an embodiment of the present application;
fig. 4 is a schematic view of a display effect of a cloud desktop after a virtual disk is established according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating remote access to a disk using a local path according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an effect of displaying remote disk partition information on a cloud desktop according to an embodiment of the present application;
FIG. 7 is a functional block diagram of a remote disk access apparatus according to an embodiment of the present disclosure;
fig. 8 is a hardware architecture diagram of a remote access disk device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The technical scheme of the application is described in the following with the accompanying drawings and various embodiments of the specification.
The method comprises the steps of establishing a virtual disk on a cloud desktop presented by a virtual machine, and enabling the virtual disk on the cloud desktop to be in data communication with a disk of remote equipment through network connection, so that the disk of the remote equipment is completely equivalent to a local disk in function and using effect, and flexibility of remotely accessing the disk is improved. The principle is shown in fig. 2.
Referring to fig. 2, the technical solution of the present application mainly relates to two roles, namely, a remote device and a virtual machine.
And the remote equipment is a computer where a disk to be remotely accessed is located. In the application, in order to enable the remote device to complete the operation of remotely accessing the disk in cooperation with the virtual machine, an application module may be installed on an application layer of the remote device, and the application module is configured to capture disk data on a specified disk of the remote device and transmit the captured disk data from the application layer of the remote device to a drive layer of the virtual machine through a network.
And the virtual machine is responsible for presenting the cloud desktop. The virtual machine runs on the cloud server, and all computing resources and data storage of the virtual machine are provided by the cloud server. The user can use the terminal device to access the cloud desktop provided by the virtual machine through the network, and the terminal device is only used as a display terminal and is responsible for receiving and feeding back the operation of external devices such as a mouse and a keyboard. In the application, a virtual disk driver is installed on a drive layer of a virtual machine, and the virtual disk driver is responsible for establishing a virtual disk on a cloud desktop, receiving disk data sent by remote equipment, and caching the received disk data in a data storage distributed to the virtual machine by a cloud server.
As to how to access the disk of the remote device through the virtual machine, the following will be explained by the method flow shown in fig. 3. For any remote device, the virtual machine may implement remote access to the disk on the remote device according to the method shown in fig. 3. As shown in fig. 3, the method may include steps 301 to 303, wherein steps 301 and 302 are implemented at a driver layer of the virtual machine, and step 303 is implemented at a driver layer and an application layer of the virtual machine. Next, the respective steps included in the method will be described.
Step 301: and establishing a virtual disk corresponding to the specified disk on the remote equipment on the cloud desktop presented by the virtual machine.
Optionally, the virtual machine may determine a specified disk to be accessed on the remote device according to a control instruction sent by the remote device; the specified disk to be accessed on the remote device can also be determined according to a manual configuration instruction received from a terminal interface, wherein the terminal interface refers to an external interface of the terminal device which logs in a cloud desktop, and can be a command line interface, a human-computer interface or an interface in other forms. The virtual machine may then establish a virtual disk at its driver layer that corresponds to the specified disk on the remote device.
When there are multiple designated disks to be accessed on the remote device, the virtual machine may establish multiple virtual disks corresponding to the multiple designated disks on the cloud desktop.
Optionally, when the virtual disk is established, the following method can be implemented: the virtual machine may find back a drive Object (Driver Object) corresponding to a virtual DISK Driver included in the virtual machine according to a generated Root DEVICE Object (Root DEVICE Object) of a FILE _ DEVICE _ UNKNOWN type, then establish a virtual DISK of a FILE _ DEVICE _ DISK type according to the found back drive Object, and specify a drive letter for the established virtual DISK. After the virtual disk is created, a local disk icon as shown in fig. 4 is displayed in the cloud desktop, and in fig. 4, "local disk (X:)" is an icon corresponding to the virtual disk, and at this time, no data exists in the local disk (X:).
The virtual disk driver may be an nt (new technology) type driver commonly used in the existing implementation, and is generally loaded when the virtual machine is started, and the driver entry function (drivernetry) may be called during loading to create a DEVICE Object (DEVICE Object) of FILE _ DEVICE _ UNKNOWN type, which is the root DEVICE Object. The root device object is located in a drive layer of the virtual machine, contains important information of a virtual disk drive program, and mainly plays a role in realizing dynamic loading of the virtual disk.
Step 302: and after the virtual disk is established, acquiring the file list of the specified disk from the remote equipment and caching the file list.
Before step 302, the remote device may obtain partition information of a specified disk to be accessed on the remote device through an API (Application Programming Interface) function, determine a position of the specified disk to be accessed according to the obtained disk partition information, define a file pointer at the determined disk position, and read and write the disk in a file pointer manner, thereby obtaining a file list of the specified disk to be accessed. The mode of reading and writing the disk data by the file pointer can bypass a file management system of the computer, and the bypass of the file management system means that the read and write disk data can pass through fewer process modules, so that the complexity of a link can be reduced, and the read and write efficiency of the disk can be improved.
Another task of the remote device is to create a network connection, and encapsulate disk data such as the read file list into an appropriate data structure to be sent to the virtual machine through the network connection, where the encapsulated data structure can indicate the offset and length of each file list in the entity of the data structure in the data header, so that the virtual machine can read the file list of the specified disk to be accessed on the remote device from the entity of the data structure according to the indication of the data header of the data structure.
In order to ensure the security of Data transmission, the remote device may encrypt the disk Data before sending the disk Data through the network connection, and commonly used Encryption algorithms include a Data Encryption Standard (DES) algorithm and the like.
Specifically, the network connection may be a TCP (Transmission Control Protocol) connection, and the network connection may be established between an application layer of the remote device and a driver layer of the virtual machine, so that the disk data may be directly transmitted from the application layer of the remote device to the driver layer of the virtual machine, and does not need to pass through the application layer of the virtual machine. In addition, the application does not limit the establishment timing of the network connection between the remote device and the virtual machine, for example, the virtual machine may establish the network connection with the remote device after the virtual disk is established, or may establish the network connection with the remote device before the virtual disk is established (e.g., after a specified disk to be accessed on the remote device is determined). Alternatively, the network connection may be a TCP long connection, i.e. the network connection is not interrupted even when there is no data transfer between the virtual machine and the remote device.
Step 303: and when an instruction for accessing the virtual disk is received, displaying a window on the cloud desktop, and displaying the cached file list in the window, wherein the address bar of the window displays a local path.
Specifically, the virtual machine may receive an instruction for accessing a specified virtual disk through an external interface of the terminal device logged in the cloud desktop, then, an application layer of the virtual machine requests a file list associated with the specified virtual disk from a driver layer of the virtual machine, the driver layer reads a corresponding file list according to the request of the application layer and returns the file list to the application layer, and the application layer displays the file list in a window.
For example, assume a virtual disk is established on the cloud desktop of the virtual machine, the drive letter of the virtual disk is "local disk (X:)", and the local disk (X:) is associated with a file list of a certain disk on a local cache remote device. When the virtual machine receives an access instruction to the local disk (X:), for example, a double-click instruction of a mouse to the local disk (X:), the application layer of the virtual machine can request a file list of the disk on the remote device associated with the local disk (X:) from the drive layer of the virtual machine, and after the drive layer returns the corresponding file list, the application layer can present a window as shown in FIG. 5, display the file list in the window, and display a local path "computer \ local disk (X:)" in an address bar of the window. In the application, the application program on the virtual machine can access the disk of the remote device through the local path, so that the disk of the remote device can be equivalent to the local disk in terms of function and use effect, and the problem of limited remote access can be avoided under some scenes related to file path identification, such as scenes of saving a file to the disk of the remote device or opening a certain file on the disk of the remote device.
When there are multiple designated disks to be accessed on the remote device, the virtual machine may parse multiple file lists from the received disk data, and the virtual machine may store the multiple file lists in the corresponding virtual disks respectively.
According to the method shown in fig. 3, the virtual machine can load data of one or more disks on one or more remote devices to the virtual machine at the same time, which improves the flexibility of accessing the disks remotely.
After the disk file list of the remote device is displayed in a window of the cloud desktop by the virtual machine, if a read instruction for an object included in the file list is received, content corresponding to the object can be acquired from the specified disk and displayed on the cloud desktop. And if a write instruction for an object included in the file list is received, the write instruction can be sent to the remote device, so that the remote device performs a write operation on the specified disk according to the write instruction. The object may be a file or a folder.
For example, when the virtual machine receives a read instruction for a certain folder in the file list, a file list further included in the folder may be obtained from a specified disk of the remote device and displayed on the cloud desktop; when the virtual machine receives a read instruction for a certain file in the file list, the content of the file can be acquired from a specified disk of the remote device and displayed on a cloud desktop, and the remote device side can read the file from a local specified disk in a file pointer mode.
Optionally, in order to enable the display effect of the disk of the remote device on the cloud desktop to be closer to the local disk, the remote device may obtain partition information of the specified disk to be accessed on the device through the API function, and send the obtained disk partition information to the virtual machine, where the disk partition information is mainly used to indicate information of the remaining capacity, available capacity, total capacity, and the like of the specified disk to be accessed on the remote device. The virtual machine can display the received disk partition information on the cloud desktop. For example, in FIG. 6, "local disk (X:)", indicates the icon of the virtual disk provided in the present application, and "C on D12371F" and "D on D12371F" indicate the disk icon mapped to the local disk by RDP mapping, and the display effect is closer to the local disk than the display effect obtained by displaying the information such as the available capacity, total capacity, and capacity bar of the remote device disk corresponding to the virtual disk around the icon of the virtual disk provided in the present application.
To sum up, according to the technical scheme of the application, the virtual disk is established on the cloud desktop presented by the virtual machine, and the virtual disk on the cloud desktop and the disk of the remote device are communicated with each other through network connection, so that the virtual disk and the disk of the remote device are not limited by a network path, and a user can use the local path to access the disk data of the remote device stored in the virtual disk as accessing the local disk on the cloud desktop, so that the disk of the remote device can be equivalent to the local disk in terms of functions and use effects, and the flexibility of remotely accessing the disk is improved.
The methods provided herein are described above. The apparatus provided in the present application is described below.
Referring to fig. 7, this figure is a functional block diagram of a remote disk access apparatus provided in an embodiment of the present application, where the apparatus is applied to a virtual machine, and the apparatus may include:
a virtual disk establishing unit 701, configured to establish a virtual disk corresponding to a specified disk on a remote device on a cloud desktop presented by a virtual machine.
A disk data obtaining unit 702, configured to obtain and cache the file list of the specified disk from the remote device after the disk establishing unit 701 establishes the virtual disk.
The disk data processing unit 703 is configured to display a window on the cloud desktop and display the cached file list in the window when receiving an instruction to access the virtual disk, where an address bar of the window displays a local path.
Optionally, when a virtual disk corresponding to a specified disk on a remote device is established on a cloud desktop presented by a virtual machine, the virtual disk establishing unit 701 is specifically configured to:
according to the generated FILE _ DEVICE _ UNKNOWN type root DEVICE object, searching a driving object corresponding to a virtual disk driver included in the virtual machine; and establishing a FILE _ DEVICE _ DISK type virtual DISK according to the searched drive object, and assigning a drive letter to the established virtual DISK.
Optionally, the disk data obtaining unit 702 may be further configured to obtain partition information of the specified disk from the remote device, where the partition information includes a remaining capacity, an available capacity, and a total capacity of the specified disk.
The disk data processing unit 703 may be further configured to display the partition information on the cloud desktop.
Optionally, the disk data obtaining unit 702 may be further configured to, when a read instruction for an object included in the file list is received, obtain, from the specified disk, content corresponding to the object, and display the content on the cloud desktop; and when a write instruction for an object included in the file list is received, sending the write instruction to the remote equipment so that the remote equipment performs write operation on the specified disk according to the write instruction.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation. The functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
As shown in fig. 8, the embodiment of the present application further provides a remote access disk device, which includes a communication interface 801, a processor 802, a memory 803, and a bus 804; the communication interface 801, the processor 802, and the memory 803 communicate with each other via a bus 804.
Among other things, a communication interface 801 for communicating with remote devices. The processor 802 may be a CPU, the memory 803 may be a non-volatile memory (non-volatile memory), and the memory 803 stores remote disk access logic instructions, and the processor 802 may execute the remote disk access logic instructions stored in the memory 803 to implement the remote disk access method shown in fig. 3, which may be specifically referred to as the flow shown in fig. 3.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1.一种远程访问磁盘的方法,其特征在于,所述方法应用于虚拟机,所述方法包括:1. A method for remotely accessing a disk, wherein the method is applied to a virtual machine, the method comprising: 通过终端设备登陆已创建的虚拟机,所述虚拟机的计算资源和数据存储由不同于远端设备的云服务器提供,在虚拟机呈现的云桌面上建立远程设备上指定磁盘对应的虚拟磁盘;Log in to the created virtual machine through a terminal device, the computing resources and data storage of the virtual machine are provided by a cloud server different from the remote device, and a virtual disk corresponding to the specified disk on the remote device is established on the cloud desktop presented by the virtual machine; 在建立虚拟磁盘之后,从所述远程设备获取所述指定磁盘的文件列表并缓存;After establishing the virtual disk, obtain the file list of the specified disk from the remote device and cache it; 在接收到访问所述虚拟磁盘的指令时,在所述云桌面上显示一窗口,并在所述窗口中显示缓存的所述文件列表,其中所述窗口的地址栏显示本地路径。When an instruction to access the virtual disk is received, a window is displayed on the cloud desktop, and the cached file list is displayed in the window, wherein the address bar of the window displays a local path. 2.如权利要求1所述的方法,其特征在于,在虚拟机呈现的云桌面上建立远程设备上指定磁盘对应的虚拟磁盘,包括:2. The method according to claim 1, wherein establishing a virtual disk corresponding to the specified disk on the remote device on the cloud desktop presented by the virtual machine, comprising: 根据已生成的未知文件设备FILE_DEVICE_UNKNOWN类型的根设备对象,查找虚拟机包括的虚拟磁盘驱动程序对应的驱动对象;Find the driver object corresponding to the virtual disk driver included in the virtual machine according to the generated root device object of the unknown file device FILE_DEVICE_UNKNOWN type; 根据查找到的驱动对象建立磁盘文件设备FILE_DEVICE_DISK类型的虚拟磁盘,并为建立的虚拟磁盘指定盘符。Create a virtual disk of the disk file device FILE_DEVICE_DISK type according to the found driver object, and specify a drive letter for the created virtual disk. 3.如权利要求1或2所述的方法,其特征在于,在建立虚拟磁盘之后,所述方法还包括:3. The method according to claim 1 or 2, wherein after establishing the virtual disk, the method further comprises: 从所述远程设备获取所述指定磁盘的分区信息,所述分区信息包括所述指定磁盘的剩余容量、可用容量和总容量;Obtaining partition information of the specified disk from the remote device, the partition information including the remaining capacity, available capacity and total capacity of the specified disk; 在所述云桌面上显示所述分区信息。The partition information is displayed on the cloud desktop. 4.如权利要求1所述的方法,其特征在于,所述方法还包括:4. The method of claim 1, wherein the method further comprises: 当接收到针对所述文件列表包括的对象的读指令时,从所述指定磁盘获取所述对象对应的内容,并在所述云桌面上显示;When receiving a read instruction for the object included in the file list, obtain the content corresponding to the object from the specified disk, and display it on the cloud desktop; 当接收到针对所述文件列表包括的对象的写指令时,向所述远程设备发送所述写指令,以使所述远程设备依据所述写指令在所述指定磁盘上进行写操作。When a write instruction for an object included in the file list is received, the write instruction is sent to the remote device, so that the remote device performs a write operation on the designated disk according to the write instruction. 5.一种远程访问磁盘装置,其特征在于,所述装置应用于虚拟机,所述装置包括:5. A remote access disk device, wherein the device is applied to a virtual machine, and the device comprises: 虚拟磁盘建立单元,用于通过终端设备登陆已创建的虚拟机,所述虚拟机的计算资源和数据存储由不同于远端设备的云服务器提供,在虚拟机呈现的云桌面上建立远程设备上指定磁盘对应的虚拟磁盘;A virtual disk establishment unit is used to log in to the created virtual machine through a terminal device, the computing resources and data storage of the virtual machine are provided by a cloud server different from the remote device, and the remote device is created on the cloud desktop presented by the virtual machine. Specifies the virtual disk corresponding to the disk; 磁盘数据获取单元,用于在所述磁盘建立单元建立虚拟磁盘之后,从所述远程设备获取所述指定磁盘的文件列表并缓存;a disk data acquisition unit, configured to acquire and cache the file list of the specified disk from the remote device after the disk establishment unit establishes the virtual disk; 磁盘数据处理单元,用于在接收到访问所述虚拟磁盘的指令时,在所述云桌面上显示一窗口,并在所述窗口中显示缓存的所述文件列表,其中所述窗口的地址栏显示本地路径。A disk data processing unit, configured to display a window on the cloud desktop when receiving an instruction to access the virtual disk, and display the cached file list in the window, wherein the address bar of the window Display the local path. 6.如权利要求5所述的装置,其特征在于,在虚拟机呈现的云桌面上建立远程设备上指定磁盘对应的虚拟磁盘时,所述虚拟磁盘建立单元具体用于:6. The apparatus according to claim 5, wherein, when establishing a virtual disk corresponding to the specified disk on the remote device on the cloud desktop presented by the virtual machine, the virtual disk establishing unit is specifically used for: 根据已生成的未知文件设备FILE_DEVICE_UNKNOWN类型的根设备对象,查找所述虚拟机包括的虚拟磁盘驱动程序对应的驱动对象;According to the generated root device object of the unknown file device FILE_DEVICE_UNKNOWN type, search for the driver object corresponding to the virtual disk driver included in the virtual machine; 根据查找到的驱动对象建立磁盘文件设备FILE_DEVICE_DISK类型的虚拟磁盘,并为建立的虚拟磁盘指定盘符。Create a virtual disk of the disk file device FILE_DEVICE_DISK type according to the found driver object, and specify a drive letter for the created virtual disk. 7.如权利要求5或6所述的装置,其特征在于,7. The device of claim 5 or 6, wherein 所述磁盘数据获取单元,还用于从所述远程设备获取所述指定磁盘的分区信息,所述分区信息包括所述指定磁盘的剩余容量、可用容量和总容量;The disk data acquisition unit is further configured to acquire partition information of the specified disk from the remote device, where the partition information includes the remaining capacity, available capacity and total capacity of the specified disk; 所述磁盘数据处理单元,还用于在所述云桌面上显示所述分区信息。The disk data processing unit is further configured to display the partition information on the cloud desktop. 8.如权利要求5所述的装置,其特征在于,8. The apparatus of claim 5, wherein 所述磁盘数据获取单元,还用于当接收到针对所述文件列表包括的对象的读指令时,从所述指定磁盘获取所述对象对应的内容,并在所述云桌面上显示;当接收到针对所述文件列表包括的对象的写指令时,向所述远程设备发送所述写指令,以使所述远程设备依据所述写指令在所述指定磁盘上进行写操作。The disk data acquisition unit is further configured to acquire the content corresponding to the object from the specified disk when receiving a read instruction for the object included in the file list, and display it on the cloud desktop; When a write instruction for an object included in the file list is reached, the write instruction is sent to the remote device, so that the remote device performs a write operation on the designated disk according to the write instruction.
CN201710346760.1A 2017-05-17 2017-05-17 Method and device for remotely accessing disk Active CN107544751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710346760.1A CN107544751B (en) 2017-05-17 2017-05-17 Method and device for remotely accessing disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710346760.1A CN107544751B (en) 2017-05-17 2017-05-17 Method and device for remotely accessing disk

Publications (2)

Publication Number Publication Date
CN107544751A CN107544751A (en) 2018-01-05
CN107544751B true CN107544751B (en) 2021-11-23

Family

ID=60966916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710346760.1A Active CN107544751B (en) 2017-05-17 2017-05-17 Method and device for remotely accessing disk

Country Status (1)

Country Link
CN (1) CN107544751B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196683B (en) * 2018-09-05 2021-09-07 腾讯科技(深圳)有限公司 Operation control method, device, terminal equipment and medium
CN111309698A (en) * 2018-12-12 2020-06-19 中兴通讯股份有限公司 Disk redirection method, device and system
CN112528285B (en) * 2020-12-18 2022-01-25 南方电网电力科技股份有限公司 Security protection method and device for cloud computing platform, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116618A (en) * 2013-01-28 2013-05-22 南开大学 Telefile system mirror image method and system based on lasting caching of client-side
CN105446794A (en) * 2014-09-30 2016-03-30 北京金山云网络技术有限公司 Disc operation method, apparatus and system based on virtual machine
CN105718589A (en) * 2016-01-26 2016-06-29 华为技术有限公司 File access method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309720A (en) * 2012-03-07 2013-09-18 上海聚耘信息科技有限公司 Virtual machine management system for maintaining virtual data center
CN102629941B (en) * 2012-03-20 2014-12-31 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN102968331B (en) * 2012-11-27 2016-08-10 中标软件有限公司 A kind of virtual machine management system and file access method thereof
US9766920B2 (en) * 2015-08-28 2017-09-19 Vmware, Inc. Dynamic content disk
CN105511938A (en) * 2015-11-23 2016-04-20 国云科技股份有限公司 Virtual disk construction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116618A (en) * 2013-01-28 2013-05-22 南开大学 Telefile system mirror image method and system based on lasting caching of client-side
CN105446794A (en) * 2014-09-30 2016-03-30 北京金山云网络技术有限公司 Disc operation method, apparatus and system based on virtual machine
CN105718589A (en) * 2016-01-26 2016-06-29 华为技术有限公司 File access method and device

Also Published As

Publication number Publication date
CN107544751A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
KR102427561B1 (en) A novel ssd architecture for fpga based acceleration
CN109783013B (en) Method and system for configuring and accessing extensible object stores
CN105159753B (en) The method, apparatus and pooling of resources manager of accelerator virtualization
US10067741B1 (en) Systems and methods for I/O device logging
EP4220419B1 (en) Modifying nvme physical region page list pointers and data pointers to facilitate routing of pcie memory requests
US7275123B2 (en) Method and apparatus for providing peer-to-peer data transfer within a computing environment
WO2017066944A1 (en) Method, apparatus and system for accessing storage device
WO2015165298A1 (en) Computer, control device and data processing method
KR102403653B1 (en) A novel ssd architecture for fpga based acceleration
CN102270186A (en) Virtual desktop external equipment support system
CN103823638B (en) Virtual equipment access method and device
US8549233B2 (en) Managing shared data objects to provide visibility to shared memory
CN105408875B (en) Distributed process on memory interface executes and file system
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
CN107544751B (en) Method and device for remotely accessing disk
US20110246600A1 (en) Memory sharing apparatus
US9753883B2 (en) Network interface device that maps host bus writes of configuration information for virtual NIDs into a small transactional memory
CN109308288B (en) Data processing method and device
US7448032B2 (en) Method and apparatus for integration of URL into standard file systems
US7827194B2 (en) Access to shared disk device on storage area network
US9535851B2 (en) Transactional memory that performs a programmable address translation if a DAT bit in a transactional memory write command is set
JP2018526700A (en) System and method for content storage and retrieval
US10228968B2 (en) Network interface device that alerts a monitoring processor if configuration of a virtual NID is changed
US20250123871A1 (en) Transmitting data using a shared network adapter
CN110083463B (en) A real-time data communication method between 3D image engine and numerical processing software

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