CN106886610A - The file management method and device of a kind of distributed file system - Google Patents

The file management method and device of a kind of distributed file system Download PDF

Info

Publication number
CN106886610A
CN106886610A CN201710232696.4A CN201710232696A CN106886610A CN 106886610 A CN106886610 A CN 106886610A CN 201710232696 A CN201710232696 A CN 201710232696A CN 106886610 A CN106886610 A CN 106886610A
Authority
CN
China
Prior art keywords
file
data file
restored
mapping relations
thesaurus
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.)
Pending
Application number
CN201710232696.4A
Other languages
Chinese (zh)
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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research 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 Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN201710232696.4A priority Critical patent/CN106886610A/en
Publication of CN106886610A publication Critical patent/CN106886610A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • 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/162Delete operations
    • 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/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses the file management method and device of a kind of distributed file system, including the data file that user is deleted sends into the temporary file thesaurus for pre-building and is stored;The mapping relations of data file and its parent directory are obtained, and mapping relations are sent is stored into database;Corresponding file access pattern instruction is generated according to the data file information to be restored of user input, and corresponding data file to be restored is recovered according to file access pattern instruction and mapping relations.The data file deleted by user is stored into temporary file thesaurus, and the mapping relations between its corresponding parent directory of the data file are preserved in database, when user needs for certain data file to carry out recovery to use, corresponding data file to be restored is recovered from temporary file thesaurus by the data file information to be restored and corresponding mapping relations of user input.The present invention improves the security of data file in distributed file system in use.

Description

The file management method and device of a kind of distributed file system
Technical field
The present invention relates to technical field of distributed memory, more particularly to a kind of file management side of distributed file system Method and device.
Background technology
Computer by file system management, data storage, and the data that people can obtain in the information explosion epoch into The growth of index times, by way of the memory capacity for extending computer file system increasing hard disk number merely, in capacity The performance of the aspects such as size, capacity growth rate, data backup, data safety is all barely satisfactory.And distributed file system can Effectively to solve storage and the management problemses of data:Certain file system in certain place will be fixed on, be expanded to any number of Place/multiple file system, numerous nodes constitute a Filesystem Network.Each node can be distributed in different ground Point, the communication between node and data transfer are carried out by network.Wherein, distributed file system (Distributed File System refer to) that the physical memory resources of file system management are not necessarily directly connected on the local node, but by calculating Machine network is connected with node.People using distributed file system when, without be concerned about data be stored on which node or Person be from which node from obtain, it is only necessary to managed as using local file system and the number in storage file system According to.
At present, when user is operated using distributed file system to data file, may be due to operational error Data file is deleted, once and data file is deleted and will recover, user wants to reuse deleted data text These data files cannot be recovered during part again, so as to be made troubles to user, reduce the Information Security in the system.
Therefore, how a kind of the file management method and device of the distributed file system for solving above-mentioned technical problem are provided As the problem that those skilled in the art needs to solve.
The content of the invention
It is an object of the invention to provide the file management method and device of a kind of distributed file system, in the process for using In bring security that is convenient, improve data file in distributed file system to user.
In order to solve the above technical problems, the invention provides a kind of file management method of distributed file system, including:
The data file that user deletes is sent into the temporary file thesaurus for pre-building and is stored;
The mapping relations between the data file and its parent directory are obtained, and the mapping relations are sent to database In stored;
Corresponding file access pattern instruction is generated according to the data file information to be restored of user input, and according to the file Recover instruction and the mapping relations to recover corresponding data file to be restored.
Optionally, the mapping relations according to the parent directory of the identification code and the data file of the data file mark Know what code was set up, then it is corresponding it is described according to file access pattern instruction and the mapping relations to corresponding data to be restored The process that file is recovered is specially:
Corresponding data file to be restored is found from the temporary file thesaurus according to file access pattern instruction, and Obtain the identification code of the data file to be restored;
Corresponding mapping relations are obtained from the database according to the identification code;
The data file to be restored is sent to corresponding with the data file to be restored according to the mapping relations Recovered in parent directory.
Optionally, the data file is stored into the temporary file thesaurus in the way of flattening.
Optionally, methods described also includes:
Data file in the temporary file thesaurus is ranked up according to the sequencing of storage time, and is spaced First Preset Time is deleted the data file of the first earliest predetermined number of storage time.
Optionally, described send into the temporary file thesaurus for pre-building the data file that user deletes is deposited The process of storage is specially:
The data file that user deletes is received, and in the absence of corresponding with current time in temporary file thesaurus is judged During date catalogue, corresponding date catalogue is set up in the temporary file thesaurus, and the data file is sent to institute State and stored in date catalogue.
Optionally, methods described also includes:
The date catalogue is ranked up according to the sequencing of setup time, and is spaced the second Preset Time to set up The date catalogue of time earliest the second predetermined number is deleted.
Optionally, the date catalogue is set up in units of hour.
Optionally, the file management method of distributed file system as described above, in the number for deleting user Sent into the temporary file thesaurus for pre-building according to file before being stored, methods described also includes:
The deletion data file instruction that user sends is received, and prompts the user whether to determine to delete data file, work as reception Next step is carried out after to user's determine instruction.
Optionally, the fileinfo to be restored includes file name.
In order to solve the above technical problems, the invention provides a kind of document management apparatus of distributed file system, including:
Memory module, the data file for user to be deleted sends into the temporary file thesaurus for pre-building and carries out Storage;It is additionally operable to obtain the mapping relations between the data file and its parent directory, and the mapping relations is sent to number According to being stored in storehouse;
Recovery module, corresponding file access pattern instruction is generated for the data file information to be restored according to user input, And corresponding data file to be restored is recovered according to file access pattern instruction and the mapping relations.
The invention provides the file management method and device of a kind of distributed file system, including:User is deleted Data file sends into the temporary file thesaurus for pre-building and is stored;Obtain the mapping of data file and its parent directory Relation, and mapping relations are sent stored into database;Generated according to the data file information to be restored of user input Corresponding file access pattern instruction, and corresponding data file to be restored is carried out according to file access pattern instruction and mapping relations extensive It is multiple.When user deletes data file, system stores into temporary file thesaurus deleted data file, and in data The mapping relations between its corresponding parent directory of the data file are preserved in storehouse, when user needs to carry out certain data file When recovery is used, can be deposited from temporary file by the data file information to be restored of user input and corresponding mapping relations Corresponding data file to be restored is recovered in bank.The present invention brings facility, carries during use to user The security of data file in distributed file system high.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to institute in prior art and embodiment The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings Obtain other accompanying drawings.
A kind of schematic flow sheet of the file management method of distributed file system that Fig. 1 present invention is provided;
A kind of structural representation of the document management apparatus of distributed file system that Fig. 2 is provided for the present invention.
Specific embodiment
The invention provides the file management method and device of a kind of distributed file system, to use during use Security that is convenient, improve data file in distributed file system that family brings.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is refer to, a kind of flow of the file management method of distributed file system that Fig. 1 is provided for the present invention is illustrated Figure.
The method includes:
Step 10:The data file that user deletes is sent into the temporary file thesaurus for pre-building and is stored;
Step 20:The mapping relations between data file and its parent directory are obtained, and mapping relations are sent to database In stored;
Step 30:Corresponding file access pattern instruction, and foundation are generated according to the data file information to be restored of user input File access pattern is instructed and mapping relations are recovered to corresponding data file to be restored.
It should be noted that temporary file thesaurus can be pre-build for distributed file system, for example can be Temporary file thesaurus is set up under FUSE clients (being of course not solely limited to FUSE clients) mount point root.As user couple When certain data file carries out deletion action, system will obtain user delete data file, and by the data file send to Stored in the temporary file thesaurus for establishing;System will also be obtained while the data file that user is deleted is obtained Mapping relations between the data file and its parent directory, the mapping relations include data file parent directory directly Between sub- mapping relations (sub- father's relation) (otherwise as the parent directory of data file is referred to as with the mapping relations of the data file Set membership), the sub- mapping relations (sub- father's relation) between its direct parent directory and its upper level parent directory until with it is final Parent directory between mapping relations, for example, subdirectory in directory A is catalogue B, the subdirectory in catalogue B is catalogue C, mesh Record C includes data file 1, data file 2 and data file 3, if data file 1 deleted, data file 1 is sent out Deliver to and stored in temporary file thesaurus, while the mapping relations between data file 1 and its parent directory are sent to number According to being stored in storehouse, wherein the mapping relations include the sub- mapping relations of data file 1 and catalogue C, catalogue C and catalogue B The sub- mapping relations of sub- mapping relations and catalogue B and directory A.
When user needs to recover certain data file deleted, then can be input into by corresponding command boxe and treated Recover the data file information to be restored of data file, system generates corresponding file access pattern according to data file information to be restored Instruction, and recover instruction according to this document and find out corresponding data file to be restored from temporary file thesaurus, and from data Mapping relations corresponding with the data file to be restored are obtained in storehouse, so as to the data file to be restored is sent to corresponding father Recovered in catalogue.For example, when user needs to be recovered data file 1, can according to the phase of data file 1 The fileinfo to be restored answered generates corresponding file access pattern and instructs, and recovers instruction from temporary file thesaurus according to this document In find data file 1, according to the mapping relations general between data file 1 and its parent directory (catalogue C → catalogue B → directory A) Data file 1 is recovered in sending the catalogue C in the catalogue B into directory A.
In addition, it is necessary to explanation, the data file in the application can be that a file can also be a catalogue, example Can such as be deleted catalogue C as data file, data file 1 now included by catalogue C, data file 2 and data text Part 3 will all be deleted, while the mapping relations between catalogue C and its parent directory include that the son mapping between catalogue C and catalogue B is closed System, the sub- mapping relations between catalogue B and directory A, also including data file 1, data file 2 and data file 3 respectively with Sub- mapping relations between catalogue C;When recovering to catalogue C, then will be according to this little mapping relations to catalogue C and phase Data file 1, data file 2 and the data file 3 answered are recovered.
Optionally, mapping relations are set up according to the identification code of the parent directory of the identification code and data file of data file, It is then corresponding specific to the process that corresponding data file to be restored is recovered according to file access pattern instruction and mapping relations For:
Step 31:Corresponding data file to be restored is found from temporary file thesaurus according to file access pattern instruction, and Obtain the identification code of data file to be restored;
Step 32:Corresponding mapping relations are obtained from database according to identification code;
Step 33:Data file to be restored is sent to parent directory corresponding with data file to be restored according to mapping relations In recovered.
Specifically, for the mapping relations between data file and its parent directory can according to the identification code of data file and The identification code of its parent directory is set up, wherein, the identification code of data file is one-to-one relation with it, each catalogue Identification code is also one-to-one relation with its own.When user needs to recover some data file deleted When, then can be found from temporary file thesaurus according to file access pattern corresponding with data file information to be restored instruction and treat extensive Complex data file, obtains the identification code of the data file to be restored, then searched and the mark from database according to the identification code The corresponding mapping relations of code, parent directory corresponding with the file data to be restored is found according to the mapping relations, then will be to be restored Data file is sent into corresponding parent directory to be recovered.It should be noted that reflecting between data file and its parent directory The relation of penetrating is not limited only to be set up by identification code, can also be set up by characteristic of the others with uniqueness, this Special restriction is not done in invention to this, can realize the purpose of the present invention.
Optionally, data file is stored into temporary file thesaurus in the way of flattening.
Specifically, for the data file being deleted, can be by storing the inverse time of flattening to temporary file thesaurus In, for example catalogue C is deleted and stored into temporary file thesaurus, then by catalogue C and each subfile (data of inside File 1, data file 2 and data file 3) it is placed in a catalogue, it is stored with the way of flattening and seen beneficial to user Examine, while the number of times creatied directory in temporary file thesaurus again when data file is deleted can also be reduced, especially in data It is particularly evident in the case that directories deep is bigger described in file, for example, when directories deep is 10, can reduce in theory 90%;When directories deep is 20,95% can be reduced in theory;When directories deep is 100, can reduce in theory 99%.
Certainly, storage mode of the data file in temporary file thesaurus is not limited only to be carried out by the way of flattening Storage, it would however also be possible to employ other modes are stored, the present invention does not do special restriction to this, can realize the purpose of the present invention .
Optionally, the method also includes:
Data file in temporary file thesaurus is ranked up according to the sequencing of storage time, and is spaced first Preset Time is deleted the data file of the first earliest predetermined number of storage time.
Specifically, for the data file stored in temporary file thesaurus, wherein may some user not Renewing a contract again carries out recovery and uses, such as erasing time data file for not carrying out to it also recovering to use more long, then can be with Conclude these data files user and be no longer necessary, in this case, can also be to storing in interim text in the present invention Data file in part thesaurus is ranked up according to the priority of its storage time (deleted time), and can be every One Preset Time is deleted some earliest data files of the storage time in temporary file thesaurus, can specifically be preset The number of the data file deleted every time is set.Wherein, the concrete numerical value difference of the first Preset Time and the first predetermined number Can be set according to actual conditions, the present invention does not do special restriction to this, can realize the purpose of the present invention.
It should be noted that the first Preset Time of interval enters the data file of the first earliest predetermined number of storage time Row deletion regularly can be managed to temporary file thesaurus.In addition, the data file stored into temporary file thesaurus Can be considered that the data file by complete deletion, deleted will be difficult to be resumed if after being deleted.
Optionally, the data file that user deletes is sent what is stored into the temporary file thesaurus for pre-building Process is specially:
The data file that user deletes is received, and in the absence of corresponding with current time in temporary file thesaurus is judged During date catalogue, corresponding date catalogue is set up in temporary file thesaurus, and data file is sent into date catalogue Stored.
It should be noted that except the data file that stored in temporary file thesaurus can be entered according to storage time Row sequence, so as to beyond realizing the management to temporary file thesaurus, can also in temporary file thesaurus building maths modec mesh Record, and the data file is sent into corresponding date catalogue and carried out by the data file that will currently delete according to current time Storage.
Specifically, after the data file of user's deletion is received, foundation current time is judged in temporary file thesaurus Whether with current time corresponding date catalogue is had, if there is date mesh corresponding with current time in temporary file thesaurus Record, then directly the data file is sent into corresponding date catalogue and is stored, when in temporary file thesaurus not with During the corresponding date catalogue of current time, then a date mesh corresponding with current time is set up in temporary file thesaurus Record, and the data file that will be deleted sends into the date catalogue for establishing and is stored.
For example, can be unit building maths modec catalogue with day, for the data that current time (i.e. current date) is deleted File is stored into the date catalogue on the date.Specifically, it is the same day that the data file deleted one day will be stored to building maths modec Date catalogue in, the data file deleted for second day of this day will be stored into corresponding date catalogue, if temporary file In the absence of corresponding date catalogue then according to the time building maths modec catalogue on the same day, and the number deleted that day in thesaurus To be stored into the date catalogue according to file.
It should be noted that using the method in order to be managed to the data file deleted, wherein date catalogue Specifically with day when or other unit carry out set up the present invention do not do special restriction to this, the purpose of the present invention can be realized i.e. Can.
Optionally, the method also includes:
Date catalogue is ranked up according to the sequencing of setup time, and is spaced the second Preset Time by setup time The date catalogue of the second earliest predetermined number is deleted.
Specifically, can also by by each date catalogue in temporary file thesaurus according to respective setup time elder generation Sequentially it is ranked up afterwards, and is spaced the second Preset Time and is deleted the date catalogue of the second earliest predetermined number of setup time The method removed is managed to temporary file thesaurus.
Certainly, the second Preset Time and the concrete numerical value of the second predetermined number in the application respectively can be according to reality Situation is set, and the present invention does not do special restriction to this, can realize the purpose of the present invention.
Optionally, date catalogue is set up in units of hour.
Specifically, date catalogue can be set up in units of hour, and its form can be " ×××× ×× ×××× ", wherein preceding four expression years, two expression moons afterwards, two expression days afterwards, two last expressions Day, such as its form is 2017020216, and on 02 02nd, 2,017 16:02 day 02 month 00 to 2017 year 16:59 times The data file deleted in section can be stored into the date catalogue.
It should be noted that the date catalogue in the application is not limited only to be set up in units of hour, can also be with Other parameters are set up for unit, and the present invention does not do special restriction to this, can realize the purpose of the present invention.
Optionally, the file management method of distributed file system described above, in the data file hair for deleting user Delivering to before stored in the temporary file thesaurus for pre-building, method also includes:
The deletion data file instruction that user sends is received, and prompts the user whether to determine to delete data file, work as reception Next step is carried out after to user's determine instruction.
Specifically, when user deletes data file, it may be possible to because what operational error was caused deletes by mistake, therefore, when receiving System can prompt the user whether to determine to delete the data file during instruction of the deletion data file that user sends, and work as user When selection determines to delete, then the data file that user deletes can be sent into temporary file thesaurus and be stored by system; When user selects to negate, then the data file is not deleted, further improve the security of data file.
Optionally, fileinfo to be restored includes file name.
It should be noted that when user needs to recover some data file, can be ordered accordingly Frame is input into the file name of data file to be restored, so that system finds corresponding data text to be restored according to this document title Part, the data file to be restored that will can also be found is shown to user, when user confirms to carry out data file to be restored During recovery, system performs recovery operation again.
If also, it should be noted that system finds multiple file name identical numbers according to the file name of user input During according to file, on the one hand, all of data file can be shown into user and data file to be restored is therefrom selected so as to user, On the other hand, the fileinfo to be restored (such as erasing time) of user input annex can be pointed out, so as to according to the annex Fileinfo to be restored is automatically found corresponding data file to be restored from temporary file thesaurus.Certainly, user can be with While the information such as input file title and erasing time, so that system can be quickly found out data text to be restored according to these information Part.
It can be seen that, fileinfo to be restored is not limited only to include file name, can also include other information, and the present invention is right This does not do special restriction, can realize the purpose of the present invention.
The invention provides a kind of file management method of distributed file system, including:The data text that user is deleted Part sends into the temporary file thesaurus for pre-building and is stored;The mapping relations of data file and its parent directory are obtained, And mapping relations are sent stored into database;Data file information to be restored generation according to user input is corresponding File access pattern is instructed, and corresponding data file to be restored is recovered according to file access pattern instruction and mapping relations.When System stores into temporary file thesaurus deleted data file when user deletes data file, and is protected in database The mapping relations between its corresponding parent directory of the data file are deposited, when user needs for certain data file to carry out recovery to make Used time, can be by the data file information to be restored of user input and corresponding mapping relations from temporary file thesaurus Corresponding data file to be restored is recovered.The present invention during use to user bring it is convenient, improve point The security of data file in cloth file system.
Refer to Fig. 2, a kind of structural representation of the document management apparatus of distributed file system that Fig. 2 is provided for the present invention Figure, on the basis of above-described embodiment:
The device includes:
Memory module 1, the data file for user to be deleted sends into the temporary file thesaurus for pre-building Row storage;Be additionally operable to obtain the mapping relations between the data file and its parent directory, and by the mapping relations send to Stored in database;
Recovery module 2, corresponding file access pattern instruction is generated for the data file information to be restored according to user input, And corresponding data file to be restored is recovered according to file access pattern instruction and the mapping relations.
It should be noted that the present invention brings facility, improves distributed field system during use to user The security of data file in system.In addition, for institute in the document management apparatus of distributed file system provided by the present invention The introduction of the method being related to refer to above-described embodiment, and the present invention will not be repeated here.
Also, it should be noted that in this manual, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", does not arrange Except also there is other identical element in the process including the key element, method, article or equipment.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (10)

1. a kind of file management method of distributed file system, it is characterised in that including:
The data file that user deletes is sent into the temporary file thesaurus for pre-building and is stored;
The mapping relations between the data file and its parent directory are obtained, and the mapping relations are sent to enter into database Row storage;
Corresponding file access pattern instruction is generated according to the data file information to be restored of user input, and according to the file access pattern Instruction and the mapping relations are recovered to corresponding data file to be restored.
2. the file management method of distributed file system according to claim 1, it is characterised in that the mapping relations Set up according to the identification code of the parent directory of the identification code and the data file of the data file, then the corresponding foundation The file access pattern instruction and the mapping relations are specially to the process that corresponding data file to be restored is recovered:
Corresponding data file to be restored is found from the temporary file thesaurus according to file access pattern instruction, and is obtained The identification code of the data file to be restored;
Corresponding mapping relations are obtained from the database according to the identification code;
The data file to be restored is sent to father's mesh corresponding with the data file to be restored according to the mapping relations Recovered in record.
3. the file management method of distributed file system according to claim 2, it is characterised in that the data file Stored in the way of flattening into the temporary file thesaurus.
4. the file management method of distributed file system according to claim 3, it is characterised in that methods described is also wrapped Include:
Data file in the temporary file thesaurus is ranked up according to the sequencing of storage time, and is spaced first Preset Time is deleted the data file of the first earliest predetermined number of storage time.
5. the file management method of distributed file system according to claim 3, it is characterised in that described to delete user The data file removed sends the process stored into the temporary file thesaurus for pre-building and is specially:
The data file that user deletes is received, and does not exist the date corresponding with current time in temporary file thesaurus is judged During catalogue, corresponding date catalogue is set up in the temporary file thesaurus, and the data file was sent to the day Stored in phase catalogue.
6. the file management method of distributed file system according to claim 5, it is characterised in that methods described is also wrapped Include:
The date catalogue is ranked up according to the sequencing of setup time, and is spaced the second Preset Time by setup time The date catalogue of the second earliest predetermined number is deleted.
7. the file management method of distributed file system according to claim 6, it is characterised in that the date catalogue Set up in units of hour.
8. the file management method of the distributed file system according to claim 1-7 any one, it is characterised in that The data file by user's deletion is sent into the temporary file thesaurus for pre-building before being stored, methods described Also include:
The deletion data file instruction that user sends is received, and prompts the user whether to determine to delete data file, when receiving use Next step is carried out after the determine instruction of family.
9. the file management method of distributed file system according to claim 8, it is characterised in that the text to be restored Part information includes file name.
10. a kind of document management apparatus of distributed file system, it is characterised in that including:
Memory module, the data file for user to be deleted sends into the temporary file thesaurus for pre-building and is deposited Storage;It is additionally operable to obtain the mapping relations between the data file and its parent directory, and the mapping relations is sent to data Stored in storehouse;
Recovery module, generates corresponding file access pattern and instructs for the data file information to be restored according to user input, and according to Corresponding data file to be restored is recovered according to file access pattern instruction and the mapping relations.
CN201710232696.4A 2017-04-11 2017-04-11 The file management method and device of a kind of distributed file system Pending CN106886610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710232696.4A CN106886610A (en) 2017-04-11 2017-04-11 The file management method and device of a kind of distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710232696.4A CN106886610A (en) 2017-04-11 2017-04-11 The file management method and device of a kind of distributed file system

Publications (1)

Publication Number Publication Date
CN106886610A true CN106886610A (en) 2017-06-23

Family

ID=59183139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710232696.4A Pending CN106886610A (en) 2017-04-11 2017-04-11 The file management method and device of a kind of distributed file system

Country Status (1)

Country Link
CN (1) CN106886610A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107633059A (en) * 2017-09-20 2018-01-26 郑州云海信息技术有限公司 A kind of data processing method and system for distributed file system
CN109189728A (en) * 2018-07-18 2019-01-11 深圳市网心科技有限公司 Intelligent hardware devices, data in magnetic disk processing method and storage medium
CN109428913A (en) * 2017-08-25 2019-03-05 浙江宇视科技有限公司 A kind of storage expansion method and device
CN109739815A (en) * 2019-01-10 2019-05-10 北京达佳互联信息技术有限公司 Document handling method, system, device, equipment and storage medium
CN110765075A (en) * 2019-10-24 2020-02-07 北京百度网讯科技有限公司 Storage method and equipment of automatic driving data
CN111324483A (en) * 2018-12-13 2020-06-23 腾讯科技(深圳)有限公司 Data recovery method and device and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024018A (en) * 2010-11-04 2011-04-20 曙光信息产业(北京)有限公司 On-line recovering method of junk metadata in distributed file system
CN102289524A (en) * 2011-09-26 2011-12-21 深圳市万兴软件有限公司 Data recovery method and system
CN104217174A (en) * 2014-09-05 2014-12-17 四川长虹电器股份有限公司 Safety storage system and safety storage method for distributed files
US20160072888A1 (en) * 2014-09-10 2016-03-10 Panzura, Inc. Sending interim notifications for namespace operations for a distributed filesystem

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024018A (en) * 2010-11-04 2011-04-20 曙光信息产业(北京)有限公司 On-line recovering method of junk metadata in distributed file system
CN102024018B (en) * 2010-11-04 2013-03-13 曙光信息产业(北京)有限公司 On-line recovering method of junk metadata in distributed file system
CN102289524A (en) * 2011-09-26 2011-12-21 深圳市万兴软件有限公司 Data recovery method and system
CN104217174A (en) * 2014-09-05 2014-12-17 四川长虹电器股份有限公司 Safety storage system and safety storage method for distributed files
US20160072888A1 (en) * 2014-09-10 2016-03-10 Panzura, Inc. Sending interim notifications for namespace operations for a distributed filesystem

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428913A (en) * 2017-08-25 2019-03-05 浙江宇视科技有限公司 A kind of storage expansion method and device
CN109428913B (en) * 2017-08-25 2021-06-01 浙江宇视科技有限公司 Storage capacity expansion method and device
CN107633059A (en) * 2017-09-20 2018-01-26 郑州云海信息技术有限公司 A kind of data processing method and system for distributed file system
CN109189728A (en) * 2018-07-18 2019-01-11 深圳市网心科技有限公司 Intelligent hardware devices, data in magnetic disk processing method and storage medium
CN111324483A (en) * 2018-12-13 2020-06-23 腾讯科技(深圳)有限公司 Data recovery method and device and related equipment
CN111324483B (en) * 2018-12-13 2023-04-18 腾讯科技(深圳)有限公司 Data recovery method and device and related equipment
CN109739815A (en) * 2019-01-10 2019-05-10 北京达佳互联信息技术有限公司 Document handling method, system, device, equipment and storage medium
CN110765075A (en) * 2019-10-24 2020-02-07 北京百度网讯科技有限公司 Storage method and equipment of automatic driving data

Similar Documents

Publication Publication Date Title
CN106886610A (en) The file management method and device of a kind of distributed file system
CN103778034B (en) Data backup disaster recovery method and system based on cloud storage
US5761404A (en) Image-data managing apparatus
CN103678337B (en) Data clearing method, apparatus and system
CN104216759B (en) A kind of method for the logic magnetic disc for generating virtual machine, and device
CN107633059A (en) A kind of data processing method and system for distributed file system
CN105930233B (en) To specifying the data of public cloud account to carry out the method and system of automated back-up respectively
CN109144785A (en) Method and apparatus for Backup Data
CN106302609A (en) A kind of access method and device
CN107707600A (en) A kind of date storage method and device
CN105302922A (en) Realizing method for snapshot of distributed file system
CN109101599A (en) A kind of increment index update method and system
CN105204782B (en) A kind of method and device for realizing data storage
CN109445714A (en) A kind of recycle bin method for cleaning and device
CN103491092A (en) Method and system for separating and binding of application platform and databank
CN113067871A (en) Digital file management method based on block chain technology
CN107480242A (en) A kind of method and system of establishment file system snapshot tree
CN107291579A (en) A kind of metadata cluster File Snapshot method based on static subtree subregion
CN107315544A (en) A kind of solid-state disk logical partition management method and device
CN107196925A (en) The private data guard method and system of access time self-regulation
CN107707346A (en) A kind of key storage based on database, acquisition methods
CN103500129A (en) Back-up object sending and back-up method, production end, backup-for-disaster-recovery end and system
CN107147531B (en) CDM cluster website management system
CN107977168A (en) A kind of data based on cloud storage disperse storage system
CN107403386A (en) Insure management method and system based on bank outlets

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170623

RJ01 Rejection of invention patent application after publication