Method of writing data and channel adapter
AssigneeFujitsu Limited
InventorsNina Arataki, Sadayuki Ohyama
Life of this patent
Estimating the term…
Abstract
A method of writing data includes receiving a record of a variable-length data format, creating a field-checking code for each field of the record received, creating a block-checking code in units of the fixed-length data for the data received, and writing data by reading the record, assembling fixed length data that includes the field-checking code and the block-checking code by using the field-checking code and the block-checking code, and transferring the data to a cache memory.
Claims13
A method of writing data to a cache memory, comprising:
- receiving a record including a plurality of variable-length fields;
- generating field check codes for each field of the record received;
- generating block check codes for each fixed-length block obtained when a whole data including the variable-length fields and the field-check codes thereof is divided;
- adding the field-check codes to the variable-length fields of the received record to obtain the whole data;
- dividing the whole data into the fixed-length blocks;
- adding padding data to a resultant block of the dividing that is shorter than half length of the fixed-length blocks, so that the resultant block is extended to the half length and other whole data starts from the halfway point of a fixed-length block;
- adding the block-check codes to the fixed-length blocks;
- and
- writing the fixed-length blocks to the cache memory after the block-check codes are added.
A channel adapter that controls writing data to a cache memory, comprising:
- a receiving unit that receives a record including a plurality of variable-length fields;
- an FCC generating unit that generates field-check codes for each field of the received record;
- a BCC generating unit that generates block-check codes for each fixed-length block that is to be obtained when a whole data including the variable-length fields and the field-check codes thereof is divided;
- and
- a writing unit that adds the field-check codes to the variable-length fields of the received record to obtain the whole data, divides the whole data into the fixed-length blocks, adds the block-check codes to the fixed-length blocks, and writes the fixed-length blocks to the cache memory after adding the block-check codes,
- wherein the writing unit adds padding data to a resultant block of dividing that is shorter than half length of the fixed-length blocks, so that the resultant block is extended to the half length and other whole data starts from the halfway point of a fixed-length block.
A channel adapter, comprising:
- a receiving unit receiving a record that includes a plurality of variable-length fields;
- an FCC generating unit generating field-check codes for each field of the received record;
- a BCC generating unit generating block-check codes;
- and
- a writing unit that adds the field-check codes to the variable-length fields of the received record to obtain a whole data, divides the whole data into the fixed-length blocks, adds the block-check codes to the fixed-length blocks, and writes the fixed-length blocks to a cache memory after adding the block-check codes,
- wherein the writing unit adds padding data to a resultant block of dividing that is shorter than half length of the fixed-length blocks, so that the resultant block is extended to the half length and other whole data starts from the halfway point of a fixed-length block.
Dependencies are inferred from the claim text.