Operating System Updates With COW Compression Under Space Constraints
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing operating system update process for electronic devices with a virtual AB system partition structure often results in significant occupation of user data partition space, leading to potential update failures due to insufficient space.
Innovation Solution
An operating system update method that dynamically selects a super-partition update manner based on the available size of the user data partition, using copy-on-write cow files in uncompressed or compressed forms to optimize space utilization and ensure successful updates without affecting user usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the update file is written into the user data partition during operating system update, then the update can be completed, but the user data partition occupies a relatively large amount of space causing potential update failure
Solution Approach 1:
The patent changes the state of the update file from uncompressed to compressed form, reducing its size significantly. By applying compression to the update file before writing it to the user data partition, the space occupation is reduced while maintaining the ability to complete the update successfully.
Solution Approach 2:
The patent extracts the update file from the update package and writes it separately to the user data partition. This allows for better space management and enables the system to handle large update files by compressing them before storage, separating the update file handling from the original update package structure.
2Quantity of substance
If the update package size is large, then more system updates can be included, but the user data partition space is insufficient to store it
Solution Approach 1:
The patent applies compression to reduce the size of the update file, allowing larger update content to be stored in the limited user data partition space. The compression transforms the physical size parameter of the update file while preserving all update information.
Solution Approach 2:
The patent writes the compressed update file into the user data partition, effectively nesting the update content within the available partition space. This allows the system to accommodate larger updates by efficiently packing the update file into the existing partition structure.
3Productivity
If the available space check is performed before update package download, then space management is optimized, but the update may fail if space becomes insufficient during the process
Solution Approach 1:
The patent performs preliminary space checks before downloading the update package and before writing the update file to the partition. By checking available space in advance and comparing it with the compressed update file size, the system can determine whether the update can proceed, preventing update failures due to insufficient space.
Solution Approach 2:
The patent implements a feedback mechanism by checking the available space and comparing it with the required space for the compressed update file. Based on this feedback, the system can decide whether to proceed with the update or notify the user of insufficient space, improving both space management efficiency and update reliability.
Data Source
AI summary
This application provides an operating system update method, an electronic device, and a storage medium. In the method, an installation manner of an update file corresponding to a sub-partition of a super partition depends on current available space of a user data partition and a size (a compressed size or an uncompressed size) of the update file, so that it can be determined, based on a specific case in an operating system update process, whether to use a cow compression function.


