Methods executed by the coverage optimization to handle commit or remove commit operations

By using overwrite optimization technology in Windows write filters to detect and modify submission and deletion operation processing, the problem of operation failure when the target file has been moved to overwrite cache memory is solved, improving system stability and user experience.

CN112292676BActive Publication Date: 2024-08-27DELL PROD LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980039012.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-08-07
Filing Date
2019-07-17
Publication Date
2024-08-27
Estimated Expiration
2039-07-17

AI Technical Summary

Technical Problem

When the existing Windows write filter performs commit and delete commit operations, if the target file has been moved to the overlay cache memory, the operation may fail, and the system automatically restarts when the overlay is full, degrading the user experience.

Method used

Overlay optimization technology is used to build filters through the upper and lower instance layers, detect write filter attempts to perform commit and delete commit operations, and modify the operation processing so that it completes successfully in the overlay cache memory.

Benefits of technology

Ensure that commit and delete commit operations complete successfully in the overlay cache memory, avoiding automatic system restarts, improving user experience, and optimizing write filter performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112292676B_ABST
    Figure CN112292676B_ABST
Patent Text Reader

Abstract

The present invention uses an overlay optimizer to enhance the performance of a write filter and complete the commit and commit-delete operations of files in the environment. The overlay optimizer can be constructed by upper instances and lower instances relative to the write filter. The upper instance layer is used to move files from the overlay of the write filter to an overlay cache memory, thereby optimizing the performance of the overlay. To prevent the failure of the commit and delete operations when executing the target file that has been moved to the overlay cache memory, the lower instance layer can be configured to detect when the write filter attempts to perform the commit and delete operations, and can modify and process these operations so that the target file of the operation does not exist in the overlay of the write filter.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The Windows Embedded system and the Windows operating system include functionality to prevent the contents of storage media from being altered. In a typical example, this functionality prevents operating system image files that may be stored on a partition of a particular disk or on a flash medium from being altered at runtime. To achieve this goal, Windows provides a file-based write filter that operates at the file level and a block-based write filter (or enhanced write filter) that operates at the block level to redirect all writes to protected volumes to a cache memory or disk called an overlay for temporary storage. The overlay is used to store changes made to the operating system during runtime, but is deleted when the device is restarted, thereby restoring the device to its original state.

[0002] FIG. 1 illustrates the conventional technology of using a write filter 110 to prevent the contents of a protected disk area on a disk 100 from being modified. The disk 100 generally represents any type of physical storage medium (or disk area). According to the structure of Windows, the driver stack located above the disk 100 is composed of a file system driver 111, a volume manager 112, and a disk driver 113, and the input / output manager 120 manages the flow of input / output requests through the driver stack. An application (not shown in the figure) can use a file / directory management application programming interface 160 to call the services of the system service 130 (for example, calling ReadFile, WriteFile, and CreateFile on a specific file, etc.), which will cause the input / output manager 120 to create an input / output request packet (IRP) of the request, and the input / output request packet will be transmitted downward through the driver stack.

[0003] As shown in FIG. 1 , the write filter 110 is disposed at the top of the driver stack and is therefore capable of processing an input / output request packet before it is passed down to a lower-level driver. The write filter 110 may be configured to detect writes to protected disk areas and redirect them to the overlay 140 rather than allowing them to be passed to the driver stack unchanged. As a result, the write actually occurs at the overlay 140 rather than at the disk 100. The write filter 110 may further be configured to detect reads of target content previously redirected to the overlay 140 and redirect those reads to the overlay 140. Thus, even though the application appears to be updating the content of the disk 100, the update is actually temporarily maintained at the overlay 140. The content of the overlay 140 may be maintained until the operating system is restarted or until an explicit discard command is received.

[0004] Because the size of the overlay used by the Windows write filter is static and cannot be changed without a reboot. For example, the FbwfSetCacheThreshold function allows a specific overlay size (in Mb). However, when the function is called, it has no effect on the size of the overlay during the current session. Instead, the specific overlay size will not be applied until the next session. By default, the overlay size is 64Mb and can be increased to a maximum value of FBWF_MAX_CACHE_THRESHOLD.

[0005] The problem that arises from the static size of the overlay is that if the overlay fills up, the system will automatically reboot, in which case the user will not be presented with the option to reboot. Over time, even if the overlay size is set to the maximum value FBWF_MAX_CACHE_THRESHOLD, it is possible that it will fill up and force a reboot of the system. As a result, the user experience will be greatly degraded when a write filter is employed. In addition, if the size of the overlay is set too high, the system will not have enough random access memory to run multiple applications or even the operating system.

[0006] U.S. Patent Application No. 15 / 422012, entitled "Overlay Release Mechanism for File-Based Write Filters" (hereinafter referred to as the 012 Application) describes a technique for minimizing the size of an overlay by using an overlay management write filter in combination with a write filter to monitor files stored in an overlay and move files that are not currently being accessed. If a request is made to access a moved file, the overlay management write filter can modify the request so that it locates the location of the moved file rather than the location of the original file on the protected disk area. In this way, the fact that a modified file has been moved from the overlay but not discarded can be hidden from the write filter. As a result, the effective size of the overlay will increase while still allowing the write filter to function in a normal manner.

[0007] Although the above techniques can effectively reduce the size of the overlay, other problems may occur. For example, if the commit and delete commit operations are performed and the target file is moved via the operations, the operations will fail because the write filter 110 will not be able to find the target file in the overlay 140.

[0008] Description of the invention

[0009] The present invention encompasses methods, systems, and computer program products for processing the commit and delete commit operating environments of files using overlay optimization to improve the performance of the write filter.

[0010] The overlay optimization may be constructed from upper and lower instance layers relative to the write filter.

[0011] The upper instance layer is used to move files from the write filter's overlay to an overlay cache, thereby optimizing the performance of the overlay. To prevent the failure of commit and delete commit operations when performing the target file that has been moved to the overlay cache, the lower instance can be configured to detect when the write filter attempts to perform the commit and delete commit operations, and can modify the processing of these operations so that they complete successfully, even if the target file for the operation does not exist in the write filter's overlay.

[0012] In one embodiment, the present invention implements a method for processing the commit and delete commit operations through an overlay optimization, which includes an upper filter located above a write filter of a file system stack and a lower filter located below the write filter.

[0013] The lower filter is used to receive a first create operation initiated by the write filter in response to the commit and delete commit operations. The first create operation is used to identify a file to be opened. The lower filter is used to determine that a copy of the identified file is stored in the overlay cache managed by the upper filter in the first create operation. The lower filter then initiates a second create operation to open the target file of the first create operation, and transmits the second create operation to the upper filter. The upper filter is used to modify the second create operation so that the second create operation obtains a file handle of the file copy stored in the overlay cache. The lower filter obtains the file handle of the file copy stored in the overlay cache, and modifies the first create operation to include the file handle. The lower filter then completes the first create operation so that the write filter uses the file handle of the file copy stored in the overlay cache to perform the commit and delete commit operations.

[0014] In another embodiment, the present invention is used to implement a method for processing the commit and delete commit operations. The lower filter located below the write filter in the file system stack is used to receive a first create operation initiated by the write filter in response to the commit and delete commit operation. The first create operation identifies a file to be opened. The lower filter is used to determine that a copy of the identified file is stored in an overlay cache memory in the first create operation, and to initiate a second create operation to open the file identified by the first create operation. The lower filter obtains the file handle of the file copy stored in the overlay cache memory from the second create operation, and modifies the first create operation to include the file handle. The lower filter then completes the first create operation so that the write filter uses the file handle of the file copy stored in the overlay cache memory to perform the commit and delete commit operations. .

[0015] In another embodiment, the present invention is used to implement a method for processing the commit and delete commit operations. The lower filter is used to receive a first create operation identifying a file to be opened through a pre-operation callback routine. The lower filter is used to determine that a copy of the identified file is stored in the overlay cache memory in the first create operation, and then initiate a second create operation to open the target file of the first create operation. The lower filter obtains the file handle of the copy of the file stored in the overlay cache memory from the second create operation, and modifies the first create operation to include the file handle, and completes the first create operation in the pre-operation callback routine.

[0016] This summary provides some concepts of the present invention in a simplified form, which will be further described in the following detailed description. This summary is not intended to identify key features or essential features of the claimed objects.

[0017] BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] FIG. 1 shows a schematic diagram of a Windows-based input / output system and using a write filter therein to redirect writes to a protected disk area located to an overlay.

[0020] Figure 2 Schematic diagram showing how overlay optimization is combined with the write filter of FIG. 1 to release overlays.

[0021] Figure 3 A schematic diagram illustrating various example components of an overlay management write filter is shown.

[0022] Figure 4 Schematic diagram showing an overlay optimization including an upper instance for overlay management write filter and a lower instance for allowing commit and delete commit operations to complete successfully

[0023] Figures 5A to 5G A schematic diagram of the process of successfully completing the commit and delete commit operations through the overlay optimization is shown.

[0024] Figure 6 A flow chart of an embodiment of the present invention for processing a submit or delete submit operation is shown. DETAILED DESCRIPTION

[0025] In this specification, the term "artifact" should be interpreted to include files, directories, registry entries, or any other structure of a file system that can be modified via input / output requests.

[0026] "Write filter" shall be interpreted to include the File-Based Write Filter (FBWF) included in the Windows embedded operating system, the Unified Write Filter (UWF) included in the Windows operating system, and any equivalent write filter that may be provided in future versions of Windows, or any write filter that performs an equivalent function in other operating systems (i.e., redirects writes to a protected disk area to a separate and possibly temporary storage location). "Protected volume" shall be interpreted to mean a disk area storing artifacts that is protected from modification by a write filter. "Commit operation" shall be interpreted to mean an I / O operation requesting that a file stored in an overlay be committed to a protected volume. "Delete commit operation" shall be understood to mean an I / O operation requesting that a file stored in an overlay be deleted from a protected volume.

[0027] Figure 2 and 3 The following discussion is taken from the description of the '012 application and is intended to provide an overview of the environment in which the invention may be implemented. Figure 2The invention is based on FIG. 1 and shows how to combine the overlay management write filter 200 with the write filter 110 to manage artifacts stored in the overlay 140. More specifically, the overlay management write filter 200 can monitor the artifact located in the overlay 140 that is not currently accessed and can be moved to the overlay cache 240 of the protected disk area on the disk 100. In some embodiments, moving the artifact can be achieved by preferably running the replica component 200a of the overlay management write filter 200 in user mode. After moving the artifact to the overlay cache 240, the overlay management write filter 200 can discard the artifact from the overlay 140, thereby reducing the size of the overlay 140 to prevent fullness. In order to ensure that modifications to the artifact are not lost, the overlay management write filter 200 can monitor the input / output request to allow it to intercept the request to move the artifact to the overlay cache 240 and redirect it to the overlay cache 240. Thereby, the fact that the overlay management write filter 200 moves the artifact to the overlay cache 240 will be hidden by the write filter 110.

[0028] In some embodiments, the overlay cache 240 may include a portion of a protected disk area (e.g., one or more folders) that has been registered as an exclusion by the write filter 110. In this case, the write filter 110 will not block write requests to the overlay cache 240, or in other words, the overlay management write filter 200 will be able to copy artifacts from the overlay 140 to the overlay cache 240. Although any suitable mechanism for copying artifacts from the overlay 140 to the overlay cache 240 may be used, in some embodiments, the overlay management write filter 200 may use a replica component 200a to perform the copying of artifacts from the overlay 140 to the overlay cache 240.

[0029] The 012 application includes detailed examples of how to perform the replication process.

[0030] As indicated by the arrow between the two filters, overlay management write filter 200 can be configured to employ functions of write filter 110 (e.g., functions of the FBWF API provided as part of the Windows Embedded operating system) to perform various tasks, such as identifying artifacts that are not currently being accessed in overlay 140 and instructing file-based write filter 110 to discard the artifacts from overlay 140.

[0031] Figure 3Examples of various overlay management write filter 200 components are provided. As shown, overlay management write filter 200 may include filter component 201 and overlay management component 202. Filter component 201 may generally represent a portion of overlay management write filter 200 that is used to filter the driver in the driver stack of disk 100 (or more specifically, in the stack of protected disk area). Therefore, filter component 201 may be configured to process input / output request packets for locating artifacts on protected disk area. Importantly, because overlay management write filter 200 is located above write filter 110, filter component 201 can process these input / output request packets before write filter 110.

[0032] The overlay management component 202 may generally represent a portion of the overlay management write filter 200 and possibly the replica component 200a configured to interface with the write filter 110 for managing which artifacts are moved from the overlay 140 to the overlay cache 240 and ensuring that subsequent requests to access a moved artifact are handled in an appropriate manner (e.g., by identifying and modifying requests to locate a moved artifact (which may be a modified version of the artifact) and to be accessed from the overlay cache 240 rather than from its permanent location on the disk 100). The distinction between the filter component 201 and the overlay management component 202 is for illustrative purposes only, and any suitable configuration of the overlay management write filter 200 functionality can be employed. Furthermore, reference to the overlay management write filter 200 should generally be interpreted as including the replica component 200a.

[0033] like Figure 3 As shown, the overlay management write filter 200 can also be used to maintain a map 203 that identifies which artifacts have been moved to the overlay cache 240 and stored at specific locations in the overlay cache 240. The overlay management component 202 can be configured to update and maintain the map 203 based on which artifacts have been moved to the overlay cache 240. The overlay management component 202 and / or the filter component 201 can also use the map 203 to appropriately redirect input / output requests that locate a moved artifact.

[0034] As described above, problems arise when a commit and delete commit operation is requested while the overlay management write filter 200 has already moved a file to the overlay cache 240. As an example, such an operation may be performed by a system administrator when invoking the UWFCommitFile command or the CommitFileDeletion command. Both the commit and delete commit operations require as input an identification of a file stored in the overlay 140. The identification may be obtained by enumerating the contents of the overlay 140, and the overlay management write filter 200 will cause the enumeration to include the files stored in the overlay cache 240. Therefore, it is common for system administrators to attempt commit or commit-delete operations on files that are not stored in the overlay 140.

[0035] like Figure 4 As shown, to solve these problems, the present invention can adopt overlay optimization consisting of an upper instance layer, an overlay management write filter 200, a lower instance layer, and a lower filter 400. In some Windows-based embodiments, the overlay management write filter 200 and the lower filter 400 can be instances of the same minifilter loaded using the FltAttachVolumeAtAltitude function to position the instances above and below the write filter 110. However, the overlay management write filter 200 and the lower filter 400 can be designed as two separate minifilters instead of instances of the same minifilter.

[0036] Overlay management write filter 200 may optimize overlay 140 using the methods described above (eg, by monitoring operations such as create, catalog, read, write, and close). In the event of a commit or delete commit operation, overlay management write filter 200 will allow write filter 110 operations to proceed.

[0037] Then, in response to the initial processing of a commit or delete commit operation by write filter 110, lower filter 400 may initiate the process of the commit or delete commit operation to complete the intended function even when overlay 140 does not exist as a target for the operation.

[0038] Figures 5A to 5G The following is an example of how commit and delete commit operations are successfully completed. This example will be based on a commit operation, but the same process can be performed for delete commit operations as described below. In this example, it is assumed that the target of the commit operation is a file named File1, which has been modified so that it is stored in the overlay 140, but has also been moved to the overlay cache 240. The original, unmodified version of File1 remains on the protected disk area. It is also assumed that the lower filter 400 has registered a pre-operation callback routine for file creation operations (e.g., specifying IRP_MJ_CREATE). Minifilter drivers, such as the overlay management write filter 200 and the lower filter 400, must register a pre-operation callback routine for each type of input / output operation before the operation is passed to the file system and a post-operation callback routine for processing the operation that has been completed by the file system. Otherwise, the filter manager component of the input / output manager 120 will not pass these operations to the minifilter driver.

[0039] Figure 5AIt is shown that in step 1, a commit operation 501 is transmitted to the overlay management write filter 200. In a Windows environment, the filter manager will pass the operation in the form of a FLT_CALLBACK_DATA structure, which contains a FLT_IO_PARAMETER_BLOCK structure, which identifies the type of input / output operation and the target of the input / output operation, and identifies the operation parameters defined in the FLT_PARAMETERS structure. Because the overlay management write filter 200 is located above the write filter 110 (i.e., higher than its height), there is an opportunity to process the commit operation 501 before the write filter 110. However, at this time, the overlay management write filter 200 can allow the commit operation 501 to be transmitted to the write filter 110 without modification.

[0040] Figure 5B It is shown that at step 2, the write filter 110 attempts to open the target file from the overlay 140 by initiating a create operation 502 in response to a commit operation. The write filter 110 may do so by calling FltCreateFile (or FltCreateFileEx) and specifying the full path to the target file. In this example, it will be assumed that the overlay 140 exists at C:\overlay, and therefore, the write filter 110 has specified C:\overlay\File1 as the file name (e.g., in the ObjectName member of the specified ObjectAttributes structure as input to the FltCreateFile function). It is noteworthy that as part of the commit operation processing, the write filter 110 attempts to open the file from the overlay 140 rather than from the protected volume. While the create operation 502 is being processed, the commit operation 501 will remain pending.

[0041] The create operation 502 function is to obtain a file handle for a specified file so that the caller can operate on the specified file in the desired manner. In this case, the problem arises because File1 is no longer stored in the overlay 140, even though the overlay management write filter 200 makes it appear that File1 is stored in the overlay 140. Specifically, the create operation 502 is intended to open a file named File1 stored in the overlay 140. However, because there is no file named File1 in the overlay (because it has been moved to the overlay cache 240 by the overlay management write filter 200), the create operation 502 fails (the value of the CreateDisposition member is preset to FILE_OPEN; otherwise a new file will be created).

[0042] When the write filter 110 calls FltCreateFile (or equivalent) to initiate the create operation 502, it specifies a pointer itself as input, causing the create operation 502 to be sent only to the underlying minifilter driver. Figure 5B The create operation 502 is shown to be provided to the lower filter 400 instead of being initiated at the overlay management write filter 200 (or any other device located above the overlay management write filter 200 in the file system driver stack). As described above, because the lower filter 400 has registered a pre-operation callback routine for the create operation, the filter manager will pass the create operation 502 to the lower filter 400 before the create operation 502 is passed to the file system driver 111.

[0043] like Figure 5C As shown, when the lower filter 400 receives the create operation 502 in step 3a, the lower filter 400 will use the specified file name to confirm whether the target file is stored in the overlay cache 240. This can be achieved in any suitable manner, including by communicating with the overlay management component 202, by directly querying the image 203, or by attempting to read the file from the overlay cache 240. If the lower filter 400 determines that the target file is not in the overlay cache 240 (e.g., stored in the overlay 140), it can allow the create operation 502 to proceed in a normal manner. Conversely, in step 3b, if the lower filter 400 determines that the target file is stored in the overlay cache 240, a new create operation 503 is initiated to read the file from the protected disk area (e.g., by specifying the path of C:\File1, assuming that File1 is located in the protected disk area). Importantly, the lower filter 400 can cause the create operation 503 to start from the top of the stack so that the overlay management write filter 200 receives it. This step can be accomplished by calling IoCreateFile, calling FltCreateFile and setting the Instance parameter to a null value, or by calling any other suitable function. It should be noted that the creation operation 502 will remain waiting between these steps because the lower filter 400 will not complete the pre-operation callback routine at the creation operation 502 at this time.

[0044] like Figure 5D As shown, in step 4, the overlay management write filter 200 modifies the creation operation 503 in the above manner to locate the modified version of File1 stored in the overlay cache temporary storage 240, and then transmits the creation operation 503 downward. Figure 5EAs shown, once the file system has processed the create operation 503, the completed request will be transmitted to the lower filter 400 (again assuming that a post-operation callback routine for the create operation has been registered). At this point, the create operation 503 will include a file handle (Handle1) stored in the overlay cache 240.

[0045] like Fig. 5F As shown, in step 6, when the lower filter 400 executes its pre-operation callback routine for processing the create operation 502, it will obtain the file handle from the create operation 503, copy the file handle to the create operation 502, and then complete the create operation 502 to prevent it from being further transmitted downward. In order to complete the create operation 502 in the pre-operation callback routine, the lower filter 400 can set IoStatus. The status field of the IO_STATUS_BLOCK structure in the corresponding FLT_CALLBACK_DATA structure is STATUS_SUCCESS, and return FLT_PREOP_COMPLETE as the return value of its pre-operation callback routine. As a result, the create operation 502 and the file handle stored in the overlay cache 240 will be transmitted upward to the write filter 110 (for example, when the filter manager calls the post-operation callback routine of the write filter 110 for the create operation 502).

[0046] Finally, if Figure 5G As shown, in step 7, the write filter 110 completes the commit operation by committing the modified content in File1 from the overlay cache 240 to the original file in the protected disk area. It is worth noting that due to the processing performed by the lower filter 400 and the overlay management write filter 200, the write filter 110 believes that the content it commits is stored in the overlay 140 and is unaware that File1 is actually stored in the overlay cache 240.

[0047] The same process of handling submission can be used to handle deletion submission. In particular, when write filter 110 receives a commit delete operation, write filter 110 will initiate a create request similar to create request 502 to attempt to open the file from overlay 140. Since the intended operation is to delete, the create request can specify that the FILE_DELETE_ON_CLOSE flag will open the file and then delete once all file handles are closed. Lower filter 400 will determine whether the target of the delete submission operation is stored in overlay cache 240. If so, lower filter 400 will initiate a new create request similar to create request 503 to attempt to open the target file. Completion of the new create request will provide a file handle stored in overlay cache 240, which can then be moved to the original create request, thereby allowing write filter 110 to complete the delete submission operation by deleting the files in overlay cache 240 and protected disk area together.

[0048] In summary, through overlay optimization constructed by upper instance layer filters and lower instance layer filters, the processing of commit and delete commit operations can be modified so that they are completed smoothly even if the target file has been moved from the overlay of the write filter. These modifications are completed in a way that is transparent to the write filter.

[0049] Figure 6 A flow chart of an exemplary method 600 for processing a commit or delete commit operation is provided. The method 600 may be implemented by overlay optimization including an upper filter (e.g., overlay management write filter 200) located above a write filter of a file system stack and a lower filter (e.g., lower filter 400) located below the write filter.

[0050] Method 600 includes an action 601 of receiving, by a lower filter, a first create operation initiated by the write filter in response to a commit or delete commit operation for identifying a file to be opened. For example, lower filter 400 may receive create operation 502 .

[0051] Method 600 includes an action 602 of the lower filter for determining that a copy of the identified file in the first create operation is stored in the overlay cache managed by the upper filter. For example, lower filter 400 may determine that File1 is stored in overlay cache 240.

[0052] The method 600 includes an action 603 in which the lower filter initiates a second creation operation for opening the target file of the first creation operation and transmits the second creation operation to the upper filter. For example, the lower filter 400 may initiate a creation request 503 .

[0053] Method 600 includes an action 604 of the upper filter for modifying the second create operation so that the second create operation obtains a file handle of the file copy stored in the overlay cache. For example, overlay management write filter 200 may modify create operation 503 to locate File1 in overlay cache 240.

[0054] Method 600 includes the following behavior 605 where the lower filter obtains the file handle stored in the copy of the file in the overlay cache and modifies the first create operation to include the handle. For example, lower filter 400 may obtain the handle of File1 from create operation 503.

[0055] Method 600 includes the lower filter then completing the first create operation, causing the write filter to perform the commit and delete commit operations to use the file handle stored in the copy of the file in the overlay cache 606. For example, lower filter 400 may complete create operation 502.

[0056] Embodiments of the present invention may include or utilize special / general purpose computer hardware, such as one or more processors and system memory. Embodiments within the scope of the present invention also include physical and other computer readable media for carrying or storing computer executable instructions and / or data structures. The computer readable media may be any media that can be accessed by a general / special purpose computer system.

[0057] Computer readable media can be divided into two non-overlapping categories: computer storage media and transmission media.

[0058] Computer storage media (devices) include RAM, ROM, EEPROM, CD-ROM, solid-state drives (SSDs) (e.g., based on random access memory), flash memory, phase change memory (PCM), other types of memory, other optical disk storage, magnetic disk storage, or any other similar storage media that can be used to store the desired program code in the form of computer-executable instructions or data structures and can be accessed by general / special-purpose computers. Transmission media include signals and carrier waves.

[0059] Computer executable instructions include, for example, instructions and data for a specific or group of functions performed by a general / special purpose computer or a special processing device when executed by a processor. Computer executable instructions can be, for example, binary files, intermediate format instructions of assembly language or P-code, or even source code. Those skilled in the art will appreciate that the present invention can be implemented in a network computing environment with many types of computer system configurations, including personal computers, desktops, laptops, message processors, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network computers, minicomputers, mainframe computers, mobile phones, PDAs, tablet computers, pagers, routers, or switches, etc.

[0060] The present invention can also be implemented in a distributed system environment, where local and remote computer systems are linked to perform tasks via a wired data link, a wireless data link, or a combination of wired and wireless data links. In a distributed system environment, program modules can be located in local and remote memory storage devices. An example of a distributed system environment can be a cloud of network servers or server resources. Therefore, the present invention can be hosted in a cloud environment.

[0061] The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The embodiments described herein should be considered in all respects to be merely illustrative and not restrictive. Therefore, the scope of the present invention is limited by the scope of the application rather than the above description.

Claims

1. A method for processing a commit or delete commit operation performed by an overlay optimization comprising an upper filter located above a write filter in a file system stack and a lower filter located below the write filter, the method comprising: Receiving, by the lower filter, a first create operation initiated by the write filter in response to the commit or delete commit operation and the first create operation is used to identify a file to be opened; Determining, by the lower filter, that a copy of the identification file is stored in the overlay cache managed by the upper filter in the first creation operation; Initiating a second creation operation through the lower filter to open the target file of the first creation operation, and passing the second creation operation to the upper filter; Modifying the second creation operation by the upper filter so that the second creation operation obtains the file handle of the copy of the file stored in the overlay cache memory; Obtaining, through the lower filter, a file handle of the copy of the file stored in the overlay cache, and modifying the first create operation to include the file handle; and The first create operation is performed by the lower filter so that the write filter uses the file handle of the file copy stored in the overlay cache memory to perform the commit or delete commit operation.

2. The method according to claim 1, wherein: The lower filter receives the request for the first create operation through a pre-operation callback routine.

3. The method of claim 2, wherein completing the first creation operation comprises completing the first creation operation in the pre-operation callback routine.

4. The method according to claim 2, wherein: The lower filter initiates a request for the second create operation in the pre-operation callback routine.

5. The method of claim 1, wherein the copy of the file stored in the overlay cache includes a modified copy of the file.

6. The method of claim 5, further comprising: Before receiving the first create operation, the modified file copy is received by the upper filter and the modified file copy is moved from the overlay area of ​​the write filter to the overlay cache memory.

7. The method according to claim 1, characterized in that The upper filter and the lower filter are instance layers of the same filter loaded at different heights in the file system stack.

8. The method of claim 1, wherein determining that the file copy identified in the first create operation is stored in the overlay cache comprises querying a component in the upper filter using a file name specified in the first create operation.

9. The method according to claim 1, characterized in that Initiating the second create operation includes specifying a path of the file on a protected disk volume, and modifying the second create operation includes specifying a path of the copy of the file stored in the overlay cache.

10. The method according to claim 1, wherein: The first create operation specifies the file to be opened and then deleted.

11. One or more computer storage media storing computer executable instructions executed by one or more processors for performing a method of processing a submission or deleting a submission operation, the method comprising: Providing an upper filter located above a write filter in a file system stack and a lower filter located below the write filter; receiving, by a lower filter, a first create operation initiated by a write filter in response to a commit or delete commit operation, the first create operation identifying a file to be opened; Determining that a copy of the file identified in the first create operation is stored in an overlay cache managed by an upper filter; Initiate a second creation operation for opening the file located by the first creation operation; Obtaining, through the second create operation, a file handle of the copy of the file stored in the overlay cache memory; modifying the first create operation to include the file handle; as well as The first create operation is performed so that the write filter uses the file handle of the copy of the file stored in the overlay cache to perform the commit or delete commit operation.

12. The computer storage medium of claim 11, wherein the lower filter receives the request for the first create operation via a pre-operation callback routine.

13. The computer storage medium of claim 12, wherein completing the first create operation comprises completing the first create operation in the pre-operation callback routine.

14. The computer storage medium of claim 11, wherein initiating a second create operation for opening the file located by the first create operation comprises causing the second create operation to be passed to an upper filter located above the write filter.

15. The computer storage medium of claim 14, wherein: The method further includes: The second create operation is modified by the upper filter to locate the copy of the file stored in the overlay cache.

16. The computer storage medium of claim 11, wherein: The method further includes: Before receiving the first create operation, the file copy is moved from the overlay area of ​​the write filter to the overlay cache memory through the upper filter.

17. The computer storage medium of claim 11, wherein the write-filter is a file-based write-filter.

18. A method of using overlay optimization execution, the overlay optimization utilizing an upper filter located above a write filter in a file system stack and a lower filter located below the write filter to process a commit or delete commit operation, the method comprising: Receiving a first create operation identifying a file to be opened through the lower filter and via a pre-operation callback routine; Determining, by the lower filter, that the file copy identified in the first create operation is stored in an overlay cache; Initiate a second creation operation through the lower filter to open the file located by the first creation operation; Obtaining, through the second create operation, a file handle of the copy of the file stored in the overlay cache memory; modifying the first create operation to include the file handle; and The first creation operation is completed through the lower filter and the pre-operation callback routine.

19. The method of claim 18, wherein initiating a second create operation for opening the file located by the first create operation comprises transmitting the second create operation to the upper filter.

20. The method of claim 18, wherein: The method further includes: Prior to receiving the first create operation, a copy of the file is moved from an overwrite write filter to the overlay cache through the upper filter.