摘要 |
A hard disk drive has an intelligent interface for communicating with a host, a magnetic disk, disk side programs and host side programs, and a cache. The cache is divisible into a number of segments, and the number of segments may be varied. The cache employs a cache control structure including a cache entry table, and the hard disk drive receives commands from the host in a queue. The method comprises the steps of. (a) receiving a first command and a second command from the host; (b) determining a scan first state; (c) determining if there are any commands in the queue; (d) waiting for a first command to complete and performing a seek if there are no commands in the queue and the scan first state is false; (e) performing a scan of the cache entry table to assign the second command to a segment; and () checking if a seek is needed for the second command and if a seek is needed for the second command performing a seek for the second command after the first command has completed.
|