Interface system for accessing file system in user space and file reading and writing method

A technology of interface system and file system, applied in the field of data storage and access, which can solve the problems of waste of system resources and decrease of system processing efficiency.

Inactive Publication Date: 2009-03-11
ZTE CORP
View PDF0 Cites 46 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Both methods in the prior art have their advantages and disadvantages. For the method of the first solution for the kernel proxy module, the advantage is that the application program can access this file system without modifying the code, and multiple user processes can simultaneously access, but because the actual file system data processing process is also located in the user space, it is equivalent to adding an additional link to the file system access, which greatly reduc

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
  • Interface system for accessing file system in user space and file reading and writing method
  • Interface system for accessing file system in user space and file reading and writing method
  • Interface system for accessing file system in user space and file reading and writing method

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0034] The preferred embodiments of the present invention will be described in more detail below in conjunction with the accompanying drawings.

[0035] The present invention provides an interface system for accessing file system in user space, such as figure 1 As shown, it includes a dynamic link library 101, a shared memory module 102, an agent process module 103, and a data storage module 104; the dynamic link library 101, the shared memory module 102, the agent process module 103, and the data storage module The modules 104 communicate sequentially. The dynamic link library 101 is used to provide a file system access interface and is embedded in the application process address space to run. Its naming is very similar to the standard file system interface. It can be used normally only by using macro replacement and recompiling and linking. Inside the interface function, the purpose of accessing the file system is achieved by accessing the shared memory. The shared memory modul...

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 an interface system which can access a file system in a user space and a method for file reading and writing. The interface system comprises a dynamic link library which is used for providing an access interface of the file system and embedded in an application process address space to operate, and also comprises a shared memory module and an agent process module, wherein,the dynamic link library is connected with the shared memory module through communication; the shared memory module is used for exchanging and sharing relevant data between the processes and storing part of relevant data; the application process is linked with the shared memory module through the dynamic link library and sends parameters which read relevant data to the shared memory module; the shared memory module determines the read relevant data according to the parameters; and if the relevant data exists in the shared memory module, the shared memory module then sends the relevant data toa corresponding buffer area of the application process. Additionally, the invention adopts a sharing mechanism to improve the system processing efficiency.

Description

technical field [0001] The invention relates to a data storage and access technology in a UNIX or Linux operating system, in particular to an interface system and a file reading and writing method for accessing a file system in user space. Background technique [0002] At present, there are often a large number of media data storage and access requirements in business operations such as the Internet and telecommunications. These requirements generally require large storage capacity, high reliability, and low cost, and general-purpose file systems generally cannot meet the requirements. In general, it is necessary to develop a file system that meets specific requirements, and for upper-layer business, the interface for accessing the file system should remain stable and highly compatible. There are two commonly used solutions at present. The first one is to use the characteristics of the operating system kernel to reside a module in the kernel as a proxy. Data access and mani...

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
Inventor 程剑张波夏舰波
Owner ZTE CORP
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