projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
646956a
)
Change bad block marker to Y to identify YAFFS-marked bad blocks
author
charles
<charles>
Wed, 10 Aug 2005 20:34:40 +0000
(20:34 +0000)
committer
charles
<charles>
Wed, 10 Aug 2005 20:34:40 +0000
(20:34 +0000)
yaffs_tagscompat.c
patch
|
blob
|
history
diff --git
a/yaffs_tagscompat.c
b/yaffs_tagscompat.c
index 85b032e46135112070eca2e44efd59a7b1d53eea..ace4b28af49dea04c39df9c1dbc7dfbd36e32684 100644
(file)
--- a/
yaffs_tagscompat.c
+++ b/
yaffs_tagscompat.c
@@
-10,7
+10,7
@@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
- * $Id: yaffs_tagscompat.c,v 1.
4 2005-08-09 04:22:3
0 charles Exp $
+ * $Id: yaffs_tagscompat.c,v 1.
5 2005-08-10 20:34:4
0 charles Exp $
*/
#include "yaffs_guts.h"
*/
#include "yaffs_guts.h"
@@
-496,7
+496,7
@@
int yaffs_TagsCompatabilityMarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int
memset(&spare, 0xff,sizeof(yaffs_Spare));
memset(&spare, 0xff,sizeof(yaffs_Spare));
- spare.blockStatus =
0
;
+ spare.blockStatus =
'Y'
;
yaffs_WriteChunkToNAND(dev, blockInNAND * dev->nChunksPerBlock, NULL , &spare);
yaffs_WriteChunkToNAND(dev, blockInNAND * dev->nChunksPerBlock + 1, NULL , &spare);
yaffs_WriteChunkToNAND(dev, blockInNAND * dev->nChunksPerBlock, NULL , &spare);
yaffs_WriteChunkToNAND(dev, blockInNAND * dev->nChunksPerBlock + 1, NULL , &spare);