Compressed-file recovery method of APFS file system and storage medium
A technology for compressing files and restoring methods, applied in the direction of file systems, file/folder operations, file access structures, etc., and can solve problems such as restoration failures
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] Please refer to figure 2 , the first embodiment of the present invention is: a compressed file recovery method of the APFS file system. Before explaining the steps of this method, the APFS file system is introduced first.
[0057]The minimum storage unit of the APFS file system is a block, and the size of a block is 4096 bytes. Each block of non-file data blocks begins with a 32-byte block header followed by the corresponding block data. The block header mainly consists of four parts, including the block check value (blockchecksum, 8 bytes, using Fletcher's checksum verification algorithm), block ID (blockid, 8 bytes), block version (blockversion, 8 bytes) and block type (blocktype, 2 bytes). According to different block types, the content of the block data storage identifier has different meanings. The APFS file system mainly has the following types of blocks: container blocks, file information node blocks, space management blocks, allocation information blocks, B...
Embodiment 2
[0094] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiment, and a computer program is stored thereon, and the program implements the following steps when executed by a processor:
[0095] Acquire a free block in the free space in turn;
[0096] If the one free block is a file information node block, and the one free block contains compressed data, read and decompress the compressed data;
[0097] Judging whether the free block is a first type of data block, the first type of data block includes an index table and a compressed block, if so, according to the value of each index in the index table, calculate the value of the free block. the length of each compressed block;
[0098] According to the index table and the length of each compressed block, read and decompress the compressed data of each compressed block;
[0099] Determine whether the free block is a second type of data block, the second type of data block includes a ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com