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.

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.

CN101382953AInactive Publication Date: 2009-03-11ZTE CORP

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

Embodiment Construction

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

[0035] The present invention provides an interface system for accessing file systems in user space, such as figure 1 Shown, comprise dynamic link library 101, shared memory module 102, agent process module 103 and data storage module 104; Described dynamic link library 101, described shared memory module 102, described agent process module 103 and described data storage Modules 104 are sequentially connected in communication. The dynamic link library 101 is used to provide the access interface of the file system and embedded in the address space of the application process 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 the link. Inside the interface function, the purpose of accessing the file system is realized by accessing the shared me...

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
11 Mar 2009
Publication
CN101382953A
IPC
G06F17/30
Inventors
程剑; 张波