CN110427528A - SSD identifier test method, device, computer equipment and storage medium - Google Patents

SSD identifier test method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110427528A
CN110427528A CN201910702019.3A CN201910702019A CN110427528A CN 110427528 A CN110427528 A CN 110427528A CN 201910702019 A CN201910702019 A CN 201910702019A CN 110427528 A CN110427528 A CN 110427528A
Authority
CN
China
Prior art keywords
ssd
ssd identifier
variable
identifier information
identifier
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
Application number
CN201910702019.3A
Other languages
Chinese (zh)
Inventor
朱振武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Memory Storage Technology Co Ltd
Original Assignee
Dongguan Memory Storage Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongguan Memory Storage Technology Co Ltd filed Critical Dongguan Memory Storage Technology Co Ltd
Priority to CN201910702019.3A priority Critical patent/CN110427528A/en
Publication of CN110427528A publication Critical patent/CN110427528A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results

Abstract

The present invention relates to SSD identifier test method, device, computer equipment and storage medium, this method includes initializing variable and running environment;SSD identifier information is obtained by cyclical function;All SSD identifier informations and default label are compared, judge whether SSD identifier information is consistent with default label;If it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result;Mismatch number in more new variables;If so, whether the mismatch number in judgment variable is zero;If so, sending the notice of all SSD identifier information successful match;If it is not, then sending, there are SSD identifier informations to match unsuccessful notice;Export processing result.The present invention realizes automation inspection SSD identifier information, and the testing time is greatly saved, improves testing efficiency.

Description

SSD identifier test method, device, computer equipment and storage medium
Technical field
The present invention relates to solid state hard disks, more specifically refer to SSD identifier test method, device, computer equipment and Storage medium.
Background technique
The identifier information of SSD (solid state hard disk, Solid State Drive) has very much, such as sequence number, model etc. Deng these information are extremely important.If the sample of the label information of mistake is sent to ODM (Original Design Manufacturer, Original Design Manufacturer) factory or client on hand, then will cause very big trouble.These information are solid simultaneously Part engineer writes firmware according to agreement and provides an important parameter foundation.
It is all inspection tag and CDI (cargo processing one by one by hand in the technology of existing test SSD identifier information Specification, Cargo Disposition Instruction) whether the information that shows of tool consistent, along with the information of label Very more, this just seems quite time-consuming laborious, while firmware engineering teacher goes for the parameter of these identifiers, it is also necessary to one by one It issues orders and obtains, if in the more situation of the quantity of SSD, generally requiring the cooperation of more people, heavy workload is time-consuming to take Power, human cost is higher, and testing efficiency is low.
Therefore, it is necessary to design a kind of new method, automation inspection identifier information is realized, save the testing time, mention High testing efficiency.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, SSD identifier test method, device, computer are provided Equipment and storage medium.
To achieve the above object, the invention adopts the following technical scheme: SSD identifier test method, comprising:
Initializing variable and running environment;
SSD identifier information is obtained by cyclical function;
All SSD identifier informations and default label are compared, judge whether SSD identifier information is consistent with default label;
If it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result;
Mismatch number in more new variables;
If so, judging whether the mismatch number in the variable is zero;
If so, sending the notice of all SSD identifier information successful match;
If it is not, then sending, there are SSD identifier informations to match unsuccessful notice;
Export the processing result.
Its further technical solution are as follows: the variable includes array, return code variable and mismatch number.
Its further technical solution are as follows: the initializing variable and running environment, comprising:
State variable;
Script execution environment is set;
It is zero that setting, which mismatches number,.
Its further technical solution are as follows: described that SSD identifier information is obtained by cyclical function, comprising:
Column show all SSD identifier informations;
All SSD identifier informations column are shown to buffer;
All SSD identifier informations in buffer are put into array one by one.
Its further technical solution are as follows: the SSD identifier information includes manufacturer's ID number, SSD firmware outside version, SSD Firmware internal release, the input and output of controller multichannel and NameSpace, SSD original ID data, the optional administration order of SSD, SSD firmware upgrade information, SSD log page data, SSD self-test option, NVM command set attribute and reserved bit.
Its further technical solution are as follows: the mismatch number in the more new variables, comprising:
The number of statistics and the inconsistent SSD identifier information of default label, to obtain total value;
Total value is set by the mismatch number in variable.
The present invention also provides SSD identifier test devices, comprising:
Initialization unit is used for initializing variable and running environment;
Acquiring unit, for obtaining SSD identifier information by cyclical function;
Comparing unit, for comparing all SSD identifier informations and default label, judging SSD identifier information and presetting Whether label is consistent;
Recording unit, for if it is not, then record with the inconsistent SSD identifier information of default label, with obtain processing knot Fruit;
Number updating unit, for the mismatch number in more new variables;
Judging unit, for if so, judging whether the mismatch number in the variable is zero;
First transmission unit, for if so, sending the notice of all SSD identifier information successful match;
Second transmission unit, for if it is not, then there are SSD identifier informations to match unsuccessful notice for transmission;
Output unit, for exporting the processing result.
Its further technical solution are as follows: the initialization unit includes:
Variable-definition subelement, for stating variable;
Subelement is arranged in environment, for script execution environment to be arranged;
Subelement is arranged in number, is zero for mismatch number to be arranged.
The present invention also provides a kind of computer equipment, the computer equipment includes memory and processor, described to deposit Computer program is stored on reservoir, the processor realizes above-mentioned method when executing the computer program.
The present invention also provides a kind of storage medium, the storage medium is stored with computer program, the computer journey Sequence can realize above-mentioned method when being executed by processor.
Compared with the prior art, the invention has the advantages that: the present invention believes all SSD identifiers by cyclical function Breath column, which show, to be come, then all SSD identifier informations are compared one by one with default label, and corresponding logical according to comparison result output Know, realizes automation inspection SSD identifier information, the testing time is greatly saved, improves testing efficiency.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of SSD identifier test method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of SSD identifier test method provided in an embodiment of the present invention;
Fig. 3 is the sub-process schematic diagram of SSD identifier test method provided in an embodiment of the present invention;
Fig. 4 is the sub-process schematic diagram of SSD identifier test method provided in an embodiment of the present invention;
Fig. 5 is the sub-process schematic diagram of SSD identifier test method provided in an embodiment of the present invention;
Fig. 6 is the schematic block diagram of SSD identifier test device provided in an embodiment of the present invention;
Fig. 7 is the schematic block diagram of the initialization unit of SSD identifier test device provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of the acquiring unit of SSD identifier test device provided in an embodiment of the present invention;
Fig. 9 is the schematic block diagram of the number updating unit of SSD identifier test device provided in an embodiment of the present invention;
Figure 10 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Fig. 1 and Fig. 2 are please referred to, Fig. 1 is that the application scenarios of SSD identifier test method provided in an embodiment of the present invention are illustrated Figure.Fig. 2 is the schematic flow chart of SSD identifier test method provided in an embodiment of the present invention.The SSD identifier test method Applied in server 20.After the server reads SSD identifier information, test judgement is carried out, and it is aobvious to having to export result In the terminal of showing device.
Fig. 2 is the flow diagram of SSD identifier test method provided in an embodiment of the present invention.As shown in Fig. 2, this method Include the following steps S110 to S190.
S110, initializing variable and running environment.
In the present embodiment, above-mentioned variable includes array, return code variable and mismatch number.
In one embodiment, referring to Fig. 3, above-mentioned step S110 may include step S111~S113.
S111, statement variable;
S112, setting script execution environment;
It is zero that S113, setting, which mismatch number,.
Server is first stated some variables to be used and is executed needed for some script operations in executing test program The environment wanted.
S120, SSD identifier information is obtained by cyclical function.
In the present embodiment, SSD identifier information includes manufacturer's ID number, SSD firmware outside version, SSD firmware inside version Originally, the input and output of controller multichannel and NameSpace, SSD original ID data, the optional administration order of SSD, SSD firmware upgrade Information, SSD log page data, SSD self-test option, NVM command set attribute and reserved bit, SSD NVME (Nonvolatile memory Host controller interface specification, Non-Volatile Memory express) consensus standard version, SSD NVME1.2 version letter Breath, 1.2 optional command attribute of SSD NVME, the number, optional for extending time of driver self-test, print name space NVME order is supported, safe operation is supported, there are volatibility write buffer, the configuration of NVME supplier specific command, manufacturers to define Standard, 32 kinds of power supply status, vendor standards.
In one embodiment, referring to Fig. 4, above-mentioned step S120 may include step S121~S123.
S121, column show all SSD identifier informations;
S122, all SSD identifier informations column are shown to buffer;
S123, all SSD identifier informations in buffer are put into array one by one.
Working area by buffer as SSD identifier information is needed in test by the SSD mark in buffer Symbol information is put into array, is compared.
S130, all SSD identifier informations and default label are compared, judges whether are SSD identifier information and default label Unanimously.
Specifically, when SSD vendor id is consistent with default vendor id label, then the data of SSD vendor id is printed, show the letter Breath is checked successfully, if inconsistent, shows that SSD vendor id verification is unsuccessful;
When SSD submodule vendor id is consistent with default submodule vendor id label, then the number of SSD submodule vendor id is printed According to, show that the information is checked successfully, if inconsistent, show the SSD submodule vendor id verification it is unsuccessful;
When SSD sequence number is consistent with predetermined sequence label, then the data of SSD sequence number are printed, shows that the information is checked Success shows that SSD sequence number verification is unsuccessful if inconsistent;
When SSD model is consistent with default model label, then the data of SSD model are printed, show that the information is checked successfully, if It is inconsistent, then show that SSD model verification is unsuccessful;
Version is consistent with release label outside default firmware outside SSD firmware, then prints the number of version outside SSD firmware According to showing that the information is checked successfully, if inconsistent, show that version verification is unsuccessful outside SSD firmware;
When SSD firmware internal release is consistent with default firmware internal release label, then the number of SSD firmware internal release is printed According to, show that the information is checked successfully, if inconsistent, show the SSD firmware internal release verification it is unsuccessful;
High 5 of the input and output of controller multichannel and NameSpace are intercepted, judges whether the data are 00H, Then the input and output of controller multichannel and NameSpace are consistent with corresponding default label, show that the information is checked successfully, if it is not, Then show that the controller multichannel input and output and NameSpace verification are unsuccessful;
When SSD original ID data is 0, then SSD original ID data is consistent with corresponding default label, shows that the information is checked Success prints SSD original ID data if it is not, then showing that SSD original ID data verification is unsuccessful;
When SSD NVME consensus standard edition data is 0, then SSD NVME consensus standard version and corresponding default label Unanimously, show that the information is checked successfully, if it is not, then showing that SSD NVME consensus standard version verification is unsuccessful;
When SSD NVME1.2 version information data are 0, then SSD NVME1.2 version information and corresponding default label one It causes, shows that the information is checked successfully, if it is not, then showing that information verification is unsuccessful;
After the optional administration order data of SSD and the progress of specific position and operation, if the numerical value after the operation is 17h, Then the optional administration order of SSD is consistent with corresponding default label, shows that the information is checked successfully, if it is not, then showing the information It checks unsuccessful;
After deviating 1 to the left again after the certain bits value of SSD firmware upgrade data, if the numerical value after the operation is 0, The administration order of SSD firmware upgrade data is consistent with corresponding default label, shows that the information is checked successfully, if it is not, then showing Information verification is unsuccessful;
After the certain bits value of SSD log page data, if numerical value after the operation be 0, SSD log page data with it is right The default label answered is consistent, shows that the information is checked successfully, if it is not, then showing that information verification is unsuccessful;
When 1.2 optional command attribute data of SSDNVMe be 0, then 1.2 optional command attribute of SSDNVMe with it is corresponding pre- Bidding label are consistent, show that the information is checked successfully, if it is not, then showing that information verification is unsuccessful;
316th low level carried out to the time that printing extends driver self-test and after 317 high position datas add up, is then beaten Print extends the time of driver self-test;
After the certain bits value of SSD self-test option, if numerical value after the operation be 0, SSD self-test option with it is corresponding Default label is consistent, shows that the information is checked successfully, if it is not, then showing that information verification is unsuccessful;
After the certain bits value of SSD self-test option, if numerical value after the operation be 0, SSD self-test option with it is corresponding Default label is consistent, shows that the information is checked successfully, if it is not, then showing that information verification is unsuccessful;
After the certain bits value of the NVM command set attribute of reservation, if the numerical value after the operation is 0, the NVM retained is ordered It enables set attribute consistent with corresponding default label, shows that the information is checked successfully, if it is not, then showing that information verification is unsuccessful;
After the certain bits value of other SSD identifiers, if numerical value after the operation is 0, other SSD identifiers with it is right The default label answered is consistent, shows that the information is checked successfully, if it is not, then showing that information verification is unsuccessful.
S140, if it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result.
Processing result, which refers to, enumerates all and inconsistent SSD identifier information of default label inventory.
S150, the mismatch number more in new variables.
In one embodiment, referring to Fig. 5, above-mentioned step S150 may include step S151~S152.
The number of S151, statistics and the inconsistent SSD identifier information of default label, to obtain total value;
S152, total value is set by the mismatch number in variable.
The mismatch number be indicate current SSD identifier there are information mismatch, and include with default label not The total number of consistent SSD identifier information.
S160, if so, judging whether the mismatch number in the variable is zero;
S170, if so, sending the notice of all SSD identifier information successful match;
S180, if it is not, then sending that there are SSD identifier informations to match unsuccessful notice;
S190, the output processing result.
Above-mentioned SSD identifier test method, by cyclical function all SSD identifier informations column show come, then All SSD identifier informations compare one by one with default label, and export corresponding notice according to comparison result, realize automation inspection SSD identifier information is looked into, the testing time is greatly saved, improves testing efficiency.
Fig. 6 is a kind of schematic block diagram of SSD identifier test device 300 provided in an embodiment of the present invention.Such as Fig. 6 institute Show, corresponds to the above SSD identifier test method, the present invention also provides a kind of SSD identifier test devices 300.SSD mark Symbol test device 300 includes the unit for executing above-mentioned SSD identifier test method, which can be configured in server In.
Specifically, referring to Fig. 6, the SSD identifier test device 300 includes:
Initialization unit 301 is used for initializing variable and running environment;
Acquiring unit 302, for obtaining SSD identifier information by cyclical function;
Comparing unit 303 judges SSD identifier information and pre- for comparing all SSD identifier informations and default label Whether bidding label are consistent;
Recording unit 304, for if it is not, then record with the inconsistent SSD identifier information of default label, to be handled As a result;
Number updating unit 305, for the mismatch number in more new variables;
Judging unit 306, for if so, judging whether the mismatch number in the variable is zero;
First transmission unit 307, for if so, sending the notice of all SSD identifier information successful match;
Second transmission unit 308, for if it is not, then there are SSD identifier informations to match unsuccessful notice for transmission;
Output unit 309, for exporting the processing result.
In one embodiment, as shown in fig. 7, the initialization unit 301 includes:
Variable-definition subelement 3011, for stating variable;
Subelement 3012 is arranged in environment, for script execution environment to be arranged;
Subelement 3013 is arranged in number, is zero for mismatch number to be arranged.
In one embodiment, as shown in figure 8, the acquiring unit 302 includes:
Information arranges aobvious subelement 3021, shows all SSD identifier informations for arranging;
Subelement 3022 is cached, for showing all SSD identifier informations column to buffer;
Array manipulation subelement 3023, for being put into all SSD identifier informations in buffer in array one by one.
In one embodiment, as shown in figure 9, the number updating unit 305 includes:
Subelement 3051 is counted, it is total to obtain for counting the number of the SSD identifier information inconsistent with default label Numerical value;
Subelement 3052 is set, for setting total value for the mismatch number in variable.
It should be noted that it is apparent to those skilled in the art that, above-mentioned SSD identifier test device 300 and each unit specific implementation process, can with reference to the corresponding description in preceding method embodiment, for convenience of description and Succinctly, details are not described herein.
Above-mentioned SSD identifier test device 300 can be implemented as a kind of form of computer program, which can To be run in computer equipment as shown in Figure 10.
Referring to Fig. 10, Figure 10 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The calculating Machine equipment 500 is server.
Refering to fig. 10, which includes processor 502, memory and the net connected by system bus 501 Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program 5032 include program instruction, which is performed, and processor 502 may make to execute a kind of SSD identifier test method.
The processor 502 is for providing calculating and control ability, to support the operation of entire computer equipment 500.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should When computer program 5032 is executed by processor 502, processor 502 may make to execute a kind of SSD identifier test method.
The network interface 505 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Figure 10 The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme The restriction of computer equipment 500 thereon, specific computer equipment 500 may include more more or fewer than as shown in the figure Component perhaps combines certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following step It is rapid:
Initializing variable and running environment;
SSD identifier information is obtained by cyclical function;
All SSD identifier informations and default label are compared, judge whether SSD identifier information is consistent with default label;
If it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result;
Mismatch number in more new variables;
If so, judging whether the mismatch number in the variable is zero;
If so, sending the notice of all SSD identifier information successful match;
If it is not, then sending, there are SSD identifier informations to match unsuccessful notice;
Export the processing result.
Wherein, the variable includes array, return code variable and mismatch number.
The SSD identifier information includes manufacturer's ID number, SSD firmware outside version, SSD firmware internal release, controller Multichannel input and output and NameSpace, SSD original ID data, the optional administration order of SSD, SSD firmware upgrade information, SSD Log page data, SSD self-test option, NVM command set attribute and reserved bit.
In one embodiment, processor 502 is when realizing the initializing variable and running environment step, specific implementation Following steps:
State variable;
Script execution environment is set;
It is zero that setting, which mismatches number,.
In one embodiment, processor 502 is when realizing the acquisition SSD identifier information step by cyclical function, It is implemented as follows step:
Column show all SSD identifier informations;
All SSD identifier informations column are shown to buffer;
All SSD identifier informations in buffer are put into array one by one.
In one embodiment, processor 502 is when realizing the mismatch number step in the more new variables, specific implementation Following steps:
The number of statistics and the inconsistent SSD identifier information of default label, to obtain total value;
Total value is set by the mismatch number in variable.
It should be appreciated that in the embodiment of the present application, processor 502 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program includes program instruction, computer journey Sequence can be stored in a storage medium, which is computer readable storage medium.The program instruction is by the department of computer science At least one processor in system executes, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited Storage media is stored with computer program, and processor is made to execute following steps when wherein the computer program is executed by processor:
Initializing variable and running environment;
SSD identifier information is obtained by cyclical function;
All SSD identifier informations and default label are compared, judge whether SSD identifier information is consistent with default label;
If it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result;
Mismatch number in more new variables;
If so, judging whether the mismatch number in the variable is zero;
If so, sending the notice of all SSD identifier information successful match;
If it is not, then sending, there are SSD identifier informations to match unsuccessful notice;
Export the processing result.
Wherein, the variable includes array, return code variable and mismatch number.
The SSD identifier information includes manufacturer's ID number, SSD firmware outside version, SSD firmware internal release, controller Multichannel input and output and NameSpace, SSD original ID data, the optional administration order of SSD, SSD firmware upgrade information, SSD Log page data, SSD self-test option, NVM command set attribute and reserved bit.
In one embodiment, the processor realizes the initializing variable and fortune executing the computer program When row environment step, it is implemented as follows step:
State variable;
Script execution environment is set;
It is zero that setting, which mismatches number,.
In one embodiment, the processor is realized described by cyclical function acquisition in the execution computer program When SSD identifier information step, it is implemented as follows step:
Column show all SSD identifier informations;
All SSD identifier informations column are shown to buffer;
All SSD identifier informations in buffer are put into array one by one.
In one embodiment, the processor execute the computer program and realize in the more new variables not When with number step, it is implemented as follows step:
The number of statistics and the inconsistent SSD identifier information of default label, to obtain total value;
Total value is set by the mismatch number in variable.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1.SSD identifier test method characterized by comprising
Initializing variable and running environment;
SSD identifier information is obtained by cyclical function;
All SSD identifier informations and default label are compared, judge whether SSD identifier information is consistent with default label;
If it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result;
Mismatch number in more new variables;
If so, judging whether the mismatch number in the variable is zero;
If so, sending the notice of all SSD identifier information successful match;
If it is not, then sending, there are SSD identifier informations to match unsuccessful notice;
Export the processing result.
2. SSD identifier test method according to claim 1, which is characterized in that the variable includes array, returns to generation Code variable and mismatch number.
3. SSD identifier test method according to claim 2, which is characterized in that the initializing variable and operation Environment, comprising:
State variable;
Script execution environment is set;
It is zero that setting, which mismatches number,.
4. SSD identifier test method according to claim 1, which is characterized in that described to obtain SSD by cyclical function Identifier information, comprising:
Column show all SSD identifier informations;
All SSD identifier informations column are shown to buffer;
All SSD identifier informations in buffer are put into array one by one.
5. SSD identifier test method according to claim 1, which is characterized in that the SSD identifier information includes factory Version, SSD firmware internal release, the input and output of controller multichannel and NameSpace, SSD are original outside quotient's ID number, SSD firmware The optional administration order of ID data, SSD, SSD firmware upgrade information, SSD log page data, SSD self-test option, NVM command collection Attribute and reserved bit.
6. SSD identifier test method according to claim 1, which is characterized in that the mismatch in the more new variables Number, comprising:
The number of statistics and the inconsistent SSD identifier information of default label, to obtain total value;
Total value is set by the mismatch number in variable.
7.SSD identifier test device characterized by comprising
Initialization unit is used for initializing variable and running environment;
Acquiring unit, for obtaining SSD identifier information by cyclical function;
Comparing unit judges SSD identifier information and default label for comparing all SSD identifier informations and default label It is whether consistent;
Recording unit, for if it is not, then record with the inconsistent SSD identifier information of default label, to obtain processing result;
Number updating unit, for the mismatch number in more new variables;
Judging unit, for if so, judging whether the mismatch number in the variable is zero;
First transmission unit, for if so, sending the notice of all SSD identifier information successful match;
Second transmission unit, for if it is not, then there are SSD identifier informations to match unsuccessful notice for transmission;
Output unit, for exporting the processing result.
8. SSD identifier test device according to claim 7, which is characterized in that the initialization unit includes:
Variable-definition subelement, for stating variable;
Subelement is arranged in environment, for script execution environment to be arranged;
Subelement is arranged in number, is zero for mismatch number to be arranged.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory It is stored with computer program, the processor is realized as described in any one of claims 1 to 6 when executing the computer program Method.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt Processor can be realized when executing such as method described in any one of claims 1 to 6.
CN201910702019.3A 2019-07-31 2019-07-31 SSD identifier test method, device, computer equipment and storage medium Pending CN110427528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910702019.3A CN110427528A (en) 2019-07-31 2019-07-31 SSD identifier test method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910702019.3A CN110427528A (en) 2019-07-31 2019-07-31 SSD identifier test method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110427528A true CN110427528A (en) 2019-11-08

Family

ID=68411828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910702019.3A Pending CN110427528A (en) 2019-07-31 2019-07-31 SSD identifier test method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110427528A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468002A (en) * 2020-03-31 2021-10-01 爱德万测试公司 Multi-namespace testing system and method
CN115878051A (en) * 2023-03-03 2023-03-31 浪潮电子信息产业股份有限公司 Data synchronization method, data synchronization system, storage medium and electronic equipment
CN113468002B (en) * 2020-03-31 2024-05-03 爱德万测试公司 Multi-namespace test system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388254A (en) * 2007-09-13 2009-03-18 英业达股份有限公司 Storage device test method
CN104021251A (en) * 2014-06-10 2014-09-03 浪潮(北京)电子信息产业有限公司 PCB check method and device
KR101568780B1 (en) * 2014-08-18 2015-11-12 (주)명정보기술 A portable device for checking a storage having SATA interface
CN105068920A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Shell based method for testing stability of rack asset information
CN106445761A (en) * 2016-11-09 2017-02-22 上海斐讯数据通信技术有限公司 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
CN107766191A (en) * 2017-11-03 2018-03-06 郑州云海信息技术有限公司 The automatic detecting storage information of Linux systems and the method for testing of health status
CN108052423A (en) * 2017-11-24 2018-05-18 英业达科技有限公司 The test method and device of server
CN109376046A (en) * 2018-11-06 2019-02-22 郑州云海信息技术有限公司 A kind of method for testing hard disk, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388254A (en) * 2007-09-13 2009-03-18 英业达股份有限公司 Storage device test method
CN104021251A (en) * 2014-06-10 2014-09-03 浪潮(北京)电子信息产业有限公司 PCB check method and device
KR101568780B1 (en) * 2014-08-18 2015-11-12 (주)명정보기술 A portable device for checking a storage having SATA interface
CN105068920A (en) * 2015-07-17 2015-11-18 浪潮电子信息产业股份有限公司 Shell based method for testing stability of rack asset information
CN106445761A (en) * 2016-11-09 2017-02-22 上海斐讯数据通信技术有限公司 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
CN107766191A (en) * 2017-11-03 2018-03-06 郑州云海信息技术有限公司 The automatic detecting storage information of Linux systems and the method for testing of health status
CN108052423A (en) * 2017-11-24 2018-05-18 英业达科技有限公司 The test method and device of server
CN109376046A (en) * 2018-11-06 2019-02-22 郑州云海信息技术有限公司 A kind of method for testing hard disk, device, equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468002A (en) * 2020-03-31 2021-10-01 爱德万测试公司 Multi-namespace testing system and method
CN113468002B (en) * 2020-03-31 2024-05-03 爱德万测试公司 Multi-namespace test system and method
CN115878051A (en) * 2023-03-03 2023-03-31 浪潮电子信息产业股份有限公司 Data synchronization method, data synchronization system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US6002869A (en) System and method for automatically testing software programs
US7917895B2 (en) Automated software testing and validation system
US8150674B2 (en) Automated testing platform for event driven systems
US10451668B2 (en) Test program flow control
CN113419747B (en) Middleware deployment method, device, equipment and storage medium
US20040078673A1 (en) System and method for facilitating coverage feedback testcase generation reproducibility
US20240020256A1 (en) Component firmware interaction using hardware registers
CN110427528A (en) SSD identifier test method, device, computer equipment and storage medium
US6970816B1 (en) Method and system for efficiently generating parameterized bus transactions
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN112463633B (en) Method, device, equipment and medium for checking address decoding of on-chip memory
CN110795304A (en) Method and device for testing performance of distributed storage system
CN116383021A (en) Software package performance testing method, system, computing device and readable storage medium
US7962796B2 (en) State testing device and methods thereof
US10216525B1 (en) Virtual disk carousel
CN110327626B (en) Virtual server creation method and device
CN109783417B (en) Serial port communication device and method
CN113360388A (en) Method for integrally managing test process of unmanned aerial vehicle ground station software
CN111625459A (en) Application program testing method and device, computer equipment and storage medium
CN114448851B (en) Automatic data testing method and system
CN116090380B (en) Automatic method and device for verifying digital integrated circuit, storage medium and terminal
US20100169715A1 (en) Process for Verifying Computers
CN112256554B (en) Method and equipment for testing based on scene test cases
US20050288913A1 (en) Circuit design simulation
CN114443487A (en) Universal computing module resource allocation testing method

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

Application publication date: 20191108

RJ01 Rejection of invention patent application after publication