CN109271264A - A kind of communication connection method for building up and device - Google Patents

A kind of communication connection method for building up and device Download PDF

Info

Publication number
CN109271264A
CN109271264A CN201811004632.XA CN201811004632A CN109271264A CN 109271264 A CN109271264 A CN 109271264A CN 201811004632 A CN201811004632 A CN 201811004632A CN 109271264 A CN109271264 A CN 109271264A
Authority
CN
China
Prior art keywords
samba
module
file system
telefile
dynamic base
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811004632.XA
Other languages
Chinese (zh)
Inventor
魏盟
孙业宽
毕敬强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811004632.XA priority Critical patent/CN109271264A/en
Publication of CN109271264A publication Critical patent/CN109271264A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present application discloses a kind of communication connection method for building up and device, this method comprises: samba module starts samba process corresponding with client when samba module receives the request of client carry Telefile;Samba process calls the dynamic base of Virtual File System module to realize that samba process is communicated with Virtual File System module, Virtual File System module is pre-set in samba module, and Virtual File System module is for calling the dynamic base of Telefile to realize that Virtual File System module is communicated with Telefile.The quantity of the client of access Telefile can be improved in this kind of method.

Description

A kind of communication connection method for building up and device
Technical field
This application involves field of computer technology, and in particular to a kind of communication connection method for building up and device.
Background technique
With the arrival of big data era, the data volume generated in internet is increasing, the memory space of client It is insufficient for the demand of user, therefore user can access the content in Telefile by client.In existing skill In art, can use samba module makes client carry Telefile, each client pair in traditional samba module A samba process is answered, each samba process calls the dynamic base of a Telefile, due to each telefile system The dynamic base of system can occupy a certain amount of memory, and the limited memory of node where samba module, therefore pass through samba mould The client terminal quantity of block carry is less.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of communication connection method for building up and device, to solve in the prior art Pass through the less technical problem of the client terminal quantity of samba module carry.
To solve the above problems, technical solution provided by the embodiments of the present application is as follows:
A kind of communication connection method for building up, which comprises
When samba module receives the request of client carry Telefile, the samba module starting and the visitor The corresponding samba process in family end;
The samba process calls the dynamic base of the Virtual File System module to realize the samba process and institute It states Virtual File System module to be communicated, the Virtual File System module is pre-set in the samba module, described Virtual File System module for call the dynamic base of the Telefile with realize the Virtual File System module with The Telefile is communicated.
In one possible implementation, the dynamic of the Virtual File System module is called in the samba process Before library, the method also includes:
The samba module obtains active client quantity, if the client terminal quantity is greater than preset threshold, triggers institute State the dynamic base that samba process calls the Virtual File System module.
In one possible implementation, the method also includes:
If the client terminal quantity is less than or equal to preset threshold, triggers the samba process and call the long-range text The dynamic base of part system is to realize that the samba process is communicated with the Telefile.
In one possible implementation, the method also includes:
The samba module, which receives, calls switching command, triggers the samba process by calling the Virtual File System The dynamic base of module is switched to the dynamic base for calling the Telefile, alternatively, by calling the Telefile Dynamic base is switched to the dynamic base for calling the Virtual File System module.
In one possible implementation, the samba module operates in the memory node of the Telefile In, alternatively, the samba module operates in file service node.
Device is established in a kind of communication connection, and described device includes:
Processing module and Virtual File System module;
The processing module starts corresponding with the client when receiving the request of client carry Telefile Samba process;The samba process is for calling the dynamic base of the Virtual File System module to realize the samba Process is communicated with the Virtual File System module;
The Virtual File System module realizes the virtual text for calling the dynamic base of the Telefile Part system module is communicated with the Telefile.
In one possible implementation, the processing module is also used to:
Active client quantity is obtained, if the client terminal quantity is greater than preset threshold, triggers the samba process tune With the dynamic base of the Virtual File System module.
In one possible implementation, the processing module is also used to:
If the client terminal quantity is less than or equal to preset threshold, triggers the samba process and call the long-range text The dynamic base of part system is to realize that the samba process is communicated with the Telefile.
In one possible implementation, the processing module is also used to:
It receives and calls switching command, trigger the samba process by the dynamic base of the calling Virtual File System module It is switched to the dynamic base for calling the Telefile, alternatively, by calling the dynamic base of the Telefile to be switched to Call the dynamic base of the Virtual File System module.
In one possible implementation, the communication connection is established device and is operated in the Telefile, Alternatively, operating in file service node.
It can be seen that the embodiment of the present application has the following beneficial effects:
The embodiment of the present application pre-sets Virtual File System module in samba module, by Virtual File System mould Block calls the dynamic base of Telefile, when client needs carry Telefile, starts corresponding with client Samba process, the dynamic base that samba process calls the Virtual File System module to provide, to realize that it is virtual that samba process passes through File system module is communicated with Telefile, if the corresponding samba process of each client passes through Virtual File System Module is communicated with Telefile, then only needs the dynamic base of a Telefile, and committed memory is smaller, so as to Make to increase by the client terminal quantity of samba module carry.
Detailed description of the invention
Fig. 1 is the schematic diagram of a scenario that a kind of client provided by the embodiments of the present application accesses Telefile;
Fig. 2 is the prior art that a kind of windows client provided by the embodiments of the present application accesses distributed file system Schematic diagram of a scenario;
Fig. 3 is a kind of flow diagram for communicating to connect method for building up provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another communication connection method for building up provided by the embodiments of the present application;
Fig. 5 is that a kind of scheme for communicating to connect method for building up provided by the embodiments of the present application realizes process schematic;
Fig. 6 is the composition schematic diagram that device is established in a kind of communication connection provided by the embodiments of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Mode is applied to be described in further detail the embodiment of the present application.
The scheme of the embodiment of the present application can be applied in the scene of client access Telefile.With big data The arrival in epoch, the data volume generated in internet is increasing, and the memory space inadequate of client is to meet the need of user It asks, therefore user can access the content in Telefile by client.As shown in Figure 1, Fig. 1 illustrates this kind of Shen Please client access Telefile in embodiment schematic diagram of a scenario.Specifically: when client needs to access long-range text When part system, client can send the request of carry Telefile to samba module, and samba module receives this and asks It will start samba process corresponding with client after asking;It is realized by samba process and is communicated with Telefile, simultaneously Samba process provides file sharing protocol (such as CIFS agreement) to client, therefore client can be assisted by file-sharing Carry Telefile is discussed, is communicated with Telefile.
Wherein, CIFS (Common Internet File System, universal network file system) agreement is a kind of file Shared agreement, client the operation such as can be written and read to the file in Telefile by the agreement;Samba module is A kind of service software that file sharing protocol may be implemented, such as: samba module is a kind of service that CIFS agreement may be implemented Software.
Wherein, in actual scene, the memory node for forming Telefile can be one or more.Samba module It can be set in any one memory node of Telefile, also can be set in the text independently of Telefile In part service node, the function of samba module will not be because of running position (node where samba module) hair of samba module Changing.
In the prior art, it is assumed that there is n client to need to access Telefile, when n client is to samba mould When block sends carry request, samba module needs to start a corresponding samba to each client after receiving request Process includes n samba process that is, in samba module, and each samba process needs to call a Telefile Dynamic base, therefore n client needs corresponding dynamic base for calling n Telefile, since each dynamic base is equal A certain amount of memory of node where samba module can be occupied, and the limited memory of node where samba module, therefore can be with The negligible amounts of the dynamic base of the Telefile of calling, i.e., it is less by the client terminal quantity of samba module carry.
The prior art is exemplified below, is that the distributed file system that multiple nodes form is with Telefile Example, as shown in Figure 2.
In this instance, distributed file system is made of 3 memory nodes, runs samba module in file service node In;Wherein, the agreement that samba process provides can be CIFS agreement, therefore file service node is CIFS service node;Its In, the dynamic base of distributed file system is equivalent to vfs (virtual File System, the void of distributed file system offer Quasi- file system) interface;Wherein, client can be windows client.
When windows client needs to access distributed file system, windows client is sent to samba module The request of carry distributed file system, samba module will start one and the windows client pair after receiving the request The samba process answered;In addition, the samba process can call the dynamic base of a distributed file system, by calling the dynamic Library can be such that the samba process is communicated with distributed file system;Meanwhile the samba process can be mentioned to windows client For CIFS agreement, windows client is led to by CIFS agreement carry distributed file system with distributed file system Letter.Assuming that there are 3 windows clients to need to access distributed file system, 3 windows visitors are received in samba module A corresponding samba is started to each windows client after the request for the carry distributed file system that family end is sent Process then includes 3 samba processes in samba module, and each samba process calls a distributed file system Dynamic base, then samba module has the dynamic base for having invoked 3 distributed file systems altogether, since each dynamic base can occupy A certain amount of memory of CIFS service node, and the limited memory of CIFS service node, if the memory of CIFS service node is only Can allow the maximum quantity of dynamic base called is 3, then others windows client will can not be again due to samba process It calls the dynamic base of distributed file system and is unable to carry distributed file system, therefore others windows client It can not be communicated with distributed file system.
Based on this, the embodiment of the present application provides a kind of communication connection method for building up to solve to pass through samba in the prior art The less technical problem of the client terminal quantity of module carry.
In the embodiment of the present application, a Virtual File System module, the Virtual File System mould are set in samba module Block can call the dynamic base of Telefile, by calling the dynamic base of Telefile that can enable the Virtual File System Module is communicated with Telefile.And the Virtual File System module can externally provide dynamic base, client again The dynamic base that corresponding samba process can call the Virtual File System module to provide is to realize the samba process and virtual File system module is communicated.Wherein, the dynamic base which calls Virtual File System module to provide is in void Corresponding association's journey is started in quasi- file system module;Since Virtual File System module is by calling Telefile Dynamic base communicated with Telefile;And the dynamic base that samba process calls Virtual File System module to provide It is communicated with Virtual File System module, then the samba process can be communicated with Telefile.Meanwhile samba Process provides file sharing protocol (such as CIFS agreement) to client.Therefore, client can be hung by file sharing protocol Telefile is carried, is communicated with Telefile.Wherein, Virtual File System module can be called less long-range The dynamic base of file system and be provided out more dynamic base, such as: Virtual File System module can call 1 long-range text The dynamic base of part system and be provided out 2 (or multiple) dynamic bases, then the corresponding samba process of more multi-client can lead to The dynamic base for calling Virtual File System module to provide is crossed to communicate with Telefile.Therefore this method call it is less remote The lesser memory of node where only taking up samba module under the premise of the dynamic base of journey file system, to make through samba mould The client terminal quantity of block carry increases.
It is a kind of flow diagram for communicating to connect method for building up provided by the embodiments of the present application referring to Fig. 3, including following Step 301-302:
When step 301:samba module receives the request of client carry Telefile, the starting of samba module and visitor The corresponding samba process in family end.
Wherein, when client needs to access Telefile, it is remotely literary that client can send carry to samba module Part system request when samba module receives the request, will start samba process corresponding with client.
Step 302:samba process calls the dynamic base of Virtual File System module to realize samba process and virtual text Part system module is communicated, and Virtual File System module is pre-set in samba module, and Virtual File System module is used for Call the dynamic base of Telefile to realize that Virtual File System module is communicated with Telefile.
One Virtual File System module is set in samba module, which can call remotely The dynamic base of file system, by calling the dynamic base of Telefile that can enable the Virtual File System module and telefile System is communicated.And the Virtual File System module can externally provide dynamic base, the corresponding samba process of client again The dynamic base that the Virtual File System module can be called to provide is to realize that the samba process and Virtual File System module carry out Communication.Wherein, the dynamic base which calls Virtual File System module to provide is in Virtual File System module Start corresponding association's journey;Since Virtual File System module is by calling the dynamic base of Telefile and long-range text Part system is communicated;And dynamic base and Virtual File System mould that samba process calls Virtual File System module to provide Block is communicated, then the samba process can be communicated with Telefile.Meanwhile samba process is provided to client File sharing protocol (such as CIFS agreement).Therefore, client can by file sharing protocol carry Telefile, with Telefile is communicated.
Wherein, samba module may operate in the memory node of Telefile, alternatively, samba module operates in In file service node.
In actual scene, the memory node for forming Telefile can be one or more.Samba module can be with It is arranged in any one memory node of Telefile, also can be set in the file clothes independently of Telefile It is engaged in node, the function of samba module will not become because of the running position (node where samba module) of samba module Change.
In this way, the embodiment of the present application pre-sets Virtual File System module in samba module, by virtual file system Module of uniting calls the dynamic base of Telefile, when client needs carry Telefile, starting and client pair The samba process answered, the dynamic base that samba process calls the Virtual File System module to provide, to realize that samba process passes through Virtual File System module is communicated with Telefile, if the corresponding samba process of each client passes through virtual file System module is communicated with Telefile, then only needs the dynamic base of a Telefile, and committed memory is smaller, thus It can make to increase by the client terminal quantity of samba module carry.
In a kind of implementation of the present embodiment, samba module can be called remote according to client terminal quantity, flexible choice The dynamic base of journey file system or the dynamic base of Virtual File System module, mention as shown in figure 4, showing the embodiment of the present application The flow diagram of another communication connection method for building up of confession, may include steps of 401-404:
When step 401:samba module receives the request of client carry Telefile, the starting of samba module and visitor The corresponding samba process in family end.
Wherein, when client needs to access Telefile, it is remotely literary that client can send carry to samba module The request of part system when samba module receives the request, will start samba process corresponding with client.
Step 402:samba module obtains active client quantity.
Wherein, it will appear the situation that multiple client needs to access Telefile in most of actual scene, The available quantity for obtaining the active client including active client of samba module.
Step 403: if client terminal quantity is greater than preset threshold, triggering samba process calls Virtual File System module Dynamic base to realize that samba process is communicated with Virtual File System module.Virtual File System module is pre-set at In samba module, Virtual File System module is for calling the dynamic base of Telefile to realize Virtual File System mould Block is communicated with Telefile.
Wherein, node is a certain amount of where occupying samba module due to the dynamic base of each Telefile Memory, and the limited memory of node where samba module, it may thus be appreciated that node memory where samba module allows the remote of calling The dynamic base of journey file system has maximum quantity, which is the dynamic that can be used for the Telefile called The maximum quantity M in librarymax.Preset a preset threshold, wherein the preset value can be determines according to actual conditions.It will preset Threshold value indicates with M, wherein the value range of M is 0,1,2 ... MmaxIn arbitrary value.
If client terminal quantity is greater than preset threshold M, under such situation, represents active client and need to call virtual file The dynamic base of system module.A Virtual File System module is provided in samba module, which can To call the dynamic base of Telefile, by calling the dynamic base of Telefile that can enable the Virtual File System module It is communicated with Telefile.And the Virtual File System module can externally provide dynamic base again, and samba module opens After moving the corresponding samba process of each client, the corresponding samba process of each client can call the virtual file system The dynamic base that module of uniting provides is to realize that the samba process is communicated with Virtual File System module.Wherein, the samba into The dynamic base that journey calls Virtual File System module to provide is that a corresponding association is started in Virtual File System module Journey;Since Virtual File System module is by calling the dynamic base of Telefile to be communicated with Telefile;And The dynamic base that samba process calls Virtual File System module to provide again is communicated with Virtual File System module, then should Samba process can be communicated with Telefile.Meanwhile samba process provides file sharing protocol (ratio to client Such as CIFS agreement).Therefore, client can by file sharing protocol carry Telefile, with Telefile into Row communication.
Wherein, Virtual File System module can call the dynamic base of less Telefile and be provided out more Dynamic base, such as: Virtual File System module can call the dynamic base of 1 Telefile and be provided out 2 it is dynamic State library, then the corresponding samba process of more multi-client can by call Virtual File System module provide dynamic base with Telefile communication.Therefore it when client terminal quantity is more than preset threshold, is called by Virtual File System module less Telefile dynamic base (occupy samba module where node lesser memory) and more samba are externally provided The dynamic base that process can be called, it is and remote to make greater number of client by samba module carry Telefile Journey file system is communicated.
Step 404: if client terminal quantity is less than or equal to preset threshold, triggering samba process calls telefile system The dynamic base of system is to realize that samba process is communicated with Telefile.
Wherein, if active client quantity is less than or equal to preset threshold, under such situation, samba module starting visitor After the corresponding samba process in family end;The corresponding samba process of client can call the dynamic base of Telefile, By calling dynamic base samba process that can be communicated with Telefile, while samba process is provided to client File sharing protocol (such as CIFS agreement), thus client can by file sharing protocol carry Telefile, with Telefile is communicated.
In this way, in the embodiment of the present application, it can be when client terminal quantity be less, the corresponding samba process of client is straight The dynamic base for calling Telefile is connect, to make the better performances of client carry Telefile, in number clients According to it is more when, the corresponding samba process of client calls the dynamic base of Virtual File System module, so as to so as to pass through The client terminal quantity of samba module carry increases.
A scene of the embodiment of the present application is exemplified below.It is built as shown in figure 5, Fig. 5 illustrates a kind of communicate to connect The scheme of cube method realizes process schematic.
In this instance, distributed file system has 3 memory nodes, and samba module operates in file service node;Its In, the agreement that samba process provides can be CIFS agreement, therefore file service node is CIFS service node;Wherein, divide The dynamic base of cloth file system can be the vfs interface of distributed file system offer;Wherein, client can be Windows client;Wherein, Virtual File System module can be a kind of gvfs software realized by Go language, gvfs software It can parse the client protocol of distributed file system and be provided out vfs interface;Wherein, preset threshold M=2 is set.
Gvfs software is set in samba module, which can call 1 dynamic of distributed file system The vfs interface that library, i.e. calling distributed file system provide, by calling this dynamic base that can make gvfs software and distributed document System is communicated.And gvfs software can externally provide dynamic base again.
Samba module first determines whether client after receiving the carry Telefile request of windows client transmission Hold quantity, send the windows client of request for the first two, the corresponding samba process of starting windows client it Afterwards, the corresponding samba process of the two clients can call the dynamic base of Telefile, latter two is sent and is requested Windows client, after the corresponding samba process of starting windows client, the corresponding samba of the two clients The dynamic base that process calls gvfs software to provide is to realize that the samba process is communicated with gvfs software.Wherein, the samba The vfs interface that process calls gvfs software to provide is that corresponding association's journey is started in gvfs software;Since gvfs is soft Part is by calling the vfs interface of distributed file system to be communicated with distributed file system;And samba process is called The vfs interface that gvfs software provides is communicated with Virtual File System module, then the samba process can be with distributed document System is communicated.Meanwhile samba process provides CIFS agreement to windows client.Therefore, 2 windows clients End can be communicated by CIFS agreement carry distributed file system with distributed file system.Wherein, in addition 2 The corresponding samba process of windows client can call the vfs interface of distributed file system with realize the samba into Journey is communicated with distributed file system, while samba process provides CIFS agreement to windows client, therefore Windows client can be communicated by CIFS agreement carry Telefile with Telefile.
Wherein, gvfs software can configure the association's journey communicated with distributed file system, meet the needs of different scenes;
Wherein, gvfs software has fully considered the complexity of distributed file system, and configuration monitoring service logic assists journey To carry out the processing of abnormal traffic.Such as: if the corresponding samba process of client calls asking for the vfs interface of gvfs software Time-out is sought, then gvfs software can still reset association's journey automatically or establish connection with distributed file system again, to avoid working as Samba process resumption is normal and when sending request and the connection of gvfs software and distributed file system disconnection leads to windows The situation that client and distributed file system disconnect;Alternatively, if gvfs software transfer distributed file system establishes connection When time-out, then gvfs software, which can shift to an earlier date to samba process, returns to request error information etc., passes through the monitoring business logic and assists journey Samba process can be reduced and connect the probability disconnected with windows client.
Wherein, art methods are optimized in technical solution provided by the embodiments of the present application, and the application is real Technical solution and the prior art for applying example offer are completely compatible.Specifically: if necessary to access the client of Telefile Quantity is more, then scheme provided by the embodiments of the present application can be used, it may be assumed that calls Virtual File System module by samba process The mode of dynamic base enable client be communicated with Telefile;If necessary to access the client of Telefile The scheme of the prior art then can be used in negligible amounts, it may be assumed that the side of the dynamic base of Telefile is called by samba process Formula enables client be communicated with Telefile.
In addition, can also include: that samba module receives calling switching command in a kind of implementation of the present embodiment, Triggering samba process is switched to the dynamic base for calling Telefile by the dynamic base of calling Virtual File System module, or Person is switched to the dynamic base for calling Virtual File System module by the dynamic base of calling Telefile.
Wherein, switching command is called to can be the switching command that control samba process calls different dynamic bases.The calling Switching command can be a kind of external command, that is, not need the code of modification samba module;If calling switching command is External command, the then dynamic base that can be called to it under the premise of samba process is not restarted switch over.
In actual scene, it may appear that certain specific situations are needed samba process by calling Virtual File System mould The dynamic base of block is switched to the dynamic base for calling Telefile, such as: when some client is to access Telefile Performance requirement it is higher when, in which case can pass through call switching command control samba module, trigger samba process The dynamic base for calling Telefile is switched to by the dynamic base of calling Virtual File System module, then the client can pass through It calls the dynamic base of Telefile to be communicated with Telefile, improves the property to access Telefile Energy.
In actual scene, it also will appear certain specific situations and need samba process by calling Telefile Dynamic base be switched to call Virtual File System module dynamic base, such as: need to access the client of Telefile When increasing up to over preset threshold, samba can be triggered by calling switching command to control samba module in which case Process is switched to the dynamic base for calling Virtual File System module by the dynamic base of calling Telefile, then is increased in client It also can guarantee that increased client is communicated with Telefile in the case where more.
Referring to Fig. 6, to apply for that the composition schematic diagram of device, the device packet are established in a kind of communication connection provided in this embodiment It includes:
Processing module 601, when for receiving the request of client carry Telefile, starting and the client pair The samba process answered;The samba process is realized described for calling the dynamic base of the Virtual File System module Samba process is communicated with the Virtual File System module;
Virtual File System module 602 realizes the virtual text for calling the dynamic base of the Telefile Part system module is communicated with the Telefile.
In a kind of implementation of the present embodiment, the processing module is also used to:
Active client quantity is obtained, if the client terminal quantity is greater than preset threshold, triggers the samba process tune With the dynamic base of the Virtual File System module.
In a kind of implementation of the present embodiment, the processing module is also used to:
If the client terminal quantity is less than or equal to preset threshold, triggers the samba process and call the long-range text The dynamic base of part system is to realize that the samba process is communicated with the Telefile.
In a kind of implementation of the present embodiment, the processing module is also used to:
It receives and calls switching command, trigger the samba process by the dynamic base of the calling Virtual File System module It is switched to the dynamic base for calling the Telefile, alternatively, by calling the dynamic base of the Telefile to be switched to Call the dynamic base of the Virtual File System module.
In a kind of implementation of the present embodiment, the communication connection establishes device and operates in the Telefile In, alternatively, operating in file service node.
In this way, the embodiment of the present application pre-sets Virtual File System module in samba module, by virtual file system Module of uniting calls the dynamic base of Telefile, when client needs carry Telefile, starting and client pair The samba process answered, the dynamic base that samba process calls the Virtual File System module to provide, to realize that samba process passes through Virtual File System module is communicated with Telefile, if the corresponding samba process of each client passes through virtual file System module is communicated with Telefile, then only needs the dynamic base of a Telefile, and committed memory is smaller, thus It can make to increase by the client terminal quantity of samba module carry.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality For applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase Place is closed referring to method part illustration.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c (a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also To be multiple.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of communication connection method for building up, which is characterized in that the described method includes:
When samba module receives the request of client carry Telefile, the samba module starting and the client Corresponding samba process;
The samba process calls the dynamic base of the Virtual File System module to realize the samba process and the void Quasi- file system module is communicated, and the Virtual File System module is pre-set in the samba module, described virtual File system module for call the dynamic base of the Telefile with realize the Virtual File System module with it is described Telefile is communicated.
2. the method according to claim 1, wherein calling the Virtual File System in the samba process Before the dynamic base of module, the method also includes:
The samba module obtains active client quantity, if the client terminal quantity is greater than preset threshold, described in triggering Samba process calls the dynamic base of the Virtual File System module.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If the client terminal quantity is less than or equal to preset threshold, triggers the samba process and call the telefile system The dynamic base of system is to realize that the samba process is communicated with the Telefile.
4. method according to claim 1-3, which is characterized in that the method also includes:
The samba module, which receives, calls switching command, triggers the samba process by calling the Virtual File System module Dynamic base be switched to the dynamic base for calling the Telefile, alternatively, the dynamic by calling the Telefile Library is switched to the dynamic base for calling the Virtual File System module.
5. the method according to claim 1, wherein the samba module operates in the Telefile Memory node in, alternatively, the samba module operates in file service node.
6. device is established in a kind of communication connection, which is characterized in that described device includes:
Processing module and Virtual File System module;
The processing module starts corresponding with the client when receiving the request of client carry Telefile Samba process;The samba process for call the dynamic base of the Virtual File System module with realize the samba into Journey is communicated with the Virtual File System module;
The Virtual File System module realizes the virtual file system for calling the dynamic base of the Telefile System module is communicated with the Telefile.
7. device according to claim 6, which is characterized in that the processing module is also used to:
Active client quantity is obtained, if the client terminal quantity is greater than preset threshold, the samba process is triggered and calls institute State the dynamic base of Virtual File System module.
8. device according to claim 7, which is characterized in that the processing module is also used to:
If the client terminal quantity is less than or equal to preset threshold, triggers the samba process and call the telefile system The dynamic base of system is to realize that the samba process is communicated with the Telefile.
9. according to the described in any item devices of claim 6-8, which is characterized in that the processing module is also used to:
It receives and calls switching command, trigger the samba process by calling the dynamic base of the Virtual File System module to switch For the dynamic base for calling the Telefile, alternatively, by calling the dynamic base of the Telefile to be switched to calling The dynamic base of the Virtual File System module.
10. device according to claim 6, which is characterized in that the communication connection establish device operate in it is described long-range In file system, alternatively, operating in file service node.
CN201811004632.XA 2018-08-30 2018-08-30 A kind of communication connection method for building up and device Pending CN109271264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811004632.XA CN109271264A (en) 2018-08-30 2018-08-30 A kind of communication connection method for building up and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811004632.XA CN109271264A (en) 2018-08-30 2018-08-30 A kind of communication connection method for building up and device

Publications (1)

Publication Number Publication Date
CN109271264A true CN109271264A (en) 2019-01-25

Family

ID=65155025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811004632.XA Pending CN109271264A (en) 2018-08-30 2018-08-30 A kind of communication connection method for building up and device

Country Status (1)

Country Link
CN (1) CN109271264A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131200A (en) * 2020-09-15 2020-12-25 北京精一强远科技有限公司 Distributed mass file query system and method based on cifs sharing
CN113612811A (en) * 2021-06-20 2021-11-05 济南浪潮数据技术有限公司 Method, system, equipment and medium for client mounting in multiple channels

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469269A (en) * 2002-07-15 2004-01-21 株式会社日立制作所 Virtual centralized method and apparatus for multi-network memory
CN102118442A (en) * 2011-02-21 2011-07-06 清华大学 Method and device for accessing Web resources
CN102622352A (en) * 2011-01-26 2012-08-01 深圳市闪联信息技术有限公司 Method, server and system for achieving shared file
CN103731483A (en) * 2013-12-25 2014-04-16 侯金涛 Virtual file system based on cloud computing
CN106294842A (en) * 2016-08-19 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of data interactive method, platform and distributed file system
CN106933872A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 A kind of method and device that cloud storage service is accessed by traditional file systemses interface
CN107493329A (en) * 2017-08-15 2017-12-19 诸葛晴凤 A kind of remote document access method of distributed memory file system
CN107734026A (en) * 2017-10-11 2018-02-23 郑州云海信息技术有限公司 A kind of design method, device and the equipment of network attached storage cluster
CN107800695A (en) * 2017-10-17 2018-03-13 郑州云海信息技术有限公司 File access method, device based on Samba agreements, system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1469269A (en) * 2002-07-15 2004-01-21 株式会社日立制作所 Virtual centralized method and apparatus for multi-network memory
CN102622352A (en) * 2011-01-26 2012-08-01 深圳市闪联信息技术有限公司 Method, server and system for achieving shared file
CN102118442A (en) * 2011-02-21 2011-07-06 清华大学 Method and device for accessing Web resources
CN103731483A (en) * 2013-12-25 2014-04-16 侯金涛 Virtual file system based on cloud computing
CN106933872A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 A kind of method and device that cloud storage service is accessed by traditional file systemses interface
CN106294842A (en) * 2016-08-19 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of data interactive method, platform and distributed file system
CN107493329A (en) * 2017-08-15 2017-12-19 诸葛晴凤 A kind of remote document access method of distributed memory file system
CN107734026A (en) * 2017-10-11 2018-02-23 郑州云海信息技术有限公司 A kind of design method, device and the equipment of network attached storage cluster
CN107800695A (en) * 2017-10-17 2018-03-13 郑州云海信息技术有限公司 File access method, device based on Samba agreements, system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131200A (en) * 2020-09-15 2020-12-25 北京精一强远科技有限公司 Distributed mass file query system and method based on cifs sharing
CN112131200B (en) * 2020-09-15 2024-06-04 北京精一强远科技有限公司 Cifs sharing-based distributed mass file query system and method
CN113612811A (en) * 2021-06-20 2021-11-05 济南浪潮数据技术有限公司 Method, system, equipment and medium for client mounting in multiple channels

Similar Documents

Publication Publication Date Title
TWI385967B (en) Smart-switch management module system and method
US6336147B1 (en) Method and apparatus for managing connections for communication among objects in a distributed object system
US5606719A (en) Temporary state preservation for a distributed file service
Kleinrock Breaking loose
EP0511142A1 (en) Method and apparatus for data processing network interconnection
CN103257941B (en) Multi-protocol storage controller and system
EP2838243B1 (en) Capability aggregation and exposure method and system
JP2000507428A (en) Client management flow control method and apparatus on finite memory computer system
CN108600316B (en) Data management method, system and equipment of cloud storage service
JP2002374303A (en) System and method for predicting network performance
CN112398936B (en) Kubernetes-based multi-network card container implementation method and system
CN110389935A (en) A kind of method, equipment and computer storage medium starting small routine
CN109271264A (en) A kind of communication connection method for building up and device
CN111277483B (en) Multi-terminal message synchronization method, server and storage medium
US20070271239A1 (en) Method for transferring data between terminal apparatuses in a transparent computation system
CN114047964B (en) Method for enabling Android-supported camera to be hot-plugged when Linux is compatible with Android system
CN114500633A (en) Data forwarding method, related device, program product and data transmission system
CN108882262A (en) Equipment state synchronous method, system, intelligent terminal and readable storage medium storing program for executing
CN113766013A (en) Session creation method, device, equipment and storage medium
CN101242412A (en) A transmission method, device and system for multi-dimension data instance
CN109783002A (en) Data read-write method, management equipment, client and storage system
CN109408467A (en) A kind of method and device for realizing data storage
CN105577904B (en) A kind of file sharing method and mobile terminal
CN109254853A (en) Data sharing method, data-sharing systems and computer readable storage medium
GB2466824A (en) Simultaneous, multiple channel communication between a personal computer and mobile device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125

RJ01 Rejection of invention patent application after publication