Information sharing processing method, device, equipment and storage medium
By generating shared query results for pseudo-directory path information, the problem of remote clients being unable to distinguish the shared directory paths is solved, and the correct shared directory access is achieved.
Patent Information
- Application Number
- CN202210332647.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2042-03-30
AI Technical Summary
In traditional ganesha services, remote clients cannot distinguish multiple shared directories with the same directory path, resulting in differential access.
Generate shared query results that include pseudo-directory path information, or use only pseudo-directory path information in object storage, ensuring that each shared directory has a unique pseudo-directory path for distinction.
Through the use of pseudo-directory path information, the problem of remote clients being unable to distinguish access when multiple shared directory paths are the same is avoided, and the correct access to shared directories is achieved.
Smart Images

Figure CN114780503B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of information sharing and querying, and in particular to an information sharing processing method, apparatus, device and storage medium. Background Art
[0002] Currently, there is a shared directory query processing mechanism for the Ganesha (user space file server) service. Specifically, when the Ganesha service is configured with a shared directory, the remote client can execute the showmount –e command on the current storage node to query the shared directory of the current Ganesha service. The shared query results after querying the shared directory are provided to the remote client for access.
[0003] In the traditional implementation method, when a remote client queries the shared directory of the Ganesha service, the shared query results are returned and displayed based on the directory path information of the shared directory. In some scenarios, there may be multiple identical directory path information in the shared query results that cannot be specifically distinguished, resulting in the remote client being unable to distinguish and access them. Summary of the Invention
[0004] Based on this, the present application provides an information sharing processing method, apparatus, device and storage medium to achieve the effect of preventing the remote client from being unable to distinguish and access multiple shared directories with the same directory path when multiple shared directories exist at the same time.
[0005] In a first aspect, a method for information sharing is provided, the method comprising:
[0006] Get the shared query command sent by the client;
[0007] In response to the sharing query instruction, generating a sharing query result according to the configuration information of the shared directory; wherein the sharing query result includes pseudo-directory path information of the shared directory;
[0008] The shared query result is returned to the client, so that the client can access the shared directory based on the shared query result.
[0009] According to an achievable method in an embodiment of the present application, generating a shared query result includes at least one of the following methods:
[0010] Method 1: Generate a shared query result including pseudo-directory path information of a shared directory and directory path information;
[0011] Method 2: If the shared directory is for object storage, generate query results that only include pseudo-directory path information.
[0012] According to an achievable method in the embodiment of the present application, the second method includes:
[0013] Get storage type parameter information from the shared directory configuration information;
[0014] If the storage type parameter information indicates file storage or local storage, a shared query result including only directory path information is generated;
[0015] If the storage type parameter information indicates object storage, a sharing query result including only pseudo directory path information is generated.
[0016] According to an achievable method in an embodiment of the present application, before generating the shared query results, the method further includes:
[0017] Get the master switch information from the configuration information of the shared directory;
[0018] If the main switch information indicates the on state, execute method 1;
[0019] If the main switch information indicates the off state, execute method 2.
[0020] According to an achievable method in an embodiment of the present application, before generating the shared query results, the method further includes:
[0021] Obtaining individual switch information corresponding to each shared file in the shared directory from the configuration information of the shared directory;
[0022] If the separate switch information of the shared file indicates an on state, method 1 is executed for the shared file;
[0023] If the separate switch information of the shared file indicates a closed state, the second method is executed for the shared file.
[0024] According to an achievable method in an embodiment of the present application, generating a shared query result including pseudo-directory path information and directory path information of a shared directory includes:
[0025] The pseudo-directory path information and directory path information of the shared directory are concatenated to generate a shared query result.
[0026] According to an achievable method in an embodiment of the present application, in response to a shared query instruction, the operation of generating a shared query result based on the configuration information of the shared directory is directly executed by the storage node that receives the shared query instruction or by the destination storage node specified by the storage node that receives the shared query instruction.
[0027] In a second aspect, an information sharing processing device is provided, the device comprising:
[0028] The acquisition module is used to obtain the shared query instruction sent by the client;
[0029] A generating module, configured to generate a sharing query result in response to the sharing query instruction and according to the configuration information of the sharing directory; wherein the sharing query result includes pseudo-directory path information of the sharing directory;
[0030] The return module is used to return the shared query result to the client, so that the client can access the shared directory based on the shared query result.
[0031] According to a third aspect, a computer device is provided, comprising:
[0032] at least one processor; and
[0033] a memory communicatively connected to at least one processor; wherein,
[0034] The memory stores computer instructions that can be executed by at least one processor. The computer instructions are executed by the at least one processor to enable the at least one processor to perform the method involved in the first aspect above.
[0035] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that the computer instructions are used to enable a computer to execute the method involved in the above-mentioned first aspect.
[0036] According to the technical content provided by the embodiments of this application, a shared query instruction sent by a client is obtained; in response to the shared query instruction, a shared query result is generated based on the configuration information of the shared directory; wherein the shared query result includes the pseudo-directory path information of the shared directory; and the shared query result is returned to the client so that the client can access the shared directory based on the shared query result. This avoids the situation where multiple shared directories with the same directory path coexist and the remote client cannot distinguish and access them. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is an application environment diagram of an information sharing processing method in one embodiment;
[0038] Figure 2 1 is a flow chart of an information sharing processing method in one embodiment;
[0039] Figure 3 203 in an information sharing processing method according to an embodiment;
[0040] Figure 4 A schematic diagram of a preferred flow chart of an information sharing processing method in one embodiment;
[0041] Figure 5 is a structural block diagram of an information sharing processing device in one embodiment;
[0042] Figure 6 Schematic diagram of the structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0043] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0044] For ease of understanding, the system to which this application is applicable is first described. This application provides an information sharing processing method that can be applied to Figure 1 In the system architecture shown. The system includes: a user space file server 103 and a terminal device 101, and the terminal device 101 communicates with the user space file server 103 through the network. Among them, the user space file server 103 can be a file server based on the NFSv3\v4 protocol, running in a Linux environment, and NFS (Network File System) is a network abstraction above the file system, which allows remote clients running on the terminal device 101 to access through the network in a manner similar to the local file system. The terminal device 101 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc., and the user space file server 103 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0045] Figure 2 This is a flowchart of an information sharing processing method provided in an embodiment of the present application. The method can be performed as follows: Figure 1 The user space file server is executed in the system shown. Figure 2 As shown, the method may include the following steps:
[0046] Step 201: Obtain a sharing query instruction sent by a client.
[0047] The client here can be a remote client or a local client.
[0048] The user space file server obtains the sharing query instruction sent by the client. The sharing query instruction here may be a showmount command, which is used to query relevant information of the user space file server.
[0049] Step 203: In response to the sharing query instruction, a sharing query result is generated according to the configuration information of the sharing directory.
[0050] A shared directory is a method of providing a network file system directory to external clients for access.
[0051] The shared query results include the pseudo-directory path information of the shared directory, where the pseudo-directory path information can be the directory information virtualized to the access point. An access point refers to a device that connects a wireless network to a traditional network. It behaves like a bridge, forwarding frames between the wireless network and the traditional network. In some scenarios, there may be multiple identical directory path information in the shared query results. That is, multiple shared directories may correspond to the same directory path information, but the pseudo-directory path information of the shared directory is usually unique. Therefore, this application utilizes the uniqueness of the pseudo-directory path information to display in the shared query results in order to distinguish different shared directories.
[0052] In response to the shared query instruction, based on the configuration information of the shared directory, the operation of generating the shared query result can be directly executed by the storage node receiving the shared query instruction or executed by the destination storage node designated by the storage node receiving the shared query instruction.
[0053] Step 205: Return the shared query result to the client, so that the client can access the shared directory based on the shared query result.
[0054] The user space file server returns the generated shared query result to the client. After receiving the shared query result, the client can access the shared directory based on the shared query result.
[0055] As can be seen, the embodiment of the present application obtains a shared query instruction sent by a client; in response to the shared query instruction, generates a shared query result based on the configuration information of the shared directory; wherein the shared query result includes the pseudo-directory path information of the shared directory; and returns the shared query result to the client so that the client can access the shared directory based on the shared query result. Because the pseudo-directory path information is unique to a shared directory, it can achieve the effect of preventing the remote client from being unable to distinguish and access multiple shared directories with the same directory path when they coexist.
[0056] The following describes in detail the "generating shared query results" in step 203 above in conjunction with an embodiment.
[0057] In some embodiments, generating a shared query result includes at least one of the following methods:
[0058] Method 1: Generate a shared query result including pseudo directory path information and directory path information of a shared directory.
[0059] In response to the shared query instruction, the user space file server can splice the pseudo directory path information and directory path information of the shared directory according to the configuration information of the shared directory to generate a shared query result including the pseudo directory path information and directory path information of the shared directory. For example: dirpath (directory path information): dirpseudo (pseudo directory path information). This shared query result can meet the client's need to access the shared directory based on both the directory path information and the pseudo directory path information.
[0060] Method 2: If the shared directory is for object storage, generate query results that only include pseudo-directory path information.
[0061] The storage types targeted by shared directories primarily include object storage, file storage, and local storage. If the shared directories target object storage, multiple shared directories may have the same directory path information but different pseudo-directory path information. In this case, in Method 2, the pseudo-directory path information can be used to distinguish between the shared directories. That is, when the user-space file server responds to a shared query instruction and generates a shared query result based on the shared directory's configuration information, if the shared directory's configuration information targets object storage, a query result containing only the pseudo-directory path information is generated.
[0062] In some embodiments, reference Figure 3 , the second method may specifically include the following steps:
[0063] Step 301: Obtain storage type parameter information from the configuration information of the shared directory to determine the storage type indicated by the storage type parameter information.
[0064] The user-space file server obtains storage type parameter information from the shared directory's configuration information. This storage type parameter information is obtained because the path information used to access the shared directory varies when the user-space file server is connected to different storage systems. When connecting to file storage and local systems, the directory path information for each shared directory is unique. Multiple shared directories can be distinguished based on this directory path information, and clients can use this directory path information when accessing the shared directories. However, when connecting to object storage, multiple shared directories may have the same path information but different pseudo-directory path information. In this case, the pseudo-directory path information for multiple shared directories is unique, and the pseudo-directory path information is used to distinguish multiple shared directories. Clients can use this pseudo-directory path information when accessing the shared directories. Therefore, by obtaining storage type parameter information from the shared directory's configuration information, the storage type to which the current shared directory is connected can be distinguished based on the storage type parameter information, and shared query results can be generated based on the storage type to which the shared directory is connected. Of course, in addition to generating shared query results based on the storage type to which the shared directory is connected, other methods can also be used to generate shared query results. This will not be discussed in detail here.
[0065] Step 303: If the storage type parameter information indicates file storage or local storage, a sharing query result including only directory path information is generated.
[0066] Among them, the configuration information of the shared directory includes but is not limited to the directory path information, pseudo-directory path information and storage type parameter information of the shared directory. The storage type of the shared directory can be determined based on the storage type parameter information of the shared directory in the configuration information of the shared directory. For example, if the storage type parameter information of the shared directory is Name=ICFS, it indicates file storage, which means that the Internet cloud service provider provides a file storage service. If the storage type parameter information of the shared directory is Name=RGW (Rados Gateway), it indicates object storage, which means that the Internet cloud service provider provides an object storage service. If the storage type parameter information of the shared directory is Name=VFS (virtual file system), it indicates local storage, which means that the Internet cloud service provider provides an object storage service.
[0067] Here, if the storage type parameter information indicates file storage or local storage, a shared query result is generated that only includes directory path information. As mentioned above, when connecting to file storage and a local system, the directory path information of each shared directory is unique. Therefore, generating a shared query result that only includes directory path information can meet the client's need to differentiate access to shared directories. It should be noted that a shared query result that includes both pseudo-directory path information and directory path information of the shared directory can also be generated at this time.
[0068] Step 305: If the storage type parameter information indicates object storage, generate a sharing query result including only pseudo directory path information.
[0069] Here, if the storage type parameter information indicates object storage, a shared query result including only the directory path information is generated. As mentioned above, when docking with object storage, there will be a situation where the directory path information of multiple shared directories is the same. When the client knows the directory path information, it is impossible to distinguish between multiple shared directories. Therefore, only generating a shared query result including pseudo-directory path information can meet the client's need to distinguish between shared directories. It should be noted that at this time, a shared query result including pseudo-directory path information and directory path information of a shared directory can also be generated, but at this time the directory path information of multiple shared directories is exactly the same. Therefore, even if it is generated, the client will not use it to access the shared directory.
[0070] In some embodiments, before generating the sharing query result, it also includes: obtaining the main switch information from the configuration information of the shared directory; if the main switch information indicates the on state, executing method one; if the main switch information indicates the off state, executing method two.
[0071] The shared directory configuration information also includes the shared directory's master switch information. Based on the master switch information, the user space file server can determine whether to generate shared query results using method 1 or method 2. Administrators can configure the master switch information in the shared directory configuration information to determine whether the master switch information is on or off.
[0072] The user space file server obtains the main switch information from the configuration information of the shared directory. If the main switch information indicates the on state, method one is executed. When generating the shared query result, there is no need to distinguish between different storage types of the shared directory. The shared query result including the pseudo-directory path information and directory path information of the shared directory is directly generated.
[0073] If the master switch information indicates an off state, method two is executed. When generating a shared query result, the shared query result can be determined based on the storage type indicated by the storage type parameter information. Here, if the storage type parameter information indicates file storage or local storage, a shared query result including only directory path information is generated; if the storage type parameter information indicates object storage, a shared query result including only pseudo-directory path information is generated.
[0074] It should be noted that the master switch information generally indicates the OFF state by default. If multiple shared directories exist simultaneously and the master switch information indicates the OFF state, Method 1 is directly executed. If the master switch information indicates the OFF state, the storage type parameters of each shared directory are obtained, and Method 2 is executed based on the storage type indicated by the storage type parameters of each shared directory. Shared directories of different storage types do not interfere with each other.
[0075] In some embodiments, before generating the sharing query result, it also includes: obtaining separate switch information corresponding to each shared file in the shared directory from the configuration information of the shared directory; if the separate switch information of the shared file indicates the on state, then executing method one for the shared file; if the separate switch information of the shared file indicates the off state, then executing method two for the shared file.
[0076] The shared directory includes multiple shared files, and the configuration information of the shared directory also includes individual switch information for each shared file in the shared directory. Based on the indication of the individual switch information, it can be determined whether to use method one or method two to generate a shared query result for the corresponding shared file. The administrator can configure the individual switch information for each shared file in the configuration information of the shared directory to determine the on / off status of the individual switch information.
[0077] Among them, the user space file server obtains the individual switch information corresponding to each shared file in the shared directory from the configuration information of the shared directory. If the individual switch information of the shared file indicates the on state, then method one is executed for the shared file. If the individual switch information indicates the off state, then method two is executed for the shared file. The individual switch information here has the same function as the main switch information, except that the individual switch information is for a single shared file, while the main switch information is for a single shared directory, which will not be repeated here. It should be noted here that the individual switch information generally also defaults to indicating the off state. In addition, the method for generating the shared query results here can also determine the method for generating the shared query results based on the combination of the main switch information and the individual switch information, which will not be described in detail here.
[0078] In combination with the implementation in the above embodiment, Figure 4 An example of a preferred method flow provided in the embodiment of the present application is described. Figure 4 As shown, the method may include the following steps:
[0079] S410: Obtain a sharing query instruction sent by the client.
[0080] S420, in response to the sharing query instruction, obtain the main switch information from the configuration information of the shared directory; determine the status of the main switch information, if the main switch information indicates the on state, execute step S430; if the main switch information indicates the off state, execute step S440.
[0081] S430: Concatenate the pseudo-directory path information and the directory path information of the shared directory to generate a shared query result including the pseudo-directory path information and the directory path information of the shared directory, and then execute step S470.
[0082] S440, obtain storage type parameter information from the configuration information of the shared directory; determine the storage type indicated by the storage type parameter information, if the storage type parameter information indicates file storage or local storage, execute step S450; if the storage type parameter information indicates object storage, execute step S460.
[0083] S450: Generate a shared query result including only directory path information, and execute step S470.
[0084] S460: Generate a shared query result including only pseudo directory path information.
[0085] S470: Return the shared query result to the client, so that the client can access the shared directory based on the shared query result.
[0086] The above process is only a preferred embodiment, and other methods can also be used, which will not be described here in detail.
[0087] It should be understood that although Figure 2-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this application, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Figure 2-Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0088] The above method embodiments can be applied to various application scenarios, including but not limited to the following application scenarios:
[0089] When the directory path information of multiple shared directories of the user space file server is the same but the pseudo-directory path information is different, a shared query result including the pseudo-directory path information and directory path information of the shared directory can be generated, or a shared query result including the pseudo-directory path information of the shared directory can be generated, thereby avoiding the situation where the remote client cannot distinguish and mount multiple shared directories with the same directory path at the same time.
[0090] Figure 5 This is a schematic diagram of the structure of an information sharing processing device provided in an embodiment of the present application. The device can be set at Figure 1 The user space file server in the system shown is used to execute Figure 2-Figure 4 The method flow shown in . Figure 5 As shown, the device may include: an acquisition module 501, a generation module 503 and a return module 505. The main functions of each component module are as follows:
[0091] The acquisition module 501 is used to acquire the sharing query instruction sent by the client.
[0092] The generating module 503 is configured to generate a sharing query result in response to the sharing query instruction and according to the configuration information of the sharing directory; wherein the sharing query result includes pseudo directory path information of the sharing directory.
[0093] The return module 505 is configured to return the shared query result to the client, so that the client can access the shared directory based on the shared query result.
[0094] In some embodiments, the generation module 503 generates the shared query results in at least one of the following ways:
[0095] Method 1: Generate a shared query result including pseudo-directory path information of a shared directory and directory path information;
[0096] Method 2: If the shared directory is for object storage, generate query results that only include pseudo-directory path information.
[0097] In some embodiments, the second method includes:
[0098] Get storage type parameter information from the shared directory configuration information;
[0099] If the storage type parameter information indicates file storage or local storage, a shared query result including only directory path information is generated;
[0100] If the storage type parameter information indicates object storage, a sharing query result including only pseudo directory path information is generated.
[0101] In some embodiments, before generating the shared query result, the generation module 503 further executes:
[0102] Get the master switch information from the configuration information of the shared directory;
[0103] If the main switch information indicates the on state, execute method 1;
[0104] If the main switch information indicates the off state, execute method 2.
[0105] In some embodiments, before generating the shared query result, the generation module 503 further executes:
[0106] Obtaining individual switch information corresponding to each shared file in the shared directory from the configuration information of the shared directory;
[0107] If the separate switch information of the shared file indicates an on state, method 1 is executed for the shared file;
[0108] If the separate switch information of the shared file indicates a closed state, the second method is executed for the shared file.
[0109] In some embodiments, when the generation module 503 generates the shared query result including pseudo directory path information and directory path information of the shared directory, it may specifically perform the following steps:
[0110] The pseudo-directory path information and directory path information of the shared directory are concatenated to generate a shared query result.
[0111] In some embodiments, the device generates a shared query result in response to a shared query instruction according to configuration information of the shared directory, and the operation is directly performed by the storage node receiving the shared query instruction or by the destination storage node specified by the storage node receiving the shared query instruction.
[0112] The same or similar parts between the above embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0113] It should be noted that the embodiments of this application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, provided that it complies with the applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, and explicit authorization by the user).
[0114] According to an embodiment of the present application, the present application also provides a computer device and a computer-readable storage medium.
[0115] like Figure 6 , which is a block diagram of a computer device according to an embodiment of the present application. The term "computer device" is intended to refer to various forms of digital computers or mobile devices. Digital computers may include desktop computers, portable computers, workstations, personal digital assistants, servers, mainframe computers, and other suitable computers. Mobile devices may include tablet computers, smartphones, wearable devices, and the like.
[0116] like Figure 6 As shown, device 600 includes a computing unit 601, ROM 602, RAM 603, a bus 604, and an input / output (I / O) interface 605. Computing unit 601, ROM 602, and RAM 603 are connected to each other via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0117] The computing unit 601 can perform various processes in the method embodiment of the present application according to the computer instructions stored in the read-only memory (ROM) 602 or the computer instructions loaded from the storage unit 608 into the random access memory (RAM) 603. The computing unit 601 can be various general and / or special processing components with processing and computing capabilities. The computing unit 601 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units for running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. In some embodiments, the method provided in the embodiment of the present application can be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 608.
[0118] The RAM 603 may also store various programs and data required for the operation of the device 600. Part or all of the computer program may be loaded and / or installed onto the device 600 via the ROM 602 and / or the communication unit 609.
[0119] The input unit 606, output unit 607, storage unit 608, and communication unit 609 in device 600 can be connected to I / O interface 605. Input unit 606 can be, for example, a keyboard, mouse, touch screen, microphone, etc.; output unit 607 can be, for example, a display, speaker, indicator light, etc. Device 600 can exchange information, data, etc. with other devices via communication unit 609.
[0120] It should be noted that the device may also include other components necessary for normal operation, or may only include components necessary for implementing the solution of this application, rather than all the components shown in the figure.
[0121] Various implementations of the systems and techniques described herein can be realized in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0122] The computer instructions for implementing the method of the present application can be written in any combination of one or more programming languages. These computer instructions can be provided to the computing unit 601, so that when the computer instructions are executed by the computing unit 601, such as a processor, the steps involved in the method embodiments of the present application are performed.
[0123] The computer-readable storage medium provided herein may be a tangible medium that may contain or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0124] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.
Claims
1. An information sharing processing method, characterized in that: The method includes: Get the shared query command sent by the client; In response to the shared query instruction, generating a shared query result according to the configuration information of the shared directory; Returning the shared query result to the client, so that the client can access the shared directory based on the shared query result; The generating of the shared query result includes at least one of the following methods: Method 1: Generate a shared query result including pseudo-directory path information of a shared directory and directory path information; Method 2: If the shared directory is for object storage, generate a query result including only pseudo-directory path information; wherein the pseudo-directory path information refers to directory information virtualized to an access point.
2. The method according to claim 1, characterized in that The second method includes: Acquire storage type parameter information from the configuration information of the shared directory; If the storage type parameter information indicates file storage or local storage, generating a shared query result including only directory path information; If the storage type parameter information indicates object storage, a sharing query result including only pseudo directory path information is generated.
3. The method according to any one of claims 1-2, characterized in that Before generating the shared query results, the method further includes: Obtaining master switch information from the configuration information of the shared directory; If the main switch information indicates an on state, execute the method 1; If the main switch information indicates an off state, the second method is executed.
4. The method according to any one of claims 1-2, characterized in that Before generating the shared query results, the method further includes: Acquire individual switch information corresponding to each shared file in the shared directory from the configuration information of the shared directory; If the separate switch information of the shared file indicates an on state, executing the first method for the shared file; If the separate switch information of the shared file indicates a closed state, the second method is executed for the shared file.
5. The method according to claim 1, wherein The generating of the shared query result including pseudo directory path information and directory path information of the shared directory includes: The pseudo-directory path information and the directory path information of the shared directory are spliced together to generate a shared query result.
6. The method according to claim 1, characterized in that In response to the shared query instruction, the operation of generating a shared query result according to the configuration information of the shared directory is directly performed by the storage node receiving the shared query instruction or by a destination storage node designated by the storage node receiving the shared query instruction.
7. A method and apparatus for shared information processing, characterized in that: The device includes: The acquisition module is used to obtain the shared query instruction sent by the client; A generating module, configured to generate a sharing query result in response to the sharing query instruction and according to the configuration information of the sharing directory; a returning module, configured to return the shared query result to the client, so that the client can access the shared directory based on the shared query result; The generating module is further used in at least one of the following ways: Method 1: Generate a shared query result including pseudo-directory path information and directory path information of the shared directory; Method 2: If the shared directory is for object storage, generate a query result including only pseudo-directory path information; wherein, the pseudo-directory path information refers to the directory information under the virtual access point.
8. A computer device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores computer instructions that can be executed by the at least one processor. The computer 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.
9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: The computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
File sharing method and system, and server
CN105227661A