Re: [U-Boot] [PATCH] fs: fat: don't call disk_write with zero sector num

2013-07-25 Thread Josh Wu
Hi, All On 7/24/2013 5:55 PM, Josh Wu wrote: In the set_cluster() function, it will convert the buffer size to sector numbers. Then call disk_write() to write by sector. For remaining buffer, the size is less than a sector, call disk_write() again to write them in one sector. But if the total b

[U-Boot] [PATCH] fs: fat: don't call disk_write with zero sector num

2013-07-24 Thread Josh Wu
In the set_cluster() function, it will convert the buffer size to sector numbers. Then call disk_write() to write by sector. For remaining buffer, the size is less than a sector, call disk_write() again to write them in one sector. But if the total buffer size is less then one sector, the original