Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Disk scanning method and device of file system and file management system

A file system and disk scanning technology, applied in file system management, file system, multi-program device, etc., can solve the problem of long time-consuming disk scanning method

Pending Publication Date: 2022-04-12
BEIJING NOVOGENE TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of this application is to provide a disk scanning method and device for a file system, a computer-readable storage medium, a processor, and a file management system, so as to solve the problem that the disk scanning method in the prior art takes too long

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
  • Disk scanning method and device of file system and file management system
  • Disk scanning method and device of file system and file management system
  • Disk scanning method and device of file system and file management system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0084] This embodiment provides a method for scanning the disk of a file system, named mutiscan, the method comprising: a construction step, constructing a shared message queue, the above-mentioned shared message queue is used to save the directory to be scanned; the opening step, opening a plurality of threads; The acquisition step is to obtain a plurality of the above-mentioned directories to be scanned, and the above-mentioned directories to be scanned are in one-to-one correspondence with the above-mentioned threads; the control step is to control the above-mentioned threads to obtain the file information of the files under the top directory of the above-mentioned disk-to-be-scanned directories or control the above-mentioned threads to return The updated directory to be scanned is sent to the shared message queue, and the file information includes the last modification date, file size, owner and group, and the updated directory to be scanned is the directory below the topmos...

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 provides a disk scanning method and device of a file system and a file management system. The method comprises the following steps: a construction step: constructing a shared message queue which is used for storing a to-be-scanned disk directory; a starting step: starting a plurality of threads; an obtaining step: obtaining a plurality of to-be-scanned disk directories, the to-be-scanned disk directories being in one-to-one correspondence with the threads; a control step: controlling the thread to obtain file information of a file under the uppermost directory of the to-be-scanned directory or controlling the thread to return the updated to-be-scanned directory to the shared message queue; and a repeating step: repeating the obtaining step and the control step until the disk sweeping is completed. Compared with the prior art that a find tool performs single-thread disk scanning and an fd tool performs disk scanning and needs to be connected with a tool for checking file information, the disk scanning method of the file system has the advantages that disk scanning efficiency is greatly improved, disk scanning time consumption is reduced, and the problem that disk scanning methods in the prior art consume too long time is solved.

Description

technical field [0001] The present application relates to the field of software development, in particular, to a disk scanning method and device for a file system, a computer-readable storage medium, a processor, and a file management system. Background technique [0002] In the Linux system, the file system is like a tree structure, starting from a common root directory and gradually branching downwards. When a file system is very large, for example, many companies' Linux clusters often have very large and complex files. system, the number of files involved is often above tens of millions. The work that Linux cluster administrators often need to do is to scan these file systems. Scanning is to traverse all files to obtain all files in the cluster and their related information, for example, the last modification date of the file, the file Size, owner, group and other information, and then manage and make decisions based on these file information. The traditional method is ...

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): G06F9/54G06F16/11
Inventor 陈明吴俊李萍蔡晶冯妮佳曹志生
Owner BEIJING NOVOGENE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products