CN109460370A - Distributed storage recycle bin data management method and related device - Google Patents
Distributed storage recycle bin data management method and related device Download PDFInfo
- Publication number
- CN109460370A CN109460370A CN201811239925.6A CN201811239925A CN109460370A CN 109460370 A CN109460370 A CN 109460370A CN 201811239925 A CN201811239925 A CN 201811239925A CN 109460370 A CN109460370 A CN 109460370A
- Authority
- CN
- China
- Prior art keywords
- data
- recycle bin
- index structure
- access request
- deleted
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000013523 data management Methods 0.000 title claims abstract description 10
- 238000012790 confirmation Methods 0.000 claims abstract description 15
- 238000012217 deletion Methods 0.000 claims description 25
- 230000037430 deletion Effects 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010276 construction Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000013500 data storage Methods 0.000 description 3
- 238000002955 isolation Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0253—Garbage collection, i.e. reclamation of unreferenced memory
- G06F12/0261—Garbage collection, i.e. reclamation of unreferenced memory using reference counting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0622—Securing storage systems in relation to access
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Storage Device Security (AREA)
Abstract
The application discloses a distributed storage recycle bin data management method, which comprises the following steps: when the deleted data is obtained, storing the deleted data in a corresponding index structure in a recycle bin according to the corresponding characteristic data; the index structure is obtained by classifying and constructing according to a plurality of characteristic data; when an access request of a recycle bin is received, judging whether the characteristic data of the access request is the same as the characteristic data corresponding to the index structure of the accessed deleted data; if yes, an access confirmation instruction is sent. Data in the recycle bin are stored in a distinguishing way through the characteristic data, so that deleted data of different characteristic data are isolated in the recycle bin, and the privacy of the recycle bin data is ensured. The application also discloses a distributed storage recycle bin data management device, a server and a computer readable storage medium, which have the beneficial effects.
Description
Technical field
This application involves field of computer technology, in particular to the recycle bin data managing method of a kind of distributed storage,
Recycle bin data administrator, server and computer readable storage medium.
Background technique
In distributed storage, storage system can generally provide data and accidentally delete the function of restoring, that is, data are deleted
After removing, data are stored in recycle bin.When need restore accidentally delete data when, it is only necessary to by data corresponding in recycle bin into
Row restores.
But in the prior art, after deletion data enter recycle bin, deleted data no longer have user's space
Concept, that is, each user it can be seen that in recycle bin be deleted data.Although deleted data are likely to be
The data not used, but also have no idea to guarantee the data privacy in storage system, reduce the data of storage system
Reliability.
Therefore, the Important Problems that the data privacy of storage system is those skilled in the art's concern how to be improved.
Summary of the invention
The purpose of the application is to provide a kind of recycle bin data managing method of distributed storage, recycle bin data management dress
It sets, server and computer readable storage medium, the data in recycle bin is carried out by difference storage by characteristic, realize
The deleted data of different characteristic data are isolated in recycle bin, ensure that the privacy of recycle bin data.
In order to solve the above technical problems, the application provides a kind of recycle bin data managing method of distributed storage, comprising:
When getting deleted data, the deleted data are stored in recycle bin according to corresponding characteristic
Under corresponding index structure;Wherein, the index structure classify constructing and obtain according to multiple characteristics;
When receiving the access request of the recycle bin, the characteristic and accessed deletion of the access request are judged
Whether the corresponding characteristic of the index structure of data is identical;
If so, sending confirmation access instruction.
Optionally, when getting deleted data, the deleted data are stored according to corresponding characteristic
In recycle bin under corresponding index structure, comprising:
When getting the deleted data, the user information of the deleted data is obtained;
The deleted data are stored under the corresponding index structure of user information described in the recycle bin;
Correspondingly, judging the characteristic and quilt of the access request when receiving the access request of the recycle bin
Whether the corresponding characteristic of index structure that data are deleted in access is identical, comprising:
When receiving the access request of the recycle bin, the user information and accessed deletion of the access request are judged
Whether the corresponding user information of the index structure of data is identical.
Optionally, when getting deleted data, the deleted data are stored according to corresponding characteristic
In recycle bin under corresponding index structure, comprising:
When getting the deleted data, the resource category information of the deleted data is obtained;
The deleted data are stored under the corresponding index structure of resource category information described in the recycle bin;
Correspondingly, judging the characteristic and quilt of the access request when receiving the access request of the recycle bin
Whether the corresponding characteristic of index structure that data are deleted in access is identical, comprising:
When receiving the access request of the recycle bin, judges the resource category information of the access request and be accessed
Whether the corresponding resource category information of index structure for deleting data is identical.
Optionally, when getting deleted data, the deleted data are stored according to corresponding characteristic
In recycle bin under corresponding index structure, comprising:
When getting the deleted data, the access right information of the deleted data is obtained;
The deleted data are stored under the corresponding index structure of access right information described in the recycle bin;
Correspondingly, judging the characteristic and quilt of the access request when receiving the access request of the recycle bin
Whether the corresponding characteristic of index structure that data are deleted in access is identical, comprising:
When receiving the access request of the recycle bin, judges the access right information of the access request and be accessed
Whether the corresponding access right information of index structure for deleting data is identical.
The application also provides a kind of recycle bin data administrator of distributed storage, comprising:
Data record module, for being deleted described according to corresponding characteristic when getting deleted data
Data are stored in recycle bin under corresponding index structure;Wherein, the index structure is to be divided according to multiple characteristics
What class constructed;
Data access judgment module, for judging the access request when receiving the access request of the recycle bin
Characteristic with whether accessed to delete the corresponding characteristic of the index structure of data identical;
Access confirmation module, for when the characteristic of the access request and the index structure pair of accessed deletion data
When the characteristic answered is identical, confirmation access instruction is sent.
Optionally, which is characterized in that the data record module, comprising:
User information acquiring unit, for obtaining the use of the deleted data when getting the deleted data
Family information;
It is recycled unit, it is corresponding for the deleted data to be stored in user information described in the recycle bin
Under index structure;
Correspondingly, the data access judgment module, specifically for sentencing when receiving the access request of the recycle bin
Whether the user information for the access request of breaking user information corresponding with the accessed deletion index structure of data is identical.
Optionally, the data record module, comprising:
Resource category information acquiring unit, for obtaining the deleted data when getting the deleted data
Resource category information;
It is recycled unit, for the deleted data to be stored in resource category information pair described in the recycle bin
Under the index structure answered;
Correspondingly, the data access judgment module, specifically for sentencing when receiving the access request of the recycle bin
Whether the resource category information for the access request of breaking resource category information corresponding with the accessed deletion index structure of data
It is identical.
Optionally, the data record module, comprising:
Access right information acquisition unit, for obtaining the deleted data when getting the deleted data
Access right information;
It is recycled unit, for the deleted data to be stored in access right information pair described in the recycle bin
Under the index structure answered;
Correspondingly, the data access judgment module, specifically for sentencing when receiving the access request of the recycle bin
Whether the access right information for the access request of breaking access right information corresponding with the accessed deletion index structure of data
It is identical.
The application also provides a kind of server, comprising:
Memory, for storing computer program;
Processor realizes the step of recycle bin data managing method as described above when for executing the computer program
Suddenly.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
The step of machine program, the computer program realizes recycle bin data managing method as described above when being executed by processor.
The recycle bin data managing method of a kind of distributed storage provided herein, comprising: deleted when getting
When data, the deleted data are stored in recycle bin under corresponding index structure according to corresponding characteristic;Wherein,
The index structure carries out classification construction according to multiple characteristics and obtains;When the access request for receiving the recycle bin
When, judge the characteristic of the access request with it is accessed delete the corresponding characteristic of the index structure of data whether phase
Together;If so, sending confirmation access instruction.
By being deleted the corresponding characteristic of data, by deleted data according to corresponding index structure in recycle bin
It is stored, when deleted data are accessed, judges the characteristic of access request and characteristic corresponding in index structure
According to whether identical, to determine that this is deleted whether data should be accessed, realize different characteristic data in recycle bin
Deleted data are isolated, and ensure that the privacy of data in recycle bin, improve the reliability of data storage.
The application also provides the recycle bin data administrator of distributed storage a kind of, server and computer-readable deposits
Storage media has the above beneficial effect, and this will not be repeated here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the recycle bin data managing method of distributed storage provided by the embodiment of the present application;
Fig. 2 is the process of the recycle bin data managing method of another distributed storage provided by the embodiment of the present application
Figure;
Fig. 3 is the process of the recycle bin data managing method of also a kind of distributed storage provided by the embodiment of the present application
Figure;
Fig. 4 is the process of the recycle bin data managing method of another distributed storage provided by the embodiment of the present application
Figure;
Fig. 5 is a kind of structural representation of the recycle bin data administrator of distributed storage provided by the embodiment of the present application
Figure.
Specific embodiment
The core of the application is to provide a kind of recycle bin data managing method of distributed storage, recycle bin data management dress
It sets, server and computer readable storage medium, the data in recycle bin is carried out by difference storage by characteristic, realize
The deleted data of different characteristic data are isolated in recycle bin, ensure that the privacy of recycle bin data.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the prior art, after deletion data enter recycle bin, deleted data no longer have the general of user's space
It reads, that is, each user is it can be seen that the data being deleted in recycle bin.Although deleted data are likely to be no longer
The data used, but also have no idea to guarantee the data privacy in storage system, the data for reducing storage system are reliable
Property.
Therefore, the embodiment of the present application provides a kind of recycle bin data managing method of distributed storage, by being deleted number
According to corresponding characteristic, deleted data are stored in recycle bin according to corresponding index structure, are counted when being deleted
According to it is accessed when, judge whether the characteristic of access request and characteristic corresponding in index structure identical, to determine
This is deleted whether data should be accessed, and the deleted data of different characteristic data are isolated in recycle bin for realization,
The privacy that ensure that data in recycle bin improves the reliability of data storage.
Specifically, referring to FIG. 1, Fig. 1 is a kind of recycle bin data of distributed storage provided by the embodiment of the present application
The flow chart of management method.
This method may include:
Deleted data are stored in recycle bin according to corresponding characteristic when getting deleted data by S101
In under corresponding index structure;Wherein, index structure classify constructing and obtain according to multiple characteristics;
This step is intended to when deleting data, obtains the characteristic for being deleted data, deleted data are stored in this
Under the corresponding index structure of characteristic.It is namely in recycle bin that deleted data are corresponding according to different characteristics
Index structure is stored.
Wherein, index structure is mainly and carries out classification construction according to multiple characteristics to obtain.For example, in application environment
In have characteristic A, characteristic B and characteristic C, then index structure, spy in recycle bin with regard to construction feature data A
Levy the index structure of data B and the index structure of characteristic C.When recycle bin is got, characteristic B is corresponding to be deleted
When data, this is deleted data and is just stored under the index structure of characteristic B.
Wherein, characteristic signified in this step can be also possible to resource category information, can also be with user information
Access right information, and can determine that characteristic is what is corresponded to construct in recycle bin according to specific use environment
Index structure.It can be seen that the concrete form of characteristic is not unique in this step, it is not specifically limited herein.
It should be noted that the index structure main purpose in the present embodiment is to be arranged to be deleted data and characteristic
Corresponding relationship, that is, using this feature data as index, the deleted data under the index structure have been corresponded to by the index.
S102 judges the characteristic of access request and is accessed to delete number when receiving the access request of recycle bin
According to the corresponding characteristic of index structure it is whether identical;If so, executing S103;If it is not, then executing S104;
On the basis of S101, that is, the basis that the data in recycle bin are stored according to corresponding index structure
On, when the data in recycle bin are accessed, that is, when receiving access request, judge the corresponding characteristic of access request
It is whether identical as the characteristic of accessed data.
It should be noted that the deleted data in the present embodiment do not carry characteristic, therefore when judging, be by
The characteristic of access request and the characteristic of the accessed index structure for deleting data are judged.Namely from accessed
It deletes in the index structure of data and obtains characteristic, judged further according to the characteristic of the index structure, avoided pair
Deleted data are modified, and improve exploitativeness, reduce maintenance difficulties.
Wherein, the corresponding characteristic of access request can directly be obtained from access request, can also be according to visit
It asks that request is obtained in systems, suitable acquisition modes can also be selected according to the type of characteristic, for example, working as feature
Data be user information when, due to generally will include in access request request sender user information, then can directly from
User information is got in access request, then is judged, is reduced the time of acquisition of information, and raising judges speed.
S103 sends confirmation access instruction;
On the basis of step S102, this step is intended to the characteristic of access request and the index of accessed deletion data
When the corresponding characteristic of structure is identical, confirmation access instruction is sent, that is, determines that data access can be carried out.In subsequent step
Data access is carried out further according to the determination access instruction in rapid, to get corresponding data.
S104 sends access failure command.
On the basis of step S102, this step is intended to the characteristic of access request and the index of accessed deletion data
When the corresponding characteristic of structure is not identical, access failure command is sent, that is, determine that data access can not be carried out at this time.It keeps away
Exempted from characteristic it is not identical when data access scenarios, realization the data in recycle bin are isolated according to characteristic,
Improve the privacy of data access.
Optionally, the characteristic in the present embodiment is also used as user index, can also be used as resource index, or
It is other any index datas for semantically needing to state, increases the expansible new of characteristic.
To sum up, the present embodiment by be deleted the corresponding characteristic of data, by deleted data in recycle bin according to
Corresponding index structure is stored, and when deleted data are accessed, judges the characteristic and index structure of access request
In corresponding characteristic it is whether identical, so as to determine this be deleted data whether should be accessed, realize in recycle bin will
The deleted data of different characteristic data are isolated, and ensure that the privacy of data in recycle bin, improve data storage
Reliability.
On the basis of Fig. 1 corresponding embodiment, the present embodiment is mainly the particular content for limiting characteristic, other portions
Divide being substantially the same for embodiment corresponding with Fig. 1, same section can refer to the corresponding embodiment of Fig. 1, and this will not be repeated here.
Referring to FIG. 2, Fig. 2 is the recycle bin data management side of another distributed storage provided by the embodiment of the present application
The flow chart of method.
Characteristic in embodiment is mainly limited to user information by the present embodiment, by deleted data according to the use
Family information is stored in recycle bin under corresponding index structure, when accessing to deleted data, by judging that user believes
Breath determines whether to access, to guarantee the isolation and privacy of data in recycle bin.
Specifically, this method may include:
S201 obtains the user information for being deleted data when getting deleted data;
This step is intended to obtain the user information for being deleted data when getting deleted data.
Wherein, it is mainly what executor issued due to deleting data, when getting deleted data, naturally can
To get corresponding user information.Can also be according to obtain be deleted data path, find order transmission device,
System or account, then get corresponding user information.It can also be obtained using any one user information that the prior art provides
Take method.As it can be seen that the mode for obtaining user information in this step is not unique, so being not specifically limited herein.
Deleted data are stored under the corresponding index structure of user information in recycle bin by S202;
On the basis of S201, this step is intended to for deleted data to be stored in the corresponding index structure of the user information
Under.
It is envisioned that the index structure in the present embodiment is to carry out classification construction according to user information.For example, this
When recycle bin there are three use user, each using the corresponding user information of user is user information A, user information B respectively
And user information C, reconstruct the index structure for establishing user information A, the index structure of user information B and user information C
Index structure.When receiving the deleted data of user information A, this is deleted the rope that data are stored in user information A
Under guiding structure.
S203 judges the user information of access request and is accessed to delete number when receiving the access request of recycle bin
According to the corresponding user information of index structure it is whether identical;If so, executing S204;If it is not, then executing S205;
S204 sends confirmation access instruction;
S205 sends access failure command.
On the basis of step S202, step S203 to step S205 is intended to when carrying out recycle bin data access, according to
The user information of access request accesses grant decision with the accessed corresponding user information of the index structure of data of deleting, with
Guarantee the privacy that data save in recycle bin.
On the basis of Fig. 1 corresponding embodiment, the present embodiment is mainly the particular content for limiting characteristic, other portions
Divide being substantially the same for embodiment corresponding with Fig. 1, same section can refer to the corresponding embodiment of Fig. 1, and this will not be repeated here.
Referring to FIG. 3, Fig. 3 is the recycle bin data management side of also a kind of distributed storage provided by the embodiment of the present application
The flow chart of method.
Characteristic in embodiment is mainly limited to resource category information by the present embodiment, by deleted data according to
The resource category information is stored in recycle bin under corresponding index structure, when accessing to deleted data, by sentencing
Disconnected resource category information determines whether to access, to guarantee the isolation and privacy of data in recycle bin.
Specifically, this method may include:
S301 obtains the resource category information for being deleted data when getting deleted data;
This step is intended to obtain the resource category information for being deleted data when there is the deleted situation of data.Its
In, which, there are different classification methods, can be the content carried according to data according to the difference of mode classification
Classify, be also possible to classify according to data format, can also be and data are classified according to data usage mode.
As it can be seen that can be there are many data classification method in the present embodiment, the available different resource class letter of different classification methods
Breath, and then resource category information used in this step is also just different.Only to data between different resource category informations
Mode classification it is not identical, between each other it is each advantageous, be not specifically limited herein.
Wherein, the mode that the resource category information of deleted data is obtained in this step can be according to deleted data sheet
Body is determined to obtain resource category information, is also possible to determine the resources-type of deleted data by the initiator of delete operation
Other information can also be the acquisition methods of the resource category information of any one data provided using the prior art.As it can be seen that this
The mode that the resource category information of deleted data is obtained in step is not unique, is not specifically limited herein.
Deleted data are stored under the corresponding index structure of resource category information in recycle bin by S302;
On the basis of step S301, this step is intended to according to resource category information, this is deleted data and is stored in pair
Under the index structure answered.
It is envisioned that the index structure in the present embodiment is to carry out classification construction according to resource category information.Example
Such as, for recycle bin there are three kinds of resource category informations, the corresponding resource category information of each resource class is resources-type respectively at this time
Other information A, resource category information B and resource category information C, reconstruct the index structure for establishing resource category information A, resource
The index structure of classification information B and the index structure of resource category information C.When receive resource category information A be deleted
When data, this is deleted data and is stored under the index structure of resource category information A.
S303 judges that the resource category information of access request is deleted with accessed when receiving the access request of recycle bin
Except whether the corresponding resource category information of the index structure of data is identical;If so, executing S304;If it is not, then executing S305;
S304 sends confirmation access instruction;
S305 sends access failure command.
On the basis of step S302, step S303 to step S305 is intended to when carrying out recycle bin data access, according to
The resource category information of access request resource category information corresponding with the accessed deletion index structure of data accesses perhaps
It can determine whether, to guarantee the privacy of the data preservation in recycle bin.
On the basis of Fig. 1 corresponding embodiment, the present embodiment is mainly the particular content for limiting characteristic, other portions
Divide being substantially the same for embodiment corresponding with Fig. 1, same section can refer to the corresponding embodiment of Fig. 1, and this will not be repeated here.
Referring to FIG. 4, Fig. 4 is the recycle bin data management side of another distributed storage provided by the embodiment of the present application
The flow chart of method.
Characteristic in embodiment is mainly limited to access right information by the present embodiment, by deleted data according to
The access right information is stored in recycle bin under corresponding index structure, when accessing to deleted data, by sentencing
Disconnected access right information determines whether to access, to guarantee the isolation and privacy of data in recycle bin.
Specifically, this method may include:
S401 obtains the access right information for being deleted data when getting deleted data;
This step is intended to obtain the access right information of deleted data.
Wherein, access right information described in the present embodiment, can be user group permission, just can be in a certain user group
The data of the user group are accessed, are also possible to user gradation permission, it is just accessible to arrive the user under a certain user gradation
The accessible data of grade, the set-up mode for any one access right that can also be provided using the prior art, herein not
It is specifically limited.
Deleted data are stored in recycle bin under the corresponding index structure of access right information by S402;
On the basis of step S401, this step is intended to for deleted data being stored under corresponding index structure.
It is envisioned that the index structure in the present embodiment is to carry out classification construction according to access right information.Example
Such as, for recycle bin there are three kinds of access right information, the corresponding access right information of each access right is the right to use respectively at this time
Limit information A, access right information B and access right information C are reconstructed and are established the index structure of access right information A, use
The index structure of authority information B and the index structure of access right information C.When receive access right information A be deleted
When data, this is deleted data and is stored under the index structure of access right information A.
S403 judges that the access right information of access request is deleted with accessed when receiving the access request of recycle bin
Except whether the corresponding access right information of the index structure of data is identical;If so, executing S404;If it is not, then executing S405;
S404 sends confirmation access instruction;
S405 sends access failure command.
On the basis of step S402, step S403 to step S405 is intended to when carrying out recycle bin data access, according to
The resource category information of access request resource category information corresponding with the accessed deletion index structure of data accesses perhaps
It can determine whether, to guarantee the privacy of the data preservation in recycle bin.
A kind of recycle bin data administrator of distributed storage provided by the embodiments of the present application is introduced below, under
The recycle bin data administrator and a kind of above-described recycle bin of distributed storage of a kind of distributed storage of text description
Data managing method can correspond to each other reference.
Referring to FIG. 5, Fig. 5 is a kind of recycle bin data administrator of distributed storage provided by the embodiment of the present application
Structural schematic diagram.
The apparatus may include:
Data record module 100, for when getting deleted data, according to corresponding characteristic by deleted number
According to being stored in recycle bin under corresponding index structure;Wherein, index structure is to carry out classification construction according to multiple characteristics
It obtains;
Data access judgment module 200, for judging the feature of access request when receiving the access request of recycle bin
Whether data characteristic corresponding with the accessed deletion index structure of data is identical;
Access confirmation module 300, for when the characteristic of access request and the index structure pair of accessed deletion data
When the characteristic answered is identical, confirmation access instruction is sent.
Optionally, the data record module 100 may include:
User information acquiring unit, for obtaining the user information for being deleted data when getting deleted data;
It is recycled unit, for deleted data to be stored under the corresponding index structure of user information in recycle bin;
Correspondingly, the data access judgment module 200, specifically for judging when receiving the access request of recycle bin
Whether the user information of access request user information corresponding with the accessed deletion index structure of data is identical.
Optionally, the data record module 100 may include:
Resource category information acquiring unit, for obtaining and being deleted the resources-type of data when getting deleted data
Other information;
It is recycled unit, for deleted data to be stored in the corresponding index structure of resource category information in recycle bin
Under;
Correspondingly, the data access judgment module 200, specifically for judging when receiving the access request of recycle bin
Whether the resource category information of access request resource category information corresponding with the accessed deletion index structure of data is identical.
Optionally, the data record module 100 may include:
Access right information acquisition unit, for obtaining the right to use for being deleted data when getting deleted data
Limit information;
It is recycled unit, for deleted data to be stored in the corresponding index structure of access right information in recycle bin
Under;
Correspondingly, the data access judgment module 200, specifically for judging when receiving the access request of recycle bin
Whether the access right information of access request access right information corresponding with the accessed deletion index structure of data is identical.
The embodiment of the present application also provides a kind of server, comprising:
Memory, for storing computer program;
Processor, the step of recycle bin data managing method as above is realized when for executing computer program.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the step of recycle bin data managing method as above is realized when computer program is executed by processor.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), 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.
Recycle bin data managing method to a kind of distributed storage provided herein, recycle bin data management above
Device, server and computer readable storage medium are described in detail.Specific case used herein is to the application
Principle and embodiment be expounded, the present processes that the above embodiments are only used to help understand and its core
Thought is thought.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle,
Can also to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
Claims (10)
1. a kind of recycle bin data managing method of distributed storage characterized by comprising
When getting deleted data, the deleted data are stored in recycle bin according to corresponding characteristic and are corresponded to
Index structure under;Wherein, the index structure classify constructing and obtain according to multiple characteristics;
When receiving the access request of the recycle bin, the characteristic and accessed deletion data of the access request are judged
The corresponding characteristic of index structure it is whether identical;
If so, sending confirmation access instruction.
2. recycle bin data managing method according to claim 1, which is characterized in that when getting deleted data,
The deleted data are stored in recycle bin under corresponding index structure according to corresponding characteristic, comprising:
When getting the deleted data, the user information of the deleted data is obtained;
The deleted data are stored under the corresponding index structure of user information described in the recycle bin;
Correspondingly, judging the characteristic of the access request when receiving the access request of the recycle bin and being accessed
Whether the corresponding characteristic of index structure for deleting data is identical, comprising:
When receiving the access request of the recycle bin, the user information and accessed deletion data of the access request are judged
The corresponding user information of index structure it is whether identical.
3. recycle bin data managing method according to claim 1, which is characterized in that when getting deleted data,
The deleted data are stored in recycle bin under corresponding index structure according to corresponding characteristic, comprising:
When getting the deleted data, the resource category information of the deleted data is obtained;
The deleted data are stored under the corresponding index structure of resource category information described in the recycle bin;
Correspondingly, judging the characteristic of the access request when receiving the access request of the recycle bin and being accessed
Whether the corresponding characteristic of index structure for deleting data is identical, comprising:
When receiving the access request of the recycle bin, judge the resource category information of the access request and be accessed to delete
Whether the corresponding resource category information of the index structure of data is identical.
4. recycle bin data managing method according to claim 1, which is characterized in that when getting deleted data,
The deleted data are stored in recycle bin under corresponding index structure according to corresponding characteristic, comprising:
When getting the deleted data, the access right information of the deleted data is obtained;
The deleted data are stored under the corresponding index structure of access right information described in the recycle bin;
Correspondingly, judging the characteristic of the access request when receiving the access request of the recycle bin and being accessed
Whether the corresponding characteristic of index structure for deleting data is identical, comprising:
When receiving the access request of the recycle bin, the access right information and accessed deletion of the access request are judged
Whether the corresponding access right information of the index structure of data is identical.
5. a kind of recycle bin data administrator of distributed storage characterized by comprising
Data record module, for when getting deleted data, according to corresponding characteristic by the deleted data
It is stored in recycle bin under corresponding index structure;Wherein, the index structure is to carry out classification structure according to multiple characteristics
It makes;
Data access judgment module, for judging the spy of the access request when receiving the access request of the recycle bin
Whether identical levy data characteristic corresponding with the accessed deletion index structure of data;
Access confirmation module, it is corresponding with the accessed deletion index structure of data for the characteristic when the access request
When characteristic is identical, confirmation access instruction is sent.
6. recycle bin data administrator according to claim 1, which is characterized in that the data record module, comprising:
User information acquiring unit, for when getting the deleted data, obtaining user's letter of the deleted data
Breath;
It is recycled unit, for the deleted data to be stored in the corresponding index of user information described in the recycle bin
Under structure;
Correspondingly, the data access judgment module, specifically for judging institute when receiving the access request of the recycle bin
Whether the user information user information corresponding with the accessed deletion index structure of data for stating access request is identical.
7. recycle bin data administrator according to claim 1, which is characterized in that the data record module, comprising:
Resource category information acquiring unit, for obtaining the money of the deleted data when getting the deleted data
Source category information;
It is recycled unit, it is corresponding for the deleted data to be stored in resource category information described in the recycle bin
Under index structure;
Correspondingly, the data access judgment module, specifically for judging institute when receiving the access request of the recycle bin
Whether the resource category information resource category information corresponding with the accessed deletion index structure of data for stating access request is identical.
8. recycle bin data administrator according to claim 1, which is characterized in that the data record module, comprising:
Access right information acquisition unit, for obtaining making for the deleted data when getting the deleted data
Use authority information;
It is recycled unit, it is corresponding for the deleted data to be stored in access right information described in the recycle bin
Under index structure;
Correspondingly, the data access judgment module, specifically for judging institute when receiving the access request of the recycle bin
Whether the access right information access right information corresponding with the accessed deletion index structure of data for stating access request is identical.
9. a kind of server characterized by comprising
Memory, for storing computer program;
Processor realizes such as Claims 1-4 described in any item recycle bin data pipes when for executing the computer program
The step of reason method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes such as Claims 1-4 described in any item recycle bin data managements when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811239925.6A CN109460370A (en) | 2018-10-23 | 2018-10-23 | Distributed storage recycle bin data management method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811239925.6A CN109460370A (en) | 2018-10-23 | 2018-10-23 | Distributed storage recycle bin data management method and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109460370A true CN109460370A (en) | 2019-03-12 |
Family
ID=65608250
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811239925.6A Withdrawn CN109460370A (en) | 2018-10-23 | 2018-10-23 | Distributed storage recycle bin data management method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109460370A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324913A (en) * | 2007-06-15 | 2008-12-17 | 杨湘渝 | Method and apparatus for protecting computer file |
CN102750198A (en) * | 2011-04-20 | 2012-10-24 | 腾讯科技(深圳)有限公司 | Backup method and system of social networking site content |
CN103139264A (en) * | 2011-12-01 | 2013-06-05 | 比亚迪股份有限公司 | Processing method and processing system of deleted data |
CN105208071A (en) * | 2014-11-26 | 2015-12-30 | 维沃移动通信有限公司 | Mobile terminal data deletion method and mobile terminal |
CN106354884A (en) * | 2016-10-09 | 2017-01-25 | 郑州云海信息技术有限公司 | Data object deleting method and device based on distributed file system |
CN107944296A (en) * | 2017-11-30 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of cloud storage system and its user authority control method, equipment, storage medium |
-
2018
- 2018-10-23 CN CN201811239925.6A patent/CN109460370A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324913A (en) * | 2007-06-15 | 2008-12-17 | 杨湘渝 | Method and apparatus for protecting computer file |
CN102750198A (en) * | 2011-04-20 | 2012-10-24 | 腾讯科技(深圳)有限公司 | Backup method and system of social networking site content |
CN103139264A (en) * | 2011-12-01 | 2013-06-05 | 比亚迪股份有限公司 | Processing method and processing system of deleted data |
CN105208071A (en) * | 2014-11-26 | 2015-12-30 | 维沃移动通信有限公司 | Mobile terminal data deletion method and mobile terminal |
CN106354884A (en) * | 2016-10-09 | 2017-01-25 | 郑州云海信息技术有限公司 | Data object deleting method and device based on distributed file system |
CN107944296A (en) * | 2017-11-30 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of cloud storage system and its user authority control method, equipment, storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103377137B (en) | The frequent block strengthened detection is used to carry out the method and system of storage duplicate removal | |
CN109643268A (en) | Car-mounted device, result collection system | |
CN105677250B (en) | The update method and updating device of object data in object storage system | |
CN104239518B (en) | Data de-duplication method and device | |
WO2022143242A1 (en) | Blockchain-based transaction distribution executing method and apparatus, server, and storage medium | |
CN103020255B (en) | Classification storage means and device | |
CN103593257B (en) | A kind of data back up method and device | |
KR20130022613A (en) | Apparatus and method for securing contents in cloud computing | |
CN106021445A (en) | Cached data loading method and apparatus | |
CN109583222A (en) | Distributed file system metadata service device recycles client jurisdiction method and device | |
CN106330788B (en) | Message fragment transmission method and device | |
CN107608627A (en) | A kind of remote data classification storage method, electronic equipment and storage medium | |
CN105869057A (en) | Comment storage device, comment reading method and apparatus, and comment writing method and apparatus | |
CN106817388A (en) | The system that virtual machine, host obtain the method, device and access data of data | |
CN110245129B (en) | Distributed global data deduplication method and device | |
CN106021566A (en) | Method, device and system for improving concurrent processing capacity of single database | |
CN103503388B (en) | A kind of distributed queue's message read method and equipment, system | |
CN102542036B (en) | Use the table optimized | |
CN105574008A (en) | Task scheduling method and equipment applied to distributed file system | |
CN105279166B (en) | File management method and system | |
KR100747466B1 (en) | A device management client and device management method using nodes having additional properties | |
CN104298614B (en) | Data block storage method and storage device in storage device | |
CN113885798A (en) | Data operation method, device, equipment and medium | |
Kumar et al. | An extended approach to Non-Replicated dynamic fragment allocation in distributed database systems | |
CN109460370A (en) | Distributed storage recycle bin data management method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190312 |