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

Standard file IO operating system and method based on distributed network

A distributed network and standard file technology, applied in the field of standard file IO operations, can solve problems such as the impact on the development efficiency of distributed storage programs, affecting the distributed migration of applications, reducing network storage performance and computing efficiency, and reaching a large market. Prospects and business value, the effect of reducing development costs and cycles, and reducing demand

Active Publication Date: 2019-10-11
开采夫(杭州)科技有限公司
View PDF14 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in a networked distributed storage environment, existing solutions are often implemented based on professional programming solution development kits (Software Development Kit, SDK), which put forward higher professional requirements for programmers and engineers. Learning a new knowledge system and computing architecture has had a significant impact on the development efficiency of distributed storage programs. In addition, the new computing architecture also affects the overall distributed transplantation of traditional local applications, which is more likely to be unnecessary or inefficient. The algorithm reduces the performance and computing efficiency of network storage

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
  • Standard file IO operating system and method based on distributed network
  • Standard file IO operating system and method based on distributed network
  • Standard file IO operating system and method based on distributed network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Basic as attached figure 1 Shown:

[0037] Standard file IO operating system based on distributed network, including: user terminal, transmission department, database and interface module;

[0038] User side, used for users to input file access commands and accept file data;

[0039] The transmission part is used to transmit file access commands from the user side. The transmission part includes a two-way communication module and a read-write module. The two-way communication module is used to transmit the user-side access command. The read-write module is used to read and write the database according to the access command. The two-way communication module works through SOCKET based on the TCP / IP protocol, and the read-write module works through the read-write handshake protocol of the transmission command buffer;

[0040] API interface files are stored in the interface module, and the API interface files include header files, static data connection library files and dynamic li...

Embodiment 2

[0068] The present invention includes three parts: network command transmission, server cluster logical file mirroring and code access API interface, and realizes standard file IO operations based on distributed network (such as figure 2 Shown).

[0069] The network command transmission part mainly includes SOCKET development based on TCP / IP protocol and development of read and write handshake protocol for transmission command buffer. It mainly realizes the transmission and reception of file access interface commands. (As shown in Figure 3)

[0070] Server cluster logical file mirroring mainly includes local file management and the development of service nesting, and it ensures that the output interface of each service is in the form of standard file handle FILE. When distributed storage is used, the corresponding pointer linked list should be used. The two servers are connected in the order of fragmentation, and perform relevant translation processing according to the access com...

Embodiment 3

[0076] The present invention also provides a method for network transplantation of local programs, replacing fopen as a whole with kfopen, and fread as a whole with kfread. This embodiment provides an example of constructing a class-like local API library from an existing local API library, which is implemented at the system level based on the C / C++ language supported by the operating system.

[0077] C / C++ language provides FILE, fopen, fclose, ftell, fseek, fread, fwrite, fflush and other application program interface (API) on the most basic local file I / O operation interface, and their respective function prototypes And functions are as follows:

[0078] FILE*fopen(const char*path,const char*mode);

[0079] int fclose(FILE*fp);

[0080] long ftell(FILE*stream);

[0081] int fseek(FILE*stream,long offset,int fromwhere);

[0082] size_t fread(void*buffer,size_t size,size_t count,FILE *stream);

[0083] size_t fwrite(const void*buffer,size_t size,size_t count,FILE*stream);

[0084] int f...

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 relates to the field of computer programming, and provides a standard file IO operating system based on a distributed network, which is low in professional requirements for programmer engineers and high in reading efficiency, and comprises a user side, a transmission part, a database and an interface module, the user side is used for inputting a file access command by a user and receiving file data; the transmission part is used for transmitting a file access command of the user side; API interface files are stored in the interface module, and the interface module is used for calling the corresponding API interface files to access the database according to the file access command; and the database comprises at least two storage units, a plurality of files are respectively stored in the storage units, the storage units are connected according to a fragmentation sequence, the fragmentation sequence forms a pointer chain table, and a plurality of API interfaces for the interface module to access are formed on the database. The invention further provides a standard file IO operation method based on the distributed network.

Description

Technical field [0001] The present invention relates to the field of computer programming, in particular to a standard file IO operation method based on a distributed network. Background technique [0002] In 1945, von Neumann first proposed the concept of "stored program" and the binary principle. Later, people called electronic computer systems designed using this concept and principle as a "von Neumann-type structure" computer. Von Neumann-structured processors use the same memory and transfer via the same bus. [0003] At present, the management of related operating systems of general-purpose computers is logically organized and managed according to disk partitions, folders, files, etc. on storage devices for various types of information. When the user needs to access, it is linked to different information blocks on the disk through the underlying programming interface of the operating system. The CPU cooperates with the underlying driver of the storage device through pointer ...

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 Applications(China)
IPC IPC(8): G06F16/25G06F9/54
CPCG06F9/547G06F2209/544
Inventor 李喆于庆冰
Owner 开采夫(杭州)科技有限公司
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