Mirror Image File Generation via Data Extraction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional methods for generating mirror files require large storage resources and processing power due to the inclusion of irrelevant or temporary data, leading to prolonged deployment times for applications.
Innovation Solution
A method and apparatus for generating a mirror file that involves loading a basic mirror file of an operating system, installing an application, extracting application data, and merging it with the basic mirror file, which includes a read-only layer and read-write layers determined by the application's data size and type.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the system dataset is directly stored as the mirror file of the application, then the mirror file can be generated quickly, but the mirror file includes irrelevant data and temporary data, resulting in large storage resource occupation
Solution Approach 1:
The patent extracts and removes irrelevant data and temporary data from the system dataset before storing it as the mirror file. This is achieved by identifying and eliminating data that is not necessary for the application's operation, thereby reducing the mirror file size while maintaining generation efficiency
Solution Approach 2:
The patent segments the system dataset into relevant application data and irrelevant/temporary data. By dividing the dataset and selectively keeping only the necessary portions, the mirror file is constructed with optimized content that reduces storage occupation while preserving essential functionality
2Reliability
If the mirror file includes all system data, then data completeness is ensured, but the device needs to read and process irrelevant data during deployment, occupying processing resources and prolonging deployment time
Solution Approach 1:
The patent extracts only the relevant application data from the complete system dataset, removing irrelevant and temporary data. This ensures that the mirror file contains precisely the data needed for application deployment, maintaining reliability while eliminating unnecessary processing overhead
Solution Approach 2:
Instead of including the entire system dataset (excessive action), the patent includes only the necessary application data (partial action). This selective approach prevents the device from reading and processing unnecessary data during deployment, reducing processing resource occupation and deployment time while maintaining data completeness for the application
3Ease of manufacture
If the mirror file includes temporary data, then the mirror file can be generated without additional processing, but storage resources are wasted due to the inclusion of data that is not needed
Solution Approach 1:
The patent extracts and removes temporary data from the system dataset during the mirror file generation process. By identifying and eliminating temporary files and data that are not required for application operation, the patent reduces storage resource waste while maintaining a straightforward generation process
Solution Approach 2:
The patent discards temporary data that is not needed for the application's long-term operation. By selectively discarding temporary files and recovering only the essential data, the patent optimizes storage resource utilization while keeping the mirror file generation process efficient and simple
Data Source
Figure 1
Figure 2
Figure 3
AI summary
A method and apparatus for generating a mirror image file, and a computer-readable storage medium. The method comprises: receiving a mirror image file generation request (101), wherein the mirror image file generation request carries an application program installation file; according to the mirror image file generation request, loading, in a preset system area, a basic mirror image file of an operating system so as to start the operating system (102); installing, in the operating system, an application program corresponding to the application program installation file, and running the application program to obtain a system data set after the application program has run, and attribute information of the application program (103); according to the attribute information of the application program, screening the system data set to obtain application data corresponding to the application program (104); and merging the application data and the basic mirror image file to generate a mirror image file of the application program (105).