CN107506440A - A kind of quota method and device of distributed system catalogue - Google Patents

A kind of quota method and device of distributed system catalogue Download PDF

Info

Publication number
CN107506440A
CN107506440A CN201710735228.9A CN201710735228A CN107506440A CN 107506440 A CN107506440 A CN 107506440A CN 201710735228 A CN201710735228 A CN 201710735228A CN 107506440 A CN107506440 A CN 107506440A
Authority
CN
China
Prior art keywords
attribute
catalogue
create
request
quota
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
CN201710735228.9A
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 CN201710735228.9A priority Critical patent/CN107506440A/en
Publication of CN107506440A publication Critical patent/CN107506440A/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/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • 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/144Query formulation
    • 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

Landscapes

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

Abstract

The invention discloses a kind of quota method and device of distributed system catalogue, quantitative attribute and quota attribute including adding catalogue in directory attribute in advance, quantitative attribute is the actual quantity sum of the first level subdirectory in the actual quantity and catalogue of the file in catalogue, and quota attribute is the maximum for allowing quantitative attribute to reach;The request to create of new directory or new file is received, request to create includes the title of the upper level catalogue of new directory or new file accordingly;According to the quantitative attribute of upper level catalogue and quota attribute corresponding to name acquiring request to create and both are compared, when the quantitative attribute of upper level catalogue corresponding to request to create is less than quota attribute, performs and create operation and the quantitative attribute of upper level catalogue corresponding to request to create is increased into currently practical total quantity when creating successfully.It can be seen that present invention limits the total quantity of the first level subdirectory of catalogue and file, so as to shorten the time of traversal retrieval, the speed of traversal retrieval is improved.

Description

A kind of quota method and device of distributed system catalogue
Technical field
The present invention relates to data retrieval technology field, more particularly to the quota method and dress of a kind of distributed system catalogue Put.
Background technology
With the development of information age, explosive increase is presented in data, by handle these data can obtain it is valuable Information.It is most important to data processing and data retrieval is the premise of data processing.Data retrieval is the need according to user Want, the data of user's needs are gone out from the extracting data of database purchase.In distributed file system, data retrieval is mainly Traversal retrieval is carried out to the data of database purchase by destination path, if the file under the catalogue or catalogue in destination path Quantity is excessive, can increase the time of traversal retrieval, so as to reduce the speed of traversal retrieval.
Therefore, how to provide a kind of scheme for solving above-mentioned technical problem is that those skilled in the art needs to solve at present The problem of.
The content of the invention
It is an object of the invention to provide a kind of quota method and device of distributed system catalogue, pass through the quantity category of catalogue Property and quota attribute the first level subdirectory of the catalogue in distributed file system and the total quantity of file are limited, so as to The time of traversal retrieval is shortened, improves the speed of traversal retrieval.
In order to solve the above technical problems, the invention provides a kind of quota method of distributed system catalogue, including:
The quantitative attribute and quota attribute of catalogue are added in directory attribute in advance, wherein, the quantitative attribute is described The actual quantity sum of the actual quantity of file in catalogue and the first level subdirectory in the catalogue, the quota attribute are fair Perhaps the maximum that described quantitative attribute reaches;
The request to create of new directory or new file is received, the request to create includes the new directory or institute accordingly State the title of the upper level catalogue of new file;
According to the quantitative attribute of upper level catalogue and quota attribute corresponding to request to create described in the name acquiring and right Both are compared, and when the quantitative attribute of upper level catalogue corresponding to the request to create is less than quota attribute, perform establishment Operate and the quantitative attribute of upper level catalogue corresponding to the request to create is increased into currently practical sum when creating successfully Amount.
Preferably, the process of the quantitative attribute and quota attribute for adding catalogue in directory attribute in advance is specially:
The quantitative attribute of catalogue and quota attribute are added into structure in advance;
The structure is encoded and the structure after coding is added to the directory attribute of the catalogue;
The then quantitative attribute and quota category of upper level catalogue corresponding to the request to create according to the name acquiring The process of property is specially:
The upper level catalogue according to corresponding to the title determines the request to create;
Pair determine upper level catalogue directory attribute in coding after structure decode, obtain the establishment please The quantitative attribute and quota attribute of upper level catalogue corresponding to asking.
Preferably, perform create operation after, when creating successfully by upper level mesh corresponding to the request to create The quantitative attribute of record is increased to before currently practical total quantity, and this method also includes:
Error message is returned when creating failure.
Preferably, the process of the return error message when creating failure is specially:
When the quantitative attribute of upper level catalogue corresponding to the request to create is more than or equal to quota attribute, mistake letter is returned Breath.
Preferably, the process of the return error message when creating failure is specially:
Error message is returned when performing and creating operation failure.
Preferably, this method also includes:
Receive current directory or the removal request of current file, the removal request includes the current directory accordingly Or the title of the upper level catalogue of the current file;
And please by the deletion according to the quantitative attribute of upper level catalogue corresponding to removal request described in the name acquiring The quantitative attribute of upper level catalogue is decreased to currently practical total quantity corresponding to asking.
In order to solve the above technical problems, present invention also offers a kind of quota device of distributed system catalogue, including:
Adding device, for the quantitative attribute and quota attribute of catalogue to be added in directory attribute in advance, wherein, the number It is the actual quantity of file and the actual quantity sum of the first level subdirectory in the catalogue in the catalogue to measure attribute, described The maximum that quota attribute reaches for the permission quantitative attribute;
Receiving unit, for receiving the request to create of new directory or new file, the request to create includes institute accordingly State the title of the upper level catalogue of new directory or the new file;
Execution unit, for the quantitative attribute of upper level catalogue corresponding to the request to create according to the name acquiring and Quota attribute is simultaneously compared to both, when the quantitative attribute of upper level catalogue corresponding to the request to create is less than quota attribute When, perform to create operation and increase to the quantitative attribute of upper level catalogue corresponding to the request to create when creating successfully and work as Preceding substantial amt amount.
Preferably, the process of the quantitative attribute and quota attribute for adding catalogue in directory attribute in advance is specially:
The quantitative attribute of catalogue and quota attribute are added into structure in advance;
The structure is encoded and the structure after coding is added to the directory attribute of the catalogue;
The then quantitative attribute and quota category of upper level catalogue corresponding to the request to create according to the name acquiring The process of property is specially:
The upper level catalogue according to corresponding to the title determines the request to create;
Pair determine upper level catalogue directory attribute in coding after structure decode, obtain the establishment please The quantitative attribute and quota attribute of upper level catalogue corresponding to asking.
Preferably, the device also includes:
Returning unit, for returning to error message when creating failure.
Preferably, the returning unit is specifically used for when the quantitative attribute of upper level catalogue corresponding to the request to create is big When equal to quota attribute, error message is returned.
The invention provides a kind of quota method of distributed system catalogue, including catalogue is added in directory attribute in advance Quantitative attribute and quota attribute, wherein, quantitative attribute be catalogue in file actual quantity and catalogue in one-level specific item The actual quantity sum of record, the maximum that quota attribute reaches for permission quantitative attribute;Receive the wound of new directory or new file Request is built, request to create includes the title of the upper level catalogue of new directory or new file accordingly;Created according to name acquiring The quantitative attribute of upper level catalogue and quota attribute corresponding to request are simultaneously compared to both, when corresponding to request to create upper one When the quantitative attribute of level catalogue is less than quota attribute, performs and create operation and when creating successfully by corresponding to request to create upper one The quantitative attribute of level catalogue increases to currently practical total quantity.
The quantitative attribute and quota attribute of present invention meeting predetermined directory, before new directory or new file is created, should first be obtained Know the upper level catalogue of new directory to be created or the upper level catalogue of new file to be created, then compare the upper level The quantitative attribute and quota attribute of catalogue, only when quantitative attribute is less than quota attribute, just perform and create operation.It can be seen that this Invention is by the quantitative attribute of catalogue and quota attribute to the first level subdirectory of the catalogue in distributed file system and file Total quantity is limited, and so as to shorten the time of traversal retrieval, improves the speed of traversal retrieval.
Present invention also offers a kind of quota device of distributed system catalogue, with above-mentioned quota method there is identical to have Beneficial effect.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to institute in prior art and embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the quota method of distributed system catalogue provided by the invention;
Fig. 2 is a kind of structural representation of the quota device of distributed system catalogue provided by the invention.
Embodiment
The core of the present invention is to provide a kind of quota method and device of distributed system catalogue, passes through the quantity category of catalogue Property and quota attribute the first level subdirectory of the catalogue in distributed file system and the total quantity of file are limited, so as to The time of traversal retrieval is shortened, improves the speed of traversal retrieval.
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 schematic flow sheet of the quota method of distributed system catalogue provided by the invention, This method includes:
Step S1:The quantitative attribute and quota attribute of catalogue are added in directory attribute in advance, wherein, quantitative attribute is mesh The actual quantity sum of first level subdirectory in the actual quantity and catalogue of file in record, quota attribute are permission quantitative attribute The maximum of arrival;
Specifically, the quantitative attribute and quota attribute of catalogue are pre-set, pre-setting here is set in advance, Only need to set once, later can be directly to use, unless the quantitative attribute and quota attribute of the catalogue set need basis Actual conditions are changed, and otherwise need not be reset.Here quantitative attribute refers to the actual quantity and mesh of the file in catalogue The actual quantity sum of first level subdirectory in record, quota attribute refer to the maximum for allowing quantitative attribute to reach.It can be seen that quota Attribute can limit quantitative attribute, that is, can be to the first level subdirectory in the actual quantity and catalogue of the file in catalogue Actual quantity sum is limited, and so as to shorten the time of traversal retrieval, improves the speed of traversal retrieval.
Before createing directory, it should the performance requirement of catalogue clearly to be created, that is to say, that clearly want in advance The catalogue of establishment is specifically used for which content recorded, in order to judge whether to be necessary the number to the file in the catalogue that is created Amount and the quantity sum of the first level subdirectory in the catalogue created are limited.If meeting the property of catalogue to be created In the case of requiring, the quantity of the first level subdirectory in the quantity of the file in the catalogue created and the catalogue created it It is more with comparing, the quantitative attribute of the catalogue pre-set and quota attribute can be now added to the catalogue of catalogue to be created Attribute.If in the case where meeting the performance requirement of catalogue to be created, the quantity of the file in the catalogue created and The quantity sum of first level subdirectory in the catalogue created is fewer, then need not be by the quantitative attribute of the catalogue pre-set The directory attribute of catalogue to be created is added to quota attribute.
Step S2:The request to create of new directory or new file is received, request to create includes new directory or new accordingly The title of the upper level catalogue of file;
Specifically, before new directory or new file is created, the wound of new directory or new file can be received accordingly Request is built, the title of upper level catalogue of the request to create accordingly including new directory or new file here, in order to basis Title determines upper level catalogue corresponding to request to create.
Step S3:According to the quantitative attribute of upper level catalogue and quota attribute corresponding to name acquiring request to create and to two Person is compared, and when the quantitative attribute of upper level catalogue corresponding to request to create is less than quota attribute, performs and creates operation simultaneously The quantitative attribute of upper level catalogue corresponding to request to create is increased into currently practical total quantity when creating successfully.
Specifically, the upper level catalogue first according to corresponding to title determines request to create, then can be asked with obtaining to create The quantitative attribute and quota attribute of upper level catalogue corresponding to asking.At the same time, the quantity category of the upper level catalogue of acquisition is compared Property and quota attribute, if obtain quantitative attribute be less than quota attribute, illustrate in upper level catalogue corresponding to request to create New directory or new file can also be created accordingly, are now performed and are created operation.If the quantitative attribute obtained is more than or equal to and matched somebody with somebody Volume attribute, illustrate that new directory or new file can not be created accordingly in upper level catalogue corresponding to request to create, do not hold now Row creates operation.
In order to ensure the accuracy of quantitative attribute, when creating successfully, by the number of upper level catalogue corresponding to request to create Amount attribute increases to currently practical total quantity.
The invention provides a kind of quota method of distributed system catalogue, including catalogue is added in directory attribute in advance Quantitative attribute and quota attribute, wherein, quantitative attribute be catalogue in file actual quantity and catalogue in one-level specific item The actual quantity sum of record, the maximum that quota attribute reaches for permission quantitative attribute;Receive the wound of new directory or new file Request is built, request to create includes the title of the upper level catalogue of new directory or new file accordingly;Created according to name acquiring The quantitative attribute of upper level catalogue and quota attribute corresponding to request are simultaneously compared to both, when corresponding to request to create upper one When the quantitative attribute of level catalogue is less than quota attribute, performs and create operation and when creating successfully by corresponding to request to create upper one The quantitative attribute of level catalogue increases to currently practical total quantity.
The quantitative attribute and quota attribute of present invention meeting predetermined directory, before new directory or new file is created, should first be obtained Know the upper level catalogue of new directory to be created or the upper level catalogue of new file to be created, then compare the upper level The quantitative attribute and quota attribute of catalogue, only when quantitative attribute is less than quota attribute, just perform and create operation.It can be seen that this Invention is by the quantitative attribute of catalogue and quota attribute to the first level subdirectory of the catalogue in distributed file system and file Total quantity is limited, and so as to shorten the time of traversal retrieval, improves the speed of traversal retrieval.
On the basis of above-described embodiment:
As a kind of preferred embodiment, the quantitative attribute of catalogue and the mistake of quota attribute are added in directory attribute in advance Journey is specially:
The quantitative attribute of catalogue and quota attribute are added into structure in advance;
Structure is encoded and the structure after coding is added to the directory attribute of catalogue;
Then the quantitative attribute of upper level catalogue and the process of quota attribute are specific according to corresponding to name acquiring request to create For:
The upper level catalogue according to corresponding to title determines request to create;
Pair determine upper level catalogue directory attribute in coding after structure decode, obtain request to create pair The quantitative attribute and quota attribute for the upper level catalogue answered.
Specifically, the quantitative attribute of catalogue and quota attribute are two independent attributes, and both are added to the mesh of catalogue , it is necessary to be separately encoded and the quantitative attribute after coding and quota attribute are added into directory attribute when recording attribute.When needing to obtain During quantitative attribute and quota attribute in the directory attribute of catalogue, by the quantitative attribute and quota after the coding in directory attribute Attribute decodes respectively, could obtain required quantitative attribute and quota attribute.
In order to avoid the operation repeatedly coded and decoded, the quantitative attribute of catalogue and quota attribute are added into structure in advance Body, then structure is encoded, at the same time, the structure after coding is added to the directory attribute of catalogue.The application The quantitative attribute of catalogue and quota attribute are combined in the form of structure, now two independent attributes equivalent to The attribute of one integration, it is only necessary to which the operation of first encoding and decoding can be to realize quantitative attribute and quota attribute accordingly Obtain and change, improve the performance of system.
As a kind of preferred embodiment, after establishment operation is performed, when creating successfully that request to create is corresponding The quantitative attribute of upper level catalogue increase to before currently practical total quantity, this method also includes:
Error message is returned when creating failure.
Specifically, when creating new directory or new file fails, error message is returned to, to remind user to create failure.
As a kind of preferred embodiment, the process that error message is returned when creating failure is specially:
When the quantitative attribute of upper level catalogue corresponding to request to create is more than or equal to quota attribute, error message is returned.
Specifically, if the quantitative attribute of upper level catalogue corresponding to request to create is more than or equal to quota attribute, namely not It can continue to create new directory or new file accordingly in upper level catalogue corresponding to request to create, now, return to mistake letter Breath.
As a kind of preferred embodiment, the process that error message is returned when creating failure is specially:
Error message is returned when performing and creating operation failure.
Specifically, if the quantitative attribute of upper level catalogue corresponding to request to create is less than quota attribute, establishment can be performed Operation, when performing establishment operation failure, return to error message.
As a kind of preferred embodiment, this method also includes:
Current directory or the removal request of current file are received, removal request includes current directory or current accordingly The title of the upper level catalogue of file;
According to the quantitative attribute of upper level catalogue corresponding to name acquiring removal request and upper one corresponding to by removal request The quantitative attribute of level catalogue is decreased to currently practical total quantity.
The application not only includes request to create, in addition to removal request.Specifically, current directory is received or ought be above The removal request of part, it is corresponding to delete current directory or current file.Here removal request includes current directory accordingly Or the title of the upper level catalogue of current file, the upper level catalogue according to corresponding to title can determine removal request, To obtain the quantitative attribute of the upper level catalogue determined.In order to ensure the accuracy of quantitative attribute, when deleting successfully, will obtain Quantitative attribute be decreased to currently practical total quantity.
Fig. 2 is refer to, Fig. 2 is a kind of structural representation of the quota device of distributed system catalogue provided by the invention, The device includes:
Adding device 1, for the quantitative attribute and quota attribute of catalogue to be added in directory attribute in advance, wherein, quantity Attribute is the actual quantity sum of the first level subdirectory in the actual quantity and catalogue of the file in catalogue, and quota attribute is permission The maximum that quantitative attribute reaches;
Receiving unit 2, for receiving the request to create of new directory or new file, request to create includes new directory accordingly Or the title of the upper level catalogue of new file;
Execution unit 3, for the quantitative attribute of upper level catalogue according to corresponding to name acquiring request to create and quota category Property is simultaneously compared to both, when the quantitative attribute of upper level catalogue corresponding to request to create is less than quota attribute, performs wound Build and operate and the quantitative attribute of upper level catalogue corresponding to request to create is increased into currently practical total quantity when creating successfully.
As a kind of preferred embodiment, the quantitative attribute of catalogue and the mistake of quota attribute are added in directory attribute in advance Journey is specially:
The quantitative attribute of catalogue and quota attribute are added into structure in advance;
Structure is encoded and the structure after coding is added to the directory attribute of catalogue;
Then the quantitative attribute of upper level catalogue and the process of quota attribute are specific according to corresponding to name acquiring request to create For:
The upper level catalogue according to corresponding to title determines request to create;
Pair determine upper level catalogue directory attribute in coding after structure decode, obtain request to create pair The quantitative attribute and quota attribute for the upper level catalogue answered.
As a kind of preferred embodiment, the device also includes:
Returning unit, for returning to error message when creating failure.
As a kind of preferred embodiment, returning unit is specifically used for the quantity when upper level catalogue corresponding to request to create When attribute is more than or equal to quota attribute, error message is returned.
Introduction for device provided by the invention refer to above method embodiment, and the present invention will not be repeated here.
It should also be noted that, in this manual, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of 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, it is of the 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 most wide scope caused.

Claims (10)

  1. A kind of 1. quota method of distributed system catalogue, it is characterised in that including:
    The quantitative attribute and quota attribute of catalogue are added in directory attribute in advance, wherein, the quantitative attribute is the catalogue In the actual quantity of file and the actual quantity sum of the first level subdirectory in the catalogue, the quota attribute be allow institute State the maximum of quantitative attribute arrival;
    The request to create of new directory or new file is received, the request to create includes the new directory or described new accordingly The title of the upper level catalogue of file;
    According to the quantitative attribute of upper level catalogue and quota attribute corresponding to request to create described in the name acquiring and to both It is compared, when the quantitative attribute of upper level catalogue corresponding to the request to create is less than quota attribute, performs and create operation And the quantitative attribute of upper level catalogue corresponding to the request to create is increased into currently practical total quantity when creating successfully.
  2. 2. according to the method for claim 1, it is characterised in that the quantity category for adding catalogue in directory attribute in advance Property and the process of quota attribute are specially:
    The quantitative attribute of catalogue and quota attribute are added into structure in advance;
    The structure is encoded and the structure after coding is added to the directory attribute of the catalogue;
    The then quantitative attribute of upper level catalogue corresponding to the request to create according to the name acquiring and quota attribute Process is specially:
    The upper level catalogue according to corresponding to the title determines the request to create;
    Pair determine upper level catalogue directory attribute in coding after structure decode, obtain the request to create pair The quantitative attribute and quota attribute for the upper level catalogue answered.
  3. 3. according to the method for claim 2, it is characterised in that perform create operation after, when creating successfully by The quantitative attribute of upper level catalogue is increased to before currently practical total quantity corresponding to the request to create, and this method also includes:
    Error message is returned when creating failure.
  4. 4. according to the method for claim 3, it is characterised in that the process tool that error message is returned when creating failure Body is:
    When the quantitative attribute of upper level catalogue corresponding to the request to create is more than or equal to quota attribute, error message is returned.
  5. 5. according to the method for claim 3, it is characterised in that the process tool that error message is returned when creating failure Body is:
    Error message is returned when performing and creating operation failure.
  6. 6. according to the method described in claim any one of 1-5, it is characterised in that this method also includes:
    Receive the removal request of current directory or current file, the removal request include accordingly the current directory or The title of the upper level catalogue of the current file;
    According to the quantitative attribute of upper level catalogue corresponding to removal request described in the name acquiring and by the removal request pair The quantitative attribute for the upper level catalogue answered is decreased to currently practical total quantity.
  7. A kind of 7. quota device of distributed system catalogue, it is characterised in that including:
    Adding device, for the quantitative attribute and quota attribute of catalogue to be added in directory attribute in advance, wherein, the quantity category Property be the catalogue in the actual quantity of file and the actual quantity sum of the first level subdirectory in the catalogue, the quota The maximum that attribute reaches for the permission quantitative attribute;
    Receiving unit, for receiving the request to create of new directory or new file, the request to create includes described new accordingly The title of the upper level catalogue of catalogue or the new file;
    Execution unit, quantitative attribute and quota for upper level catalogue corresponding to the request to create according to the name acquiring Attribute is simultaneously compared to both, when the quantitative attribute of upper level catalogue corresponding to the request to create is less than quota attribute, Perform to create and operate and increase to the quantitative attribute of upper level catalogue corresponding to the request to create currently when creating successfully Substantial amt amount.
  8. 8. device according to claim 7, it is characterised in that the quantity category for adding catalogue in directory attribute in advance Property and the process of quota attribute are specially:
    The quantitative attribute of catalogue and quota attribute are added into structure in advance;
    The structure is encoded and the structure after coding is added to the directory attribute of the catalogue;
    The then quantitative attribute of upper level catalogue corresponding to the request to create according to the name acquiring and quota attribute Process is specially:
    The upper level catalogue according to corresponding to the title determines the request to create;
    Pair determine upper level catalogue directory attribute in coding after structure decode, obtain the request to create pair The quantitative attribute and quota attribute for the upper level catalogue answered.
  9. 9. device according to claim 8, it is characterised in that the device also includes:
    Returning unit, for returning to error message when creating failure.
  10. 10. device according to claim 9, it is characterised in that the returning unit is specifically used for working as the request to create When the quantitative attribute of corresponding upper level catalogue is more than or equal to quota attribute, error message is returned.
CN201710735228.9A 2017-08-24 2017-08-24 A kind of quota method and device of distributed system catalogue Pending CN107506440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710735228.9A CN107506440A (en) 2017-08-24 2017-08-24 A kind of quota method and device of distributed system catalogue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710735228.9A CN107506440A (en) 2017-08-24 2017-08-24 A kind of quota method and device of distributed system catalogue

Publications (1)

Publication Number Publication Date
CN107506440A true CN107506440A (en) 2017-12-22

Family

ID=60692715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710735228.9A Pending CN107506440A (en) 2017-08-24 2017-08-24 A kind of quota method and device of distributed system catalogue

Country Status (1)

Country Link
CN (1) CN107506440A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388614A (en) * 2018-09-27 2019-02-26 郑州云海信息技术有限公司 A kind of method, system and the equipment of catalogue file number quota
CN109446177A (en) * 2018-11-02 2019-03-08 郑州云海信息技术有限公司 A kind of implementation method and device of distributive catalogue of document system file number quota
CN109783467A (en) * 2019-01-12 2019-05-21 郑州云海信息技术有限公司 A kind of nested directory file number quota setting method of distributed file system
CN111008176A (en) * 2018-10-08 2020-04-14 慧荣科技股份有限公司 Mobile device and method for using the same
CN111723069A (en) * 2020-06-09 2020-09-29 苏州浪潮智能科技有限公司 Quota management method, system, device and medium for distributed system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5713013A (en) * 1996-01-25 1998-01-27 Apple Computer, Inc. System for establishing and enforcing maximum size of directory by preventing the size of the directory from exceeding the set quota size of the directory
CN103064639A (en) * 2012-12-28 2013-04-24 华为技术有限公司 Method and device for storing data
CN103559231A (en) * 2013-10-23 2014-02-05 华为技术有限公司 File system quota managing method, device and system
CN104158858A (en) * 2014-07-29 2014-11-19 浪潮(北京)电子信息产业有限公司 Method and system for accessing distributed cluster file system
CN105159968A (en) * 2015-08-25 2015-12-16 浪潮(北京)电子信息产业有限公司 Directory management method for file system and client
CN105468989A (en) * 2014-09-04 2016-04-06 中国石油化工股份有限公司 Cloud storage quota management method based on Linux kernel monitoring
CN105677789A (en) * 2015-12-31 2016-06-15 浪潮(北京)电子信息产业有限公司 Method and system for managing directory capacity of distributed file system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5713013A (en) * 1996-01-25 1998-01-27 Apple Computer, Inc. System for establishing and enforcing maximum size of directory by preventing the size of the directory from exceeding the set quota size of the directory
CN103064639A (en) * 2012-12-28 2013-04-24 华为技术有限公司 Method and device for storing data
CN103559231A (en) * 2013-10-23 2014-02-05 华为技术有限公司 File system quota managing method, device and system
CN104158858A (en) * 2014-07-29 2014-11-19 浪潮(北京)电子信息产业有限公司 Method and system for accessing distributed cluster file system
CN105468989A (en) * 2014-09-04 2016-04-06 中国石油化工股份有限公司 Cloud storage quota management method based on Linux kernel monitoring
CN105159968A (en) * 2015-08-25 2015-12-16 浪潮(北京)电子信息产业有限公司 Directory management method for file system and client
CN105677789A (en) * 2015-12-31 2016-06-15 浪潮(北京)电子信息产业有限公司 Method and system for managing directory capacity of distributed file system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
腾逸: "Linux系统目录数和文件数限制", 《HTTPS://WWW.CNBLOGS.COM/ZT007/P/6639322.HTML》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388614A (en) * 2018-09-27 2019-02-26 郑州云海信息技术有限公司 A kind of method, system and the equipment of catalogue file number quota
CN111008176A (en) * 2018-10-08 2020-04-14 慧荣科技股份有限公司 Mobile device and method for using the same
CN109446177A (en) * 2018-11-02 2019-03-08 郑州云海信息技术有限公司 A kind of implementation method and device of distributive catalogue of document system file number quota
CN109446177B (en) * 2018-11-02 2022-03-22 郑州云海信息技术有限公司 Method and device for realizing number quota of directory files of distributed file system
CN109783467A (en) * 2019-01-12 2019-05-21 郑州云海信息技术有限公司 A kind of nested directory file number quota setting method of distributed file system
CN111723069A (en) * 2020-06-09 2020-09-29 苏州浪潮智能科技有限公司 Quota management method, system, device and medium for distributed system

Similar Documents

Publication Publication Date Title
CN107506440A (en) A kind of quota method and device of distributed system catalogue
CN107437215B (en) Book recommendation method based on labels
CN106682097A (en) Method and device for processing log data
CN106407407B (en) A kind of file labeling system and method
CN105868171B (en) A kind of method of calibration and device of Excel file
CN104239073B (en) Data maintenance system rapid prototyping development system and method
CN106682096A (en) Method and device for log data management
CN106776515A (en) The method and device of data processing
CN104699718A (en) Method and device for rapidly introducing business data
CN104361139A (en) Data importing device and method
CN109684332A (en) A kind of wide table generating method of data, apparatus and system
CN106649360B (en) Data repeatability checking method and device
CN110245145A (en) Structure synchronization method and apparatus of the relevant database to Hadoop database
CN106708965A (en) Data processing method and apparatus
CN104426868A (en) Request processing method and processing apparatus
CN109615172A (en) A kind of method and terminal handling examination data
CN106682099A (en) Data storage method and device
CN107247767A (en) A kind of method and device that database is imported by formatted data files
CN111581390A (en) Knowledge graph construction method and device and electronic equipment
CN112765601A (en) Website homepage structure monitoring method based on cloud
CN104268244B (en) Handle the method and device of list
CN110059303A (en) Excel file is converted to the method and device of JSON file
CN104142952A (en) Method and device for showing reports
KR101588375B1 (en) Method and system for managing database
CN107894973A (en) A kind of method for interchanging data and system based on XML

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: 20171222