主权项 |
1. A method for minimizing file corruption during a file transfer between a host device and a client device, wherein primary and side channels exist between the host and client devices, the method implemented in the client device, and the method comprising:
storing received file system data temporarily in a client device memory circuit, wherein the file system data represents information about a file system of a storage component, wherein the file system data is received over the primary communications channel from the host device, and wherein the received file system data comprises a file allocation table pertaining to a file system of the client; storing received file data directly in the client device storage component, wherein the file data is received over the primary communications channel from the host device, and wherein a size of the file data is too large to be temporarily stored in the client device memory circuit; receiving, at the client device, an end command, from the host device, indicating that a file transfer section is finished, wherein the end command is received over the side channel; transferring the received file system data from the client device memory circuit to the storage component based at least on the receiving of the end command; and receiving, on the sideband communications channel, a start command indicating that the file transfer section is beginning; and based on the receiving the start command, deleting data in the client device memory circuit before the storing the received file system data in the client device memory circuit. |