Methods and a system for combining commands for data transfers between a
drive and memory. One exemplary method includes receiving multiple read or write
commands in a queue. Then, a first command of the multiple read or write commands
is processed. Next, the multiple read or write commands are combined. The combination
includes identifying like commands each being associated with a file stored on
a drive and ascertaining which of the files associated with the like commands are
contiguous. Then, a combined command is created, where the combined command consolidates
the identified like commands being associated with contiguous files. Next, the
combined command is issued to the drive.