File modification method, system, device, medium and computer program product

CN118069600BActive Publication Date: 2026-10-30NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410250944.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-06
Publication Date
2026-10-30
Estimated Expiration
2044-03-06

Smart Images

  • Figure CN118069600B_ABST
    Figure CN118069600B_ABST
Patent Text Reader

Abstract

The present disclosure provides a file modification method, system, device, medium and computer program product. The modification method comprises: obtaining an operation instruction of a file to be modified, and encapsulating the operation instruction into a corresponding task; mapping a copy file to a preset virtual system in the memory to obtain a corresponding target virtual file; selecting the target virtual file corresponding to the file to be modified based on a storage address, and modifying the target virtual file based on the operation instruction corresponding to the task to obtain a virtual modification result; and synchronizing the virtual modification result to the copy file to obtain a target modification result corresponding to the file to be modified. By encapsulating the operation on the file into the corresponding task, the file operation corresponding to the task is all synchronized to the second partition in the flash at one time, which avoids frequent writing to the flash and increases the service life of the flash.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of system file processing technology, and in particular to a method, system, device, medium and computer program product for modifying files. Background Technology

[0002] Current file modification methods involve using system-exclusive functions to write file content to the system cache, which then automatically writes the content back to the hardware flash memory. Alternatively, application developers can manually write the content to the system cache and then call system functions to write it back to the hardware flash. However, frequent file write operations will repeatedly access the flash memory, reducing its lifespan. Furthermore, these operations can overwrite user partition files, making them unrecoverable from their original factory settings. Additionally, a factory reset will erase the user partition, rendering the data unrecoverable.

[0003] Public content

[0004] The technical problem to be solved by this disclosure is to overcome the defect that the file modification method in the prior art involves frequent FLAS operations, which leads to a reduction in the lifespan of the flash memory, and to provide a file modification method, system, device, medium and computer program product.

[0005] This disclosure solves the above-mentioned technical problems through the following technical solution:

[0006] Firstly, a method for modifying a file is provided, the method comprising:

[0007] Obtain the operation instructions for the file to be modified, and encapsulate the operation instructions into a corresponding task (an independent task);

[0008] The task includes the storage address of the file to be modified, the file to be modified is located in the first partition of the flash memory, and the second partition of the flash memory includes a copy file corresponding to the file to be modified.

[0009] The copy file is mapped to a preset virtual system in memory to obtain the corresponding target virtual file;

[0010] Based on the storage address, the target virtual file corresponding to the file to be modified is selected, and the target virtual file is modified based on the operation instructions corresponding to the task to obtain the virtual modification result;

[0011] The virtual modification result is synchronized to the copy file to obtain the target modification result corresponding to the file to be modified.

[0012] Preferably, after encapsulating the operation instructions into corresponding tasks, the method further includes:

[0013] Add several of the aforementioned tasks to a preset container;

[0014] If the number of tasks in the preset container equals a preset task number threshold, then the preset container is locked.

[0015] The process of modifying the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result includes:

[0016] The target virtual file is modified based on the operation instructions corresponding to the task in the locked preset container to obtain a virtual modification result.

[0017] Preferably, the second partition is larger than the first partition;

[0018] The files in the first partition are read-only files, while the files in the second partition are read-write files.

[0019] Preferably, the system includes a plurality of preset containers, and the step of adding the plurality of tasks to the preset containers includes:

[0020] The encapsulated task is added sequentially to the preset container;

[0021] If the number of tasks in the currently added preset container is equal to the preset task number threshold, then the subsequently encapsulated tasks will be added to other preset containers.

[0022] Preferably, the copy file is initially an empty file.

[0023] Preferably, after obtaining the corresponding target virtual file, the process further includes:

[0024] The target virtual file in the preset virtual system is retrieved based on a preset time interval;

[0025] The steps for selecting the target virtual file corresponding to the file to be modified based on the storage address, modifying it, and then obtaining the virtual modification result include:

[0026] The task is parsed to obtain the corresponding operation instructions. The target virtual file in the preset virtual system is modified based on the operation instructions to obtain the virtual modification result.

[0027] Secondly, a file modification system is provided, the modification system including an operation instruction encapsulation module, a virtual system mapping module, a virtual operation module, and a result synchronization module;

[0028] The operation instruction encapsulation module is used to obtain the operation instructions of the file to be modified and encapsulate the operation instructions into a corresponding task; wherein, the task includes the storage address of the file to be modified, the file to be modified is located in the first partition of the flash memory, and the second partition of the flash memory includes a copy file corresponding to the file to be modified;

[0029] The virtual system mapping module is used to map the copy file to a preset virtual system in memory to obtain the corresponding target virtual file;

[0030] The virtual operation module is used to select the target virtual file corresponding to the file to be modified based on the storage address, and modify the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result;

[0031] The result synchronization module is used to synchronize the virtual modification result to the copy file to obtain the target modification result corresponding to the file to be modified.

[0032] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and for running on the processor, wherein the processor executes the computer program to implement the file modification method as described in the first aspect.

[0033] Fourthly, a computer storage medium is provided, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it implements the file modification method as described in the first aspect.

[0034] Fifthly, a computer program product is provided, including a computer program that, when executed by a processor, implements the file modification method as described in the first aspect.

[0035] Based on common knowledge in the field, the above-mentioned preferred conditions can be combined arbitrarily to obtain various preferred embodiments of this disclosure.

[0036] The positive and progressive effects of this disclosure are as follows: by encapsulating the operation instructions of the file to be modified into corresponding tasks, the file to be modified is mapped to the second partition in flash to obtain a copy file, and the copy file is mapped to the virtual system in memory to obtain a virtual file. When the system performs synchronization, all the operation instructions corresponding to the tasks in the virtual file system are synchronized to the second partition in flash at once, avoiding frequent writing to flash and increasing the lifespan of flash. Attached Figure Description

[0037] Figure 1 This is a flowchart illustrating the method for modifying a document according to Embodiment 1 of this disclosure;

[0038] Figure 2 This is a schematic diagram of the partition structure in the document modification method of Embodiment 1 of this disclosure;

[0039] Figure 3 This is a flowchart illustrating step S101 of the document modification method in Embodiment 1 of this disclosure;

[0040] Figure 4 This is a schematic diagram of the task parsing steps in the document modification method of Embodiment 1 of this disclosure;

[0041] Figure 5 This is a schematic diagram of the task synchronous writing step in the file modification method of Embodiment 1 of this disclosure;

[0042] Figure 6 This is a schematic diagram of the document modification system of Embodiment 2 of this disclosure;

[0043] Figure 7 This is a schematic diagram of the hardware structure of the electronic device according to Embodiment 3 of this disclosure. Detailed Implementation

[0044] The present disclosure is further illustrated below by way of embodiments, but the present disclosure is not limited to the scope of the embodiments described herein.

[0045] In the description of this disclosure, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise expressly specified.

[0046] Example 1

[0047] This embodiment provides a method for modifying a file, such as... Figure 1 As shown, the modification method includes:

[0048] S101. Obtain the operation instructions for the file to be modified, and encapsulate the operation instructions into a corresponding task.

[0049] The task includes the storage address of the file to be modified, the file to be modified is located in the first partition of the flash memory, and the second partition of the flash memory includes a copy file corresponding to the file to be modified.

[0050] S102. Map the copy file to a preset virtual system in memory to obtain the corresponding target virtual file;

[0051] S103. Select the target virtual file corresponding to the file to be modified based on the storage address, and modify the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result;

[0052] S104. Synchronize the virtual modification result to the copy file to obtain the target modification result corresponding to the file to be modified.

[0053] In step S101, as Figure 2 As shown, the files to be modified can be stored in the flash memory as the first partition, the user_data partition. The corresponding files to be modified are labeled as file_0, file_1, ..., file_n. A new user_cover partition is created as the second partition. In the user_cover partition, copies of all files in the user_data partition are created, labeled as cover_0, cover_1, ..., cover_n. The operation instructions for the files to be modified in the corresponding user_data partition are encapsulated as tasks, labeled as task_0, task_1, ..., task_n. These operation instructions include, but are not limited to, modifying the content of the files to be modified, deleting or adding files, and specifying the storage address of the files to be modified in the user_data partition.

[0054] In step S102, when the original system starts, a virtual file system is built in memory. This virtual file system can be a virfs (Virtual File System). Mapping files of all files in the user_cover partition are created in the virtual file system as target virtual files and marked as vir_0, vir_1, ..., vir_n. The initial content of the target virtual files is copied from the corresponding copy files cover_0, cover_1, ..., cover_n in the user_cover partition.

[0055] In step S103, based on the storage address of the file to be modified in the task, the corresponding file to be modified is queried and marked as file_x. The mapping file of the file to be modified in virfs according to the mapping relationship is vir_x. The system parses the operation instructions encapsulated in the task and executes the operation instructions of the task to the vir_x file. That is, the operation instructions correspond to modifying the content of the file to be modified, deleting the file to be modified, or adding a file. The system writes the modified content to the target virtual file, deletes the target virtual file, or creates a new target virtual file in the virtual file system, and absorbs the content of the task into the target virtual file to obtain the corresponding virtual modification result.

[0056] In step S104, the virtual modification result of the target virtual file vir_x in the original system synchronizes the virtual system file to the corresponding copy file cover_x in the user_cover partition, so as to obtain the modification result of the copy file cover_x as the target modification result of the file file_x to be modified.

[0057] In this solution, file operations are encapsulated into corresponding tasks and stored in the first partition. The encapsulated tasks are temporarily mapped to a virtual file system in memory. When the system performs synchronization, all file operations corresponding to the tasks in the virtual file system are synchronized to the second partition in flash memory at once, avoiding frequent writes to flash memory and increasing flash memory lifespan.

[0058] As a feasible approach, such as Figure 3 As shown, after encapsulating the operation instruction into a corresponding task in step S101, the method further includes:

[0059] S1011. Add several of the tasks to a preset container;

[0060] S1012. In response to the fact that the number of tasks in the preset container is equal to a preset task number threshold, the preset container is locked.

[0061] Step S103, which involves modifying the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result, includes:

[0062] The target virtual file is modified based on the operation instructions corresponding to the task in the locked preset container to obtain a virtual modification result.

[0063] In this scheme, a preset container for adding tasks is constructed, labeled C, and has a corresponding preset task quantity threshold. When the preset container is full, it is locked. The system sequentially executes steps S102-S104 on the tasks in the locked preset container to obtain the target modification result of the file to be modified for each task in the preset container, thereby improving the system's file processing efficiency.

[0064] As one possible approach, the second partition is larger than the first partition;

[0065] The files in the first partition are read-only files, while the files in the second partition are read-write files.

[0066] In this scheme, all files in the user_data partition are set to read-only, and files in the user_data partition are not allowed to be deleted during file recovery operations. Considering that the operation instructions may include new instructions, the size of the user_cover partition is set to be larger than that of the user_data partition. Since the copy files in the user_cover partition are the final objects of the operation instructions, all files in the user_cover partition are set to read-write.

[0067] As one possible approach, after obtaining the corresponding target virtual file, the method further includes:

[0068] The target virtual file in the preset virtual system is retrieved based on a preset time interval;

[0069] The step of modifying the target virtual file based on the operation instructions corresponding to the task to obtain the virtual modification result includes:

[0070] The task is parsed to obtain the corresponding operation instructions. The target virtual file in the preset virtual system is modified based on the operation instructions to obtain the virtual modification result.

[0071] In this plan, such as Figure 4 As shown, a task mapping parser is defined, with the function relationship represented as: f(task_n) = vir_x. This parser indicates that for task_n, the file operation instructions it encapsulates will be executed in the vir_x file.

[0072] As one possible implementation, including several of the aforementioned preset containers, step S1011 includes:

[0073] The encapsulated task is added sequentially to the preset container;

[0074] If the number of tasks in the currently added preset container is equal to the preset task number threshold, then the subsequently encapsulated tasks will be added to other preset containers.

[0075] In this plan, such as Figure 5 As shown, m preset containers are constructed to store tasks, labeled C_0, C_1, ..., C_m. If the current preset container C_m is full, it is locked. The read, modify, delete, or add operations corresponding to tasks such as task_w, task_x, task_y, and task_z in C_m are then executed via synchronous write operations in steps S102 to S104 to the corresponding cover copy file in flash memory. During the synchronous write operation, the preset container C_m is locked, and tasks cannot be added. For example, when C_m is locked, if a task is generated, the system adds the task sequentially to the preset container C_m+1. Only one preset container is locked at any given time. After all tasks in the preset container are executed, the container is released from its lock and enters an idle state. The system then searches for the next full preset container and repeats the corresponding synchronous write operation. This improves the system's file processing efficiency.

[0076] As one possible approach, the copy file is initially an empty file.

[0077] In this solution, the newly created copy file in the user_cover partition is set as an initial empty file to suit scenarios where copy files are frequently created in flash memory, thereby improving the efficiency of creation and copying. Furthermore, using an initial empty file can save the initial space occupied by the copy file and facilitate the synchronous writing of the copy based on the virtual modification results, reducing the risk of inconsistency between the copy file and the file to be modified, so that the copy can be operated independently without being affected by existing data.

[0078] The file modification method provided in this embodiment encapsulates the operation instructions of the file to be modified into corresponding tasks, maps the file to be modified to the second partition in flash to obtain a copy file, and maps the copy file to the virtual system in memory to obtain a virtual file. When the system performs synchronization, all operation instructions corresponding to the tasks in the virtual file system are synchronized to the second partition in flash at once, avoiding frequent writing to flash and increasing the lifespan of flash.

[0079] Example 2

[0080] This embodiment provides a file modification system 100, such as... Figure 6 As shown, the modification system 100 includes an operation instruction encapsulation module 101, a virtual system mapping module 102, a virtual operation module 103, and a result synchronization module 104;

[0081] The operation instruction encapsulation module 101 is used to obtain the operation instructions of the file to be modified and encapsulate the operation instructions into a corresponding task; wherein, the task includes the storage address of the file to be modified, the file to be modified is located in the first partition of the flash memory, and the second partition of the flash memory includes a copy file corresponding to the file to be modified;

[0082] The virtual system mapping module 102 is used to map the copy file to a preset virtual system in memory to obtain the corresponding target virtual file;

[0083] The virtual operation module 103 is used to select the target virtual file corresponding to the file to be modified based on the storage address, and modify the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result;

[0084] The result synchronization module 104 is used to synchronize the virtual modification result to the copy file to obtain the target modification result corresponding to the file to be modified.

[0085] In one possible implementation, the operation instruction encapsulation module 101 includes a container allocation unit and a locking unit:

[0086] The container allocation unit is used to add several of the tasks to a preset container;

[0087] The locking unit is configured to lock the preset container in response to the number of tasks in the preset container being equal to a preset task number threshold.

[0088] The virtual operation module 103 is also used to modify the target virtual file based on the operation instructions corresponding to the task in the locked preset container to obtain a virtual modification result.

[0089] As one possible approach, the second partition is larger than the first partition;

[0090] The files in the first partition are read-only files, while the files in the second partition are read-write files.

[0091] As one possible approach, the system includes several preset containers, and the container allocation unit is further configured to sequentially add the encapsulated task to the preset containers.

[0092] The container allocation unit is further configured to add the subsequently encapsulated task to other preset containers in response to the current number of tasks in the preset container being equal to a preset task number threshold.

[0093] As one possible approach, the copy file is initially an empty file.

[0094] In one possible manner, the virtual operation module 103 is also used to retrieve the target virtual file in the preset virtual system based on a preset time interval;

[0095] The virtual operation module 103 is also used to parse the task to obtain the corresponding operation instructions, and modify the target virtual file in the preset virtual system based on the operation instructions to obtain the virtual modification result.

[0096] It should be noted that the implementation principle of the file modification system in this embodiment is the same as that of the file modification method in Embodiment 1, so it will not be described again here.

[0097] The file modification system provided in this embodiment encapsulates the operation instructions of the file to be modified into corresponding tasks, maps the file to be modified to the second partition in flash to obtain a copy file, and maps the copy file to the virtual system in memory to obtain a virtual file. When the system performs synchronization, all operation instructions corresponding to the tasks in the virtual file system are synchronized to the second partition in flash at once, avoiding frequent writing to flash and increasing the lifespan of flash.

[0098] Example 3

[0099] like Figure 7 The diagram shown is a structural schematic of an electronic device provided in Embodiment 3 of this disclosure. It includes a memory, a processor, and a computer program stored in the memory and used to run on the processor. When the processor executes the computer program, it implements the file modification method described in Embodiment 1 above. Figure 7 The electronic device 30 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0100] The electronic device 30 may be in the form of a general-purpose computing device, such as a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including memory 32 and processor 31).

[0101] Bus 33 includes a data bus, an address bus, and a control bus.

[0102] The memory 32 may include volatile memory, such as random access memory (RAM) 321 and / or cache memory 322, and may further include read-only memory (ROM) 323.

[0103] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0104] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32, such as the file modification method described in Embodiment 1 of this disclosure.

[0105] Electronic device 30 can also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). This communication can be performed via input / output (I / O) interface 35. Furthermore, the model-generated device 30 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public network, such as the Internet) via network adapter 36. As shown, network adapter 36 communicates with other modules of the model-generated device 30 via bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.

[0106] It should be noted that although the units / modules or sub-units / modules of the electronic device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.

[0107] Example 4

[0108] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the file modification method described in Embodiment 1.

[0109] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.

[0110] In a possible implementation, this disclosure can also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to execute the file modification method described in Embodiment 1.

[0111] The program code for executing this disclosure can be written in any combination of one or more programming languages. The program code can be executed entirely on a user device, partially on a user device, as a standalone software package, partially on a user device and partially on a remote device, or entirely on a remote device.

[0112] In some embodiments, a computer program product may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0113] As one possible approach, a computer program product may, but not necessarily, correspond to a file in a file system. It may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., a file that stores one or more modules, subroutines, or code sections).

[0114] As one possible approach, a computer program product can be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.

[0115] While specific embodiments of this disclosure have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of this disclosure is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of this disclosure, but all such changes and modifications fall within the scope of protection of this disclosure.

Claims

1. A method for modifying a file, characterized in that, The modification method includes: Obtain the operation instructions for the file to be modified, and encapsulate the operation instructions into corresponding tasks; The task includes the storage address of the file to be modified, the file to be modified is located in the first partition of the flash memory, and the second partition of the flash memory includes a copy file corresponding to the file to be modified. The copy file is mapped to a preset virtual system in memory to obtain the corresponding target virtual file; The target virtual file in the preset virtual system is retrieved based on a preset time interval; The target virtual file corresponding to the file to be modified is selected based on the storage address, and the target virtual file is modified based on the operation instructions corresponding to the task to obtain the virtual modification result; The virtual modification result is synchronized to the copy file to obtain the target modification result corresponding to the file to be modified; The process of encapsulating the operation instructions into corresponding tasks further includes: Add several of the aforementioned tasks to a preset container; If the number of tasks in the preset container equals a preset task number threshold, then the preset container is locked. The process of modifying the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result includes: Based on the operation instructions corresponding to the task in the locked preset container, the task is parsed to obtain the corresponding operation instructions, and the target virtual file in the preset virtual system is modified based on the operation instructions to obtain the virtual modification result; The step of adding the plurality of the preset containers includes: The encapsulated task is added sequentially to the preset container; If the number of tasks in the currently added preset container is equal to the preset task number threshold, then the subsequently encapsulated tasks will be added to other preset containers. At any given time, only one of the preset containers is in a locked state. Once all tasks in the locked preset container have been completed, the preset container is released from its lock and enters an idle state. Then, it searches for the next preset container with a number of tasks equal to the preset task number threshold and repeats the corresponding synchronous write operation.

2. The method for modifying a document according to claim 1, characterized in that, The second partition is larger than the first partition; The files in the first partition are read-only files, while the files in the second partition are read-write files.

3. The method for modifying a document according to claim 2, characterized in that, The copy file is initially an empty file.

4. A file modification system, characterized in that, The modified system includes an operation instruction encapsulation module, a virtual system mapping module, a virtual operation module, and a result synchronization module; The operation instruction encapsulation module is used to obtain the operation instructions of the file to be modified and encapsulate the operation instructions into a corresponding task; wherein, the task includes the storage address of the file to be modified, the file to be modified is located in the first partition of the flash memory, and the second partition of the flash memory includes a copy file corresponding to the file to be modified; The operation instruction encapsulation module includes a container allocation unit and a locking unit: The container allocation unit is used to add several of the tasks to a preset container; The locking unit is configured to lock the preset container in response to the number of tasks in the preset container being equal to a preset task number threshold. The container allocation unit is further configured to sequentially add the encapsulated task to the preset container, including a plurality of such preset containers; The container allocation unit is further configured to add the subsequently encapsulated task to other preset containers in response to the current number of tasks in the preset container being equal to a preset task number threshold. At any given time, only one of the preset containers is in a locked state. When all tasks in the locked preset container are completed, the preset container is released from the lock and enters an idle state. Then, the next preset container with a number of tasks equal to the preset task number threshold is searched, and the corresponding synchronous write operation is repeated. The virtual system mapping module is used to map the copy file to a preset virtual system in memory to obtain the corresponding target virtual file; The virtual operation module is also used to select the target virtual file corresponding to the file to be modified based on the storage address, and modify the target virtual file based on the operation instructions corresponding to the task to obtain a virtual modification result; The virtual operation module is also used to retrieve the target virtual file in the preset virtual system based on a preset time interval; The virtual operation module is further configured to parse the task based on the operation instructions corresponding to the task in the locked preset container, obtain the corresponding operation instructions, modify the target virtual file in the preset virtual system based on the operation instructions, and obtain the virtual modification result; the result synchronization module is configured to synchronize the virtual modification result to the copy file to obtain the target modification result corresponding to the file to be modified.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and for running on the processor, characterized in that, When the processor executes a computer program, it implements the method for modifying a file as described in any one of claims 1 to 3.

6. A computer storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for modifying a file as described in any one of claims 1 to 3.

7. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the method for modifying a file as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Firmware patch loading mode of IPC equipment based on OverlayFS

    CN112947979A