CN105069012A - File access method and system - Google Patents

File access method and system Download PDF

Info

Publication number
CN105069012A
CN105069012A CN201510395793.6A CN201510395793A CN105069012A CN 105069012 A CN105069012 A CN 105069012A CN 201510395793 A CN201510395793 A CN 201510395793A CN 105069012 A CN105069012 A CN 105069012A
Authority
CN
China
Prior art keywords
file
file access
client
server end
access interface
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.)
Granted
Application number
CN201510395793.6A
Other languages
Chinese (zh)
Other versions
CN105069012B (en
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510395793.6A priority Critical patent/CN105069012B/en
Publication of CN105069012A publication Critical patent/CN105069012A/en
Application granted granted Critical
Publication of CN105069012B publication Critical patent/CN105069012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Abstract

The invention provides a file access method and system; the method comprises the following steps: a server end calls a file access interface database according to a file access interface function carried in a file access request obtained from a client end, thus obtaining a corresponding target file; the server end sends the target file to the client end. The method and system allow file access communication between the client end and the server end without needing an intermediate gateway, thus greatly saving hardware cost.

Description

A kind of file access method and system
Technical field
The invention belongs to file access field, particularly relate to a kind of file access method and system.
Background technology
Disclose a kind of method and cloud gateway of file access in prior art, the method comprises: cloud gateway receives the first file access command that client sends, and the first file access command comprises the file identification of file destination; The additional information of file destination, according to the first file access command, from the additional information of Cloud Server downloading object file, and is sent to client by cloud gateway; If cloud gateway receives the second file access command that client sends, then cloud gateway is according to the file content of the second file access command from Cloud Server downloading object file, and the file content of file destination is sent to client.
Technique scheme only only discloses: client passes through the file in cloud gateway access Cloud Server, it can thus be appreciated that in client-access Cloud Server, cloud gateway is essential.
Existing NAS file access system comprises: server end, network storage gateway and NAS gateway, client; Wherein, described client is connected with described server end by described NAS gateway.Described client is by the file in described NAS gateway access server end; Wherein, described NAS gateway is used for providing standard share and access agreement to described client.
In sum: NAS gateway in the process of client-access service end essential and need in advance relevant configuration is carried out to described NAS gateway, not only hardware cost increases greatly, and needs the artificial of at substantial, cause cost increase.
Summary of the invention
The invention provides a kind of file access method and system, to solve the problem.
The invention provides a kind of file access method.Said method comprises the following steps: server end, according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination;
Described file destination is sent to described client by described server end.
The present invention also provides a kind of file access system, comprises client, server end; Wherein, described client is connected with described server end;
Described client, sends file access request for sharing agreement by standard to server end;
Described server end, for according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination; Also for described file destination is sent to described client.
By following scheme: server end, according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtain corresponding file destination; Described file destination is sent to described client by described server end; Achieve when client and server carries out file access communication, do not need middle gateway, greatly saved hardware cost.
By following scheme: described standard is shared agreement and comprised universal network file system protocol, Network File System protocol, file transfer protocol (FTP), HTML (Hypertext Markup Language), considerably increases the scope of application of scheme.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the file access method processing flow chart of the embodiment of the present invention 1;
Figure 2 shows that the file access method processing flow chart of the embodiment of the present invention 2;
Figure 3 shows that the file access system structural drawing of the embodiment of the present invention 3;
Figure 4 shows that the server end inner structure schematic diagram of the embodiment of the present invention 4.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the file access method processing flow chart of the embodiment of the present invention 1, comprise the following steps:
Step 101: server end generates the file access interface storehouse corresponding with the file that self stores and shares in agreement in standard and arranges file access interface function;
Further, described file access interface function is used for calling described file access interface storehouse.
Further, described file access interface storehouse is lib.so storehouse; Described file access interface function refers to posix (portable operating system) interface function.
Further, described server end is one or more.
Further, described standard is shared agreement and is comprised CIFS (universal network file system) agreement, NFS (network file system(NFS)) agreement, FTP (file transfer) agreement, HTTP (Hyper text transfer) agreement.
Step 102: client is shared agreement by described standard and sent file access request to described server end;
Further, described client is one or more.
Step 103: described server end, according to the file access interface function carried in described file access request, calls file access interface storehouse, obtains corresponding file destination.
Further, described server end, according to the file access interface function carried in described file access request, calls file access interface storehouse, after obtaining corresponding file destination, also comprises:
Described file destination is shared agreement by described standard and is fed back to described client by described server end.
Figure 2 shows that the file access method processing flow chart of the embodiment of the present invention 2, comprise the following steps:
Step 201: server end, according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination;
Step 202: described file destination is sent to described client by described server end.
Figure 3 shows that the file access system structural drawing of the embodiment of the present invention 3, comprise client cluster (client 1, client 2.... client n), server end cluster (server end 1, server end 2.... server end n); Wherein, described client cluster is connected with described server end cluster;
Client in described client cluster, sends file access request for being shared agreement by standard to the server end in server end cluster;
Described server end, for according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination; Also for described file destination is sent to described client.
Figure 4 shows that the server end inner structure schematic diagram of the embodiment of the present invention 4, described server end comprises file destination acquiring unit, file transfer unit; Wherein, described file destination acquiring unit is connected with described file transfer unit;
Described file destination acquiring unit, for according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination and described file destination is sent to described file transfer unit;
Described file transfer unit, for transferring to described client by described file destination.
By following scheme: server end, according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtain corresponding file destination; Described file destination is sent to described client by described server end; Achieve when client and server carries out file access communication, do not need middle gateway, greatly saved hardware cost.
By following scheme: described standard is shared agreement and comprised universal network file system protocol, Network File System protocol, file transfer protocol (FTP), HTML (Hypertext Markup Language), considerably increases the scope of application of scheme.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a file access method, is characterized in that, comprises the following steps:
Server end, according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination;
Described file destination is sent to described client by described server end.
2. method according to claim 1, is characterized in that, client is shared agreement by standard and sent file access request to server end.
3. method according to claim 1, is characterized in that, described file destination is shared agreement by standard and fed back to described client by described server end.
4. method according to claim 1, is characterized in that, server end, according to before the file access request obtained from client, also comprises:
Server end generates the file access interface storehouse corresponding with the file that self stores and shares in agreement in standard and arranges file access interface function.
5. method according to claim 4, is characterized in that, described file access interface function is used for calling described file access interface storehouse.
6. method according to claim 4, is characterized in that, described file access interface storehouse is lib.so storehouse; Described file access interface function refers to portable operating system interface function and posix interface function.
7. the method according to Claims 2 or 3 or 4, is characterized in that, described standard is shared agreement and comprised universal network file system protocol, Network File System protocol, file transfer protocol (FTP), HTML (Hypertext Markup Language).
8. method according to claim 1, is characterized in that, described server end is one or more; Described client is one or more.
9. a file access system, is characterized in that, comprises client, server end; Wherein, described client is connected with described server end;
Described client, sends file access request for sharing agreement by standard to server end;
Described server end, for according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination; Also for described file destination is sent to described client.
10. system according to claim 9, is characterized in that, described server end also comprises file destination acquiring unit, file transfer unit; Wherein, described file destination acquiring unit is connected with described file transfer unit;
Described file destination acquiring unit, for according to the file access interface function carried in the file access request obtained from client, calls file access interface storehouse, obtains corresponding file destination and described file destination is sent to described file transfer unit;
Described file transfer unit, for transferring to described client by described file destination.
CN201510395793.6A 2015-07-07 2015-07-07 A kind of file access method and system Active CN105069012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510395793.6A CN105069012B (en) 2015-07-07 2015-07-07 A kind of file access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510395793.6A CN105069012B (en) 2015-07-07 2015-07-07 A kind of file access method and system

Publications (2)

Publication Number Publication Date
CN105069012A true CN105069012A (en) 2015-11-18
CN105069012B CN105069012B (en) 2018-09-21

Family

ID=54498385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510395793.6A Active CN105069012B (en) 2015-07-07 2015-07-07 A kind of file access method and system

Country Status (1)

Country Link
CN (1) CN105069012B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993057A (en) * 2017-05-24 2017-07-28 郑州云海信息技术有限公司 It is a kind of to manage the shared method and device of file resource
CN107645499A (en) * 2017-09-15 2018-01-30 龙存(苏州)科技有限公司 The rearward end frame and its protocol implementing method of a kind of distributed memory system
CN107682453A (en) * 2017-11-02 2018-02-09 郑州云海信息技术有限公司 A kind of file sharing method based on HTTP, system and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198473A1 (en) * 2006-02-03 2007-08-23 Simdesk Technologies, Inc. Computer system displaying personal information items in database as individual files
CN101520803A (en) * 2009-03-18 2009-09-02 宇龙计算机通信科技(深圳)有限公司 File sharing system and method between PC terminal and mobile terminal
CN103348347A (en) * 2011-02-08 2013-10-09 汤姆逊许可公司 Method of sharing data in a home network and apparatus implementing the method
CN104050248A (en) * 2014-06-05 2014-09-17 北京捷成世纪科技股份有限公司 File storage system and storage method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198473A1 (en) * 2006-02-03 2007-08-23 Simdesk Technologies, Inc. Computer system displaying personal information items in database as individual files
CN101520803A (en) * 2009-03-18 2009-09-02 宇龙计算机通信科技(深圳)有限公司 File sharing system and method between PC terminal and mobile terminal
CN103348347A (en) * 2011-02-08 2013-10-09 汤姆逊许可公司 Method of sharing data in a home network and apparatus implementing the method
CN104050248A (en) * 2014-06-05 2014-09-17 北京捷成世纪科技股份有限公司 File storage system and storage method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993057A (en) * 2017-05-24 2017-07-28 郑州云海信息技术有限公司 It is a kind of to manage the shared method and device of file resource
CN107645499A (en) * 2017-09-15 2018-01-30 龙存(苏州)科技有限公司 The rearward end frame and its protocol implementing method of a kind of distributed memory system
CN107682453A (en) * 2017-11-02 2018-02-09 郑州云海信息技术有限公司 A kind of file sharing method based on HTTP, system and equipment

Also Published As

Publication number Publication date
CN105069012B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
US10733257B2 (en) Short-link parsing methods, apparatus, and devices
CN109413127B (en) Data synchronization method and device
CN109218368B (en) Method, device, electronic equipment and readable medium for realizing Http reverse proxy
US9277030B2 (en) Stream processing using a client-server architecture
KR102208935B1 (en) Messaging api over http protocol to establish context for data exchange
WO2017174026A1 (en) Client connection method and system
CN104866316A (en) Data center middleware system
US9509786B2 (en) Enabling mobile applications to acquire a MAC address for obtaining location information
CN104243610A (en) Distributed file transmission service method
US20150178400A1 (en) Method and device for acquiring terminal information in heterogeneous terminal environment
US20210377182A1 (en) Mobile supercloud computing system and method
CN104168294B (en) Instant communication method, system and device between across open platform user
CN105069012A (en) File access method and system
CN110753315B (en) Video short message issuing processing method and device
CN102185917A (en) Method and system for adaptation between server and mobile terminal, and server adaptation device
CN113271362B (en) Education resource processing method, device, system and medium based on hybrid cloud
WO2017004990A1 (en) Notification pushing method and device
CN111767157A (en) Request processing method and device based on service grid
CN103685485A (en) Mobile terminal VoIP (voice over internet protocol) communication audio management system
CN105677688B (en) Page data loading method and system
CN110798495A (en) Method and server for end-to-end message push in cluster architecture mode
CN204316546U (en) A kind of middle-size and small-size cloud stores data synchronous system
Turc Using WEB services in SCADA applications
CN103873564A (en) Method for realizing SignalR duplex communication under balanced load condition of multiple servers
US20180103119A1 (en) System and method for pairing devices to complete a task using an application request.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant