Fast FAT32 disk partition traversal and file searching method

A FAT32, disk partition technology, applied in special data processing applications, instruments, electrical digital data processing and other directions, can solve the problems of low efficiency, inconvenient traversal and file search, etc., to improve overall performance, improve traversal and search speed, The effect of reducing the number of reads

Active Publication Date: 2015-11-11
武汉烽火众智智慧之星科技有限公司
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is inconvenient to traverse and find files between different systems, especially for the traversal and download of a large number of files in the partition, through the upper-layer software sharing or identifying and searching methods, it needs to be processed and transferred by the upper-layer software and trigger multiple disk reads in the same directory area operation, less efficient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Fast FAT32 disk partition traversal and file searching method
  • Fast FAT32 disk partition traversal and file searching method
  • Fast FAT32 disk partition traversal and file searching method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Below in conjunction with accompanying drawing and embodiment describe in detail:

[0027] 1. Method

[0028] like figure 1 , this method includes the following steps:

[0029] ① Obtaining partition-related parameters and calculating related sector location information-101;

[0030] Described relevant parameter comprises partition sector size, partition cluster size, partition FAT table sector quantity and FAT table starting sector;

[0031] Described relevant sector position information is to obtain root directory area disk initial sector position and FAT table initial position through the calculation of described relevant parameter;

[0032] ②The raw disk reads the starting sector of the disk in the root directory area into the memory, and sets the sector offset address to 0-102;

[0033] ③ Temporarily save the current directory item search position -103 in the memory;

[0034] The temporary storage of the search position of the current directory item provides th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a fast FAT32 disk partition traversal and file searching method and relates to an FAT32 file system and a magnetic disk data search and recovery technology. The method of the invention comprises the steps as follows: raw-disk-reading disk sector data of a root directory and subdirectories to internal storage, and performing directory entry search to all levels of directories: gradually adding 32 bytes in the same directory to perform horizontal search, and performing downward search to the searched subdirectory entry at a start position of the subdirectory, and returning to a search position stored in a parent directory to search by performing upward search after finishing the search of the current subdirectory, and performing traversing to finish the search of each directory entry sub-tree of the root directory in turn, and performing file attribute search, classification and ordered storage to a file directory entry. The method of the invention improves traversal and search speed, and improves overall performance for subsequent file search, read or download. The method of the invention is especially suitable for FAT32 file system partition traversal and file search in an embedded system.

Description

technical field [0001] The invention relates to a FAT32 file system, disk data search and restore technology, in particular to a fast FAT32 disk partition traversal and file search method. Background technique [0002] FAT32 file system is a file system invented by Microsoft and has some patents. The location and attributes of FAT32 files are stored in the directory area in the form of directory entries, and the data area stores file data; [0003] The FAT32 file system distinguishes different categories of directory entries through field marks: it is divided into root directory entries or subdirectory entries according to the file storage directory hierarchy, and the root directory entries and subdirectory entries are located in directory areas at all levels (corresponding to different disk clusters); According to the length of the file name, it is divided into a long file name directory entry or a short file name directory entry; and, the parent directory entry or the curr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F17/30
Inventor 梅业龙舒展
Owner 武汉烽火众智智慧之星科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products