Image file management method, device, computer equipment and storage medium
By adopting a single transmission method and obtaining runtime information in OpenPower server, the content out-of-synchronization and transmission complexity problems during reading and writing of BIOS images are solved, and efficient and reliable image file management is achieved.
Patent Information
- Application Number
- CN202310113002.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2043-02-10
AI Technical Summary
When the existing OpenPower server reads and writes BIOS images, the contents of the BMC memory and flash memory chips are easily out of sync, resulting in data loss; at the same time, the dual transmission process of the ipmi protocol and the lpc bus is complex and the transmission speed is slow, which increases the risk of read and write abnormalities.
The BIOS image is managed using a single transmission method. By obtaining the string list, i.e. runtime information from the BMC external file system before each read and write, it avoids the situation where the BIOS and BMC need to retain a large amount of runtime information, and solves the problem of information ambiguousness.
Simplifies the image file management method, improves the transmission speed, avoids read and write exceptions, and ensures the correct synchronization of BIOS images and the security of data.
Smart Images

Figure CN116244478B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a mirror file management method, device, computer equipment and storage medium. Background Art
[0002] The rapid development of the Internet has also brought prosperity to the server market. During the startup and operation of the OpenPower server, the BIOS needs to frequently interact with the BMC to read and write the BIOS image.
[0003] The current method of reading and writing BIOS images for OpenPower servers is based on the IPMI protocol and the LPC bus. Since the speed of the BMC reading and writing the flash memory chip that stores the BIOS image is very slow, the protocol adopts the method of first loading the BIOS image into the BMC memory, directly reading and writing the memory, and finally writing the flash memory chip in a centralized manner. However, this easily causes the problem of the contents in the BMC memory and the flash memory chip being out of sync. Once the system is powered off or the BMC restarts abnormally, data will be lost. In addition, since the protocol involves two transmission processes, namely IPMI information and LPC bus reading and writing, the implementation is complex. One reading and writing requires multiple information transmissions, and the transmission speed is slow. In addition, both the BMC and the BIOS need to retain a large amount of runtime information. If one end is restarted, the runtime information of both parties is not equal, which may cause reading and writing abnormalities. Summary of the invention
[0004] The purpose of the present invention is to provide an image file management method, device, computer equipment and storage medium. The present invention only needs a single transmission mode to realize BIOS image management, the implementation method is simple, the transmission speed is fast, and before each reading and writing, the BIOS needs to obtain a string list, that is, runtime information, from the BMC. This avoids the problem that when both the BIOS and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause reading and writing abnormalities, thereby solving the problem of information asymmetry.
[0005] According to one aspect of the present invention, the present invention provides an image file management method, comprising:
[0006] Get file operation instructions and target file information;
[0007] According to the target file information, determine the file ID corresponding to the target file information using a string list;
[0008] According to the file ID, the file information corresponding to the file ID is determined, and the file information is operated according to the file operation instruction.
[0009] Optionally, before obtaining the file operation instruction and the target file information, the method further includes:
[0010] Use mounting to store file information.
[0011] Optionally, storing the file information by mounting includes:
[0012] Receiving image file information, and splitting the image file information to obtain file information;
[0013] According to the file information, the file ID and the name of the file information are matched one by one to establish the string list, and the file information and the string list are stored in the BMC external file system.
[0014] Optionally, determining the file ID corresponding to the target file information by using a string list according to the target file information includes:
[0015] According to the target file information, the string list is read using the PLDM protocol;
[0016] The file ID corresponding to the target file information is determined according to the character string list.
[0017] Optionally, determining the file ID corresponding to the target file information according to the string list includes:
[0018] Determine whether there is a file name corresponding to the file name of the target file information in the string list;
[0019] If the corresponding file name exists, the file ID corresponding to the file name is determined according to the file name.
[0020] Optionally, determining the file information corresponding to the file ID according to the file ID includes:
[0021] According to the file ID, determine whether the corresponding file ID exists in the file list;
[0022] If the corresponding file ID exists, the file information corresponding to the file ID is determined using the file list.
[0023] Optionally, after determining the file ID corresponding to the target file information by using the string list, the method further includes:
[0024] Send the file ID to the BMC;
[0025] Accordingly, determining the file information corresponding to the file ID according to the file ID, and operating the file information according to the file operation instruction includes:
[0026] The BMC determines the file information corresponding to the file ID according to the file ID, and operates the file information according to the file operation instruction.
[0027] The present invention also provides a mirror file management device, comprising:
[0028] An acquisition module is used to obtain file operation instructions and target file information;
[0029] A file module, used to determine a file ID corresponding to the target file information using a string list according to the target file information;
[0030] The operation module is used to determine the file information corresponding to the file ID according to the file ID, and operate the file information according to the file operation instruction.
[0031] The present invention also provides a computer device, comprising:
[0032] Memory for storing computer programs;
[0033] A processor is used to implement the image file management method as described above when executing the computer program.
[0034] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the steps of the image file management method as described above are implemented.
[0035] It can be seen that the present invention only needs a single transmission mode to realize image file management, the implementation method is simple, the transmission speed is fast, and before each reading and writing, it is necessary to first obtain a string list, that is, runtime information, from the BMC external file system. This avoids the problem that when both the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause abnormal reading and writing, thus solving the problem of information inequality. The present application also provides an image file management device, a computer device, and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flowchart of an image file management method provided by an embodiment of the present invention;
[0038] Figure 2 A flowchart of another image file management method provided by an embodiment of the present invention;
[0039] Figure 3 A structural block diagram of an image file management device provided by an embodiment of the present invention;
[0040] Figure 4 A structural block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] The rapid development of the Internet has also brought prosperity to the server market. During the startup and operation of the OpenPower server, the BIOS needs to frequently interact with the BMC to read and write the BIOS image.
[0043] The current method of reading and writing BIOS images for OpenPower servers is based on the IPMI protocol and the LPC bus. Since the speed of the BMC reading and writing the flash memory chip that stores the BIOS image is very slow, the protocol adopts the method of first loading the BIOS image into the BMC memory, directly reading and writing the memory, and finally writing the flash memory chip in a centralized manner. However, this easily causes the problem of the contents in the BMC memory and the flash memory chip being out of sync. Once the system is powered off or the BMC restarts abnormally, data will be lost. In addition, since the protocol involves two transmission processes, namely IPMI information and LPC bus reading and writing, the implementation is complex. One reading and writing requires multiple information transmissions, and the transmission speed is slow. In addition, both the BMC and the BIOS need to retain a large amount of runtime information. If one end is restarted, the runtime information of both parties is not equal, which may cause reading and writing abnormalities.
[0044] In view of this, the present invention provides an image file management method, which can realize image file management with only a single transmission mode, has a simple implementation method and a fast transmission speed, and before each reading and writing, it is necessary to first obtain a string list, i.e., runtime information, from the BMC external file system, thereby avoiding the problem that when both the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause reading and writing abnormalities, thereby solving the problem of information asymmetry.
[0045] The following is a detailed description, please refer to Figure 1 , Figure 1 A flowchart of an image file management method provided by an embodiment of the present invention. An image file management method according to an embodiment of the present invention may include:
[0046] Step S101: Obtain file operation instructions and target file information.
[0047] In the embodiment of the present invention, the form of the file operation instruction is not limited, and it can be a small piece of data code, a specific high level or low level, or an identifier, etc., and the required form can be determined according to actual conditions. Among them, in the embodiment of the present invention, the instruction content of the file operation instruction is not limited, and it can be a file operation instruction for reading file information or a file operation instruction for writing file information.
[0048] Step S102: According to the target file information, the file ID corresponding to the target file information is determined using the string list.
[0049] In the embodiment of the present invention, the target file information includes information such as the file name of the file information being operated, and the string list is list information including the file ID (ID is the file number) and the file name of the file information. It should be noted that the file ID and the file name of the file information correspond one to one in the string list, wherein the file ID is a unique identifier used to represent the file information. There is no restriction on the form of the file ID, and the file ID can be represented by a column of numbers or a column of letters.
[0050] It should be noted that, in the embodiment of the present invention, the string list can be read according to the target file information using the platform level data model (PLDM) protocol, and then the file ID corresponding to the target file information can be determined according to the string list, wherein PLDM is a platform level data model. Specifically, in the embodiment of the present invention, it can be determined whether there is a file name corresponding to the file name of the target file information in the string list. If there is a corresponding file name, the file ID corresponding to the file name is determined according to the file name. If there is no corresponding file name, the operation is exited. For example, when there is a file name SectionName1 in the target file information, the string list is read using the PLDM protocol. If there is a file ID lidid1 corresponding to the file name SectionName1 in the read string list, the file ID lidid1 is obtained. If there is no corresponding file name, the operation is exited.
[0051] In the embodiment of the present invention, the string list is read by using the PLDM protocol, and a single protocol is used for reading, which is simple to implement and has a fast transmission speed.
[0052] Step S103: According to the file ID, determine the file information corresponding to the file ID, and operate the file information according to the file operation instruction.
[0053] In the embodiment of the present invention, the file information corresponding to the file ID can be determined according to the file ID. It should be noted that, it is possible to first determine whether the corresponding file ID exists in the file list according to the file ID. If the corresponding file ID exists, the file list is used to determine the file information corresponding to the file ID. If the corresponding file ID does not exist, the operation is exited. The file list is list information including the file ID and the file information, and the file ID and the file information correspond one to one in the string list. For example, the code fileName=lidid n.lid can be used to determine whether the corresponding file ID exists in the file list, where lidid n.lid is the file ID.
[0054] In the embodiment of the present invention, the file information can be operated according to the file operation instruction. Specifically, if the file operation instruction is a read instruction, it is necessary to return the relevant file information data after reading the file information. If the file operation instruction is a write instruction, it is necessary to write the corresponding data in the corresponding file information.
[0055] Based on the above embodiments, the embodiments of the present invention provide an image file management method, which can realize image file management with only a single transmission mode, has a simple implementation method and a fast transmission speed, and before each reading and writing, it is necessary to obtain a string list, that is, runtime information, from the BMC external file system. In this way, when both the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause reading and writing abnormalities, thereby solving the problem of information asymmetry.
[0056] Please refer to Figure 2 , Figure 2 This is a flow chart of another image file management method provided by an embodiment of the present invention. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.
[0057] Step S201: storing file information by mounting.
[0058] In the embodiment of the present invention, mounting is a process by which the operating system makes computer files and directories on a storage device such as a hard disk, a read-only compact disk (CD-ROM) or a shared resource accessible to users through the computer's file system.
[0059] It should be noted that, in the embodiment of the present invention, image file information can be received, the image file information can be split to obtain file information, and then, according to the file information, the file ID and the name of the file information are matched one by one to establish a string list, and the file information and the string list are stored in a baseboard management controller (BMC) external file system, wherein the image file information can be the file information stored in the BIOS (basic input / output system) image, and the BMC is a baseboard management controller responsible for managing the interface between the system management software and the platform hardware. In the embodiment of the present invention, there is no restriction on the BMC external file system, which can be a multimedia card (MMC) external to the BMC, or a storage card external to the BMC. Specifically, for example, the entire BIOS image file can be divided into multiple sections, and the name of each section and the file ID can be matched to form a string variable list, and then the BMC can split the BIOS image into multiple binary files and the string list according to the section and store them in the BMC external MMC card, and use the MMC card as the actual BIOS image, wherein the section can be obtained by splitting the entire file of the BIOS image. In this way, when the BMC is turned on, two runtime variables can be updated according to the content of the BIOS image section file in the file system, that is, the MMC card. One is a file list, which stores the file name and unique file ID of each file, and the other is a string variable list, which stores the name of each section of the BIOS image and the corresponding unique file ID.
[0060] In the embodiment of the present invention, file information can be stored in a mounting manner, and the BIOS image can be directly loaded into the BMC memory by mounting the file, thereby avoiding the problem of information asymmetry between the flash memory chip and the BMC memory, and further avoiding the reading and writing abnormality caused by information asynchrony.
[0061] Step S202: Obtain file operation instructions and target file information.
[0062] For the specific content of the above step S202, reference may be made to the corresponding content disclosed in the above embodiments, which will not be repeated here.
[0063] Step S203: According to the target file information, the file ID corresponding to the target file information is determined using the string list.
[0064] For the specific content of the above step S203, reference may be made to the corresponding content disclosed in the above embodiments, which will not be repeated here.
[0065] Step S204: Send the file ID to the BMC.
[0066] In the embodiment of the present invention, the file ID can be sent to the BMC. It should be noted that there is no limitation on the sending method. The file ID can be sent to the BMC using a data transmission protocol. Specifically, the file ID and the location and data of the file information being operated can be sent to the BMC using the PLDM protocol. The file ID can also be sent to the BMC using other methods.
[0067] Step S205: The BMC determines the file information corresponding to the file ID according to the file ID, and operates the file information according to the file operation instruction.
[0068] In the embodiment of the present invention, after the BMC receives the file ID, the file information corresponding to the file ID can be determined according to the file ID, and the file information can be operated according to the file operation instruction. Specifically, for example, after the BMC receives the file ID, the file information corresponding to the file ID can be determined from the file list of the MMC card according to the file ID, and then the file information can be operated according to the file operation instruction, wherein the MMC card is a multimedia card which is a small erasable solid-state memory card.
[0069] Based on the above embodiments, the embodiments of the present invention provide an image file management method, which uses a mounting method to store file information, and directly loads the BIOS image into the BMC memory by mounting the file, thereby avoiding the problem of information inequality between the flash memory chip and the BMC memory, and further avoiding the reading and writing abnormalities caused by information asynchrony. In addition, before each reading and writing, it is necessary to obtain a string list, that is, runtime information, from the BMC external file system. In this way, when both the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information inequality of both parties may cause the reading and writing abnormalities, thereby solving the problem of information inequality.
[0070] An image file management device and a computer device provided by an embodiment of the present invention are introduced below. The image file management device and the computer device described below and the image file management method described above can be referred to each other.
[0071] Please refer to Figure 3 , Figure 3 A structural block diagram of an image file management device provided by an embodiment of the present invention, the device may include:
[0072] The acquisition module 10 is used to acquire the file operation instruction and the target file information;
[0073] A file module 11, configured to determine a file ID corresponding to the target file information by using a string list according to the target file information;
[0074] In the embodiment of the present invention, after obtaining the file ID, the file ID can be sent to the BMC, and accordingly the operation module 12 can be executed in the BMC, that is, the BMC determines the file information corresponding to the file ID according to the file ID, and operates the file information according to the file operation instruction.
[0075] The operation module 12 is used to determine the file information corresponding to the file ID according to the file ID, and operate the file information according to the file operation instruction.
[0076] Based on the above embodiment, after the acquisition module 10, the following may also be included:
[0077] The mount module is used to store file information by mounting.
[0078] Based on any of the above embodiments, the mounting module may include:
[0079] A receiving unit, used for receiving image file information, and splitting the image file information to obtain file information;
[0080] The mounting unit is used to establish the string list by one-to-one correspondence between the file ID and the name of the file information according to the file information, and store the file information and the string list in the BMC external file system.
[0081] Based on any of the above embodiments, the file module 11 may include:
[0082] A reading unit, configured to read the string list using the PLDM protocol according to the target file information;
[0083] A determination unit is used to determine a file ID corresponding to the target file information according to the string list.
[0084] Based on any of the above embodiments, the determining unit may include:
[0085] A judging subunit, used for determining whether there is a file name corresponding to the file name of the target file information in the string list;
[0086] The extraction subunit is used to determine the file ID corresponding to the file name according to the file name if the corresponding file name exists.
[0087] Based on any of the above embodiments, after the file module 11, the following may also be included:
[0088] The sending module is used to send the file ID to the BMC.
[0089] Based on any of the above embodiments, the operating module 12 may include:
[0090] A judging unit, configured to determine, based on the file ID, whether a corresponding file ID exists in the file list;
[0091] The extraction unit is used to determine the file information corresponding to the file ID by using the file list if the corresponding file ID exists.
[0092] In the embodiment of the present invention, only a single transmission mode is needed to realize image file management, the implementation method is simple, the transmission speed is fast, and before each reading and writing, a string list, i.e., runtime information, needs to be obtained from the BMC external file system. In this way, when both the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause reading and writing abnormalities, thereby solving the problem of information asymmetry.
[0093] Please refer to Figure 4 , Figure 4 A structural block diagram of a computer device provided in an embodiment of the present invention, the computer device includes:
[0094] A memory 10, used for storing computer programs;
[0095] The processor 20 is used to implement the above-mentioned image file management method when executing the computer program.
[0096] like Figure 4 , which is a schematic diagram of the structure of a computer device, may include: a memory 10 , a processor 20 , a communication interface 31 , an input / output interface 32 , and a communication bus 33 .
[0097] In the embodiment of the present invention, the memory 10 is used to store one or more programs, and the program may include program code, and the program code includes computer operation instructions. In the embodiment of the present application, the memory 10 may store programs for implementing the following functions:
[0098] Get file operation instructions and target file information;
[0099] According to the target file information, the file ID corresponding to the target file information is determined using the string list;
[0100] According to the file ID, the file information corresponding to the file ID is determined, and the file information is operated according to the file operation instruction.
[0101] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
[0102] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.
[0103] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .
[0104] The communication interface 31 may be an interface for connecting to other devices or systems.
[0105] The input / output interface 32 may be an interface for acquiring external input data or outputting data to the outside world.
[0106] Of course, it should be noted that Figure 4 The structure shown does not constitute a limitation on the computer device in the embodiment of the present application. In actual applications, the computer device may include Figure 4 More or fewer components than shown, or combinations of certain components.
[0107] In the embodiment of the present invention, only a single transmission mode is needed to realize image file management, the implementation method is simple, the transmission speed is fast, and before each reading and writing, a string list, i.e., runtime information, needs to be obtained from the BMC external file system. In this way, when both the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause reading and writing abnormalities, thereby solving the problem of information asymmetry.
[0108] The embodiment of the present invention also provides a computer-readable storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by the processor, file operation instructions and target file information are obtained; according to the target file information, a file ID corresponding to the target file information is determined using a string list; according to the file ID, the file information corresponding to the file ID is determined, and the file information is operated according to the file operation instruction. In the embodiment of the present invention, only a single transmission method is needed to realize image file management, the implementation method is simple, the transmission speed is fast, and before each reading and writing, the string list, i.e., runtime information, needs to be obtained from the BMC external file system. This avoids the problem that when the image system and the BMC need to retain a large amount of runtime information, one end is restarted, and the runtime information of both parties is not equal, which may cause read and write abnormalities, thereby solving the problem of information asymmetry.
[0109] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0110] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0111] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0112] The above is a detailed introduction to the image file management method, device, computer equipment and storage medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for managing an image file, characterized in that: include: Get file operation instructions and target file information; According to the target file information, determine the file ID corresponding to the target file information using a string list; According to the file ID, determine the file information corresponding to the file ID, and operate the file information according to the file operation instruction; Before obtaining the file operation instruction and the target file information, the method further includes: Use mounting method to store file information; The method of storing file information by mounting includes: Receiving image file information, and splitting the image file information to obtain the file information; According to the file information, the file ID and the name of the file information are matched one by one to establish the string list, and the file information and the string list are stored in the BMC external file system; After determining the file ID corresponding to the target file information by using the string list, the method further includes: Send the file ID to the BMC; Accordingly, determining the file information corresponding to the file ID according to the file ID, and operating the file information according to the file operation instruction includes: The BMC determines the file information corresponding to the file ID according to the file ID, and operates the file information according to the file operation instruction.
2. A method for managing image files as claimed in claim 1, characterized in that: The step of determining a file ID corresponding to the target file information by using a string list according to the target file information includes: According to the target file information, the string list is read using the PLDM protocol; The file ID corresponding to the target file information is determined according to the character string list.
3. A method for managing image files as claimed in claim 2, characterized in that: The determining the file ID corresponding to the target file information according to the string list includes: Determine whether there is a file name corresponding to the file name of the target file information in the string list; If the corresponding file name exists, the file ID corresponding to the file name is determined according to the file name.
4. The image file management method according to claim 1, characterized in that: The determining, according to the file ID, the file information corresponding to the file ID includes: According to the file ID, determine whether the corresponding file ID exists in the file list; If the corresponding file ID exists, the file information corresponding to the file ID is determined using the file list.
5. A mirror file management device, characterized in that: include: An acquisition module is used to obtain file operation instructions and target file information; A file module, used to determine a file ID corresponding to the target file information using a string list according to the target file information; An operation module, used to determine the file information corresponding to the file ID according to the file ID, and operate the file information according to the file operation instruction; Also includes: The mount module is used to store file information by mounting; The mounting module includes: A receiving unit, used for receiving image file information, and splitting the image file information to obtain file information; A mounting unit, configured to establish the string list by corresponding the file ID to the name of the file information one by one according to the file information, and store the file information and the string list in a BMC external file system; Also includes: A sending module, used for sending the file ID to the BMC; The operation module specifically includes: The BMC determines the file information corresponding to the file ID according to the file ID, and operates the file information according to the file operation instruction.
6. A computer device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the image file management method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the steps of the image file management method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
BIOS (Basic Input Output System) image file obtaining method and device
CN103365696A
Program running state obtaining method and device, equipment and storage medium
CN112269713A