JP2009205480A - File management, file server, client, file management method and program - Google Patents

File management, file server, client, file management method and program Download PDF

Info

Publication number
JP2009205480A
JP2009205480A JP2008047688A JP2008047688A JP2009205480A JP 2009205480 A JP2009205480 A JP 2009205480A JP 2008047688 A JP2008047688 A JP 2008047688A JP 2008047688 A JP2008047688 A JP 2008047688A JP 2009205480 A JP2009205480 A JP 2009205480A
Authority
JP
Japan
Prior art keywords
file
metadata
extended metadata
client
server
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
JP2008047688A
Other languages
Japanese (ja)
Other versions
JP5239398B2 (en
Inventor
Kinichi Sugimoto
欽一 杉本
Junichi Yamato
純一 大和
Masumi Ichien
真澄 一圓
Sumiaki Sakae
純明 榮
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2008047688A priority Critical patent/JP5239398B2/en
Publication of JP2009205480A publication Critical patent/JP2009205480A/en
Application granted granted Critical
Publication of JP5239398B2 publication Critical patent/JP5239398B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology for improving the reliability of a file operation in a file management system. <P>SOLUTION: This file management system for managing a file based on meta data having information for managing a file is provided with: a client which requests the update of extended meta data having information for managing a relevant file relevant to the file according to the operation of the file by a user; and a file server which stores the extended meta data, and updates the stored extended data according to the request of the update of the extended meta data from the client. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ファイルサーバが複数のファイルを管理する技術に関し、特にネットワークを通じて分散したファイルを管理する技術に関する。   The present invention relates to a technology for managing a plurality of files by a file server, and particularly to a technology for managing files distributed over a network.

ファイルサーバとクライアントを有し、クライアントがネットワーク経由でファイルにアクセスするファイル管理システムがある。このファイル管理システムでは、ネットワーク上のファイルサーバが搭載するディスク領域を管理するソフトウェアがファイル単位の領域管理機構や、ファイル操作用API(Application Program Interface)でファイルを管理していた。その場合、外部記憶装置上のファイルアクセスにおいては、ファイルを特定する識別子に基づいたオープン、リード、ライト、クローズなどの操作を、APIで実行する必要があった。その為、ファイル管理システムのディレクトリ操作に関するAPIを介して、ディレクトリを辿るなどのオペレーションが必要となる。   There is a file management system that has a file server and a client, and the client accesses a file via a network. In this file management system, software for managing a disk area mounted on a file server on a network manages a file using an area management mechanism for each file or a file operation API (Application Program Interface). In that case, in the file access on the external storage device, operations such as open, read, write, and close based on the identifier for specifying the file need to be executed by the API. Therefore, an operation such as tracing a directory via an API related to directory operation of the file management system is required.

このような煩雑な操作を避けて処理性能を向上するために、特許文献1に開示されたファイル管理システムは、データを管理するためのメタデータ(データの格納場所などを示す情報)を記憶するメタデータキャッシュを設けている。この場合、メタデータキャッシュの効率を向上するためには、特定のユーザのファイル操作に関する履歴の解析や、類似データをサーバ内で検索することによる検索用データの再構築などの、サーバ側での処理を増やして対策を行っていた。   In order to avoid such a complicated operation and improve processing performance, the file management system disclosed in Patent Document 1 stores metadata (information indicating a data storage location or the like) for managing data. A metadata cache is provided. In this case, in order to improve the efficiency of the metadata cache, server-side analysis such as analysis of the history of specific user file operations and reconstruction of search data by searching similar data in the server The countermeasure was increased by increasing the processing.

また、特許文献2では、ファイル管理を行うネットワーク接続型ストレージに対して、ファイルの種別を与えるメタデータあるいはユーザのプロファイル情報を使用してユーザの利用頻度の高いコンテンツをキャッシュ装置が把握する。そして、把握した情報に基づき、キャッシュ装置が効率的にフィルタして記憶することで効率的にトラフィックの低減を実現している。   Further, in Patent Document 2, a cache device grasps content frequently used by a user by using metadata giving a file type or user profile information for a network-connected storage that performs file management. Then, based on the grasped information, the cache device efficiently filters and stores the information, thereby efficiently reducing traffic.

或いは、特許文献3に開示されたデータ処理システムは、対象データの属性を表現するメタデータとして、データの所有者、データの名称、データの型、データの所在場所、データに対する各ユーザのアクセス権限などの情報を記録している。そして、データ処理システムは、これらの情報を元に、サーバ内でメタデータの検索処理を実行することにより、キャッシュ上に保持することにより処理性能を向上できると期待されるメタデータを抽出し、抽出したメタデータをメタデータキャッシュにロードしている。   Alternatively, the data processing system disclosed in Patent Document 3 uses the data owner, the data name, the data type, the location of the data, and the access authority of each user for the data as metadata representing the attributes of the target data. Etc. are recorded. And the data processing system extracts metadata expected to improve the processing performance by holding it on the cache by executing the metadata search processing in the server based on these information, The extracted metadata is loaded into the metadata cache.

このデータ処理システムにおいては、図14に示すように、メタデータのキャッシュの効率を向上するために、メタデータサーバ、すなわちファイルサーバS1側でメタデータを検索し、クライアントC1側にキャッシュする構成としている。
特開2003−150424号公報 特開2002−180319号公報 特開平7−73085号公報
In this data processing system, as shown in FIG. 14, in order to improve the efficiency of metadata caching, metadata is searched on the metadata server, that is, the file server S1 side, and cached on the client C1 side. Yes.
JP 2003-150424 A JP 2002-180319 A Japanese Patent Laid-Open No. 7-73085

しかしながら、特許文献1乃至3に開示されたファイル管理システムでは、ファイルサーバは、キャッシュなどのヒットの効率を向上する目的で、過去の履歴に基づいたデータベースをユーザ毎に管理する必要が生じ、更にそれらのデータを頻繁に更新する必要があった。そのため、サーバ負荷が大きくなり、ファイル操作の応答性が低くなるという課題があった。   However, in the file management systems disclosed in Patent Documents 1 to 3, the file server needs to manage a database based on the past history for each user in order to improve the efficiency of hits such as a cache. Those data had to be updated frequently. For this reason, there is a problem that the server load increases and the responsiveness of the file operation decreases.

上述した問題点を鑑み、本発明は、ファイル管理システムにおけるファイル操作の応答性を改善する技術を提供することを目的とする。   In view of the problems described above, an object of the present invention is to provide a technique for improving the responsiveness of file operations in a file management system.

上記目的を達成するために、本発明のファイル管理システムは、ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムであって、ユーザによる前記ファイルの操作に応じて該ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータの更新を要求するクライアントと、前記拡張メタデータを記憶しておき、記憶した該拡張メタデータを前記クライアントからの前記拡張メタデータの更新の要求に応じて更新するファイルサーバと、を有する。   In order to achieve the above object, a file management system of the present invention is a file management system for managing a file based on metadata having information for managing the file, and according to the operation of the file by a user. A client requesting updating of extended metadata having information for managing a related file related to the file, and storing the extended metadata, and storing the stored extended metadata from the client And a file server that is updated in response to a metadata update request.

また、本発明のファイル管理サーバは、ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムにおけるファイルサーバであって、前記ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータを記憶する記憶手段と、前記記憶手段に記憶された該拡張メタデータをクライアントからの前記拡張メタデータの更新の要求に応じて更新する更新手段と、を有する。   The file management server of the present invention is a file server in a file management system that manages a file based on metadata having information for managing the file, and manages a related file related to the file. Storage means for storing extended metadata having the above information, and update means for updating the extended metadata stored in the storage means in response to a request for updating the extended metadata from a client.

本発明のクライアントは、ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムにおけるクライアントであって、前記ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータを受信する受信手段と、前記受信手段により受信された前記拡張メタデータを記憶する記憶手段と、ユーザによる前記ファイルの操作に応じて前記記憶手段に記憶された前記拡張メタデータを更新し、該更新に基づいてファイルサーバに更新を要求する更新要求手段と、を有する。   The client of the present invention is a client in a file management system for managing a file based on metadata having information for managing the file, and has an information for managing a related file related to the file Receiving means for receiving metadata, storage means for storing the extended metadata received by the receiving means, and updating the extended metadata stored in the storage means in response to an operation of the file by a user. Update request means for requesting the file server to update based on the update.

本発明のファイル管理方法は、ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理方法であって、クライアントがユーザによる前記ファイルの操作に応じて該ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータの更新を要求し、ファイルサーバが前記拡張メタデータを記憶しておき、記憶した該拡張メタデータを前記ファイルサーバが前記クライアントからの前記拡張メタデータの更新の要求に応じて更新する。   The file management method of the present invention is a file management method for managing a file based on metadata having information for managing the file, wherein the client relates to the file according to the operation of the file by a user. A request is made to update extended metadata having information for managing related files, the file server stores the extended metadata, and the file server stores the extended metadata from the client. Update in response to a data update request.

本発明のプログラムは、ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムにおけるファイルサーバを制御するプログラムであって、前記ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータを記憶する手順、及び記憶された該拡張メタデータをクライアントからの前記拡張メタデータの更新の要求に応じて更新する更新手順、をコンピュータに実行させる。   A program of the present invention is a program for controlling a file server in a file management system that manages a file based on metadata having information for managing the file, and for managing a related file related to the file. The computer is caused to execute a procedure for storing the extended metadata having the above information and an update procedure for updating the stored extended metadata in response to a request for updating the extended metadata from the client.

本発明によれば、クライアントのユーザが拡張メタデータの更新を伴うファイル操作を行ったとき、その操作に応じてクライアントは拡張メタデータの更新をファイルサーバに要求し、ファイルサーバは要求に応じて拡張メタデータを更新する。よって、ファイルサーバは、自身でクライアントのユーザのファイル操作を拡張メタデータの更新に反映させる必要がなく、ファイルサーバの負荷が軽減されるので、ファイル管理システムにおけるファイル操作の応答性を改善することができる。   According to the present invention, when a user of a client performs a file operation involving updating of extended metadata, the client requests the file server to update the extended metadata according to the operation, and the file server responds to the request. Update extended metadata. Therefore, the file server does not need to reflect the file operation of the client user on the update of the extended metadata by itself, and the load of the file server is reduced, so that the responsiveness of the file operation in the file management system is improved. Can do.

(第1実施形態)
本発明の第1実施形態について図面を参照して詳細に説明する。
(First embodiment)
A first embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本実施形態のファイル管理システム1の構成を示すブロック図である。同図を参照すると、ファイル管理システム1は、クライアント10およびファイルサーバ11を有する。クライアント10およびファイルサーバ11は、ネットワーク2に接続される。また、ネットワーク2とは別のネットワーク4に記憶装置3およびファイルサーバ11が接続されており、ファイルサーバ11は、ネットワーク4を介して記憶装置3にアクセスできる。   FIG. 1 is a block diagram showing the configuration of the file management system 1 of the present embodiment. Referring to FIG. 1, the file management system 1 has a client 10 and a file server 11. The client 10 and the file server 11 are connected to the network 2. In addition, the storage device 3 and the file server 11 are connected to a network 4 different from the network 2, and the file server 11 can access the storage device 3 via the network 4.

本実施形態において、ファイルには、プログラムやデータなどのようなソフトウェエア資源に限らず、光学ドライブ、プリンタ、キーボードおよびマウスなどのハードウェア資源が含まれる。   In the present embodiment, the file includes not only software resources such as programs and data, but also hardware resources such as an optical drive, a printer, a keyboard, and a mouse.

本実施形態ではクライアント10は1つとしているが、複数のクライアント10にファイルサーバ11がサービスを提供する構成としてもよいのは勿論である。また、1つのクライアント10に対し、複数のファイルサーバ11がサービスを提供する構成とすることもできる。   Although the number of clients 10 is one in this embodiment, it is needless to say that the file server 11 may provide a service to a plurality of clients 10. Further, a configuration in which a plurality of file servers 11 provide services to one client 10 may be employed.

クライアント10は、ファイルサーバ11にファイルの入出力を要求し、ファイルに入力するデータをファイルサーバ11に送信し、ファイルから出力されるデータをファイルサーバ11から受信する。クライアント10は、アプリ実行部101、ファイル制御部103、およびネットワークI/F部105を有する。   The client 10 requests the file server 11 to input / output a file, transmits data input to the file to the file server 11, and receives data output from the file from the file server 11. The client 10 includes an application execution unit 101, a file control unit 103, and a network I / F unit 105.

アプリ実行部101は、ユーザがファイルサーバ11の管理するファイルを操作するためのアプリケーションを実行する。そのアプリケーションにおいてユーザは、ファイルの利用を開始する(ファイルを開く)操作またはファイルの利用を終了する(ファイルを閉じる)操作ができる。また、ユーザは、ファイルにデータを書き込む操作、ファイルからデータを読み出す操作、およびメタデータを作成または変更する操作などができる。メタデータの詳細については、後述する。   The application execution unit 101 executes an application for a user to operate a file managed by the file server 11. In the application, the user can perform an operation of starting use of the file (opening the file) or ending use of the file (closing the file). In addition, the user can perform operations such as writing data to a file, reading data from the file, and creating or changing metadata. Details of the metadata will be described later.

ファイル制御部103は、ユーザのファイル操作に応じて、所定のコマンドを発行し、発行したコマンドをネットワークI/F部105を経由してサーバ11に送信する。   The file control unit 103 issues a predetermined command according to a user's file operation, and transmits the issued command to the server 11 via the network I / F unit 105.

例えば、ファイル制御部103は、ユーザがファイルを開くまたは閉じる操作を行った場合、そのファイルを指定した「Open」または「Close」コマンドを発行する。   For example, when the user performs an operation of opening or closing a file, the file control unit 103 issues an “Open” or “Close” command specifying the file.

ユーザが開いたファイルにデータを書き込む操作を行った場合、ファイル制御部103は、そのファイルへの入力を要求する「Write」コマンドを発行し、書き込むデータを送信する。ユーザが開いたファイルからデータを読み出す操作を行った場合、ファイル制御部103は、そのファイルの出力を要求する「Read」コマンドを発行し、出力されたデータを受信する。ユーザがファイル作成またはファイル名の変更する操作を行った場合、ファイル制御部103は、そのファイルの拡張メタデータの作成または更新を要求する「ExtWrite」コマンドを発行し、更新内容を示すデータを送信する。   When the user performs an operation of writing data in the opened file, the file control unit 103 issues a “Write” command requesting input to the file, and transmits the data to be written. When the user performs an operation of reading data from the opened file, the file control unit 103 issues a “Read” command for requesting output of the file, and receives the output data. When the user performs an operation for creating a file or changing a file name, the file control unit 103 issues an “ExtWrite” command for requesting creation or update of extended metadata of the file, and transmits data indicating the update contents To do.

ネットワークI/F部105は、クライアントをネットワーク2に接続する通信インターフェースである。   The network I / F unit 105 is a communication interface that connects a client to the network 2.

ファイルサーバ11は、ネットワーク2を通じてクライアント10にファイルの入出力サービスを提供する。ファイルサーバ11は、ネットワークI/F部111、キャッシュ113、および管理部115を有する。   The file server 11 provides a file input / output service to the client 10 through the network 2. The file server 11 includes a network I / F unit 111, a cache 113, and a management unit 115.

ネットワークI/F部111は、ファイルサーバ11をネットワーク2およびネットワーク4に接続する通信インターフェースである。   The network I / F unit 111 is a communication interface that connects the file server 11 to the network 2 and the network 4.

キャッシュ113は、データキャッシュ1131およびメタデータキャッシュ1133を有し、ファイルへのアクセス時間を短縮するためデータ、メタデータ、および拡張メタデータを一時的に記憶する。   The cache 113 includes a data cache 1131 and a metadata cache 1133, and temporarily stores data, metadata, and extended metadata in order to shorten the access time to the file.

データキャッシュ1131は、ファイルから出力されるデータを一時的に記憶する。メタデータキャッシュ1133は、メタデータまたは拡張メタデータを一時的に格納する。   The data cache 1131 temporarily stores data output from the file. The metadata cache 1133 temporarily stores metadata or extended metadata.

ここで、メタデータは、ファイルを管理するための情報である。例えば、ファイル名、アクセス権限、ファイルの属性、ファイルの格納場所などを示す情報がメタデータに含まれる。UNIXやLinuxなどの場合のファイルシステムの領域を指し示すinode構造体がメタデータの代表例と言える。また、UNIX等においてディレクトリ構造を実現する際、例えば、ディレクトリ構造を示すメタデータをファイルのデータ領域に記録する。その場合、ディレクトリの下にあるファイルを辿るとき、ディレクトリのデータ領域にあるディレクトリ構造を示すメタデータを読み出したうえで、そのディレクトリ構造を基にして、ファイル識別情報(一般的にはファイル名)と前記のinodeの対応付けから、ディレクトリの下にあるファイルと結び付けられたメタデータすなわちinodeを割り出すのが一般的である。本実施形態で述べるメタデータは主にinode構造体のようなデータが記録されている領域を与えるデータ構造を指すが、ディレクトリ構造もメタデータとして扱っても差し支えない。   Here, the metadata is information for managing files. For example, the metadata includes information indicating a file name, access authority, file attribute, file storage location, and the like. An inode structure indicating a file system area in the case of UNIX or Linux can be said to be a typical example of metadata. When realizing a directory structure in UNIX or the like, for example, metadata indicating the directory structure is recorded in a data area of a file. In that case, when tracing the files under the directory, after reading the metadata indicating the directory structure in the data area of the directory, file identification information (generally the file name) based on the directory structure In general, metadata associated with a file under the directory, that is, inode, is determined from the association between the above and the inode. The metadata described in the present embodiment mainly refers to a data structure that gives an area in which data such as an inode structure is recorded. However, a directory structure may be handled as metadata.

また、Winsows等においては、ファイルやデータにおける設定や属性を管理するプロパティを示す情報がメタデータである。   In Windows and the like, information indicating properties for managing settings and attributes in files and data is metadata.

拡張メタデータは、ファイルに対応しており、そのファイルの関連ファイルを管理するための情報である。関連ファイルとは、あるファイルに着目した場合、そのファイル(自ファイル)に関連するファイルである。拡張メタデータは各ファイルのデータ領域等を指し示すメタデータとは独立した構造であり、その拡張メタデータに対応する自ファイルと関連の強い関連ファイルの識別情報、関連ファイルの格納場所を示す領域情報、または関連ファイルのメタデータを記録した領域を示す情報などを記録することを想定している。メタデータには拡張メタデータを記録した領域へのポインタ情報や領域情報などが格納される。   The extended metadata corresponds to a file and is information for managing a related file of the file. The related file is a file related to a file (own file) when attention is paid to a certain file. Extended metadata has a structure that is independent from the metadata that indicates the data area of each file, etc., and the identification information of the related file that is strongly related to the local file corresponding to the extended metadata, and the area information that indicates the storage location of the related file It is assumed that information indicating an area in which metadata of related files is recorded is recorded. The metadata stores pointer information, area information, and the like to the area where the extended metadata is recorded.

メタデータ、拡張メタデータ、およびファイルの参照関係について図2を参照して説明する。図2は、ファイルXのメタデータM1と、ファイルXの拡張メタデータE1と、ファイルX、A、B、C、およびDとの参照関係を示した図である。同図において、点線の矢印は参照関係を示し、ファイル間の実線はファイル間に関連があることを意味する。例えば、木構造における根と節とに相当するファイルや、ユーザが組み合わせて使用する頻度の高い複数のファイルなどが、関連のあるファイルとなりうる。   The reference relationship between metadata, extended metadata, and files will be described with reference to FIG. FIG. 2 is a diagram showing a reference relationship among the metadata X1 of the file X, the extended metadata E1 of the file X, and the files X, A, B, C, and D. In the figure, dotted arrows indicate a reference relationship, and solid lines between files mean that there is a relationship between files. For example, a file corresponding to a root and a node in a tree structure, or a plurality of files frequently used by a user in combination can be related files.

図2を参照すると、ファイルXにファイルA、B、C、およびDが関連する。ファイルXに着目すると、ファイルA、B、C、およびDがその関連ファイルである。ファイルXのメタデータM1は、ファイルXの格納場所等を参照する情報(例えばポインタ)およびファイルXの拡張メタデータE1の格納場所等を参照する情報を有する。そして、ファイルX(自ファイル)の拡張メタデータE1は、ファイルXに関連するファイル(関連ファイル)A、B、C、およびDの格納場所等を参照する情報を有する。   Referring to FIG. 2, files A, B, C, and D are associated with file X. Focusing on file X, files A, B, C, and D are related files. The metadata M1 of the file X includes information (for example, a pointer) that refers to the storage location of the file X, and information that refers to the storage location of the extended metadata E1 of the file X. The extended metadata E1 of the file X (own file) has information that refers to the storage location of the files (related files) A, B, C, and D related to the file X.

また、ファイルAに着目し、このファイルを自ファイルとすると、その関連ファイルは、ファイルX、B、C、およびDとなる。このため、ファイルAの拡張メタデータは、関連ファイルX、B、C、およびDの格納場所等を参照する情報を有する。   If attention is paid to the file A and this file is the self file, the related files are the files X, B, C, and D. For this reason, the extended metadata of the file A has information that refers to the storage location of the related files X, B, C, and D.

図3〜図7は、ファイルXの拡張メタデータE1のデータ構造の一例を示す図である。図3を参照すると、拡張メタデータE1は、ファイルXに関連するファイルA、B、C、およびDの識別情報(例えば、ファイル名)を格納する。同図において「FileA」、「FileB」、「FileC」、および「FileD」はそれぞれ、各ファイルのファイル名である。   3 to 7 are diagrams illustrating an example of the data structure of the extended metadata E1 of the file X. Referring to FIG. 3, the extended metadata E1 stores identification information (for example, file names) of files A, B, C, and D related to the file X. In the figure, “FileA”, “FileB”, “FileC”, and “FileD” are file names of the respective files.

図4に示すように、拡張メタデータE1は、各関連ファイルの優先度を示す情報をメタデータに対応付けて格納することもできる。関連ファイルごとの優先度は、ユーザが自ファイルを辿って、その関連ファイルにアクセスする可能性の高さを意味する。優先度は、関連ファイルの自ファイルとの関連の度合いや、アクセス履歴(最終アクセス日時やアクセス回数)などに応じて定める。例えば、優先度を示すPriorityというパラメータを定義し、同図に示すように、ユーザがファイルXを開いた後にファイルAおよびBにアクセスする頻度が高い場合、優先度が比較的高いファイルをAおよびBとして、ユーザはこれらにPriority0を付与する。そして、ユーザは優先度の比較的低いファイルCおよびDにはPriority1を付与する。ファイルサーバ11は、優先度の高いファイルに対応するメタデータまたは拡張メタデータを優先的にメタデータキャッシュ1131に記憶する。   As shown in FIG. 4, the extended metadata E1 can store information indicating the priority of each related file in association with the metadata. The priority for each related file means a high possibility that the user will follow the own file and access the related file. The priority is determined according to the degree of association of the related file with the own file, the access history (last access date and time, number of accesses), and the like. For example, when a parameter called Priority indicating priority is defined and the user frequently accesses the files A and B after opening the file X as shown in FIG. As B, the user assigns Priority 0 to them. Then, the user assigns Priority 1 to the files C and D having a relatively low priority. The file server 11 preferentially stores metadata or extended metadata corresponding to a high priority file in the metadata cache 1131.

図5に示すように、拡張メタデータE1は、ファイルXに関連するファイルA、B、C、およびDの格納場所を示す情報やデータサイズを示す情報を格納することもできる。図6に示すように、拡張メタデータE1は、更に関連度合いを示すパラメータ(Priority)を格納してもよい。図5および図6において「AddrA」、「AddrB」、「AddrC」、および「AddrD」はファイルの格納場所を示す情報であり、「LengthA」、「LengthB」、「LengthC」、および「LengthD」は、ファイルのデータサイズを示す情報である。   As shown in FIG. 5, the extended metadata E1 can also store information indicating the storage location of the files A, B, C, and D related to the file X and information indicating the data size. As shown in FIG. 6, the extended metadata E1 may further store a parameter (Priority) indicating the degree of association. In FIG. 5 and FIG. 6, “AddrA”, “AddrB”, “AddrC”, and “AddrD” are information indicating the storage locations of files, and “LengthA”, “LengthB”, “LengthC”, and “LengthD” are Information indicating the data size of the file.

図7に示すように、拡張メタデータE1は、ファイルA、B、C、Dそれぞれについて格納場所、データサイズに加え、各ファイルから出力されるデータのコピーである、「DataA」、「DataB」、「DataC」、および「DataD」を格納することもできる。   As shown in FIG. 7, the extended metadata E1 is a copy of data output from each file in addition to the storage location and data size for each of the files A, B, C, and D, “Data A” and “Data B”. , “DataC”, and “DataD” can also be stored.

図8および図9に示すように、拡張メタデータは、メタデータ自体を格納してもよい。図8は、メタデータ、拡張メタデータ、およびファイルの参照関係を示す図である。図8を参照すると、ファイルX、A、B、C、およびDのメタデータは、それぞれファイルX、A、B、C、およびDの格納場所等を参照する情報を有する。図9を参照すると、ファイルXの拡張メタデータE2は、ファイルA、B、C、およびDのメタデータである、「MetadataA」、「MetadataB」、「MetadataC」、および「MetadataD」を格納する。   As shown in FIGS. 8 and 9, the extended metadata may store the metadata itself. FIG. 8 is a diagram illustrating a reference relationship between metadata, extended metadata, and files. Referring to FIG. 8, the metadata of files X, A, B, C, and D includes information that refers to the storage locations of files X, A, B, C, and D, respectively. Referring to FIG. 9, the extended metadata E2 of the file X stores “Metadata A”, “Metadata B”, “Metadata C”, and “Metadata D”, which are metadata of the files A, B, C, and D.

図3、図5、図7、および図9において、拡張メタデータE1およびE2は、特にファイルの関連度合いを示す情報は有しないが、例えば、リストの先頭に近いファイルが先頭から遠いファイルより関連度が高いなどの意味を持たせることも可能である。   3, 5, 7, and 9, the extended metadata E <b> 1 and E <b> 2 do not have information indicating the degree of file association, but for example, a file closer to the head of the list is more relevant than a file farther from the head. It is also possible to give meaning such as high degree.

図2〜図9を参照して説明したように、メタデータは対応するファイルおよび拡張メタデータの格納場所等を参照し、拡張メタデータは対応するファイルに関連するファイルの格納場所等を参照する。このため、ファイルに対応するメタデータおよび拡張メタデータのデータ構造を解析することで、ファイルサーバ11は、そのファイルに関連するファイルの格納場所等を求めることができる。   As described with reference to FIGS. 2 to 9, the metadata refers to the storage location of the corresponding file and the extended metadata, and the extended metadata refers to the storage location of the file related to the corresponding file. . Therefore, by analyzing the data structure of the metadata and extended metadata corresponding to the file, the file server 11 can determine the storage location of the file related to the file.

また、図2〜図9に示したように、関連するファイルを管理する情報をまとめて拡張メタデータとして保持することで、メタデータキャッシュ1131を効率よく利用することができる。   Also, as shown in FIGS. 2 to 9, the metadata cache 1131 can be efficiently used by collectively storing information for managing related files as extended metadata.

図2〜図9に示した格調メタデータの例では、リスト構造のデータを想定しているが、これらのデータ構造に、XMLなど可変長でフレキシブルなデータフォーマットを利用した管理構造を適用することもできる。   In the example of the case metadata shown in FIG. 2 to FIG. 9, list structure data is assumed, but a management structure using a flexible data format such as XML is applied to these data structures. You can also.

図2〜図9に示した拡張メタデータは、予め記憶装置3またはメタデータキャッシュ1133に記憶しておくか、ファイルサーバ11がユーザの操作に応じて作成する。ユーザがファイルの関連を新たに定義したとき、クライアント10は新たに定義された関連ファイルを示す情報をファイルサーバ11へ送信する。ファイルサーバ11は、ステップT25において受信した関連ファイルを示す情報に基づき、拡張メタデータを作成してメタデータキャッシュ1131または記憶装置3に格納する。   The extended metadata shown in FIGS. 2 to 9 is stored in advance in the storage device 3 or the metadata cache 1133, or is created by the file server 11 in response to a user operation. When the user newly defines a file relationship, the client 10 transmits information indicating the newly defined related file to the file server 11. The file server 11 creates extended metadata based on the information indicating the related file received in step T25 and stores it in the metadata cache 1131 or the storage device 3.

図1に戻り、管理部115は、クライアント10から受信したコマンドに従って、ファイルを管理する。同図を参照すると、管理部115は、ファイル管理部1151、データ構造解析部1153、および入出力制御部1155を有する。   Returning to FIG. 1, the management unit 115 manages the file according to the command received from the client 10. Referring to the figure, the management unit 115 includes a file management unit 1151, a data structure analysis unit 1153, and an input / output control unit 1155.

ファイル管理部1151は、クライアント10から送信されるコマンドを読み込む。例えば、「Open」コマンドを受信した場合、ファイル管理部1151は、そのコマンドの示すファイルに対応するメタデータをメタデータキャッシュ1133から読み出す。該当するメタデータがメタデータキャッシュ1133にない場合、記憶装置3からそのメタデータを読み出す。ファイル管理部1151は、読み出したメタデータからファイルに対応する拡張メタデータを読み出し、「Open」コマンドの示すファイルに関連するファイルの名称等を示す情報を求める。そして、ファイル管理部1151は、その情報をクライアント10に送信する。読み出した関連ファイルのいずれかについてクライアント10から再度「Open」コマンドが送信された場合、ファイル管理部1151は同様の処理を行う。   The file management unit 1151 reads a command transmitted from the client 10. For example, when an “Open” command is received, the file management unit 1151 reads metadata corresponding to the file indicated by the command from the metadata cache 1133. If the corresponding metadata is not in the metadata cache 1133, the metadata is read from the storage device 3. The file management unit 1151 reads the extended metadata corresponding to the file from the read metadata, and obtains information indicating the name of the file related to the file indicated by the “Open” command. Then, the file management unit 1151 transmits the information to the client 10. When the “Open” command is transmitted again from the client 10 for any of the read related files, the file management unit 1151 performs the same processing.

また、「Write」コマンドを受信した場合、ファイル管理部1151は、クライアント10から書き込む対象のファイルとそのファイルに書き込むデータとを受信し、そのファイルにデータを格納(入力)する。「Read」コマンドを受信した場合、ファイル管理部1151は、記憶装置3またはデータキャッシュ1131からコマンドの示すファイルから読み出された(出力された)データを、クライアント10に送信する。   When the “Write” command is received, the file management unit 1151 receives a file to be written from the client 10 and data to be written to the file, and stores (inputs) the data in the file. When the “Read” command is received, the file management unit 1151 transmits the data read (output) from the file indicated by the command from the storage device 3 or the data cache 1131 to the client 10.

「ExtWrite」コマンドを受信した場合、ファイル管理部1151は、データキャッシュ1131または記憶装置3からコマンドの示す拡張メタデータを読み出し、コマンドに従って更新する。または、ファイル管理部1151は、コマンドに従って、拡張メタデータを作成し、メタデータキャッシュ1133に格納する。   When the “ExtWrite” command is received, the file management unit 1151 reads the extended metadata indicated by the command from the data cache 1131 or the storage device 3 and updates it according to the command. Alternatively, the file management unit 1151 creates extended metadata according to the command and stores it in the metadata cache 1133.

「Close」コマンドを受信した場合、ファイル管理部1151は、メタデータキャッシュ1133からコマンドの示すファイルの拡張メタデータを読み出し、記憶装置3へ書き込む。   When the “Close” command is received, the file management unit 1151 reads the extended metadata of the file indicated by the command from the metadata cache 1133 and writes it to the storage device 3.

このように、ファイル管理部1151の処理により、クライアント10のユーザはディレクトリ構造をたどってファイルを開き、開いたファイルにデータを書き込み又はファイルからデータを読み出し、そして、ファイルを閉じることができる。   As described above, the processing of the file management unit 1151 allows the user of the client 10 to open the file by following the directory structure, write data in the opened file, read data from the file, and close the file.

データ構造解析部1153は、図2〜図9に例示した拡張メタデータの構造を解析し、開いたファイルに関連の強いファイルの格納場所等を適宜メタデータキャッシュ1133内に保持する。その際にデータ構造解析部1153は、予め設定されたPriorityなどの情報により、ファイルの格納場所等を示す情報の優先度付けを行い、メタデータキャッシュ1133にそれらの情報の取り込みを行うか否かを判断する。   The data structure analysis unit 1153 analyzes the structure of the extended metadata exemplified in FIGS. 2 to 9 and appropriately stores the storage location of the file strongly related to the opened file in the metadata cache 1133. At that time, the data structure analysis unit 1153 prioritizes information indicating a file storage location or the like based on information such as preset priority, and determines whether or not to import the information into the metadata cache 1133. Judging.

このように、データ構造解析部1153は、優先度を示すパラメータ(Priority)に基づき必要なデータのみキャッシュ113に読み込むので、ファイルサーバ11はキャッシュ113を効率的に利用することが出来る。   As described above, the data structure analysis unit 1153 reads only necessary data into the cache 113 based on the parameter (Priority) indicating the priority, so that the file server 11 can efficiently use the cache 113.

また、拡張メタデータ領域は、図2〜図9に示したように、まとまった領域に関連ファイルを管理する情報(ファイル名、格納場所等)を記録することが可能であるため、効果的にメタデータキャッシュへの取り込みを実行できることも明らかである。   Further, as shown in FIG. 2 to FIG. 9, the extended metadata area can record information (file name, storage location, etc.) for managing related files in a collective area. It is also clear that the import to the metadata cache can be performed.

ネットワーク2は、クライアント10が接続される、LAN(Local Area Network)等のネットワークである。   The network 2 is a network such as a LAN (Local Area Network) to which the client 10 is connected.

記憶装置3は、光ディスク、磁気ディスク、シリコンディスク、コントローラ内のメモリなどの記憶装置である。記憶装置3には、ファイルサーバ11が管理するファイル、そのファイルのメタデータ、および拡張メタデータが格納される。本実施形態では、ファイルサーバ11の外部に記憶装置3を設ける構成としているが、記憶装置3は、ファイルサーバ11の内部に設けてもよい。また、記憶装置3は、複数台設けて、各装置にファイルを分散する構成としてもよい。   The storage device 3 is a storage device such as an optical disk, a magnetic disk, a silicon disk, or a memory in a controller. The storage device 3 stores a file managed by the file server 11, metadata of the file, and extended metadata. In the present embodiment, the storage device 3 is provided outside the file server 11, but the storage device 3 may be provided inside the file server 11. Further, a plurality of storage devices 3 may be provided to distribute files to each device.

ネットワーク4は、ファイルサーバ11が接続される、LAN(Local Area Network)等のネットワークである。   The network 4 is a network such as a LAN (Local Area Network) to which the file server 11 is connected.

次に、図10および図11を参照して、ファイル管理システム1の動作について説明する。   Next, the operation of the file management system 1 will be described with reference to FIG. 10 and FIG.

図10は、クライアント10の実行するファイル操作処理を示すフローチャートである。ファイル操作処理は、クライアント10がユーザのファイル操作に応じてファイルの入出力を要求するための処理である。ファイル操作処理は、アプリ実行部101が、ファイル操作のためのアプリケーションを実行したときに開始する。同図を参照すると、まず、ファイル制御部103は、ユーザの操作に応じて、サーバ11に対しファイルの入出力などを要求するコマンドを発行し、ネットワーク2を通じて発行したコマンドをサーバ11に送信する(ステップS5)。そして、ファイル制御部103は、発行したコマンドが「Open」コマンドであるか否かを判断する(ステップS10)。「Open」コマンドでない場合(ステップS10:NO)、ファイル制御部103はステップS5に戻る。   FIG. 10 is a flowchart showing file operation processing executed by the client 10. The file operation process is a process for the client 10 to request file input / output in response to a user's file operation. The file operation process starts when the application execution unit 101 executes an application for file operation. Referring to the figure, first, the file control unit 103 issues a command for requesting input / output of a file to the server 11 in response to a user operation, and transmits the issued command to the server 11 through the network 2. (Step S5). Then, the file control unit 103 determines whether or not the issued command is an “Open” command (step S10). If it is not an “Open” command (step S10: NO), the file control unit 103 returns to step S5.

「Open」コマンドである場合(ステップS10:YES)、ファイル制御部103は、サーバ11からコマンドの示すファイルに対応するメタデータを受信する(ステップS15)。そして、ファイル制御部103は、ユーザ操作に応じてコマンドを発行する(ステップS20)。ファイル制御部103は、発行したコマンドが、データの入出力を要求するコマンドであるか否かを判断する(ステップS25)。例えば、「Write」、「Read」、および「ExtWrite」がファイルの入出力を要求するコマンドである。   If it is an “Open” command (step S10: YES), the file control unit 103 receives metadata corresponding to the file indicated by the command from the server 11 (step S15). Then, the file control unit 103 issues a command according to the user operation (step S20). The file control unit 103 determines whether or not the issued command is a command requesting data input / output (step S25). For example, “Write”, “Read”, and “ExtWrite” are commands that request file input / output.

ファイルの入出力を要求するコマンドである場合(ステップS25:YES)、ファイル制御部103は、ファイルの入出力をサーバ11に要求し、ファイルサーバ10との間でデータを送受信する(ステップS30)。例えば、「Write」コマンドを発行した場合、ファイル制御部103は書き込む(入力する)データをサーバ11に送信する。「Read」コマンドを発行した場合、ファイル制御部103は開いたファイルから出力されたデータをサーバ11から受信する。「ExtWrite」コマンドを発行した場合、ファイル制御部103は拡張データの更新内容(ファイル名の変更など)を示すデータをサーバ11に送信する。ステップS30の後、ファイル制御部103は、ステップS20を実行する。   If it is a command requesting file input / output (step S25: YES), the file control unit 103 requests the server 11 to input / output a file, and transmits / receives data to / from the file server 10 (step S30). . For example, when a “Write” command is issued, the file control unit 103 transmits data to be written (input) to the server 11. When the “Read” command is issued, the file control unit 103 receives data output from the opened file from the server 11. When the “ExtWrite” command is issued, the file control unit 103 transmits to the server 11 data indicating the extension data update contents (file name change, etc.). After step S30, the file control unit 103 executes step S20.

ファイルの入出力を要求するコマンドでない場合(ステップS25:NO)、ファイル制御部103は、発行したコマンドが「Close」コマンドであるか否かを判断する(ステップS35)。「Close」コマンドでない場合(ステップS35:NO)、ファイル制御部103はステップS20に戻る。「Close」コマンドである場合(ステップS35:YES)、ファイル制御部103はファイル操作処理を終了する。   If it is not a command requesting input / output of a file (step S25: NO), the file control unit 103 determines whether or not the issued command is a “Close” command (step S35). If it is not a “Close” command (step S35: NO), the file control unit 103 returns to step S20. If it is a “Close” command (step S35: YES), the file control unit 103 ends the file operation process.

このように、クライアント10は、ユーザの操作に応じてファイル単位でファイルの入出力などを要求するコマンドを発行し、サーバ11との間でデータを送受信する。複数のファイルを処理する場合は、ファイル制御部103は、図10で示した処理を複数並行して実行する。   As described above, the client 10 issues a command for requesting file input / output in units of files in accordance with user operations, and transmits / receives data to / from the server 11. When processing a plurality of files, the file control unit 103 executes a plurality of processes shown in FIG. 10 in parallel.

次にサーバ11の実行するファイル管理処理について図11を参照して説明する。ファイル管理処理は、管理部115がクライアント10から送信されるコマンドに応じてファイルを管理するための処理である。ファイル制御処理は、サーバ11が起動した場合または所定のアプリケーションが起動した場合に開始する。同図を参照すると、管理部115は、まず、クライアント10から受信したコマンドを読み込む(ステップT1)。受信するコマンドは、例えば、「Open」、「Write」、「Read」、「ExtWrite」、または「Close」である。   Next, file management processing executed by the server 11 will be described with reference to FIG. The file management process is a process for the management unit 115 to manage a file in accordance with a command transmitted from the client 10. The file control process is started when the server 11 is activated or when a predetermined application is activated. Referring to the figure, the management unit 115 first reads a command received from the client 10 (step T1). The command to be received is, for example, “Open”, “Write”, “Read”, “ExtWrite”, or “Close”.

管理部115は、読み込んだコマンドが「Open」コマンドであるか否かを判断する(ステップT3)。「Open」コマンドでない場合(ステップT3:NO)、管理部115はステップT1に戻る。   The management unit 115 determines whether or not the read command is an “Open” command (step T3). If the command is not “Open” (step T3: NO), the management unit 115 returns to step T1.

「Open」コマンドである場合(ステップT3:YES)、管理部115は、メタデータキャッシュ1133にコマンドの示すファイルに対応するメタデータが格納されているか否かを判断する(ステップT5)。   If the command is an “Open” command (step T3: YES), the management unit 115 determines whether metadata corresponding to the file indicated by the command is stored in the metadata cache 1133 (step T5).

メタデータキャッシュ11133にファイルに対応するメタデータが格納されていない場合(ステップT5:NO)、管理部115は、記憶装置3からファイルに対応するメタデータを読み出す(ステップT7)。   When the metadata corresponding to the file is not stored in the metadata cache 11133 (step T5: NO), the management unit 115 reads the metadata corresponding to the file from the storage device 3 (step T7).

メタデータキャッシュ1133にファイルに対応するメタデータが格納されている場合(ステップT5:YES)、またはステップT7の後、管理部115は、読み出したメタデータからファイルに対応する拡張メタデータを読み出し、拡張メタデータの示す関連ファイルの情報などをクライアント10に送信する。管理部115は、クライアント10からのコマンドを待ち、コマンドを受信すれば、そのコマンドを読み込む(ステップT9)。   When metadata corresponding to the file is stored in the metadata cache 1133 (step T5: YES), or after step T7, the management unit 115 reads the extended metadata corresponding to the file from the read metadata, Information on the related file indicated by the extended metadata is transmitted to the client 10. The management unit 115 waits for a command from the client 10, and reads the command when receiving the command (step T9).

管理部115は、読み込んだコマンドが「Write」コマンドであるか否かを判断する(ステップT11)。「Write」コマンドであれば(ステップT11:YES)、管理部115はクライアント10から、ファイルに書き込むデータを受信する(ステップT13)。そして、管理部115は、開いているファイルに受信したデータを書き込む(ステップT15)。ステップT15の後、管理部115はステップT9に戻る。   The management unit 115 determines whether or not the read command is a “Write” command (step T11). If it is a “Write” command (step T11: YES), the management unit 115 receives data to be written to the file from the client 10 (step T13). Then, the management unit 115 writes the received data in the open file (step T15). After step T15, the management unit 115 returns to step T9.

「Write」コマンドでない場合(ステップT11:No)、管理部115は、読み込んだコマンドが「Read」コマンドであるか否かを判断する(ステップT17)。「Read」コマンドであれば(ステップT17:YES)、管理部115はデータキャッシュ1131または記憶装置3内のファイルから出力されたデータを読み込む(ステップT19)。そして、管理部115は、読み込んだデータをクライアント10へ送信する(ステップT21)。ステップT21の後、管理部115はステップT9に戻る。   When the command is not a “Write” command (step T11: No), the management unit 115 determines whether or not the read command is a “Read” command (step T17). If it is a “Read” command (step T17: YES), the management unit 115 reads data output from the data cache 1131 or a file in the storage device 3 (step T19). Then, the management unit 115 transmits the read data to the client 10 (step T21). After step T21, the management unit 115 returns to step T9.

「Read」コマンドでない場合(ステップT17:No)、管理部115は、読み込んだコマンドが「ExtWrite」コマンドであるか否かを判断する(ステップT23)。「ExtWrite」コマンドであれば(ステップT23:YES)、管理部115は、コマンドの示す拡張メタデータをメタデータキャッシュ1133または記憶装置3から読み出す(ステップS25)。管理部115は、読み出した拡張メタデータをコマンドの示す更新内容に従って更新し、更新後の拡張メタデータをメタデータキャッシュ1133に格納する(ステップT27)。ステップT27の後、管理部115はステップT9に戻る。   If it is not a “Read” command (step T17: No), the management unit 115 determines whether or not the read command is an “ExtWrite” command (step T23). If it is an “ExtWrite” command (step T23: YES), the management unit 115 reads the extended metadata indicated by the command from the metadata cache 1133 or the storage device 3 (step S25). The management unit 115 updates the read extended metadata according to the update content indicated by the command, and stores the updated extended metadata in the metadata cache 1133 (step T27). After step T27, the management unit 115 returns to step T9.

「ExtWrite」コマンドでない場合(ステップT23:No)、管理部115は、読み込んだコマンドが「Close」コマンドであるか否かを判断する(ステップT29)。「Close」コマンドでない場合(ステップT29:NO)、管理部115は、ステップT9に戻る。「Close」コマンドである場合(ステップT29:YES)、管理部115は、メタデータキャッシュ1133に格納されたメタデータおよび拡張メタデータを記憶装置3に書き込む(ステップT31)。ステップT31の後、管理部115は、ファイル管理処理を終了する。   When the command is not the “ExtWrite” command (step T23: No), the management unit 115 determines whether the read command is a “Close” command (step T29). If it is not the “Close” command (step T29: NO), the management unit 115 returns to step T9. When it is a “Close” command (step T29: YES), the management unit 115 writes the metadata and the extended metadata stored in the metadata cache 1133 to the storage device 3 (step T31). After step T31, the management unit 115 ends the file management process.

このように、サーバ11は、クライアント10からコマンドを受信し、受信したコマンドに応じてファイル入出力サービスを提供し、拡張メタデータを更新する。   As described above, the server 11 receives a command from the client 10, provides a file input / output service according to the received command, and updates the extended metadata.

なお、ファイルサーバ11は、ユーザのファイル操作に応じて拡張メタデータを作成してもよい。ユーザがファイルの関連を新たに定義したとき、クライアント10は新たに定義された関連ファイルを示す情報をファイルサーバ11へ送信する。ファイルサーバ11は、ステップT25において受信した関連ファイルを示す情報に基づき、拡張メタデータを作成してメタデータキャッシュ1131に格納する。   Note that the file server 11 may create extended metadata according to a user's file operation. When the user newly defines a file relationship, the client 10 transmits information indicating the newly defined related file to the file server 11. The file server 11 creates extended metadata based on the information indicating the related file received in step T25 and stores it in the metadata cache 1131.

以上説明したように、本実施形態によれば、ファイルサーバ11は関連ファイルを管理するための拡張メタデータをクライアント10からの要求で更新するので、ファイルサーバ11が自身で拡張メタデータの管理を行う必要がなく、ファイルサーバ11の処理負荷が軽減される。   As described above, according to the present embodiment, since the file server 11 updates the extended metadata for managing the related file in response to a request from the client 10, the file server 11 manages the extended metadata by itself. There is no need to do this, and the processing load on the file server 11 is reduced.

また、拡張メタデータは、関連ファイルのメタデータを有するので、ファイルサーバ11は、自ファイルの拡張メタデータを読み出せば、その関連ファイルのメタデータをネットワーク2を通じて読み出す必要がなく、ネットワーク2の通信量が軽減される。   Further, since the extended metadata includes the metadata of the related file, if the file server 11 reads the extended metadata of the own file, it is not necessary to read the metadata of the related file through the network 2. The amount of communication is reduced.

また、ファイルサーバ11は、どの関連ファイルのメタデータをキャッシュに格納するのかを、各関連ファイルの優先度に基づいて決めるので、キャッシュ113が効率的に利用され、ネットワーク4を通じての記憶装置3へのアクセス回数が減少する。このため、ネットワーク4におけるハンドシェイク回数が減少する。この結果、ファイル操作の応答性が向上する。   Further, since the file server 11 determines which related file metadata is to be stored in the cache based on the priority of each related file, the cache 113 is efficiently used, and the storage server 3 through the network 4 is used. The number of accesses decreases. For this reason, the number of handshakes in the network 4 is reduced. As a result, the responsiveness of the file operation is improved.

(第2実施形態)
本発明の第2実施形態について図12および図13を参照して説明する。
(Second Embodiment)
A second embodiment of the present invention will be described with reference to FIGS.

第1実施形態においてキャッシュ113はサーバ11側のみに設けていたが、更にクライアント10にキャッシュを設けてもよい。第2実施形態は、クライアント10にもキャッシュを設ける構成としたものである。   In the first embodiment, the cache 113 is provided only on the server 11 side, but the client 10 may be further provided with a cache. In the second embodiment, the client 10 is also provided with a cache.

図12は、本実施形態にかかるファイル管理システム1aの全体図である。同図を参照すると、クライアント10は、キャッシュ107を有し、キャッシュ107は、データキャッシュ1071およびメタデータキャッシュ1073を有する。ファイル管理システム1aは、クライアント10がキャッシュ107を有する以外は、第1実施形態にかかるファイル管理システム1と同様の構成である。   FIG. 12 is an overall view of the file management system 1a according to the present embodiment. Referring to the figure, the client 10 has a cache 107, and the cache 107 has a data cache 1071 and a metadata cache 1073. The file management system 1a has the same configuration as the file management system 1 according to the first embodiment except that the client 10 has a cache 107.

図13を参照して、本実施形態のクライアント10の動作について説明する。同図は、クライアント10が実行するファイル操作処理を示すフローチャートである。同図を参照すると、ファイル制御部103は、ユーザの操作に応じて、サーバ11に対しファイルの入出力などを要求するコマンドを発行し、そのコマンドをサーバ11に送信する(ステップS5)。そして、ファイル制御部103は、発行したコマンドが「Open」コマンドであるか否かを判断する(ステップS10)。「Open」コマンドでない場合(ステップS10:NO)、ファイル制御部103はステップS5に戻る。   With reference to FIG. 13, the operation of the client 10 of the present embodiment will be described. FIG. 2 is a flowchart showing file operation processing executed by the client 10. Referring to the figure, the file control unit 103 issues a command requesting file input / output to the server 11 in response to a user operation, and transmits the command to the server 11 (step S5). Then, the file control unit 103 determines whether or not the issued command is an “Open” command (step S10). If it is not an “Open” command (step S10: NO), the file control unit 103 returns to step S5.

「Open」コマンドである場合(ステップS10:YES)、メタデータキャッシュ1073にファイル制御部103は、サーバ11からコマンドの示すファイルに対応するメタデータが格納されているか否かを判断する(ステップS11)。   If the command is an “Open” command (step S10: YES), the file control unit 103 determines whether metadata corresponding to the file indicated by the command is stored from the server 11 in the metadata cache 1073 (step S11). ).

ファイルに対応するメタデータが格納されていない場合(ステップS11:NO)、ファイル制御部103は、サーバ11からコマンドの示すファイルに対応するメタデータを要求する。   When the metadata corresponding to the file is not stored (step S11: NO), the file control unit 103 requests metadata corresponding to the file indicated by the command from the server 11.

ファイルサーバ11は、要求されたメタデータ、および、そのメタデータが参照する拡張メタデータをネットワーク2の通信トラフィックが所定の値以下となったときに、一括してバックグラウンドでクライアント10に送信する。   The file server 11 transmits the requested metadata and the extended metadata referred to by the metadata collectively to the client 10 in the background when the communication traffic of the network 2 becomes a predetermined value or less. .

クライアント10は、メタデータおよび拡張メタデータを受信し、受信したメタデータ等をメタデータキャッシュ1073に格納する(ステップS15)。そして、ファイル制御部103は、ユーザ操作に応じてコマンドを発行する(ステップS20)。ファイル制御部103は、発行したコマンドが、データの入出力を要求するコマンドであるか否かを判断する(ステップS25)。   The client 10 receives the metadata and the extended metadata, and stores the received metadata and the like in the metadata cache 1073 (step S15). Then, the file control unit 103 issues a command according to the user operation (step S20). The file control unit 103 determines whether or not the issued command is a command requesting data input / output (step S25).

データの入出力を要求するコマンドである場合(ステップS25:YES)、またはファイルに対応するメタデータが格納されている場合(ステップS11:YES)、ファイル制御部103は、コマンドがデータ入出力の対象とするデータブロック(例えば、inode)がデータキャッシュ1071に格納されているか否かを判断する(ステップS26)。該当するデータブロックがある場合(ステップS26:YES)、ファイル制御部103は、そのデータブロックにデータを入出力する(ステップS27)。そして、ファイル制御部103はメタデータキャッシュ1073におけるメタデータを更新する。例えば、「Write」コマンドを発行した場合、ファイル制御部103は開いたファイルに対応するデータブロックにデータを格納する。「Read」コマンドを発行した場合、ファイル制御部103は開いたファイルに対応するデータブロックからデータを読み込む。   When the command requests data input / output (step S25: YES), or when metadata corresponding to the file is stored (step S11: YES), the file control unit 103 determines that the command is data input / output. It is determined whether or not the target data block (for example, inode) is stored in the data cache 1071 (step S26). If there is a corresponding data block (step S26: YES), the file control unit 103 inputs / outputs data to / from the data block (step S27). Then, the file control unit 103 updates the metadata in the metadata cache 1073. For example, when a “Write” command is issued, the file control unit 103 stores data in a data block corresponding to the opened file. When the “Read” command is issued, the file control unit 103 reads data from the data block corresponding to the opened file.

そして、ファイル制御部103はメタデータキャッシュ1073におけるメタデータを更新する(ステップS28)。例えば、「ExtWrite」コマンドを発行した場合、ファイル制御部103はメタデータキャッシュ1073における拡張メタデータを更新する。   Then, the file control unit 103 updates the metadata in the metadata cache 1073 (step S28). For example, when an “ExtWrite” command is issued, the file control unit 103 updates the extended metadata in the metadata cache 1073.

該当するデータブロックがない場合(ステップS26:NO)、ファイル制御部103は、ファイルの入出力をファイルサーバ11に要求し、ファイルサーバ11との間でデータを送受信する(ステップS30)。ファイル制御部103は、メタデータキャッシュ1073におけるメタデータを更新する(ステップS31)。ステップS28またはS31の後、ファイル制御部103は、ステップS20に戻る。   When there is no corresponding data block (step S26: NO), the file control unit 103 requests the file server 11 to input / output a file, and transmits / receives data to / from the file server 11 (step S30). The file control unit 103 updates the metadata in the metadata cache 1073 (step S31). After step S28 or S31, the file control unit 103 returns to step S20.

ファイルの入出力を要求するコマンドでない場合(ステップS25:NO)、ファイル制御部103は、発行したコマンドが「Close」コマンドであるか否かを判断する(ステップS35)。「Close」コマンドでない場合(ステップS35:NO)、ファイル制御部103はステップS20に戻る。「Close」コマンドである場合(ステップS35:YES)、ファイル制御部103はデータキャッシュ1071に記憶されたデータをファイルサーバ11に送信する(ステップS36)。そして、ファイル制御部103はメタデータキャッシュ1073に記憶された拡張メタデータを、ネットワーク2の通信トラフィックが所定の値以下となったときにバックグラウンドでファイルサーバ11へ送信する(ステップS37)。ファイルサーバ11は、受信したデータに応じて、キャッシュ113および記憶装置3に格納されたデータを更新する。ファイル制御部103は、ステップS37の後、ファイル操作処理を終了する。   If it is not a command requesting input / output of a file (step S25: NO), the file control unit 103 determines whether or not the issued command is a “Close” command (step S35). If it is not a “Close” command (step S35: NO), the file control unit 103 returns to step S20. When it is a “Close” command (step S35: YES), the file control unit 103 transmits the data stored in the data cache 1071 to the file server 11 (step S36). Then, the file control unit 103 transmits the extended metadata stored in the metadata cache 1073 to the file server 11 in the background when the communication traffic of the network 2 becomes a predetermined value or less (step S37). The file server 11 updates the data stored in the cache 113 and the storage device 3 according to the received data. The file control unit 103 ends the file operation process after step S37.

以上説明したように、本実施形態によれば、クライアント10がメタデータキャッシュ1073を有し、拡張メタデータをキャッシュするので、更にファイルサーバ11のキャッシュ管理の処理負荷が軽減され、ファイル操作の応答性が向上する。   As described above, according to this embodiment, since the client 10 has the metadata cache 1073 and caches the extended metadata, the processing load of the cache management of the file server 11 is further reduced, and the file operation response Improves.

また、ファイルサーバ11は、クライアント10へのメタデータおよび拡張メタデータの送信をネットワーク2の通信量が所定の値以下となった場合に行うので、通信トラフィックの増大によるファイルサーバ11の応答の遅延が抑制される。   Further, since the file server 11 transmits the metadata and the extended metadata to the client 10 when the communication amount of the network 2 becomes a predetermined value or less, the response of the file server 11 is delayed due to an increase in communication traffic. Is suppressed.

なお、図11、図12、および図13で示した処理の全部または一部は、コンピュータがソフトウェアプログラムを実行することにより実現することもできる。   Note that all or part of the processing shown in FIGS. 11, 12, and 13 can also be realized by a computer executing a software program.

第1実施形態のファイル管理システムの構成を示す全体図である。1 is an overall view showing a configuration of a file management system according to a first embodiment. 第1実施形態のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of 1st Embodiment. 第1実施形態の拡張メタデータの構成の一例を示す図である。It is a figure which shows an example of a structure of the extended metadata of 1st Embodiment. 第1実施形態の拡張メタデータの構成の一例を示す図である。It is a figure which shows an example of a structure of the extended metadata of 1st Embodiment. 第1実施形態の拡張メタデータの構成の一例を示す図である。It is a figure which shows an example of a structure of the extended metadata of 1st Embodiment. 第1実施形態の拡張メタデータの構成の一例を示す図である。It is a figure which shows an example of a structure of the extended metadata of 1st Embodiment. 第1実施形態の拡張メタデータの構成の一例を示す図である。It is a figure which shows an example of a structure of the extended metadata of 1st Embodiment. 第1実施形態のデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of 1st Embodiment. 第1実施形態の拡張メタデータの構成の一例を示す図である。It is a figure which shows an example of a structure of the extended metadata of 1st Embodiment. 第1実施形態のクライアントの実行する処理を示すフローチャートである。It is a flowchart which shows the process which the client of 1st Embodiment performs. 第1実施形態のファイルサーバの実行する処理を示すフローチャートである。It is a flowchart which shows the process which the file server of 1st Embodiment performs. 第2実施形態のファイル管理システムの構成を示す全体図である。It is a general view which shows the structure of the file management system of 2nd Embodiment. 第2実施形態のクライアントの実行する処理を示すフローチャートである。It is a flowchart which shows the process which the client of 2nd Embodiment performs. 従来のファイル管理システムの構成を示す全体図である。It is a general view which shows the structure of the conventional file management system.

符号の説明Explanation of symbols

1、1a ファイル管理システム
2、4 ネットワーク
3 記憶装置
10 クライアント
11 ファイルサーバ
101 アプリ実行部
103 ファイル制御部
105 ネットワークI/F部
107 キャッシュ
111 ネットワークI/F部
113 キャッシュ
115 管理部
1071 データキャッシュ
1073 メタデータキャッシュ
1131 データキャッシュ
1133 メタデータキャッシュ
1151 ファイル管理部
1153 データ構造解析部
E1、E2 拡張メタデータ
M1 メタデータ
C1 クライアント
S1 サーバ
S5〜S35、T1〜T31、S36、S37 ステップ
1, 1a File management system 2, 4 Network 3 Storage device 10 Client 11 File server 101 Application execution unit 103 File control unit 105 Network I / F unit 107 Cache 111 Network I / F unit 113 Cache 115 Management unit 1071 Data cache 1073 Meta Data Cache 1131 Data Cache 1133 Metadata Cache 1151 File Management Unit 1153 Data Structure Analysis Unit E1, E2 Extended Metadata M1 Metadata C1 Client S1 Server S5-S35, T1-T31, S36, S37 Steps

Claims (13)

ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムであって、
ユーザによる前記ファイルの操作に応じて、該ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータの更新を要求するクライアントと、
前記ファイルに対応付けて前記拡張メタデータを記憶しておき、記憶した該拡張メタデータを前記クライアントからの前記拡張メタデータの更新の要求に応じて更新するファイルサーバと、
を有するファイル管理システム。
A file management system for managing a file based on metadata having information for managing the file,
A client requesting update of extended metadata having information for managing a related file related to the file in response to an operation of the file by a user;
A file server that stores the extended metadata in association with the file, and updates the stored extended metadata in response to a request to update the extended metadata from the client;
A file management system.
前記拡張メタデータは、該拡張メタデータが管理する前記関連ファイルに対応する前記メタデータを有する、請求項1に記載のファイル管理システム。   The file management system according to claim 1, wherein the extended metadata includes the metadata corresponding to the related file managed by the extended metadata. 前記拡張メタデータは、前記関連ファイルの優先度を示す優先度情報を更に有し、
前記ファイルサーバは、前記優先度情報に基づいて前記拡張メタデータを前記ファイルに対応付けて記憶しておく、請求項1又は2に記載のファイル管理システム。
The extended metadata further includes priority information indicating the priority of the related file,
The file management system according to claim 1, wherein the file server stores the extended metadata in association with the file based on the priority information.
前記ファイルサーバは、記憶された前記拡張メタデータを前記クライアントへ更に送信し、
前記クライアントは、前記ファイルサーバから受信した前記拡張メタデータを記憶しておき、ユーザによる前記ファイルの操作に応じて自身の記憶している該拡張メタデータを更新したとき、該更新に基づいて、前記ファイルサーバに前記拡張メタデータの更新を要求する、請求項1乃至3のいずれか1項に記載のファイル管理システム。
The file server further transmits the stored extended metadata to the client;
The client stores the extended metadata received from the file server, and when updating the extended metadata stored in accordance with the operation of the file by a user, based on the update, The file management system according to claim 1, wherein the file server requests the file server to update the extended metadata.
前記サーバ及び前記クライアントはネットワークに接続され、
前記サーバは、前記ネットワークの通信量が所定の閾値以下のときに記憶された前記拡張メタデータを前記クライアントに送信する、請求項4に記載のファイル管理システム。
The server and the client are connected to a network;
The file management system according to claim 4, wherein the server transmits the extended metadata stored when the network traffic is equal to or less than a predetermined threshold to the client.
ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムにおけるファイルサーバであって、
前記ファイルに対応付けて該ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータを記憶しておく記憶手段と、
前記記憶手段に記憶された該拡張メタデータをクライアントからの前記拡張メタデータの更新の要求に応じて更新する更新手段と、
を有するファイルサーバ。
A file server in a file management system for managing the file based on metadata having information for managing the file,
Storage means for storing extended metadata having information for managing a related file related to the file in association with the file;
Updating means for updating the extended metadata stored in the storage means in response to a request for updating the extended metadata from a client;
A file server with
前記拡張メタデータは、該拡張メタデータが管理する前記関連ファイルに対応する前記メタデータ又は該関連ファイルに対応する前記拡張メタデータを有する、請求項6に記載のファイルサーバ。   The file server according to claim 6, wherein the extended metadata includes the metadata corresponding to the related file managed by the extended metadata or the extended metadata corresponding to the related file. 前記拡張メタデータは、前記関連ファイルの優先度を示す情報を更に有し、
前記記憶手段は、前記優先度情報に基づいて前記拡張メタデータを前記ファイルに対応付けて記憶しておく、請求項6又は7に記載のファイルサーバ。
The extended metadata further includes information indicating the priority of the related file,
The file server according to claim 6 or 7, wherein the storage unit stores the extended metadata in association with the file based on the priority information.
ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムにおけるクライアントであって、
前記ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータを受信する受信手段と、
前記受信手段により受信された前記拡張メタデータを前記ファイルに対応付けて記憶する記憶手段と、
ユーザによる前記ファイルの操作に応じて、前記記憶手段に記憶された前記拡張メタデータを更新し、該更新に基づいてファイルサーバに更新を要求する更新要求手段と、
を有するクライアント。
A client in a file management system that manages a file based on metadata having information for managing the file,
Receiving means for receiving extended metadata having information for managing a related file related to the file;
Storage means for storing the extended metadata received by the receiving means in association with the file;
Update request means for updating the extended metadata stored in the storage means in response to an operation of the file by a user, and requesting an update from the file server based on the update;
Having clients.
前記拡張メタデータは、前記関連ファイルに対応する前記メタデータ又は該関連ファイルに対応する前記拡張メタデータを有する、請求項9に記載のクライアント。   The client according to claim 9, wherein the extended metadata includes the metadata corresponding to the related file or the extended metadata corresponding to the related file. 前記拡張メタデータは、前記関連ファイルの優先度を示す優先度情報を更に有し、
前記記憶手段は、前記優先度情報に基づいて前記拡張メタデータを前記ファイルに対応付けて記憶する、請求項9又は10に記載のクライアント。
The extended metadata further includes priority information indicating the priority of the related file,
The client according to claim 9 or 10, wherein the storage unit stores the extended metadata in association with the file based on the priority information.
ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理方法であって、
クライアントがユーザによる前記ファイルの操作に応じて、該ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータの更新を要求し、
前記ファイルに対応付けてファイルサーバが前記拡張メタデータを記憶しておき、
記憶した該拡張メタデータを前記ファイルサーバが前記クライアントからの前記拡張メタデータの更新の要求に応じて更新する、ファイル管理方法。
A file management method for managing a file based on metadata having information for managing the file,
In response to an operation of the file by the user, the client requests update of extended metadata having information for managing a related file related to the file,
The file server stores the extended metadata in association with the file,
A file management method in which the file server updates the stored extended metadata in response to a request for updating the extended metadata from the client.
ファイルを管理するための情報を有するメタデータに基づいて該ファイルを管理するファイル管理システムにおけるファイルサーバを制御するプログラムであって、
前記ファイルに対応付けて前記ファイルに関連する関連ファイルを管理するための情報を有する拡張メタデータを記憶する手順、及び
記憶された該拡張メタデータをクライアントからの前記拡張メタデータの更新の要求に応じて更新する更新手順、
をコンピュータに実行させるためのプログラム。
A program for controlling a file server in a file management system for managing a file based on metadata having information for managing the file,
A procedure for storing extended metadata having information for managing a related file related to the file in association with the file, and for storing the extended metadata in a request for updating the extended metadata from a client Update procedure to update accordingly,
A program that causes a computer to execute.
JP2008047688A 2008-02-28 2008-02-28 File management system, file server, client, file management method, and program Active JP5239398B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008047688A JP5239398B2 (en) 2008-02-28 2008-02-28 File management system, file server, client, file management method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008047688A JP5239398B2 (en) 2008-02-28 2008-02-28 File management system, file server, client, file management method, and program

Publications (2)

Publication Number Publication Date
JP2009205480A true JP2009205480A (en) 2009-09-10
JP5239398B2 JP5239398B2 (en) 2013-07-17

Family

ID=41147660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008047688A Active JP5239398B2 (en) 2008-02-28 2008-02-28 File management system, file server, client, file management method, and program

Country Status (1)

Country Link
JP (1) JP5239398B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0773085A (en) * 1993-07-02 1995-03-17 Hitachi Ltd Data processing system and look-ahead method for meta data
JP2004005289A (en) * 2002-06-03 2004-01-08 Hitachi Ltd Storage system
JP2006293936A (en) * 2005-04-14 2006-10-26 Mitsubishi Electric Corp File relation acquisition device
JP2006313448A (en) * 2005-05-09 2006-11-16 Hitachi Medical Corp Information processing device
JP2008041020A (en) * 2006-08-10 2008-02-21 Hitachi Ltd File server, computer system and file pre-fetch method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0773085A (en) * 1993-07-02 1995-03-17 Hitachi Ltd Data processing system and look-ahead method for meta data
JP2004005289A (en) * 2002-06-03 2004-01-08 Hitachi Ltd Storage system
JP2006293936A (en) * 2005-04-14 2006-10-26 Mitsubishi Electric Corp File relation acquisition device
JP2006313448A (en) * 2005-05-09 2006-11-16 Hitachi Medical Corp Information processing device
JP2008041020A (en) * 2006-08-10 2008-02-21 Hitachi Ltd File server, computer system and file pre-fetch method

Also Published As

Publication number Publication date
JP5239398B2 (en) 2013-07-17

Similar Documents

Publication Publication Date Title
US11099769B1 (en) Copying data without accessing the data
US9092146B2 (en) Dynamically varying transfer size in a storage device for improved performance
US7765189B2 (en) Data migration apparatus, method, and program for data stored in a distributed manner
US8473636B2 (en) Information processing system and data management method
US8458234B2 (en) Data management method
JP5589205B2 (en) Computer system and data management method
US20050262150A1 (en) Object-based storage
KR20170133120A (en) System and mehtod for managing container image
JP2007018399A (en) Condition-based snapshot acquisition method and system
US9335945B2 (en) Transfer size monitor, determination, and optimization engine for storage devices
US8433871B2 (en) Data copy management for faster reads
US20090193207A1 (en) Computer system, remote copy method and first computer
JP5439236B2 (en) Computer system and method of executing application program
US11042508B2 (en) Information management
KR101624005B1 (en) Controlling access to software component state
JP4327869B2 (en) Distributed file system, distributed file system server, and access method to distributed file system
CN112395437B (en) 3D model loading method and device, electronic equipment and storage medium
US20190253529A1 (en) Method and system for enforcing governance across multiple content repositories using a content broker
JP5239398B2 (en) File management system, file server, client, file management method, and program
US20190179803A1 (en) Apparatus and method for file sharing between applications
WO2016001959A1 (en) Storage system
JP4005102B2 (en) Gateway device
JP2005063139A (en) Computer system and program
JP6323109B2 (en) Document management system, key-value store apparatus, document management method, and program
US8495558B2 (en) Modifier management within process models

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110111

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121004

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121023

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130305

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130318

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160412

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5239398

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150