A file system processing method, system, intelligent device and storage medium
By using backup and CRC check recovery methods for EXT2, EXT3, and EXT4 file systems, the problem of data loss due to unexpected events in the file system is solved, ensuring data integrity and stable device operation.
Patent Information
- Application Number
- CN202110728176.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2041-06-29
AI Technical Summary
Existing EXT2, EXT3, and EXT4 file systems are easily corrupted by improper user operation or abnormal power loss, resulting in failure to mount and run normally and causing loss of user data.
A file system processing method is provided, which restores file system data by backing up and verifying superblock data, comparing the backed-up data with the current data using the CRC check method, and ensuring data integrity.
It improves the accuracy of file system data verification, avoids the file system failing to mount and run normally due to unexpected situations, and improves the operational stability of functional devices.
Smart Images

Figure CN113448776B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the technical field of file systems, and in particular to a file system processing method and system, an intelligent device and a storage medium. BACKGROUND
[0002] With the development of information technology, the functional requirements for intelligent devices are increasingly diverse, and currently, the file systems used by intelligent devices are mainly EXT2, EXT3 and EXT4. In devices based on the EXT2, EXT3 and EXT4 file systems, due to improper user operation, abnormal power failure of the device or other irresistible problems, the EXT2, EXT3 and EXT4 file system data is destroyed, the file system cannot be normally mounted and run, and users are greatly disturbed.
[0003] In view of the above problems, a data processing method is needed to backup, verify and restore the key data of the EXT2, EXT3 and EXT4 file system data functional devices, so as to reduce the risk of user data loss and reserve valuable data for users. SUMMARY
[0004] The above problem that the file system data is destroyed and cannot be normally mounted and run is not solved, and the application provides a file system processing method and system, an intelligent device and a storage medium, and the specific technical solutions are as follows.
[0005] The application provides a file system processing method, which comprises the following steps:
[0006] Backup the data of the file system to obtain backup data;
[0007] Verify the superblock data in the backup data to obtain first verification information;
[0008] When the system starts, the superblock data in the current file system data is verified to obtain second verification information;
[0009] Compare the first verification information with the second verification information;
[0010] When the first verification information is different from the second verification information, the backup data is restored.
[0011] The file system processing method provided by the application verifies and restores the backup file system data and the current file system data by comparing all the superblock data, improves the accuracy of file system data verification, avoids the problem that the file system data is destroyed and the file system cannot be normally mounted and run, and improves the stability of the functional device operation and maintenance.
[0012] Further, the application provides a processing method of a file system, which backs up data of the file system, comprising:
[0013] After the file system is mounted, data of the current file system is backed up;
[0014] The backup data is updated.
[0015] The processing method of the file system can back up the data of the current file system after the file system is mounted, and avoid the file system data from being destroyed due to sudden power failure or other conditions when the functional device enters the normal operation state, thereby preventing the file system from being normally mounted and operated and improving the stability of the functional device in operation and maintenance.
[0016] Further, the application also provides a processing method of a file system, which backs up data of the file system, further comprising:
[0017] After the file system is mounted, data of the current file system is backed up every preset period;
[0018] After each backup, the backup data is updated.
[0019] The processing method of the file system provided by the application can update the file system data in real time after the file system is normally mounted, keep the timeliness of the backup data, avoid the file system data from being destroyed due to sudden power failure or other conditions, prevent the file system from being normally mounted and operated, and improve the stability of the functional device in operation and maintenance.
[0020] Further, the application also provides a processing method of a file system, which further comprises:
[0021] If the backup data does not exist when the system is started, the data of the file system when the system is started is backed up.
[0022] The processing method of the file system provided by the application can avoid the file system data from being destroyed due to sudden power failure or other conditions when the system is started and the backup file system data does not exist, prevent the file system from being normally mounted and operated, and improve the stability of the functional device in operation and maintenance.
[0023] Further, the application provides a processing method of a file system, which is characterized by:
[0024] The file system comprises an EXT file system;
[0025] The first check information includes a first check value, which is calculated by a CRC check method on superblock data in the backup data of the file system.
[0026] The second check information includes a second check value, which is calculated by a CRC check method on the superblock data in the data of the file system when the system starts.
[0027] Additionally, the application further provides a file system processing system, comprising:
[0028] a backup module, configured to backup data of a file system to obtain backup data;
[0029] a first check module, connected with the backup module, configured to check superblock data in the backup data to obtain first check information;
[0030] a second check module, configured to check the superblock data in the data of the current file system when the system starts to obtain second check information;
[0031] a comparison module, connected with the first check module and the second check module, configured to compare the first check information with the second check information;
[0032] a recovery module, connected with the comparison module and the backup module, configured to recover the backup data of the file system when the first check information is different from the second check information.
[0033] The file system processing system provided by the application completes check and recovery by comparing all superblock data of the backup file system data and the current file system data, improves the accuracy of file system data check, avoids the problem that the file system data is destroyed and the file system cannot be normally mounted and run, and improves the stability of function equipment operation and maintenance.
[0034] Further, the application further provides a file system processing system, and the backup module comprises:
[0035] a first backup unit, configured to backup data of the current file system after the mounting module is mounted according to the backup file system every preset period;
[0036] a first update unit, configured to update the backup data after each backup.
[0037] Further, the application further provides a file system processing system, and the backup module further comprises:
[0038] The second backup unit is configured to backup the data of the file system at the time of system startup if the backup data does not exist.
[0039] Additionally, the present application further provides an intelligent device, comprising a processor, a storage, and a computer program stored in the storage and executable on the processor, wherein the processor is configured to execute the computer program stored in the storage to implement the operations performed by the file system processing method.
[0040] Additionally, the present application further provides a storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the operations performed by the file system processing method.
[0041] The present application provides a file system processing method, system, intelligent device, and storage medium, which have at least the following advantages:
[0042] 1) The accuracy of file system data checking is improved by comparing the backup file system data with the current file system data to complete checking and recovery, and the problem that the file system data is destroyed and the file system cannot be normally mounted and run is avoided, thereby improving the stability of the functional device operation and maintenance.
[0043] 2) When the functional device enters a normal operation state, the file system data is prevented from being destroyed due to sudden power failure or other situations.
[0044] 3) A method for updating the file system data in real time after normal mounting is provided, the problem that the file system data is destroyed due to sudden power failure or other situations and the file system cannot be normally mounted and run is avoided, and the timeliness of the backup data is maintained.
[0045] 4) When the backup file system data does not exist after the system is started, the file system data is prevented from being destroyed due to sudden power failure or other situations, and the stability of the functional device operation and maintenance is improved. BRIEF DESCRIPTION OF DRAWINGS
[0046] The above features, technical characteristics, advantages and implementation manners of the file system processing method, system, intelligent device and storage medium will be further described in the following preferred embodiments in a clear and understandable manner combined with the accompanying drawings.
[0047] Figure 1 is a flowchart of the file system processing method of the present application;
[0048] Figure 2 is a flowchart of the file system processing method of the present application;
[0049] Figure 3is another flow chart of the processing method of the file system of the present application;
[0050] Figure 4 is still another flow chart of the processing method of the file system of the present application;
[0051] Figure 5 is a structural schematic diagram of the processing system of the file system of the present application;
[0052] Figure 6 is a structural schematic diagram of the backup module in the processing system of the file system of the present application;
[0053] Figure 7 is a schematic diagram of the intelligent device of the present application.
[0054] Marked numbers in the figure: 10-backup module, 20-first check module, 30-third check module, 40-contrast module, 50-recovery module, 11-first backup unit, 12-second backup unit, 13-third backup unit, 14-first update unit, 15-third update unit, 100-intelligent device, 110-processor, 120-memory, 121-computer program. DETAILED DESCRIPTION
[0055] In the following description, for the purpose of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, intelligent devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
[0056] It should be understood that the term "comprising" as used in the specification and the appended claims indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0057] For the sake of brevity, only the portions of the figures that are necessary for an understanding of the present application have been shown in the drawings. Wherever possible, the same reference numbers have been used in different drawings to refer to the same or like elements. In general, the drawings are not to scale. In some drawings, similar or identical elements are denoted by the same reference numbers.
[0058] It should be further understood that the term "and / or" used in the description and claims of the application herein is used to mean any one and / or any combination of the associated listed items and includes all possible combinations.
[0059] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the specific embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained from these drawings without creative labor, and other embodiments can also be obtained.
[0061] Embodiment 1
[0062] An embodiment of the present application, as shown in a processing method of a file system, comprising the steps of: Figure 1
[0063] S100 backing up the data of the file system to obtain backup data.
[0064] Specifically, the file system includes EXT2, EXT3, EXT4 and other extended file systems, the extended file system is divided into multiple disk partitions, each partition must be formatted into a certain format of file system by a formatting tool first, and then files can be stored, and some information for managing storage layout will be written on the disk during the formatting process.
[0065] The smallest unit stored in the file system is a block, the extended file system divides the entire partition into a plurality of block groups of the same size, wherein each block group is divided into six parts: superblock, block group descriptor table, block bitmap, inode bitmap, inode table and data block.
[0066] The superblock is used to describe the file system information of the entire partition.
[0067] The block group descriptor table is used to describe the block group information, which is composed of many block group descriptors, and the entire partition is divided into a plurality of block groups, which corresponds to how many block group descriptors, and each block group descriptor stores the description information of a block group.
[0068] The block bitmap is used to describe which blocks in the entire block group are used and which blocks are free.
[0069] The inode bitmap is similar to the block bitmap, which occupies a block itself, wherein each bit indicates whether an inode is free and available.
[0070] The inode table is used to store description information within a block group.
[0071] The data block is used to place file content data.
[0072] S200 checks superblock data in backup data, and obtains first checking information.
[0073] Specifically, the superblock data is used to describe file system information of the entire partition, such as sizes of inode / block, total amount, usage amount, remaining amount, and format and related information of the file system. The superblock has a copy at the beginning of each block group. In order to ensure that the file system can work normally in the case of physical problems in a disk sector, it is necessary to ensure that the superblock information of the file system can be normally accessed in this case. Therefore, the superblock information of a file system can be backed up in multiple block groups.
[0074] Specifically, the checking method includes CRC checking. CRC, i.e., cyclic redundancy check code, is the most commonly used error checking code in the field of data communication. Its feature is that the lengths of an information field and a checking field can be arbitrarily selected. Cyclic redundancy checking is a data transmission error detection function. A polynomial is calculated for data, and the obtained result is attached at the back of a frame. A receiving device also performs a similar algorithm to ensure the correctness and integrity of data transmission.
[0075] S300 checks superblock data in current file system data when the system is started, and obtains second checking information.
[0076] S400 compares the first checking information and the second checking information.
[0077] S500 recovers backup data when the first checking information and the second checking information are different.
[0078] Optionally, when the first checking information and the second checking information are the same, a mounting process of the file system is normally performed.
[0079] The processing method of the file system provided in this embodiment completes checking and recovery by comparing all superblock data of backup file system data and current file system data, improves the accuracy of file system data checking, avoids the problem that file system data is destroyed and the file system cannot be normally mounted and run, and improves the stability of operation and maintenance of a functional device.
[0080] Embodiment 2
[0081] Based on the processing method of the file system in the foregoing embodiment 1, as shown in FIG. 1, step S100 backs up data of the file system, including: Figure 2
[0082] S111, after the file system is mounted, backing up data of the current file system.
[0083] S112, updating the backup data.
[0084] Specifically, after the file system is mounted, the file system is backed up, the data of the previous file system is overwritten by the data of the newly backed up file system, and data backup and backup data updating are performed after each mounting process.
[0085] The file system processing method provided in the embodiment can back up the current file system data after mounting, and when the functional device enters a normal running state, avoid the problem that the file system data is destroyed due to sudden power failure or other conditions, causing the file system to be unable to normally mount and run, and improve the stability of the functional device running and maintenance.
[0086] Embodiment 3
[0087] The file system processing method based on any one of the preceding embodiments 1-2, as shown in Figure 3 The step S100 of backing up the file system data further includes:
[0088] S121, after the file system is mounted, backing up data of the current file system every preset time period.
[0089] S122, updating the backup data after each backup.
[0090] Exemplarily, the preset time period can be 5 minutes, 10 minutes, 30 minutes, 60 minutes, etc. After the functional device enters a normal running state, the file system data will be continuously updated, in order to ensure the timeliness of the data, the file system data and the first superblock check information can be re-backed up every certain period of time.
[0091] Specifically, after the file system is mounted, the file system is backed up every preset time, the data of the previous file system is overwritten by the data of the newly backed up file system after each backup, and the file system is backed up multiple times in the mounting process, and the backup data is updated multiple times.
[0092] The embodiment can be implemented together with the embodiment 2, or can be implemented alone. That is, the data of the file system can be backed up immediately after the file system is mounted, the data of the previous file system is overwritten by the data of the newly backed up file system. And in the normal mounting process, the file system data is backed up multiple times, and the data of the previous file system is overwritten by the data of the newly backed up file system after each backup, achieving the effect of multiple backup and updating of data in one mounting process.
[0093] The processing method of the file system provided in the embodiment can avoid the problem that the file system data is destroyed due to sudden power failure and the like when the system is started and there is no backup file system data, the file system cannot be normally mounted and run, and the stability of the functional equipment operation and maintenance is improved.
[0094] Embodiment 4
[0095] Based on the processing method of the file system in any one of the preceding embodiments 1-3, as shown in the method shown in the figure, before obtaining the first check information in the superblock data in the backup data in S200, the method further comprises: Figure 3
[0096] In S130, if there is no backup data when the system is started, the data of the file system when the system is started is backed up.
[0097] The processing method of the file system provided in the embodiment can avoid the problem that the file system data is destroyed due to sudden power failure and the like when the system is started and there is no backup file system data, the file system cannot be normally mounted and run, and the stability of the functional equipment operation and maintenance is improved.
[0098] Embodiment 5
[0099] In one embodiment of the application, as shown in the figure, a processing system of a file system comprises: Figure 5
[0100] The backup module 10 is configured to backup the data of the file system to obtain backup data.
[0101] Specifically, the file system includes EXT2, EXT3, EXT4 and the like extended file system, the extended file system is divided into a plurality of disk partitions, each partition must be formatted into a file system of a certain format by a formatting tool first, and then files can be stored, and some information for managing storage layout will be written on the disk during the formatting process.
[0102] The smallest unit stored in the file system is a block, the extended file system divides the entire partition into a plurality of block groups of the same size, each block group is divided into six parts, i.e., a superblock, a block group descriptor table, a block bitmap, an inode bitmap, an inode table and a data block, wherein:
[0103] The superblock is used to describe the file system information of the entire partition.
[0104] The block group descriptor table is used to describe the block group information and is composed of a plurality of block group descriptors, the entire partition is divided into a plurality of block groups, so there are as many block group descriptors as the number of block groups, and each block group descriptor stores the description information of a block group.
[0105] The block bitmap is used to describe which blocks in the whole block group are used and which blocks are free.
[0106] The inode bitmap is similar to the block bitmap, and itself occupies a block, wherein each bit represents whether an inode is free and available.
[0107] The inode table is used to store description information in the block group.
[0108] The data block is used to place file content data.
[0109] The first checking module 20 is connected with the backup module 10, and is used to check the superblock data in the backup data, and obtain first checking information.
[0110] Specifically, the superblock data is used to describe file system information of the whole partition, such as sizes of inodes / blocks, total amount, usage amount, remaining amount, and format and related information of the file system. The superblock has a copy at the beginning of each block group. In order to ensure that the file system can normally work in the case that a part of sectors on the disk has physical problems, it is necessary to ensure that the superblock information of the file system can be normally accessed in this case. Therefore, the superblock information of a file system can be backed up in multiple block groups.
[0111] Specifically, the checking method includes CRC checking. CRC (Cyclic Redundancy Check) is a kind of error checking code most commonly used in the field of data communication, and its feature is that the lengths of an information field and a checking field can be arbitrarily selected. Cyclic redundancy check is a kind of data transmission error detection function, which performs polynomial calculation on data, and attaches the obtained result to the back of a frame. A receiving device also performs a similar algorithm to ensure the correctness and integrity of data transmission.
[0112] The second checking module 30 is used to check the superblock data in the current file system data when the system is started, and obtain second checking information.
[0113] The comparison module 40 is connected with the first checking module 20 and the second checking module 30, and is used to compare the first checking information and the second checking information.
[0114] The recovery module 50 is connected with the comparison module 40 and the backup module 10, and is used to recover the backup file system data when the first checking information is different from the second checking information.
[0115] The processing system of the file system provided in the embodiment completes checking and recovery by comparing all superblock data of the backup file system data and the current file system data, improves the accuracy of file system data checking, avoids the problem that the file system data is destroyed and the file system cannot be normally mounted and run, and improves the stability of function equipment operation and maintenance.
[0116] Embodiment 6
[0117] Based on the processing method of one of the file systems in the foregoing embodiment 5, as Figure 6 shown, the backup module 10 includes:
[0118] The first backup unit 11 is configured to backup the data of the current file system after a preset time period after the mounting module is mounted according to the backup file system.
[0119] The first updating unit 14 is connected with the first backup unit 11 and is configured to update the backup data after each backup of the first backup unit 11.
[0120] The second backup unit 12 is configured to backup the data of the file system at the system startup when there is no backup data at the system startup.
[0121] The third backup unit 13 is configured to backup the data of the current file system after the file system is mounted.
[0122] The third updating unit 15 is connected with the third backup unit and is configured to update the backup data after the backup of the third backup unit 13.
[0123] The backup module 10 in the embodiment can simultaneously include the first backup unit 11, the second backup unit 12 and the third backup unit 13, or can be selectively set in one or two, and the first backup unit 11, the second backup unit 12 and the third backup unit 13 are respectively configured to backup the file system data in different situations, which can avoid the problem that the file system data is destroyed due to sudden power failure of the functional device or other situations, causing the file system to be unable to normally mount and run, and improve the stability of the functional device operation and maintenance.
[0124] Embodiment 7, as Figure 7 shown, an intelligent device 100 includes a processor 110 and a memory 120, wherein the memory 120 is configured to store a computer program 121; the processor 110 is configured to execute the computer program 121 stored in the memory 120 to implement the file system processing method in the above-mentioned corresponding method embodiments.
[0125] The intelligent device 100 can be a desktop computer, a notebook computer, a palm computer, a tablet computer, a mobile phone, a human-computer interaction screen and the like. The intelligent device 100 can include, but is not limited to, the processor 110 and the memory 120. Those skilled in the art can understand that Figure 7The smart device 100 is only an example and does not constitute a limitation on the smart device 100, and can include more or fewer components than shown, or combine certain components, or include different components, for example: the smart device 100 can also include an input / output interface, a display device, a network access device, a communication bus, a communication interface, and the like. The communication interface and the communication bus can also include the input / output interface, wherein the processor 110, the memory 120, the input / output interface, and the communication interface complete communication with each other through the communication bus. The memory 120 stores a computer program 121, and the processor 110 is configured to execute the computer program 121 stored in the memory 120 to implement the file system processing method in the above-mentioned method embodiment.
[0126] The processor 110 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0127] The memory 120 can be an internal storage unit of the smart device 100, for example: a hard disk or a memory of the smart device. The memory can also be an external storage device of the smart device, for example: a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, and the like. Further, the memory 120 can include both the internal storage unit and the external storage device of the smart device 100. The memory 120 is configured to store the computer program 121 and other programs and data required by the smart device 100. The memory can also be used to temporarily store data that has been output or will be output.
[0128] Embodiment 8
[0129] In an embodiment of the present application, a storage medium stores at least one instruction, which is loaded and executed by a processor to implement the operations performed by the embodiments of the file system processing method. For example, the storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0130] They can be implemented by program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, or they can be respectively made into individual integrated circuit modules, or a plurality of modules or steps in them can be made into a single integrated circuit module. Thus, the present application is not limited to any particular combination of hardware and software.
[0131] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0132] Those skilled in the art can realize that the units and steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented by hardware or software depends on the specific application and design constraints of the technical solutions. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0133] In the embodiments provided in the present application, it should be understood that the disclosed file system processing method, system, intelligent device and storage medium can be implemented in other ways. For example, the above-described file system processing method, system, intelligent device and storage medium embodiments are merely illustrative. For example, the division of the modules or units is only a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection or integrated circuit through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0134] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, i.e., they can be located in one place, or they can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.
[0135] In addition, the various functional units in the embodiments of the present application can be integrated in one processing unit, or each can exist physically as a separate unit, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware, or in the form of a software functional unit.
[0136] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present application, and it should be pointed out that, for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, which should be considered as the protection scope of the present application.
Claims
1. A processing method of a file system, characterized by, The method comprises the steps of: backing up data of a file system to obtain backup data; checking superblock data in the backup data to obtain first checking information; checking the superblock data in current data of the file system at system startup to obtain second checking information; comparing the first checking information with the second checking information; restoring the backup data when the first checking information is different from the second checking information.
2. The processing method of a file system according to claim 1, characterized in that, The step of backing up data of a file system comprises the steps of: backing up current data of the file system after the file system is mounted; updating the backup data.
3. The processing method of a file system according to claim 1, characterized in that, The step of backing up data of a file system further comprises the steps of: backing up current data of the file system every preset period after the file system is mounted; updating the backup data after each backup.
4. The processing method of a file system according to claim 1, characterized in that, The step of checking the superblock data in the backup data further comprises the step of: backing up data of the file system at system startup if the backup data does not exist at system startup.
5. The method according to any one of claims 1-4, characterized in that: the file system comprises an EXT file system; the first checking information comprises a first checking value, which is calculated by a CRC checking method on the superblock data in the backed-up data of the file system; the second checking information comprises a second checking value, which is calculated by the CRC checking method on the superblock data in the data of the file system at system startup.
6. A processing system of a file system, characterized by, The method comprises: a backup module for backing up data of a file system to obtain backup data; a first checking module connected with the backup module, for checking superblock data in the backup data to obtain first checking information; a second checking module for checking the superblock data in current data of the file system at system startup to obtain second checking information; a comparison module connected with the first checking module and the second checking module, for comparing the first checking information with the second checking information; a restoration module connected with the comparison module and the backup module, for restoring the backup data of the file system when the first checking information is different from the second checking information.
7. The processing system of a file system according to claim 6, wherein, The backup module comprises: a first backup unit for backing up current data of the file system every preset period after the file system is mounted according to the backed-up file system; a first updating unit connected with the first backup unit, for updating the backup data after each backup.
8. The processing system of a file system according to claim 6, wherein, The backup module further comprises: a second backup unit for backing up data of the file system at system startup if the backup data does not exist at system startup.
9. A smart device, comprising: The file system processing method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor is used for executing the computer program stored in the memory to realize the operations performed by the file system processing method according to any one of claims 1 to 5.
10. A storage medium, characterized by The storage medium stores at least one instruction, and the instruction is used to realize the operations performed by the file system processing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Universal F2FS file system analyzing method, terminal equipment and storage medium
CN108090168A