Method, device, equipment and medium for accessing system files

By introducing cache storage file name mapping relationships on the server and client, the problem of time-consuming file name conversion comparison is solved, efficient system file access and improved user experience.

CN115292255BActive Publication Date: 2025-09-02JINAN INSPUR DATA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211000004.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2025-09-02
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

In distributed storage technology, when the client accesses server system files, file names containing special characters need to be converted in 8.3 naming rules, resulting in longer traversal time for file names, reducing access efficiency and user experience.

Method used

Introduce cache in the server and client to store the mapping relationship between the converted file name and the real file name, directly obtain the real file name through cache, avoid traversal comparison, and judge the file name matching before access.

Benefits of technology

It improves the efficiency and user experience of accessing system files, reduces file name comparison time, and improves access speed and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292255B_ABST
    Figure CN115292255B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device, and medium for accessing system files, relating to the field of distributed storage technology. The method is applied to a server, comprising: receiving an access request sent by a client representing access to a system file; determining the system file to be accessed based on the access request; obtaining the file name of the system file to be accessed; determining whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, accessing the system file to be accessed based on the file name; if so, querying a cache for the real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name, thereby avoiding the time-consuming operation of traversing and comparing the system file names in the mounted directory one by one; accessing the system file to be accessed based on the real file name, thereby improving the efficiency of accessing the system file and the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of distributed storage technology, and in particular to a method, apparatus, device and medium for accessing system files. Background Art

[0002] In the field of distributed storage technology, after the client mounts the service node of the server through samba (which exists on Linux and UNIX systems and is used to implement the Server Message Block (SMB) protocol), the client accesses the mount directory at the service node of the server, which generally stores the file names of multiple system files. When the user views the files in the mount directory through the client, if the file names stored in the mount directory contain special characters that cannot be recognized by the server, the server will convert the file names containing special characters through the 8.3 naming rules into file names that the server can recognize. Therefore, there are generally two types of file names in the mount directory, one is the file name of the system file without special characters, and the other is the file name of the system file containing special characters and after conversion according to the 8.3 naming rules. Figure 1 This is a schematic diagram of the file name of the system file provided in the embodiment of the present application, such as Figure 1 The file names containing special characters and the file names without special characters are shown in . The existing method of accessing system files is: when accessing the system files on the server side through the client, if the file name of the system file does not contain special characters, it can be accessed directly; if the file name of the system file contains special characters, the file name converted according to the 8.3 naming rule is searched in the system cache for the real file name before conversion, and the real file name is compared and traversed one by one with the file name in the mount directory until a system file matching the real file name is found, and then the system file is accessed for subsequent read and write operations. However, generally speaking, the mount directory contains the file names of hundreds or thousands of system files, and it takes a lot of time to compare and traverse the real file name with the file name in the mount directory one by one, which reduces the efficiency of accessing system files and further reduces the user experience.

[0003] In view of the above problems, finding how to improve the efficiency of accessing system files and user experience is a problem that those skilled in the art are trying their best to solve. Summary of the Invention

[0004] The purpose of this application is to provide a method, device, equipment and medium for accessing system files, so as to improve the efficiency of accessing system files and the user experience.

[0005] To solve the above technical problems, the present application provides a method for accessing system files, which is applied to the server, including:

[0006] Receiving an access request sent by a client for accessing a system file;

[0007] Determine the system file to be accessed according to the access request;

[0008] Get the file name of the system file to be accessed;

[0009] Determine whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule;

[0010] If not, access the system file to be accessed according to the file name;

[0011] If yes, then query the cache for the real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name;

[0012] Access the system file to be accessed according to the real file name.

[0013] Preferably, searching the cache for the real file name corresponding to the converted file name includes:

[0014] Receive a query request for querying the file name of a system file in a mounted directory;

[0015] Query the file name of the system file according to the query request;

[0016] Determine whether the file name of the system file contains illegal characters, where illegal characters are unrecognizable characters;

[0017] If not, get the file name of the queried system file;

[0018] If so, the file name of the system file is converted according to the 8.3 naming rule, the converted file name is stored in the cache, and the file name of the queried system file is obtained.

[0019] Preferably, after searching the cache for the real file name corresponding to the converted file name, and before accessing the system file to be accessed according to the real file name, the method further includes:

[0020] Determine whether the system file corresponding to the real file name matches the system file to be accessed;

[0021] If so, the process proceeds to the step of accessing the system file to be accessed according to the real file name;

[0022] If not, return to the step of searching the cache for the real file name corresponding to the converted file name.

[0023] Preferably, after converting the file name of the system file according to the 8.3 naming rule, the method further includes:

[0024] Outputs prompt information indicating that the system file name conversion is completed according to the naming rules in 8.3.

[0025] Preferably, when the system file corresponding to the real file name matches the system file to be accessed, information indicating successful matching is output.

[0026] To solve the above technical problems, the present application also provides a method for accessing system files, which is applied to a client and includes:

[0027] An access request representing access to a system file is sent to a server; the system file to be accessed is determined based on the access request; the file name of the system file to be accessed is obtained; it is determined whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, the system file to be accessed is accessed based on the file name; if so, a real file name corresponding to the converted file name is searched in a cache, wherein a one-to-one mapping relationship between the converted file name and the real file name is stored in the cache; and the system file to be accessed is accessed based on the real file name.

[0028] To solve the above technical problems, the present application also provides a device for accessing system files, which is applied to a server and includes:

[0029] A first receiving module is used to receive an access request sent by a client representing access to a system file;

[0030] A determination module, configured to determine a system file to be accessed according to an access request;

[0031] The first acquisition module is used to obtain the file name of the system file to be accessed;

[0032] The first judgment module is used to judge whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule;

[0033] If not, triggering the first access module to access the system file to be accessed according to the file name;

[0034] If yes, triggering a first query module for searching the cache for the real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name;

[0035] The second access module is used to access the system file to be accessed according to the real file name.

[0036] In addition, the device includes the following modules:

[0037] The actual file name corresponding to the converted file name is searched in the cache:

[0038] The second receiving module is used to receive a query request for querying the file name of a system file in the mount directory;

[0039] The second query module is used to query the file name of the system file according to the query request;

[0040] The second judgment module is used to judge whether the file name of the system file contains illegal characters, wherein the illegal characters are unrecognizable characters;

[0041] If not, the second acquisition module is triggered to obtain the file name of the queried system file;

[0042] If so, the conversion module is triggered to convert the file name of the system file according to the 8.3 naming rule, store the converted file name in the cache, and obtain the queried file name of the system file.

[0043] After searching the cache for the real file name corresponding to the converted file name, and before accessing the system file to be accessed according to the real file name, the following steps are also included:

[0044] The third judgment module is used to judge whether the system file corresponding to the real file name matches the system file to be accessed;

[0045] If yes, trigger the second access module;

[0046] If not, the first query module is triggered.

[0047] After the system file names are converted according to the 8.3 naming rules, the following are also included:

[0048] The first output module is used to output prompt information indicating that the file name conversion of the system file is completed according to the naming rule 8.3.

[0049] When the system file corresponding to the real file name matches the system file to be accessed, the second output module is triggered to output information indicating successful matching.

[0050] To solve the above technical problems, the present application also provides a device for accessing system files, which is applied to a client and includes:

[0051] A sending module is used to send an access request representing access to a system file to a server; so as to determine the system file to be accessed according to the access request; obtain the file name of the system file to be accessed; determine whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, access the system file to be accessed according to the file name; if so, query the real file name corresponding to the converted file name in the cache, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name; and access the system file to be accessed according to the real file name.

[0052] To solve the above technical problems, the present application also provides a device for accessing system files, including:

[0053] Memory for storing computer programs;

[0054] The processor is used to direct the computer program to implement the steps of the method for accessing system files.

[0055] To solve the above technical problems, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements all the steps of the above method for accessing system files.

[0056] The present application provides a method for accessing system files, which is applied to a server and includes: receiving an access request sent by a client representing access to a system file; determining the system file to be accessed based on the access request; obtaining the file name of the system file to be accessed; determining whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, accessing the system file to be accessed based on the file name; if so, querying the cache for the real file name corresponding to the converted file name; accessing the system file to be accessed based on the real file name, wherein a one-to-one mapping relationship between the converted file name and the real file name is stored in the cache. In this case, the real file name can be directly obtained through the one-to-one mapping relationship stored in the cache, avoiding the time-consuming operation of traversing and comparing the system file names in the mounted directory one by one, and accessing the system file to be accessed based on the real file name, thereby improving the efficiency of accessing system files and the user experience.

[0057] This application also provides a device, equipment and medium for accessing system files, with the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0059] Figure 1 A schematic diagram of the file names of the system files provided in the embodiment of the present application;

[0060] Figure 2 A flow chart of a method for accessing system files applied to a server provided in an embodiment of the present application;

[0061] Figure 3 A structural diagram of a device for accessing system files on a server provided in an embodiment of the present application;

[0062] Figure 4 A structural diagram of a device for accessing system files provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0064] The core of this application is to provide a method, device, equipment and medium for accessing system files, which can improve the efficiency of accessing system files and the user experience.

[0065] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0066] It should be noted that the method for accessing system files provided in this application can be applied in Linux systems as well as in Windows systems.

[0067] Figure 2 This is a flow chart of a method for accessing system files on a server provided in an embodiment of the present application. Figure 2 As shown, the method for accessing system files, applied to the server, includes:

[0068] S20: Receive an access request sent by the client, indicating access to the system file.

[0069] In this embodiment, the access request can be expressed in text form or in the form of a data string. When expressed in text form, an example can be: "Request to access system files"; when expressed in the form of a digital string, the data string can be 1 bit, 2 bits, 4 bits, 8 bits, etc., and in accordance with the above-mentioned record order, examples can be: "0", "01", "0111", "01000010", etc. It should be noted that the above-mentioned embodiment is only one of many embodiments and does not limit this embodiment. Its implementation method can be determined according to the specific implementation scenario. It should also be noted that when expressed in the form of a digital string, whether to issue an access request can be determined based on the size of the decimal value corresponding to the binary system, and whether to issue an access request can also be determined by whether the number of 0s or 1s in the multi-bit data string exceeds a preset value (for example: half of the total number of bits in the data string).

[0070] S21: Determine the system file to be accessed according to the access request.

[0071] S22: Obtain the file name of the system file to be accessed.

[0072] S23: Determine whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule.

[0073] If not, proceed to step S24: access the system file to be accessed according to the file name;

[0074] If yes, then proceed to step S25: query the cache for the real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name;

[0075] S26: Access the system file to be accessed according to the real file name.

[0076] The actual file name corresponding to the converted file name is searched in the cache including:

[0077] Receive a query request for querying the file name of a system file in a mounted directory;

[0078] Query the file name of the system file according to the query request;

[0079] Determine whether the file name of the system file contains illegal characters;

[0080] If not, get the file name of the queried system file;

[0081] If so, the file name of the system file is converted according to the 8.3 naming rule, the converted file name is stored in the cache, and the file name of the queried system file is obtained.

[0082] It should be noted that, the illegal characters are unrecognizable characters, which are characters that cannot be recognized by the Linux system and / or the Windows system.

[0083] Based on the above embodiment, as a more preferred embodiment, after searching the cache for the real file name corresponding to the converted file name, and before accessing the system file to be accessed according to the real file name, the method further includes:

[0084] Determine whether the system file corresponding to the real file name matches the system file to be accessed;

[0085] If so, the process proceeds to the step of accessing the system file to be accessed according to the real file name;

[0086] If not, return to the step of searching the cache for the real file name corresponding to the converted file name.

[0087] To ensure the accuracy of accessing system files, prevent the following situations:

[0088] A user wants to access file A, but because the converted file extensions (e.g., .txb and .TXB) may correspond to different files, the server accesses file B. To avoid this, it is necessary to determine whether the system file corresponding to the actual file name matches the system file being accessed. .TXB is the file extension of the system file.

[0089] Based on the above embodiment, as a more preferred embodiment, to enhance the user experience and provide timely understanding of the file access process, after converting the system file name according to the 8.3 naming rules, the method further includes: outputting a prompt indicating that the system file name conversion has been completed according to the 8.3 naming rules. Similarly, when the system file corresponding to the actual file name matches the system file to be accessed, a successful match message is output. It should be noted that the prompt indicating the completion of the system file name conversion and the successful match message can be displayed on the display screen of the client terminal. Furthermore, to facilitate differentiation, the prompt indicating the completion of the system file name conversion and the successful match message can be set to different frequencies of a buzzer tone. The buzzer can be configured to be modulated by a PWM wave. Furthermore, the prompt indicating the completion of the system file name conversion can be expressed in text or as a data string. When expressed in text, an example of the prompt is: "Conversion Completed." When expressed in a numeric string, the data string can be 1, 2, 4, or 8 bits, and so on. In the order described above, examples of the prompts are: "0," "01," "0001," "01011110," and so on. It should be noted that the above-mentioned embodiment is only one of many embodiments and does not limit the present embodiment. Its implementation method can be determined according to the specific implementation scenario. It should also be noted that when using a digital string form, the decimal value corresponding to the binary can be used to determine whether to issue a prompt message indicating that the file name conversion of the system file is completed according to the 8.3 naming rules. It can also be determined by whether the number of 0s or 1s in the multi-bit data string exceeds a preset value (for example, half of the total number of bits in the data string) to determine whether to issue a prompt message indicating that the file name conversion of the system file is completed according to the 8.3 naming rules. Similarly, the information of successful matching can be expressed in text form or in the form of a data string; when expressed in text form, it can be, for example, "match successful"; when expressed in digital string form, the data string can be 1 bit, 2 bits, 4 bits, 8 bits, etc., and according to the above-mentioned order, it can be, for example, "0", "10", "0111", "00010110", etc. It should be noted that the above-mentioned embodiment is only one of many embodiments and does not limit the present embodiment. Its implementation method can be determined according to the specific implementation scenario. It should also be noted that when expressed in the form of a digital string, whether to output successful matching information can be determined based on the decimal value corresponding to the binary number, and whether to output successful matching information can also be determined by whether the number of 0s or 1s in the multi-bit data string exceeds a preset value (for example: two-thirds of the total number of bits in the data string).

[0090] In the above embodiment, a method for accessing system files is described in detail. This application also provides an embodiment of a device for accessing system files. It should be noted that this application describes the embodiments of the device from two perspectives: one is based on the functional module perspective, and the other is based on the hardware perspective.

[0091] Figure 3 This is a structural diagram of a device for accessing system files on the server side provided in the embodiment of the present application. Figure 3 As shown, the present application also provides a device for accessing system files, which is applied to the server, including:

[0092] The first receiving module 30 is configured to receive an access request sent by a client for accessing a system file;

[0093] A determination module 31 is configured to determine a system file to be accessed according to an access request;

[0094] A first obtaining module 32 is used to obtain the file name of the system file to be accessed;

[0095] The first judgment module 33 is used to judge whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule;

[0096] If not, the first access module 34 is triggered to access the system file to be accessed according to the file name;

[0097] If yes, the first query module 35 is triggered to query the cache for the real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name;

[0098] The second access module 36 is configured to access the system file to be accessed according to the real file name.

[0099] In addition, the device includes the following modules:

[0100] The actual file name corresponding to the converted file name is searched in the cache:

[0101] The second receiving module is used to receive a query request for querying the file name of a system file in the mount directory;

[0102] The second query module is used to query the file name of the system file according to the query request;

[0103] The second judgment module is used to judge whether the file name of the system file contains illegal characters, wherein the illegal characters are unrecognizable characters;

[0104] If not, the second acquisition module is triggered to obtain the file name of the queried system file;

[0105] If so, the conversion module is triggered to convert the file name of the system file according to the 8.3 naming rule, store the converted file name in the cache, and obtain the queried file name of the system file.

[0106] After searching the cache for the real file name corresponding to the converted file name, and before accessing the system file to be accessed according to the real file name, the following steps are also included:

[0107] The third judgment module is used to judge whether the system file corresponding to the real file name matches the system file to be accessed;

[0108] If yes, trigger the second access module;

[0109] If not, the first query module is triggered.

[0110] After the system file names are converted according to the 8.3 naming rules, the following are also included:

[0111] The first output module is used to output prompt information indicating that the file name conversion of the system file is completed according to the naming rule 8.3.

[0112] When the system file corresponding to the real file name matches the system file to be accessed, the second output module is triggered to output information indicating successful matching.

[0113] In addition, the present application also provides a device for accessing system files, which is applied to a client and includes:

[0114] A sending module is used to send an access request representing access to a system file to a server; so as to determine the system file to be accessed according to the access request; obtain the file name of the system file to be accessed; determine whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, access the system file to be accessed according to the file name; if so, query the real file name corresponding to the converted file name in the cache, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name; and access the system file to be accessed according to the real file name.

[0115] The above-mentioned device can also achieve the technical effect corresponding to the method. The method for accessing system files provided by the present application is applied to the server, including: receiving an access request sent by a client representing access to a system file; determining the system file to be accessed according to the access request; obtaining the file name of the system file to be accessed; judging whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, accessing the system file to be accessed according to the file name; if so, querying the real file name corresponding to the converted file name in the cache; accessing the system file to be accessed according to the real file name, wherein a one-to-one mapping relationship between the converted file name and the real file name is stored in the cache. At this time, the real file name can be directly obtained through the one-to-one mapping relationship stored in the cache, avoiding the long operation of traversing and comparing the system file names in the mounted directory one by one, and accessing the system file to be accessed according to the real file name, thereby improving the efficiency of accessing system files and the user experience.

[0116] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.

[0117] Figure 4 A device structure diagram for accessing system files provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the devices that access system files include:

[0118] Memory 40, for storing computer programs;

[0119] The processor 41 is configured to implement the steps of the method for accessing system files as mentioned in the above embodiment when executing a computer program.

[0120] The device for accessing system files provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0121] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0122] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor 41, it can implement the relevant steps of the method for accessing system files disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 40 may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include but is not limited to methods for accessing system files, etc.

[0123] In some embodiments, the device for accessing system files may further include a display screen, an input and output interface, a communication interface, a power supply, and a communication bus.

[0124] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the device for accessing system files, and may include more or fewer components than shown in the figure.

[0125] The device for accessing system files provided in an embodiment of the present application includes a memory 40 and a processor 41. When the processor 41 executes a program stored in the memory 40, it can implement a method for accessing system files.

[0126] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiment (which may be a method corresponding to a server, a method corresponding to a client, or a method corresponding to both a server and a client).

[0127] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory), ROM, random access memory (Random Access Memory, RAM), disk or optical disk, and other media that can store program code.

[0128] The above is a detailed introduction to the method, device, equipment and medium for accessing system files provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and 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. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0129] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

Claims

1. A method for accessing system files, characterized in that: Applicable to Linux and / or Windows server, including: Receiving an access request sent by a client for accessing a system file; Determining a system file to be accessed according to the access request; Obtain the file name of the system file to be accessed; Determine whether the file name of the system file to be accessed is a converted file name after conversion according to the naming rule 8.3; If not, access the system file to be accessed according to the file name; If yes, query the cache for the real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name; Accessing the system file to be accessed according to the real file name; The step of searching the cache for the real file name corresponding to the converted file name includes: receiving a query request for querying the file name of the system file in the mount directory; querying the file name of the system file according to the query request; Determine whether the file name of the system file contains illegal characters, wherein the illegal characters are unrecognizable characters; If not, then obtain the file name of the queried system file; If so, the file name of the system file is converted according to the naming rule 8.3, the converted file name is stored in the cache, and the queried file name of the system file is obtained.

2. The method for accessing system files according to claim 1, wherein: After querying the cache for the real file name corresponding to the converted file name, and before accessing the to-be-accessed system file according to the real file name, the method further includes: Determining whether the system file corresponding to the real file name matches the system file to be accessed; If yes, then enter the step of accessing the system file to be accessed according to the real file name; If not, return to the step of searching the cache for the real file name corresponding to the converted file name.

3. The method for accessing system files according to claim 1, wherein: After converting the file name of the system file into the 8.3 naming rule, the method further includes: The output indicates that the file name conversion of the system file is completed according to the naming rule in 8.

3.

4. The method for accessing system files according to claim 2, wherein: When the system file corresponding to the real file name matches the system file to be accessed, information indicating successful matching is output.

5. A method for accessing system files, characterized in that: Applied to the client, including: Sending an access request for accessing a system file to a Linux system and / or Windows system server; determining the system file to be accessed based on the access request; obtaining a file name of the system file to be accessed; determining whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, accessing the system file to be accessed based on the file name; if so, querying a cache for a real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name; and accessing the system file to be accessed based on the real file name; The step of searching the cache for the real file name corresponding to the converted file name includes: receiving a query request for querying the file name of the system file in the mount directory; querying the file name of the system file according to the query request; Determine whether the file name of the system file contains illegal characters, wherein the illegal characters are unrecognizable characters; If not, then obtain the file name of the queried system file; If so, the file name of the system file is converted according to the naming rule 8.3, the converted file name is stored in the cache, and the queried file name of the system file is obtained.

6. A device for accessing system files, characterized in that: Applicable to Linux and / or Windows server, including: A first receiving module is used to receive an access request sent by a client representing access to a system file; A determination module, configured to determine a system file to be accessed according to the access request; A first acquisition module is used to obtain the file name of the system file to be accessed; The first judgment module is used to judge whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; If not, triggering a first access module to access the system file to be accessed according to the file name; If so, triggering a first query module for searching a cache for a real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name; A second access module, configured to access the system file to be accessed according to the real file name; Querying the cache for the actual file name corresponding to the converted file name includes: A second receiving module is used to receive a query request for the file name of a system file in the mount directory; A second query module, configured to query the file name of the system file according to the query request; A second judging module is configured to judge whether the file name of the system file contains illegal characters, wherein the illegal characters are characters that cannot be recognized; If not, triggering the second acquisition module to obtain the file name of the queried system file; If so, the conversion module is triggered to convert the file name of the system file according to the 8.3 naming rule, store the converted file name in the cache, and obtain the queried file name of the system file.

7. A device for accessing system files, characterized in that: Applied to the client, including: A sending module is configured to send an access request representing access to a system file to a Linux system and / or Windows system server; so as to determine the system file to be accessed according to the access request; obtain the file name of the system file to be accessed; determine whether the file name of the system file to be accessed is a converted file name after conversion according to the 8.3 naming rule; if not, access the system file to be accessed according to the file name; if so, query a cache for a real file name corresponding to the converted file name, wherein the cache stores a one-to-one mapping relationship between the converted file name and the real file name; and access the system file to be accessed according to the real file name; Querying the cache for the actual file name corresponding to the converted file name includes: A second receiving module is used to receive a query request for the file name of a system file in the mount directory; A second query module, configured to query the file name of the system file according to the query request; A second judging module is configured to judge whether the file name of the system file contains illegal characters, wherein the illegal characters are characters that cannot be recognized; If not, triggering the second acquisition module to obtain the file name of the queried system file; If so, the conversion module is triggered to convert the file name of the system file according to the 8.3 naming rule, store the converted file name in the cache, and obtain the queried file name of the system file.

8. A device for accessing system files, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the method for accessing system files according to any one of claims 1 to 5 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for accessing system files according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Distributed file system-based query and access methods and devices and system

    CN107562757A

  • Data processing method, device and system, Nginx server and medium

    CN111143417A

  • Virtual file access system, virtual file access method and virtual file access program

    JP2014174870A