Batch sharing method, private cloud device and computer-readable storage medium

Through reference relationship and linked file technology, the problems of slow file sharing speed and waste of storage space in distributed groups of private cloud devices are solved, and second-level sharing and view consistency are achieved.

CN116633709BActive Publication Date: 2025-08-29YICI NETCOM (HANGZHOU) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310476087.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2025-08-29
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

In distributed groups formed by private cloud devices, file sharing speed is slow and storage space is wasted, and the views of each group member are inconsistent due to the lack of a central server.

Method used

The batch sharing method is adopted to realize static or dynamic sharing of files through reference relationships and linked files, and to use reference counting and path redirection techniques to avoid file copying and maintain view consistency.

Benefits of technology

It realizes the speed of second-level file sharing, saves storage space, and maintains the unified member view in the distributed group.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116633709B_ABST
    Figure CN116633709B_ABST
Patent Text Reader

Abstract

The present invention discloses a batch sharing method, a private cloud device, and a computer-readable storage medium, relating to the field of cloud computing technology. Based on a private cloud device, group members of a distributed group composed of the private cloud device batch-share local content to the distributed group. The method includes the following steps: a sharer among group members selects shared content and obtains its local path; an auxiliary sharing tool is created based on the obtained path; when the sharer shares the shared content to the group shared space, a view of the shared content is established in the group shared space; when the sharer shares the shared content to other group members, the group members who view the shared content establish a view of the shared content in their local area; and the view of the shared content is redirected to the shared content by the auxiliary sharing tool based on the local path of the shared content on the sharer's side. The present invention has the advantages of fast sharing speed and unified perspective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud computing, and in particular to a batch sharing method, a private cloud device, and a computer-readable storage medium. Background Art

[0002] A private cloud is a type of cloud computing service built for the exclusive use of a single organization, providing effective control over data, security, and service quality. The organization owns the infrastructure and controls the deployment of its own network and application services. The owner of a private cloud does not share resources with other businesses or organizations; the core attribute of a private cloud is resource exclusivity.

[0003] Despite this, due to the existence of some resource sharing and exchange requirements, private cloud devices can form groups with each other, and file sharing and exchange can be achieved through private cloud groups. However, private cloud devices are distributed data aggregation devices, which are different from traditional WeChat groups or DingTalk groups and other instant messaging software groups. Since traditional instant messaging software has a central server, when one of the group members shares content to the group, what other members see is naturally consistent. The group formed by private cloud devices is a distributed group. Since there is no central server, each group member can only focus on his or her own relative perspective, which will result in different views seen by each group member. Sharing content by conventionally copying from one device to another will not only slow down the sharing speed due to copying, but also waste storage space due to copying multiple copies. Summary of the Invention

[0004] The present invention aims to solve one of the technical problems in the related art to a certain extent. To this end, the present invention provides a batch sharing method with the advantages of fast sharing speed and unified perspective.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A batch sharing method is provided, based on private cloud devices, wherein group members of a distributed group composed of the private cloud devices share local content to the distributed group in batches, comprising the following steps:

[0007] The sharer in the group selects the content to share and obtains the path of the shared content on the sharer's local computer.

[0008] Create auxiliary sharing tools based on the obtained paths;

[0009] When a sharer shares content to a group shared space, a view of the shared content is created in the group shared space. When a sharer shares content to other group members, the group members who view the shared content create a view of the shared content locally.

[0010] The view of the shared content is redirected to the shared content according to the local path of the shared content on the sharer's local computer by the auxiliary sharing tool.

[0011] Optionally, in the local area of ​​the sharer, the auxiliary sharing tool is a reference relationship, and the reference relationship is to add an attribute tag containing a path to the attributes of the shared content.

[0012] Optionally, when the shared content is a folder, the group member adding new content to the shared content includes the following steps:

[0013] Group members who add new content enter the folder as shared content by referencing the file;

[0014] Add new content to the folder as shared content;

[0015] Determine whether there are multiple reference relationships between the folders used as shared content;

[0016] If it does not exist, add new content directly to the folder used as shared content;

[0017] If it exists, create a copy of the folder as shared content;

[0018] A reference relationship pointing to the copy is created for the new content and the files and / or folders in the folder serving as the shared content.

[0019] The technical solution provided by the present invention forms a static sharing effect through the reference counting method, and the view and shared content are isolated in the local hard disk space. When deleting the shared content locally, it is only necessary to remove the attribute tag containing the path in the properties to complete the operation; when modifying the shared content locally, since the reference relationship has not changed, the modified shared content can be directly seen from the view of the shared content; if adding to the shared content locally, the copy is only created for the folder when there are multiple references, and the files and other contents in the folder are also realized through the reference relationship. Therefore, not only a breakthrough in the size of the shared content is achieved, no matter how much space the shared content occupies, since the sharing is achieved through the reference relationship, the sharing speed reaches the second level. The shared content that takes several minutes to complete the transmission in traditional instant messaging software can still be shared in seconds in the technical solution provided by the invention, which greatly improves the sharing speed. At the same time, the shared content will not be copied, which effectively saves storage space.

[0020] Optionally, when the sharer shares the shared content to the group shared space or other group members, the auxiliary sharing tool is a link file.

[0021] Optionally, the link file is implemented based on an object system, has an attribute of Target, a type of string, and is described as a target address URL.

[0022] Optionally, when the shared content view is a folder, the URL is file: / / NetworklD / path?param / path or file: / / / path; when the shared content view is a group, the URL is GroupView: / / Groupld / path; when the shared content view is a group shared space, the URL is ShareSpace: / / Spaceld / path or ShareSpace: / / / path; when the shared content view is a local file system, the URL is vfs: / / / path; when the shared content view is HTTP, the URL is http: / / host / path; when the shared content view is Samba, the URL is smb: / / host / path; when the shared content view is a camera stream, the URL is rtsp: / / address:port / Streaming.

[0023] The technical solution provided by this invention allows group members to access the content shared by the sharer through a link file, rather than copying the shared file to the sharer's local device. Therefore, sharing can be achieved in seconds, significantly improving the sharing speed. Furthermore, because sharing is achieved through a link file, even in a distributed group without a central processor, the perspective of each group member can still be unified.

[0024] In addition, the present invention also provides a private cloud device, including a memory and a processor, wherein the memory stores a computer program, and the processors of the private cloud devices constituting the group implement any of the aforementioned batch sharing methods when executing the computer program.

[0025] At the same time, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer programs stored on several computer-readable storage media are executed by their respective processors, any of the aforementioned batch sharing methods is implemented.

[0026] These features and advantages of the present invention will be further disclosed in the following detailed description and accompanying drawings. The preferred embodiments and means of the present invention will be fully illustrated in conjunction with the accompanying drawings, but are not intended to limit the technical solutions of the present invention. Furthermore, although multiple features, elements, and components may be present in each of the following text and accompanying drawings, they may be labeled with different symbols or numbers for convenience, but all represent components with the same or similar structure or function. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The present invention will be further described below in conjunction with the accompanying drawings:

[0028] Figure 1 Schematic diagram of static sharing in an embodiment of the present invention;

[0029] Figure 2 This is a schematic diagram of adding content during static sharing in an embodiment of the present invention;

[0030] Figure 3 This is a flowchart of static sharing in an embodiment of the present invention;

[0031] Figure 4 is a schematic diagram of dynamic sharing in an embodiment of the present invention;

[0032] Figure 5 This is a flow chart of dynamic sharing in an embodiment of the present invention;

[0033] Figure 6 Schematic diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following describes embodiments of the present invention in detail, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described in the embodiments are intended to explain the present invention and are not to be construed as limiting the present invention.

[0035] Reference in this specification to "one embodiment," "an example," or "an example" means that a particular feature, structure, or characteristic described in connection with the embodiment itself can be included in at least one embodiment of the present patent disclosure. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.

[0036] Example:

[0037] This embodiment provides a batch sharing method based on private cloud devices. The group composed of private cloud devices in this embodiment is different from the traditional instant messaging software group with a central server. In this embodiment, the group composed of private cloud devices is a distributed group. In this distributed group scenario, group members use the batch sharing method provided in this embodiment to batch share local content to the distributed group. The term "local" here refers only to the local area relative to the sharer, that is, the sharer's private cloud device.

[0038] The batch sharing method provided in this embodiment includes the following steps:

[0039] The sharer in the group selects the content to share and obtains the path of the shared content in the sharer's local location;

[0040] Create an auxiliary sharing tool based on the obtained path. The meaning of auxiliary sharing tools varies in different scenarios:

[0041] In the scenario where the sharer is local, the auxiliary sharing tool is a reference relationship. The reference relationship is to add a property tag containing the path to the shared content. The view of the shared content is redirected to the shared content based on the path of the shared content on the sharer's local computer through the reference relationship.

[0042] Shared content, whether shared to a group shared space or shared with other group members, will create a view of the shared content. A group shared space is similar to a cloud drive; after sharing content to the group shared space, a view of the shared content will be created in the shared space. Sharing with other members involves sharing the shared content to the group chat dialog box, where a view of the shared content will be created. Because the group in this embodiment is a distributed group and lacks a central server, the view of the shared content created in the group chat dialog box is, from each group member's perspective, a local view of the shared content.

[0043] like Figure 1 As shown, f1 and f2 are common files used for sharing content. f1 is referenced by folder A, and both f1 and f2 are referenced by folder B. The local folder view references both folders A and B. Now, to share folder B, the sharer simply needs to add the path to the view in the properties of folder B. This creates a static share through reference counting, isolating the view and shared content on the local hard drive.

[0044] Specific steps are as follows Figure 2 As shown:

[0045] On the local client of the sharer, select the folder to be shared as the shared content, and the path of the folder is returned to the local client of the sharer. Then, the folder as the shared content is statically shared to the group members or the group shared space. Then, from the local perspective of the sharer, the corresponding file is found according to the path, and the file adds a reference relationship pointing to the group. Through the method of reference counting, the effect of static sharing is formed, and the view and shared content are isolated from the local hard disk space. When deleting the shared content locally, you only need to remove the attribute tag containing the path in the properties; when making changes to the shared content locally, since the reference relationship has not changed, you can directly see the changed shared content from the view of the shared content.

[0046] When the shared content is a folder, group members add new content to the shared content in the following sub-steps:

[0047] Group members who add new content enter the folder as shared content by referencing the file;

[0048] Add new content to the folder as shared content;

[0049] Determine whether the shared folder has multiple references. A multiple reference relationship refers to the presence of multiple attribute tags containing paths in the file or folder's properties, with each attribute tag containing a different path.

[0050] If it does not exist, the new content will be added directly to the folder used as shared content; if it exists, a copy will be created for the folder used as shared content, and a reference relationship pointing to the copy will be created for the new content and the files and / or folders in the folder used as shared content. In other words, the new content and the files and / or folders in the folder used as shared content will be statically shared to the created copy. Figure 3 As shown, when adding new content f3 to folder B as shared content, since folder B has multiple reference relationships, a copy folder B' of folder B is first created, and a reference relationship pointing to the copy folder B' is established for the contents f1 and f2 in folder B. At the same time, a reference relationship pointing to the copy folder B' is also established for the new content f3. In this way, when adding shared content locally, a copy is only created for the folder when there are multiple references, and the files and other contents in the folder are also realized through the reference relationship. Therefore, not only a breakthrough in the size of shared content is achieved, no matter how much space the shared content occupies, since sharing is achieved through the reference relationship, the speed of this sharing reaches the second level. The shared content that takes several minutes to transmit in traditional instant messaging software can still be shared in seconds in the technical solution provided by the invention, greatly improving the sharing speed. At the same time, the shared content will not be copied, effectively saving storage space.

[0051] In the scenario where the sharer shares the shared content to the group shared space or other group members, the auxiliary sharing tool is the link file. When the sharer shares the shared content to the group shared space, a view of the shared content is created in the group shared space. When the sharer shares the shared content to other group members, the group members who view the shared content create a view of the shared content in their local area. The view of the shared content is redirected to the shared content according to the local path of the shared content in the sharer through the link file, forming dynamic sharing. Figure 4 As shown, file f is referenced by folder E, folder E is referenced by folder D, and folder D is shared as shared content to other group members or group shared space. From the perspective of other group members or group shared space S, the link file D' is redirected to folder D as shared content. The specific steps are as follows Figure 5As shown, on the sharer's local client, the folder to be shared is selected as the shared content. The folder path is returned to the sharer's local client, and the folder is then dynamically shared with group members or the group shared space. A link file is created based on the path of the shared file, pointing to the path of the shared file. Other group members are redirected to the shared folder through the link file.

[0052] In this embodiment, the link file is implemented based on the object system, with the attribute Target, type string, and description as the target address URL. More specifically:

[0053] When the shared content view is a folder, the URL is file: / / NetworklD / path?param / path or file: / / / path;

[0054] When the view for sharing content is a group, the URL is GroupView: / / Groupld / path;

[0055] When the view for sharing content is a group shared space, the URL is ShareSpace: / / Spaceld / path or ShareSpace: / / / path;

[0056] When the shared content view is the local file system, the URL is vfs: / / / path; when the shared content view is HTTP, the URL is http: / / host / path;

[0057] When the shared content view is Samba, the URL is smb: / / host / path;

[0058] When the shared content view is camera streaming, the URL is rtsp: / / address:port / Streaming.

[0059] Group members are directed to the content shared by the sharer through the link file, rather than copying the shared file to the sharer's local location. Therefore, sharing can also be achieved in seconds, greatly improving the sharing speed. Since sharing is achieved through link files, even if it is a distributed group and there is no central processor, the perspective of each group member can still be unified, such as Figure 6 As shown, locally on the sharer's side, the reference relationship directs to the folder D as the shared content. From the perspective of group members, the link file D' is used to redirect to the folder D as the shared content. As the group owner, the link file D' is also used to redirect to the folder D as the shared content. In this way, the view of the folder D is kept consistent from all perspectives.

[0060] At the same time, this embodiment also provides a computer device including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs the steps of the batch sharing method described above. The steps of the batch sharing method here can be the steps of the memory analysis method in each of the above embodiments.

[0061] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and when the computer program is executed, it can implement the method of any of the above-mentioned embodiments. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0062] The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Those skilled in the art should understand that the present invention includes but is not limited to the contents described in the drawings and the above specific embodiments. Any modifications that do not deviate from the functional and structural principles of the present invention are intended to be included within the scope of the claims.

Claims

1. A batch sharing method, characterized in that: The batch sharing method is based on private cloud devices, and group members of a distributed group composed of the private cloud devices share local content to the distributed group in batches, including the following steps: The sharer in the group selects the content to share and obtains the path of the shared content in the sharer's local location; Create auxiliary sharing tools based on the obtained paths; When a sharer shares content to a group shared space, a view of the shared content is created in the group shared space. When a sharer shares content to other group members, the group members who view the shared content create a view of the shared content locally. The view of the shared content is redirected to the shared content according to the local path of the shared content on the sharer's local computer by the auxiliary sharing tool; Wherein, in the local area of ​​the sharer, the auxiliary sharing tool is a reference relationship, and the reference relationship is to add an attribute tag containing a path in the attributes of the shared content; When the shared content is a folder, the group member adding new content to the shared content includes the following steps: Group members who add new content enter the folder as shared content by referencing the file; Add new content to the folder as shared content; Determine whether there are multiple reference relationships between the folders used as shared content; If it does not exist, add new content directly to the folder used as shared content; If it exists, create a copy of the folder as shared content; A reference relationship pointing to the copy is created for the new content and the files and / or folders in the folder serving as the shared content.

2. The batch sharing method according to claim 1, characterized in that: When the sharer shares the shared content to the group shared space or other group members, the auxiliary sharing tool is a link file.

3. The batch sharing method according to claim 2, characterized in that: The link file is implemented based on the object system, has an attribute of Target, a type of string, and is described as a target address URL.

4. The batch sharing method according to claim 3, characterized in that: When the view of the shared content is a folder, the URL is file: / / NetworklD / path / param / path or file: / / / path; when the view of the shared content is a group, the URL is GroupView: / / Groupld / path; when the view of the shared content is a group shared space, the URL is ShareSpace: / / Spaceld / path or ShareSpace: / / / path; when the view of the shared content is the local file system, the URL is vfs: / / / path; when the view of the shared content is HTTP, the URL is http: / / host / path; when the view of the shared content is Samba, the URL is smb: / / host / path; when the view of the shared content is camera streaming, the URL is rtsp: / / address:port / Streaming.

5. A private cloud device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processors of the private cloud devices constituting the group execute the computer program, the batch sharing method according to any one of claims 1 to 4 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer programs stored on several computer-readable storage media are executed by respective processors, the batch sharing method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Organization cooperation implementation method, device and system

    CN110334068A