CN112347046B - Method for acquiring creation time of file in distributed system - Google Patents

Method for acquiring creation time of file in distributed system Download PDF

Info

Publication number
CN112347046B
CN112347046B CN202110021114.4A CN202110021114A CN112347046B CN 112347046 B CN112347046 B CN 112347046B CN 202110021114 A CN202110021114 A CN 202110021114A CN 112347046 B CN112347046 B CN 112347046B
Authority
CN
China
Prior art keywords
file
metadata
virtual
information
directory
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
CN202110021114.4A
Other languages
Chinese (zh)
Other versions
CN112347046A (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.)
Beijing Dongfangtong Software Co ltd
Beijing Tongtech Co Ltd
Original Assignee
Beijing Dongfangtong Software Co ltd
Beijing Tongtech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dongfangtong Software Co ltd, Beijing Tongtech Co Ltd filed Critical Beijing Dongfangtong Software Co ltd
Priority to CN202110021114.4A priority Critical patent/CN112347046B/en
Publication of CN112347046A publication Critical patent/CN112347046A/en
Application granted granted Critical
Publication of CN112347046B publication Critical patent/CN112347046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Abstract

The invention provides a method for acquiring the creation time of a file in a distributed system, which comprises the following steps: establishing a metadata virtual file system corresponding to the acquired target file through a metadata server; sending a file request downloading command through a client, and acquiring a target file in the metadata virtual file system; confirming the storage information of the file according to the metadata in the file; confirming the creation time of the file according to the storage information of the file; and displaying the creation time of the file through the client screen. The invention solves the problem that the creation time of the file can not be directly acquired from the distributed system.

Description

Method for acquiring creation time of file in distributed system
Technical Field
The invention relates to the technical field of file processing, in particular to a method for acquiring the creation time of a file in a distributed system.
Background
Currently, Distributed File System (DFS) means that physical storage resources managed by a File System are not necessarily directly connected to a local node, but are connected to a node (which can be simply understood as a computer) through a computer network; or a complete hierarchical file system formed by combining several different logical disk partitions or volume labels. The distributed file system consists of a client, a Metadata server and a data server, wherein the Metadata server is internally provided with the data server for storing Metadata (Metadata) corresponding to files, the Metadata (Metadata) is also called intermediate data and relay data, is data (data about data) for describing data, is mainly information for describing data attribute (property), and is used for supporting functions such as indicating storage positions, history data, resource searching, file recording and the like; the metadata includes the creation time of the file, and the client needs to expose the file downloaded from the distributed file system to the creation time of the file, but the distributed file system does not save the creation time of the file.
Disclosure of Invention
The invention provides a method for acquiring the creation time of a file in a distributed system, which is used for solving the problem that the creation time of the file in the distributed system cannot be directly acquired at present.
A method for acquiring the creation time of a file in a distributed system comprises the following steps:
establishing a metadata virtual file system corresponding to the acquired target file through a metadata server;
sending a target file request downloading command through a client, and acquiring a target file in the metadata virtual file system;
confirming the storage information of the target file according to the metadata in the target file;
confirming the creation time of the target file according to the storage information of the target file;
and displaying the creation time of the target file through the client screen.
As an embodiment of the present invention: the method for establishing the virtual file system for acquiring the metadata corresponding to the target file through the metadata server comprises the following steps:
step 1: acquiring metadata corresponding to the target file according to the metadata server;
step 2: dividing the metadata corresponding to the target file into file metadata and folder metadata;
and step 3: storing the file metadata into the corresponding folder metadata according to preprocessing, and determining directory path information;
and 4, step 4: and establishing the metadata virtual file system through the directory path information.
As an embodiment of the present invention: before the establishing of the metadata virtual file system corresponding to the acquired target file through the metadata server, the method further includes:
setting a command interface on the metadata server, and receiving a metadata uploading command of the metadata virtual file system;
and sending a metadata uploading command to the command interface through the metadata server, wherein the metadata uploading command is used for the virtual file system to acquire metadata.
As an embodiment of the present invention: the storing the file metadata into the corresponding folder metadata according to preprocessing to determine directory path information includes:
determining virtual file information corresponding to the target file through the metadata;
the virtual file information includes: virtual file ID, file name, creation time, last modification time, whether deleted, whether directory, whether transfer completed, file size, file version number, parent ID, and description attribute value;
determining a directory and the file metadata by adding a flag bit of whether the metadata is a directory or not in the metadata;
determining the directory hierarchy of the file metadata according to the father node ID in the virtual file information;
and determining the directory path information according to the directory hierarchy.
As an embodiment of the present invention: determining the directory hierarchy of the file metadata according to the parent node ID in the virtual file information, wherein the determining comprises:
determining the ID of a superior directory according to the ID of the father node of the file;
determining subdirectories of each directory according to the ID of the upper-level directory;
determining the hierarchical relationship between each directory according to the subdirectories of each directory;
and determining the directory hierarchy of the file metadata according to the hierarchical relationship among all the directories.
As an embodiment of the present invention: the sending a file request downloading command through the client and acquiring the target file in the metadata virtual file system comprises the following steps:
setting a command interface on the metadata virtual file system;
setting a verification interface on the metadata virtual file system;
when the client sends a file request downloading command, the metadata virtual file system sends a user account verification file to the client and receives a user account verification password of a user;
when the client inputs the user account number verification password to be correct, the client sends the target file request downloading command to the command interface, and the target file request downloading command is used for outputting required metadata to the client; wherein the content of the first and second substances,
and when the client inputs the user account verification password more than three times, the client cannot send the target file request downloading command to the command interface.
As an embodiment of the present invention: the confirming the creation time of the file according to the storage information of the file comprises:
determining size numerical value information, creation time information, modification time information, access time information and description attribute value information of a file through metadata in the file;
and preprocessing the numerical value information of the file, the creating time information of the file, the modifying time information of the file, the access time information of the file and the description attribute value information of the file to be used as the storage information of the file.
Preprocessing the storage information of the file to determine attribute list information of the file;
and determining the creation time of the file according to the attribute list information of the file.
As an embodiment of the present invention: after the creating time of the file is displayed through the client screen, the method further includes:
when the creation time of the file is displayed through the client screen, the client screen is shot according to preprocessing, and shot picture information is determined;
storing the screen shot picture information into a preset printing file, and confirming the printing file;
and printing out the file creation time according to the printing file.
As an embodiment of the present invention: the sending a target file request downloading command through the client and acquiring the target file in the metadata virtual file system comprises the following steps:
step 1: constructing metadata identification according to the target file request download command
Figure 970670DEST_PATH_IMAGE001
Figure 791996DEST_PATH_IMAGE002
Wherein the content of the first and second substances,
Figure 937806DEST_PATH_IMAGE003
an identification function representing the metadata;
Figure 844582DEST_PATH_IMAGE004
indicating the target file requesting download command
Figure 754946DEST_PATH_IMAGE005
Instruction characteristics of each virtual file;
Figure 430777DEST_PATH_IMAGE006
a format decision coefficient representing metadata;
Figure 13069DEST_PATH_IMAGE007
a content determination coefficient indicating metadata;
Figure 141562DEST_PATH_IMAGE008
Figure 834711DEST_PATH_IMAGE009
representing metadata virtual file system commons
Figure 630629DEST_PATH_IMAGE009
A virtual file;
step 2: identification according to the metadata
Figure 383821DEST_PATH_IMAGE010
And constructing a judgment model of the metadata:
Figure 999610DEST_PATH_IMAGE011
wherein the content of the first and second substances,
Figure 994986DEST_PATH_IMAGE004
indicating the target file requesting download command
Figure 645410DEST_PATH_IMAGE005
The instruction characteristics of the individual virtual files,
Figure 569504DEST_PATH_IMAGE012
Figure 938168DEST_PATH_IMAGE013
representing metadata virtual file system
Figure 973120DEST_PATH_IMAGE005
File coefficients of the individual virtual files; the above-mentioned
Figure 478051DEST_PATH_IMAGE014
Representing metadata virtual file system
Figure 573046DEST_PATH_IMAGE015
The probability of each virtual file being a target file,
Figure 163427DEST_PATH_IMAGE016
Figure 503535DEST_PATH_IMAGE017
when in use
Figure 128551DEST_PATH_IMAGE018
When is shown as
Figure 394448DEST_PATH_IMAGE015
Each virtual file is a target file;
when said
Figure 472125DEST_PATH_IMAGE019
When is shown as
Figure 848880DEST_PATH_IMAGE015
The virtual file is not a target file;
and step 3: and determining a target file in the metadata virtual file system according to the judgment model of the metadata.
The invention has the beneficial effects that: the invention acquires the metadata in the distributed system by establishing a virtual file system, sends the acquired metadata file to the client, and the client can directly acquire the creation time of the corresponding file through the metadata file and directly download the metadata of the metadata server in the distributed system without modifying the information of the metadata, thereby obtaining the correct creation time of the file.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a method for obtaining a file creation time in a distributed system according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example 1:
as shown in the attached figure 1 of the drawings,
a method for acquiring the creation time of a file in a distributed system comprises the following steps:
step 100: establishing a metadata virtual file system corresponding to the acquired target file through a metadata server;
step 101: sending a target file request downloading command through a client, and acquiring a target file in the metadata virtual file system;
step 102: confirming the storage information of the target file according to the metadata in the target file;
step 103: confirming the creation time of the target file according to the storage information of the target file;
step 104: and displaying the creation time of the target file through the client screen.
The principle of the technical scheme is as follows: the invention sets up an upload command interface from a metadata server in a distributed system, sends a metadata upload command in the metadata server to the command interface, the metadata upload command is used for acquiring required metadata, divides the acquired metadata into file metadata and folder metadata by the acquired metadata, then determines a virtual file ID, a file name, a creation time, a last modification time, whether the file is deleted, whether the file is a directory, whether the transmission is completed, a file size, a file version number, a father node ID and a description attribute value corresponding to a target file according to the acquired metadata, determines the directory and file metadata by adding a flag bit of whether the file is the directory in the acquired metadata, determines the directory hierarchy of the file metadata by the acquired father node ID, determines directory path information by the directory hierarchy, establishing a metadata virtual file system according to directory path information, then sending a file request downloading command by a user through a client, setting a command interface on the metadata virtual file system before the file request downloading command is sent to the command interface, wherein the file request downloading command is used for sending a file required by the user to the client in the metadata virtual file system, the file is folder metadata and contains file metadata corresponding to the file required by the user, when the client downloads the file, the client determines size numerical value information, creation time information, modification time information, access time information and description attribute value information of the file according to the metadata in the file, and the size numerical value information, the creation time information and the modification time information of the file are obtained, The access time information of the file and the description attribute value information of the file are used as storage information of the file, the creation time of the file can be seen by checking the attribute of the file by a user, then the creation time displayed on a client screen is subjected to screen capture, a captured picture is put into a PDF file and printed by a printer, and a creation time drawing of the file is obtained.
The beneficial effects of the above technical scheme are that: the invention acquires the metadata in the distributed system by establishing a virtual file system, sends the acquired metadata file to the client, and the client can directly acquire the creation time of the corresponding file through the metadata file and directly download the metadata of the metadata server in the distributed system without modifying the information of the metadata, thereby obtaining the correct creation time of the file.
In one embodiment: the establishing of the metadata virtual file system corresponding to the acquired target file through the metadata server comprises the following steps:
acquiring metadata corresponding to the target file according to the metadata server;
dividing the metadata corresponding to the target file into file metadata and folder metadata;
storing the file metadata into the corresponding folder metadata according to preprocessing, and determining directory path information;
and establishing the metadata virtual file system through the directory path information.
The principle of the technical scheme is as follows: the invention divides the metadata acquired from the metadata server into file metadata and folder metadata, puts the file metadata into the folder metadata, obtains directory path information through the stored path, and establishes a metadata virtual file system according to the directory path information.
The beneficial effects of the above technical scheme are that: the invention stores the metadata in the distributed system by establishing the metadata virtual file system, can realize the real storage of the metadata, and can ensure the correctness of the metadata information by directly downloading and acquiring the metadata through the client by a user.
In one embodiment:
before the establishing of the metadata virtual file system corresponding to the acquired target file through the metadata server, the method further includes:
setting a command interface on the metadata server, and receiving a metadata uploading command of the metadata virtual file system;
and sending a metadata uploading command to the command interface through the metadata server, wherein the metadata uploading command is used for the virtual file system to acquire metadata.
The principle of the technical scheme is as follows: the invention directly sets a command interface on the metadata server, the metadata virtual file system sends the metadata acquisition command to the command interface, and then the metadata server sends the metadata to the metadata virtual file system.
The beneficial effects of the above technical scheme are that: according to the invention, the metadata can be directly acquired by directly setting the command interface mode on the metadata server, so that the metadata acquisition efficiency is improved.
In one embodiment: the storing the file metadata into the corresponding folder metadata according to preprocessing to determine directory path information includes:
determining a virtual file ID, a file name, creation time, last modification time, deletion, directory, transfer completion, file size, file version number, parent node ID and description attribute value corresponding to the target file through the metadata;
determining a directory and the file metadata by adding a flag bit of whether the metadata is a directory or not in the metadata;
determining the directory hierarchy of the file metadata according to the father node ID;
and determining the directory path information according to the directory hierarchy.
The principle of the technical scheme is as follows: the method determines the virtual file ID, the file name, the creation time, the last modification time, whether the virtual file is deleted, whether the virtual file is a directory, whether the virtual file is transmitted, the file size, the file version number, the father node ID and the description attribute value corresponding to the target file through the acquired metadata, determines the directory and the file metadata by adding a flag bit of whether the virtual file is the directory to the acquired metadata, determines the directory hierarchy of the file metadata through the acquired father node ID, and determines the directory path information through the directory hierarchy.
The beneficial effects of the above technical scheme are that: the invention determines the directory or folder metadata and the file metadata in the metadata by adding the flag bit of whether the acquired metadata is the directory or not, and can quickly confirm the directory path information.
In one embodiment: the determining the directory hierarchy of the file metadata according to the parent node ID includes:
determining the ID of a superior directory according to the ID of the father node of the file;
determining subdirectories of each directory according to the ID of the upper-level directory;
determining the hierarchical relationship between each directory according to the subdirectories of each directory;
and determining the directory hierarchy of the file metadata according to the hierarchical relationship among all the directories.
In one embodiment:
the sending a file request downloading command through the client and acquiring the target file in the metadata virtual file system comprises the following steps:
setting a command interface on the metadata virtual file system;
setting a verification interface on the metadata virtual file system;
when the client sends a file request downloading command, the metadata virtual file system sends a user account verification file to the client and receives a user account verification password of a user;
when the client inputs the user account number verification password to be correct, the client sends the target file request downloading command to the command interface, and the target file request downloading command is used for outputting required metadata to the client; wherein the content of the first and second substances,
and when the client inputs the user account verification password more than three times, the client cannot send the target file request downloading command to the command interface. The principle of the technical scheme is as follows: according to the invention, a command interface and a verification interface are directly arranged on the metadata virtual file system, a user inputs a correct account number through a client for verification and then sends a file downloading request command to the command interface, and then the metadata virtual file system sends a file required by the user to the client.
The beneficial effects of the above technical scheme are that: according to the invention, a command interface mode is directly set on the metadata virtual file system, so that a required file can be directly acquired, the file acquisition efficiency of a user is improved, and the security of the acquired file is improved by setting user account verification.
In one embodiment: the confirming the creation time of the file according to the storage information of the file comprises:
determining size numerical value information, creation time information, modification time information, access time information and description attribute value information of a file through metadata in the file;
and preprocessing the numerical value information of the size of the file, the creating time information of the file, the modifying time information of the file, the access time information of the file and the description attribute value information of the file to be used as the storage information of the file.
Preprocessing the storage information of the file to determine attribute list information of the file;
and determining the creation time of the file according to the attribute list information of the file.
The principle of the technical scheme is as follows: the method determines the size numerical information, the creation time information, the modification time information, the access time information and the description attribute value information of the files through the metadata in the files, takes the size numerical information, the creation time information, the modification time information, the access time information and the description attribute value information of the files as the storage information of the files, and obtains the creation time of the files by checking the attribute list of the files through a user.
The beneficial effects of the above technical scheme are that: the invention can ensure the real validity of the stored information by checking the stored information of the file directly obtained from the metadata virtual file system.
In one embodiment: after the creating time of the file is displayed through the client screen, the method further includes:
when the creation time of the file is displayed through the client screen, the client screen is shot according to preprocessing, and shot picture information is determined;
storing the screen shot picture information into a preset printing file, and confirming the printing file;
and printing out the file creation time according to the printing file.
The principle of the technical scheme is as follows: according to the invention, the user checks the attribute of the file to see the creation time of the file, then the creation time displayed on the screen of the client is subjected to screen capture, the captured picture is put into the PDF file and printed by the printer to obtain the creation time drawing of the file.
The beneficial effects of the above technical scheme are that: according to the invention, the creation time screenshot of the file in the PDF format is printed by paper, so that the creation time information of the file is stored in a paper mode, the creation time of the file can be checked more intuitively, and the computer and other equipment can be helped to reduce the occupation of the memory.
Preferably:
the sending a target file request downloading command through the client and acquiring the target file in the metadata virtual file system comprises the following steps:
step 1: constructing metadata identification according to the target file request download command
Figure 328403DEST_PATH_IMAGE001
Figure 765200DEST_PATH_IMAGE002
Wherein the content of the first and second substances,
Figure 330174DEST_PATH_IMAGE003
an identification function representing the metadata;
Figure 9155DEST_PATH_IMAGE004
indicating the target file requesting download command
Figure 608763DEST_PATH_IMAGE005
Instruction characteristics of each virtual file;
Figure 216462DEST_PATH_IMAGE006
a format decision coefficient representing metadata;
Figure 3152DEST_PATH_IMAGE007
a content determination coefficient indicating metadata;
Figure 987289DEST_PATH_IMAGE008
Figure 441404DEST_PATH_IMAGE009
representing metadata virtual file system commons
Figure 220004DEST_PATH_IMAGE009
A virtual file;
step 2: identification according to the metadata
Figure 493991DEST_PATH_IMAGE010
And constructing a judgment model of the metadata:
Figure 812977DEST_PATH_IMAGE011
wherein the content of the first and second substances,
Figure 826325DEST_PATH_IMAGE004
representing a download request command for a target fileMaking a best of
Figure 572564DEST_PATH_IMAGE005
The instruction characteristics of the individual virtual files,
Figure 599426DEST_PATH_IMAGE012
Figure 659786DEST_PATH_IMAGE013
representing metadata virtual file system
Figure 88494DEST_PATH_IMAGE005
File coefficients of the individual virtual files; the above-mentioned
Figure 208896DEST_PATH_IMAGE014
Representing metadata virtual file system
Figure 457475DEST_PATH_IMAGE015
The probability of each virtual file being a target file,
Figure 55947DEST_PATH_IMAGE016
Figure 837696DEST_PATH_IMAGE017
when in use
Figure 129000DEST_PATH_IMAGE018
When is shown as
Figure 864874DEST_PATH_IMAGE015
Each virtual file is a target file;
when said
Figure 532616DEST_PATH_IMAGE019
When is shown as
Figure 670336DEST_PATH_IMAGE015
The virtual file is not a target file;
and step 3: and determining a target file in the metadata virtual file system according to the judgment model of the metadata.
The principle of the technical scheme is as follows: according to a request downloading command sent by a client, the method identifies the metadata in the virtual file system by generating an identification function based on the downloading command, and belongs to a screening function, so that the identification performance of the downloading command is calculated to finally obtain the identification function.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A method for obtaining the creation time of a file in a distributed system is characterized by comprising the following steps:
establishing a metadata virtual file system corresponding to the acquired target file through a metadata server;
sending a target file request downloading command through a client, and acquiring a target file in the metadata virtual file system;
confirming the storage information of the target file according to the metadata in the target file;
confirming the creation time of the target file according to the storage information of the target file;
displaying the creation time of the target file through the client screen;
the method for establishing the metadata virtual file system corresponding to the acquired target file through the metadata server comprises the following steps:
step 1: acquiring metadata corresponding to the target file according to the metadata server;
step 2: dividing the metadata corresponding to the target file into file metadata and folder metadata;
and step 3: storing the file metadata into the corresponding folder metadata according to preprocessing, and determining directory path information;
and 4, step 4: establishing the metadata virtual file system through the directory path information;
the storing the file metadata into the corresponding folder metadata according to preprocessing to determine directory path information includes:
determining virtual file information corresponding to the target file through the metadata;
the virtual file information includes: virtual file ID, file name, creation time, last modification time, whether deleted, whether directory, whether transfer completed, file size, file version number, parent ID, and description attribute value;
determining a directory and the file metadata by adding a flag bit of whether the metadata is a directory or not in the metadata;
determining the directory hierarchy of the file metadata according to the father node ID in the virtual file information;
determining the directory path information according to the directory hierarchy;
the sending a target file request downloading command through the client and acquiring the target file in the metadata virtual file system comprises the following steps:
step 1: constructing metadata identification according to the target file request download command
Figure 549800DEST_PATH_IMAGE001
Figure 843378DEST_PATH_IMAGE002
Wherein the content of the first and second substances,
Figure 493802DEST_PATH_IMAGE003
an identification function representing the metadata;
Figure 916431DEST_PATH_IMAGE004
indicating the target file requesting download command
Figure 753937DEST_PATH_IMAGE005
Instruction characteristics of each virtual file;
Figure 54469DEST_PATH_IMAGE006
a format decision coefficient representing metadata;
Figure 824979DEST_PATH_IMAGE007
a content determination coefficient indicating metadata;
Figure 919973DEST_PATH_IMAGE008
Figure 244776DEST_PATH_IMAGE009
representing metadata virtual file system commons
Figure 83419DEST_PATH_IMAGE009
A virtual file;
step 2: identification according to the metadata
Figure 708435DEST_PATH_IMAGE010
And constructing a judgment model of the metadata:
Figure 475796DEST_PATH_IMAGE011
wherein the content of the first and second substances,
Figure 350211DEST_PATH_IMAGE004
representing target file requestsIn the download command
Figure 726966DEST_PATH_IMAGE005
The instruction characteristics of the individual virtual files,
Figure 206489DEST_PATH_IMAGE012
Figure 643286DEST_PATH_IMAGE013
representing metadata virtual file system
Figure 942681DEST_PATH_IMAGE005
File coefficients of the individual virtual files; the above-mentioned
Figure 123126DEST_PATH_IMAGE014
Representing metadata virtual file system
Figure 457156DEST_PATH_IMAGE015
The probability of each virtual file being a target file,
Figure 64855DEST_PATH_IMAGE016
Figure 615659DEST_PATH_IMAGE017
when in use
Figure 599796DEST_PATH_IMAGE018
(ii) a When is shown as
Figure 788332DEST_PATH_IMAGE015
Each virtual file is a target file;
when said
Figure 566932DEST_PATH_IMAGE019
When is shown as
Figure 106498DEST_PATH_IMAGE015
The virtual file is not a target file;
and step 3: and determining a target file in the metadata virtual file system according to the judgment model of the metadata.
2. The method of claim 1, wherein before the establishing, by the metadata server, the metadata virtual file system corresponding to the acquired target file, the method further comprises:
setting a command interface on the metadata server, and receiving a metadata uploading command of the metadata virtual file system;
and sending a metadata uploading command to the command interface through the metadata server, wherein the metadata uploading command is used for the virtual file system to acquire metadata.
3. The method of claim 1, wherein the determining the directory hierarchy of the file metadata according to the parent node ID in the virtual file information comprises:
determining the ID of a superior directory according to the ID of the father node of the file;
determining subdirectories of each directory according to the ID of the upper-level directory;
determining the hierarchical relationship between each directory according to the subdirectories of each directory;
and determining the directory hierarchy of the file metadata according to the hierarchical relationship among all the directories.
4. The method of claim 1, wherein the sending a file request download command through a client and obtaining a target file in the metadata virtual file system comprises:
setting a command interface on the metadata virtual file system;
setting a verification interface on the metadata virtual file system;
when the client sends a file request downloading command, the metadata virtual file system sends a user account verification file to the client and receives a user account verification password of a user;
when the client inputs the user account number verification password to be correct, the client sends the target file request downloading command to the command interface, and the target file request downloading command is used for outputting required metadata to the client; wherein the content of the first and second substances,
and when the client inputs the user account verification password more than three times, the client cannot send the target file request downloading command to the command interface.
5. The method of claim 1, wherein the determining the creation time of the file according to the storage information of the file comprises:
determining size numerical value information, creation time information, modification time information, access time information and description attribute value information of a file through metadata in the file;
preprocessing the numerical value information of the file, the creation time information of the file, the modification time information of the file, the access time information of the file and the description attribute value information of the file to serve as storage information of the file;
preprocessing the storage information of the file to determine attribute list information of the file;
and determining the creation time of the file according to the attribute list information of the file.
6. The method of claim 1, wherein after displaying the creation time of the file on the client screen, the method further comprises:
when the creation time of the file is displayed through the client screen, the client screen is shot according to preprocessing, and shot picture information is determined;
storing the screen shot picture information into a preset printing file, and confirming the printing file;
and printing out the file creation time according to the printing file.
CN202110021114.4A 2021-01-08 2021-01-08 Method for acquiring creation time of file in distributed system Active CN112347046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110021114.4A CN112347046B (en) 2021-01-08 2021-01-08 Method for acquiring creation time of file in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110021114.4A CN112347046B (en) 2021-01-08 2021-01-08 Method for acquiring creation time of file in distributed system

Publications (2)

Publication Number Publication Date
CN112347046A CN112347046A (en) 2021-02-09
CN112347046B true CN112347046B (en) 2021-04-30

Family

ID=74428211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110021114.4A Active CN112347046B (en) 2021-01-08 2021-01-08 Method for acquiring creation time of file in distributed system

Country Status (1)

Country Link
CN (1) CN112347046B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114528258B (en) * 2022-02-18 2022-12-27 北京百度网讯科技有限公司 Asynchronous file processing method, device, server, medium, product and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819599A (en) * 2012-08-15 2012-12-12 华数传媒网络有限公司 Method for constructing hierarchical catalogue based on consistent hashing data distribution
CN105095478A (en) * 2015-08-12 2015-11-25 浪潮(北京)电子信息产业有限公司 Method and device for obtaining establishing time of file in distributed file system
CN110046133A (en) * 2019-04-12 2019-07-23 苏州浪潮智能科技有限公司 A kind of metadata management method, the apparatus and system of storage file system
CN110928498A (en) * 2019-11-15 2020-03-27 浙江大华技术股份有限公司 Directory traversal method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572723A (en) * 2013-10-21 2015-04-29 华为技术有限公司 File access method and file access device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819599A (en) * 2012-08-15 2012-12-12 华数传媒网络有限公司 Method for constructing hierarchical catalogue based on consistent hashing data distribution
CN105095478A (en) * 2015-08-12 2015-11-25 浪潮(北京)电子信息产业有限公司 Method and device for obtaining establishing time of file in distributed file system
CN110046133A (en) * 2019-04-12 2019-07-23 苏州浪潮智能科技有限公司 A kind of metadata management method, the apparatus and system of storage file system
CN110928498A (en) * 2019-11-15 2020-03-27 浙江大华技术股份有限公司 Directory traversal method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112347046A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
JP6621543B2 (en) Automatic update of hybrid applications
CN104618482B (en) Access method, server, conventional memory device, the system of cloud data
US11687488B2 (en) Directory deletion method and apparatus, and storage server
US20070299880A1 (en) Document Management Server, Document Management Method, Computer Readable Medium, Computer Data Signal, and System For Managing Document Use
US20080243831A1 (en) Information processing apparatus, information processing system, and storage medium
KR101238374B1 (en) Method and appratus for supplying mashup service
US8214428B1 (en) Optimized prepopulation of a client side cache in a deduplication environment
JP2012089094A5 (en)
US6480834B1 (en) Method and apparatus for serving files from a mainframe to one or more clients
CN109885577B (en) Data processing method, device, terminal and storage medium
CN107783770B (en) Page configuration updating method, device, server and medium
CN104160397A (en) Location independent files
CN105824932A (en) Archive system for storing OSS based on Aliskiu object
CN110287201A (en) Data access method, device, equipment and storage medium
CN109033238B (en) Data production, organization, storage and access method of electronic map set system
CN112860642A (en) Court trial data processing method, server and terminal
CN112347046B (en) Method for acquiring creation time of file in distributed system
CN113688139A (en) Object storage method, gateway, device and medium
CN112286868A (en) Electronic file and record management based method
JP2006031608A (en) Computer, storage system, file management method which computer performs, and program
CN106649528A (en) Picture writing and reading methods and devices
CN102298669A (en) Medical image processing server and managing method for medical image processing server
CN112262378A (en) Hydration of a hierarchy of dehydrated documents
CN109656677A (en) The system and method for creating the virtual disk image being used together with remote computer
CN115729463A (en) Data migration method, system and related device

Legal Events

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