CN104038526B - Data access method and system - Google Patents

Data access method and system Download PDF

Info

Publication number
CN104038526B
CN104038526B CN201310074040.6A CN201310074040A CN104038526B CN 104038526 B CN104038526 B CN 104038526B CN 201310074040 A CN201310074040 A CN 201310074040A CN 104038526 B CN104038526 B CN 104038526B
Authority
CN
China
Prior art keywords
data
metadata
file
catalogue
real
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.)
Active
Application number
CN201310074040.6A
Other languages
Chinese (zh)
Other versions
CN104038526A (en
Inventor
赵志强
钟秦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310074040.6A priority Critical patent/CN104038526B/en
Publication of CN104038526A publication Critical patent/CN104038526A/en
Application granted granted Critical
Publication of CN104038526B publication Critical patent/CN104038526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application provides a kind of data access method and system, the method includes:Obtain data access request;According to the data access request, the target data that request accesses is determined;To the metadata of each Hierarchical File catalogue of the corresponding file data of target data described in network hard disc acquisition request or the metadata of real data, and store;According to the metadata of each Hierarchical File catalogue or the metadata of real data, the target data is obtained.Reduce network access times by the embodiment of the present application, improves data access efficiency.

Description

Data access method and system
Technical field
This application involves technical field of data processing, more particularly to a kind of data access method and system.
Background technology
Network hard disc is a kind of online storage service, provides a user the files such as the storage of file, access, backup, shared Management function, as the swift and violent growth of data and the continuous prosperity of internet device, network hard disc are increasingly becoming Future Data The main direction of development of storage.
The data stored in network hard disc include file data and metadata, and metadata is for management and constituent act The data of data.It when accessing the data of network hard disc storage, needs to obtain metadata first, then be obtained further according to metadata Corresponding file data.
And file data generally comprises file directory and real data, usually has certain layer depth, i.e. file data Master catalogue under there is subdirectory, it is corresponding under master catalogue or each subdirectory again with next layer of subdirectory under subdirectory May be next straton catalogue or real data.In the prior art, it when carrying out data access, needs to file data point Layer accesses, and is determined successively per the metadata of first class catalogue and the metadata of real data, thus could be according to catalogue The metadata of metadata and real data, and then target data could be got according to metadata.And a data are often obtained, It is required for accessing by primary network, therefore existing data access method needs to access by multiple network, when catalogue level When deeper, access times are more so that resource occupying is more, and affects the efficiency of data access.
Invention content
In view of this, this application provides a kind of data access method and system, network access time in the prior art is solved The technical issues of number is more, image data access efficiency.
To achieve the above object, the application provides the following technical solutions:
The one side of the application provides a kind of data access method, including:
Obtain data access request;
According to the data access request, the target data that request accesses is determined;
To first number of each Hierarchical File catalogue of the corresponding file data of target data described in network hard disc acquisition request According to or real data metadata, and store;
According to the metadata of each Hierarchical File catalogue or the metadata of real data, the target data is obtained.
Preferably, each Hierarchical File to the corresponding file data of target data described in network hard disc acquisition request Before the metadata of catalogue or the metadata of real data, the method further includes:
Whether inquiry stores the metadata or reality of each Hierarchical File catalogue of the corresponding file data of the target data The metadata of border data;
If not, executing each layer to the corresponding file data of target data described in network hard disc acquisition request again Grade file directory metadata or real data metadata the step of;
If so, according to the metadata of each Hierarchical File catalogue or the metadata of real data, the mesh is obtained Mark data.
Preferably, each Hierarchical File to the corresponding file data of target data described in network hard disc acquisition request The metadata of catalogue or real data, and store and include:
To first number of each Hierarchical File catalogue of the corresponding file data of target data described in network hard disc acquisition request According to or real data metadata;
By the metadata of each Hierarchical File catalogue or the metadata of real data, according to different levels file directory Or the storage organization of real data is stored.
Preferably, each Hierarchical File to the corresponding file data of target data described in network hard disc acquisition request The metadata of catalogue or real data, and store and include:
Asked to network hard disc each Hierarchical File catalogue of the corresponding file data of the target data metadata or The metadata of real data;
Receive the difference for the storage organization tissue according to different levels file directory or real data that network hard disc is sent The metadata of file directory or real data;
Store the different metadata of file directory or the metadata of real data.
Preferably, according to the metadata of each Hierarchical File catalogue or the metadata of real data, the mesh is obtained Marking data includes:
Determine the corresponding file destination catalogue of the target data;
According to the metadata of each Hierarchical File catalogue, the document directory structure of the file data is determined;
According to the document directory structure and the file destination catalogue, the target data is obtained.
Preferably, the reception data access request includes:
Obtain the data access request that Virtual File System is sent.
Preferably, the metadata includes target data attribute.
The another aspect of the application provides a kind of data access system, including:
Acquisition request module, for obtaining data access request;
Data determining module, for according to the data access request, determining the target data that request accesses;
First data acquisition module is used for the every of the corresponding file data of target data described in network hard disc acquisition request The metadata of one Hierarchical File catalogue or the metadata of real data, and store;
Second data acquisition module, for according to the metadata of each Hierarchical File catalogue or first number of real data According to obtaining the target data.
Preferably, the system also includes:
Data inquiry module, for inquiring each Hierarchical File for whether storing the corresponding file data of the target data The metadata of catalogue or the metadata of real data, if it is not, then triggering first data acquisition module, if it is, touching Send out the second data module described.
Preferably, first data acquisition module includes:
Data acquisition submodule is used for each of the corresponding file data of target data described in network hard disc acquisition request The metadata of Hierarchical File catalogue or real data;
First memory module is used for by the metadata of each Hierarchical File catalogue or real data, according to different layers The storage organization of grade file directory or real data is stored.
Preferably, first acquisition module includes:
Request sending module, each level text for asking the corresponding file data of the target data to network hard disc The metadata of part catalogue or the metadata of real data;
Data reception module:Receive the storage knot according to different levels file directory or real data that network hard disc is sent The metadata of the different file directorys of structure tissue or the metadata of real data;
Second memory module, for storing the different metadata of file directory or the metadata of real data.
Preferably, second data acquisition module includes:
Catalogue determining module, for determining the corresponding file destination catalogue of the target data;
Structure determination module determines the file data for the metadata according to each Hierarchical File catalogue Document directory structure;
Second data acquisition submodule, for according to the document directory structure and the file destination catalogue, obtaining The target data.
It can be seen via above technical scheme that compared with prior art, this application provides a kind of data access method and System once asks to obtain target to network hard disc when getting the data access request for accessing to target data The metadata of the file directory of each level of the corresponding file data of data or the metadata of the real data under file directory, And store, to the metadata of the file directory of each level according to the acquisition or the metadata of real data, it may be determined that Go out the information such as the metadata of target data, so as to by primary network access can get the target data, without by Layer is accessed successively, reduces access times, to improve the efficiency of data access.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of data access method embodiment of the application 1;
Fig. 2 is a kind of flow chart of data access method embodiment of the application 2;
Fig. 3 is a kind of structural schematic diagram of data access device embodiment of the application 1;
Fig. 4 is a kind of structural schematic diagram of data access device embodiment of the application 2;
Fig. 5 is a kind of knot of realization method of the first data acquisition module in a kind of data access device embodiment 2 of the application Structure schematic diagram;
Fig. 6 is the first data acquisition module another kind realization method in a kind of data access device embodiment 2 of the application Structural schematic diagram.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
One of main thought of the application may include:Data access system gets the number to access to target data When according to access request, the file mesh for obtaining each level of the corresponding file data of target data is once asked to network hard disc The metadata of record or the metadata of the real data under file directory, and store, to the text of each level according to the acquisition The metadata of part catalogue or the metadata of real data, it may be determined that go out the information such as the metadata of target data, so as to pass through The target data can be got by crossing primary network access, without successively being accessed successively, reduce access times, to carry The high efficiency of data access.
Below in conjunction with the accompanying drawings, the application embodiment is described in detail.
Fig. 1 is a kind of flow chart of data access method embodiment of the application 1, may include following steps:
Step 101:Obtain data access request.
Step 102:According to the data access request, the target data that request accesses is determined.
The file stored in network hard disc includes file data and metadata, and pipe is carried out to data by file system Reason.File data and metadata are managed two kinds storage data modes of file system, file data include file directory with And real data, metadata are for managing and the data of constituent act data, metadata may include the data of file data Attribute, such as title, size, type etc..
In the embodiment of the present application, the data of network hard disc storage have certain layer depth, i.e. file data includes file mesh Record, file directory include master catalogue and subdirectory, have next layer of subdirectory under subdirectory again.It is right under master catalogue or subdirectory What is answered is next straton catalogue or real data.
When carrying out data access, which can carry the title of target data, should so as to foundation Data access request determines the target data desired access to.
Wherein, which can be specifically that the virtual file received accesses the data access request of system, i.e., The data access request request that system can be accessed according to virtual file accesses network hard disc.
Step 103:To each Hierarchical File mesh of the corresponding file data of target data described in network hard disc acquisition request The metadata of record or the metadata of real data and storage.
Since storage of the file data in network hard disc has certain layer depth, carried out according to certain bibliographic structure Storage.In the prior art, it when obtaining target data to network hard disc, needs successively to access to file data layering, need Multiple network request is sent to network hard disc.And in the embodiment of the present application, after getting network access request, to network hard disc It is the metadata or reality of each Hierarchical File catalogue of the acquisition request target data place file data when carrying out network access The metadata of border data, and can be stored, rather than the only member of the metadata of one layer of file directory of access or real data Data.
Step 104:According to the metadata of each Hierarchical File catalogue or the metadata of real data, the mesh is obtained Mark data.
The metadata of each Hierarchical File target obtained or the metadata of real data, you can be obtained according to metadata The target data, for example, the attribute informations such as storage location and the size of target data can be determined according to metadata, to Corresponding target data can be obtained according to these attribute informations.
Wherein, a kind of possible realization method of the step 104 can be specifically:
First, the corresponding file destination catalogue of the target data is determined.
Secondly, according to the metadata of each Hierarchical File catalogue, the document directory structure of the file data is determined.
Then, according to the document directory structure and the file destination catalogue, you can obtain the target data.
The file destination catalogue corresponding to target data can be determined according to the metadata of target data.According to acquired Each level file directory metadata, the document directory structure of the corresponding file data of target data can be obtained;Root According to document directory structure and file destination catalogue, to can determine that position of the file destination catalogue in document directory structure It sets, and then accordingly can be to acquisition request of network hard disc to the target data.
In the present embodiment, primary to network hard disc when getting the data access request to access to target data The metadata or the reality under file directory that request obtains the file directory of each level of the corresponding file data of target data The metadata of border data, and storing, to the metadata or real data of the file directory of each level according to the acquisition Metadata, it may be determined that go out the information such as the metadata of target data, so as to which this can be got by primary network access Target data reduces access times, to improve the efficiency of data access without successively being accessed successively.
Fig. 2 is a kind of flow chart of data access method embodiment of the application 2, and this method may include following step Suddenly:
Step 201:Obtain data access request:.
Step 202:According to the data access request, the target data that request accesses is determined.
Step 201~step 202 is similar to step 101~step 102 of embodiment 1, and this is no longer going to repeat them.
Step 203:Whether inquiry stores the member of each Hierarchical File catalogue of the corresponding file data of the target data The metadata of data or real data, if not, 204 are entered step, if so, entering step 205.
In the present embodiment, data access request is got, after determining the target data that request accesses, inquiry first is The metadata of the no each Hierarchical File catalogue for being stored with the corresponding file data of the target data or the metadata of real data.
Step 204:To each Hierarchical File mesh of the corresponding file data of target data described in network hard disc acquisition request The metadata of record or the metadata of real data, and store, and enter step 205.
If there is no the metadata or reality of each Hierarchical File catalogue of the corresponding file data of the target data for inquiry The metadata of data is then initiated network to network hard disc and is accessed, the metadata or reality of each Hierarchical File catalogue of acquisition request The metadata of data.
Wherein, to each Hierarchical File catalogue of the corresponding file data of target data described in network hard disc acquisition request The metadata of metadata or real data, a kind of possible realization method are:
To first number of each Hierarchical File catalogue of the corresponding file data of target data described in network hard disc acquisition request According to or real data metadata.
By the metadata of each Hierarchical File catalogue or the metadata of real data, according to different levels file directory Or the storage organization of real data is stored.
After sending request to network hard disc, by each of the corresponding file data of the target data of network hard disc return The metadata of Hierarchical File catalogue or real data is carried out according to the storage organization of different levels file directory or real data Storage, i.e., store acquired metadata according to the storage organization of data in network hard disc, i.e., each file directory The metadata of metadata or real data, respective stored is in the storage location of its corresponding file directory or real data.
Wherein, which can also be with the metadata of the Hierarchical File catalogue or real data together to network What hard disc request obtained.
Alternatively possible realization method is:
The each Hierarchical File catalogue or real data of the corresponding file data of the target data are asked to network hard disc Metadata;
Receive the difference for the storage organization tissue according to different levels file directory or real data that network hard disc is sent The metadata of file directory or the metadata of real data;
Store the different metadata of file directory or the metadata of real data.
After sending request to network hard disc, network hard disc determines each level text of the corresponding file data of bid data The metadata of part catalogue or real data, and organize difference according to the storage organization of different levels file directory or real data The metadata of file directory or real data.
To the metadata of each Hierarchical File catalogue of acquired network hard disc feedback or the metadata of real data Be to be organized according to storage organization, to directly store different file directorys metadata or real data metadata i.e. It can.
Step 205:According to the metadata of each Hierarchical File catalogue or the metadata of real data, the mesh is obtained Mark data.
In the metadata for inquiring the metadata or real data that are stored with each Hierarchical File catalogue, or it is hard to network Disk the acquisition request metadata of each Hierarchical File catalogue or the metadata of real data, you can with according to these yuan of number According to network hard disc acquisition request target data.
Since the metadata of each Hierarchical File catalogue or the metadata of real data have been corresponded to according to storage organization, then The storage location in file data of the target data in network hard disc can be therefrom found according to the storage organization, to evidence This can only access a primary network hard disk and can correspond to and get target data.
Wherein, a kind of possible realization method of the step 205 can be specifically:
First, the corresponding file destination catalogue of the target data is determined.
Secondly, according to the metadata of each Hierarchical File catalogue, the document directory structure of the file data is determined.
Then, according to the document directory structure and the file destination catalogue, you can obtain the target data.
The file destination catalogue corresponding to target data can be determined according to the metadata of target data.According to acquired Each level file directory metadata, the document directory structure of the corresponding file data of target data can be obtained, In, it, can be straight since metadata is stored according to the storage organization of the file directory of different levels or real data Connect the document directory structure for determining file data;According to document directory structure and file destination catalogue, to can determine that Position of the file destination catalogue in document directory structure, and then accordingly can be to acquisition request of network hard disc to the target Data.
In the present embodiment, when getting the data access request to access to target data, whether inquiry is stored with The metadata of the file directory of each level of the corresponding file data of target data or the member of the real data under file directory Data once ask the file for obtaining each level of the corresponding file data of target data to network hard disc if not having Metadata and the storage of the metadata or the real data under file directory of catalogue, to the text of each level according to the acquisition The metadata of part catalogue or the metadata of real data, it may be determined that go out the information such as the metadata of target data, when to this document When data in data are accessed again, then stored metadata can be directly inquired, be not necessarily to acquisition request, further subtract Lack network access times, improves the efficiency of data access.
Fig. 3 is a kind of structural schematic diagram of data-acquisition system embodiment of the application 1, which may include:
Acquisition request module 301, for obtaining data access request.
Data determining module 302, for according to the data access request, determining the target data that request accesses.
The file stored in network hard disc includes file data and metadata.File data and metadata are file system Managed two kinds storage data modes, file data include file directory and real data, metadata be for managing and The data of constituent act data, metadata may include data attribute of file data, such as title, size, type etc..
When carrying out data access, which can carry the title of target data, should so as to foundation Data access request determines the target data desired access to.
The data access request can be specifically that the virtual file received accesses the data access request of system, you can with root The data access request request that system is accessed according to virtual file accesses network hard disc.
First data acquisition module 303 is used for the corresponding file data of target data described in network hard disc acquisition request Each Hierarchical File catalogue metadata or real data metadata, and store.
Storage of the file data in network hard disc has certain layer depth, is deposited according to certain bibliographic structure Storage.It is acquisition request when carrying out network access to network hard disc after getting network access request in the embodiment of the present application The metadata of the metadata of each Hierarchical File catalogue of file data or real data where the target data, and can carry out Storage, rather than the only metadata of the metadata of one layer of file directory of access or real data.
Second data acquisition module 304, for according to the metadata of each Hierarchical File catalogue or real data Metadata obtains the target data.
Wherein, in one possible implementation, second data acquisition module 304 may include:
Catalogue determining module 3041, for determining the corresponding file destination catalogue of the target data;
Structure determination module 3042 determines the number of files for the metadata according to each Hierarchical File catalogue According to document directory structure;
Second data acquisition submodule 3043, for the member according to the document directory structure and the target data Data obtain the target data.
The file destination catalogue corresponding to target data can be determined according to the metadata of target data.According to acquired Each level file directory metadata, the document directory structure of the corresponding file data of target data can be obtained;Root According to document directory structure and file destination catalogue, to can determine that position of the file destination catalogue in document directory structure It sets, and then accordingly can be to acquisition request of network hard disc to the target data.
In the present embodiment, when data access system gets the data access request to access to target data, to Network hard disc once asks to obtain the metadata or text of the file directory of each level of the corresponding file data of target data The metadata of real data under part catalogue, and store, to the metadata of the file directory of each level according to the acquisition Or the metadata of real data, it may be determined that go out the information such as the metadata of target data, so as to be accessed by primary network The target data can be got, without successively being accessed successively, reduces access times, to improve data access Efficiency.
Fig. 4 is a kind of structural schematic diagram of data access system embodiment of the application 2, which may include acquisition request Module 401, data determining module 402, data inquiry module 403, the first data acquisition module 404 and the second data acquisition mould Block 405, wherein
The acquisition request module 401, for obtaining data access request;
The data determining module 402, for according to the data access request, determining the target data that request accesses;
Whether the data inquiry module 403 stores each of the corresponding file data of the target data for inquiring The metadata of Hierarchical File catalogue or the metadata of real data, if it is not, first data acquisition module 405 is then triggered, if It is then to trigger second data acquisition module 406.
First data acquisition module 405 is used for the corresponding file data of target data described in network hard disc acquisition request Each Hierarchical File catalogue metadata or real data metadata and storage.
Wherein, a kind of possible realization method, referring to Fig. 5, first data acquisition module may include:
Data acquisition submodule 501 is used for the every of the corresponding file data of target data described in network hard disc acquisition request The metadata of one Hierarchical File catalogue or real data.
First memory module 502 is used for by the metadata of each Hierarchical File catalogue or real data, according to difference The storage organization of Hierarchical File catalogue or real data is stored.
After sending request to network hard disc, by each of the corresponding file data of the target data of network hard disc return The metadata of Hierarchical File catalogue or real data is carried out according to the storage organization of different levels file directory or real data Storage, i.e., store acquired metadata according to the storage organization of data in network hard disc, i.e., each file directory The metadata of metadata or real data, respective stored is in the storage location of its corresponding file directory or real data.
Wherein, which can also be with the metadata of the Hierarchical File catalogue or real data together to network What hard disc request obtained.
Alternatively possible realization method, referring to Fig. 6, second data acquisition module may include:
Request sending module 601, each layer for asking the corresponding file data of the target data to network hard disc The metadata of grade file directory or real data;
Data reception module 602 receives the depositing according to different levels file directory or real data that network hard disc is sent The different file directorys of storage structure tissue or the metadata of real data;
Second memory module 603, the metadata for storing the different file directorys or real data.
After sending request to network hard disc, network hard disc determines each level text of the corresponding file data of bid data The metadata of part catalogue or real data, and organize difference according to the storage organization of different levels file directory or real data The metadata of file directory or real data.
To the metadata of each Hierarchical File catalogue of the network hard disc feedback acquired in system or the member of real data Data are to be organized according to storage organization, to directly store the metadata of different file directorys or the metadata of real data .
Second data acquisition module 405, for according to the metadata of each Hierarchical File catalogue or real data Metadata obtains the target data.
In the metadata for inquiring the metadata or real data that are stored with each Hierarchical File catalogue, or it is hard to network Disk the acquisition request metadata of each Hierarchical File catalogue or the metadata of real data, you can with according to these yuan of number According to network hard disc acquisition request target data.
Since the metadata of each Hierarchical File catalogue or the metadata of real data have been corresponded to according to storage organization, then The storage location in file data of the target data in network hard disc can be therefrom found according to the storage organization, to evidence This can only access a primary network hard disk and can correspond to and get target data.
Wherein, as a kind of possible realization method, second data acquisition module 405 may include:
Catalogue determining module 4051, for determining the corresponding file destination catalogue of the target data.
Structure determination module 4052 determines the number of files for the metadata according to each Hierarchical File catalogue According to document directory structure.
It, can since metadata is stored according to the storage organization of the file directory of different levels or real data Directly to determine the document directory structure of file data according to the storage organization.
Second data acquisition submodule 4053, for the member according to the document directory structure and the target data Data obtain the target data.
In the present embodiment, it when data access system gets the data access request to access to target data, looks into Under the metadata or file directory of asking the file directory for each level for whether being stored with the corresponding file data of target data The metadata of real data once asks to obtain the every of the corresponding file data of target data to network hard disc if not having Metadata and the storage of the metadata or the real data under file directory of the file directory of one level, to according to the acquisition The metadata of the file directory of each level or the metadata of real data, it may be determined that go out the letters such as the metadata of target data Breath, when being accessed again the data in this document data, then can directly inquire stored metadata, without request It obtains, further reduces network access times, improve the efficiency of data access.
Data access system described in the embodiment of the present application is desirably integrated into virtual file and accesses system in practical applications In system, individual entity can be used as to be connected with virtual file access system and network hard disc.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (12)

1. a kind of data access method, which is characterized in that including:
Obtain data access request;
According to the data access request, the target data that request accesses is determined;
To the corresponding file data of target data described in network hard disc acquisition request each Hierarchical File catalogue metadata and The metadata of real data, and store;
According to the metadata of the metadata and real data of each Hierarchical File catalogue, the attribute of the target data is determined Information includes to target data, the attribute information described in acquisition request of the network hard disc according to the attribute information Storage location.
2. according to the method described in claim 1, it is characterized in that, described to target data pair described in network hard disc acquisition request Before the metadata of each Hierarchical File catalogue and the metadata of real data of the file data answered, the method further includes:
Whether inquiry stores the metadata and actual number of each Hierarchical File catalogue of the corresponding file data of the target data According to metadata;
If not, executing each level text to the corresponding file data of target data described in network hard disc acquisition request again The step of metadata of the metadata of part catalogue and real data;
If so, according to the metadata of the metadata and real data of each Hierarchical File catalogue, the number of targets is obtained According to.
3. according to the method described in claim 1, it is characterized in that, described to target data pair described in network hard disc acquisition request The metadata of each the Hierarchical File catalogue and real data of the file data answered, and store and include:
To the corresponding file data of target data described in network hard disc acquisition request each Hierarchical File catalogue metadata and The metadata of real data;
By the metadata of the metadata and real data of each Hierarchical File catalogue, according to different levels file directory and reality The storage organization of border data is stored.
4. according to the method described in claim 1, it is characterized in that, described to target data pair described in network hard disc acquisition request The metadata of each the Hierarchical File catalogue and real data of the file data answered, and store and include:
The metadata and reality of each Hierarchical File catalogue of the corresponding file data of the target data are asked to network hard disc The metadata of data;
Receive the different files for the storage organization tissue according to different levels file directory and real data that network hard disc is sent The metadata of catalogue and real data;
Store the different metadata of file directory and the metadata of real data.
5. according to the method described in claim 1, it is characterized in that, according to the metadata and reality of each Hierarchical File catalogue The metadata of border data, obtaining the target data includes:
Determine the corresponding file destination catalogue of the target data;
According to the metadata of each Hierarchical File catalogue, the document directory structure of the file data is determined;
According to the document directory structure and the file destination catalogue, the target data is obtained.
6. according to the method described in claim 1, it is characterized in that, the acquisition data access request includes:
Obtain the data access request that Virtual File System is sent.
7. according to the method described in claim 1, it is characterized in that, the metadata includes target data attribute.
8. a kind of data access system, which is characterized in that including:
Acquisition request module, for obtaining data access request;
Data determining module, for according to the data access request, determining the target data that request accesses;
First data acquisition module, for each layer to the corresponding file data of target data described in network hard disc acquisition request The grade metadata of file directory and the metadata of real data, and store;
Second data acquisition module is used for the metadata of the metadata and real data according to each Hierarchical File catalogue, The attribute information for determining the target data, according to the attribute information to target described in acquisition request of the network hard disc Data, the attribute information include storage location.
9. system according to claim 8, which is characterized in that further include:
Data inquiry module, for inquiring each Hierarchical File catalogue for whether storing the corresponding file data of the target data Metadata and real data metadata, if it is not, then triggering first data acquisition module, if it is, triggering institute State the second data acquisition module.
10. system according to claim 8, which is characterized in that first data acquisition module includes:
Data acquisition submodule, for each level to the corresponding file data of target data described in network hard disc acquisition request The metadata of file directory and real data;
First memory module is used for the metadata of each the Hierarchical File catalogue and real data, according to different levels text The storage organization of part catalogue and real data is stored.
11. system according to claim 8, which is characterized in that first data acquisition module includes:
Request sending module, each Hierarchical File mesh for asking the corresponding file data of the target data to network hard disc The metadata of record and the metadata of real data;
Data reception module:Receive the storage organization group according to different levels file directory and real data that network hard disc is sent The metadata of the metadata and real data of the different file directorys knitted;
Second memory module, for storing the different metadata of file directory and the metadata of real data.
12. system according to claim 8, which is characterized in that second data acquisition module includes:
Catalogue determining module, for determining the corresponding file destination catalogue of the target data;
Structure determination module determines the file of the file data for the metadata according to each Hierarchical File catalogue Bibliographic structure;
Second data acquisition submodule, for according to the document directory structure and the file destination catalogue, described in acquisition Target data.
CN201310074040.6A 2013-03-08 2013-03-08 Data access method and system Active CN104038526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310074040.6A CN104038526B (en) 2013-03-08 2013-03-08 Data access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310074040.6A CN104038526B (en) 2013-03-08 2013-03-08 Data access method and system

Publications (2)

Publication Number Publication Date
CN104038526A CN104038526A (en) 2014-09-10
CN104038526B true CN104038526B (en) 2018-10-12

Family

ID=51469115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310074040.6A Active CN104038526B (en) 2013-03-08 2013-03-08 Data access method and system

Country Status (1)

Country Link
CN (1) CN104038526B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076031A (en) * 2006-12-06 2007-11-21 腾讯科技(深圳)有限公司 Method for applying network hard disk
CN101510219A (en) * 2009-03-31 2009-08-19 成都市华为赛门铁克科技有限公司 File data accessing method, apparatus and system
CN101576854A (en) * 2009-04-03 2009-11-11 成都市华为赛门铁克科技有限公司 File access method, device and system
CN102419770A (en) * 2011-11-23 2012-04-18 中兴通讯股份有限公司 File sharing system, method for realizing file sharing, and file index service equipment
CN102523301A (en) * 2011-12-26 2012-06-27 深圳市创新科信息技术有限公司 Method for caching data on client in cloud storage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076031A (en) * 2006-12-06 2007-11-21 腾讯科技(深圳)有限公司 Method for applying network hard disk
CN101510219A (en) * 2009-03-31 2009-08-19 成都市华为赛门铁克科技有限公司 File data accessing method, apparatus and system
CN101576854A (en) * 2009-04-03 2009-11-11 成都市华为赛门铁克科技有限公司 File access method, device and system
CN102419770A (en) * 2011-11-23 2012-04-18 中兴通讯股份有限公司 File sharing system, method for realizing file sharing, and file index service equipment
CN102523301A (en) * 2011-12-26 2012-06-27 深圳市创新科信息技术有限公司 Method for caching data on client in cloud storage

Also Published As

Publication number Publication date
CN104038526A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN101692229B (en) Self-adaptive multilevel cache system for three-dimensional spatial data based on data content
CN103870202B (en) A kind of distributed storage method and system of block device
CN103383653B (en) Cloud resource management and dispatching method and system
CN104618482B (en) Access method, server, conventional memory device, the system of cloud data
KR100825721B1 (en) System and method of time-based cache coherency maintenance in user file manager of object-based storage system
CN102255962B (en) Distributive storage method, device and system
CN103678523B (en) Distributed cache cache data access methods and device
CN103338242B (en) A kind of mixed cloud storage system based on multi-level buffer and method
CN103812934B (en) Remote sensing data publishing method based on cloud storage system
RU2012155862A (en) ONLINE SURVEILLANCE CONTROLS USING EXTENDED SIGNS OF THE CATALOG
CN103067461A (en) Metadata management system of document and metadata management method thereof
CN105138678A (en) Reading and distributing method and system for map tile data
CN108363553A (en) A kind of data processing method, apparatus and system
CN105930345A (en) Hierarchical indexing method based on distributed real-time database system (DRTDBS)
CN106911743A (en) Small documents write polymerization, read polymerization and system and client
CN109542861A (en) File management method, device and system
CN106973125A (en) Domain name mapping implementation method and device
CN107679420A (en) A kind of authority setting method and system based on distributed file system
CN104182487A (en) Unified storage method supporting various storage modes
CN109299111A (en) A kind of metadata query method, apparatus, equipment and computer readable storage medium
CN102833331A (en) Cloud storage system and metadata writing-in method and metadata reading method thereof
CN102891872A (en) Method and system for storing and searching data in peer to peer (P2P) network
CN108268614A (en) A kind of distribution management method of forest reserves spatial data
CN103544300B (en) A kind of extensible storage index structure in cloud environment realize method
CN104205730B (en) Network element data access method, Virtual NE, network management server and NMS

Legal Events

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