projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Add function to get number of open handles
[yaffs2.git]
/
yaffs_packedtags2.c
diff --git
a/yaffs_packedtags2.c
b/yaffs_packedtags2.c
index e0c55862d04597b26462aaadeda75a4b9387c384..f8ae94ccddb479854f8398e6f8fc3949979180c1 100644
(file)
--- a/
yaffs_packedtags2.c
+++ b/
yaffs_packedtags2.c
@@
-1,7
+1,7
@@
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-20
07
Aleph One Ltd.
+ * Copyright (C) 2002-20
10
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@
-13,6
+13,7
@@
#include "yaffs_packedtags2.h"
#include "yportenv.h"
#include "yaffs_packedtags2.h"
#include "yportenv.h"
+#include "yaffs_trace.h"
#include "yaffs_tagsvalidity.h"
/* This code packs a set of extended tags into a binary structure for
#include "yaffs_tagsvalidity.h"
/* This code packs a set of extended tags into a binary structure for
@@
-96,11
+97,11
@@
void yaffs_PackTags2TagsPart(yaffs_PackedTags2TagsPart *ptt,
}
}
-void yaffs_PackTags2(yaffs_
Device *dev, yaffs_PackedTags2 *pt, const yaffs_ExtendedTags *t
)
+void yaffs_PackTags2(yaffs_
PackedTags2 *pt, const yaffs_ExtendedTags *t, int tagsECC
)
{
yaffs_PackTags2TagsPart(&pt->t, t);
{
yaffs_PackTags2TagsPart(&pt->t, t);
- if(
!dev->noT
agsECC)
+ if(
t
agsECC)
yaffs_ECCCalculateOther((unsigned char *)&pt->t,
sizeof(yaffs_PackedTags2TagsPart),
&pt->ecc);
yaffs_ECCCalculateOther((unsigned char *)&pt->t,
sizeof(yaffs_PackedTags2TagsPart),
&pt->ecc);
@@
-155,13
+156,13
@@
void yaffs_UnpackTags2TagsPart(yaffs_ExtendedTags *t,
}
}
-void yaffs_UnpackTags2(yaffs_
Device *dev, yaffs_ExtendedTags *t, yaffs_PackedTags2 *pt
)
+void yaffs_UnpackTags2(yaffs_
ExtendedTags *t, yaffs_PackedTags2 *pt, int tagsECC
)
{
yaffs_ECCResult eccResult = YAFFS_ECC_RESULT_NO_ERROR;
if (pt->t.sequenceNumber != 0xFFFFFFFF &&
{
yaffs_ECCResult eccResult = YAFFS_ECC_RESULT_NO_ERROR;
if (pt->t.sequenceNumber != 0xFFFFFFFF &&
-
!dev->noT
agsECC){
+
t
agsECC){
/* Chunk is in use and we need to do ECC */
yaffs_ECCOther ecc;
/* Chunk is in use and we need to do ECC */
yaffs_ECCOther ecc;