CROSS-REFERENCE TO RELATED APPLICATION
TECHNICAL FIELD
[0002] The present disclosure relates to the field of computer technology, in particular
to, a method, apparatus, and system for disk redirection.
BACKGROUND
[0003] Cloud computing is listed by China as a strategic emerging industry to be supported.
As one of the earliest projects in the cloud computing industry, the cloud desktop
technology has a huge market scale. In recent years, the cloud desktop technology
has flourished in China. Many schools, governments and enterprises have adopted cloud
desktop products instead of traditional PC. Cloud desktop technology raises a revolution
in enterprise IT architectures that delivers a mobile computing experience while meeting
the needs of many specific industries.
[0004] In the cloud desktop technology, for an aspect of disk redirection, especially mass
storage device redirection, there are a lot of problems to be solved. At present,
most of the schemes with respect to disk redirection rely on network file sharing
based on a SMB protocol. The network file sharing described above requires network
penetration to achieve mutual access between files.
SUMMARY
[0005] To solve the above technical problems, the present disclosure provides a method for
disk redirection, device, system, computer apparatus and storage medium.
[0006] A method for disk redirection is provided, which includes: receiving an operation
request for a file in a drive letter, and generating a corresponding operation instruction
and operation content according to the operation request; sending the operation instruction
and operation content to a cloud terminal, to allow the operation instruction and
operation content being executed on a file in a disk of the cloud terminal, where
the disk corresponds to the operation request; and receiving a file operation result
after execution and responding to the file operation result, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
[0007] A device for disk redirection is provided, which includes: a first generation module
configured to receive an operation request for a file in a drive letter and generate
a corresponding operation instruction and operation content according to the operation
request; a first sending module configured to send the operation instruction and operation
content to a cloud terminal, to allow the operation instruction and operation content
being executed on a file in a disk of the cloud terminal, where the disk corresponds
to the operation request; and a response module configured to receive a file operation
result after execution and respond to the file operation result, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
[0008] A computer apparatus is provided, which includes a memory, a processor and a computer
program stored in the memory and executable by the processor. When the processor executes
the computer program, the following steps are implemented: receiving an operation
request for a file in a drive letter, and generating a corresponding operation instruction
and operation content according to the operation request; sending the operation instruction
and operation content to a cloud terminal, to allow the operation instruction and
operation content being executed on a file in a disk of the cloud terminal, where
the disk corresponds to the operation request; and receiving a file operation result
after execution and responding to the file operation result, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
[0009] A computer-readable storage medium is provided, on which a computer program is stored.
When the computer program is executed by a processor, the following steps are implemented:
receiving an operation request for a file in a drive letter, and generating a corresponding
operation instruction and operation content according to the operation request; sending
the operation instruction and operation content to a cloud terminal, to allow the
operation instruction and operation content being executed on a file in a disk of
the cloud terminal, where the disk corresponds to the operation request; and receiving
a file operation result after execution and responding to the file operation result,
to realize a synchronous operation between the file in the drive letter and the file
in the corresponding disk.
[0010] A method for disk redirection is provided, which includes: receiving an operation
instruction and operation content sent by a cloud desktop, where the operation instruction
and operation content are generated according to an operation request for a file in
a drive letter of the cloud desktop; executing the operation instruction and the operation
content on a file in a disk corresponding to the operation request; and sending a
file operation result after execution to the cloud desktop, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
[0011] A device for disk redirection is provided, which includes: an instruction reception
module configured to receive an operation instruction and operation content sent by
a cloud desktop, where the operation instruction and the operation content are generated
according to an operation request for a file in a drive letter of the cloud desktop;
an execution module configured to execute the operation instruction and the operation
content on a file in a disk corresponding to the operation request; and a sending
module configured to send a file operation result after execution to the cloud desktop,
to realize a synchronous operation between the file in the drive letter and the file
in the corresponding disk.
[0012] A computer apparatus is provided, which includes a memory, a processor and a computer
program stored in the memory and executable by the processor. When the processor executes
the computer program, the following steps are implemented: receiving an operation
instruction and operation content sent by a cloud desktop, where the operation instruction
and operation content are generated according to an operation request for a file in
a drive letter of the cloud desktop; executing the operation instruction and the operation
content on a file in a disk corresponding to the operation request; and sending a
file operation result after execution to the cloud desktop, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
[0013] A computer-readable storage medium is provided, on which a computer program is stored.
When the computer program is executed by a processor, the following steps are implemented:
receiving an operation instruction and operation content sent by a cloud desktop,
where the operation instruction and operation content are generated according to an
operation request for a file in a drive letter of the cloud desktop; executing the
operation instruction and the operation content on a file in a disk corresponding
to the operation request; and sending a file operation result after execution to the
cloud desktop, to realize a synchronous operation between the file in the drive letter
and the file in the corresponding disk.
[0014] A system for disk redirection is provided, which includes a cloud terminal and a
cloud desktop, where, the cloud desktop is configured to receive an operation request
for a file in a drive letter, generate a corresponding operation instruction and operation
content according to the operation request, and send the operation instruction and
operation content to the cloud terminal; the cloud terminal is configured to execute
the operation instruction and the operation content on a file in a disk corresponding
to the operation request; and the cloud desktop is configured to receive a file operation
result after execution and respond to the file operation result, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
BRIEF DESCRIPTION OF DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of the
description, illustrate embodiments consistent with the present disclosure and together
with the description serve to explain the principles of the present disclosure.
[0016] In order to illustrate the technical schemes in the embodiments of the present disclosure
or in some situations, the following briefly describes the accompanying drawings required
for use in the embodiments or some situations, and it will be apparent to those having
ordinary skills in the art that other drawings may be obtained from these drawings
without creative effort.
Fig. 1 is an application scenario schematic diagram showing a method for disk redirection
in an embodiment;
Fig. 2 is a flowchart showing a method for disk redirection in an embodiment;
Fig. 3 is a diagram showing an application scenario of a method for disk redirection
in another embodiment;
Fig. 4 is a flowchart showing a method for disk redirection in another embodiment;
Fig. 5 is a flowchart showing steps of generating operation content in an embodiment;
Fig. 6 is a flowchart showing steps of sending and receiving data by a preset channel
in an embodiment;
Fig. 7 is a flowchart showing steps of file encryption and decryption in an embodiment;
Fig. 8 is a flowchart showing a method for disk redirection in another embodiment;
Fig. 9 is a flowchart showing steps of creating a drive letter in an embodiment;
Fig. 10 is a flowchart showing steps of sending and receiving data through a preset
channel in another embodiment;
Fig. 11 is a sequence diagram showing a process of accessing a disk in an embodiment;
Fig. 12 is a sequence diagram showing a process of a file system operation in an embodiment;
Fig. 13 is a flowchart showing a copy-and-paste operation, and a cut-and-paste operation,
in an embodiment;
Fig. 14 is a structural block diagram showing an apparatus for disk redirection in
an embodiment;
Fig. 15 is a structural block diagram showing a drive letter creation module in an
embodiment;
Fig. 16 is a structural block diagram showing an apparatus for disk redirection in
another embodiment;
Fig. 17 is a structural block diagram showing an encryption and decryption module
in an embodiment;
Fig. 18 is a structural block diagram showing an apparatus for disk redirection in
yet another embodiment;
Fig. 19 is a structural block diagram showing an apparatus for disk redirection in
yet another embodiment; and
Fig. 20 is a structural block diagram showing an internal structure of a computer
apparatus in an embodiment.
DETAILED DESCRIPTION
[0017] In order to make the objectives, technical schemes and advantages of the embodiments
of the present disclosure clear, the technical schemes in the embodiments of the present
disclosure will be described below with reference to the accompanying drawings in
the embodiments of the present disclosure. Apparently, the described embodiments are
part of the embodiments of the present disclosure, not all of them. Based on the embodiments
of the present disclosure, all other embodiments obtained by those having ordinary
skills in the art without creative effort fall within the scope of the present disclosure.
[0018] Fig. 1 is a schematic diagram showing an application environment of a method for
disk redirection in an embodiment. Referring to Fig. 1, the method for disk redirection
is applied to a disk redirection system. The system for disk redirection includes
a cloud desktop 110 and a cloud terminal 120. The cloud desktop 110 and the cloud
terminal 120 are connected through a network. The cloud desktop 110 receives an operation
request for a file in a drive letter, generates a corresponding operation instruction
and operation content according to the operation request, and sends the operation
instruction and operation content to the cloud terminal 120. The cloud terminal 120
executes the operation instruction and the operation content on a file in a disk corresponding
to the operation request. The cloud desktop 110 receives a file operation result after
execution and responds to the file operation result, to realize a synchronous operation
between the file in the drive letter and the file in the corresponding disk. The cloud
desktop mainly distributes cloud resources to respective operating terminals through
a virtualized application, and still belongs to the data platform cloud operating
system. The cloud terminal 120 can be implemented by an independent terminal or a
terminal cluster composed of a plurality of terminals.
[0019] As shown in Fig. 2, according to an embodiment, a method for disk redirection is
provided. In this embodiment, the method is mainly applied to the cloud desktop 110
in Fig. 1. Referring to Fig. 2, the method for disk redirection includes the following
steps.
[0020] Step S201: receiving an operation request for a file in a drive letter, and generating
a corresponding operation instruction and operation content according to the operation
request.
[0021] In an embodiment, disk redirection refers to redirecting various requests for files
in the disk to other locations for execution. A drive letter refers to an entry created
on the cloud desktop for accessing a disk. A file refers to a file stored in the disk,
where the file in the disk is stored corresponding to the file in the drive letter.
The disk refers to a disk in the cloud terminal. An operation request refers to the
user's operation request realized by shortcut key, click and touch, such as creating,
opening, reading/writing, renaming and deleting a file in the drive letter; creating,
opening, enumerating, renaming and deleting a directory; acquiring and displaying
a volume label; acquiring and displaying size and occupancy of a disk space, etc.
An operation instruction refers to a computer-executable instruction for creating,
opening, reading/writing, renaming and deleting the file; creating, opening, enumerating,
renaming and deleting the directory, etc. Operation content refers to one or more
files targeted by the operation instruction, where the content of a file may additionally
or alternatively include: text information, picture information, audio information,
etc.
[0022] Step S202: sending the operation instruction and operation content to a cloud terminal,
to allow the operation instruction and operation content being executed on a file
in a disk of the cloud terminal, where the disk corresponds to the operation request.
[0023] In an embodiment, the cloud desktop sends the operation instruction and operation
content to the cloud terminal through the network, and the cloud terminal executes
the operation instruction and operation content on the file in the disk corresponding
to the operation request after receiving the operation instruction and operation content.
If the operation instruction is a file creation instruction, the corresponding file
is created in the corresponding disk. If the operation instruction is a directory
opening instruction, the file directory is opened on the corresponding disk.
[0024] Step S203: receiving a file operation result after execution and responding to the
file operation result, to realize a synchronous operation between the file in the
drive letter and the file in the corresponding disk.
[0025] In an embodiment, the file operation result refers to the file status in which the
file has changed after the operation instruction and operation content are executed
on the file. Responding to the file operation result means that the cloud desktop
realizes file synchronization with the cloud terminal. If the operation instruction
is a file opening operation instruction, the operation result of the file is to open
the file, obtain the file directory list after opening the file, and send the successfully
opened and obtained file directory list to the cloud desktop. After receiving the
successfully opened and obtained file directory, the cloud desktop responds to file
opening in the cloud desktop.
[0026] In an embodiment, step S203 further includes displaying the result of the synchronization
operation.
[0027] In an embodiment, the result of the synchronous operation refers to the desired purpose
of the operation request. For example, if the operation request is to open a file
A, the result of the corresponding synchronization operation is to open the file A.
After opening the file A, the file directory after opening the file A is displayed.
[0028] In an embodiment, as shown in Fig. 3, the cloud desktop 110 includes a cloud desktop
system 112, a file system driver 114 and a cloud desktop communication processing
service program 116. The cloud terminal 120 includes a cloud terminal system 122,
a file system 124 and a cloud terminal communication processing service program 126.
The cloud desktop system 110 can be a Windows system or a Linux system.
[0029] When a user operates a file in the cloud desktop system, the file system driver receives
an operation request from the cloud desktop system for a file system device (such
as creating, opening, reading/writing, renaming and deleting a file; creating, opening,
enumerating, renaming and deleting a directory; acquiring and displaying a volume
label; acquiring and displaying size and occupancy of a disk space, etc.). The file
system driver forwards the operation request for the file system device to the cloud
desktop communication processing service program in the form of operation instruction
plus operation content. The cloud desktop communication processing service program
sends the operation instruction and operation content to the client communication
processing service program. The client communication processing service program submits
the received operation instruction and the operation content to the file system for
processing. The file system executes the corresponding operation instruction and operation
content in the corresponding disk, obtains the file operation result after execution,
and returns the file operation result to the client communication processing service
program. The client communication processing service program returns the file operation
result to the cloud desktop communication processing service program. The cloud desktop
communication processing service program receives the returned file operation result
and responds to the file system driver to complete the operation request of the cloud
desktop system to the file system device.
[0030] According to the above method for disk redirection, by receiving an operation request
for a file in a drive letter, generating a corresponding operation instruction and
operation content according to the operation request, sending the operation instruction
and operation content to the cloud terminal so as to execute the operation instruction
and operation content on the file in the disk of the cloud terminal corresponding
to the operation request, receiving a file operation result after execution, and responding
to the file operation result, a synchronous operation between the file in the drive
letter and the file in the corresponding disk is realized. Therefore, the cloud desktop
generates the corresponding operation instruction and operation content according
to the operation request, sends the generated operation instruction and operation
content to the cloud terminal for execution in the cloud, receives the executed file
processing result, and enables the cloud desktop to realize the operation request
according to the file processing result, thus improving the network adaptability of
disk redirection and reducing the network maintenance cost.
[0031] In an embodiment, as shown in Fig. 4, before step S201, the method further includes
step S301: receiving an access notification of the disk, drive letter information
and corresponding login user information sent by the cloud terminal; step S302: creating
a corresponding disk device and a corresponding file system device according to the
access notification, where the file system device is configured to store the file;
step S303: acquiring a corresponding session according to the login user information;
and creating, in the session, the corresponding drive letter according to the drive
letter information.
[0032] In an embodiment, the disk access notification refers to the notification of a disk
accessible by the cloud terminal, and the drive letter information refers to information
for describing the drive letter, including identification information of the drive
letter, etc. Login user information refers to the information of a user logging into
the cloud desktop and cloud terminal, and the user message includes but is not limited
to the information such as user authority and user identification. The cloud desktop
receives the disk access notification, drive letter information and corresponding
login user information sent by the cloud terminal through the network. After receiving
the disk access notification, the cloud desktop creates a disk device and a file system
device corresponding to the access notification, where the disk device is a device
for storing a drive letter and the file system device is a device for storing a file.
The cloud desktop acquires a corresponding session according to the login user information,
where the session refers to a system session. For example, if a system contains multiple
users, each user will enter the user's system session after logging in to the user
account. For the convenience of understanding, the following is an example of PC containing
two different users. Suppose there are two users, user A and user B. User A enters
the session of user A after logging in to the system, and user B enters the session
of user B after logging in to the system. The cloud desktop creates a drive letter
in the user's session according to the user's drive letter information. Different
users create drive letters in their own sessions, which avoids confusion of drive
letters and improves information security.
[0033] In an embodiment, as shown in Fig. 5, the above method for disk redirection further
includes step S401: judging whether the operation request is a preset operation request.
[0034] In this embodiment, generating corresponding operation content according to the operation
request includes step S402: when the operation request is a preset operation request,
generating a corresponding local execution instruction according to the preset operation
request, and executing the local execution instruction to obtain the operation content.
[0035] In an embodiment, the preset operation request includes a copy-and-paste operation
request and a cut-and-paste operation request. The cloud desktop is provided with
an operation instruction detection program. When the detection program detects that
the operation instruction is a preset operation request, it means that the instruction
detected by the operation instruction detection program is a copy-and-paste operation
request or a cut-and-paste operation request. The detection program can use system
commands to monitor these operation requests, such as using "HOOK" to monitor an operation
request of copy-and-paste or cut-and-paste. The local execution instruction refers
to the instruction executed on the cloud desktop, and the operation content is the
operation content obtained after the local instruction is executed.
[0036] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop. as shown in Fig. 6, sending the operation instruction and operation
content to the cloud terminal includes step S2031: sending the operation instruction
and operation content through a preset operation channel.
[0037] In this embodiment, receiving the file operation result after execution includes
step S2041: receiving the file operation result through the preset operation channel.
[0038] In an embodiment, the operation instruction and the operation content are sent to
the cloud terminal through a preset channel, the operation instruction and the operation
content are executed at the cloud terminal to obtain a corresponding file operation
result, and the file operation result is sent to the cloud desktop through the preset
channel.
[0039] The preset channel is a fast channel between the cloud terminal and the cloud desktop,
through which copy-and-paste and cut-and-paste operations are transmitted and returned.
Copy-and-paste and cut-and-paste operation requests can also be received in the file
system driver of the cloud desktop. In order to avoid repeating the copy-and-paste
and cut-and-paste operations, the copy-and-paste and cut-and-paste operation requests
from the file system driver are ignored. Transmission and return through the preset
channel can reduce the division of copy-and-paste and cut-and-paste operation instructions
into multiple corresponding sub-operation instructions in the actual operation process,
thus improving the data processing rate.
[0040] In an embodiment, as shown in Fig. 7, the above method for disk redirection further
includes step S501: encrypting file content carried by the write instruction to obtain
encrypted operation content, when the operation request is a write operation request
for a transparent encryption-decryption file.
[0041] In an embodiment, the transparent encryption-decryption file refers to a file encrypted
by an encryption algorithm. When receiving a write operation request for a transparent
encrypted-decrypted file, encrypting the file content corresponding to the write instruction
to obtain encrypted operation content. In an embodiment, the transparent encryption-decryption
file is identified and marked when it is written.
[0042] Step S502: decrypting a transparent encryption-decryption file to obtain a decrypted
transparent encryption-decryption file after obtaining the file operation result of
the transparent encryption-decryption file, when the operation request is a read operation
request for the transparent encryption-decryption file.
[0043] In an embodiment, when the operation request is a read operation request for a transparent
encryption-decryption file, the cloud terminal executes a read operation instruction
and returns the transparent encryption-decryption file in which the write content
carried by the read operation instruction is written to the cloud desktop, and the
cloud desktop decrypts the returned transparent encryption-decryption file to obtain
a decrypted transparent encryption-decryption file. In an embodiment, the transparent
encryption-decryption file is identified and marked when it is read.
[0044] As shown in Fig. 8, in an embodiment, a method for disk redirection is provided.
In this embodiment, the method is mainly applied to the cloud terminal 120 in Fig.
1 as an example. Referring to Fig. 8, the method for disk redirection includes the
following steps.
[0045] Step S601: receiving an operation instruction and operation content sent by a cloud
desktop.
[0046] In this embodiment, the operation instruction and the operation content are generated
according to an operation request for a file in a drive letter of the cloud desktop.
[0047] Step S602: executing the operation instruction and the operation content on a file
in a disk corresponding to the operation request.
[0048] Step S603: sending a file operation result after execution to the cloud desktop,
to realize a synchronous operation between the file in the drive letter and the file
in the corresponding disk.
[0049] In an embodiment, the operation instruction refers to a computer executable instruction
for creating, opening, reading/writing, renaming and deleting a file, and creating,
opening, enumerating, renaming and deleting a directory. The operation content refers
to one or more files targeted by an operation instruction, where the content of a
file may additionally or alternatively include: text information, picture information,
audio information, etc. The cloud terminal receives the operation instruction and
the operation content sent by the cloud desktop through the network. After receiving
the operation instruction and the operation content, the cloud terminal executes,
in the disk, the operation instruction and the operation content on the file corresponding
to the file in the drive letter, to obtain the corresponding file operation result.
The file operation result is a file status after the file is changed after the operation
instruction and operation content are executed. For example, if the operation instruction
is a delete instruction and the operation content is document A, the changed file
status is: document A is deleted. The cloud desktop subsequently sends an operation
instruction to re-enumerate the directory of the folder where the document A is located,
which shows that the directory of the folder where the document A is located no longer
contains the document A. The result of the synchronous operation refers to the desired
purpose of the operation request. For example, if the operation request is to open
folder A, the result of the corresponding synchronization operation is that folder
A is opened. The cloud desktop subsequently sends an operation request to enumerate
the directory where the folder A is located, and after the folder A is opened, the
files in the folder A directory are displayed.
[0050] In an embodiment, as shown in Fig. 9, before step S601, the method further includes
the following steps. Step S701: acquiring drive letter information of the disk and
corresponding login user information when receiving an access notification of the
disk. Step S702: sending the access notification, the drive letter information and
the login user information to the cloud desktop, to allow the cloud desktop to create
a disk device and a corresponding file system device according to the access notification,
to acquire a corresponding session according to the login user information, and to
create the drive letter according to the drive letter information based on the session.
[0051] In an embodiment, the disk access notification refers to the notification of a disk
accessible by the cloud terminal, and the drive letter information refers to information
for describing the drive letter, including identification information of the drive
letter, etc. Login user information refers to the information of a user logging into
the cloud desktop and cloud terminal, and the user message includes but is not limited
to the information such as user authority and user identification. The cloud terminal
sends the disk access notification, drive letter information and corresponding login
user information to the cloud desktop through the network. After receiving the disk
access notification, the cloud desktop creates a disk device and a file system device
corresponding to the access notification, where the disk device is a device for storing
a drive letter and the file system device is a device for storing a file. The cloud
desktop acquires a corresponding session according to the login user information,
where the session refers to a system session. Different users create drive letters
in their own sessions, which avoids confusion of drive letters and improves information
security.
[0052] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop; As shown in Fig. 10, receiving the operation content sent by
the cloud desktop includes step S801: receiving the operation content and the operation
instruction which are sent through the preset channel and obtained after the cloud
desktop executes a local operation instruction.
[0053] In this embodiment, the local operation instruction is generated according to a preset
operation request including a copy-and-paste operation request and a cut-and-paste
operation request.
[0054] Sending the file operation result after execution to the cloud desktop includes step
S802: sending the file operation result after execution to the cloud desktop through
the preset channel.
[0055] In an embodiment, the preset operation request includes a copy-and-paste operation
request and a cut-and-paste operation request. The cloud desktop is provided with
an operation instruction detection program. When the detection program detects that
the operation instruction is a preset operation request, it means that the instruction
detected by the operation instruction detection program is a copy-and-paste operation
request or a cut-and-paste operation request. The detection program can use system
commands to monitor these operation requests, such as using "HOOK" to monitor an operation
request of copy-and-paste or cut-and-paste. The local execution instruction refers
to the instruction executed on the cloud desktop, and the operation content is the
operation content obtained after the local instruction is executed.
[0056] The cloud terminal receives the operation instruction and operation content sent
by the cloud desktop through the preset channel, executes the operation instruction
and operation content to obtain the corresponding file operation result, and sends
the file operation result to the cloud desktop through the preset channel. The preset
channel is a fast channel between the cloud terminal and the cloud desktop, through
which copy-and-paste and cut-and-paste operations are transmitted and returned. Copy-and-paste
and cut-and-paste operation requests can also be received in the file system driver
of the cloud desktop. In order to avoid repeating the copy-and-paste and cut-and-paste
operations, the copy-and-paste and cut-and-paste operation requests from the file
system driver are ignored. Transmission and return through the preset channel can
reduce the division of copy-and-paste and cut-and-paste operation instructions into
multiple corresponding sub-operation instructions in the actual operation process,
thus improving the data processing rate.
[0057] In an embodiment, the above method for disk redirection further includes step S901
of establishing a disk synchronization thread.
[0058] In an embodiment, the disk synchronization thread is configured to synchronize the
file after executing the operation instruction to the disk, and wait for the operation
instruction to be executed, that is, after the file modification is completed, synchronize
the modified file data to the disk.
[0059] In an embodiment, a method for disk redirection is provided, which is applied to
a system for disk redirection. Referring to Fig. 3, the system includes a cloud desktop
110 and a cloud terminal 120. The method for disk redirection includes the following
steps.
[0060] Referring to Fig. 11, Fig. 11 is a sequence diagram showing a process of accessing
a disk.
[0061] At step 1001, a client communication processing service program obtains a terminal
operating system event when a disk is accessed, and obtains drive letter information
of the disk according to event information.
[0062] At step 1002, the client communication processing service program sends the disk
access notification, the drive letter information of the disk and current login user
information of the cloud terminal to a cloud desktop communication processing service
program.
[0063] At step 1003, the cloud desktop communication processing service program forwards
the disk access notification, the current login user information and the drive letter
information to a file system driver.
[0064] At step 1004, after receiving the disk access notification forwarded from the cloud
terminal by the cloud desktop communication processing service program, the file system
driver creates a disk device and a file system device corresponding to the disk device,
and then obtains a corresponding session according to the login user information of
the cloud terminal, and creates a drive letter in the corresponding session.
[0065] In this embodiment, the cloud terminal executing the disk access initiatively initiates
a request, and the cloud desktop operated by a user accepts the request to create
the drive letter, and then performs file system filtering and transparent I/O operation
on the drive letter, which can adapt to various network environments without network
penetration, and the created drive letter also conforms to the user's usage habits
and is convenient to use.
[0066] Referring to Fig. 12, Fig. 12 is a sequence diagram showing a process of a file system
operation.
[0067] At step 1101, a user operates a file on a cloud desktop system, and a file system
driver receives an operation request for a file system device from the cloud desktop
system, such as creating, opening, reading/writing, renaming and deleting a file;
creating, opening, enumerating, renaming and deleting a directory; acquiring and displaying
a volume label; acquiring and displaying size and occupancy of a disk space.
[0068] At step 1102, the file system driver forwards the operation request for the file
system device to the cloud desktop communication processing service program in the
form of an operation instruction plus operation content.
[0069] At step 1103, the cloud desktop communication processing service program sends the
operation instruction and operation content to the client communication processing
service program.
[0070] At step 1103a, when encountering an operation request for a file by an unauthorized
user in multi-user isolation, a process access that does not conform to the permission
rule, a write operation for a file or directory that conforms to the read-only rule,
or a write operation for the entire disk, a failure response can be directly returned
to the file system driver without forwarding the operation request to the client communication
processing service program for processing.
[0071] At step 1103b, a transparent encrypted-decrypted file is identified when being written,
and the file content carried by the write instruction is encrypted before being forwarded
to the client communication processing service program.
[0072] At step 1104, the client communication processing service program receives the operation
instruction and operation content sent from the cloud desktop communication processing
service program, and submits the operation instruction and operation content to the
file system for processing.
[0073] At step 1105, the file system executes a corresponding operation in the corresponding
disk according to the operation instruction and operation content forwarded by the
client communication processing service program. At the same time, a thread is created
at the cloud terminal to synchronize the modified file data in the memory to the disk
after the file modification is completed in sequence.
[0074] At step 1106, after the operation is executed, the file system obtains a file operation
result.
[0075] At step 1107, the file system returns the file operation result to the client communication
processing service program.
[0076] At step 1108, the client communication processing service returns the file operation
result to the cloud desktop communication processing service.
[0077] At step 1109, the cloud desktop communication processing service program receives
the file operation result returned from the client communication processing service
program and responds at the file system driver.
[0078] At step 1109a, when enumerating the returned file operation results, the screened
and hidden files or directories are filtered, and only the filtered results are returned
to the file system driver.
[0079] At step 1109b, when reading the transparent encryption-decryption file, the transparent
encryption-decryption file is identified and marked; the file content returned after
executing the read instruction is decrypted and then responded at the file system
driver.
[0080] At step 1110, at the file system driver, the operation request of the cloud desktop
system to the file system device is completed.
[0081] The above method for disk redirection can efficiently meet the use requirements of
disk redirection and USB mass storage device redirection on cloud desktop, save user
resources, and meet the requirements of users. At the same time, the method has no
special requirements for the user's use environment, has low maintenance cost, and
is convenient for the popularization of cloud desktops. Based on file-level filtering,
extended functions of deep embedding can be provided through configuration, such as
multi-user isolation, read-only of files or directories conforming to specific rules
or the whole disk, screening, transparent encryption and decryption, and encrypted
storage on the terminal side. Clear text is seen on the cloud desktop side, and the
software can be used normally. Access is allowed for processes that conform to specific
rules, while access is not allowed for processes that do not conform to specific rules,
and so on.
[0082] In an embodiment, a method for disk redirection involving copy-and-paste and cut-and-paste
operations is provided. Referring to Fig. 13, Fig. 13 is a flow chart of the implementation
of copy-and-paste and cut-and-paste operations. The implementation of copy-and-paste
and cut-and-paste operations differs from general file system operations in that the
copy-and-paste and cut-and-paste monitoring program for files and directories directly
informs the communication processing service program, and the communication processing
service program preferentially processes the copy-and-paste or cut-and-paste operations
by using a preset channel. During the operation, the related read-write operations
from the file system driver are directly returned by the communication processing
service program according to the processing progress of the preset channel. The method
includes the following steps.
[0083] At step 1201, a user requests a copy-and-paste operation or a cut-and-paste operation,
and the copy-and-paste and cut-and-paste monitoring program module of files and directories
monitors a copy-and-paste event or a cut-and-paste event. When judging that the source
or target of the event points to a designated drive letter, the monitoring program
module notifies the cloud desktop communication processing service program of the
event and the source and target information of the event for processing. The designated
drive letter refers to the drive letter of the disk created in step 1004 with the
currently logged-in user and corresponding to the cloud terminal.
[0084] At step 1202, the cloud desktop communication processing service program divides
the operation into cloud desktop side operation and client side operation for the
copy-and-paste or cut-and-paste notification of files or directories received from
the copy-and-paste and cut-and-paste monitoring program of files and directories.
For the copy-and-paste event, when the source of the event points to a designated
drive letter, the cloud desktop communication processing service program can divide
the operation into: the creation and writing of a file on the cloud desktop, or the
creation of a directory on the cloud desktop; reading and opening a file on the client,
or opening and enumerating a directory on the client. For the cut-and-paste event,
when the source of the event points to a designated drive letter, the cloud desktop
communication processing service program can divide the operation into: creation and
writing of a file on the client, creation of a directory on the client, etc.; reading,
opening and deleting a file on the cloud desktop, or opening, enumerating and deleting
a directory on the cloud desktop, etc.
[0085] At steps 1203 to 1208, the cloud desktop communication processing service program
screens the requests from the file system driver. In case of a copy-and-paste or cut-and-paste
notification request for a file or directory, "Success" will be directly returned
according to the progress of the copy-and-paste and cut-and-paste processing channel,
and will not be sent to the client communication processing service program for repeated
processing. Other requests are handled by common file system operations.
[0086] At step 1203, a preset channel is established between the cloud desktop communication
processing service program and the client communication processing service program.
If a destination of an event points to a designated drive letter, an operation on
the cloud desktop is executed first, and then an operation instruction for the client
is sent to the client communication processing service program. If the operation instruction
is to create and write a file, file content is obtained from the cloud desktop and
directly transmitted to the cloud terminal through the preset channel until the file
operation ends. If the operation instruction is to read and open a file, a file is
created on the cloud desktop, and then wait for received file content to be written
into the file on the cloud desktop until the file operation ends. Other operation
requests, such as deleting a file or creating, opening, enumerating and deleting a
directory, are sent to the client communication processing service program in the
form of an operation instruction plus operation content.
[0087] At step 1204, the client communication processing service program schedules the file
system for priority processing according to the operation request via the preset channel.
[0088] At step 1205, the file system executes the corresponding operation in the disk corresponding
to the operation request according to the operation instruction and operation content
forwarded by the client communication processing service program. At the same time,
a thread is created in the cloud terminal to wait for the file modification to be
completed in sequence and then synchronize the modified file data in the memory to
the storage device.
[0089] At step 1206, after the operation is executed, the file system obtains a file operation
result.
[0090] At step 1207, the file system returns the file operation result to the client communication
processing service program.
[0091] At step 1208, the client communication processing service program returns the file
operation result to the cloud desktop communication processing service program through
the copy-and-paste and cut-and-paste processing channel.
[0092] At step 1209, if the source of the event points to a designated drive letter, the
cloud desktop communication processing service program executes a corresponding cloud
desktop operation divided from the copy-and-paste or cut-and-paste notification.
[0093] The above method for disk redirection can respond to the necessary requests of the
file system, in which it can respond to resource occupation, for example, respond
to lightweight requests such as network resource occupation, disk I/O, memory and
processor resource occupation at both ends, etc., and further realize fast transmission
and return for copy-and-paste, cut-and-paste operations of files and directories.
[0094] Figs. 2, 4 to 10 are flow charts of a method for disk redirection in an embodiment.
It should be understood that although the steps in the flowcharts of figs. 2, 4 to
10 are displayed in sequence as indicated by arrows, these steps are not necessarily
executed in sequence as indicated by arrows. It should be noted that the execution
of these steps is not limited in order, and these steps can be executed in other orders.
Furthermore, at least some of the steps in figs. 2, 4-10 may include a plurality of
sub-steps or stages, which may not necessarily be completed at the same time, but
may be executed at different times, and the execution sequence of these sub-steps
or stages may not necessarily be carried out sequentially, but may be executed in
turn or alternately with other steps or at least a part of sub-steps or stages of
other steps.
[0095] In an embodiment, as shown in Fig. 14, an device 200 for disk redirection is provided,
which includes: a first generation module 201 configured to receive an operation request
for a file in a drive letter and generate a corresponding operation instruction and
operation content according to the operation request; a first sending module 202 configured
to send the operation instruction and operation content to a cloud terminal, to allow
the operation instruction and operation content being executed on a file in a disk
of the cloud terminal, where the disk corresponds to the operation request; and a
response module 203 configured to receive a file operation result after execution
and respond to the file operation result, to realize a synchronous operation between
the file in the drive letter and the file in the corresponding disk.
[0096] In an embodiment, as shown in Fig. 15, the above device 200 for disk redirection
further includes a disk information reception module 301 configured to receive an
access notification of the disk, drive letter information and corresponding login
user information sent by the cloud terminal; a creation module 302, configured to
create a corresponding disk device and a corresponding file system device according
to the access notification, where the file system device is configured to store the
file; a drive letter creation module 303, configured to acquire a corresponding session
according to the login user information; and create, in the session, the corresponding
drive letter according to the drive letter information.
[0097] In an embodiment, as shown in Fig. 16, the above device 200 for disk redirection
further includes a judgement module 401 configured to judge whether the operation
request is a preset operation request, where the preset operation request includes
a copy-and-paste operation request and a cut-and-paste operation request. The first
generation module 201 is further configured to generate a local execution instruction
according to the preset operation request when the operation request is a preset operation
request, and execute the local execution instruction to obtain the operation content.
In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop, and the first sending module 202 is further configured to send
the operation instruction and operation content through the preset operation channel.
[0098] The response module 203 is also configured to receive the file operation result through
the preset operation channel. In an embodiment, as shown in Fig. 17, the above device
200 for disk redirection further includes an encryption module 501 configured to encrypt
file content carried by the write instruction to obtain encrypted operation content,
when the operation request is a write operation request for a transparent encryption-decryption
file; a decryption module 502, configured to decrypt a transparent encryption-decryption
file to obtain a decrypted transparent encryption-decryption file after obtaining
the file operation result of the transparent encryption-decryption file, when the
operation request is a read operation request for the transparent encryption-decryption
file.
[0099] In an embodiment, as shown in Fig. 18, an device 600 for disk redirection is provided,
which includes an instruction reception module 601 configured to receive an operation
instruction and operation content sent by a cloud desktop, where the operation instruction
and the operation content are generated according to an operation request for a file
in a drive letter of the cloud desktop; an instruction execution module 602 configured
to execute the operation instruction and the operation content on a file in a disk
corresponding to the operation request; and a data sending module 603 configured to
send a file operation result after execution to the cloud desktop, to realize a synchronous
operation between the file in the drive letter and the file in the corresponding disk.
[0100] In an embodiment, as shown in Fig. 19, the above device 600 for disk redirection
further includes a disk information acquisition module 701 configured to acquire drive
letter information of the disk and corresponding login user information when receiving
an access notification of the disk; a disk information sending module 702 is configured
to send the access notification, the drive letter information and the login user information
to the cloud desktop, to allow the cloud desktop to create a disk device and a corresponding
file system device according to the access notification, to acquire a corresponding
session according to the login user information, and to create, in the session, the
drive letter according to the drive letter information.
[0101] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop.
[0102] The instruction reception module 601 is further configured to receiving the operation
content and the operation instruction which are sent through the preset channel and
obtained after the cloud desktop executes a local operation instruction, where the
local operation instruction is generated according to a preset operation request including
a copy-and-paste operation request and a cut-and-paste operation request.
[0103] The data sending module 603 is further configured to send the file operation result
after execution to the cloud desktop through the preset channel.
[0104] In an embodiment, the above device 600 for disk redirection further includes a thread
establishment module configured to establishing a disk synchronization thread for
synchronizing the file, on which the operation instruction is executed, to the disk.
[0105] Fig. 20 shows the internal structure of a computer apparatus in an embodiment. The
computer apparatus may be the cloud desktop 110 or the cloud terminal 120 in Fig.
1. As shown in Fig. 20, the computer apparatus includes a processor, a memory, a network
interface, an input device and a display screen connected through a system bus. The
memory includes a nonvolatile storage medium and an internal memory. The nonvolatile
storage medium of the computer apparatus stores an operating system, and can also
store a computer program, which, when executed by a processor, causes the processor
to implement the method for disk redirection. A computer program can also be stored
in the internal memory, which, when executed by the processor, can cause the processor
to execute the method for disk redirection. The display screen of the computer apparatus
can be a liquid crystal display screen or an electronic ink display screen. The input
device of the computer apparatus can be a touch layer covering the display screen;
keys, trackballs or touch pads arranged on the shell of computer apparatus; external
keyboard, touchpad or mouse, etc.
[0106] It can be understood by those having ordinary skills in the art that the structure
shown in Fig. 20 is only a block diagram of some structures related to the technical
scheme of the present disclosure, and does not constitute a limitation on the computer
apparatus to which the technical scheme of the present disclosure applies. the computer
apparatus may include more or fewer components than those shown in the figure, or
combine some components, or have different component arrangements.
[0107] In an embodiment, the device 200 for disk redirection and the device 600 for disk
redirection provided by the present disclosure can be implemented in the form of a
computer program, which can be run on a computer apparatus as shown in Fig. 20. The
memory of the computer apparatus can store respective program modules constituting
the device for disk redirection, such as a first generation module 201, a first sending
module 202B and a response module 203 shown in Fig. 14. A computer program constituted
by the respective program modules causes the processor to execute the steps in the
method for disk redirection of the respective embodiments of the present disclosure
described in this description.
[0108] For example, the computer apparatus shown in Fig. 20 can receive an operation request
for a file in a drive letter through the first generation module 201 in the device
for disk redirection 200 shown in Fig. 14, and generate a corresponding operation
instruction and operation content according to the operation request. The computer
apparatus can send the operation instruction and operation content to the cloud terminal
through the first sending module 202, to allow the operation instruction and operation
content being executed on a file in a disk of the cloud terminal, where the disk corresponds
to the operation request. The computer apparatus can receive a file operation result
after execution through the response module 203, and respond to the file operation
result, to realize a synchronous operation between the file in the drive letter and
the file in the corresponding disk.
[0109] In an embodiment, a computer apparatus is provided, which includes a memory, a processor
and a computer program stored in the memory and executable by the processor. When
the processor executes the computer program, the following steps are implemented:
receiving an operation request for a file in a drive letter, and generating a corresponding
operation instruction and operation content according to the operation request; sending
the operation instruction and operation content to a cloud terminal, to allow the
operation instruction and operation content being executed on a file in a disk of
the cloud terminal, where the disk corresponds to the operation request; and receiving
a file operation result after execution and responding to the file operation result,
to realize a synchronous operation between the file in the drive letter and the file
in the corresponding disk.
[0110] In an embodiment, before receiving the operation request for the file in the drive
letter, the following steps are also implemented when the processor executes the computer
program: receiving an access notification of the disk, drive letter information and
corresponding login user information sent by the cloud terminal; creating a corresponding
disk device and a corresponding file system device according to the access notification,
where the file system device is configured to store the file; acquiring a corresponding
session according to the login user information; and creating, in the session, the
corresponding drive letter according to the drive letter information.
[0111] In an embodiment, when the processor executes the computer program, the following
steps are also implemented: judging whether the operation request is a preset operation
request, where the preset operation request includes a copy-and-paste operation request
and a cut-and-paste operation request; and generating a local execution instruction
according to the preset operation request when the operation request is a preset operation
request; and executing the local execution instruction to obtain the operation content.
[0112] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop, the operation instruction and operation content are sent through
the preset operation channel; receiving the file operation result after execution
includes: receiving the file operation result through the preset operation channel.
[0113] In an embodiment, the operation instruction includes a write instruction, and before
sending the operation instruction and operation content to the cloud terminal, the
following steps are also implemented when the processor executes the computer program:
encrypting file content carried by the write instruction to obtain encrypted operation
content, when the operation request is a write operation request for a transparent
encryption-decryption file; and decrypting a transparent encryption-decryption file
to obtain a decrypted transparent encryption-decryption file after obtaining the file
operation result of the transparent encryption-decryption file, when the operation
request is a read operation request for the transparent encryption-decryption file.
[0114] In an embodiment, a computer-readable storage medium is provided, on which a computer
program is stored. When the computer program is executed by a processor, the following
steps are implemented: receiving an operation request for a file in a drive letter,
and generating a corresponding operation instruction and operation content according
to the operation request; sending the operation instruction and operation content
to a cloud terminal, to allow the operation instruction and operation content being
executed on a file in a disk of the cloud terminal, where the disk corresponds to
the operation request; and receiving a file operation result after execution and responding
to the file operation result, to realize a synchronous operation between the file
in the drive letter and the file in the corresponding disk.
[0115] In an embodiment, before receiving the operation request for the file in the drive
letter, the following steps are also implemented when the processor executes the computer
program: receiving an access notification of the disk, drive letter information and
corresponding login user information sent by the cloud terminal; creating a corresponding
disk device and a corresponding file system device according to the access notification,
where the file system device is configured to store the file; acquiring a corresponding
session according to the login user information; and creating, in the session, the
corresponding drive letter according to the drive letter information.
[0116] In an embodiment, when the processor executes the computer program, the following
steps are also implemented: judging whether the operation request is a preset operation
request, where the preset operation request includes a copy-and-paste operation request
and a cut-and-paste operation request; and generating a local execution instruction
according to the preset operation request when the operation request is a preset operation
request; and executing the local execution instruction to obtain the operation content.
[0117] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop, the operation instruction and operation content are sent through
the preset operation channel; receiving the file operation result after execution
includes: receiving the file operation result through the preset operation channel.
[0118] In an embodiment, the operation instruction includes a write instruction, and before
sending the operation instruction and operation content to the cloud terminal, the
following steps are also implemented when the processor executes the computer program:
encrypting file content carried by the write instruction to obtain encrypted operation
content, when the operation request is a write operation request for a transparent
encryption-decryption file; and decrypting a transparent encryption-decryption file
to obtain a decrypted transparent encryption-decryption file after obtaining the file
operation result of the transparent encryption-decryption file, when the operation
request is a read operation request for the transparent encryption-decryption file.
[0119] For example, the computer apparatus shown in Fig. 20 can receive an operation instruction
and operation content sent by a cloud desktop through the instruction reception module
601 in the device for disk redirection 600 shown in Fig. 18, where the operation instruction
and the operation content are generated according to an operation request for a file
in a drive letter of the cloud desktop. The computer apparatus can execute the operation
instruction and the operation content on a file in a disk corresponding to the operation
request through the instruction execution module 602. The computer apparatus can send
a file operation result after execution to the cloud desktop through the data sending
module 603, to realize a synchronous operation between the file in the drive letter
and the file in the corresponding disk.
[0120] In an embodiment, a computer apparatus is provided, which includes a memory, a processor
and a computer program stored in the memory and executable by the processor. When
the processor executes the computer program, the following steps are implemented:
receiving an operation instruction and operation content sent by a cloud desktop,
where the operation instruction and operation content are generated according to an
operation request for a file in a drive letter of the cloud desktop; executing the
operation instruction and the operation content on a file in a disk corresponding
to the operation request; and sending a file operation result after execution to the
cloud desktop, to realize a synchronous operation between the file in the drive letter
and the file in the corresponding disk.
[0121] In an embodiment, before receiving the operation instruction and the operation content
sent by the cloud desktop, the following steps are also implemented when the processor
executes the computer program: acquiring drive letter information of the disk and
corresponding login user information when receiving an access notification of the
disk; and sending the access notification, the drive letter information and the login
user information to the cloud desktop, to allow the cloud desktop to create a disk
device and a corresponding file system device according to the access notification,
to acquire a corresponding session according to the login user information, and to
create, in the session, the drive letter according to the drive letter information.
[0122] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop. Receiving the operation content sent by the cloud desktop includes:
receiving the operation content and the operation instruction which are sent through
the preset channel and obtained after the cloud desktop executes a local operation
instruction, where the local operation instruction is generated according to a preset
operation request including a copy-and-paste operation request and a cut-and-paste
operation request. Sending the file operation result after execution to the cloud
desktop includes: sending the file operation result after execution to the cloud desktop
through the preset channel.
[0123] In an embodiment, when the processor executes the computer program, the following
step is also implemented: establishing a disk synchronization thread for synchronizing
the file, on which the operation instruction is executed, to the disk.
[0124] In an embodiment, a computer-readable storage medium is provided, on which a computer
program is stored. When the computer program is executed by a processor, the following
steps are implemented: receiving an operation instruction and operation content sent
by a cloud desktop, where the operation instruction and operation content are generated
according to an operation request for a file in a drive letter of the cloud desktop;
executing the operation instruction and the operation content on a file in a disk
corresponding to the operation request; and sending a file operation result after
execution to the cloud desktop, to realize a synchronous operation between the file
in the drive letter and the file in the corresponding disk.
[0125] In an embodiment, before receiving the operation instruction and the operation content
sent by the cloud desktop, the following steps are also implemented when the processor
executes the computer program: acquiring drive letter information of the disk and
corresponding login user information when receiving an access notification of the
disk; and sending the access notification, the drive letter information and the login
user information to the cloud desktop, to allow the cloud desktop to create a disk
device and a corresponding file system device according to the access notification,
to acquire a corresponding session according to the login user information, and to
create, in the session, the drive letter according to the drive letter information.
[0126] In an embodiment, a preset operation channel is preset between the cloud terminal
and the cloud desktop. Receiving the operation content sent by the cloud desktop includes:
receiving the operation content and the operation instruction which are sent through
the preset channel and obtained after the cloud desktop executes a local operation
instruction, where the local operation instruction is generated according to a preset
operation request including a copy-and-paste operation request and a cut-and-paste
operation request. Sending the file operation result after execution to the cloud
desktop includes: sending the file operation result after execution to the cloud desktop
through the preset channel.
[0127] In an embodiment, when the processor executes the computer program, the following
step is also implemented: establishing a disk synchronization thread for synchronizing
the file, on which the operation instruction is executed, to the disk.
[0128] It can be understood by those having ordinary skills in the art that all or some
of the steps, systems and functional modules/units in the devices disclosed above
can be implemented as software, firmware, hardware and appropriate combinations thereof.
In the hardware implementation, the division between functional modules/units mentioned
in the above description does not necessarily correspond to the division of physical
components. For example, a physical component may have multiple functions, or a function
or step may be cooperatively performed by several physical components. Some or all
of the physical components may be implemented as software executed by a processor,
such as a central processing unit, a digital signal processor or a microprocessor,
or as hardware, or as an integrated circuit, such as an application specific integrated
circuit. Such software can be distributed on computer-readable media, which can include
computer storage medium (or non-transitory media) and communication media (or transitory
media). As well known to those of ordinary skill in the art, the term computer storage
medium includes volatile and non-volatile, removable and non-removable media implemented
in any method or technology for storing information such as computer readable instructions,
data structures, program modules or other data. Computer storage medium include but
are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM,
digital versatile disk (DVD) or other optical disk storage, magnetic boxes, magnetic
tapes, magnetic disk storage or other magnetic storage devices, or any other media
that can be used to store desired information and can be accessed by computers. Furthermore,
it is well known to those of ordinary skill in the art that communication media typically
contain computer readable instructions, data structures, program modules or other
data in a modulated data signal such as a carrier wave or other transmission mechanism,
and can include any information delivery media.
[0129] It should be noted that in the present disclosure, relational terms such as "first"
and "second" are only used to distinguish one entity or operation from another, and
do not necessarily require or imply any such actual relationship or order between
these entities or operations. Furthermore, the terms "comprising", "including" or
any other variation thereof are intended to cover non-exclusive inclusion, such that
a process, method, article or equipment including a series of elements includes not
only those elements, but also other elements not explicitly listed, or elements inherent
to such process, method, article or equipment. Without further limitation, the element
defined by the sentence "including one ..." does not exclude that there are other
identical elements in the process, method, article or equipment including the element.
[0130] The above method, device, computer apparatus and storage medium for disk redirection
realize a synchronous operation between the file in the drive letter and the file
in the corresponding disk, by receiving an operation request for a file in a drive
letter, and generating a corresponding operation instruction and operation content
according to the operation request; sending the operation instruction and operation
content to a cloud terminal, to allow the operation instruction and operation content
being executed on a file in a disk of the cloud terminal, where the disk corresponds
to the operation request; and receiving a file operation result after execution and
responding to the file operation result. Therefore, the network adaptability of disk
redirection is improved.
[0131] The above method, device, computer apparatus and storage medium for disk redirection
realize a synchronous operation between the file in the drive letter and the file
in the corresponding disk, by receiving an operation instruction and operation content
sent by a cloud desktop, where the operation instruction and operation content are
generated according to an operation request for a file in a drive letter of the cloud
desktop; executing the operation instruction and the operation content on a file in
a disk corresponding to the operation request; and sending a file operation result
after execution to the cloud desktop. Therefore, the network adaptability of disk
redirection is improved.
[0132] The above system for disk redirection includes a cloud terminal and a cloud desktop,
where the cloud desktop receives an operation request for a file in a drive letter,
generates a corresponding operation instruction and operation content according to
the operation request, and sends the operation instruction and operation content to
the cloud terminal; the cloud terminal executes the operation instruction and the
operation content on a file in a disk corresponding to the operation request; and
the cloud desktop receives a file operation result after execution and respond to
the file operation result, to realize a synchronous operation between the file in
the drive letter and the file in the corresponding disk. Therefore, the network adaptability
of disk redirection is improved.
[0133] The above are several embodiments of the present disclosure, such that those having
ordinary skills in the art can understand or realize the present disclosure. Various
modifications to these embodiments will be apparent to those having ordinary skills
in the art, and the general principles defined herein may be implemented in other
embodiments without departing from the essence or scope of the present disclosure.
Therefore, the present disclosure should not be limited to the embodiments shown herein,
but should be accorded the widest scope consistent with the principles and novel features
applied herein.