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

Method and system of file access

A file system and file technology, applied in the computer field, can solve the problems of high access overhead and low access efficiency, and achieve the effect of low access overhead and high access efficiency

Active Publication Date: 2012-10-10
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF1 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] When storing files in the above-mentioned POSIX file system, when there are many files stored in the file system, and the directory depth corresponding to a file to be accessed is relatively deep, when accessing the file, it is necessary to access the metadata layer by layer according to the file storage path. Until the file to be accessed is accessed, the access overhead is large and the access efficiency is 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
  • Method and system of file access
  • Method and system of file access
  • Method and system of file access

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0019] Compared with relational databases, key-value (Key-Value) databases differ mainly in that the data format is not strictly defined. In a relational database, data definition is the constraint on data, including the relationship between data and the integrity of data. There is no strict data definition in the Key-Value database. For a certai...

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 present invention provide a method and a system of file access. The method comprises that: a file system driving module receives a first access request sent by an upper application; the file system driving module, according to the corresponding relation between an access interface corresponding to the upper application and an access interface of the key-value database, converts the first access request into a second access request which is suitable for access to the key-value database; the file system driving module sends the second access request to a client of the key-value database; and the client of the key-value database, according to the second access request, searches corresponding file content or directory entry content or file attributes or directory entry attributes from the key-value database which is stored in a server of the key-value database. When the technical schemes in the embodiments are compared with technical schemes of layer-by-layer access of metadata in file systems of POSIX in the prior art, access cost is relatively small and access efficiency is relatively high.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a file access method and system. Background technique [0002] In the prior art, a file system similar to Portable Operating System Interface for Unix / Linux (POSIX) includes metadata and data; wherein the metadata part includes file nodes ( inode) information to form a specific data structure (such as a multi-way search tree, etc.). The data part includes the content of the file. The POSIX file system can provide a POSIX interface to upper-level applications. Each directory and file in the POSIX file system has a corresponding file node (inode), which contains information such as the size of the file, creation and modification access time, permission attribution, and the address information of the file content in the data part. For a larger file, the distribution of its data part on the file system may be discontinuous, and may be composed of se...

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): G06F17/30
CPCG06F17/30386G06F17/30G06F16/24
Inventor 张敬亮
Owner HUAWEI CLOUD COMPUTING 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