Boot-Time File System Configuration for Stable Reboots
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing file systems in computing devices face corruption during abrupt reboots, leading to interrupted power supply and system instability, which affects performance and data integrity.
Innovation Solution
A method and system that configures a stable file system by allowing users to input settings via a user interface, saving flags in a factory reset protection module, combining them with a boot command line, and updating file system parameters using a kernel module to enable either faster or more stable file transfers based on user preferences.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the operating system uses a flash-friendly file system (F2FS) to attain higher performance, then file transfer speed is improved, but file system stability deteriorates during abrupt reboots
Solution Approach 1:
The patent changes the file system parameters by switching from F2FS to ext4 file system, which provides better stability during abrupt reboots while maintaining acceptable performance. The barrier parameter is also modified to control file transfer behavior.
Solution Approach 2:
The patent performs preliminary actions by saving flags in the factory reset protection module before rebooting, and by pre-configuring the file system parameters in the boot command line. This ensures that the file system is properly configured before the actual file transfer operation occurs.
2Reliability
If the barrier parameter is enabled to ensure stable file transfers, then file system reliability is improved, but file transfer speed deteriorates
Solution Approach 1:
The patent makes the barrier parameter dynamic by allowing users to configure it according to their specific needs. The system can adaptively adjust the barrier parameter based on operational requirements, switching between stable and fast transfer modes as needed.
Solution Approach 2:
The patent modifies the barrier parameter from a fixed setting to a configurable parameter. Users can enable or disable the barrier parameter based on their priority between stability and speed, allowing flexible adaptation to different usage scenarios.
3Loss of time
If abrupt rebooting is performed to quickly restore power, then system response time is improved, but file system corruption increases
Solution Approach 1:
The patent performs preliminary actions by saving the flag in the factory reset protection module before the abrupt reboot occurs. This flag is then read and applied during the boot process to prevent file system corruption, allowing quick rebooting without compromising data integrity.
Solution Approach 2:
The patent introduces an intermediary mechanism (the flag in the factory reset protection module) that mediates between the abrupt reboot process and the file system. This intermediary ensures that the file system is properly protected during the reboot process without requiring a complete shutdown sequence.
Data Source
AI summary
A method, comprising receiving, via a user interface, at least one input related to at least one file system configuration from a computing device; saving, via at least one processor, one or more flags corresponding to the at least one input into a factory reset protection module; initializing a booting phase of the computing device; reading the one or more flags from the factory reset protection module during the booting phase of the computing device; combining the one or more flags with a boot command line; transferring the combined one or more flags to a kernel module of the computing device; updating one or more default parameters defined in a file system table file using the kernel module; and creating the at least one file system configuration based at least on the file system table file using the kernel module.


