if (!need_skip && !(flags & WITH_DROP_FFS) && !(flags & WITH_YAFFS_OOB)) {
rval = nand_write (nand, offset, length, buffer);
if (rval == 0)
return 0;
添加&& !(flags & WITH_YAFFS_OOB)即可。根据代码关系层层查找可知need_skip 的值为0,nand_write 只执行了一次。只要改掉判断值即可
if (!need_skip && !(flags & WITH_DROP_FFS) && !(flags & WITH_YAFFS_OOB)) {
rval = nand_write (nand, offset, length, buffer);
if (rval == 0)
return 0;
添加&& !(flags & WITH_YAFFS_OOB)即可。根据代码关系层层查找可知need_skip 的值为0,nand_write 只执行了一次。只要改掉判断值即可
举报