The transfer of data from a host computer to a recordable disk in a disk
drive operating on the host computer is managed. A buffer for temporarily
storing data to be transferred between the host computer and the
recordable disk is maintained, wherein the buffer comprises a plurality
of host segments and a plurality of disk segments, and wherein each of
the host segments and disk segments have a sector count value associated
therewith. In a case where the transfer of data corresponds to a host
segment, the host segment is selected from the plurality of host segments
in the buffer. In a case where the transfer of data corresponds to a disk
segment, the disk segment is selected from the plurality of disk segments
in the buffer. In a case where a host segment is selected, the sector
count value of the selected host segment is adjusted. In a case where a
disk segment is selected, the sector count value of the selected disk
segment is adjusted. Thus, the amount of hardware resources is seen to be
reduced, and expansion of segmentation is seen to be improved.