Data processing method, device, equipment and medium

By using the unique reference mark mechanism in cloud storage, the problem of low recycling efficiency caused by the complexity of data references in cloud storage is solved, timely recycling of deleted files is achieved, storage efficiency is improved and storage space waste is reduced.

CN113312002BActive Publication Date: 2024-09-13BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110655258.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-11
Publication Date
2024-09-13
Estimated Expiration
2041-06-11

AI Technical Summary

Technical Problem

The reference relationships of data in cloud storage are complex, and it is difficult to achieve timely and efficient recovery of deleted files with existing technology, resulting in a waste of storage space and an increase in server costs.

Method used

Add a unique reference tag to the metainformation of the data, represent the reference status of the data through a binary tag (1 and 0), and update the tag in response to data upload and reference operations to ensure the accuracy and efficiency of data recycling.

Benefits of technology

Through the unique reference mark mechanism, timely recovery of data is achieved, storage efficiency is improved, and accidental deletion and storage space waste are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113312002B
    Figure CN113312002B
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and medium for data processing, which relates to the field of cloud computing technology, and in particular to the field of distributed storage technology. The implementation scheme is: in response to determining that the data is uploaded to the storage space for the first time, a unique reference tag is added to the meta-information corresponding to the data, and the unique reference tag is set to a first value; and in response to receiving a request to perform a reference operation on the data and the unique reference tag is the first value, the unique reference tag is set to a second value, wherein the unique reference tag is a binary value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud computing technology, in particular to the field of distributed storage technology, and specifically to a data processing method, device, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed in an on-demand, self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.

[0003] The reference relationship of data in cloud storage is complex, and a solution is needed to promptly and efficiently recover the data corresponding to files that have been deleted by users.

[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0005] The present disclosure provides a data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product.

[0006] According to one aspect of the present disclosure, a data processing method is provided, comprising: in response to determining that data is uploaded to a storage space for the first time, adding a unique reference tag in the metadata corresponding to the data, and setting the unique reference tag to a first value; and in response to receiving a request to perform a reference operation on the data and the unique reference tag is the first value, setting the unique reference tag to a second value, wherein the unique reference tag is binary.

[0007] According to another aspect of the present disclosure, a data processing device is provided, including: a first setting module, configured to, in response to determining that data is uploaded to a storage space for the first time, add a unique reference tag in the metadata corresponding to the data, and set the unique reference tag to a first value; a second setting module, configured to, in response to receiving a request to perform a reference operation on the data and the unique reference tag is the first value, set the unique reference tag to a second value, wherein the unique reference tag is binary.

[0008] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a data processing method.

[0009] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute a data processing method.

[0010] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the data processing method when executed by a processor.

[0011] According to one or more embodiments of the present disclosure, timely recovery of data is achieved by setting a unique reference tag to improve storage efficiency. It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0013] Figure 1 A flow chart showing a data processing method according to an exemplary embodiment of the present disclosure is shown;

[0014] Figure 2A and Figure 2B Schematic diagrams of setting and updating a unique reference mark according to an exemplary embodiment of the present disclosure are respectively shown;

[0015] Figure 3 A structural block diagram showing a data processing device according to an exemplary embodiment of the present disclosure; and

[0016] Figure 4 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0017] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0018] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0019] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0020] In the related art, there are three ways to recycle data with complex reference relationships. First, for public cloud storage products, each piece of data uploaded by the user is actually stored on the server side. As long as the user initiates the deletion, the data can be recycled. This method stores data with the same content in real time, which will cause unnecessary waste of storage space and consume additional server costs. Second, the full amount of data records in the storage space are regularly compared and set calculated with the data records in the current user space. The difference set of the set calculation is the deleted data set. The workload of full data comparison is too large and the execution cycle is long, so the efficiency of data recovery is low. The third is to mark the reference status of the data through the reference count. When the reference count is 0, it means that the data is not used by the user and the data can be recycled. However, the reference operation of the data is mostly performed asynchronously, and the correctness of the reference count cannot be guaranteed.

[0021] To solve one or more of the above problems, the present disclosure improves the efficiency of data recovery by adding a unique reference mark in the meta-information corresponding to the data to indicate the binary reference state of the data and using it for data recovery.

[0022] The method for determining a target user disclosed in the present invention will be further described below in conjunction with the accompanying drawings.

[0023] Figure 1A flow chart of a data processing method according to an exemplary embodiment of the present disclosure is shown.

[0024] like Figure 1 As shown, the method may include: step S101, in response to determining that the data is uploaded to the storage space for the first time, adding a unique reference tag in the metadata corresponding to the data, and setting the unique reference tag to a first value; step S102, in response to receiving a request to perform a reference operation on the data and the unique reference tag is the first value, setting the unique reference tag to a second value, wherein the unique reference tag is binary.

[0025] According to some embodiments, the first value and the second value of the unique reference mark may be 1 and 0 respectively, wherein 1 indicates that the corresponding data is uniquely referenced when it is first uploaded, that is, the data is one-to-one corresponding to the user; 0 indicates that the corresponding data is not uniquely referenced, that is, there may be multiple users referencing the data, or the same user may refer to the data multiple times. The value of the unique reference mark may be any binary value, which is not limited in this disclosure.

[0026] According to some embodiments, in step S101, determining that the data is uploaded to the storage space for the first time includes: traversing the storage space to determine that the data does not exist in the storage space based on fingerprint comparison. Exemplarily, the fingerprint comparison can be a hash value comparison based on the content, thereby determining that there is no data in the storage space with the same content as the uploaded data, that is, the data is uploaded for the first time. If data with the same content already exists in the storage space, a second transfer operation is performed, that is, an index is added to the data with the same content without storing the data separately. The second transfer operation can be regarded as a reference to data already existing in the storage space. It can be understood that fingerprint comparison can also be any other comparison method that can achieve data content comparison, and the present disclosure is not limited to this.

[0027] According to some embodiments, the reference operation generates an index of the data without storing the data separately. Exemplarily, the reference operation may include but is not limited to operations such as instant transfer, copy, and transfer.

[0028] According to some embodiments, the method further includes: in response to the data having been uploaded to the storage space, adding data records of the data in the storage space and the user space respectively. After determining that the data is uploaded for the first time, the data upload operation is first performed, that is, the data interaction process, and then a unique reference mark is added to the meta-information corresponding to the data and set to the first value to complete the storage of the meta-information, and then the data is recorded in the storage space and the user space respectively, wherein the data record of the data is added to the storage space only when the data is uploaded to the storage space for the first time.

[0029] According to some embodiments, the method further comprises: in response to the unique reference tag having been set to the second value, performing the reference operation.

[0030] After receiving a request from a user to initiate a reference operation on data, it is necessary to first determine whether the unique reference tag of the data is the first value. If so, the unique reference tag is updated to the second value to indicate that the data is no longer uniquely referenced and the data is no longer one-to-one corresponding to the user. After updating the unique reference tag, the above reference operation is performed again. This execution order ensures that the unique reference tag of the minimum set of data is set to the first value indicating the unique reference, so as to ensure that when an error occurs in the reference operation, the unique reference tag of the data has been updated to the second value, and the recovery of this part of the data will be abandoned in the subsequent data recovery process to prevent accidental deletion.

[0031] Figure 2A and Figure 2B Schematic diagrams of setting and updating a unique reference tag according to an exemplary embodiment of the present disclosure are respectively shown. In the example, the first value and the second value of the unique reference tag correspond to 1 and 0 respectively. As shown in the figure, Figure 2A The process of setting and updating the unique reference mark when there is an upload operation is shown. When an upload operation is detected, it is first determined whether the data is uploaded for the first time, that is, the storage space is traversed to determine whether the data already exists in the storage space based on fingerprint comparison; when it is determined that the data is uploaded for the first time, the data interaction operation is performed, that is, the data is actually stored in the storage space, and the unique reference mark is set to 1, otherwise the unique reference mark of the data that already exists in the storage space and has the same content is set to 0, and the second transfer operation is performed, that is, an index is added to the data.

[0032] Figure 2B The process of updating the unique reference mark when determining that there is a reference operation request is shown. When a reference operation request is detected, first determine whether the unique reference mark of the data targeted by the request is 1; if so, it means that before the execution of this reference operation, the data is uniquely referenced, and its unique reference mark is updated to 0 before the reference operation is executed; if it is 0, it means that before the execution of this reference operation, the number of times the data has been referenced is greater than 1, and the reference operation can be directly executed.

[0033] According to some embodiments, the method further comprises: in response to the reference operation being completed, adding, in the user space, a data record of an index of the data generated based on the reference operation.

[0034] Since the reference operation only generates an index of the data without storing the data separately, only one copy of the same content is stored in the storage space, and from the user's perspective, the process of generating a data index is equivalent to copying the data in the user space. Therefore, when the reference operation is completed on the data, only the data record of the data index is added in the user space, and there is no need to add the data record in the storage space.

[0035] According to some embodiments, the method also includes: in response to the deletion operation on the data in the user space having been completed, setting the data status of the data to deleted and deleting the data record of the data in the user space; and performing a recycling operation on the data whose unique reference mark is the first value and whose data status is deleted.

[0036] The data with the unique reference mark as the first value corresponds one-to-one to the user. It can be understood that when the data status of the data is deleted, it means that the user corresponding one-to-one to the data has deleted the data in the user space, which means that the only user of the data no longer needs the data and the data can be recycled.

[0037] According to some embodiments, the method further comprises: comparing the data records in the storage space with the data records in the user space; and performing a recycling operation on the data corresponding to the data records that exist only in the storage space. It is understandable that the data records that exist only in the storage space but not in the user space indicate that the corresponding data is not used by any user and the data can be recycled.

[0038] According to another aspect of the present disclosure, a data processing device is provided. Figure 3 As shown, the data processing device 300 includes: a first setting module 301, configured to add a unique reference tag in the metadata corresponding to the data and set the unique reference tag to a first value in response to determining that the data is uploaded to the storage space for the first time; a second setting module 302, configured to set the unique reference tag to a second value in response to receiving a request to perform a reference operation on the data and the unique reference tag is the first value, wherein the unique reference tag is binary.

[0039] According to some embodiments, the first value and the second value of the unique reference mark may be 1 and 0 respectively, wherein 1 indicates that the corresponding data is uniquely referenced when it is first uploaded, that is, the data is one-to-one corresponding to the user; 0 indicates that the corresponding data is not uniquely referenced, that is, there may be multiple users referencing the data, or the same user may refer to the data multiple times. The value of the unique reference mark may be any binary value, which is not limited in this disclosure.

[0040] According to some embodiments, the first setting module 301 is further configured to: traverse the storage space to determine based on fingerprint comparison that the data does not exist in the storage space, thereby determining that the data is uploaded to the storage space for the first time. The fingerprint comparison can be a hash value comparison based on the content, thereby determining that there is no data in the storage space with the same content as the data to be uploaded, that is, the data is uploaded for the first time. It is understandable that the fingerprint comparison can also be any other comparison method that can achieve data content comparison, and the present disclosure is not limited to this.

[0041] According to some embodiments, the reference operation generates an index of the data without storing the data separately. Exemplarily, the reference operation may include but is not limited to operations such as instant transfer, copy, and transfer.

[0042] According to some embodiments, the data processing device further comprises: a record adding module configured to add data records of the data in the storage space and the user space respectively in response to the data having been uploaded to the storage space.

[0043] According to some embodiments, the data processing apparatus further comprises an execution module configured to execute the reference operation in response to the unique reference tag having been set to the second value.

[0044] In response to receiving a request for a reference operation on data initiated by a user, the second setting module must first determine whether the unique reference tag of the data is the first value. If so, the unique reference tag is updated to the second value accordingly to indicate that the data is no longer uniquely referenced and the data is no longer one-to-one corresponding to the user. After updating the unique reference tag, the execution module executes the above-mentioned reference operation. Such an execution order ensures that the unique reference tag of the minimum set of data is set to the first value indicating the unique reference, so as to ensure that when an error occurs in the reference operation, the unique reference tag of the data has been updated to the second value, and the recovery of this part of the data will be abandoned in the subsequent data recovery process to prevent accidental deletion.

[0045] According to some embodiments, the data processing device further comprises: an index recording module configured to add, in the user space, a data record of an index of the data generated based on the reference operation in response to the reference operation having been completed.

[0046] Since the reference operation only generates an index of the data without storing the data separately, only one copy of the data with the same content is stored in the storage space, and from the user's perspective, the process of generating the data index is equivalent to copying the data in the user space. Therefore, after the execution module completes the reference operation on the data, the record adding module only needs to add the data record of the data index in the user space, without adding the data record in the storage space.

[0047] According to some embodiments, the data processing device also includes: a third setting module, configured to set the data status of the data to deleted and delete the data record of the data in the user space in response to the deletion operation on the data in the user space being completed; and a data recovery module, configured to perform a recovery operation on the data whose unique reference mark is the first value and whose data status is deleted.

[0048] The data with the unique reference mark as the first value corresponds one-to-one to the user. It can be understood that when the data status of the data is deleted, it means that the user corresponding one-to-one to the data has deleted the data in the user space, which means that the only user of the data no longer needs the data at this time, and the data recovery module can recycle the data.

[0049] According to some embodiments, the data recovery module is further configured to: compare the data records in the storage space with the data records in the user space; and perform a recovery operation on the data corresponding to the data records that only exist in the storage space. It is understandable that the data records that only exist in the storage space but not in the user space indicate that the corresponding data is not used by any user, and the data recovery module can recover the data.

[0050] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned data processing method.

[0051] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned data processing method.

[0052] According to another aspect of the present disclosure, a computer program product is further provided, including a computer program, wherein the computer program implements the above data processing method when executed by a processor.

[0053] refer to Figure 4, a block diagram of an electronic device 400 that can be used as a server of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0054] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0055] Multiple components in the device 400 are connected to the I / O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 can be any type of device that can input information to the device 400. The input unit 406 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 407 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 408 can include but is not limited to a disk, an optical disk. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a 1302.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0056] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as data processing methods. For example, in some embodiments, the data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).

[0057] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0058] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0059] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0060] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0061] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0062] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0063] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0064] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A data processing method, the method comprising: In response to determining that the data is uploaded to the storage space for the first time, adding a unique reference tag to the meta information corresponding to the data, and setting the unique reference tag to a first value; and In response to receiving a request to perform a reference operation on the data and the unique reference tag is the first value, setting the unique reference tag to a second value, wherein the unique reference tag is a binary value, the first value indicates that the data is uniquely referenced by the user who uploaded the data and has not been referenced again, and the second value indicates that the data is referenced multiple times; In response to the data having been uploaded to the storage space, adding data records of the data in the storage space and the user space respectively; In response to the deletion operation on the data in the user space being completed, setting the data state of the data to deleted, and deleting the data record of the data in the user space; and A recycling operation is performed on the data whose unique reference mark is the first value and whose data status is deleted.

2. The method according to claim 1, wherein: Determining that the data is uploaded to the storage space for the first time includes: traversing the storage space to determine based on fingerprint comparison that the data does not exist in the storage space.

3. The method according to claim 1 or 2, wherein: The referencing operation generates an index to the data without additionally storing the data.

4. The method according to claim 1 or 2, further comprising: In response to the unique reference tag having been set to the second value, the reference operation is performed.

5. The method according to claim 4, further comprising: In response to the reference operation being completed, a data record of the index of the data generated based on the reference operation is added in the user space.

6. The method according to claim 1, further comprising: Comparing the data records in the storage space and the data records in the user space; as well as A recycling operation is performed on the data corresponding to the data record that only exists in the storage space.

7. A data processing device, comprising: A first setting module is configured to, in response to determining that the data is uploaded to the storage space for the first time, add a unique reference mark to the meta information corresponding to the data, and set the unique reference mark to a first value; a second setting module, configured to, in response to receiving a request to perform a reference operation on the data and the unique reference tag being the first value, set the unique reference tag to a second value, wherein the unique reference tag is a binary value, the first value indicates that the data is uniquely referenced by the user who uploaded the data and has not been referenced again, and the second value indicates that the data is referenced multiple times; an adding record module, configured to add data records of the data in the storage space and the user space respectively in response to the data having been uploaded to the storage space; A third setting module is configured to, in response to the deletion operation on the data in the user space being completed, set the data state of the data to deleted, and delete the data record of the data in the user space; and The data recycling module is configured to perform a recycling operation on the data whose unique reference mark is the first value and whose data status is deleted.

8. The device according to claim 7, wherein: The first setting module is further configured to: traverse the storage space to determine based on fingerprint comparison that the data does not exist in the storage space, thereby determining that the data is uploaded to the storage space for the first time.

9. The device according to claim 7 or 8, wherein: The referencing operation generates an index to the data without additionally storing the data.

10. The device according to claim 7 or 8, further comprising: An execution module is configured to execute the reference operation in response to the unique reference tag having been set to the second value.

11. The apparatus according to claim 10, further comprising: The index record module is configured to add, in the user space, a data record of the index of the data generated based on the reference operation in response to the reference operation being completed.

12. The device according to claim 7, wherein the data recovery module is further configured to: Comparing the data records in the storage space with those in the user space; and A recycling operation is performed on the data corresponding to the data record that only exists in the storage space.

13. An electronic device, comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

15. A computer program product comprising a computer program, wherein: The computer program implements the method according to any one of claims 1 to 6 when executed by a processor.