CN106993057A - A method and device for managing file resource sharing - Google Patents
A method and device for managing file resource sharing Download PDFInfo
- Publication number
- CN106993057A CN106993057A CN201710372995.8A CN201710372995A CN106993057A CN 106993057 A CN106993057 A CN 106993057A CN 201710372995 A CN201710372995 A CN 201710372995A CN 106993057 A CN106993057 A CN 106993057A
- Authority
- CN
- China
- Prior art keywords
- resource sharing
- file resource
- request information
- management
- managing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000012545 processing Methods 0.000 claims abstract description 65
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提出一种管理文件资源共享的方法,采用该方法在存储系统内存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,多个处理程序实现对所有类型的文件资源共享的管理;当接收到管理文件资源共享的请求信息时,解析该请求信息,确认该请求信息请求管理的文件资源共享的类型;然后根据所述文件资源共享的类型,调用能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。采用上述技术方案,存储系统能够通过同一接口实现对各种类型的文件资源共享的管理使存储系统能够直接与云管理平台的对接。
The present invention proposes a method for managing file resource sharing. Using the method, multiple processing programs are stored in the storage system. Each processing program can realize the management of one type of file resource sharing, and multiple processing programs can realize the management of all types of file resources. management of file resource sharing; when receiving request information for managing file resource sharing, parse the request information to confirm the type of file resource sharing requested by the request information; then, according to the type of file resource sharing, call can be implemented The processing program for the management of this type of file resource sharing completes the management of the file resource sharing for which the request information requests management. By adopting the above technical solution, the storage system can realize the sharing management of various types of file resources through the same interface, so that the storage system can directly connect with the cloud management platform.
Description
技术领域technical field
本发明涉及文件资源共享技术领域,尤其涉及一种管理文件资源共享的方法及装置。The present invention relates to the technical field of file resource sharing, in particular to a method and device for managing file resource sharing.
背景技术Background technique
计算机网络的发展给人们的生活带来极大的便利,人们可以利用计算机网络实现与他人共享文件资源。网络技术的发展又催生出多种不同类型的文件资源共享方案,如网络文件系统(Network File System,NFS)共享、通用网络文件系统(Common Internet FileSystem,CIFS)共享、文件传输协议(File Transfer Protocol,FTP)共享等,不同类型的共享,需要不同的共享协议来完成。The development of computer network brings great convenience to people's life. People can use computer network to share file resources with others. The development of network technology has spawned many different types of file resource sharing schemes, such as Network File System (Network File System, NFS) sharing, Common Internet File System (Common Internet File System, CIFS) sharing, File Transfer Protocol (File Transfer Protocol) , FTP) sharing, etc., different types of sharing require different sharing protocols to complete.
存储系统为了配合用户完成对文件资源共享的创建与管理,需要具备相应的处理能力来响应用户的管理操作请求。一个存储系统具备对多种类型的共享进行操作处理的能力,对不同类型的文件资源共享的处理需要不同的处理模块来完成,并且每个处理模块都具备专用接口。而在云计算领域,如果将存储系统与云管理平台对接,需要存储系统为云管平台提供统一的接口来处理不同类型的文件资源共享,而现有的存储系统只能通过多个不同的接口来完成对不同类型的文件资源共享的处理,因此,不能直接与云管理平台的对接。In order to cooperate with users to complete the creation and management of file resource sharing, the storage system needs to have corresponding processing capabilities to respond to user management operation requests. A storage system has the ability to operate and process multiple types of sharing, and the processing of different types of file resource sharing requires different processing modules to complete, and each processing module has a dedicated interface. In the field of cloud computing, if the storage system is connected to the cloud management platform, the storage system needs to provide a unified interface for the cloud management platform to handle different types of file resource sharing. However, the existing storage system can only use multiple different interfaces. To complete the processing of different types of file resource sharing, therefore, it cannot directly connect with the cloud management platform.
发明内容Contents of the invention
基于上述现有技术的缺陷和不足,本发明提出一种管理文件资源共享的方法及装置,能够使存储系统通过同一接口实现对任意类型的文件资源共享的管理。Based on the defects and deficiencies of the above-mentioned prior art, the present invention proposes a method and device for managing file resource sharing, which enables the storage system to manage any type of file resource sharing through the same interface.
一种管理文件资源共享的方法,应用于存储系统,所述存储系统存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,所述多个处理程序能够实现对所有类型的文件资源共享的管理;该方法包括:A method for managing file resource sharing, applied to a storage system, where the storage system stores multiple processing programs, each processing program can manage a type of file resource sharing, and the multiple processing programs can implement Management of all types of file resource sharing; the method includes:
接收管理文件资源共享的请求信息;所述管理文件资源共享的请求信息包括创建或管理设定的文件资源共享的请求信息;Receive request information for managing file resource sharing; the request information for managing file resource sharing includes request information for creating or managing set file resource sharing;
解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型;Analyzing the request information for managing file resource sharing, and confirming the type of file resource sharing requested by the request information;
根据所述文件资源共享的类型,调用能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。According to the type of file resource sharing, a processing program capable of managing the type of file resource sharing is called to complete the management of the file resource sharing requested by the request information.
优选地,在接收管理文件资源共享的请求信息后,该方法还包括:Preferably, after receiving the request information for managing file resource sharing, the method further includes:
对所述管理文件资源共享的请求信息进行鉴权处理;Perform authentication processing on the request information for managing file resource sharing;
当鉴权确认所述管理文件资源共享的请求信息为合法请求信息时,解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型。When the authentication confirms that the request information for managing file resource sharing is legitimate request information, analyze the request information for managing file resource sharing, and confirm the type of file resource sharing requested by the request information.
优选地,所述对所述管理文件资源共享的请求信息进行鉴权处理,包括:Preferably, the authentication processing of the request information for managing file resource sharing includes:
从所述管理文件资源共享的请求信息中,解析得到密钥信息;Analyzing and obtaining key information from the request information for sharing management file resources;
将所述密钥信息与密钥信息库中的密钥信息进行对比,判断所述密钥信息是不是所述密钥信息库中的密钥信息;Comparing the key information with the key information in the key information storehouse, and judging whether the key information is the key information in the key information storehouse;
如果所述密钥信息是所述密钥信息库中的密钥信息,则确认所述管理文件资源共享的请求信息为合法请求信息。If the key information is the key information in the key information repository, confirm that the request information for managing file resource sharing is legal request information.
优选地,所述完成对所述请求信息请求管理的文件资源共享的管理,包括:Preferably, the completing the management of the file resource sharing of the request information request management includes:
将所述请求信息转换成设定类型的操作指令;其中所述设定类型的操作指令为所述存储系统可执行的操作指令;converting the request information into a set type of operation instruction; wherein the set type of operation instruction is an executable operation instruction of the storage system;
执行所述操作指令,完成对所述请求信息请求管理的文件资源共享的管理操作;Executing the operation instruction to complete the management operation of sharing the file resources requested for management by the request information;
返回管理操作的结果。Returns the result of an administrative operation.
优选地,该方法还包括:Preferably, the method also includes:
将所述请求信息请求管理的文件资源共享的设定信息,存储到数据库。The setting information of file resource sharing that the request information requests management is stored in the database.
一种管理文件资源共享的装置,应用于存储系统,该装置包括:A device for managing file resource sharing is applied to a storage system, and the device includes:
存储单元,用于存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,所述多个处理程序能够实现对所有类型的文件资源共享的管理;The storage unit is used to store multiple processing programs, each processing program can realize the management of one type of file resource sharing, and the multiple processing programs can realize the management of all types of file resource sharing;
接收单元,用于接收管理文件资源共享的请求信息;所述管理文件资源共享的请求信息包括创建或管理设定的文件资源共享的请求信息;A receiving unit, configured to receive request information for managing file resource sharing; the request information for managing file resource sharing includes request information for creating or managing set file resource sharing;
解析单元,用于解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型;A parsing unit, configured to parse the request information for managing file resource sharing, and confirm the type of file resource sharing requested by the request information;
处理单元,用于根据所述文件资源共享的类型,调用所述存储单元中能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。The processing unit is configured to call a processing program in the storage unit capable of managing the type of file resource sharing according to the type of file resource sharing, and complete the management of the file resource sharing requested by the request information.
优选地,该装置还包括:Preferably, the device also includes:
鉴权处理单元,用于对所述管理文件资源共享的请求信息进行鉴权处理;An authentication processing unit, configured to perform authentication processing on the request information for managing file resource sharing;
当鉴权确认所述管理文件资源共享的请求信息为合法请求信息时,控制所述解析单元解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型。When the authentication confirms that the request information for managing file resource sharing is legitimate request information, control the parsing unit to analyze the request information for managing file resource sharing, and confirm the type of file resource sharing requested by the request information.
优选地,所述鉴权处理单元对所述管理文件资源共享的请求信息进行鉴权处理时,具体用于:Preferably, when the authentication processing unit performs authentication processing on the request information for managing file resource sharing, it is specifically configured to:
从所述管理文件资源共享的请求信息中,解析得到密钥信息;将所述密钥信息与密钥信息库中的密钥信息进行对比,判断所述密钥信息是不是所述密钥信息库中的密钥信息;如果所述密钥信息是所述密钥信息库中的密钥信息,则确认所述管理文件资源共享的请求信息为合法请求信息。Analyzing the key information from the request information of the management file resource sharing; comparing the key information with the key information in the key information database, and judging whether the key information is the key information The key information in the library; if the key information is the key information in the key information library, confirm that the request information for managing file resource sharing is legal request information.
优选地,所述处理单元完成对所述请求信息请求管理的文件资源共享的管理时,具体用于:Preferably, when the processing unit completes the management of the file resource sharing of the request information request management, it is specifically used for:
将所述请求信息转换成设定类型的操作指令;其中所述设定类型的操作指令为所述存储系统可执行的操作指令;执行所述操作指令,完成对所述请求信息请求管理的文件资源共享的管理操作;返回管理操作的结果。Converting the request information into an operation instruction of a set type; wherein the operation instruction of the set type is an executable operation instruction of the storage system; executing the operation instruction to complete the file requested for management of the request information Management operation for resource sharing; returns the result of the management operation.
优选地,所述处理单元还用于:Preferably, the processing unit is also used for:
将所述请求信息请求管理的文件资源共享的设定信息,存储到数据库。The setting information of file resource sharing that the request information requests management is stored in the database.
采用本发明提出的管理文件资源共享的方法,在存储系统内存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,多个处理程序实现对所有类型的文件资源共享的管理;当接收到管理文件资源共享的请求信息时,解析该请求信息,确认该请求信息请求管理的文件资源共享的类型;然后根据所述文件资源共享的类型,调用能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。在上述技术方案中,存储系统中具有管理所有类型的文件资源共享的处理程序,并且通过同一接口实现对各种类型的文件资源共享的管理,使存储系统能够直接与云管理平台的对接。Using the method for managing file resource sharing proposed by the present invention, multiple processing programs are stored in the storage system, each processing program can realize the management of one type of file resource sharing, and multiple processing programs can realize the management of all types of file resources Shared management; when receiving request information for managing file resource sharing, parse the request information to confirm the type of file resource sharing requested by the request information; then, according to the type of file resource sharing, call the The processing program for the management of the file resource sharing completes the management of the file resource sharing for the request information request management. In the above technical solution, the storage system has a processing program for managing all types of file resource sharing, and realizes the management of various types of file resource sharing through the same interface, so that the storage system can directly connect with the cloud management platform.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1是本发明实施例提供的一种管理文件资源共享的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for managing file resource sharing provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种管理文件资源共享的方法的流程示意图;FIG. 2 is a schematic flowchart of another method for managing file resource sharing provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种管理文件资源共享的方法的流程示意图;FIG. 3 is a schematic flowchart of another method for managing file resource sharing provided by an embodiment of the present invention;
图4是本发明实施例提供的一种管理文件资源共享的装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for managing file resource sharing provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种管理文件资源共享的装置的结构示意图。Fig. 5 is a schematic structural diagram of another device for managing file resource sharing provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例公开了一种管理文件资源共享的方法,应用于存储系统,所述存储系统存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,所述多个处理程序能够实现对所有类型的文件资源共享的管理;The embodiment of the present invention discloses a method for managing file resource sharing, which is applied to a storage system. The storage system stores multiple processing programs, and each processing program can manage a type of file resource sharing. The multiple processing programs A handler can realize the management of all types of file resource sharing;
具体的,现有的存储系统管理文件资源共享时,根据不同的文件资源共享协议的差异,存储系统采用不同的文件资源共享管理模块,实现对文件资源共享的管理。相应的,对每个管理模块,需要设置相应的接口来接收管理请求,执行相应的管理操作。因此,当存储系统接收不同类型的共享管理请求时,需要调用相应的接口来进行处理,也就是不能通过统一的接口处理不同类型的文件资源共享管理请求。Specifically, when an existing storage system manages file resource sharing, the storage system uses different file resource sharing management modules according to differences in different file resource sharing protocols to implement management of file resource sharing. Correspondingly, for each management module, a corresponding interface needs to be set up to receive management requests and perform corresponding management operations. Therefore, when the storage system receives different types of sharing management requests, it needs to call corresponding interfaces for processing, that is, different types of file resource sharing management requests cannot be processed through a unified interface.
在本发明实施例中,在存储系统内存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理。上述多个处理程序的具体数量并无限制,理论上多个处理程序综合起来能够实现对所有类型的文件资源共享的管理。上述每个处理程序,相当于一个文件资源共享管理模块,也就是说,在本发明实施例中,存储系统中有多个文件资源共享管理模块,分别实现对不同类型的文件资源共享的管理,多个文件资源共享管理模块,能够实现对所有类型的文件资源共享的管理。并且,由于对每一种类型的文件资源共享的管理都是模块化的,因此,可以根据需求,灵活地对文件资源共享管理模块进行增减,以便灵活地修改存储系统管理文件资源共享的处理能力。In the embodiment of the present invention, multiple processing programs are stored in the storage system, and each processing program is capable of managing a type of file resource sharing. The specific number of the above-mentioned multiple processing programs is not limited, and theoretically multiple processing programs can be integrated to realize the management of all types of file resource sharing. Each of the above-mentioned processing programs is equivalent to a file resource sharing management module, that is to say, in the embodiment of the present invention, there are multiple file resource sharing management modules in the storage system, which respectively realize the management of different types of file resource sharing, Multiple file resource sharing management modules can realize the management of all types of file resource sharing. Moreover, since the management of each type of file resource sharing is modularized, the file resource sharing management module can be flexibly increased or decreased according to requirements, so as to flexibly modify the processing of the storage system to manage file resource sharing ability.
上述对文件资源共享的管理,具体可以包括创建文件资源共享,以及对已经创建的文件资源共享进行管理等。The above-mentioned management of file resource sharing may specifically include creating file resource sharing, managing created file resource sharing, and the like.
基于上述对存储系统的改进,参见图1所示,存储系统管理文件资源共享的具体过程包括:Based on the above improvements to the storage system, as shown in Figure 1, the specific process of the storage system to manage file resource sharing includes:
S101、接收管理文件资源共享的请求信息;所述管理文件资源共享的请求信息包括创建或管理设定的文件资源共享的请求信息;S101. Receive request information for managing file resource sharing; the request information for managing file resource sharing includes request information for creating or managing set file resource sharing;
具体的,当用户创建或管理文件资源共享时,其实都是在存储系统中进行的操作。因此,当用户创建或管理文件资源共享时,首先向存储系统发送管理文件资源共享的请求信息。该请求信息不限于是对已经创建的文件资源共享进行管理,还包括创建新的文件资源共享。并且,上述文件资源共享可以是任意类型的文件资源共享。Specifically, when a user creates or manages file resource sharing, operations are actually performed in the storage system. Therefore, when a user creates or manages a file resource share, the request information for managing the file resource share is first sent to the storage system. The request information is not limited to managing the created file resource share, but also includes creating a new file resource share. Moreover, the above-mentioned file resource sharing may be any type of file resource sharing.
S102、解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型;S102. Analyzing the request information for managing file resource sharing, and confirming the type of file resource sharing requested by the request information;
具体的,由于存储系统接收的管理文件资源共享的请求信息可能是创建或管理任意类型的文件资源共享的请求信息,而对不同类型的文件资源共享进行操作处理的程序不同,因此,存储系统需要确认接收的管理文件资源共享的请求信息,到底是对哪种类型的文件资源共享的管理请求,才能确认选用哪个处理程序实现对文件资源共享的管理操作。Specifically, since the request information for managing file resource sharing received by the storage system may be request information for creating or managing any type of file resource sharing, and the procedures for operating and processing different types of file resource sharing are different, the storage system needs Only by confirming which type of file resource sharing management request information is received to manage file resource sharing is it possible to confirm which processing program is selected to realize the management operation of file resource sharing.
在管理文件资源共享的请求信息中,携带需要管理的文件资源共享的信息,包括文件资源共享的类型信息,存储系统解析接收的管理文件资源共享的请求信息,可以从中确认该请求信息请求管理的文件资源共享的类型。In the request information for managing file resource sharing, information about file resource sharing that needs to be managed is carried, including the type information of file resource sharing. The storage system parses the received request information for managing file resource sharing, and can confirm the request information for management from it. The type of file resource sharing.
S103、根据所述文件资源共享的类型,调用能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。S103. According to the type of file resource sharing, call a processing program capable of managing the type of file resource sharing, and complete the management of the file resource sharing requested by the request information.
具体的,在步骤S102中,存储系统解析确认所接收的管理文件资源共享的请求信息所请求管理的文件资源共享,以及请求管理的文件资源共享的类型后,存储系统进一步调用能够实现对该类型的文件资源共享的管理的处理程序,来实现对该文件资源共享的管理操作,例如创建该文件资源共享,或对该文件资源共享进行管理操作等。Specifically, in step S102, after the storage system analyzes and confirms the file resource sharing requested to be managed by the received request information for managing file resource sharing and the type of file resource sharing requested to be managed, the storage system further calls the The processing program of the management of the file resource sharing implements the management operation of the file resource sharing, such as creating the file resource sharing, or performing management operations on the file resource sharing, etc.
采用本发明实施例提出的管理文件资源共享的方法,在存储系统内存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,多个处理程序实现对所有类型的文件资源共享的管理;当接收到管理文件资源共享的请求信息时,解析该请求信息,确认该请求信息请求管理的文件资源共享的类型;然后根据所述文件资源共享的类型,调用能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。在上述技术方案中,存储系统中具有管理所有类型的文件资源共享的处理程序,并且通过同一接口实现对各种类型的文源共享的管理,使存储系统能够直接与云管理平台的对接。Using the method for managing file resource sharing proposed by the embodiment of the present invention, multiple processing programs are stored in the storage system, each processing program can realize the management of one type of file resource sharing, and multiple processing programs can realize the management of all types of file resource sharing. Management of file resource sharing; when receiving request information for managing file resource sharing, parse the request information to confirm the type of file resource sharing requested by the request information; then, according to the type of file resource sharing, call the The processing program of this type of file resource sharing management completes the file resource sharing management of the request information request management. In the above technical solution, the storage system has a processing program for managing all types of file resource sharing, and realizes the management of various types of file resource sharing through the same interface, so that the storage system can directly connect with the cloud management platform.
可选的,在本发明的另一个实施例中,参见图2所示,在接收管理文件资源共享的请求信息后,该方法还包括:Optionally, in another embodiment of the present invention, as shown in FIG. 2, after receiving the request information for managing file resource sharing, the method further includes:
S202、对所述管理文件资源共享的请求信息进行鉴权处理;S202. Perform authentication processing on the request information for managing file resource sharing;
当鉴权确认所述管理文件资源共享的请求信息为合法请求信息时,执行步骤S203、解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型。When the authentication confirms that the request information for managing file resource sharing is legitimate request information, execute step S203, analyze the request information for managing file resource sharing, and confirm the type of file resource sharing requested by the request information.
具体的,为了保证存储系统中的文件资源共享的安全性,存储系统还可以对管理文件资源共享的请求信息进行鉴权处理,也相当于对请求管理文件资源共享的用户进行鉴权。Specifically, in order to ensure the security of file resource sharing in the storage system, the storage system may also perform authentication processing on request information for managing file resource sharing, which is equivalent to authenticating users who request to manage file resource sharing.
存储系统通过接收的管理文件资源共享的请求信息,解析得到用户(发送该请求信息的用户)相关信息,如果用户有权限对该文件资源共享进行管理操作,则该管理文件资源共享的请求信息为合法请求信息;如果用户没有权限对该文件资源共享进行管理操作,则该管理文件资源共享的请求信息为非法请求信息。The storage system parses the received request information for managing file resource sharing to obtain relevant information about the user (the user who sent the request information). If the user has permission to manage the file resource sharing, the request information for managing file resource sharing is Legal request information; if the user does not have permission to manage the file resource sharing, the request information for managing the file resource sharing is illegal request information.
如果存储系统确认接收的管理文件资源共享的请求信息为合法请求信息,则执行后续处理,解析上述管理文件资源共享的请求信息,确认该请求信息请求管理的文件资源共享的类型。如果存储系统确认接收的管理文件资源共享的请求信息为非法请求信息,则不处理该请求信息,或者向用户反馈没有权限的提示信息。If the storage system confirms that the received request information for managing file resource sharing is legal request information, then perform subsequent processing, analyze the above request information for managing file resource sharing, and confirm the type of file resource sharing requested by the request information. If the storage system confirms that the received request information for managing file resource sharing is an illegal request information, it does not process the request information, or feeds back a prompt message that there is no permission to the user.
本实施例中的步骤S201、S203、S204分别对应图1所示的方法实施例中的步骤S101、S102、S103,其具体内容请参见对应图1所示的方法实施例的内容,此处不再赘述。Steps S201, S203, and S204 in this embodiment correspond to steps S101, S102, and S103 in the method embodiment shown in FIG. Let me repeat.
可选的,在本发明的另一个实施例中,所述对所述管理文件资源共享的请求信息进行鉴权处理,包括:Optionally, in another embodiment of the present invention, the authentication processing of the request information for managing file resource sharing includes:
从所述管理文件资源共享的请求信息中,解析得到密钥信息;Analyzing and obtaining key information from the request information for sharing management file resources;
将所述密钥信息与密钥信息库中的密钥信息进行对比,判断所述密钥信息是不是所述密钥信息库中的密钥信息;Comparing the key information with the key information in the key information storehouse, and judging whether the key information is the key information in the key information storehouse;
如果所述密钥信息是所述密钥信息库中的密钥信息,则确认所述管理文件资源共享的请求信息为合法请求信息。If the key information is the key information in the key information repository, confirm that the request information for managing file resource sharing is legal request information.
具体的,当存储系统需要对请求信息进行鉴权处理时,用户在发送请求信息时,需要携带发送密钥信息,便于存储系统根据请求信息中的密钥信息,完成对请求信息的鉴权处理。上述密钥信息,可以是预先协商确定的用户名、密码、Token等信息。Specifically, when the storage system needs to perform authentication processing on the request information, the user needs to carry the sending key information when sending the request information, so that the storage system can complete the authentication processing on the request information according to the key information in the request information . The above-mentioned key information may be information such as user name, password, Token and the like determined in advance through negotiation.
存储系统中相应的设置密钥信息库,该密钥信息库中存储所有预先协商确定的密钥信息。存储系统在接收到请求信息后,从请求信息中解析得到密钥信息,然后将解析得到的密钥信息,与密钥信息库中的密钥信息进行对比,如果解析得到的密钥信息,是密钥信息库中的密钥信息,则说明该密钥信息是预先协商确定的密钥信息,继而说明该请求信息为合法请求信息。如果解析得到的密钥信息,不是密钥信息库中的密钥信息,则说明该密钥信息不是预先协商确定的密钥信息,继而说明该请求信息为非法请求信息。Correspondingly set a key information library in the storage system, and store all pre-negotiated key information in the key information library. After receiving the request information, the storage system parses the key information from the request information, and then compares the parsed key information with the key information in the key information database. If the parsed key information is The key information in the key information storehouse indicates that the key information is pre-negotiated key information, and then indicates that the request information is legal request information. If the key information obtained through analysis is not the key information in the key information database, it means that the key information is not the key information determined in advance through negotiation, and then the request information is illegal request information.
可选的,在本发明的另一个实施例中,参见图3所示,所述完成对所述请求信息请求管理的文件资源共享的管理,包括:Optionally, in another embodiment of the present invention, as shown in FIG. 3 , the completion of the file resource sharing management of the request information request management includes:
S303、将所述请求信息转换成设定类型的操作指令;其中所述设定类型的操作指令为所述存储系统可执行的操作指令;S303. Convert the request information into an operation instruction of a set type; wherein the operation instruction of a set type is an executable operation instruction of the storage system;
具体的,存储系统确认所接收的管理文件资源共享的请求信息所请求管理的文件资源共享的类型后,调用能够实现对该类型的文件资源共享的管理的处理程序,来完成对该文件资源共享的管理。该处理程序将接收的管理文件资源共享的请求信息中的相关参数信息进行处理,转换成能够对存储系统进行操作的参数形式,从而将请求信息装换成存储系统可执行类型的操作指令,以便能够实现对存储系统中的文件资源共享的管理操作。Specifically, after the storage system confirms the type of file resource sharing requested to be managed by the received request information for managing file resource sharing, it invokes a processing program that can realize the management of this type of file resource sharing to complete the file resource sharing management. The processing program processes the relevant parameter information in the received request information for managing file resource sharing, and converts it into a parameter form capable of operating the storage system, so that the request information is converted into an executable type operation command of the storage system, so that It can realize the management operation on file resource sharing in the storage system.
S304、执行所述操作指令,完成对所述请求信息请求管理的文件资源共享的管理操作;S304. Execute the operation instruction, and complete the management operation of sharing the file resources requested for management by the request information;
具体的,执行在步骤S303中转换得到的操作指令,即可根据请求信息,实现对文件资源共享的管理操作。Specifically, by executing the operation instruction converted in step S303, the management operation on file resource sharing can be realized according to the request information.
S305、返回管理操作的结果。S305. Return the result of the management operation.
具体的,在完成对文件资源共享的管理操作后,将管理操作结果,返回给用户。例如,用户通过发送创建文件资源共享的请求信息,请求在存储系统中创建文件资源共享,存储系统完成该文件资源共享的创建后,将创建的文件资源共享的位置信息,名称等信息,反馈给用户。Specifically, after the management operation on file resource sharing is completed, the management operation result is returned to the user. For example, a user requests to create a file resource share in the storage system by sending request information for creating a file resource share. After the storage system completes the creation of the file resource share, it will feed back information such as the location and name of the created file resource share to the user.
本实施例中的步骤S301、S302分别对应图1所示的方法实施例中的步骤S101、S102,其具体内容请参见对应图1所示的方法实施例的内容,此处不再赘述。Steps S301 and S302 in this embodiment respectively correspond to steps S101 and S102 in the method embodiment shown in FIG. 1 . For specific content, please refer to the content corresponding to the method embodiment shown in FIG. 1 , which will not be repeated here.
可选的,在本发明的另一个实施例中,该方法还包括:Optionally, in another embodiment of the present invention, the method also includes:
将所述请求信息请求管理的文件资源共享的设定信息,存储到数据库。The setting information of file resource sharing that the request information requests management is stored in the database.
具体的,在本发明实施例中,执行对文件资源共享的管理操作后,将该文件资源共享的挂载点或目录等信息存储到数据库。用户可以通过数据库中的挂载点或目录等信息,查看以及操作文件资源共享,方便用户操作。Specifically, in the embodiment of the present invention, after performing the management operation on the file resource sharing, information such as the mount point or directory of the file resource sharing is stored in the database. Users can view and operate file resource sharing through information such as mount points or directories in the database, which is convenient for users to operate.
例如,当用户发送创建文件资源共享请求信息,在存储系统中创建文件资源共享后,存储系统将创建的文件资源共享的挂载点、目录等相关信息存储到数据库中。在后期用户对该文件资源共享进行操作时,不需要直接到存储系统底层,而是访问数据库中的该文件资源共享的挂载点、目录等信息,即可实现对文件资源共享的操作。For example, when a user sends request information for creating a file resource share, and after the file resource share is created in the storage system, the storage system stores related information such as a mount point and a directory of the created file resource share in a database. When users operate the file resource sharing in the later period, they do not need to go directly to the bottom layer of the storage system, but access the mount point, directory and other information of the file resource sharing in the database to realize the file resource sharing operation.
本发明实施例还公开了一种管理文件资源共享的装置,应用于存储系统,参见图4所示,该装置包括:The embodiment of the present invention also discloses a device for managing file resource sharing, which is applied to a storage system, as shown in Figure 4. The device includes:
存储单元401,用于存储多个处理程序,每个处理程序能够实现对一种类型的文件资源共享的管理,所述多个处理程序能够实现对所有类型的文件资源共享的管理;The storage unit 401 is configured to store multiple processing programs, each processing program can realize the management of one type of file resource sharing, and the multiple processing programs can realize the management of all types of file resource sharing;
接收单元402,用于接收管理文件资源共享的请求信息;所述管理文件资源共享的请求信息包括创建或管理设定的文件资源共享的请求信息;The receiving unit 402 is configured to receive request information for managing file resource sharing; the request information for managing file resource sharing includes request information for creating or managing set file resource sharing;
解析单元403,用于解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型;The parsing unit 403 is configured to parse the request information for managing file resource sharing, and confirm the type of file resource sharing requested by the request information;
处理单元404,用于根据所述文件资源共享的类型,调用所述存储单元中能够实现对该类型的文件资源共享的管理的处理程序,完成对所述请求信息请求管理的文件资源共享的管理。The processing unit 404 is configured to, according to the type of file resource sharing, call a processing program in the storage unit that can manage the file resource sharing of this type, and complete the management of the file resource sharing requested by the request information .
具体的,本实施例中的各个单元的具体工作内容,请参见对应的方法实施例的内容,此处不再赘述。Specifically, for the specific work content of each unit in this embodiment, please refer to the content of the corresponding method embodiment, which will not be repeated here.
可选的,在本发明的另一个实施例中,参见图5所示,该装置还包括:Optionally, in another embodiment of the present invention, as shown in FIG. 5, the device further includes:
鉴权处理单元405,用于对所述管理文件资源共享的请求信息进行鉴权处理;An authentication processing unit 405, configured to perform authentication processing on the request information for managing file resource sharing;
当鉴权确认所述管理文件资源共享的请求信息为合法请求信息时,控制解析单元403解析所述管理文件资源共享的请求信息,确认所述请求信息请求管理的文件资源共享的类型。When the authentication confirms that the request information for managing file resource sharing is legitimate request information, the control parsing unit 403 parses the request information for managing file resource sharing, and confirms the type of file resource sharing requested by the request information.
具体的,本实施例中的鉴权处理单元405的具体工作内容,请参见对应的方法实施例的内容,此处不再赘述。Specifically, for the specific work content of the authentication processing unit 405 in this embodiment, please refer to the content of the corresponding method embodiment, which will not be repeated here.
可选的,在本发明的另一个实施例中,鉴权处理单元405对所述管理文件资源共享的请求信息进行鉴权处理时,具体用于:Optionally, in another embodiment of the present invention, when the authentication processing unit 405 performs authentication processing on the request information for managing file resource sharing, it is specifically used to:
从所述管理文件资源共享的请求信息中,解析得到密钥信息;将所述密钥信息与密钥信息库中的密钥信息进行对比,判断所述密钥信息是不是所述密钥信息库中的密钥信息;如果所述密钥信息是所述密钥信息库中的密钥信息,则确认所述管理文件资源共享的请求信息为合法请求信息。Analyzing the key information from the request information of the management file resource sharing; comparing the key information with the key information in the key information database, and judging whether the key information is the key information The key information in the library; if the key information is the key information in the key information library, confirm that the request information for managing file resource sharing is legal request information.
具体的,本实施例中的鉴权处理单元405的具体工作内容,请参见对应的方法实施例的内容,此处不再赘述。Specifically, for the specific work content of the authentication processing unit 405 in this embodiment, please refer to the content of the corresponding method embodiment, which will not be repeated here.
可选的,在本发明的另一个实施例中,处理单元404完成对所述请求信息请求管理的文件资源共享的管理时,具体用于:Optionally, in another embodiment of the present invention, when the processing unit 404 completes the management of the file resource sharing of the request information management, it is specifically used to:
将所述请求信息转换成设定类型的操作指令;其中所述设定类型的操作指令为所述存储系统可执行的操作指令;执行所述操作指令,完成对所述请求信息请求管理的文件资源共享的管理操作;返回管理操作的结果。Converting the request information into an operation instruction of a set type; wherein the operation instruction of the set type is an executable operation instruction of the storage system; executing the operation instruction to complete the file requested for management of the request information Management operation for resource sharing; returns the result of the management operation.
具体的,本实施例中的处理单元404的具体工作内容,请参见对应的方法实施例的内容,此处不再赘述。Specifically, for the specific work content of the processing unit 404 in this embodiment, please refer to the content of the corresponding method embodiment, and details are not repeated here.
可选的,在本发明的另一个实施例中,处理单元404还用于:Optionally, in another embodiment of the present invention, the processing unit 404 is further configured to:
将所述请求信息请求管理的文件资源共享的设定信息,存储到数据库。The setting information of file resource sharing that the request information requests management is stored in the database.
具体的,本实施例中的处理单元404的具体工作内容,请参见对应的方法实施例的内容,此处不再赘述。Specifically, for the specific work content of the processing unit 404 in this embodiment, please refer to the content of the corresponding method embodiment, and details are not repeated here.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710372995.8A CN106993057A (en) | 2017-05-24 | 2017-05-24 | A method and device for managing file resource sharing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710372995.8A CN106993057A (en) | 2017-05-24 | 2017-05-24 | A method and device for managing file resource sharing |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106993057A true CN106993057A (en) | 2017-07-28 |
Family
ID=59419703
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710372995.8A Pending CN106993057A (en) | 2017-05-24 | 2017-05-24 | A method and device for managing file resource sharing |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106993057A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113296792A (en) * | 2020-07-10 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Storage method, device, equipment, storage medium and system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030033308A1 (en) * | 2001-08-03 | 2003-02-13 | Patel Sujal M. | System and methods for providing a distributed file system utilizing metadata to track information about data stored throughout the system |
| CN105069012A (en) * | 2015-07-07 | 2015-11-18 | 浪潮(北京)电子信息产业有限公司 | File access method and system |
| CN106233262A (en) * | 2014-03-17 | 2016-12-14 | 佳能株式会社 | Picture pick-up device and the control method of picture pick-up device |
-
2017
- 2017-05-24 CN CN201710372995.8A patent/CN106993057A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030033308A1 (en) * | 2001-08-03 | 2003-02-13 | Patel Sujal M. | System and methods for providing a distributed file system utilizing metadata to track information about data stored throughout the system |
| CN106233262A (en) * | 2014-03-17 | 2016-12-14 | 佳能株式会社 | Picture pick-up device and the control method of picture pick-up device |
| CN105069012A (en) * | 2015-07-07 | 2015-11-18 | 浪潮(北京)电子信息产业有限公司 | File access method and system |
Non-Patent Citations (1)
| Title |
|---|
| 吴曼林: "嵌入式NAS系统的设计与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)·信息科技辑》 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113296792A (en) * | 2020-07-10 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Storage method, device, equipment, storage medium and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113490918B (en) | System and method for invoking external functions from a data warehouse | |
| US10505982B2 (en) | Managing security agents in a distributed environment | |
| US9183031B2 (en) | Provisioning of a virtual machine by using a secured zone of a cloud environment | |
| US9442778B2 (en) | Method and system for secured inter-application communication in mobile devices | |
| CN111414381B (en) | Data processing method and device, electronic equipment and storage medium | |
| US20130125251A1 (en) | Mobile Device Peripherals Management System and Multi-Data Stream Technology (MdS) | |
| US9270671B2 (en) | Biometric-based wireless device association | |
| US11882154B2 (en) | Template representation of security resources | |
| CN104506487A (en) | Credible execution method for privacy policy in cloud environment | |
| CN113626512A (en) | Data processing method, device, equipment and readable storage medium | |
| CN112256760B (en) | Data prediction method and device, computer equipment and storage medium | |
| CN115103361A (en) | Account login method and device, electronic equipment and storage medium | |
| CN111163052A (en) | Method, device, medium and electronic equipment for connecting Internet of things platform | |
| CN108156009B (en) | A service invocation method and device | |
| US20130138611A1 (en) | Tiered xml services in a content management system | |
| CN114531486B (en) | A method, device, equipment, and storage medium for industrial Internet data processing | |
| US11689354B2 (en) | Efficient and scalable mechanism to protect integrity and authenticity of large data sets in cloud logging environments | |
| CN106993057A (en) | A method and device for managing file resource sharing | |
| US8543830B1 (en) | Method and apparatus for connecting to a security token without restarting an application | |
| CN103916428A (en) | Private cloud inside data transmission method, private cloud platform and private cloud system | |
| CN113761419A (en) | Display method, device, electronic device and storage medium for topology information | |
| WO2023159900A1 (en) | Remote development method and device | |
| CN116015636A (en) | Authentication method, system, equipment and medium of SaaS platform | |
| CN113114755A (en) | Method and device for smooth switching between devices, electronic device and storage medium | |
| CN116204894A (en) | Rights management method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |