CN101782835A - Storage system and instruction processing method - Google Patents

Storage system and instruction processing method Download PDF

Info

Publication number
CN101782835A
CN101782835A CN200910001276A CN200910001276A CN101782835A CN 101782835 A CN101782835 A CN 101782835A CN 200910001276 A CN200910001276 A CN 200910001276A CN 200910001276 A CN200910001276 A CN 200910001276A CN 101782835 A CN101782835 A CN 101782835A
Authority
CN
China
Prior art keywords
instruction
order structure
control card
order
application program
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
CN200910001276A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200910001276A priority Critical patent/CN101782835A/en
Publication of CN101782835A publication Critical patent/CN101782835A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a storage system and an instruction processing method. The storage system comprises an application program, a control card, a conversion unit and a medium unit. In the instruction processing method, firstly, the application program outputs an instruction with a first instruction structure; secondly, the conversion unit judges whether the control card of the storage system corresponds to a second instruction structure or not, if so, the conversion unit converts the first instruction structure into the second instruction structure; and thirdly, the medium unit receives the instruction and outputs the instruction to the control card. The control card is used for executing an action based on the instruction.

Description

Stocking system and command processing method thereof
Technical field
The invention relates to a kind of stocking system and command processing method thereof, and particularly relevant for a kind of stocking system and command processing method thereof of driver framework of application window operating system.
Background technology
Because the user has more and more high requirement for the security of data storing, make disc array system heal to become to coming into one's own with backup functionality.Common on the market disc array system is to adopt slim calculator system interface (Small Computer System Interface, order format SCSI) at present.Disc array system utilizes the application program output order to disk array control card, to carry out the data write action for each the entity disc driver in the disk array.
Yet the non-application disk array control card of the SCSI order format of standard on the market appears in industry at present, for example the intelligent array card of Hewlett-Packard (smart array card).The intelligent array card is to adopt a kind of Compaq intelligence by name to store subsystem (Compaq Intelligent Storage Subsystem, order format CISS).Therefore, generally adopt the application program of SCSI, can't be compatible with the disk array control card that adopts non-standard SCSI order format as order format.
Present solution is the disk array control card at this kind special instruction form, writes a cover application program in addition.Therefore, must the arrange in pairs or groups application program of different instruction form of disc array system is with the disk array control card of corresponding different instruction form.This kind method has improved complexity and cost that application program is write, has more reduced the convenience on disc array system uses simultaneously.
Summary of the invention
Purpose of the present invention is providing a kind of stocking system and command processing method thereof exactly, and it is a mode of utilizing the order structure of conversion one instruction, the feasible control card that can be compatible with corresponding second order structure corresponding to the application program of first order structure.
To achieve these goals, one aspect of the present invention provides a kind of command processing method of stocking system.One instruction of one first order structure at first, is arranged by an application program outputs.Then, judge that whether a control card of stocking system is corresponding to one second order structure.When judging control card, will instruct to be converted to second order structure by first order structure corresponding to second order structure.Secondly, output order is to control card.
To achieve these goals, another aspect of the present invention provides a kind of stocking system, comprises an application program, a control card, a converting unit and a medium unit.Application program has an instruction of one first order structure in order to output.Control card is in order to carry out an action according to instruction.Converting unit is between application program and control card, in order to judge that whether control card is corresponding to one second order structure.When judging control card corresponding to second order structure, converting unit more is converted to second order structure in order to instructing by first order structure.Medium unit is instructed in order to receive, and is exported instruction to control card between application program and control card.
The instruction transformation that the present invention utilizes converting unit will have first order structure is second order structure, makes the instruction of correspondence first order structure of application program output, is compatible with the control card of corresponding second order structure.So, do not need to write in addition the application program of corresponding second order structure, can allow same application be compatible with the control card of corresponding first order structure and corresponding second order structure, can promote the convenience in the use.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, being described in detail as follows of appended accompanying drawing:
Fig. 1 is the functional block diagram according to the stocking system of a preferred embodiment of the present invention;
Fig. 2 is the process flow diagram according to the command processing method of the stocking system of a preferred embodiment of the present invention;
Fig. 3 is the instruction field block synoptic diagram with second order structure of present embodiment;
Fig. 4 is the synoptic diagram of the medium unit of Fig. 1.
[primary clustering symbol description]
100: stocking system 110: application program
130: converting unit 150: medium unit
151: function driver 153: bus driver
170: control card B1: instruction header field block
B2: instruction description field block B3: error message description field block
B4: dispersion/centralized list field block
Embodiment
The stocking system of a preferred embodiment of the present invention and command processing method thereof, utilize converting unit to instruct and be converted to second order structure by first order structure, make the instruction of first order structure of application program output, can be compatible with the control card of corresponding second order structure.Below describe at the stocking system of a preferred embodiment of the present invention.Please refer to Fig. 1, it is the functional block diagram according to the stocking system of a preferred embodiment of the present invention.Stocking system 100 comprises an application program 110, a control card 170, a converting unit 130 and a medium unit 150.Application program 110 is in order to export an instruction, and instruction has one first order structure.Control card 170 is in order to carry out an action according to instruction.Converting unit 130 is between application program 110 and control card 170, in order to judge that whether control card 170 is corresponding to one second order structure.When judging control card 170 corresponding to second order structure, converting unit 130 is converted to second order structure in order to instructing by first order structure.Medium unit 150 is instructed in order to receive, and is exported instruction to control card 170 between application program 110 and control card 170.In the present embodiment, when control card 170 and application program 110 during corresponding to different order structure, stocking system 100 utilizes the order structure of converting unit 130 conversion instructions.Whereby, the instruction of application program 110 outputs can be compatible with control card 170, makes control card 170 carry out corresponding action according to instruction.Therefore, application program 110 more can be compatible with the control card 170 of corresponding second instruction except the control card that can be compatible with corresponding first order structure.
Please refer to Fig. 2, it is the process flow diagram according to the command processing method of the stocking system of a preferred embodiment of the present invention.Be to describe to be applied to above-mentioned stocking system 100 according to a preferred embodiment of the present invention herein.In the present embodiment, stocking system 100 is to describe with the disc array system that includes a disk array control card.The command processing method of present embodiment mainly may further comprise the steps.
At first, shown in step S1, export instruction with first order structure by application program 110.In the present embodiment, first order structure is the order structure of a slim calculator system interface.The order structure of this slim calculator system interface include an instruction description field block (Command DescriptorBlock, CDB).
Then, carry out step S2, whether the control card 170 of judging stocking system 100 is corresponding to second order structure.In the present embodiment, the step of this judgement is to be undertaken by converting unit 130.Converting unit 130 preferably is the screening driver (filter driver) of the driver framework of coincidence window operating system.
Next, when judging control card 170, carry out step S3, will instruct to be converted to second order structure by first order structure corresponding to second order structure.Stocking system 100 is to use converting unit 130 to carry out the conversion of order structure.Yet in another embodiment, stocking system 100 also can be used the determining step that a judging unit carries out step S2, and when judging control card 170 corresponding to second order structure, utilizes converting unit 130 to carry out the conversion of order structure again.
In the present embodiment, second order structure is that Compaq intelligence stores subsystem (Compaq IntelligentStorage Subsystem, order structure CISS).The control card 170 of stocking system 100 is Hewlett-Packard (Hewlett-Packard, HP) an intelligent array card (smart arraycard) of company of corresponding this CISS order structure.In the practical application, step S3 comprises increases the step of a plurality of field blocks to instruction.Please refer to Fig. 3, it is the instruction field block synoptic diagram with second order structure of present embodiment.The field block of these increases comprises instruction header (command header) field block B1, error message description (error info descriptor) field block B3 and a dispersion/centralized list (scatter/gather) field block B4.For example include logical unit number (Logical UnitNumber, LUN) address information and device identifying information information such as (target ID) among the instruction header field block B1.For example include remaining counting (residual count), extra error message (additional error info) and detection information information such as (sense info) among the error message description field block B3.Dispersion/centralized list field block B4 for example includes a plurality of dispersions/concentrated descriptor, buffer length information such as (buffer length).
Have second order structure via the instruction after the step S3 conversion, it includes instruction description field block B2, instruction header field block B1, error message description field block B3 and dispersion/centralized list field block B4.In the present embodiment, by the instruction of the SCSI order structure of application program 110 output, screened driver is converted to the instruction with CISS order structure.
Next the command processing method of present embodiment carries out step S4, and output order is to control card 170.In the present embodiment, when judging corresponding second order structure of control card 170, be that output has instructing to control card 170 of second order structure among the step S4.Control card 170 is carried out an action according to the command content with second order structure that receives, and for example grasps required data, and with data back to application program 110.
In addition on the one hand, the command processing method of present embodiment when converting unit 130 is judged not corresponding second order structure of control card 170, is directly to carry out the step of output order to control card 170 in step S2.Because therefore the instruction of application program 110 outputs is that the instruction that will have first order structure exports control card 170 to without the step of conversion.Therefore, when control card 170 during, be that output has instructing to control card 170 of first order structure among the step S4 corresponding to first order structure.Control card 170 is carried out action according to the command content with first order structure that receives.
Please refer to Fig. 4, it is the synoptic diagram of the medium unit of Fig. 1.In the stocking system 100 of present embodiment, medium unit 150 for example comprises a function driver (function driver) 151 and one bus driver (bus driver) 153 of coincidence window operation system driver framework.Further, function driver comprises a classification driver (class driver) and a port drivers (portdriver).The instruction of application program 110 outputs exports control card 170 to by converting unit 130, function driver 151 and bus driver 153 in regular turn.
Below be being that example describes in the disc array system that is applied to Hewlett-Packard with test macro 110.At first, the instruction of the SCSI order structure of application program 110 outputs is converted to the CISS order structure by the screening driver.Then, the instruction that is converted to the CISS order structure is passed to the intelligent array card by classification driver, port drivers, bus driver 153.The intelligent array card is carried out action according to command content, for example grasps data.Then, the intelligent array card is that the data that will grasp pass response program 110.Thus, the application program 110 of corresponding SCSI order structure can be compatible with the CISS order structure of intelligent array card.
In the above-mentioned stocking system and command processing method thereof, the instruction of first order structure is arranged by application program outputs at first, judge that then whether control card is corresponding to second order structure according to a preferred embodiment of the present invention.When judging control card, be that the instruction that application program is exported is converted to second order structure by first order structure corresponding to second order structure.And the instruction that then will have second order structure exports control card to.When judging not corresponding second order structure of control card, be that the instruction that will have first order structure exports control card to.Whereby, same set of application program can be compatible with the control card of corresponding different instruction structure, has reduced the cost that application program is write, and has promoted the convenience in the stocking system use.
Though the present invention discloses as above with a preferred embodiment; right its is not in order to limit the present invention; any person skilled in the art; without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is when being as the criterion with the scope that claims were defined.

Claims (10)

1. the command processing method of a stocking system is characterized in that, comprising:
One instruction of one first order structure is arranged by an application program outputs;
Whether a control card of judging this stocking system is corresponding to one second order structure;
When judging this control card, should instruct to be converted to this second order structure by this first order structure corresponding to this second order structure; And
Export this instruction to this control card.
2. disposal route according to claim 1 is characterized in that, in this step of this instruction of output, this first order structure is the order structure of a slim calculator system interface.
3. disposal route according to claim 2 is characterized in that, this second order structure is the order structure that Compaq intelligence stores subsystem.
4. disposal route according to claim 3 is characterized in that, in this step of this instruction of output, this instruction comprises an instruction description field block, and this step of changing this instruction comprises:
Increasing a plurality of field blocks instructs to this.
5. disposal route according to claim 4, it is characterized in that, in this step that increases those field blocks, the field block of those increases comprises an instruction header field block, an error message description field block and a dispersion/centralized list field block.
6. disposal route according to claim 3 is characterized in that, in this step of judging this control card, this control card is an intelligent array card of Hewlett-Packard.
7. disposal route according to claim 1 is characterized in that, in this step of this instruction of output, is this instruction that output has this second order structure.
8. disposal route according to claim 1 is characterized in that, this disposal route also comprises:
When judging this control card not to should second order structure time, carry out this instruction of output this step to this control card.
9. disposal route according to claim 8 is characterized in that, in this step of this instruction of output, is this instruction that output has this first order structure.
10. a stocking system is characterized in that, comprising:
One application program, in order to export an instruction, this instruction has one first order structure;
One control card is in order to carry out an action according to this instruction;
One converting unit, between this application program and this control card, in order to judge that whether this control card is corresponding to one second order structure, when judging this control card corresponding to this second order structure, this converting unit was converted to this second order structure in order to instructing by this first order structure; And
One medium unit is between this application program and this control card, in order to receive this instruction and to export this instruction to this control card.
CN200910001276A 2009-01-16 2009-01-16 Storage system and instruction processing method Pending CN101782835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910001276A CN101782835A (en) 2009-01-16 2009-01-16 Storage system and instruction processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910001276A CN101782835A (en) 2009-01-16 2009-01-16 Storage system and instruction processing method

Publications (1)

Publication Number Publication Date
CN101782835A true CN101782835A (en) 2010-07-21

Family

ID=42522853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910001276A Pending CN101782835A (en) 2009-01-16 2009-01-16 Storage system and instruction processing method

Country Status (1)

Country Link
CN (1) CN101782835A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104880149A (en) * 2014-02-28 2015-09-02 江苏永钢集团有限公司 Large-size bulk material pile volume measurement method based on stereo image analysis, and equipment thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104880149A (en) * 2014-02-28 2015-09-02 江苏永钢集团有限公司 Large-size bulk material pile volume measurement method based on stereo image analysis, and equipment thereof

Similar Documents

Publication Publication Date Title
CN102959502B (en) The method that asynchronous event notification is provided in systems
CN100407123C (en) Data storage device, reconstruction controlling device, reconstruction controlling method, and storage medium
US7007127B2 (en) Method and related apparatus for controlling transmission interface between an external device and a computer system
CN1987843B (en) Self adapting method for USB protocol
CN101359309A (en) Status indication apparatus for hard disc of serial connection small computer system interface and method
CN1825294A (en) Computer system and control method of the same
CN101853224A (en) Method and device for identifying port of data card device under Linux system
CN103176924A (en) Output device, log collecting method for output device, and storage medium
CN103810440B (en) Access system and method
US6948015B2 (en) Storage control device
JP4445535B2 (en) DATA TRANSFER DEVICE, INFORMATION PROCESSING SYSTEM, DATA TRANSFER PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM
CN102262600B (en) Method and system for recognizing USB (Universal Serial Bus) equipment
CN111124985A (en) Read-only control method and device for mobile terminal
US7774560B2 (en) Storage emulator and method thereof
US9311195B2 (en) SCSI reservation status information on a SAN disk
CN109558369A (en) Control method, device, equipment and the system of multi -CPU list serial ports
CN101782835A (en) Storage system and instruction processing method
US11882038B2 (en) Transaction analyzer for communication bus traffic
CN203658991U (en) Computer evidence obtaining system
US7231643B1 (en) Image rescue system including direct communication between an application program and a device driver
CN101114244A (en) Method for simultaneously copying data of a plurality of bracket
US9122806B2 (en) SATA data appliance for providing SATA hosts with access to a configurable number of SATA drives residing in a SAS topology
CN101853213B (en) Memory integration device and method
CN109697144B (en) Hard disk detection method of electronic equipment and electronic equipment
CN115203116B (en) AXI bus transmission method, system and chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100721