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

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 reduces the system processing efficiency; for the second method, the file system access does not need There is no impact on the efficiency of the kernel, but because the address spaces between application processes are isolated from each other, if multiple application processes need to access the same file in the file system at the same time, the data of each file in these processes is stored in each application process Each has a copy, so this method is a huge waste of system resources

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

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
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products