A read-only file operation method and device, and a computer device

By uploading read-only files to the server disk for write operations, the problems of disk space waste and modification failure caused by write operations in read-only file systems are solved, achieving more efficient disk space utilization and improved user experience.

CN115129256BActive Publication Date: 2026-01-16NANJING COOLPAD SOFTWARE TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210774697.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2026-01-16
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

In existing technologies, to make read-only files writable, they are usually copied to a writable file system, which leads to a waste of local disk space and may cause modification failures when disk space is scarce, thus degrading the user experience.

Method used

The read-only file is uploaded to the server disk for writing operations, modified using the server's writable file system, and data security and efficiency are ensured through private protocols and communication protocols.

Benefits of technology

It saves local disk space, improves the effective utilization of disk space, avoids the problem of read-only files being unmodifiable, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115129256B_ABST
    Figure CN115129256B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a read-only file operation method, device, computer equipment and system, relates to the computer technical field, the operation method is applied to terminal equipment, and the operation method comprises the following steps: receiving a first operation command, the first operation command is used to indicate that a write operation is performed on a read-only file; the first operation command and the read-only file are sent to a server. The technical scheme of the application uploads the read-only file to the server disk, performs corresponding write operation on the read-only file at the server end, does not need to copy and store the read-only file in the writable file system of the local disk, and then performs write operation, so that the space of the local disk can be saved, the effective utilization rate of the local disk space is improved, even in the environment that the disk space is tight, the problem that the read-only file cannot be modified can be avoided, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and more particularly, to an operation method and device of a read-only file, and a computer device. BACKGROUND

[0002] With the development of science and technology, it is more and more important to protect the security of files in a computer system. In order to prevent files from being maliciously tampered with, the files are usually stored in a read-only file system in a local disk of the computer, and the files in the system can only be read but not written. However, in some necessary scenarios, it is necessary to perform a write operation on the files stored in the read-only file system. In order to make the file writable, the file is usually copied to a writable file system in the local disk, and then a write operation is performed on the copy of the file in the writable file system, and then the copy of the file is validated. However, this will cause two above-mentioned files to be present in the local disk at the same time. Part of the disk space is wasted, especially in the case where the local disk space is small, and a file modification failure may occur, which reduces the user experience.

[0003] Therefore, how to avoid the waste of disk space resources caused by modifying the files in the read-only file system of the local disk to improve the effective utilization of the local disk space and thus improve the user experience is an urgent technical problem to be solved. SUMMARY

[0004] The embodiments of the present application provide an operation method and device of a read-only file, and a computer device, which can save the space of the local disk, improve the effective utilization of the local disk space, and even in the case where the disk space is tight, the problem of the read-only file being unable to be modified does not occur, and the user experience is improved.

[0005] In a first aspect, an operation method of a read-only file is provided, which includes: receiving a first operation command, the first operation command being used to indicate a write operation on the read-only file; and sending the first operation command and the read-only file to a server.

[0006] By way of example, the first operation command is an operation command at a macro level, which can be used to indicate an operation on a terminal device or directly forwarded to the server through the terminal device to indicate an operation on the server. Of course, the terminal device can also re-encapsulate the first operation command after parsing the first operation command to indicate the server to perform a write operation on the read-only file, and the embodiments of the present application do not limit this. The first operation command can only indicate a write operation on the read-only file. The second operation command mentioned later is the same.

[0007] For example, the first operation command includes operation information for indicating operation on the read-only file. The operation information can be represented as "update data information" for instructing the terminal device to write the data included in the first operation command into the read-only file stored in the server disk.

[0008] For example, the first operation command can further include a read-only file identifier for indicating the storage location of the read-only file in the local disk. The read-only file identifier can be the name of the read-only file, the ID in the file management system, or a combination of multiple information such as the name of the read-only file and the file format of the read-only file.

[0009] For example, the process of sending the read-only file can be a copy operation on the read-only file, uploading a copy of the read-only file to the server, or directly migrating the read-only file to the server.

[0010] For example, the server stores the received read-only file in the server disk, which can be another disk deployed locally or a network disk deployed in the cloud.

[0011] Based on the above technical solution, the read-only file can be modified, uploaded to the server disk, and then written, thereby saving the local disk space and improving the effective utilization of the local disk space. Even in a tight disk space environment, the read-only file cannot be modified, further improving the user experience.

[0012] In combination with the first aspect, in some implementations of the first aspect, the read-only file system in which the read-only file is stored is determined to be stored in the local disk.

[0013] For example, the file stored in the read-only file system can only be read but not written. It should be understood that in some necessary scenarios, the read-only file in the read-only file system needs to be written. At this time, the read-only file is exported from the read-only file system and stored in a writable file system, which can be loaded in the server disk of the server, thereby realizing the write operation on the read-only file. The read-only file stored in the writable file system in the server disk can be read and written.

[0014] It should be understood that the write operation on the read-only file is not actually a write operation on the read-only file stored in the read-only file system, but a write operation on the read-only file stored in the writable file system of the server disk. Subsequent actions of the user on the read-only file, such as adding, deleting, modifying, and searching, are all operations on the read-only file in the server disk, not on the read-only file. During the process, the user does not perceive the limitation of the read-only file "read-only", which can improve the user experience.

[0015] In combination with the first aspect, in some implementations of the first aspect, before the first operation command and the read-only file are sent to the server, it is determined that the remaining disk space of the local disk is less than a threshold.

[0016] For example, the threshold can be set to 20% of the total disk space of the local disk remaining disk space. The threshold can also be determined according to the average capacity of the local file. The larger the average capacity of the local file, the larger the threshold.

[0017] In combination with the first aspect, in some implementations of the first aspect, the first indication information is sent to the server, the first indication information is used to indicate the server to determine whether there is a read-only file in the server disk; the first feedback information sent by the server is received, the first feedback information is used to indicate that there is no read-only file in the server disk; and the first operation command and the read-only file are sent to the server according to the first feedback information.

[0018] It should be understood that the first feedback information described above is the indication of the server receiving the first indication information and the feedback information after searching for the read-only file in the server disk.

[0019] For example, since the first operation command carries the related information of the read-only file and the operation information, the first indication information can be the first operation command. When the server receives the first operation command, the read-only file can also be searched in the server disk according to the related information of the read-only file to determine whether there is a read-only file in the server disk. Of course, the first indication information can also be an indication information encapsulated through a private protocol, which directly indicates the server to search for the read-only file in the server disk. Based on the above technical solutions, by determining the read-only file attribute information and then determining the partition information of the local disk to which the read-only file belongs, it can be determined whether the read-only file is stored in the read-only file system or the writable file system, which provides an effective basis for subsequent judgment whether the read-only file needs to be copied and uploaded to the writable file system of the server disk.

[0020] Based on the above technical scheme, before the terminal device sends the read-only file to the server, the server needs to feed back whether the read-only file exists in the server disk, and when the read-only file exists in the server disk, the terminal device sends the first device, prevents repeatedly uploading the read-only file, and makes the server disk exist multiple read-only files, thereby avoiding the waste of server disk space.

[0021] For example, when the read-only file in the server disk is deleted due to subsequent operations, if only the operation command is sent to the server, the server cannot operate the read-only file. Therefore, the terminal device can also instruct the server to confirm whether the read-only file exists in the server disk before sending the operation command. Since it is confirmed that the read-only file has been deleted, the terminal device needs to send the read-only file and the operation command to the server.

[0022] Based on the above technical scheme, the operation on the read-only file deleted in the subsequent operation stored in the server disk can be avoided, and the operation failure of the server on the read-only file is avoided, thereby improving the user experience.

[0023] For example, the terminal device receives a first data packet through a communication protocol, the first data packet is encapsulated by a private protocol, and the operation information in the first operation command is encapsulated by the private protocol; the operation information is obtained by analyzing the first data packet through the private protocol, and the subsequent steps are performed according to the operation information.

[0024] For example, the above private protocol provides a key, which is used for encryption operation of the first data packet in the first data packet encapsulation process. Correspondingly, the key is used for corresponding decryption operation of the first data packet in the first data packet analysis process, so as to analyze the corresponding information in the first data packet.

[0025] For example, the corresponding signaling data and files proposed in the embodiment of the application can be encapsulated, encrypted or analyzed through the private protocol. Similarly, the corresponding signaling data and files proposed in the embodiment of the application can also be encapsulated or analyzed only through the communication protocol, such as the hyper text transfer protocol (HTTP) protocol. However, compared with the above method of data encapsulation or analysis based on the private protocol, the function expansion of the method is strong, so that the operation mode for the read-only file has strong function expansion while ensuring data security.

[0026] For example, the terminal device can also send the read-only file to the server through the communication protocol.

[0027] For example, the data encapsulated by the private protocol can also be transmitted through the communication protocol, and the above communication protocol includes the HTTP protocol.

[0028] For example, for the Linux operating system, the kernel HTTP protocol function can be implemented in the Linux kernel, which is used for the transmission of files, signaling data, or encapsulation of data information, thereby helping to improve the upload efficiency and security of the read-only file in the Linux system and further increasing the compatibility of the read-only file operation method proposed in the application.

[0029] Based on the above technical solution, when the local disk space is sufficient, the read-only file can be directly processed locally to reduce the signaling overhead between the terminal device and the server.

[0030] In combination with the first aspect, in some implementations of the first aspect, a struct super_block corresponding to the read-only file is obtained; and the read-only file system in which the read-only file is stored in the local disk is determined according to partition information of the read-only file included in the struct super_block.

[0031] Based on the above technical solution, the terminal device does not need to determine the partition information of the read-only file through the struct super_block corresponding to the read-only file stored in the memory, thereby simplifying the file operation process and improving the file operation efficiency.

[0032] In combination with the first aspect, in some implementations of the first aspect, the first operation command includes the partition information of the read-only file; and the read-only file system in which the read-only file is stored in the local disk is determined according to the partition information of the read-only file.

[0033] In combination with the first aspect, in some implementations of the first aspect, after the first operation command and the read-only file are sent to the server, a second operation command is received, the second operation command being used to instruct to operate the read-only file; second indication information is sent to the server, the second indication information being used to instruct the server to determine whether the read-only file exists in the server disk; second feedback information sent by the server is received, the second feedback information being used to indicate that the read-only file exists in the server disk; and the second operation command is sent to the server according to the second feedback information.

[0034] For example, the second operation information can be represented as "update data information" to indicate that the data to be written included in the second operation information is written into the read-only file, and can also be represented as "view file" to indicate that the read-only file sent to the server disk is opened. The operation information can also be represented as "delete file" to indicate that the read-only file sent to the server disk is deleted. The operation indication information can also be represented as "empty read-only file" to indicate that all read-only files sent to the server disk are deleted.

[0035] Based on the above technical solution, after the terminal device sends the read-only file to the server, the read-only file exists in the server disk, and the second operation command is directly sent to the server, so that the server directly operates the read-only file, thereby saving the local disk space and improving the effective utilization rate of the local disk space. Even in a situation where the disk space is tight, the read-only file cannot be modified, which further improves the user experience. In addition, when the server disk already stores the read-only file, the terminal device avoids repeatedly uploading the read-only file, thereby wasting the memory space of the server disk.

[0036] In combination with the first aspect, in some implementations of the first aspect, after the first operation command and the read-only file are sent to the server, a read-only file operation record is determined, the read-only file operation record being used to indicate that the read-only file has been sent to the server; a third operation command is received, the third operation command being used to indicate that the read-only file is operated; and the third operation command is sent to the server according to the read-only file operation record.

[0037] For example, the read-only file operation record is used to indicate the operation history of the terminal device on the read-only file, for example, the read-only file has been sent to the server, the read-only file in the server disk has been instructed to be deleted, and the like.

[0038] Based on the above technical solution, after the terminal device confirms the operation history of the read-only file, it can be directly determined whether the read-only file needs to be sent to the server, thereby reducing the signaling overhead between the terminal device and the server.

[0039] In combination with the first aspect, in some implementations of the first aspect, the operation method is applied to a kernel of an operating system.

[0040] For example, the kernel of the operating system can be a kernel of a Linux operating system.

[0041] Based on the above technical solution, the operation method is implemented through the kernel of the operating system, the user cannot perceive the specific file operation through the application layer, and the process also does not require the user to perform the corresponding operation through the application layer, thereby improving the user experience, making the operation method have strong compatibility, scalability, and support for multiple users and multiple tasks.

[0042] In a second aspect, an operating method of a read-only file is provided. The operating method comprises: receiving a read-only file and a first operation command sent by a terminal device, the first operation command being used to indicate a write operation on the read-only file; and performing the write operation on the read-only file according to the first operation command.

[0043] By way of example, the first operation command is an operation command at a macro level, which can be used to instruct the terminal device to operate or be directly forwarded to the server by the terminal device to instruct the server to operate. Of course, the terminal device can also re-encapsulate the first operation command after parsing the first operation command to instruct the server to perform the write operation on the read-only file. The present embodiment does not limit this, and the first operation command can be used to instruct the write operation on the read-only file. The same applies to the second operation command mentioned later.

[0044] Based on the above technical solution, the read-only file can be modified, the read-only file is uploaded to the server disk, and then a corresponding write operation is performed, thereby saving the local disk space and improving the effective utilization rate of the local disk space. Even in an environment where the disk space is tight, the read-only file cannot be modified, and the user's use experience is further improved.

[0045] In combination with the second aspect, in some implementations of the second aspect, the read-only file is a file in a read-only file system stored in a local disk of the terminal device.

[0046] In combination with the second aspect, in some implementations of the second aspect, before receiving the read-only file and the first operation command sent by the terminal device, first indication information sent by the terminal device is received, the first indication information being used to indicate whether the read-only file exists in the server disk; based on the first indication information, it is determined that the read-only file does not exist in the server disk; and first feedback information is sent to the terminal device, so that the terminal device sends the read-only file of the local disk.

[0047] Based on the above technical solution, before the server receives the read-only file and the first operation command sent by the terminal device, the server needs to feed back to the terminal device whether the read-only file exists in the server disk. When the read-only file exists in the server disk, the terminal device sends the first device, prevents repeatedly uploading the read-only file, and makes the server disk have multiple read-only files, thereby avoiding the waste of the server disk space.

[0048] By way of example, the server can receive a first data packet through a communication protocol, the first data packet being encapsulated by a private protocol from operation information in the first operation command; the server parses the first data packet to obtain the operation information, and performs the operation on the read-only file according to the operation information.

[0049] For example, the above-mentioned private protocol provides a key, which is used for encryption of the first data packet in the first data packet encapsulation process, and is correspondingly used for decryption of the first data packet in the first data packet analysis process, so that the corresponding information in the first data packet can be analyzed.

[0050] For example, the corresponding signaling data and files proposed in the embodiments of the present application can be encapsulated, encrypted or analyzed through a private protocol. Similarly, the corresponding signaling data and files proposed in the embodiments of the present application can also be encapsulated or analyzed only through a communication protocol, such as an HTTP protocol. However, compared with the above-mentioned method of data encapsulation or analysis based on a private protocol, the method has strong functional expansibility, so that the operation mode for the read-only file has strong functional expansibility while ensuring data security.

[0051] For example, the server receives the read-only file through a communication protocol.

[0052] For example, the data encapsulated through the private protocol can also be transmitted through a communication protocol, which includes an HTTP protocol.

[0053] For example, for a Linux operating system, the kernel HTTP protocol function can be implemented in the Linux kernel, which is used for transmission or encapsulation of data information of files and signaling data, so as to help improve the upload efficiency and security of the read-only file in the Linux system, and further increase the compatibility of the operation method of the read-only file proposed in the present application.

[0054] In combination with the second aspect, in some implementations of the second aspect, after the write operation is performed on the read-only file according to the first operation command, second indication information sent by the terminal device is received, the second indication information is used to indicate whether the read-only file exists in the server disk; according to the second indication information, it is determined that the read-only file exists in the server disk; second feedback information is sent to the terminal device, the second feedback information is used to indicate that the read-only file exists in the server disk; the second operation command sent by the terminal device is received, the second operation command is used to indicate that the read-only file is operated; and the read-only file is operated according to the second operation command.

[0055] For example, the second operation command can be a read operation, a delete operation, or the like in addition to a write operation on the read-only file. It should be understood that the read-only file has been written again before the read-only file is written, and thus the read-only file should be stored in the server disk. However, to prevent the read-only file from being deleted due to other external operations, the server receives second indication information sent by the terminal device before the second operation command is executed, so that the server searches for the read-only file in the server disk, and then performs the subsequent action according to the search result.

[0056] Based on the technical solution, the read-only file stored in the server disk can be prevented from being deleted in subsequent operations, so that the server fails to operate the read-only file, and the user experience is improved.

[0057] Based on the technical solution, after the server receives the read-only file sent by the terminal device, the read-only file exists in the server disk, and the server only needs to receive the second operation command sent by the terminal device to directly process the read-only file, thereby saving the local disk space and improving the effective utilization rate of the local disk space. Even in an environment where the disk space is tight, the read-only file cannot be modified, and the user experience is further improved.

[0058] In combination with the second aspect, in some implementations of the second aspect, a third operation command sent by the terminal device is received, the third operation command being used to instruct to operate the read-only file; and the read-only file is determined to exist in the server disk storage space according to the third operation command, and the read-only file is operated.

[0059] It should be understood that the third operation command and the second operation command are similar, and can be a write command on the read-only file, or a read command or a delete command on the read-only file.

[0060] Based on the technical solution, when the server disk has stored the read-only file, the server can directly operate the read-only file, without feeding back to the terminal device, thereby saving the signaling overhead between the server and the terminal device.

[0061] In a third aspect, an operation apparatus of a read-only file is provided, and the operation apparatus includes: a receiving unit configured to receive a first operation command, the first operation command being used to instruct to perform a write operation on a read-only file; and a sending unit configured to send the first operation command and the read-only file to a server.

[0062] In combination with the third aspect, in some implementations of the third aspect, the operation apparatus further includes a determining unit configured to determine that the read-only file is stored in a read-only file system of a local disk.

[0063] With reference to the third aspect, in some implementations of the third aspect, the determining unit is further configured to determine that the remaining disk space of the local disk is less than a threshold value before sending the first operation command and the read-only file to the server.

[0064] With reference to the third aspect, in some implementations of the third aspect, the sending unit is further configured to send first indication information to the server, the first indication information being used to instruct the server to determine whether the read-only file exists in the server disk; the receiving unit is further configured to receive first feedback information sent by the server, the first feedback information being used to instruct that the read-only file does not exist in the server disk; and the sending unit is further configured to send the first operation command and the read-only file to the server according to the first feedback information.

[0065] With reference to the third aspect, in some implementations of the third aspect, the first operation command comprises partition information of the read-only file; and the determining unit is specifically configured to determine that the read-only file is stored in the read-only file system of the local disk according to the partition information of the read-only file.

[0066] With reference to the third aspect, in some implementations of the third aspect, the obtaining unit is configured to obtain a structsuper_block corresponding to the read-only file; and the determining unit is further configured to determine that the read-only file is stored in the read-only file system of the local disk according to partition information of the read-only file included in the structsuper_block.

[0067] With reference to the third aspect, in some implementations of the third aspect, the receiving unit is further configured to receive a second operation command, the second operation command being used to instruct to perform a write operation on the read-only file; the sending unit is further configured to send second indication information to the server, the second indication information being used to instruct the server to determine whether the read-only file exists in the server disk; the receiving unit is further configured to receive second feedback information sent by the server, the second feedback information being used to instruct that the read-only file exists in the server disk; and the sending unit is further configured to send the second operation command to the server according to the second feedback information.

[0068] With reference to the third aspect, in some implementations of the third aspect, the determining unit is further configured to determine a read-only file operation record, the read-only file operation record being used to instruct that the read-only file has been sent to the server; and the sending unit is further configured to send a third operation command to the server according to the read-only file operation record.

[0069] With reference to the third aspect, in some implementations of the third aspect, the operation apparatus is implemented based on a kernel of an operating system.

[0070] In a fourth aspect, an operation apparatus for a read-only file is provided, and the operation apparatus includes: a receiving unit configured to receive a read-only file and a first operation command sent by a terminal device, the first operation command being used to instruct a write operation on the read-only file; and an operation unit configured to perform the write operation on the read-only file according to the first operation command.

[0071] With reference to the fourth aspect, in some implementations of the fourth aspect, the read-only file is a file in a read-only file system stored in a local disk of the terminal device.

[0072] With reference to the fourth aspect, in some implementations of the fourth aspect, the receiving unit is further configured to receive first indication information sent by the terminal device, the first indication information being used to instruct a determination of whether the read-only file exists in a server disk; the operation apparatus further includes: a determination unit configured to determine, according to the first indication information, that the read-only file does not exist in the server disk; and a sending unit configured to send first feedback information to the terminal device, so that the terminal device sends the read-only file of the local disk.

[0073] With reference to the fourth aspect, in some implementations of the fourth aspect, the receiving unit is further configured to receive second indication information sent by the terminal device, the second indication information being used to instruct a determination of whether the read-only file exists in a server disk; the determination unit is further configured to determine, according to the second indication information, that the read-only file exists in the server disk; the sending unit is further configured to send second feedback information to the terminal device, the second feedback information being used to instruct that the read-only file exists in the server disk; the receiving unit is further configured to receive a second operation command sent by the terminal device, the second operation command being used to instruct an operation on the read-only file; and the operation unit is further configured to perform the operation on the read-only file according to the second operation command.

[0074] With reference to the fourth aspect, in some implementations of the fourth aspect, the receiving unit is further configured to receive a third operation command sent by the terminal device, the third operation command being used to instruct an operation on the read-only file; and the operation unit is further configured to determine, according to the third operation command, that the read-only file exists in a storage space of a server disk, and perform the operation on the read-only file.

[0075] In a fifth aspect, an operation apparatus for a read-only file is provided, and the operation apparatus includes a memory configured to store computer instructions, and a processor configured to execute the computer instructions stored in the memory, so that the apparatus performs any operation method that can be implemented in the operation method of the first aspect, or so that the apparatus performs any operation method that can be implemented in the operation method of the second aspect.

[0076] In a sixth aspect, a computer device is provided, which includes any of the operating devices that may be implemented in the third aspect, or any of the operating devices that may be implemented in the fourth aspect, or any of the operating devices that may be implemented in the fifth aspect. Attached Figure Description

[0077] Figure 1 This is a schematic framework diagram of a computer device 1 provided in an embodiment of this application.

[0078] Figure 2 This is another schematic framework diagram of the computer device 1 provided in the embodiments of this application.

[0079] Figure 3 This is a schematic diagram illustrating the principle of implementing read-only file write operations through an overlay file system, as provided in an embodiment of this application.

[0080] Figure 4 This is a flowchart of a method for implementing read-only file write operations through an overlay file system, as provided in an embodiment of this application.

[0081] Figure 5 This is a flowchart of an operation method for a read-only file provided in an embodiment of this application.

[0082] Figure 6 This is a flowchart of another read-only file operation method provided in the embodiments of this application.

[0083] Figure 7 This is a flowchart of another read-only file operation method provided in the embodiments of this application.

[0084] Figure 8 This is a flowchart of another read-only file operation method provided in the embodiments of this application.

[0085] Figure 9 This is a flowchart of another read-only file operation method provided in the embodiments of this application.

[0086] Figure 10 This is a flowchart of another read-only file operation method provided in the embodiments of this application.

[0087] Figure 11 This is a schematic block diagram of a read-only file operation device 1100 provided in an embodiment of this application.

[0088] Figure 12 This is a schematic block diagram of a read-only file operation device 1200 provided in an embodiment of this application. Detailed Implementation

[0089] The technical solutions in the embodiments of the present application will be described below with reference to the drawings.

[0090] The read-only file operation apparatus provided by the embodiments of the present application can be applied to a computer device. Optionally, the computer device can be a handheld device such as a smart phone, a terminal device such as a personal computer, a server-side device such as a server computer, or a smart wearable device such as a smart watch, and the present application is not particularly limited.

[0091] Figure 1 A schematic framework diagram of the computer device 1 provided by the embodiments of the present application is shown.

[0092] As shown in Figure 1 , the computer device 1 includes a hardware layer 10, an operating system layer 20 running on the hardware layer 10, and an application layer 30 running on the operating system layer 20. The hardware layer 10 includes hardware such as a processor, a memory, and an external storage. The operating system layer 20 is any one or more computer operating systems that implement business processing through a process, for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer 30 includes application programs such as a browser, an address book, word processing software, and instant messaging software.

[0093] Specifically, the operating system layer 20 includes a kernel 201, which is the core of the operating system layer 20 and is responsible for managing processes, memory, device drivers, files, and network systems of the system, and determines the performance and stability of the system. The kernel 201 is a bridge connecting the application layer 30 and the hardware layer 10.

[0094] Based on the embodiment shown in Figure 1 , the present application provides a computer device 1. Figure 2 Another schematic framework diagram of the computer device 1 provided by the embodiments of the present application is shown.

[0095] As shown in Figure 2 , an application program (Application, APP) 301 is a computer program in the application layer 30, which is located in the user space of the computer device 1 and can be used and designed by a user.

[0096] In contrast to the user space, the kernel 201 in the operating system layer 20 is located in the kernel space of the computer device 1. The kernel 201 is independent of the user-level application program, and the kernel 201 can access a protected memory space and has all permissions to access underlying hardware devices. In order to ensure the security of the kernel 201, the operating system layer 20 generally forces the user process to be unable to directly operate the kernel 201.

[0097] Optionally, in the kernel space, the kernel 201 can include a system call interface (SCI) 210, a memory management unit (MMU) 220, a process manager 230, a virtual file system (VFS) 240, a file system (FS) 250, a device driver 260, and the like.

[0098] Specifically, in the kernel 201, the system call interface (SCI) 210 provides an interface for the user space to access the kernel space. Under different hardware architectures of the computer device 1, the method of entering the kernel space through the SCI 210 is different.

[0099] The memory management unit (MMU) 220 is used to control the data interaction between the memory and the processor in the computer device 1. Specifically, the MMU 220 receives a memory access request from the processor and controls the access to the memory based on the memory access request.

[0100] The process manager 230 is a program for managing multiple processes in the operating system. The process manager 230 can be used to implement process scheduling, interrupt handling, signal / process priority, context switching, process state management, and progress memory management.

[0101] The virtual file system (VFS) 240 is an intermediate processing system between the file system (FS) 250 and the system call interface (SCI) 210. In the embodiments of the present application, the computer device 1 can support multiple different types of file systems. As an example but not limitation, the FS 250 can include EXT2, EXT3, EXT4, F2FS, rootfs, proc, and the like.

[0102] In order to support different file systems, the VFS 240 hides the specific details of the hardware of different file systems, separates the file system operations and the specific hardware implementation of different file systems, and provides a unified interface for all devices.

[0103] The device driver 260 is one of the main parts of the kernel 201. The device driver 260 actually controls the interaction between the operating system layer 20 and the hardware layer 10. Specifically, the device driver 260 is used to accomplish the specific operation details related to the hardware devices in the hardware layer 10 in addition to providing a set of abstract interfaces understandable by the operating system layer 20 to accomplish the interaction between the operating system layer 20. Generally, the device driver 260 is related to the control chip of the hardware device.

[0104] It can be understood that, in the embodiments of the present application, the kernel 201 in the operating system layer 20 and the application program in the application layer 30 are all software modules in the computer device 1, which are specifically implemented as computer programs (or also called computer codes). In order to realize the functions of the programs, as shown in the figure, the hardware layer 10 of the computer device 1 needs to include at least one processor 110. In addition to the processor 110, the hardware layer 10 can also include memories such as the memory 120 and the external storage 130. Figure 2

[0105] Specifically, the function of the processor 110 is mainly to interpret the instructions of the computer program and process the data in the computer program. The instructions of the computer program and the data in the computer program can be saved in the memory 120 and / or the external storage 130 of the computer device 1.

[0106] Optionally, the processor 110 can be an integrated circuit chip with signal processing capability. As an example but not limitation, the processor 110 can be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. Among them, the general purpose processor is a microprocessor and the like. For example, the processor 110 is a central processing unit (CPU).

[0107] Each processor 110 includes at least one processing unit. Optionally, the processing unit is also called core, which is the most important component of the processor. All calculations, command acceptance, command storage and data processing of the processor 110 are performed by the core.

[0108] ​The memory 120, also referred to as main memory, is used to temporarily store data for processing in the processor 110 and data exchanged with the external storage 130. The memory 120 has a faster data read-write speed with the processor 110. In addition, the memory 120 can provide a running space for a process in the computer device 1, for example, the memory 120 stores a computer program for generating a process. After the computer program is run by the processor 110 to generate a process, the processor 110 allocates a corresponding storage space in the memory 120 for the process. The memory 120 stores data generated during the running of the process in the above-mentioned storage space corresponding to the process, for example, intermediate data, process data, and the like.

[0109] By way of example and not limitation, in embodiments of the present application, the memory 120 can be a volatile memory. The volatile memory can be a random access memory (RAM). By way of example and not limitation, many forms of RAM can be used, such as static random access memory (SRAM), dynamic random access memory (DRAM), and the like.

[0110] The external storage 130, also referred to as secondary storage, refers to a storage device in the computer device 1 other than the memory 120 and the cache. Optionally, the external storage 130 can be a storage device that can save data after power off. The external storage 130 can have a relatively large capacity and can store file data such as pictures, videos, and text and application programs in the computer device 1 to meet the user's use requirements.

[0111] By way of example and not limitation, in embodiments of the present application, the external storage 130 can be a non-volatile memory, a disk, an optical disk, a U disk (also known as a USB flash disk), or a secure digital memory card (SD card), and the like. The non-volatile memory can include at least one of the following memories: a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), and a flash memory (FLASH). In addition, the disk can be a hard disk (Hard Disk) or a floppy disk (Soft Disk), and the hard disk can include a solid state disk (SSD), a hybrid hard disk (HHD), a mechanical hard disk (HDD), and the like.

[0112] It should be understood that the structure of the computer device 1 listed above is only an example, and the present application is not limited thereto. The computer device 1 of the embodiments of the present application includes various software modules or hardware modules in the prior art computer system, for example, for the hardware modules, the computer device 1 further includes a communication device, a sensor device, and various function peripheral devices, and the like.

[0113] For the above computer device 1, the storage space of the memory 120 mainly affects the running speed of the computer device 1, and therefore, the memory 120 can also be referred to as "working memory". The storage space of the external memory 130 mainly affects the file data storage capability of the computer device 1, and the storage space of the external memory 130 can be understood as the storage space for storing file data in the computer device 1.

[0114] As an example, the local disk is the main carrier of the files in the computer device, and plays a crucial role in the running process of the computer device. The local disk has sufficient space to store the files in the computer device, and is a prerequisite for the normal operation of the computer device. Therefore, the effective utilization rate of the local disk space is very important. In order to protect some files from being mistakenly written or maliciously tampered with, these files are usually set to read-only attributes to become read-only files, for example, these files are stored in a read-only file system, in which write operations cannot be directly performed on these files. However, in some necessary scenarios, it is necessary to write data to the read-only file, but the file is in the read-only file system and cannot be directly written. The existing solution is to use overlay technology to realize the write operation on the file in the read-only file system. The overlay file system is a stack file system that can merge different directories in other file systems and then present them to the user.

[0115] In order to facilitate the understanding of the embodiments of the present application, the terms and concepts involved in the embodiments of the present application are first explained.

[0116] 1) Read-only file system: a software level concept, which is a system for file management. In a disk with a read-only file system, the files stored in the disk can only be read and cannot be written. For example, a compact disc read-only memory (CD-ROM) is equipped with a read-only file system. At this time, the user can only read the files stored in the CD-ROM and cannot write the files.

[0117] 2) Writeable file system: also a concept in software level, a system for file management, in the disk with writeable file system, the file stored in the disk can be read and written. For example, the local disk in computer can be equipped with writeable file system.

[0118] It should be understood that, read-only file system and writeable file system are concepts in software level, so they have no necessary connection with storage medium, whether the file stored in storage medium can be read depends on file management system equipped on storage medium, when read-only file system is equipped on storage medium, the file stored in the storage medium cannot be written, even if data is written into the file, the result is also write failure. Similarly, when writeable file system is equipped on storage medium, the file stored in the storage medium can be read and written.

[0119] Figure 3 The principle diagram of implementing read-only file write operation through overlay file system is shown, correspondingly, Figure 4 The method flow diagram of implementing read-only file write operation through overlay file system is shown.

[0120] S410: obtaining write file operation function through file_operations data structure.

[0121] S420: judging whether the file is stored in read-only file system, yes, going to S430, no, going to 440.

[0122] S430: copying the file to writeable file system through overlay technology, and writing the copied file.

[0123] In one embodiment, the user can use the following command:

[0124] mount-t overlay overlay-o lowerdir= / lower,upperdir= / upper,

[0125] workdir= / work / merged

[0126] will be Figure 3The contents in the / lower directory of the read-only file system and the / upper directory of the writable file system are merged in the writable file system, that is, all files in the Dir A folder in the / lower directory and the File B are copied to the writable file system, and the File C does not need to be copied because the File C originally exists in the writable file system, and finally all the contents of the files in the two directories are displayed to the user through the / merge directory.

[0127] S440: Directly write the file through the ext4_file_write_iter command.

[0128] It should be understood that the existing above-mentioned solution needs to prepare the / upper directory in advance on the local disk, and when writing the read-only file, it needs to be copied from / lower to / upper, that is, the read-only file exists in the local disk / lower and / upper, thereby causing the waste of part of the space of the local disk, reducing the effective utilization rate of the local disk space, and even in the environment where the local disk space is tight, the read-only file cannot be modified due to the lack of local disk space.

[0129] In an embodiment, in a router application scenario, the router is configured with some parameters by default when it is shipped, and these configuration information is written in the configuration file of the read-only file system. For the convenience of description, the files are defined as "read-only files" in the embodiment of the application. After the user uses the router, the user will usually modify some default configuration parameters, such as password, number of accessible devices, and flow control. At this time, the parameter information to be modified needs to be written into the read-only file. The partition information of the read-only file is read-only, so the read-only file can be copied from the read-only file system to the writable file system by using the overlay technology. The modified configuration parameters are written into the copied read-only file in the writable file system. For the convenience of description, the files copied from the read-only file system to the writable file system are defined as "read-only file copies" in the embodiment of the application. Then, the updated parameters in the read-only file copy are synchronized to the system of the router, and the change of the configuration parameters of the router is completed. It should be understood that although the read-only file copy with a newer version is generated in the above process, the read-only file still needs to be reserved. Taking the above router application scenario as an example, after the user modifies the configuration file, the user needs to restore the router to the factory settings due to some reasons. At this time, the read-only file needs to be called from the read-only file system of the router, and the configuration parameters of the read-only file need to be overwritten on the existing configuration, so as to complete the operation of restoring the router to the factory settings. Therefore, after the read-only file copy is generated, the read-only file also needs to be reserved. In this way, two configuration files exist in the local disk, one is the read-only file storing the default configuration parameters, and the other is the read-only file copy storing the user-defined configuration parameters, which causes the waste of local disk space. When the local disk space is insufficient, the file writing fails, and the user experience is reduced.

[0130] Therefore, the application provides an operation method of a read-only file, which can be applied to write operation on a file in a read-only file system. When it is identified that the file to be written is a read-only file, the file is copied to the disk of the server, and the write operation of the read-only file is completed on the server side. Through the method, the file stored in the read-only file system is operated correspondingly, the space of the local disk is saved, the effective utilization rate of the local disk space is improved, even in the environment where the disk space is insufficient, the read-only file cannot be modified, and the user experience is improved.

[0131] Figure 5 A flowchart of an operation method of a read-only file provided by an embodiment of the application is shown. The operation method flowchart can be applied to the first operation on a read-only file. The operation can be a write operation on the read-only file, and the execution subject of the specific file operation can be a terminal device.

[0132] S510: receiving a first operation command, the first operation command being used to indicate a write operation on the read-only file.

[0133] S520: sending the first operation command and the read-only file to the server.

[0134] In some possible implementation embodiments, the first operation command is an operation command at a macro level, which can be used to indicate an operation on the terminal device or directly forwarded to the server by the terminal device to indicate an operation on the server. Of course, the terminal device can also re-encapsulate the first operation command after parsing the first operation command to indicate the server to perform a write operation on the read-only file, and the embodiments of the present application do not limit this, as long as the first operation command can indicate a write operation on the read-only file. The same applies to the second operation command in subsequent embodiments.

[0135] In some possible implementation embodiments, the process of sending the read-only file can be a copy operation on the read-only file, uploading a copy of the read-only file to the server, or directly migrating the read-only file to the server, and the embodiments of the present application do not limit this. In addition, when the first operation command is a write command, the read-only file can be finally stored in the writeable file system of the server disk to implement the write operation on the read-only file.

[0136] In some possible implementation embodiments, before S520, the following steps can also be performed:

[0137] S515: determining that the read-only file is stored in the read-only file system of the local disk.

[0138] It should be understood that the file stored in the read-only file system is read-only. The file stored in the writeable file system is read-write.

[0139] In one embodiment, the first operation command can include a read-only file identifier, which is used to indicate the storage location of the read-only file in the local disk. The read-only file identifier can be the name of the read-only file, the ID in the file management system, or a combination of multiple information, such as the name of the read-only file and the file format of the read-only file, and the embodiments of the present application do not limit this. Therefore, according to the read-only file identifier, the partition information of the read-only file can be determined, that is, whether the read-only file is stored in the read-only file system or the writeable file system, and if the read-only file is stored in the read-only file system, the related operation of S520 is performed.

[0140] Taking Linux as an example, each file in Linux corresponds to a structinode structure. This structure records the disk partition information to which the file belongs. Based on this disk partition information, the file management system to which the file belongs can be determined. In one embodiment, the local disk in the Linux system is divided into multiple partitions. Based on the first data mentioned above, it is determined that a write operation needs to be performed on the file / data / fileA, that is, a write operation needs to be performed on the file file A in the / data partition. Therefore, when writing to the file / data / fileA, the Linux system needs to first open the file file A. Then, the Linux system generates an inode structure structinode for the file file A. Through the contents of structsuper_block in structinode, the partition information of the file file A can be determined. Through the partition information, it can be determined whether the / data partition is a read-only partition and whether it carries a read-only file system. In addition, it can be determined whether the file file A is stored in a read-only file system. If the file file A is stored in a read-only file system, the relevant operations of S520 are performed.

[0141] In one embodiment, the first operation command may further include partition information of the read-only file. That is, when the user knows the disk partition information to which the read-only file belongs, they can directly add the read-only file attribute information to the first operation command and send it to the terminal device. The terminal device directly determines whether the read-only file on the local disk is stored in a read-only file system or a writable file system based on the partition information of the read-only file. If the partition information of the read-only file indicates that the read-only file is stored in a read-only file system on the local disk, then the relevant operation in S520 is performed.

[0142] In S520, if a read-only file is copied to generate a read-only file copy, and the read-only file copy is sent to the writable file system of the server disk, then there is a one-to-one correspondence between the read-only file and the read-only file copy. That is, the relationship between the two can be two versions of the same file, with the read-only file being the original version and the read-only file copy being the modified version.

[0143] In one embodiment, prior to S520, the terminal device may also determine that the remaining disk space on the local disk is less than a threshold.

[0144] For example, this threshold can be set to 20% of the total disk space remaining on the local disk. The specific threshold can be determined based on the average size of local files; the larger the average size of local files, the larger the threshold. Therefore, when there is sufficient local disk space, read-only files can be processed directly locally, reducing signaling overhead between the terminal device and the server.

[0145] In an embodiment, the server disk is a disk space independent of the local disk, which can be classified into a common server disk and a cloud server disk. The common server disk can be a mobile hard disk or an independent hard disk, and the cloud server disk is a network disk. Both of the two types of server disks are applicable to the method proposed in the application. The specific type and form of the server disk are not limited in the embodiments of the application, as long as the server disk is independent of the local disk.

[0146] It should be understood that, after the server receives the first operation command and the read-only file, the read-only file in the server disk can be operated according to the first operation command.

[0147] In an embodiment, the first operation command can be encapsulated into a first data packet through a private protocol, and the first data packet is sent to the terminal device. The constitution, encapsulation rule and analysis rule of the first operation command are defined in the private protocol. The terminal device analyzes the first data packet according to the analysis rule to obtain the first operation command, and then performs corresponding operation on the read-only file.

[0148] For example, the first operation command can be defined in the private protocol as follows:

[0149] Form 1, the first operation command={to-be-written data; read-only file identifier; operation information};

[0150] In this example, the operation indication information can be “update data information”, which is used to instruct the terminal device to write the to-be-written data into the read-only file stored in the writable file system of the server disk.

[0151] For example, the first operation command can be: “op=write; content=to-be-written data; file= / data / read-only file;”.

[0152] Form 2, the first operation command={to-be-written data; read-only file identifier; read-only file attribute information; operation information};

[0153] The definition of the operation indication information is the same as that in Form 1.

[0154] The above are all exemplary descriptions, and the specific constitution of the first data defined in the private protocol is not limited in the application, which can be extended adaptively according to the functions added in the system.

[0155] In an embodiment, the corresponding signaling data and files proposed in the embodiments of the present application can be encapsulated or parsed through a private protocol. Similarly, the corresponding signaling data and files proposed in the embodiments of the present application can also be encapsulated or parsed only through a communication protocol, such as an HTTP protocol, but the function expansion of this method is stronger than that of the above-mentioned method of encapsulating or parsing data based on a private protocol.

[0156] Based on the above technical solutions, especially when the first operation command is a write operation command, the modification of the corresponding file in the read-only file system can be implemented, the file in the read-only file system is uploaded to the server disk, and then the corresponding write operation is performed, thereby saving the local disk space and improving the effective utilization rate of the local disk space. Even in an environment where the disk space is tight, the read-only file cannot be modified, and the user's use experience is further improved.

[0157] In some possible implemented embodiments, the operation method of the read-only file proposed in the present application can be applied to various operating systems, such as a Linux system, a Windows system, an Android system, etc. In order to facilitate the transmission of the read-only file and the signaling data, the data transmission function can be realized through an HTTP protocol. However, for the Linux operating system, there is currently no way to realize file transmission through the HTTP protocol in the Linux kernel. Therefore, for the Linux operating system, the kernel HTTP protocol function is realized in the Linux kernel for the transmission of files and signaling data or encapsulation of data information, thereby helping to improve the uploading efficiency and security of the read-only file in the Linux system and further increasing the compatibility of the operation method of the read-only file proposed in the present application.

[0158] Based on the above technical solutions, the universality and scalability of the operation method of the read-only file proposed in the present application can be further increased.

[0159] In an embodiment, before S520, the server can be instructed to perform file searching on the server disk to determine whether the read-only file exists in the server disk. Figure 6 FIG. 6 shows another operation method of a read-only file provided by an embodiment of the present application.

[0160] S610: first indication information is sent to a server, and the first indication information is used to instruct the server to determine whether a read-only file exists in a server disk.

[0161] In some possible implementation embodiments, the first indication information can be the first operation command, since the first operation command carries the relevant information of the read-only file and the operation information. When the server receives the first operation command, the read-only file can also be searched in the server disk according to the relevant information of the read-only file, to determine whether the read-only file exists in the storage space of the server disk. Of course, the first indication information can also be an indication information encapsulated through a private protocol, which directly instructs the server to search the read-only file in the server disk. The specific generation manner of the first indication information is not limited in the present application.

[0162] If the read-only file does not exist in the server disk, the first feedback information is sent to the terminal device, the first feedback information is used to indicate that the read-only file does not exist in the server disk, and then the terminal device enters the step S620.

[0163] S620: receiving the first feedback information sent by the server, the first feedback information is used to indicate that the read-only file does not exist in the server disk.

[0164] Similar to the first indication information, the first feedback information can also be data encapsulated by the server through a private protocol. When the terminal device receives the first feedback information, the first feedback information is parsed through the private protocol, to determine that the read-only file does not exist in the server disk, and then the step S630 is entered.

[0165] S630: according to the first feedback information, sending the first operation command and the read-only file to the server.

[0166] The above technical solutions and corresponding embodiments provided in the present application are all applied to the first write operation on the local disk or the read-only file in the read-only file system of the local disk. When the subsequent (after the above S520) operation on the local disk or the read-only file in the read-only file system of the local disk is still needed, the corresponding process steps need to be adjusted. Figure 7 A flowchart of another operation method of a read-only file provided by an embodiment of the present application is shown.

[0167] S710: receiving a second operation command, the second operation command is used to instruct to operate the read-only file.

[0168] In one embodiment, similar to the first operation command, the second operation command can be defined in the following form through a private protocol:

[0169] Form 1, the second operation command={data to be written; read-only file identifier; operation information};

[0170] The operation instruction information in this example can be "update data information", which is used to instruct the terminal device to write the to-be-written data into the read-only file stored in the writable file system of the server disk.

[0171] For example, the second operation command can be "op=write; content=to-be-written data; file= / data / read-only file;".

[0172] Form 2, the second operation command={to-be-written data; read-only file identifier; read-only file attribute information; operation information};

[0173] The definition of the operation instruction information is the same as that in Form 1.

[0174] Form 3, the second operation command={read-only file identifier; operation information};

[0175] The operation instruction information in this example can be "view file", which is used to instruct to open the read-only file that has been sent to the server disk and present the content of the read-only file in the server disk to the user.

[0176] For example, the second operation command can be "op=read; file= / data / read-only file;".

[0177] The operation instruction information in this example can also be "delete file", which is used to instruct to delete the read-only file that has been sent to the server disk.

[0178] For example, the second operation command can be "op=delete; file= / data / read-only file;".

[0179] Form 4, the second operation command={operation information};

[0180] The operation instruction information in this example can be "clear read-only file", which is used to instruct to delete all the read-only files that have been sent to the server disk.

[0181] For example, the second operation command can be "op=clear;".

[0182] Based on the above description, the second operation command can not only be a write command for the read-only file, but also a read command or a delete command for the read-only file.

[0183] S720: Send the second instruction information to the server, and the second instruction information is used to instruct the server to determine whether the read-only file exists in the server disk.

[0184] It should be understood that, since the corresponding operation has been performed on the above read-only file before, if the write operation has been performed, theoretically, the above read-only file should exist in the writable file system of the server disk, and the second feedback information is sent to the terminal device, the second feedback information is used to indicate that the above read-only file exists in the writable file system of the server disk. At this time, the terminal device enters the S730 step.

[0185] S730: receiving the second feedback information sent by the server, the second feedback information is used to indicate that the above read-only file exists in the server disk.

[0186] At this time, the terminal device can determine that the above read-only file exists in the writable file system of the server disk, and enters the S740 step.

[0187] S740: according to the second feedback information, sending the second operation command to the server.

[0188] It should be understood that, after the server receives the second operation command, the above read-only file can be operated according to the second operation command.

[0189] Based on the above technical scheme, after the terminal device sends the above read-only file to the server, the above read-only file exists in the server disk, the second operation command is directly sent to the server, so that the server directly processes the above read-only file, saves the space of the local disk, improves the effective utilization rate of the local disk space, even in the environment of tight disk space, the problem that the read-only file cannot be modified will not appear, and the use experience of the user is further improved.

[0190] It should be understood that, when the above read-only file in the server disk is deleted due to subsequent operation, if only the second operation command is sent to the server, the server cannot perform write operation on the above read-only file. Therefore, the terminal device still needs to instruct the server to confirm whether the above read-only file exists in the server disk before sending the second operation command. Since it is confirmed that the above read-only file has been deleted, the terminal device needs to send the above read-only file and the second operation command to the server. Therefore, S730 and S740 will be adjusted as follows:

[0191] S735: receiving the third feedback information sent by the server, the third feedback information is used to indicate that the above read-only file does not exist in the server disk.

[0192] S745: according to the third feedback information, sending the second operation command and the above read-only file to the server.

[0193] In an embodiment, if a corresponding operation, for example, a write operation, is performed on the read-only file for the first time, a read-only file operation record can be determined, which is used to store the operation history of the terminal device on the read-only file, for example, the read-only file has been sent to the server, the server has been instructed to delete the read-only file in the server disk, and the like. When the read-only file is operated again subsequently, the terminal device can determine that the corresponding read-only file has been stored in the writable file system of the server disk according to the read-only file operation record. At this time, the second instruction information does not need to be sent to the server disk, and the server does not need to search in the server disk, but can directly operate the read-only file in the server disk according to the second operation command. The efficiency of file operation is improved.

[0194] Based on the above technical solutions, the situation that the server fails to operate the read-only file due to the operation on the read-only file stored in the server disk and deleted in subsequent operations can be avoided, and the user experience is improved.

[0195] In an embodiment, when the user needs to restore the content of the modified version of the read-only file in the server disk to the original version of the read-only file in the local disk, the user can re-upload the read-only file in the local disk through the terminal device to cover the modified version of the read-only file already stored in the server disk, so as to make it consistent with the original version of the read-only file, under the condition of retaining the original version of the read-only file in the local disk. Based on the technical solution, the user does not need to change the content of the read-only file copy back to the initial read-only file content through the write operation, which facilitates the user operation and improves the file operation efficiency in this scenario.

[0196] In an embodiment, the above read-only file operation method provided by the embodiment of the present application can be performed in the Linux kernel. Based on the technical solution, the user cannot perceive the file operation of the system on the read-only file or the read-only file copy through the application layer, and the process also does not need the user to perform the corresponding operation through the application layer, which improves the user experience, and the method is implemented based on the Linux kernel, so that the read-only file operation method provided by the embodiment of the present application has strong compatibility, scalability and supports multiple users and multiple tasks.

[0197] The embodiment of the present application also proposes another read-only file operation method with the server as the execution subject. Figure 8 A flowchart of another read-only file operation method provided by the embodiment of the present application is shown. The method flow is applicable to the first operation on the read-only file:

[0198] S810: receiving a read-only file and a first operation command sent by a terminal device, the first operation command being used to instruct a write operation on the read-only file.

[0199] In one embodiment, the read-only file is a file in a read-only file system stored in a local disk of the terminal device.

[0200] S820: performing a write operation on the read-only file according to the first operation command.

[0201] Similar to the above embodiment, the first operation command can be encapsulated into a first data packet through a private protocol, and the terminal device sends the first data packet to the server disk. The composition, encapsulation rule and parsing rule of the first operation command are defined in the private protocol, and the server disk parses the first data packet according to the parsing rule to obtain the first operation command, and then makes the server disk perform the corresponding operation. In addition, the corresponding signaling data and files proposed in the embodiments of the present application can be encapsulated or parsed through the private protocol. Similarly, the corresponding signaling data and files proposed in the embodiments of the present application can also be encapsulated or parsed only through a communication protocol, such as the HTTP protocol. However, the function expansion of this method is stronger than that of the above-mentioned data encapsulation or parsing method based on the private protocol.

[0202] Based on the above technical solution, especially when the first operation command is a write operation command, the corresponding file in the read-only file system can be modified, the file in the read-only file system is uploaded to the server disk, and then the corresponding write operation is performed, thereby saving the space of the local disk and improving the effective utilization rate of the local disk space. Even in an environment where the disk space is tight, the read-only file cannot be modified, which further improves the user experience.

[0203] In some possible implementation embodiments, the operation method of the read-only file proposed in the present application can be applied to various operating systems, such as Linux system, Windows system, Android system, etc. In order to facilitate the transmission of the read-only file and the signaling data, the data transmission function can be realized through the HTTP protocol. However, for the Linux operating system, there is currently no way to realize file transmission through the HTTP protocol in the Linux kernel. Therefore, for the Linux operating system, the kernel HTTP protocol function is realized in the Linux kernel to transmit or encapsulate data information, thereby helping to improve the uploading efficiency and security of the read-only file in the Linux system, and further increasing the compatibility of the operation method of the read-only file proposed in the present application.

[0204] Based on the above technical solution, the universality and expandability of the operation method of the read-only file proposed in the present application can be further increased.

[0205] In one embodiment, before receiving the read-only file and the first operation command sent by the terminal device, the server can first perform file searching on the server disk according to the indication of the terminal device to determine whether the read-only file exists in the server disk, Figure 9 Fig. 6 shows a flowchart of another method for operating a read-only file according to an embodiment of the present application.

[0206] S910: receiving first indication information sent by the terminal device, the first indication information being used to indicate whether the read-only file exists in the server disk.

[0207] It should be understood that the first indication information is used to indicate whether the server searches the server disk for the read-only file.

[0208] S920: determining, according to the first indication information, that the read-only file does not exist in the server disk.

[0209] Since it is the first operation on the read-only file, after searching the server disk storage space according to the indication of the first indication information, it can be determined that the read-only file does not exist in the server disk.

[0210] S930: sending first feedback information to the terminal device to enable the terminal device to send the read-only file of the local disk.

[0211] Since there is no corresponding read-only file in the server disk storage space for write operation, in order to enable the write operation on the read-only file in the server disk, the terminal device needs to be fed back information that the read-only file does not exist in the server disk, so that the terminal device can send the read-only file to the server disk, and the server disk can operate the read-only file.

[0212] The above technical solutions and corresponding embodiments proposed in the present application are all applied to the first write operation on the read-only file. When the subsequent (after S820) operation on the read-only file is still needed, the corresponding flow steps need to be adjusted. Figure 10 Fig. 6 shows a flowchart of another method for operating a read-only file according to an embodiment of the present application.

[0213] S1010: receiving second indication information sent by the terminal device, the second indication information being used to indicate whether the read-only file exists in the server disk.

[0214] It should be understood that the second indication information can be used to indicate that the server searches the server disk for the read-only file.

[0215] S1020: determining, according to the second indication information, that the read-only file exists in the server disk.

[0216] It should be understood that the read-only file exists in the server disk storage space because the corresponding operation has been performed on the read-only file in the server disk in advance.

[0217] S1030: sending second feedback information to the terminal device, the second feedback information being used to indicate that the read-only file exists in the server disk.

[0218] S1040: receiving the second operation command sent by the terminal device, the second operation command being used to indicate that the operation is performed on the read-only file.

[0219] S1050: performing the operation on the read-only file according to the second operation command.

[0220] It should be understood that when the read-only file in the server disk is deleted due to subsequent operations, the server cannot perform the operation on the read-only file if the server only receives the second operation command sent by the terminal device. Therefore, before receiving the second operation command, the server also needs to receive the indication information of the terminal device, so that the server confirms whether the read-only file exists in the server disk. Since it is confirmed that the read-only file has been deleted, the server needs to make the terminal device send the read-only file and the second operation command together. Therefore, S1020, S1030 and S1040 will be adjusted as follows:

[0221] S1025: determining that the read-only file does not exist in the server disk storage space according to the second indication information.

[0222] S1035: sending third feedback information, the third feedback information being used to indicate that the read-only file does not exist in the server disk.

[0223] S1045: receiving the second operation command and the read-only file sent by the terminal device.

[0224] Based on the above technical solution, the operation on the read-only file stored in the server disk and deleted in subsequent operations can be avoided, so that the server operation failure on the read-only file is avoided, and the user experience is improved.

[0225] In one embodiment, the operation method of the read-only file provided in the embodiment of the present application can be performed in the Linux kernel. Based on the technical solution, the user cannot perceive the file operation on the read-only file or the read-only file copy by the system through the application layer, and the user does not need to perform the corresponding operation through the application layer, which improves the user experience, and the method is implemented based on the Linux kernel, so that the operation method of the read-only file provided in the embodiment of the present application has strong compatibility, scalability and supports multiple users and multiple tasks.

[0226] Based on the technical scheme, the read-only file in the read-only file system can be uploaded to the writable file system of the server disk, the write operation on the read-only file is realized, the space resource of the local disk is saved, and the use experience of the user is improved.

[0227] The embodiment of the application further provides a device for implementing the operation method of the read-only file, for example, another operation device of the read-only file includes units (or means) for implementing the above-mentioned methods.

[0228] Figure 11 A schematic block diagram of an operation device 1100 of a read-only file is shown. The operation device 1100 is applied to a terminal device, such as a mobile phone, a tablet computer, a computer, a server, a network device, a wearable device, or the like. Figure 11 As shown, the device 1100 includes:

[0229] The receiving unit 1110 is configured to receive a first operation command, and the first operation command is used to instruct a write operation on a read-only file.

[0230] The sending unit 1130 is configured to send the first operation command and the read-only file in the read-only file system to a server.

[0231] Optionally, the device 1100 further includes:

[0232] The determining unit 1120 is configured to determine that the read-only file is stored in a read-only file system of a local disk.

[0233] Optionally, the sending unit 1130 is further configured to send first indication information to the server, and the first indication information is used to instruct the server to determine whether the read-only file exists in a server disk; the receiving unit 1110 is further configured to receive first feedback information sent by the server, and the first feedback information is used to instruct that the read-only file does not exist in the server disk; and the sending unit 1130 is further configured to send the first operation command and the read-only file to the server according to the first feedback information.

[0234] Optionally, the determining unit 1120 determines that the remaining disk space of the local disk is less than a threshold value before sending the first operation command and the read-only file to the server.

[0235] Optionally, the sending unit 1130 is further configured to send first indication information to the server, and the first indication information is used to instruct the server to determine whether the read-only file exists in a server disk; the receiving unit 1110 is further configured to receive first feedback information sent by the server, and the first feedback information is used to instruct that the read-only file does not exist in the server disk; and the sending unit 1130 is further configured to send the first operation command and the read-only file to the server according to the first feedback information.

[0236] Optionally, the first operation command comprises partition information of the read-only file; and the determining unit 1120 is specifically configured to determine, according to the partition information of the read-only file, that the read-only file is stored in the read-only file system of the local disk.

[0237] The apparatus 1100 further comprises an obtaining unit 1140 configured to obtain a structsuper_block corresponding to the read-only file; and the determining unit 1120 is further configured to determine, according to partition information of the read-only file included in the structsuper_block, that the read-only file is stored in the read-only file system of the local disk.

[0238] Optionally, the receiving unit 1110 is further configured to receive a second operation command, the second operation command being used to instruct to perform a write operation on the read-only file; the sending unit 1130 is further configured to send, to the server, second indication information, the second indication information being used to instruct the server to determine whether the read-only file exists in the disk of the server; the receiving unit 1110 is further configured to receive second feedback information sent by the server, the second feedback information being used to instruct that the read-only file exists in the disk of the server; and the sending unit 1130 is further configured to send, to the server, the second operation command according to the second feedback information.

[0239] Optionally, the determining unit 1120 is further configured to determine a read-only file operation record, the read-only file operation record being used to instruct that the read-only file has been sent to the server; and the sending unit 1130 is further configured to send, to the server, a third operation command according to the read-only file operation record.

[0240] Optionally, the operation apparatus 1100 is implemented based on a kernel of an operating system.

[0241] Figure 12 A schematic block diagram of another operation apparatus 1200 of a read-only file is shown. The operation apparatus 1200 is applied to a server disk, and the server disk comprises a read-only file system and a read-only file. Figure 12 As shown in the figure, the apparatus 1200 comprises:

[0242] a receiving unit 1210 configured to receive a read-only file and a first operation command sent by a terminal device, the first operation command being used to instruct to perform a write operation on the read-only file;

[0243] an operation unit 1220 configured to perform a write operation on the read-only file according to the first operation command.

[0244] Optionally, the read-only file is a file stored in a read-only file system of a local disk of the terminal device.

[0245] Optionally, the receiving unit 1210 is further configured to receive first indication information sent by the terminal device, the first indication information being used to instruct to determine whether the read-only file exists in the disk of the server; and the operation apparatus 1200 further comprises:

[0246] The determining unit 1230 is configured to determine, according to the first indication information, that the read-only file does not exist in the server disk.

[0247] The sending unit 1240 is configured to send, to the terminal device, first feedback information, so that the terminal device sends the read-only file of the local disk.

[0248] Optionally, the receiving unit 1210 is further configured to receive second indication information sent by the terminal device, the second indication information being used to indicate whether the read-only file exists in the server disk; the determining unit 1230 is further configured to determine, according to the second indication information, that the read-only file exists in the server disk; the sending unit 1240 is further configured to send, to the terminal device, second feedback information, the second feedback information being used to indicate that the read-only file exists in the server disk; the receiving unit 1210 is further configured to receive a second operation command sent by the terminal device, the second operation command being used to indicate that the read-only file is operated; and the operating unit 1220 is further configured to operate the read-only file according to the second operation command.

[0249] Optionally, the receiving unit 1210 is further configured to receive a third operation command sent by the terminal device, the third operation command being used to indicate that the read-only file is operated; and the operating unit 1220 is further configured to determine, according to the third operation command, that the read-only file exists in the storage space of the server disk, and operate the read-only file.

[0250] The embodiment of the present application further provides a computer device, which comprises the device capable of implementing the method described above.

[0251] The embodiment of the present application further provides another read-only file operating device, which comprises a memory configured to store computer instructions, and a processor configured to execute the computer instructions stored in the memory, so that the device executes the possible read-only file operating method described above.

[0252] The above-described embodiments, all or part of which are implemented through software, hardware, firmware or any combination thereof. When implemented through software, the above-described embodiments, all or part of which are implemented in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the above-described processes or functions are generated according to the embodiments of the present application.

[0253] Optionally, the computer is a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus or devices. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, such as from one website, computer, server or data center to another website, computer, server or data center through a wired or wireless connection (e.g., infrared, wireless, microwave, etc.).

[0254] The computer readable storage medium is any available medium or collection of media that the computer can access and includes a server, a data center, and the like, containing one or more computer readable storage media. The computer readable storage medium is a magnetic medium (e.g., a floppy diskette, a hard disk drive), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state hard drive).

[0255] It should be understood that the term "and / or" in this text is merely used to describe an associated relationship between associated objects, and means that there are three relationships, for example, A and / or B means that there are three cases of A alone, A and B together, and B alone, where A and B are singular or plural. In addition, the character " / " in this text generally represents an "or" relationship between the associated objects before and after it, but it can also represent an "and / or" relationship. The specific meaning can be understood according to the context before and after it.

[0256] In this application, "at least one" means one or more, and "multiple" means two or more. "At least one of the following" or the like means any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c means a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c are single or multiple.

[0257] It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of the processes should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0258] Those of ordinary skill in the art can realize that the system and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0259] In several embodiments provided in the present application, it should be understood that the disclosed system and device can be implemented in other manners.

[0260] For example, the described device embodiments are merely illustrative, for example, the division of the system is merely a logical function division, and actual implementation can be another division manner, for example, a plurality of modules or components are combined or integrated into another system, or some features are ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed modules is indirect coupling or communication connection through some interface, device or module, and is electrical, mechanical or other forms.

[0261] Optionally, each function system in the embodiments of the present application can be integrated in a processing device, and optionally, each module is physically present alone, or two or more modules are integrated in one module.

[0262] If the functions are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part of the technical solutions that make contributions to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (such as a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (CD-ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0263] The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of operating a read-only file, characterized by, The operation method is applied to a terminal device, and the operation method comprises: receiving a first operation command, the first operation command being used for instructing a write operation on a read-only file; determining that the read-only file is stored in a file system of a local disk; if it is determined that the read-only file is stored in a writable file system of the local disk, performing the write operation on the read-only file; or if it is determined that the read-only file is stored in a read-only file system of the local disk, sending first indication information to a server, the first indication information being used for instructing the server to determine whether the read-only file exists in a server disk; receiving first feedback information sent by the server, the first feedback information being used for instructing that the read-only file does not exist in the server disk; according to the first feedback information, sending the first operation command and the read-only file to the server.

2. The method of claim 1, wherein, Before the sending of the first operation command and the read-only file to the server, the operation method further comprises: determining that a remaining disk space of the local disk is less than a threshold value.

3. The method of claim 1, wherein, The first operation command comprises partition information of the read-only file, and the determination that the read-only file is stored in a file system of the local disk comprises: according to the partition information of the read-only file, determining that the read-only file is stored in the read-only file system or the writable file system of the local disk.

4. The operating method according to claim 1, characterized in that, The determination that the read-only file is stored in a file system of the local disk comprises: obtaining a super block structure struct super_block corresponding to the read-only file; according to partition information of the read-only file included in the struct super_block, determining that the read-only file is stored in the read-only file system of the local disk.

5. The method of operating according to any one of claims 1 to 4, characterized in that, After the sending of the first operation command and the read-only file to the server, the operation method further comprises: receiving a second operation command, the second operation command being used for instructing an operation on the read-only file; sending second indication information to the server, the second indication information being used for instructing the server to determine whether the read-only file exists in a server disk; receiving second feedback information sent by the server, the second feedback information being used for instructing that the read-only file exists in the server disk; according to the second feedback information, sending the second operation command to the server.

6. The method of operating according to any one of claims 1 to 4, characterized in that, After the sending of the first operation command and the read-only file to the server, the operation method further comprises: determining a read-only file operation record, the read-only file operation record being used for instructing that the read-only file has been sent to the server; receiving a third operation command, the third operation command being used for instructing an operation on the read-only file; according to the read-only file operation record, sending the third operation command to the server.

7. The method of operating according to any one of claims 1 to 4, characterized in that, The operation method is applied to a kernel of an operating system.

8. An operation method of a read-only file, characterized by, The operation method is applied to a server, and the operation method comprises: receiving first indication information sent by a terminal device, the first indication information being used for instructing a determination of whether a read-only file exists in a server disk; determining, according to the first indication information, that the read-only file does not exist in the server disk; sending first feedback information to the terminal device, so that the terminal device sends the read-only file of the local disk; receiving the read-only file and a first operation command sent by the terminal device, the first operation command being used to instruct to perform a write operation on the read-only file; performing a write operation on the read-only file according to the first operation command; wherein the first indication information is sent when the terminal device determines that the read-only file is stored in a read-only file system of the local disk of the terminal device, and if the terminal device determines that the read-only file is stored in a writable file system of the local disk, the terminal device performs a write operation on the read-only file.

9. The method of claim 8, wherein, After the write operation on the read-only file according to the first operation command, the operation method further comprises: receiving second indication information sent by the terminal device, the second indication information being used to instruct to determine whether the read-only file exists in the server disk; determining, according to the second indication information, that the read-only file exists in the server disk; sending second feedback information to the terminal device, the second feedback information being used to instruct that the read-only file exists in the server disk; receiving a second operation command sent by the terminal device, the second operation command being used to instruct to perform an operation on the read-only file; performing an operation on the read-only file according to the second operation command.

10. The operating method according to claim 8, characterized in that, After the write operation on the read-only file according to the first operation command, the operation method further comprises: receiving a third operation command sent by the terminal device, the third operation command being used to instruct to perform an operation on the read-only file; determining, according to the third operation command, that the read-only file exists in the storage space of the server disk, and performing an operation on the read-only file.

11. An apparatus for operating a read-only file, characterized by The operation apparatus comprises: a receiving unit configured to receive a first operation command, the first operation command being used to instruct to perform a write operation on a read-only file; a determining unit configured to determine that the read-only file is stored in a file system of a local disk; an operation unit configured to perform a write operation on the read-only file when the determining unit determines that the read-only file is stored in a writable file system of the local disk; a sending unit configured to send first indication information to a server when the determining unit determines that the read-only file is stored in a read-only file system of the local disk, the first indication information being used to instruct the server to determine whether the read-only file exists in a server disk; the receiving unit is further configured to receive first feedback information sent by the server, the first feedback information being used to instruct that the read-only file does not exist in the server disk; the sending unit is further configured to send the first operation command and the read-only file to the server according to the first feedback information.

12. The operating device according to claim 11, characterized in that The determining unit is further configured to determine that a remaining disk space of the local disk is less than a threshold value before the sending unit sends the first operation command and the read-only file to the server.

13. The operating device according to claim 11, characterized in that The first operation command comprises partition information of the read-only file. The determining unit is further configured to determine, according to the partition information of the read-only file, that the read-only file is stored in the read-only file system or the writable file system of the local disk.

14. The operating device according to claim 11, characterized by The operation apparatus further includes: an obtaining unit, configured to obtain a super block structure struct super_block corresponding to the read-only file; The determining unit is further configured to determine, according to the partition information of the read-only file included in the struct super_block, that the read-only file is stored in the read-only file system of the local disk.

15. Operating device according to any one of claims 11 to 14, characterized in that The receiving unit is further configured to receive a second operation command, the second operation command being used to instruct a write operation on a read-only file; The sending unit is further configured to send second indication information to the server, the second indication information being used to instruct the server to determine whether the read-only file exists in a server disk; The receiving unit is further configured to receive second feedback information sent by the server, the second feedback information being used to indicate that the read-only file exists in the server disk; The sending unit is further configured to send, according to the second feedback information, the second operation command to the server.

16. The operating device according to any one of claims 11 to 14, characterized in that The determining unit is further configured to determine a read-only file operation record, the read-only file operation record being used to indicate that the read-only file has been sent to the server; The sending unit is further configured to send, according to the read-only file operation record, a third operation command to the server, the third operation command being used to instruct an operation on the read-only file.

17. The operating device according to any one of claims 11 to 14, characterized by The operation apparatus is implemented based on a kernel of an operating system.

18. An apparatus for operating a read-only file, characterized by The operation apparatus includes: a receiving unit, configured to receive first indication information sent by a terminal device, the first indication information being used to instruct a determination of whether a read-only file exists in a server disk; and the operation apparatus further includes: a determining unit, configured to determine, according to the first indication information, that the read-only file does not exist in the server disk; a sending unit, configured to send first feedback information to the terminal device, so that the terminal device sends the read-only file in a local disk; The receiving unit is further configured to receive a read-only file and a first operation command sent by the terminal device, the first operation command being used to instruct a write operation on the read-only file; an operation unit, configured to perform a write operation on the read-only file according to the first operation command; The first indication information is sent when the terminal device determines that the read-only file is stored in a read-only file system of a local disk of the terminal device; and if the terminal device determines that the read-only file is stored in a writable file system of the local disk, the terminal device performs a write operation on the read-only file.

19. The operating device according to claim 18, characterized in that The receiving unit is further configured to receive second indication information sent by the terminal device, the second indication information being used to instruct a determination of whether the read-only file exists in a server disk; The determining unit is further configured to determine, according to the second indication information, that the read-only file exists in the server disk; and The receiving unit is further configured to receive second feedback information sent by the server, the second feedback information being used to indicate that the read-only file exists in the server disk; and The sending unit is further configured to send, according to the second feedback information, the second operation command to the server. The sending unit is further configured to send second feedback information to the terminal device, where the second feedback information is used to indicate that the read-only file exists in the server disk. The receiving unit is further configured to receive a second operation command sent by the terminal device, where the second operation command is used to indicate operation on the read-only file. The operation unit is further configured to operate on the read-only file according to the second operation command.

20. The operating device according to claim 18, characterized by The receiving unit is further configured to receive a third operation command sent by the terminal device, where the third operation command is used to indicate operation on the read-only file. The operation unit is further configured to determine, according to the third operation command, that the read-only file exists in the server disk storage space, and operate on the read-only file.

21. An apparatus for operating a read-only file, characterized by The apparatus comprises: a memory configured to store computer instructions; a processor configured to execute the computer instructions stored in the memory, so that the apparatus performs the operation method in any one of claims 1 to 7, or so that the apparatus performs the operation method in any one of claims 8 to 10.

22. A computer device, comprising: The computer device comprises: the operation apparatus in any one of claims 11 to 17, or the operation apparatus in any one of claims 18 to 20, or the operation apparatus in claim 21.

Citation Information

Patent Citations

  • Image file conversion method and device

    CN107004032A

  • File debugging method and device, terminal equipment and storage medium

    CN108334453A