projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70f8f5a
)
Fix slow 512-byte problem. Thanx Frank.
author
charles
<charles>
Wed, 29 Nov 2006 20:21:12 +0000
(20:21 +0000)
committer
charles
<charles>
Wed, 29 Nov 2006 20:21:12 +0000
(20:21 +0000)
yaffs_mtdif.c
patch
|
blob
|
history
diff --git
a/yaffs_mtdif.c
b/yaffs_mtdif.c
index 1510a94782ede1166319fda7ce8950eeaa83a9df..04c491844c743faff90eef5a386c86d886598dd3 100644
(file)
--- a/
yaffs_mtdif.c
+++ b/
yaffs_mtdif.c
@@
-14,7
+14,7
@@
*/
const char *yaffs_mtdif_c_version =
*/
const char *yaffs_mtdif_c_version =
- "$Id: yaffs_mtdif.c,v 1.1
6 2006-11-08 06:24:34
charles Exp $";
+ "$Id: yaffs_mtdif.c,v 1.1
7 2006-11-29 20:21:12
charles Exp $";
#include "yportenv.h"
#include "yportenv.h"
@@
-64,8
+64,10
@@
static inline void translate_oob2spare(yaffs_Spare *spare, __u8 *oob)
spare->tagByte5 = oob[5] == 0xff ? 0xff : oob[5] & 0x3f;
spare->blockStatus = oob[5] & 0x80 ? 0xff : 'Y';
spare->pageStatus = oob[5] & 0x40 ? 0xff : 0;
spare->tagByte5 = oob[5] == 0xff ? 0xff : oob[5] & 0x3f;
spare->blockStatus = oob[5] & 0x80 ? 0xff : 'Y';
spare->pageStatus = oob[5] & 0x40 ? 0xff : 0;
+ spare->ecc1[0] = spare->ecc1[1] = spare->ecc1[2] = 0xff;
spare->tagByte6 = oob[6];
spare->tagByte7 = oob[7];
spare->tagByte6 = oob[6];
spare->tagByte7 = oob[7];
+ spare->ecc2[0] = spare->ecc2[1] = spare->ecc2[2] = 0xff;
nspare->eccres1 = nspare->eccres2 = 0; /* FIXME */
}
nspare->eccres1 = nspare->eccres2 = 0; /* FIXME */
}