Patent ID: 8065477
Filing Date: 2011-11-22
Classification: G06F

Abstract:
1. A disk apparatus connected to an external device that sends a read command to read data or a write command to write the data, and adapted to read the data from or write the data in a disk in response to the read command or the write command, the disk apparatus comprising: an address storing unit that stores therein a primary address indicative of a start point and an end point of data to be read, which is obtained from the read command or the write command received from the external device, a secondary address indicative of the start point and the end point of data to be read after the data read based on the primary address, and a counter value indicative of a number of times of receiving the read command for the secondary address with respect to the primary address; an address obtaining unit that obtains an address upon receipt of the read command from the external device, and determines whether the obtained address is stored as the primary address in the address storing unit and whether the obtained address is stored as the secondary address of a corresponding primary address in the address storing unit; a primary-address processing unit that, if the address obtained by the address obtaining unit is not stored as the primary address in the address storing unit, stores the obtained address as the primary address in the address storing unit; a secondary-address processing unit that, if the address obtained by the address obtaining unit is not stored as the secondary address of the corresponding primary address in the address storing unit, stores the obtained address as the secondary address associated with the corresponding primary address in the address storing unit, after the primary address is stored by the primary-address processing unit; a counter processing unit that, if the address obtained by the address obtaining unit is stored as the secondary address of the corresponding primary address in the address storing unit, increments the counter value of the secondary address, after the secondary-address processing unit stores the obtained address as the secondary address in the address storing unit; a secondary-address selecting unit that selects the secondary address of which the counter value indicates a largest number after the increment of the counter value by the counter processing unit; a reading unit that reads the data based on the secondary address of the corresponding primary address from the disk, and stores the read data in a buffer memory, if the address obtaining unit obtains the address after the secondary-address selecting unit selects the secondary address of the data to be read immediately after the data specified by the primary address; and a sending unit that sends the data of the secondary address stored in the buffer memory by the reading unit to the external device, if the address obtaining unit obtains the secondary address of the data read by the reading unit.