Unlock instant, AI-driven research and patent intelligence for your innovation.

File enumeration method and device based on USN log, electronic equipment and storage medium

A log and enumeration technology, applied in the computer field, can solve the problems of time-consuming acquisition of the full path and low efficiency of file enumeration.

Pending Publication Date: 2021-05-11
ZHUHAI BAOQU TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The general method of enumerating files through USN logs will repeatedly obtain file path information. For example, if there are 100 files in a directory, then 100 path splicing calculations may be performed for this directory, resulting in the same path being repeatedly obtained. problem, and obtaining the full path of a file is very time-consuming, which causes the problem that the efficiency of file enumeration is still low

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
  • File enumeration method and device based on USN log, electronic equipment and storage medium
  • File enumeration method and device based on USN log, electronic equipment and storage medium
  • File enumeration method and device based on USN log, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Such as figure 1 As shown, the embodiment of the present invention provides a method for enumerating files based on USN logs, including:

[0036] S101. Obtain the USN log in the disk drive, each log information in the USN log records the number of a modified object in the disk and the parent directory number of the modified object, wherein the modified object Including: modified files or modified directories;

[0037] In this step, the USN Journal (USN Journal) is a feature of NTFS, the full name is Update SequenceNumber Journal (update sequence number journal), or change journal (Change Journal), which maintains a record of changes made to the volume. The change of a file or directory is random and unpredictable, so the information of the modified object obtained through the USN log is irregular, and the order of arrival of the modified object is unpredictable. Under this background, the present invention aims to It provides an accurate and fast algorithm scheme for ...

Embodiment 2

[0076] Such as Figure 5 As shown, the embodiment of the present invention provides a USN log-based file enumeration device, including: an acquisition unit 21, configured to acquire the USN log in the disk drive, and each log information in the USN log is recorded with the A number of a modified object and a parent directory number of the modified object, wherein the modified object includes: a modified file or a modified directory; the first judging unit 22 is configured to Each log information: judging whether the parent directory number of the modified object recorded in the log information exists in the parent directory number whitelist, and the parent directory number of the preset enumerated object is recorded in the parent directory number whitelist; The second judging unit 23 is configured to determine whether the modified object recorded in the log information satisfies the preset enumeration if the parent directory number of the modified object recorded in the log in...

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

Embodiments of the invention disclose a file enumeration method and device based on a USN log, electronic equipment and a storage medium, relate to the technical field of computers, and can reduce the time consumed for obtaining file path information so as to improve the file enumeration efficiency. The method comprises the following steps: acquiring a USN log in a disk drive; for each piece of log information in the USN log, judging whether a parent directory number of a modified object recorded by the log information exists in a parent directory number white list or not, a parent directory number of a preset enumeration object being recorded in the parent directory number white list; if the parent directory number of the modified object recorded by the log information does not exist in a parent directory number white list, determining whether the modified object recorded by the log information meets a preset enumeration condition; and if the modified object recorded by the log information meets the preset enumeration condition, enumerating the modified object. The file enumeration method and device are suitable for enumerating files.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, device, electronic equipment and storage medium for enumerating files based on USN logs. Background technique [0002] The traditional file enumeration algorithm (file enumeration algorithm: obtain file and directory information under certain conditions), will perform IO operations on files, and file IO operations are very time-consuming, so USN log method is generally used to enumerate at present. Lifting files eliminates the time consumption of file IO operations. [0003] USN Journal (USN Journal): It is a feature of NTFS, the full name is Update Sequence Number Journal (Update Sequence Number Journal), or Change Journal (Change Journal1), and the USN Journal records the change journal of the NTFS system. [0004] The general method of enumerating files through USN logs will repeatedly obtain file path information. For example, if there are 100 files in a director...

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
IPC IPC(8): G06F16/18G06F16/13G06F16/14
CPCG06F16/1815G06F16/13G06F16/148Y02D10/00
Inventor 李雪峰
Owner ZHUHAI BAOQU TECH CO LTD