WO2010078769A1 - 一种网络文件系统的访问方法和访问装置 - Google Patents

一种网络文件系统的访问方法和访问装置 Download PDF

Info

Publication number
WO2010078769A1
WO2010078769A1 PCT/CN2009/074531 CN2009074531W WO2010078769A1 WO 2010078769 A1 WO2010078769 A1 WO 2010078769A1 CN 2009074531 W CN2009074531 W CN 2009074531W WO 2010078769 A1 WO2010078769 A1 WO 2010078769A1
Authority
WO
WIPO (PCT)
Prior art keywords
file system
user terminal
request message
network file
plug
Prior art date
Application number
PCT/CN2009/074531
Other languages
English (en)
French (fr)
Inventor
罗姣林
Original Assignee
成都市华为赛门铁克科技有限公司
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 成都市华为赛门铁克科技有限公司 filed Critical 成都市华为赛门铁克科技有限公司
Priority to EP09837326A priority Critical patent/EP2375671A4/en
Publication of WO2010078769A1 publication Critical patent/WO2010078769A1/zh
Priority to US13/172,442 priority patent/US20110258255A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an access device for a network file system. Background technique
  • FIG. 1A is a schematic diagram of a network structure of a point-to-point network file system in the prior art
  • FIG. 1B is a schematic diagram of a network structure of a network file system based on distributed access in the prior art.
  • One is a point-to-point network file system, as shown in FIG. 1A, that is, the user host obtains file data from a network file system server.
  • Another type of network file system for distributed access as shown in FIG. 1B, the user host obtains file data in parallel from multiple storage servers of the network file system server cluster, and solves the throughput problem through parallel access.
  • FIG. 2 is a schematic diagram of a file system structure of a user host operating system in the prior art.
  • the file system structure of the operating system in the user host is as shown in FIG. 2, including: an application (for example, a database, etc.), an operating system file system intermediate layer virtual file.
  • VFS Virtual File System
  • network file system drivers such as New Technology File System (NTFS), File Allocation Table32 (FAT32), Extended File System 3 (Extended File System, EXT3), Journal File System (JFS), Network File System Network File System (NFS) or Common Internet File System (CIFS), which implements application file support for VFS encapsulation.
  • NTFS New Technology File System
  • FAT32 File Allocation Table32
  • EXT3 Extended File System 3 (Extended File System, EXT3)
  • JFS Network File System Network File System
  • NFS Network File System Network File System
  • CIFS Common Internet File System
  • the embodiments of the present invention provide an access method and an access device for a network file system, which are used to easily implement compatibility of a network file system with multiple operating systems.
  • An embodiment of the present invention provides a method for accessing a network file system, including:
  • An embodiment of the present invention further provides an access device, including a user terminal interface, a conversion unit, and a network.
  • Network file system interface :
  • the user terminal interface is configured to receive a first request message sent by the user terminal to the network file system according to the available first file type, and send the message to the converting unit, where the second response message received from the converting unit is The user terminal sends
  • the converting unit is configured to convert, according to a preset mapping relationship, a first request message received from the user terminal interface into a second request message that can drive a second file type in the network file system, and Transmitting, by the network file system interface, a first response message received from the network file system interface to a second response message based on the first file type, and sending the message to the user terminal interface;
  • the network file system interface is configured to send the second request message to the network file system interface, and receive a second file type that is sent by the network file system to the user terminal according to the second request message.
  • the first response message is sent to the conversion unit.
  • the embodiment of the invention has the following advantages:
  • the file type used by the network file system is converted into a file type recognizable by the operating system of the user terminal, and the file system protocol conversion is implemented, and different file types can be virtualized into a common file type. It is easy to implement network file system compatibility with multiple operating systems.
  • FIG. 1A is a schematic diagram of a network structure of a point-to-point network file system in the prior art
  • FIG. 1B is a schematic diagram of a network structure of a network file system based on distributed access in the prior art
  • FIG. 2 is a schematic diagram of a file system structure of a user host operating system in the prior art
  • 3 is a flowchart of an access method of a network file system in an embodiment of the present invention
  • FIG. 4 is a timing diagram showing operations of a file system protocol virtual engine for transmitting messages between a user terminal and a network file system in an embodiment of the present invention
  • Figure 5 is a schematic structural view of an access device in an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a conversion unit of an access device in an embodiment of the present invention.
  • FIGS. 7A to 7C are schematic diagrams showing the position of an access device in a network in an embodiment of the present invention. detailed description
  • FIG. 3 is a flowchart of a method for accessing a network file system in an embodiment of the present invention. As shown in FIG. 3, the method includes:
  • S302. Convert the first request message into a second request message that can drive the second file type in the network file system according to the preset mapping relationship, and send the second request message to the network file system.
  • s303. Receive a network file system. a first response message based on the second file type sent to the user terminal according to the second request message;
  • the file type recognized by the operating system of the user terminal realizes file type protocol conversion, and can convert different file types into common file types, and realizes compatibility of the network file system with various operating systems.
  • an embodiment of the present invention provides a method for accessing a network file system, which is implemented by a file system protocol virtual engine.
  • a file system protocol virtual engine In order to achieve compatibility of the network file system with multiple operating systems, first configure multiple server plug-ins and client plug-ins, each server plug-in corresponds to one file type, and each client plug-in corresponds to a protocol that can drive a specific file type;
  • the file system protocol virtual engine starts, it automatically finds the locally available virtual server plug-ins and loads them in order to support NFS, CIFS or other network file system protocols at the same time; automatically finds the locally available client plug-ins and loads them in order to achieve simultaneous Support for multiple protocols that drive different file types.
  • the first server plug-in corresponding to the first file type available to the user terminal is selected from the pre-loaded server plug-ins; and the first request message is received by the first server plug-in.
  • mapping relationship referenced when the first request message is converted into the second request message may be set in advance. Specifically, a corresponding conversion method is separately set for the conversion between different protocol messages, and the conversion between different request messages is referred to. Mapping relations.
  • mapping relationship referenced when the first response message is converted into the second response message may be set in advance, and specifically, the corresponding conversion is set for the conversion between different protocol messages. In other words, a mapping relationship that should be referred to for conversion between different response messages is obtained.
  • the file system protocol virtual engine obtains the configuration information, and sequentially loads the "client plug-in” and the "server-side plug-in”;
  • the file system protocol virtual engine sequentially starts the virtual server corresponding to each "server plug-in" according to the configuration information.
  • the corresponding server plug-in in the file system protocol virtual engine first allocates and initializes the file system instance after receiving the request, and the file system protocol virtual engine can The virtual client that drives the network file system converts the mount request and sends it to the virtual client, and the virtual client executes the mount request in the network file system. Register the file system instance after success.
  • the file system virtual engine receives the request of read/write/stat/seek from the client such as NFS/CIFS, converts the request, and invokes the corresponding virtual client to perform corresponding operations in the network file system.
  • FIG. 4 is an operation sequence diagram of a file system protocol virtual engine transferring messages between a user terminal and a network file system in an embodiment of the present invention.
  • the file system protocol virtual engine is described between a user terminal and a network file system.
  • the message sent by the user terminal to the network file system first reaches the virtual server in the file system protocol virtual engine, and the virtual server converts the message sent by the user terminal into a message executable by the network file system and sends the message to the virtual machine.
  • the client sends the converted message to the network file system by the virtual client.
  • the virtual client After receiving the response sent by the network file system, the virtual client first sends a response to the virtual client in the file system protocol virtual engine, and the virtual client converts the response message into a response that the user terminal can recognize, and then converts the converted message. The response is sent to the virtual server, which is converted by the virtual server The response is sent to the user terminal.
  • the file system protocol virtual engine converts the file type used by the network file system into a file type recognizable by the operating system of the user terminal, so that the user terminal can operate on the network file system.
  • the metadata server IP is 10.0.0.2
  • the file system name is fsl.
  • the mount request is as follows: mount - 1 nfs -o ⁇ mount the nfs file system
  • fs fsl ⁇ Enter username, password, authentication server address, server IP address, file system name
  • the user terminal can access the metadata server by accessing nfs.
  • the file type used by the network file system is converted into a file type recognizable by the operating system of the user terminal, and the file system protocol conversion is implemented, and different file types can be virtualized into a common file type.
  • the implementation of the network file system is compatible with a variety of operating systems.
  • FIG. 5 is a schematic structural diagram of an access device according to an embodiment of the present invention.
  • the access device provided by the embodiment of the present invention includes a user terminal interface 10, a conversion unit 20, and a network file system interface 30. among them:
  • the user terminal interface 10 is configured to receive a first request message sent by the user terminal to the network file system according to the available first file type, and send the message to the conversion unit 20; send the second response message received from the conversion unit 20 to the user terminal. ;
  • the converting unit 20 is configured to convert, according to a preset mapping relationship, the first request message received from the user terminal interface 10 into a second request message of a second file type in the network file system, and interface to the network file system 30 sending; converting the first response message received from the network file system interface 30 into a second response message based on the first file type and transmitting to the user terminal interface 10;
  • the network file system interface 30 is configured to send the second request message to the network file system interface, and receive the first response message that is sent by the network file system to the user terminal according to the second file type according to the second request message, and send the first response message to the conversion unit 20 .
  • FIG. 6 is a schematic structural diagram of a conversion unit of an access device according to an embodiment of the present invention.
  • the conversion unit 20 may include:
  • At least one server plugin each server plugin corresponding to one file type
  • At least one client plugin each client plugin corresponding to a protocol that can drive a particular file type
  • the server plug-in matching sub-unit 21 is configured to select, according to the first request message sent by the user terminal, the first server plug-in 25 corresponding to the first file type available to the user terminal from the at least one server plug-in;
  • a client plug-in matching sub-unit 22 configured to select, according to a second file type in the network file system, a first client plug-in 24 that can drive a second file type in the network file system from at least one client plug-in;
  • the conversion sub-unit 23 is configured to convert the first request message sent by the first server plug-in 25 into the second request message supported by the first client plug-in 24 according to the preset mapping relationship, and send the second request message to the first client plug-in 24; Converting the first response message received from the first client plug-in 24 into a second response message supported by the first server plug-in 25 and transmitting it to the first server plug-in 25;
  • a first client plug-in 24 configured to send the second request message sent by the conversion sub-unit 23 to the network file system; and send the first response message sent by the network file system to the conversion sub-unit; the first server plug-in 25,
  • the first request message sent by the user terminal is sent to the conversion subunit, and the second response message sent by the conversion subunit is sent to the user terminal.
  • the server plug-in registration sub-unit 26 is used to register each server; when the device starts up, it automatically searches for the locally available virtual server plug-ins and loads them in order to support NFS, CIFS or other network file system protocols at the same time.
  • Client plug-in registration sub-unit 27 used to register each client, automatically check when the device starts Look for locally available client plugins and load them one by one to support multiple protocols that support different file types.
  • FIGS. 7A to 7C are schematic diagrams showing the location of the access device in the network in the embodiment of the present invention.
  • the access device may be located in a network between the user terminal and the network file system.
  • Devices such as file system protocol conversion gateways or routers implement file system protocol virtualization and provide support for multiple file systems.
  • the access device may also be as shown in FIG. 7B.
  • the component running in the user mode is located in the user state of the user terminal, and may be compiled and installed under different operating systems to achieve the purpose of one file type compatible with multiple operating system platforms. .
  • this component developed in user mode can be easily ported to most operating systems, running as a service of the operating system, with relatively high reliability, stability, and development relative Easier.
  • the access device can also be located in the network file system as shown in Figure 7C, such that the network file system can support multiple operating systems.
  • the file type used by the network file system is converted into a file type recognizable by the operating system of the user terminal, and the file system protocol conversion is implemented, and different file types can be virtualized into a common file type. It is easy to implement network file system compatibility with multiple operating systems.
  • the virtualization engine can be implemented in the user mode, cross-platform becomes very easy; since it is not necessary to write the program in the kernel state, it is not necessary to obtain some compatibility stability at the time of deployment. Sexual certification; the development of labor and equipment costs is greatly reduced because there is no need to develop code for different platforms in the kernel state.
  • the file system can support standard file systems such as NFS/CIFS.
  • the network switching device can have new selling points and functions.
  • the development cycle is greatly shortened; because it supports the existing standard CIFS common protocol such as NFS, users can directly use it without learning, which greatly reduces the cost of user training.
  • the above modules may be distributed in one device or distributed in multiple devices.
  • the above modules can Combined into one module, it can be further split into multiple sub-modules.
  • the present invention can be implemented by hardware or by software plus a necessary general hardware platform.
  • the technical solution of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several The instructions are for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
  • the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

一种网络文件系统的访问方法和访问装置 本申请要求于 2008 年 12 月 29 日提交中国专利局、 申请号为 200810187672.2 , 发明名称为 "一种网络文件系统的访问方法和装置" 的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信技术领域, 特别涉及一种网络文件系统的访问方法和访 问装置。 背景技术
在网络文件系统领域有两种主要结构, 图 1 A是现有技术中点到点网络 文件系统的网络结构示意图,图 1B是现有技术中基于分布式存取的网络文件 系统的网络结构示意图, 一种是点到点网络文件系统, 如图 1A所示, 即用 户主机从一个网络文件系统服务器上获取文件数据。 另外一种 ^^于分布式 存取的网络文件系统,如图 1B所示, 用户主机从网络文件系统服务器集群的 多个存储服务器上面并行获取文件数据,通过并行存取解决吞吐能力的问题。
在以上的两种类型的网络文件系统中, 都需要在用户主机的操作系统中 开发出对应的网络文件系统驱动程序。 图 2是现有技术中用户主机操作系统 的文件系统结构示意图, 用户主机中操作系统的文件系统结构如图 2所示, 包括: 应用程序 (例如数据库等) 、 操作系统文件系统中间层虚拟文件系统 ( Virtual File System, 简称: VFS )以及网络文件系统驱动如新技术文件系统 ( New Technology File System, 简称: NTFS ) 、 文件分配表系统 32 ( File Allocation Table32, 简称: FAT32 )、 扩展文件系统 3 ( Extended File System, EXT3 ) 、 日记式文件系统(Journal File System, 简称: JFS ) 、 网络文件系 统( Network File System, 简称: NFS )或通用网络文件系统( Common Internet File System, 简称: CIFS )等, 通过 VFS的封装实现应用程序对文件系统的 支持。 而一种文件系统要达到跨平台的目的, 就需要在不同的平台下面开发 具体的驱动程序,如 AIX ( IBM公司的企业级 UNIX操作系统)、 Solans ( SUN 公司的企业级 UNIX操作系统)、 HPUX、 IRIX、 BSD. Linux Windows等。 而驱动程序的开发依赖于操作系统 , 有的操作系统开放程序较好可能比较容 易开发, 例如 Linux、 Windows, BSD等, 但有的操作系统却相对来说比较封 闭, 比如 AIX、 Solans、 HPUX等在这些操作系统上开发驱动相对来说比较 困难。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 网絡文件系统要实现对多操作系统的兼容非常困难, 一方面在技术上比 较复杂, 另外一方面需要较高的投入。 发明内容
本发明实施例提供一种网络文件系统的访问方法和访问装置, 用于简便 的实现网络文件系统对多操作系统的兼容。
本发明实施例提供一种网络文件系统的访问方法, 包括:
接收用户终端根据第一文件类型向网络文件系统发送的第一请求消息; 根据预设的映射关系, 将所述第一请求消息转换为可驱动所述网络文件 系统中第二文件类型的第二请求消息, 并将所述第二请求消息向所述网络文 件系统发送;
接收所述网络文件系统根据所述第二请求消息向所述用户终端发送的基 于第二文件类型的第一响应消息;
根据预设的映射关系, 将所述第一响应消息转换为基于第一文件类型的 第二响应消息并向所述用户终端发送。
本发明实施例还提供一种访问装置, 包括用户终端接口、 转换单元和网 络文件系统接口:
所述用户终端接口, 用于接收用户终端根据可用的第一文件类型向网络 文件系统发送的第一请求消息并向所述转换单元发送; 将从所述转换单元接 收到的第二响应消息向所述用户终端发送;
所述转换单元, 用于根据预设的映射关系, 将从所述用户终端接口接收 到的第一请求消息转换为可驱动所述网络文件系统中第二文件类型的第二请 求消息, 并向所述网络文件系统接口发送; 将从所述网络文件系统接口接收 到的第一响应消息转换为基于第一文件类型的第二响应消息并发送到所述用 户终端接口;
所述网络文件系统接口, 用于将所述第二请求消息向所述网络文件系统 接口发送; 接收所述网络文件系统根据所述第二请求消息向所述用户终端发 送的基于第二文件类型的第一响应消息并向所述转换单元发送。
与现有技术相比, 本发明实施例具有以下优点:
通过使用本发明的实施例, 将网络文件系统所使用的文件类型转换为用 户终端的操作系统可识别的文件类型, 实现了文件系统协议转换, 可以将不 同的文件类型虚拟为通用的文件类型, 简便的实现了网络文件系统对多种操 作系统的兼容。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前 提下, 还可以根据这些附图获得其他的附图。
图 1 A是现有技术中点到点网络文件系统的网络结构示意图;
图 1B是现有技术中基于分布式存取的网络文件系统的网络结构示意图; 图 2是现有技术中用户主机操作系统的文件系统结构示意图; 图 3是本发明的实施例中网络文件系统的访问方法流程图;
图 4是本发明的实施例中文件系统协议虚拟引擎在用户终端和网络文件 系统间传递消息的操作时序图;
图 5是本发明的实施例中访问装置的结构示意图;
图 6是本发明的实施例中访问装置的转换单元的结构示意图;
图 7A〜图 7C是本发明的实施例中访问装置在网络中的位置示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明的一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有 做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供一种网络文件系统的访问方法, 通过文件系统协议虚 拟, 将网络文件系统所使用的文件类型虚拟为用户终端的操作系统可识别的 通用文件类型 (如大部分操作系统都支持的 NFS或 CIFS等协议) 。 图 3是 本发明的实施例中网络文件系统的访问方法流程图, 如图 3所示, 该方法具 体包括:
s301、 接收用户终端根据第一文件类型向网络文件系统发送的第一请求 消息;
s302、 根据预设的映射关系, 将第一请求消息转换为可驱动网络文件系 统中第二文件类型的第二请求消息,并将第二请求消息向网络文件系统发送; s303、 接收网络文件系统根据第二请求消息向用户终端发送的基于第二 文件类型的第一响应消息;
s304、 根据预设的映射关系, 将第一响应消息转换为基于第一文件类型 的第二响应消息并向用户终端发送。
通过使用本发明的实施例, 将网络文件系统所使用的文件类型转换为用 户终端的操作系统可识别的文件类型, 实现了文件类型协议转换, 可以将不 同的文件类型虚拟为通用的文件类型, 筒便的实现了网络文件系统对多种操 作系统的兼容。
具体的, 本发明的实施例提供一种网络文件系统的访问方法, 通过文件 系统协议虚拟引擎实现。 为了实现网络文件系统对多种操作系统的兼容, 首 先配置多个服务器插件和客户端插件, 每个服务器插件对应一种文件类型, 每个客户端插件对应一种可驱动特定文件类型的协议; 在文件系统协议虚拟 引擎启动时, 自动查找本地可用的虚拟服务器插件并依次装载, 以达到同时 支持 NFS、 CIFS或其他网络文件系统协议; 自动查找本地可用的客户端插件 并依次装载, 以达到同时支持多种驱动不同文件类型的协议。
当接收到用户终端发送的第一请求消息时, 从预先装载的服务器插件中 选择与用户终端可用的第一文件类型所对应的第一服务器插件; 通过第一服 务器插件接收该第一请求消息。
根据网络文件系统中第二文件类型, 从预先装载的客户端插件中选择可 驱动网络文件系统中第二文件类型的第一客户端插件;根据预设的映射关系, 将第一请求消息转换为第一客户端插件支持的第二请求消息并向第一客户端 插件发送, 由第一客户端插件将第二请求消息向网络文件系统发送。 该第一 请求消息转换为第二请求消息时所参考的映射关系可以预先进行设置, 具体 的, 针对不同的协议消息间的转换分别设置对应的转换方法, 得到不同请求 消息间转换所应参考的映射关系。
通过第一客户端插件, 根据第二请求消息向用户终端发送的基于第二文 件类型的第一响应消息。
根据预设的映射关系, 将从第一客户端插件接收的第一响应消息转换为 第一服务器插件支持的第二响应消息; 由第一服务器插件将第二响应消息向 用户终端发送。 该第一响应消息转换为第二响应消息时所参考的映射关系可 以预先进行设置, 具体的, 针对不同的协议消息间的转换分别设置对应的转 换方法, 得到不同响应消息间转换所应参考的映射关系。
上述文件系统协议虚拟引擎的一个具体示例如下:
( 1 )文件系统协议虚拟引擎获取配置信息, 并依次加载 "客户端插件" 和 "服务器端插件" ;
( 2 )文件系统协议虚拟引擎初始化緩冲池, 工作线程池等共享资源;
( 3 )文件系统协议虛拟引擎根据配置信息依次启动每个 "服务器插件" 对应的虚拟服务器。
( 4 ) 当 NFS/CIFS等客户端通过网络发送挂载 (mount )请求时, 文件 系统协议虚拟引擎中对应的服务器插件收到请求后先分配并初始化文件系统 实例, 文件系统协议虚拟引擎根据可以驱动网络文件系统的虚拟客户端, 转 换该 mount请求并发送到虚拟客户端, 由虚拟客户端在网络文件系统中执行 该 mount清求。 成功后注册该文件系统实例。
( 5 ) 文件系 统协议虛拟引 擎收到 NFS/CIFS 等客户 端的 read/write/stat/seek等请求后转换该请求, 并调用对应的虚拟客户端在网络文 件系统中进行对应操作。
( 6 )如果文件系统协议虛拟引擎从客户端收到卸载( umount )操作, 则 先提交所有未提交的请求, 之后在断开会话后注销该文件系统实例。
图 4是本发明的实施例中文件系统协议虚拟引擎在用户终端和网络文件 系统间传递消息的操作时序图, 如图 4所示, 描述了文件系统协议虚拟引擎 在用户终端和网络文件系统间传递消息的操作时序图。 从图 4中可以看出, 用户终端向网络文件系统发送的消息首先到达文件系统协议虚拟引擎中的虚 拟服务器, 虚拟服务器将用户终端发送的消息转换为网络文件系统可执行的 消息后发送给虚拟客户端,由虚拟客户端将转换后的消息发给网络文件系统。 虚拟客户端接收到网络文件系统发送的响应后, 首先将响应发送给文件系统 协议虚拟引擎中的虛拟客户端, 虚拟客户端将该响应消息转换为用户终端能 识别的响应后, 将转换后的响应发送给虚拟服务器, 由虚拟服务器将转换后 的响应发送给用户终端。 通过上述流程, 由文件系统协议虛拟引擎将网络文 件系统所使用的文件类型转换为用户终端的操作系统可识别的文件类型, 使 得用户终端可以对网络文件系统进行操作。
假设一个网络文件系统服务器集群, 元数据服务器 IP是 10.0.0.2 , 文件 系统名字叫 fsl, 这样使用了协议虚拟引擎后, 可以在不支持 nfs的操作系统 上面通过访问 nfs的方式访问该元数据服务器。执行挂载( mount )请求如下: mount - 1 nfs -o \\挂载 nfs文件系统
user=xxx, pass=xxx, ldap=xx. xx.xx. xx, mds=10.0.0.2, fs=fsl \\输入用户名、 密码、 认证服务器地址、 服务器 IP地址、 文件系统名称
localhost: /xxfs /mnt/fsl \\桂载目录为 /mnt/fsl
即用户终端可以通过访问 nfs的方式访问该元数据服务器。
通过使用本发明的实施例, 将网络文件系统所使用的文件类型转换为用 户终端的操作系统可识别的文件类型, 实现了文件系统协议转换, 可以将不 同的文件类型虚拟为通用的文件类型, 筒便的实现了网络文件系统对多种操 作系统的兼容。
图 5是本发明的实施例中访问装置的结构示意图, 本发明实施例提供的 访问装置, 如图 5所示, 包括用户终端接口 10、 转换单元 20和网络文件系 统接口 30。 其中:
用户终端接口 10, 用于接收用户终端根据可用的第一文件类型向网络文 件系统发送的第一请求消息并向转换单元 20发送; 将从转换单元 20接收到 的第二响应消息向用户终端发送;
转换单元 20, 用于根据预设的映射关系, 将从用户终端接口 10接收到 的第一请求消息转换为可驱动网络文件系统中第二文件类型的第二请求消 息, 并向网络文件系统接口 30发送; 将从网络文件系统接口 30接收到的第 一响应消息转换为基于第一文件类型的第二响应消息并发送到用户终端接口 10; 网络文件系统接口 30 , 用于将第二请求消息向网络文件系统接口发送; 接收网络文件系统根据第二请求消息向用户终端发送的基于第二文件类型的 第一响应消息并向转换单元 20发送。
图 6是本发明的实施例中访问装置的转换单元的结构示意图, 为本发明 的另一实施例, 如图 6所示, 转换单元 20可以包括:
至少一个服务器插件, 每个服务器插件对应一种文件类型;
至少一个客户端插件, 每个客户端插件对应一种可驱动特定文件类型的 协议;
服务器插件匹配子单元 21 , 用于根据用户终端发送的第一请求消息, 从 至少一个服务器插件中选择与用户终端可用的第一文件类型所对应的第一服 务器插件 25;
客户端插件匹配子单元 22, 用于根据网络文件系统中第二文件类型, 从 至少一个客户端插件中选择可驱动网络文件系统中第二文件类型的第一客户 端插件 24;
转换子单元 23 , 用于根据预设的映射关系, 将第一服务器插件 25发送 的第一请求消息转换为第一客户端插件 24 支持的第二请求消息并向第一客 户端插件 24发送; 将从第一客户端插件 24接收的第一响应消息转换为第一 服务器插件 25支持的第二响应消息并向第一服务器插件 25发送;
第一客户端插件 24 , 用于将转换子单元 23发送的第二请求消息向网络 文件系统发送; 并将网络文件系统发送的第一响应消息向转换子单元发送; 第一服务器插件 25 , 用于将用户终端发送的第一请求消息向转换子单元 发送, 并将转换子单元发送的第二响应消息向用户终端发送。
服务器插件注册子单元 26, 用于注册每个服务器; 当装置启动时自动查 找本地可用的虚拟服务器插件并依次装载, 以达到同时支持 NFS、 CIFS或其 他网絡文件系统协议。
客户端插件注册子单元 27 , 用于注册每个客户端, 当装置启动时自动查 找本地可用的客户端插件并依次装载, 以达到同时支持多种驱动不同文件类 型的协议。
图 7A ~ ® 7C是本发明的实施例中访问装置在网络中的位置示意图, 在 具体的网络实现中, 如图 7 A所示, 上述访问装置可以位于用户终端与网络 文件系统之间的网络设备如文件系统协议转换网关或路由器等, 实现了文件 系统协议虛拟化, 提供对多文件系统的支持。
该访问装置也可以如图 7B所示,作为一个在用户态运行的組件位于用户 终端的用户态中, 可以在不同的操作系统下面编译安装, 达到一种文件类型 兼容多个操作系统平台的目的。 另外, 由于位于用户主机中的用户态, 在用 户态开发的这个组件可以被轻松移植到绝大部分操作系统上面, 作为操作系 统的一个服务运行, 具有比较高的可靠性, 稳定性, 开发相对比较容易。
该访问装置也可以如图 7C所示,位于网络文件系统中,使得网络文件系 统可以支持多种操作系统。
通过使用本发明的实施例, 将网络文件系统所使用的文件类型转换为用 户终端的操作系统可识别的文件类型, 实现了文件系统协议转换, 可以将不 同的文件类型虚拟为通用的文件类型, 简便的实现了网络文件系统对多种操 作系统的兼容。 另外, 集成在用户终端中时, 由于可以在用户态实现这个虚 拟化引擎, 所以跨平台变得非常容易; 由于不需要在内核态下编写程序, 在 部署的时候, 无需先取得某些兼容稳定性认证; 由于不需要在内核态下开发 不同平台的代码, 使得开发的人力成本和设备成本大幅度减少。 集成在网络 文件系统中时, 可以使得文件系统支持标准的 NFS/CIFS 等文件系统。 集成 在用户终端与网络文件系统之间的网络设备中如网络交换设备内部时, 可以 使网络交换设备有新的卖点和功能。 最后, 由于只有一套代码, 大大缩短了 开发周期; 由于支持现有的标准 NFS等 CIFS通用协议, 使得用户无需学习 直接可以使用, 大大减少了用户培训成本。
上述模块可以分布于一个装置, 也可以分布于多个装置。 上述模块可以 合并为一个模块, 也可以进一步拆分成多个子模块。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发 明可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。 基于这样的理解, 本发明的技术方案可以以软件产品的形式体现出来, 该软 件产品可以存储在一个非易失性存储介质 (可以是 CD-ROM, U盘, 移动硬 盘等) 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服 务器, 或者网络设备等)执行本发明各个实施例所述的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的 模块或流程并不一定是实施本发明所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述 进行分布于实施例的装置中, 也可以进行相应变化位于不同于本实施例的一 个或多个装置中。 上述实施例的模块可以合并为一个模块, 也可以进一步拆 分成多个子模块。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
以上公开的仅为本发明的几个具体实施例, 但是, 本发明并非局限于此, 任何本领域的技术人员能思之的变化都应落入本发明的保护范围。

Claims

权 利 要 求
1、 一种网络文件系统的访问方法, 其特征在于, 包括:
接收用户终端根据第一文件类型向网络文件系统发送的第一请求消息; 根据预设的映射关系, 将所述第一请求消息转换为可驱动所述网络文件 系统中第二文件类型的第二请求消息, 并将所述第二请求消息向所述网络文 件系统发送;
接收所述网络文件系统根据所述第二请求消息向所述用户终端发送的基 于第二文件类型的第一响应消息;
根据预设的映射关系, 将所述第一响应消息转换为基于第一文件类型的 第二响应消息并向所述用户终端发送。
2、 如权利要求 1所述的方法, 其特征在于, 所述接收用户终端根据可用 的第一文件类型向网络文件系统发送的第一请求消息前还包括:
配置服务器插件和客户端插件, 每个服务器插件对应一种文件类型, 每 个客户端插件对应一种可驱动特定文件类型的协议;
注册所述服务器插件和客户端插件。
3、 如权利要求 2所述的方法, 其特征在于, 所述接收用户终端根据可用 的第一文件类型向网络文件系统发送的第一请求消息包括:
根据所述用户终端发送的第一请求消息, 从所述至少一个服务器插件中 选择与所述用户终端可用的第一文件类型所对应的第一服务器插件; 通过所 述第一服务器插件接收所述第一请求消息。
4、 如权利要求 3所述的方法, 其特征在于, 所述根据预设的映射关系, 将所述第一请求消息转换为可驱动所述网络文件系统中第二文件类型的第二 请求消息, 并将所述第二请求消息向所述网络文件系统发送包括:
根据所述网络文件系统中第二文件类型, 从所述至少一个客户端插件中 选择可驱动所述网络文件系统中第二文件类型的第一客户端插件; 根据预设 的映射关系, 将所述第一请求消息转换为第一客户端插件支持的第二请求消 息并向所述第一客户端插件发送, 由所述第一客户端插件将所述第二请求消 息向所述网络文件系统发送。
5、 如权利要求 4所述的方法, 其特征在于, 所述接收所述网络文件系统 根据所述第二请求消息向所述用户终端发送的基于第二文件类型的第一响应 消息包括:
通过所述第一客户端插件, 根据所述第二请求消息向所述用户终端发送 的基于第二文件类型的第一响应消息。
6、 如权利要求 4或 5所述的方法, 其特征在于, 所述根据预设的映射关 系, 将所述第一响应消息转换为基于第一文件类型的第二响应消息并向所述 用户终端发送包括:
将从所述第一客户端插件接收的第一响应消息转换为第一服务器插件支 持的第二响应消息; 由所述第一服务器插件将所述第二响应消息向所述用户 终端发送。
7、 一种访问装置, 其特征在于, 包括用户终端接口、 转换单元和网络文 件系统接口:
所述用户终端接口, 用于接收用户终端根据可用的第一文件类型向网络 文件系统发送的第一请求消息并向所述转换单元发送; 将从所述转换单元接 收到的第二响应消息向所述用户终端发送;
所述转换单元, 用于根据预设的映射关系, 将从所述用户终端接口接收 到的第一请求消息转换为可驱动所述网络文件系统中第二文件类型的第二请 求消息, 并向所述网络文件系统接口发送; 将从所述网络文件系统接口接收 到的第一响应消息转换为基于第一文件类型的第二响应消息并发送到所述用 户终端接口;
所述网络文件系统接口, 用于将所述第二请求消息向所迷网络文件系统 接口发送; 接收所述网络文件系统根据所述第二请求消息向所述用户终端发 送的基于第二文件类型的第一响应消息并向所述转换单元发送。
8、 如权利要求 7所述的访问装置, 其特征在于, 所述转换单元包括: 至少一个服务器插件, 所述服务器插件对应一种文件类型;
至少一个客户端插件, 所述客户端插件对应一种可驱动特定文件类型的 协议;
服务器插件匹配子单元, 用于根据所述用户终端发送的第一请求消息, 从所述至少一个服务器插件中选择与所述用户终端可用的第一文件类型所对 应的第一服务器插件;
客户端插件匹配子单元, 用于根据所述网络文件系统中第二文件类型, 从所述至少一个客户端插件中选择可驱动所述网络文件系统中第二文件类型 的第一客户端插件;
转换子单元, 用于根据预设的映射关系, 将所述第一请求消息转换为第 一客户端插件支持的第二请求消息并向所述第一客户端插件发送; 将从所述 第一客户端插件接收的第一响应消息转换为第一服务器插件支持的第二响应 消息;
所述第一客户端插件, 用于将所述转换子单元发送的第二请求消息向所 述网络文件系统发送; 并将所述网络文件系统发送的第一响应消息向所述转 换子单元发送;
所述第一服务器插件, 用于将所述用户终端发送的第一请求消息向所述 转换子单元发送, 并将所述转换子单元发送的第二响应消息向所述用户终端 发送。
9、 如权利要求 7所述的访问装置, 其特征在于, 所述转换单元还包括: 服务器插件注册子单元, 用于注册所述每个服务器;
客户端插件注册子单元, 用于注册所述每个客户端。
10、 如权利要求 7至 9中任一项所述的访问装置, 其特征在于, 所述访 问装置位于所述用户终端与所述网络文件系统之间的网络设备、 或位于所述 用户终端的用户态、 或位于所述网络文件系统中。
PCT/CN2009/074531 2008-12-29 2009-10-20 一种网络文件系统的访问方法和访问装置 WO2010078769A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP09837326A EP2375671A4 (en) 2008-12-29 2009-10-20 ACCESS PROCEDURE AND ACCESS DEVICE FOR A NETWORK FILE SYSTEM
US13/172,442 US20110258255A1 (en) 2008-12-29 2011-06-29 Method and Apparatus for Accessing Network File System

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2008101876722A CN101459669A (zh) 2008-12-29 2008-12-29 一种网络文件系统的访问方法和装置
CN200810187672.2 2008-12-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/172,442 Continuation US20110258255A1 (en) 2008-12-29 2011-06-29 Method and Apparatus for Accessing Network File System

Publications (1)

Publication Number Publication Date
WO2010078769A1 true WO2010078769A1 (zh) 2010-07-15

Family

ID=40770298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/074531 WO2010078769A1 (zh) 2008-12-29 2009-10-20 一种网络文件系统的访问方法和访问装置

Country Status (4)

Country Link
US (1) US20110258255A1 (zh)
EP (1) EP2375671A4 (zh)
CN (1) CN101459669A (zh)
WO (1) WO2010078769A1 (zh)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459669A (zh) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 一种网络文件系统的访问方法和装置
JP5249368B2 (ja) * 2011-01-31 2013-07-31 株式会社バッファロー ネットワーク装置
CN103368912B (zh) * 2012-03-31 2017-08-25 华为技术有限公司 一种在线应用的实现方法、装置及系统
CN103024010B (zh) * 2012-12-03 2016-08-24 北京奇虎科技有限公司 文件显示装置及方法
CN103020191B (zh) * 2012-12-03 2017-04-05 北京奇虎科技有限公司 一种用于显示文件的装置及方法
CN103858407B (zh) * 2013-12-02 2017-04-12 华为技术有限公司 文件的处理方法、装置及系统
WO2015081468A1 (zh) * 2013-12-02 2015-06-11 华为技术有限公司 文件的处理方法、装置及系统
CN103731489B (zh) * 2013-12-27 2017-12-15 华为技术有限公司 一种数据存储方法、系统和设备
CN104205730B (zh) * 2013-12-31 2017-09-29 华为技术有限公司 网元数据访问方法、虚拟网元、网络管理服务器及网络管理系统
CN104850502B (zh) * 2015-05-05 2018-03-09 华为技术有限公司 一种数据的访问方法、装置及设备
TW201640378A (zh) * 2015-05-15 2016-11-16 Chunghwa Telecom Co Ltd 檔案管理與存取系統及方法
CN106302609B (zh) * 2015-06-08 2020-02-28 阿里巴巴集团控股有限公司 一种访问方法及装置
CN106559392A (zh) * 2015-09-28 2017-04-05 北京神州泰岳软件股份有限公司 一种文件共享方法、装置和系统
CN106254434A (zh) * 2016-07-28 2016-12-21 武汉华星光电技术有限公司 一种网络附属存储设备与方法
CN106371934A (zh) * 2016-08-25 2017-02-01 成都索贝数码科技股份有限公司 一种基于windows文件系统驱动的第三方存储协议文件访问系统和访问方法
CN106412034B (zh) * 2016-09-14 2019-09-20 北京百度网讯科技有限公司 业务处理方法及装置
CN106357814B (zh) * 2016-10-27 2019-08-20 北京华为数字技术有限公司 一种文件处理方法、代理服务端及客户端
CN107679023A (zh) * 2017-09-27 2018-02-09 武汉颂大教育科技股份有限公司 一种联合采用多种转换技术的高兼容性电子文档转换方法
CN110677441B (zh) * 2018-07-02 2022-05-06 中国移动通信集团有限公司 一种对象存储集群的访问方法及装置
CN109344140A (zh) * 2018-08-14 2019-02-15 北京奇虎科技有限公司 数据访问方法、装置、电子设备及计算机存储介质
CN109257420B (zh) * 2018-08-29 2021-07-02 郑州云海信息技术有限公司 一种文件互传方法和装置
CN109274774A (zh) * 2018-11-16 2019-01-25 郑州云海信息技术有限公司 一种数据存储方法、装置和计算机可读存储介质
US20230171099A1 (en) * 2021-11-27 2023-06-01 Oracle International Corporation Methods, systems, and computer readable media for sharing key identification and public certificate data for access token verification

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783029A (zh) * 2004-11-02 2006-06-07 佳能株式会社 再现装置和再现方法
CN1996878A (zh) * 2006-06-28 2007-07-11 华为技术有限公司 一种简单对象访问协议业务管理接口转换信息的方法
CN101000633A (zh) * 2007-01-17 2007-07-18 北京航空航天大学 针对mpeg-7文件的检索方法及系统
CN101216777A (zh) * 2008-01-11 2008-07-09 华中科技大学 一种多虚拟机环境下的快速部署系统
CN101436148A (zh) * 2007-11-14 2009-05-20 华为技术有限公司 集成客户端及进行桌面应用与网络web应用交互的方法
CN101459669A (zh) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 一种网络文件系统的访问方法和装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6102164A (en) * 1996-02-28 2000-08-15 Applied Materials, Inc. Multiple independent robot assembly and apparatus for processing and transferring semiconductor wafers
US7293099B1 (en) * 1998-09-29 2007-11-06 Sun Microsystems, Inc. Heterogeneous network file access
US7280995B1 (en) * 1999-08-05 2007-10-09 Oracle International Corporation On-the-fly format conversion
US6718372B1 (en) * 2000-01-07 2004-04-06 Emc Corporation Methods and apparatus for providing access by a first computing system to data stored in a shared storage device managed by a second computing system
US6795824B1 (en) * 2000-10-31 2004-09-21 Radiant Data Corporation Independent storage architecture
US6871245B2 (en) * 2000-11-29 2005-03-22 Radiant Data Corporation File system translators and methods for implementing the same
US7512673B2 (en) * 2001-01-11 2009-03-31 Attune Systems, Inc. Rule based aggregation of files and transactions in a switched file system
AU2002313583A1 (en) * 2001-08-01 2003-02-17 Actona Technologies Ltd. Virtual file-sharing network
JP4237515B2 (ja) * 2003-02-07 2009-03-11 株式会社日立グローバルストレージテクノロジーズ ネットワークストレージ仮想化方法およびネットワークストレージシステム
US20060026161A1 (en) * 2004-07-16 2006-02-02 Henseler David A Distributed parallel file system for a distributed processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783029A (zh) * 2004-11-02 2006-06-07 佳能株式会社 再现装置和再现方法
CN1996878A (zh) * 2006-06-28 2007-07-11 华为技术有限公司 一种简单对象访问协议业务管理接口转换信息的方法
CN101000633A (zh) * 2007-01-17 2007-07-18 北京航空航天大学 针对mpeg-7文件的检索方法及系统
CN101436148A (zh) * 2007-11-14 2009-05-20 华为技术有限公司 集成客户端及进行桌面应用与网络web应用交互的方法
CN101216777A (zh) * 2008-01-11 2008-07-09 华中科技大学 一种多虚拟机环境下的快速部署系统
CN101459669A (zh) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 一种网络文件系统的访问方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2375671A4 *

Also Published As

Publication number Publication date
EP2375671A4 (en) 2012-01-18
CN101459669A (zh) 2009-06-17
EP2375671A1 (en) 2011-10-12
US20110258255A1 (en) 2011-10-20

Similar Documents

Publication Publication Date Title
WO2010078769A1 (zh) 一种网络文件系统的访问方法和访问装置
US9742876B2 (en) Span out load balancing model
US9329894B2 (en) Method and apparatus for extending local area networks between clouds and permanently migrating virtual machines using static network addresses
US9430256B2 (en) Method and apparatus for migrating virtual machines between cloud computing facilities using multiple extended local virtual networks and static network addresses
US8539081B2 (en) Enabling proxy services using referral mechanisms
US9882825B2 (en) Method and system for securely transmitting volumes into cloud
EP3117314B1 (en) Method and system for securely transmitting volumes into cloud
US20130125215A1 (en) Remote application presentation over a public network connection
EP2107463A2 (en) Wireless modem device usable on computer device without driver installation
US9219733B2 (en) Software-based aliasing for accessing multiple shared resources on a single remote host
US8566847B2 (en) Out-of-band host management via a management controller
WO2012142838A1 (zh) 资源共享系统、移动终端及资源共享方法
CN106648838B (zh) 一种资源池管理的配置方法及装置
Eckstein et al. Using Samba
CN112187718B (zh) 一种idv云桌面的远程访问云终端和系统
WO2019045837A1 (en) REMOTE APPLICATION CONFIGURATION ON A NETWORK STORAGE SERVER
US20050177577A1 (en) Accessing data on remote storage servers
JP4452156B2 (ja) 共同利用パソコン利用方法およびサーバ
WO2015117380A1 (zh) 一种远程桌面协议网关进行路由交换的方法、设备及系统
US20120311077A1 (en) Remote Access System and Method
US20080104239A1 (en) Method and system of managing accounts by a network server
WO2004051495A1 (en) Apparatus, method, and computer program product for tunneling tcp based client-server applications
KR102192321B1 (ko) 클라우드 컴퓨터 구동 방법 및 장치
KR20080113554A (ko) 무선단말기를 이용한 원격 스토리지 서비스 시스템 및서비스 방법
KR20200140775A (ko) 클라우드 컴퓨터 구동 방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09837326

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2009837326

Country of ref document: EP