Therefore, the device carries out processing such as an operation to write a file, an operation to read out a file, and an adjustment in accordance with a command received from the host computer or the other magnetic-disk device operating in the host mode.