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

A method and device for determining the partition where a file is located

A technology for determining files and files, applied in the computer field, can solve the problems of decreased file search performance, large storage space, and large size of the path partition mapping table, and achieve the effect of improving file retrieval performance and saving storage space.

Active Publication Date: 2018-11-20
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Embodiments of the present invention provide a method and device for determining the partition where a file is located, which is used to solve the problem that the path partition mapping table in the prior art has a large scale, occupies a large storage space, and causes low query update efficiency of the path partition mapping table. Slow and drastic drop in file search performance issues

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
  • A method and device for determining the partition where a file is located
  • A method and device for determining the partition where a file is located
  • A method and device for determining the partition where a file is located

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] Using the method for determining the partition where the file is located in the present invention, by obtaining the path of the file to be queried, and according to the partitions of the directory tree of all local files, the index information table of the partition is constructed, wherein the index information table of the partition stores each Correspondence between parent partitions and at least one key path corresponding to each parent partition. A key path of any parent partition is the absolute path with the smallest lexicographical order in a child partition of any parent partition. A child partition of any parent partition Corresponding to a file in any parent partition, and the file contains all files in the sub-partition corresponding to the file; traverse the index information table of the partition according to the path of the file to be queried, and determine the index information table of the partition When a key path corresponding to a parent partition is ...

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 method and device for determining zones where files are located. The method and device are used for solving the problems that in the prior art, a route zone mapping table is large in scale, the occupied storage space is larger, and the file searching performance is reduced. The method includes the steps that according to zones of directory trees of all local files, index information tables of zones saving congruent relationships between parent zones and corresponding key routes are constructed; traversal is carried out in the index information tables of the zones according to routes of to-be-inquired files to obtain critical routes which are prefix routes of the routes of the to-be-inquired files; the zones of the to-be-inquired files are determined according to the critical routes. The number of data items in the index information tables of the zones of the files is smaller, and the storage space is greatly saved; meanwhile, the file searching performance is improved, and the inquiring and updating efficiency of the index information tables of the zones is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for determining the partition where a file is located. Background technique [0002] The traditional file system is a metadata management structure based on a directory tree. By constructing a directory tree for all files in the file system, refer to figure 1 As shown, the file management is performed by retrieving the directory tree, and the management method based on the directory tree structure is suitable for scenarios where the files and directories in the file system are not large in scale. [0003] In today's massive file system, the scale of managed files reaches millions or even hundreds of millions. Obviously, the traditional management method based on directory tree structure is far from meeting the performance requirements of file retrieval for massive files. In order to solve this problem, the massive file system is usually partitioned by direc...

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 Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/13G06F16/148
Inventor 薛贞文张程伟林春恭
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More