CN111309264B - Method, system, device and medium for making directory quota compatible with snapshot - Google Patents

Method, system, device and medium for making directory quota compatible with snapshot Download PDF

Info

Publication number
CN111309264B
CN111309264B CN202010094727.6A CN202010094727A CN111309264B CN 111309264 B CN111309264 B CN 111309264B CN 202010094727 A CN202010094727 A CN 202010094727A CN 111309264 B CN111309264 B CN 111309264B
Authority
CN
China
Prior art keywords
snapshot
directory
quota
node
judging whether
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
CN202010094727.6A
Other languages
Chinese (zh)
Other versions
CN111309264A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010094727.6A priority Critical patent/CN111309264B/en
Publication of CN111309264A publication Critical patent/CN111309264A/en
Application granted granted Critical
Publication of CN111309264B publication Critical patent/CN111309264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Landscapes

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

Abstract

The invention discloses a method, a system, equipment and a storage medium for making directory quota compatible with snapshot, wherein the method comprises the following steps: responding to quota setting of the directory, and judging whether the directory is subjected to too-fast illumination operation or not; responding to the directory which is not subjected to the snapshot operation, constructing a snapshot domain for the directory and adding the snapshot domain into a snapshot tree; sequentially judging whether each node has a quota function from a root node of the snapshot tree; and in response to the presence node having quota functionality, determining a directory quota compatible snapshot. The method, the system, the equipment and the medium for making the directory quota compatible with the snapshot construct the snapshot domain for the directory and add the snapshot domain into the tree structure of the snapshot tree so that the directory quota can be compatible with the snapshot.

Description

Method, system, device and medium for making directory quota compatible with snapshot
Technical Field
The present invention relates to the field of storage systems, and more particularly, to a method, system, computer device, and readable medium for making a directory quota compatible with a snapshot.
Background
Currently, with the advent of the data age, the amount of data that needs to be stored in daily life is increasing, and in this context, network storage technology is beginning to be widely used.
The distributed file system is an important component in the network storage technology and can provide file system resource services for multiple users. The distributed file system can distribute a certain amount of disk space for each client, and when the usage amount of the disk space on a certain client exceeds the corresponding disk quota, the distributed file system can limit the usage of the disk space by the client, so that the purpose of controlling the disk space can be achieved. However, after the file system sets the quota in the prior art, the snapshot function cannot be used normally.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer-readable storage medium for making a directory quota compatible with a snapshot, where a snapshot domain is constructed for a directory, and the snapshot domain is added to a tree structure of a snapshot tree, so that the directory quota can be compatible with the snapshot.
Based on the above object, an aspect of the embodiments of the present invention provides a method for making a directory quota compatible with a snapshot, including the following steps: responding to quota setting on a directory, and judging whether the directory performs an oversnapshot operation; responding to the directory not to be subjected to the snapshot operation, constructing a snapshot domain for the directory and adding the snapshot domain into the snapshot tree; sequentially judging whether each node has a quota function from a root node of the snapshot tree; and in response to the presence node having quota functionality, determining the directory quota compatible snapshot.
In some embodiments, the determining whether the directory performs the snapshot operation comprises: and judging whether the directory belongs to the node directory on the snapshot tree.
In some embodiments, the sequentially determining, from a root node of the snapshot tree, whether each node has a quota function includes: judging whether the current node is set with a snapshot or not; and in response to the current node setting the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
In some embodiments, further comprising: and sending the quota setting request to a metadata server, and carrying out corresponding metadata processing by the metadata server according to the quota setting request.
In another aspect of the embodiments of the present invention, a system for making a directory quota compatible with a snapshot is further provided, including: the first judgment module is configured to respond to quota setting on the directory and judge whether the directory performs the snapshot operation or not; the constructing module is configured to respond to the fact that the directory does not have the snapshot operation, construct a snapshot domain for the directory and add the snapshot domain to the snapshot tree; the second judging module is configured to sequentially judge whether each node has a quota function from a root node of the snapshot tree; and a verification module configured to determine the directory quota compatible snapshot in response to the presence node having a quota function.
In some embodiments, the first determining module is further configured to: and judging whether the directory belongs to the node directory on the snapshot tree.
In some embodiments, the second determining module is further configured to: judging whether the current node is set with a snapshot or not; and in response to the current node setting the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
In some embodiments, further comprising: and the quota setting module is configured to send a quota setting request to the metadata server, and the metadata server performs corresponding metadata processing according to the quota setting request.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: by constructing a snapshot domain for the directory and adding the snapshot domain to the tree structure of the snapshot tree, the directory quota can be compatible with the snapshot.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of a method for making a directory quota compatible with a snapshot according to the present invention;
fig. 2 is a schematic hardware structure diagram of an embodiment of the method for making the directory quota compatible with the snapshot provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for making directory quotas compatible with snapshots. Fig. 1 is a schematic diagram illustrating an embodiment of a method for making directory quotas compatible with snapshots provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, responding to quota setting of the directory, and judging whether the directory performs the snapshot operation or not;
s2, responding to the fact that the directory does not have the snapshot operation, constructing a snapshot domain for the directory and adding the snapshot domain into the snapshot tree;
s3, sequentially judging whether each node has a quota function from the root node of the snapshot tree; and
and S4, responding to the existence node having quota function, and determining the directory quota compatible snapshot.
And responding to quota setting of the directory, and judging whether the directory performs the snapshot operation. In some embodiments, the determining whether the directory performs the snapshot operation comprises: and judging whether the directory belongs to the node directory on the snapshot tree.
In some embodiments, further comprising: and sending the quota setting request to a metadata server, and carrying out corresponding metadata processing by the metadata server according to the quota setting request. When quota setting is performed on a directory, a request for quota setting is sent to an MDS (metadata server), and the MDS performs corresponding metadata processing.
And in response to the directory not being subjected to the snapshot operation, constructing a snapshot domain for the directory and adding the snapshot domain to the snapshot tree. A snapshot domain is a structure that manages snapshot metadata. A snapshot-present domain does not represent that the actual snapshot creation operation was performed. If the directory does not exist in each node on the snapshot tree (i.e. no snapshot operation is performed), a snapshot domain is created for the directory, which can be added to the snapshot tree structure of the MDS.
And sequentially judging whether each node has a quota function from the root node of the snapshot tree. In some embodiments, the sequentially determining, from a root node of the snapshot tree, whether each node has a quota function includes: judging whether the current node is set with a snapshot or not; and in response to the current node setting the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
Determining the directory quota compatible snapshot in response to the presence node having quota functionality.
When quota check is carried out, each node of the snapshot tree on the path is checked, so that the use of the snapshot function under the quota function is met. For example, when accessing a directory or a file, each node that needs to acquire a quota is used to determine whether an operation satisfies a quota condition.
In the first case, when the directory of operations has not set a snapshot. If the quota is set for the directory at the same time, quota check needs to be performed on the directory. And if the directory does not set the quota, continuously traversing each node on the path of the snapshot tree.
In the second case, when the directory of operations is set to snapshot. And continuously traversing whether the quota is set by the superior node of the snapshot tree or not, and not judging the current node.
In the third case, when the operation is a file, the processing is performed according to the method of the first case.
It should be particularly noted that, steps in the embodiments of the method for making the directory quota compatible snapshot may be intersected, replaced, added, and deleted, so that these methods for making the directory quota compatible snapshot that are reasonably transformed by permutation and combination also belong to the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a system for making directory quotas compatible with snapshots, including: the first judgment module is configured to respond to quota setting on the directory and judge whether the directory performs the snapshot operation or not; the constructing module is configured to respond to the fact that the directory does not have the snapshot operation, construct a snapshot domain for the directory and add the snapshot domain to the snapshot tree; the second judging module is configured to sequentially judge whether each node has a quota function from a root node of the snapshot tree; and a verification module configured to determine the directory quota compatible snapshot in response to the presence node having a quota function.
In some embodiments, the first determining module is further configured to: and judging whether the directory belongs to a node directory on the snapshot tree or not.
In some embodiments, the second determining module is further configured to: judging whether the current node is set with a snapshot or not; and in response to the current node setting the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
In some embodiments, further comprising: and the quota setting module is configured to send a quota setting request to the metadata server, and the metadata server performs corresponding metadata processing according to the quota setting request.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, responding to quota setting of the directory, and judging whether the directory performs the snapshot operation or not; s2, responding to the fact that the directory does not have the snapshot operation, constructing a snapshot domain for the directory and adding the snapshot domain into the snapshot tree; s3, sequentially judging whether each node has a quota function from the root node of the snapshot tree; and S4, responding to the existence node having quota function, determining the directory quota compatible snapshot.
In some embodiments, the determining whether the directory is subjected to the snapshot operation comprises: and judging whether the directory belongs to the node directory on the snapshot tree.
In some embodiments, the sequentially determining, from a root node of the snapshot tree, whether each node has a quota function includes: judging whether the current node is set with a snapshot or not; and in response to the current node setting the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
In some embodiments, further comprising: and sending the quota setting request to a metadata server, and carrying out corresponding metadata processing by the metadata server according to the quota setting request.
Fig. 2 is a schematic hardware structural diagram of an embodiment of the method for making the directory quota compatible with the snapshot according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 302 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for making directory quota compatible with snapshot in this embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 302, that is, implements the method for making the directory quota compatible with the snapshot of the above method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of making the directory quota compatible with the snapshot, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
One or more program instructions/modules corresponding to the method for making the directory quota compatible snapshot are stored in the memory 302, and when executed by the processor 301, perform the method for making the directory quota compatible snapshot in any of the above-described method embodiments.
Any embodiment of a computer device that performs the above method for making directory quotas compatible with snapshots can achieve the same or similar effects as any of the above method embodiments that correspond thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate, all or part of the processes in the methods of the above embodiments may be implemented by a computer program to instruct related hardware, so that the program of the method for making the directory quota compatible with the snapshot may be stored in a computer readable storage medium, and when executed, the program may include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (6)

1. A method for making directory quotas compatible with snapshots, comprising the steps of:
responding to quota setting on a directory, and judging whether the directory performs an oversnapshot operation;
responding to the directory without carrying out the snapshot operation, constructing a snapshot domain for the directory and adding the snapshot domain into a snapshot tree;
sequentially judging whether each node has a quota function from a root node of the snapshot tree; and
in response to a presence node having a quota function, determining the directory quota-compatible snapshot;
wherein the judging whether the directory performs the snapshot operation comprises:
judging whether the directory belongs to a node directory on a snapshot tree or not;
the sequentially judging whether each node has a quota function from the root node of the snapshot tree comprises:
judging whether the current node is set with a snapshot or not; and
and in response to the fact that the current node has set the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
2. The method of claim 1, further comprising:
and sending the quota setting request to a metadata server, and carrying out corresponding metadata processing by the metadata server according to the quota setting request.
3. A system for making directory quotas compatible snapshots, comprising:
the first judgment module is configured to respond to quota setting on the directory and judge whether the directory performs an overquick photo operation;
the constructing module is configured to respond to the fact that the directory does not have the snapshot operation, construct a snapshot domain for the directory and add the snapshot domain to a snapshot tree;
the second judging module is configured to sequentially judge whether each node has a quota function from a root node of the snapshot tree; and
a verification module configured to determine the directory quota compatible snapshot in response to a presence node having a quota function;
wherein the first determining module is further configured to:
judging whether the directory belongs to a node directory on a snapshot tree or not;
the second determining module is further configured to:
judging whether the current node is set with a snapshot or not; and
and in response to the fact that the current node has set the snapshot, stopping the judgment of the quota function of the current node, and continuously judging whether a superior node of the current node has the quota function.
4. The system of claim 3, further comprising:
and the quota setting module is configured to send a quota setting request to the metadata server, and the metadata server performs corresponding metadata processing according to the quota setting request.
5. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1-2.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-2.
CN202010094727.6A 2020-02-16 2020-02-16 Method, system, device and medium for making directory quota compatible with snapshot Active CN111309264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010094727.6A CN111309264B (en) 2020-02-16 2020-02-16 Method, system, device and medium for making directory quota compatible with snapshot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010094727.6A CN111309264B (en) 2020-02-16 2020-02-16 Method, system, device and medium for making directory quota compatible with snapshot

Publications (2)

Publication Number Publication Date
CN111309264A CN111309264A (en) 2020-06-19
CN111309264B true CN111309264B (en) 2022-08-09

Family

ID=71154702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010094727.6A Active CN111309264B (en) 2020-02-16 2020-02-16 Method, system, device and medium for making directory quota compatible with snapshot

Country Status (1)

Country Link
CN (1) CN111309264B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860487A (en) * 2021-02-09 2021-05-28 山东英信计算机技术有限公司 Method, system, device and medium for copying volume shadow
CN114860350B (en) * 2022-07-07 2022-10-28 杭州子默网络科技有限公司 Data processing method and device based on cloud diskless tree-like mirror image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8554809B1 (en) * 2011-05-26 2013-10-08 Emc Corporation Calculating quota usage without impacting file system services
CN107480242A (en) * 2017-08-10 2017-12-15 郑州云海信息技术有限公司 A kind of method and system of establishment file system snapshot tree
CN108829813A (en) * 2018-06-06 2018-11-16 郑州云海信息技术有限公司 A kind of File Snapshot method and system based on distributed memory system
CN109684273A (en) * 2019-01-07 2019-04-26 郑州云海信息技术有限公司 A kind of snapshot management method, apparatus, equipment and readable storage medium storing program for executing
CN110674102A (en) * 2019-09-29 2020-01-10 北京浪潮数据技术有限公司 Method, system, device and storage medium for distributed file system directory quota

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8554809B1 (en) * 2011-05-26 2013-10-08 Emc Corporation Calculating quota usage without impacting file system services
CN107480242A (en) * 2017-08-10 2017-12-15 郑州云海信息技术有限公司 A kind of method and system of establishment file system snapshot tree
CN108829813A (en) * 2018-06-06 2018-11-16 郑州云海信息技术有限公司 A kind of File Snapshot method and system based on distributed memory system
CN109684273A (en) * 2019-01-07 2019-04-26 郑州云海信息技术有限公司 A kind of snapshot management method, apparatus, equipment and readable storage medium storing program for executing
CN110674102A (en) * 2019-09-29 2020-01-10 北京浪潮数据技术有限公司 Method, system, device and storage medium for distributed file system directory quota

Also Published As

Publication number Publication date
CN111309264A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN110427342B (en) Method, equipment and readable medium for creating mirror library
CN111177043B (en) Method, system, device and medium for accelerating reading of field replaceable unit information
CN110266505B (en) Method and equipment for managing session group
CN111708484A (en) Method, system, device and medium for controlling data brushing speed
CN111240595A (en) Method, system, equipment and medium for optimizing storage cache
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN111708834A (en) Method, system, equipment and medium for synchronizing service configuration data
CN109446093B (en) Method and device for testing expansion platform interface
CN111104232A (en) Method, device and medium for accelerating message writing of message queue
CN110781156A (en) Data node distribution method, equipment and medium
CN111708482B (en) Method, system, device and medium for limiting bandwidth in distributed storage
CN111147340A (en) Method, equipment and medium for carrying out networked access on CAN bus interface
CN111708664A (en) Log management method, device and medium for client
CN110647423B (en) Method, device and readable medium for creating storage volume mirror image based on application
CN111193677B (en) Method, device and medium for attributing FC (fiber channel) port of host to corresponding host
CN111176904B (en) Method, system, equipment and medium for data backup under private cloud architecture
CN111355716B (en) Method, system, equipment and medium for determining unique identifier of virtual machine
CN111045989A (en) Method, device and medium for querying CPLD version information
CN109240621B (en) Nonvolatile internal memory management method and device
CN107562790B (en) Method and system for realizing batch warehousing of data processing
CN111291007A (en) File aggregation method, system, device and medium
CN110659035A (en) Method and device for batch mounting of mirror images based on BMC
CN111722959B (en) Method, system, equipment and medium for expanding storage pool
CN111858538B (en) Method, device, equipment and medium for configuring BeeGFS quota by cluster
CN111858314B (en) Method, system, equipment and medium for state management of vue

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