CN107526840A - File system snapshot querying method, device and computer-readable recording medium - Google Patents

File system snapshot querying method, device and computer-readable recording medium Download PDF

Info

Publication number
CN107526840A
CN107526840A CN201710828223.0A CN201710828223A CN107526840A CN 107526840 A CN107526840 A CN 107526840A CN 201710828223 A CN201710828223 A CN 201710828223A CN 107526840 A CN107526840 A CN 107526840A
Authority
CN
China
Prior art keywords
snapshot
snaprealm
structures
file system
checked
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
CN201710828223.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710828223.0A priority Critical patent/CN107526840A/en
Publication of CN107526840A publication Critical patent/CN107526840A/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/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The invention discloses a kind of file system snapshot querying method, including:Obtain the SnapRealm structures of file system to be checked;By SnapRea lm structures, the SnapRealm structures at different levels of snapshot tree construction in file system to be checked are searched, obtain all SNAPSHOT INFOs of file system to be checked;Wherein, the SnapRealm structures at different levels of snapshot tree construction preserve the SNAPSHOT INFO and snapshot tree construction relationship between superior and subordinate of corresponding catalogue.The SnapRealm structures at different levels for the snapshot tree construction that this method passes through file system inquire about SNAPSHOT INFO, and compared to prior art, it can rapidly inquire all SNAPSHOT INFOs of file system, improve snapshot efficiency.In addition, the invention also discloses a kind of file system snapshot inquiry unit and computer-readable recording medium, equally with above-mentioned beneficial effect.

Description

File system snapshot querying method, device and computer-readable recording medium
Technical field
The present invention relates to snapping technique field, more particularly to a kind of file system snapshot querying method, device and computer Readable storage medium storing program for executing.
Background technology
With the raising of storage application demand, user typically carries out data protection by online mode, is lost to prevent norm evidence Lose.Wherein, snapshot is then that Online storage device takes precautions against loss of data effective means.
Wherein, File Snapshot function is mainly applied in file system, by the snapshot operation to catalogue, so as to foundation Generate snapshot and carry out the realizations such as rollback recovery data or other purposes.That is, File Snapshot can support snapshot, look into See, delete and rolling back action.Usually, set snapshot multiple snapshot can be set to a catalogue, carried out according to Snapshot time point Data recovery.That is, file system can set snapshot to any catalogue, and snapshot can be set at any time.And based on pair When one catalogue sets snapshot, it is impossible to which existing snapshot of the same name under the catalogue is set;It is fast which has when deleting snapshot, under the catalogue According to the factors such as deletion are available for, carrying out needing to inquire all snapshots under this document system during snapshot operation in time.
At present, the Snapshot query of file system generally by one by one inquire about file system in all catalogues, Get all snapshots of this document system.So, Snapshot query efficiency will necessarily be caused low.
The content of the invention
It is an object of the invention to provide a kind of file system snapshot querying method, device and computer-readable recording medium, To solve the problems, such as that the Snapshot query efficiency of existing file system is low.
In order to solve the above technical problems, the present invention provides following technical scheme:
A kind of file system snapshot querying method, including:
Obtain the SnapRealm structures of file system to be checked;
By the SnapRealm structures, snapshot tree construction is at different levels in the lookup file system to be checked SnapRealm structures, obtain all SNAPSHOT INFOs of the file system to be checked;
Wherein, the SnapRealm structures at different levels of the snapshot tree construction preserve corresponding catalogue SNAPSHOT INFO and Snapshot tree construction relationship between superior and subordinate.
Alternatively, the SnapRealm structures for obtaining file system to be checked, including:
Obtain the root SnapRealm structures of the file system to be checked.
Alternatively, it is described by the SnapRealm structures, it is corresponding to search each catalogue in the file system to be checked SnapRealm structures, obtain all SNAPSHOT INFOs of the file system to be checked, including:
The SNAPSHOT INFO of root is read from the root SnapRealm structures, and by the snapshot of the root Information is stored to the first chained list;
According to the snapshot tree construction relationship between superior and subordinate of the root SnapRealm structures, the snapshot tree knot is obtained The next stage SnapRealm structures of structure, and store to the second chained list;
Each the described next stage SnapRealm structure inquired about successively in second chained list, obtain described next The SNAPSHOT INFO of level SnapRealm structures, and store to first chained list, next SnapRealm structures are deleted, Judge whether the next stage SnapRealm structures are afterbody SnapRealm structures;
If it is not, then obtain the next stage SnapRrealm structures of the next stage SnapRealm structures, and store to Second chained list;
Each SnapRealm structures that repetition is inquired about in second chained list successively, until obtaining the text to be checked Untill all SNAPSHOT INFOs of part system.
Alternatively, after all SNAPSHOT INFOs for obtaining the file system to be checked, in addition to:
According to all SNAPSHOT INFOs of the file system to be checked, snapshot operation is performed;
Wherein, the snapshot operation includes at least one of snapshot setting, snapshot deletion and snapshot rollback.
Alternatively, after all SNAPSHOT INFOs for obtaining the file system to be checked, in addition to:
All SNAPSHOT INFOs of the file system to be checked of first storage of linked list are parsed, classification is shown in client End.
A kind of file system quick search device, including:
Acquisition module, for obtaining the SnapRealm structures of file system to be checked;
Enquiry module, for by the SnapRealm structures, searching snapshot tree knot in the file system to be checked The SnapRealm structures at different levels of structure, obtain all SNAPSHOT INFOs of the file system to be checked;
Wherein, the SnapRealm structures at different levels of the snapshot tree construction preserve corresponding catalogue SNAPSHOT INFO and Snapshot tree construction relationship between superior and subordinate.
Alternatively, the acquisition module includes:
Catalogue structure body acquisition submodule, the root SnapRealm for obtaining the file system to be checked are tied Structure body.
Alternatively, the enquiry module includes:
First reading submodule, for reading the SNAPSHOT INFO of root from the root SnapRealm structures, and The SNAPSHOT INFO of the root is stored to the first chained list;
First acquisition submodule, for being closed according to snapshot tree construction the superior and the subordinate of the root SnapRealm structures System, obtains the next stage SnapRealm structures of the snapshot tree construction, and store to the second chained list;
Submodule is inquired about, for inquiring about each described next stage SnapRealm structure in second chained list successively Body, obtains the SNAPSHOT INFO of the next stage SnapRealm structures, and stores to first chained list, deletes described next SnapRealm structures, judge whether the next stage SnapRealm structures are afterbody SnapRealm structures;
Second acquisition submodule, for if it is not, then obtaining the next stage of the next stage SnapRealm structures SnapRrealm structures, and store to second chained list;Repetition is inquired about each in second chained list successively SnapRealm structures, untill all SNAPSHOT INFOs of the file system to be checked are obtained.
Alternatively, in addition to:
Execution module, for all SNAPSHOT INFOs according to the file system to be checked, perform snapshot operation;
Wherein, the snapshot operation includes at least one of snapshot setting, snapshot deletion and snapshot rollback.
A kind of computer-readable recording medium, file system snapshot inquiry is stored with the computer-readable recording medium Program, the file system snapshot polling routine realize that file system snapshot described in any of the above-described is inquired about when being executed by processor The step of method.
File system snapshot querying method provided by the present invention, including:Obtain the SnapRealm of file system to be checked Structure;By SnapRealm structures, the SnapRealm structures at different levels of snapshot tree construction in file system to be checked are searched Body, obtain all SNAPSHOT INFOs of file system to be checked;Wherein, the SnapRealm structures at different levels of snapshot tree construction are protected There are the SNAPSHOT INFO and snapshot tree construction relationship between superior and subordinate of corresponding catalogue.This method is obtained by inquiring about SnapRealm structures Its SNAPSHOT INFO stored is got, and by snapshot tree construction relationship between superior and subordinate in SnapRealm structures, is got at different levels The SnapRealm structures of catalogue, so as to get all SNAPSHOT INFOs in file system.That is, pass through file system The SnapRealm structures at different levels of snapshot tree construction inquire about SNAPSHOT INFO, and compared to prior art, it can rapidly be inquired about To all SNAPSHOT INFOs of file system, snapshot efficiency is improved.File system snapshot inquiry unit provided by the present invention and Computer-readable recording medium equally has above-mentioned beneficial effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is that a kind of flow of embodiment of file system snapshot querying method provided in an embodiment of the present invention is shown It is intended to;
Fig. 2 is a kind of snapshot tree structural representation of file system provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet provided in an embodiment of the present invention by snapshot tree structure query SNAPSHOT INFO;
Fig. 4 is the structural schematic block diagram of file system quick search device provided in an embodiment of the present invention.
Embodiment
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 Part of the 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, Fig. 1 is a kind of specific embodiment party of file system snapshot querying method provided in an embodiment of the present invention The schematic flow sheet of formula, this method may comprise steps of:
Step 101:Obtain the SnapRealm structures of file system to be checked.
It is to be appreciated that above-mentioned SnapRealm structures can be multiple or one.It is either multiple, or one It is individual, file system to be checked can be got according to the snapshot tree construction relationship between superior and subordinate that SnapRealm structures are included Middle snapshot tree construction all SnapRealm structures at different levels, to get all snapshots of file system to be checked.
What SnapRealm data structures only created when its corresponding catalogue creates snapshot first, never created snapshot Catalogue in the absence of SnapRealm structures.Usually, the root acquiescence in file system has created SnapRealm knots Structure, therefore all SnapRealm of file system to be checked can be preferably obtained by the SnapRealm structures of root Structure.That is, in some embodiments, this step can be, for example,:Obtain the root of file system to be checked SnapRealm structures.The existing SNAPSHOT INFO and snapshot tree of root are included in the SnapRealm structures of the root Structure relationship between superior and subordinate.
Step 102:By SnapRealm structures, the at different levels of snapshot tree construction in file system to be checked are searched SnapRealm structures, obtain all SNAPSHOT INFOs of file system to be checked;
Wherein, the SnapRealm structures at different levels of snapshot tree construction preserve the SNAPSHOT INFO and snapshot of corresponding catalogue Tree construction relationship between superior and subordinate.
For the snapshot data structure in preferably present document system, below in conjunction with one of the file system shown in Fig. 2 Kind snapshot tree structural representation.
Such as Fig. 2, root is file system root directory, and dir1_1, dir1_2, dir3_2 etc. is the mesh in file system Record.If directory creating crosses snapshot, respective directories have a respective SnapRealm structures, and dir1_1 and dir2_3 due to Snapshot was not created, then does not have SnapRealm structures.The directory tree of file system is by root, dir1_1, dir1_2, dir2_ 1st, dir2_2, dir2_3, dir3_1, dir3_2 are formed, and the snapshot tree of file system is then the SnapRealm structures for having each catalogue Into.
When acquired SnapRealm structures are structure corresponding to root, pass through the snapshot tree knot of its preservation The relationship between superior and subordinate of structure, the SnapRealm structures at different levels of snapshot tree are obtained successively.Therefore in some embodiments, referring to The schematic flow sheet provided in an embodiment of the present invention by snapshot tree structure query SNAPSHOT INFO shown in Fig. 3, this step can be with Specially following steps:
Step A1:The SNAPSHOT INFO of root is read from root SnapRealm structures, and the snapshot of root is believed Breath is stored to the first chained list;
Step A2:According to the snapshot tree construction relationship between superior and subordinate of root SnapRealm structures, snapshot tree construction is obtained Next stage SnapRealm structures, and store to the second chained list;
It is to be appreciated that next stage SnapRealm structures can be multiple, that is, pass through the SnapRealm structures of root Body obtains the multiple SnapRealm structures at the same level of next stage.It is after obtaining multiple SnapRealm structures at the same level, this is more Individual SnapRealm structures at the same level are stored in the second chained list in the lump.Certainly, if the next stage of root only has one During SnapRealm structures, accessed can also be one.
Step A3:Each next stage SnapRealm structures inquired about successively in the second chained list, obtain next stage The SNAPSHOT INFO of SnapRealm structures, and store to the first chained list, next SnapRealm structures are deleted, judge next stage Whether SnapRealm structures are afterbody SnapRealm structures;If it is not, then obtain next stage SnapRealm structures Next stage SnapRrealm structures, and store to the second chained list;
After getting multiple SnapRealm structures at the same level, each SnapRealm structure is inquired about successively.I.e. one Multiple SnapRealm structures at the same level are inquired about on an individual ground, are inquired about first SnapRealm structure first, are somebody's turn to do SNAPSHOT INFO and snapshot tree construction relationship between superior and subordinate in SnapRealm structures, by the snapshot tree construction relationship between superior and subordinate, Judge whether current SnapRealm structures are the afterbody of the branch, if it is, the SNAPSHOT INFO obtained is stored to In one chained list, and from the second chained list delete current queries SnapRealm structures, then inquire about next peer SnapRealm structures, if it is not, then obtaining again the SnapRealm structures of next stage, and it is stored in the second chained list.
For example, based on the snapshot tree construction in Fig. 2, if the SnapRealm structures at the same level stored in current second chained list Body is dir2_1, dir2_2 SnapRealm structures.The two SnapRealm structures are inquired about successively, are inquired about first Dir2_1 SnapRealm structures, corresponding SNAPSHOT INFO and snapshot tree construction relationship between superior and subordinate is obtained, according to the snapshot tree Structure relationship between superior and subordinate, judge each next stage SnapRealm structures, then delete dir2_1 SnapRealm structures, The SNAPSHOT INFO obtained is stored to the first chained list;Then dir2_2 SnapRealm structures are inquired about, are obtained corresponding fast According to information and snapshot tree construction relationship between superior and subordinate, SNAPSHOT INFO is stored to the first chained list, and according to the snapshot tree construction above and below Level relation, judgement also there are SnapRealm structures corresponding to next stage structure dir3_1, by corresponding to dir3_1 SnapRealm structures are stored in the second chained list, and delete SnapRealm structures corresponding to dir2_2.Peer is inquired about SnapRealm structures after, then according to similar procedure inquiry next stage SnapRealm structures again, until getting all Snapshot, that is, all SnapRealm structures inquired about in snapshot tree structure.
Step A4:Each SnapRealm structures that repetition is inquired about in the second chained list successively, until obtaining file to be checked Untill all SNAPSHOT INFOs of system.
According to the similar procedure of above-mentioned inquiry, repetition is inquired about each SnapRealm structures at different levels, until obtaining To all snapshots, that is, all SnapRealm structures inquired about in snapshot tree structure.So, it is all in file system SNAPSHOT INFO is just stored entirely in chained list 1.
After all SNAPSHOT INFOs by snapshot tree structure query file system, it can be based on according to SNAPSHOT INFO, instruct Snapshot operation, can also classify all SNAPSHOT INFOs of displaying.
Therefore in some embodiments, can be with after all SNAPSHOT INFOs of file system to be checked are obtained Including:According to all SNAPSHOT INFOs of file system to be checked, snapshot operation is performed;Wherein, snapshot operation include snapshot set, At least one of snapshot deletion and snapshot rollback.
Specifically, when setting snapshot, according to the system snapshot information inquired, the snapshot title to be set, root are selected Whether according to, snapshot and its Snapshot time point decide whether to set snapshot;When deleting snapshot, it is according to what is inquired System SNAPSHOT INFO, it can selectively delete some snapshot at some time point therein;When snapshot rollback, according to what is inquired System snapshot information, it can selectively determine time point during rollback.
, can be with after all SNAPSHOT INFOs of file system to be checked are obtained in other embodiments Including:All SNAPSHOT INFOs of the file system to be checked of the first storage of linked list are parsed, classification is shown in client.
It is to be appreciated that classification shows SNAPSHOT INFO and instructs snapshot operation between the two without clear and definite according to SNAPSHOT INFO Priority execution sequence.
In the present embodiment, believed by the SnapRealm structures at different levels of the snapshot tree construction of file system to inquire about snapshot Breath, compared to prior art, it can rapidly inquire all SNAPSHOT INFOs of file system, improve snapshot efficiency.
File system quick search device provided in an embodiment of the present invention is introduced below, file system described below Uniting quick search device can be mutually to should refer to above-described file system method for quickly querying.
Fig. 4 is refer to, Fig. 4 is the structural schematic block diagram of file system quick search device provided in an embodiment of the present invention, The device can include:
Acquisition module 41, for obtaining the SnapRealm structures of file system to be checked;
Enquiry module 42, for by SnapRealm structures, searching each of snapshot tree construction in file system to be checked Level SnapRealm structures, obtain all SNAPSHOT INFOs of file system to be checked;
Wherein, the SnapRealm structures at different levels of snapshot tree construction preserve the SNAPSHOT INFO and snapshot of corresponding catalogue Tree construction relationship between superior and subordinate.
In some embodiments, acquisition module can include:
Catalogue structure body acquisition submodule, for obtaining the root SnapRealm structures of file system to be checked.
In some embodiments, enquiry module can include:
First reading submodule, for reading the SNAPSHOT INFO of root from root SnapRealm structures, and by root The SNAPSHOT INFO of catalogue is stored to the first chained list;
First acquisition submodule, for the snapshot tree construction relationship between superior and subordinate according to root SnapRealm structures, obtain The next stage SnapRealm structures of snapshot tree construction are taken, and are stored to the second chained list;
Submodule is inquired about, for inquiring about each next stage SnapRealm structures in the second chained list successively, under acquisition The SNAPSHOT INFO of one-level SnapRealm structures, and store to the first chained list, next SnapRealm structures are deleted, under judgement Whether one-level SnapRealm structures are afterbody SnapRealm structures;
Second acquisition submodule, for if it is not, then obtaining the next stage SnapRrealm of next stage SnapRealm structures Structure, and store to the second chained list;Each SnapRealm structures that repetition is inquired about in the second chained list successively, until obtaining Untill all SNAPSHOT INFOs of file system to be checked.
In some embodiments, can also include:
Execution module, for all SNAPSHOT INFOs according to file system to be checked, perform snapshot operation;
Wherein, snapshot operation includes at least one of snapshot setting, snapshot deletion and snapshot rollback.
In the present embodiment, believed by the SnapRealm structures at different levels of the snapshot tree construction of file system to inquire about snapshot Breath, compared to prior art, it can rapidly inquire all SNAPSHOT INFOs of file system, improve snapshot efficiency.
The embodiment of the present invention provides a kind of computer-readable recording medium, and text is stored with the computer-readable recording medium Part system snapshot polling routine, file system snapshot polling routine realize that any of the above-described file system is fast when being executed by processor The step of according to querying method.Other similar portions can be found in corresponding contents above, will not be repeated here.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
File system snapshot querying method provided by the present invention, device and computer-readable recording medium are carried out above It is discussed in detail.Specific case used herein is set forth to the principle and embodiment of the present invention, above example Explanation be only intended to help understand the present invention method and its core concept.It should be pointed out that for the common of the art For technical staff, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these Improve and modification is also fallen into the protection domain of the claims in the present invention.

Claims (10)

  1. A kind of 1. file system snapshot querying method, it is characterised in that including:
    Obtain the SnapRealm structures of file system to be checked;
    By the SnapRealm structures, the SnapRealm at different levels of snapshot tree construction in the file system to be checked are searched Structure, obtain all SNAPSHOT INFOs of the file system to be checked;
    Wherein, the SnapRealm structures at different levels of the snapshot tree construction preserve the SNAPSHOT INFO and snapshot of corresponding catalogue Tree construction relationship between superior and subordinate.
  2. 2. the method as described in claim 1, it is characterised in that the SnapRealm structures for obtaining file system to be checked Body, including:
    Obtain the root SnapRealm structures of the file system to be checked.
  3. 3. method as claimed in claim 2, it is characterised in that it is described by the SnapRealm structures, treated described in lookup SnapRealm structures corresponding to each catalogue in file system are inquired about, obtain all snapshots letter of the file system to be checked Breath, including:
    The SNAPSHOT INFO of root is read from the root SnapRealm structures, and by the SNAPSHOT INFO of the root Store to the first chained list;
    According to the snapshot tree construction relationship between superior and subordinate of the root SnapRealm structures, the snapshot tree construction is obtained Next stage SnapRealm structures, and store to the second chained list;
    Each the described next stage SnapRealm structure inquired about successively in second chained list, obtains the next stage The SNAPSHOT INFO of SnapRealm structures, and store to first chained list, next SnapRealm structures are deleted, are sentenced Whether the next stage SnapRealm structures that break are afterbody SnapRealm structures;
    If it is not, then obtaining the next stage SnapRrealm structures of the next stage SnapRealm structures, and store to described Second chained list;
    Each SnapRealm structures that repetition is inquired about in second chained list successively, until obtaining the file system to be checked Untill all SNAPSHOT INFOs of system.
  4. 4. the method as described in any one of claims 1 to 3, it is characterised in that obtain the file system to be checked described All SNAPSHOT INFOs after, in addition to:
    According to all SNAPSHOT INFOs of the file system to be checked, snapshot operation is performed;
    Wherein, the snapshot operation includes at least one of snapshot setting, snapshot deletion and snapshot rollback.
  5. 5. method as claimed in claim 4, it is characterised in that in all snapshots for obtaining the file system to be checked After information, in addition to:
    All SNAPSHOT INFOs of the file system to be checked of first storage of linked list are parsed, classification is shown in client.
  6. A kind of 6. file system quick search device, it is characterised in that including:
    Acquisition module, for obtaining the SnapRealm structures of file system to be checked;
    Enquiry module, for by the SnapRealm structures, searching snapshot tree construction in the file system to be checked SnapRealm structures at different levels, obtain all SNAPSHOT INFOs of the file system to be checked;
    Wherein, the SnapRealm structures at different levels of the snapshot tree construction preserve the SNAPSHOT INFO and snapshot of corresponding catalogue Tree construction relationship between superior and subordinate.
  7. 7. device as claimed in claim 6, it is characterised in that the acquisition module includes:
    Catalogue structure body acquisition submodule, for obtaining the root SnapRealm structures of the file system to be checked.
  8. 8. device as claimed in claim 7, it is characterised in that the enquiry module includes:
    First reading submodule, for reading the SNAPSHOT INFO of root from the root SnapRealm structures, and by institute The SNAPSHOT INFO for stating root is stored to the first chained list;
    First acquisition submodule, for the snapshot tree construction relationship between superior and subordinate according to the root SnapRealm structures, obtain The next stage SnapRealm structures of the snapshot tree construction are taken, and are stored to the second chained list;
    Submodule is inquired about, for inquiring about each described next stage SnapRealm structure in second chained list successively, is obtained The SNAPSHOT INFO of the next stage SnapRealm structures is taken, and is stored to first chained list, is deleted described next SnapRealm structures, judge whether the next stage SnapRealm structures are afterbody SnapRealm structures;
    Second acquisition submodule, for if it is not, then obtaining the next stage SnapRrealm of the next stage SnapRealm structures Structure, and store to second chained list;Each SnapRealm structures that repetition is inquired about in second chained list successively, Untill all SNAPSHOT INFOs of the file system to be checked are obtained.
  9. 9. the device as described in any one of claim 6 to 8, it is characterised in that also include:
    Execution module, for all SNAPSHOT INFOs according to the file system to be checked, perform snapshot operation;
    Wherein, the snapshot operation includes at least one of snapshot setting, snapshot deletion and snapshot rollback.
  10. 10. a kind of computer-readable recording medium, it is characterised in that file system is stored with the computer-readable recording medium System Snapshot query program, is realized such as any one of claim 1 to 5 when the file system snapshot polling routine is executed by processor The step of file system snapshot querying method.
CN201710828223.0A 2017-09-14 2017-09-14 File system snapshot querying method, device and computer-readable recording medium Pending CN107526840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710828223.0A CN107526840A (en) 2017-09-14 2017-09-14 File system snapshot querying method, device and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710828223.0A CN107526840A (en) 2017-09-14 2017-09-14 File system snapshot querying method, device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107526840A true CN107526840A (en) 2017-12-29

Family

ID=60736710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710828223.0A Pending CN107526840A (en) 2017-09-14 2017-09-14 File system snapshot querying method, device and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107526840A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168533A (en) * 2022-02-09 2022-03-11 苏州浪潮智能科技有限公司 Snapshot query method and device, computer equipment and storage medium
CN117130980A (en) * 2023-10-24 2023-11-28 杭州优云科技有限公司 Virtual machine snapshot management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553339A (en) * 2003-06-05 2004-12-08 联想(北京)有限公司 Fine granule quick camera carry-out method
CN101178677A (en) * 2007-11-09 2008-05-14 中国科学院计算技术研究所 Computer system for protecting software and method for protecting software
CN103577329A (en) * 2013-10-18 2014-02-12 华为技术有限公司 Snapshot management method and device
CN104714755A (en) * 2013-12-13 2015-06-17 华为技术有限公司 Snapshoot management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553339A (en) * 2003-06-05 2004-12-08 联想(北京)有限公司 Fine granule quick camera carry-out method
CN101178677A (en) * 2007-11-09 2008-05-14 中国科学院计算技术研究所 Computer system for protecting software and method for protecting software
CN103577329A (en) * 2013-10-18 2014-02-12 华为技术有限公司 Snapshot management method and device
CN104714755A (en) * 2013-12-13 2015-06-17 华为技术有限公司 Snapshoot management method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LINUXHUNTER: "SnapRealm类分析-linux_hunter的个人页面–OSCHINA", 《HTTPS://MY.OSCHINA.NET/LINUXHUNTER/BLOG/716270》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168533A (en) * 2022-02-09 2022-03-11 苏州浪潮智能科技有限公司 Snapshot query method and device, computer equipment and storage medium
CN114168533B (en) * 2022-02-09 2022-04-19 苏州浪潮智能科技有限公司 Snapshot query method and device, computer equipment and storage medium
CN117130980A (en) * 2023-10-24 2023-11-28 杭州优云科技有限公司 Virtual machine snapshot management method and device
CN117130980B (en) * 2023-10-24 2024-02-27 杭州优云科技有限公司 Virtual machine snapshot management method and device

Similar Documents

Publication Publication Date Title
US11023439B2 (en) Variable cardinality index and data retrieval
US9766983B2 (en) Proximity and in-memory map based signature searching for duplicate data
US9710501B2 (en) Enhanced performance for large versioned databases
US8151139B1 (en) Preventing data loss from restore overwrites
US8504528B2 (en) Duplicate backup data identification and consolidation
US7752226B1 (en) Reverse pathname lookup by inode identifier
US7228299B1 (en) System and method for performing file lookups based on tags
EP1587006A2 (en) Method and system for renaming consecutive keys in a B-tree
CN107506447A (en) A kind of small documents reading/writing method and system based on local file system
EP1176523A2 (en) System for providing extended file attributes
US20130297570A1 (en) Method and apparatus for deleting duplicate data
CN105787093B (en) A kind of construction method of the log file system based on LSM-Tree structure
CN104199888B (en) The data reconstruction method and device of Resilient file system
US8010505B2 (en) Efficient backup data retrieval
CN107045531A (en) A kind of system and method for optimization HDFS small documents access
JP2005122702A5 (en)
CN104331343B (en) File backup method and system
CN107526840A (en) File system snapshot querying method, device and computer-readable recording medium
CN105608142A (en) Storage method and device of Json data
KR101484882B1 (en) Forensic data recovery method and system
GB2594879A (en) Protecting against data loss
CN111104377A (en) File management method, electronic device and computer-readable storage medium
CN106155838B (en) A kind of database back-up data restoration methods and device
US20060129517A1 (en) Anti-item for deletion of content in a distributed datastore
CN105183391B (en) The method and apparatus that data store under a kind of distributed data platform

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

Application publication date: 20171229