Data writing method and apparatus
AssigneeSamsung Electronics Co., Ltd.
InventorKeun-soo Yim
Life of this patent
Estimating the term…
Abstract
Provided are a data writing method and apparatus. In the data writing method, data that is to be written to a first storage medium and the address of the first storage medium are received, data is read from the address of the first storage medium, the received data is compared with the read data, and then the received data is stored in either the first storage medium or a second storage medium, depending on the comparison result. Accordingly, it is possible to reduce the time required for data writing and to increase the lifetime of a storage medium.
Claims18
A method of writing data, the method comprising:
- receiving data that is to be written to a first storage medium, and an address of the first storage medium;
- reading data stored at the address of the first storage medium;
- comparing the received data with the read data;
- and
- storing the received data in either the first storage medium or a second storage medium, depending on a comparison result;
- wherein the first storage medium is a non-volatile storage medium supporting a block unit input/output operation and the second storage medium is the non-volatile storage medium supporting a unit input/output operation, wherein the unit is smaller than the block unit.
A method of reading data, the method comprising:
- if a request for data reading at an address is received from a host, reading data from a block of a first storage medium, which contains the address;
- determining whether a second storage medium contains a sub block of the block containing the address;
- reading data from the sub block of the second storage medium, depending on a determination result;
- and
- combining the data from the first storage medium with the data read from the second storage medium and then providing a combination result to the host;
- wherein the first storage medium is a non-volatile storage medium supporting a block unit input/output operation and the second storage medium is the non-volatile storage medium supporting a unit input/output operation, wherein the unit is smaller than the block unit.
An apparatus for writing data, comprising:
- an input unit receiving data that is to be written to a first storage medium, and an address of the first storage medium;
- a data reading unit reading data from the address of the first storage medium;
- a comparison unit comparing the received data with the read data;
- and
- a data writing unit writing the received data to either the first storage medium or a second storage medium, depending on a comparison result;
- wherein the first storage medium is a non-volatile storage medium supporting a block unit input/output operation and the second storage medium is the non-volatile storage medium supporting a unit input/output operation, wherein the unit is smaller than the block unit.
An apparatus for reading data, comprising:
- if a request for data reading at an address is received from a host, a first data reading unit reading data from a block of a first storage medium, which contains the address;
- a determination unit determining whether a second storage medium contains a sub block of the block containing the address;
- a second data reading unit reading data from the sub block of the second storage medium, depending on a determination result;
- and
- a data combining unit combining the data read from the first storage medium with the data read from the second storage medium and then providing the combined result to the host;
- wherein the first storage medium is a non-volatile storage medium supporting a block unit input/output operation and the second storage medium is the non-volatile storage medium supporting a unit input/output operation, wherein the unit is smaller than the block unit.
Dependencies are inferred from the claim text.