[prev in list] [next in list] [prev in thread] [next in thread]
List: yaffs
Subject: [Yaffs] Fwd: File erase problem
From: "=?ISO-8859-1?Q?C=E9dric_Br=E9gardis?=" <cedric.bregardis () gmail ! com>
Date: 2008-09-04 8:05:58
Message-ID: 6caaf2d80809040105m7c8beb76md621171e25b51c34 () mail ! gmail ! com
[Download RAW message or body]
I resend the message (it was to big for the list).
---------- Forwarded message ----------
From: Cédric Brégardis <cedric.bregardis@gmail.com>
Date: 2008/9/4
Subject: Re: [Yaffs] File erase problem
To: manningc2@actrix.co.nz
Hi
2008/9/3 <manningc2@actrix.co.nz>
Hi
>
> Could you send that again with the following:
>
> add the output from
> # cat /proc/yaffs
>
> Changes all the
> #ls
> to
> #ls -ial
>
> That really helps give more info.
>
> I suspect there is some issue with the way your mtd imlementation or
> hook-up is handling the deletion markers.
Thanks for your help ! Here is the new output :
# flash_eraseall /dev/mtd3
Erasing 16 Kibyte @ ffc000 -- 99 % complete.
# mount -t yaffs /dev/mtdblock3 DFS
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs_read_super: Using yaffs1
yaffs_read_super: block size 4096
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
erase c01518bc
read c0151344
write c015168c
readoob c0151508
writeoob c0151744
block_isbad c0151ae4
block_markbad c0151b38
writesize 512
oobsize 16
erasesize 16384
size 16777216
yaffs locking
yaffs: yaffs_GutsInitialise()
yaffs_Scan starts intstartblk 1 intendblk 1024...
Block scanning block 1 state 3 seq 0
Block empty
Block scanning block 2 state 3 seq 0
Block empty
[...]
Block scanning block 1019 state 3 seq 0
Block empty
Block scanning block 1020 state 3 seq 0
Block empty
Block scanning block 1021 state 3 seq 0
Block empty
Block scanning block 1022 state 3 seq 0
Block empty
Block scanning block 1023 state 3 seq 0
Block empty
Block scanning block 1024 state 3 seq 0
Block empty
yaffs_Scan ends
Block summary
0 blocks have illegal states
Unknown 0 blocks
Needs scanning 0 blocks
Scanning 0 blocks
Empty 1024 blocks
Allocating 0 blocks
Full 0 blocks
Dirty 0 blocks
Checkpoint 0 blocks
Collecting 0 blocks
Dead 0 blocks
yaffs: yaffs_GutsInitialise() done.
yaffs_read_super: guts initialised OK
yaffs unlocking
yaffs_get_inode for object 1
yaffs_read_inode for 1
yaffs locking
yaffs_FillInode mode 41b6 uid 0 gid 0 size 512 count 1
yaffs unlocking
yaffs_read_super: got root inode
yaffs_read_super: d_alloc_root done
yaffs_read_super: done
# cd DFS
# touch toto
yaffs locking
yaffs_lookup for 1:toto
yaffs unlocking
yaffs_lookup not found
yaffs_create
yaffs_mknod: parent object 1 type 3
yaffs_mknod: making oject for toto, mode 81a4 dev 0
yaffs locking
yaffs_mknod: making file
yaffs: Tnodes added
Allocated block 1, seq 4097, 1023 left
Writing chunk 0 tags 270 0
yaffs unlocking
yaffs_get_inode for object 270
yaffs_read_inode for 270
yaffs locking
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1
yaffs unlocking
yaffs_mknod created object 270 count = 1
yaffs_file_flush object 270 (clean)
yaffs locking
yaffs unlocking
# rm toto
yaffs_unlink 1:toto
yaffs locking
Obj 0 header mismatch objectId 270
Writing chunk 1 tags 270 0
line 3727 delete of chunk 32
Writing chunk 0 tags 0 0
yaffs unlocking
yaffs_put_inode: ino 270, count 2
yaffs_put_inode: ino 270, count 1
yaffs_delete_inode: ino 270, count 0 object exists
yaffs locking
line 5069 delete of chunk 33
Writing chunk 1 tags 0 0
yaffs unlocking
yaffs_clear_inode: ino 270, count 0 object exists
yaffs locking
yaffs unlocking
# sync
yaffs_sync_fs
yaffs_sync_fs
# touch toto
yaffs_create
yaffs_mknod: parent object 1 type 3
yaffs_mknod: making oject for toto, mode 81a4 dev 0
yaffs locking
yaffs_mknod: making file
Writing chunk 2 tags 271 0
yaffs unlocking
yaffs_get_inode for object 271
yaffs_read_inode for 271
yaffs locking
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1
yaffs unlocking
yaffs_mknod created object 271 count = 1
yaffs_file_flush object 271 (clean)
yaffs locking
yaffs unlocking
# rm toto
yaffs_unlink 1:toto
yaffs locking
Obj 0 header mismatch objectId 271
Writing chunk 3 tags 271 0
line 3727 delete of chunk 34
Writing chunk 2 tags 0 0
yaffs unlocking
yaffs_put_inode: ino 271, count 2
yaffs_put_inode: ino 271, count 1
yaffs_delete_inode: ino 271, count 0 object exists
yaffs locking
line 5069 delete of chunk 35
Writing chunk 3 tags 0 0
yaffs unlocking
yaffs_clear_inode: ino 271, count 0 object exists
yaffs locking
yaffs unlocking
# sync
yaffs_sync_fs
yaffs_sync_fs
# ls -ial
yaffs locking
yaffs_readdir: starting at 0
yaffs_readdir: entry . ino 1
yaffs_readdir: entry .. ino 1
yaffs_readdir: lost+found inode 2
yaffs unlocking
yaffs locking
yaffs_lookup for 1:lost+found
yaffs unlocking
yaffs_lookup found 2
yaffs_get_inode for object 2
yaffs_read_inode for 2
yaffs locking
yaffs_FillInode mode 41b6 uid 0 gid 0 size 512 count 1
yaffs unlocking
yaffs_loookup dentry
yaffs locking
yaffs_readdir: starting at 3
yaffs unlocking
1 drw-rw-rw- 1 root root 512 Dec 31 17:05 .
315 drwxr-xr-x 4 root root 1024 Aug 18 2008 ..
2 drw-rw-rw- 1 root root 512 Dec 31 17:05 lost+found
# cat /proc/yaffs
YAFFS built:May 20 2008 13:57:04
$Id: yaffs_fs.c,v 1.62 2007-08-16 20:42:11 imcd Exp $
$Id: yaffs_guts.c,v 1.51 2007-07-23 05:14:08 charles Exp $
Device 0 "AFS"
startBlock......... 0
endBlock........... 2047
nDataBytesPerChunk. 512
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 2044
nReservedBlocks.... 5
nCheckptResBlocks.. 0
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 97
nObjectsCreated.... 100
nFreeObjects....... 93
nFreeChunks........ 65469
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 71
tagsEccUnfixed..... 1
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
Device 1 "DFS"
startBlock......... 0
endBlock........... 1023
nDataBytesPerChunk. 512
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 1023
nReservedBlocks.... 5
nCheckptResBlocks.. 0
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 100
nObjectsCreated.... 100
nFreeObjects....... 96
nFreeChunks........ 32768
nPageWrites........ 8
nPageReads......... 3
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 2
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
# cd ..
# umount DFS
yaffs_put_inode: ino 2, count 1
yaffs_put_inode: ino 1, count 1
yaffs_put_inode: ino 1, count 1
yaffs_sync_fs
yaffs_clear_inode: ino 1, count 0 object exists
yaffs locking
yaffs unlocking
yaffs_clear_inode: ino 2, count 0 object exists
yaffs locking
yaffs unlocking
yaffs_put_super
yaffs locking
save entry: isCheckpointed 0
Block summary
0 blocks have illegal states
Unknown 0 blocks
Needs scanning 0 blocks
Scanning 0 blocks
Empty 1023 blocks
Allocating 1 blocks
Full 0 blocks
Dirty 0 blocks
Checkpoint 0 blocks
Collecting 0 blocks
Dead 0 blocks
skipping checkpoint write
checkpoint byte count 0
save exit: isCheckpointed 0
yaffs unlocking
# mount -t yaffs /dev/mtdblock3 DFS
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs_read_super: Using yaffs1
yaffs_read_super: block size 4096
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
erase c01518bc
read c0151344
write c015168c
readoob c0151508
writeoob c0151744
block_isbad c0151ae4
block_markbad c0151b38
writesize 512
oobsize 16
erasesize 16384
size 16777216
yaffs locking
yaffs: yaffs_GutsInitialise()
yaffs_Scan starts intstartblk 1 intendblk 1024...
Block scanning block 1 state 2 seq 68
Block scanning block 2 state 3 seq 0
Block empty
Block scanning block 3 state 3 seq 0
Block empty
Block scanning block 4 state 3 seq 0
Block empty
Block scanning block 5 state 3 seq 0
Block empty
[...]
Block empty
Block scanning block 1020 state 3 seq 0
Block empty
Block scanning block 1021 state 3 seq 0
Block empty
Block scanning block 1022 state 3 seq 0
Block empty
Block scanning block 1023 state 3 seq 0
Block empty
Block scanning block 1024 state 3 seq 0
Block empty
yaffs: Tnodes added
line 5660 delete of chunk 33
Writing chunk 1 tags 0 0
line 5660 delete of chunk 35
Writing chunk 3 tags 0 0
Allocating from 1 4
yaffs_Scan ends
Block summary
0 blocks have illegal states
Unknown 0 blocks
Needs scanning 0 blocks
Scanning 0 blocks
Empty 1023 blocks
Allocating 1 blocks
Full 0 blocks
Dirty 0 blocks
Checkpoint 0 blocks
Collecting 0 blocks
Dead 0 blocks
yaffs: yaffs_GutsInitialise() done.
yaffs_read_super: guts initialised OK
yaffs unlocking
yaffs_get_inode for object 1
yaffs_read_inode for 1
yaffs locking
yaffs_FillInode mode 41b6 uid 0 gid 0 size 512 count 1
yaffs unlocking
yaffs_read_super: got root inode
yaffs_read_super: d_alloc_root done
yaffs_read_super: done
# cd DFS
# ls -ial
yaffs locking
yaffs_readdir: starting at 0
yaffs_readdir: entry . ino 1
yaffs_readdir: entry .. ino 1
yaffs_readdir: toto inode 271
yaffs_readdir: toto inode 270
yaffs_readdir: lost+found inode 2
yaffs unlocking
yaffs locking
yaffs_lookup for 1:toto
yaffs unlocking
yaffs_lookup found 271
yaffs_get_inode for object 271
yaffs_read_inode for 271
yaffs locking
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1
yaffs unlocking
yaffs_loookup dentry
yaffs locking
yaffs_lookup for 1:lost+found
yaffs unlocking
yaffs_lookup found 2
yaffs_get_inode for object 2
yaffs_read_inode for 2
yaffs locking
yaffs_FillInode mode 41b6 uid 0 gid 0 size 512 count 1
yaffs unlocking
yaffs_loookup dentry
yaffs locking
yaffs_readdir: starting at 5
yaffs unlocking
1 drw-rw-rw- 1 root root 512 Dec 31 17:06 .
315 drwxr-xr-x 4 root root 1024 Aug 18 2008 ..
2 drw-rw-rw- 1 root root 512 Dec 31 17:06 lost+found
271 -rw-r--r-- 1 root root 0 Dec 31 17:05 toto
271 -rw-r--r-- 1 root root 0 Dec 31 17:05 toto
# cat /proc/yaffs
YAFFS built:May 20 2008 13:57:04
$Id: yaffs_fs.c,v 1.62 2007-08-16 20:42:11 imcd Exp $
$Id: yaffs_guts.c,v 1.51 2007-07-23 05:14:08 charles Exp $
Device 0 "AFS"
startBlock......... 0
endBlock........... 2047
nDataBytesPerChunk. 512
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 2044
nReservedBlocks.... 5
nCheckptResBlocks.. 0
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 97
nObjectsCreated.... 100
nFreeObjects....... 93
nFreeChunks........ 65469
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 71
tagsEccUnfixed..... 1
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
Device 1 "DFS"
startBlock......... 0
endBlock........... 1023
nDataBytesPerChunk. 512
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 1023
nReservedBlocks.... 5
nCheckptResBlocks.. 0
blocksInCheckpoint. 0
nTnodesCreated..... 100
nFreeTnodes........ 98
nObjectsCreated.... 100
nFreeObjects....... 94
nFreeChunks........ 32766
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nShortOpCaches..... 10
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
#
Cedric
[Attachment #3 (text/html)]
<div dir="ltr">I resend the message (it was to big for the list).<br><br><div \
class="gmail_quote">---------- Forwarded message ----------<br>From: <b \
class="gmail_sendername">Cédric Brégardis</b> <span dir="ltr"><<a \
href="mailto:cedric.bregardis@gmail.com">cedric.bregardis@gmail.com</a>></span><br>
Date: 2008/9/4<br>Subject: Re: [Yaffs] File erase problem<br>To: <a \
href="mailto:manningc2@actrix.co.nz">manningc2@actrix.co.nz</a><br><br><br><div \
dir="ltr">Hi<br><br><div class="gmail_quote">2008/9/3 <span dir="ltr"><<a \
href="mailto:manningc2@actrix.co.nz" \
target="_blank">manningc2@actrix.co.nz</a>></span><div> <div></div><div \
class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi<br>
<br>
Could you send that again with the following:<br>
<br>
add the output from<br>
# cat /proc/yaffs<br>
<br>
Changes all the<br>
#ls<br>
to<br>
#ls -ial<br>
<br>
That really helps give more info.<br>
<br>
I suspect there is some issue with the way your mtd imlementation or<br>
hook-up is handling the deletion markers.</blockquote></div></div><div><br>Thanks for \
your help ! Here is the new output :<div><div></div><div \
class="Wj3C7c"><br><br># flash_eraseall /dev/mtd3<br>Erasing 16 Kibyte @ ffc000 -- 99 \
% complete.<br> # mount -t yaffs /dev/mtdblock3 DFS<br>
yaffs: dev is 32505859 name is "mtdblock3"<br>yaffs: passed flags \
""<br>yaffs_read_super: Using yaffs1<br>yaffs_read_super: block size \
4096<br>yaffs: Attempting MTD mount on 31.3, "mtdblock3"<br>
erase c01518bc<br> read c0151344<br> write c015168c<br> readoob \
c0151508<br> writeoob c0151744<br> block_isbad \
c0151ae4<br> block_markbad c0151b38<br> writesize 512<br> oobsize \
16<br> erasesize 16384<br> size 16777216<br>
yaffs locking<br>yaffs: yaffs_GutsInitialise()<br>yaffs_Scan starts intstartblk \
1 intendblk 1024...<br>Block scanning block 1 state 3 seq 0<br>Block empty<br>Block \
scanning block 2 state 3 seq 0<br>Block empty</div></div> <br>[...]<br><br><div><div \
class="Wj3C7c">Block scanning block 1019 state 3 seq 0<br>Block empty<br>Block \
scanning block 1020 state 3 seq 0<br>Block empty<br>Block scanning block 1021 state 3 \
seq 0<br> Block empty<br>Block scanning block 1022 state 3 seq 0<br>Block \
empty<br>Block scanning block 1023 state 3 seq 0<br>Block empty<br>Block scanning \
block 1024 state 3 seq 0<br>Block empty<br></div></div><div><div></div><div \
class="Wj3C7c"> yaffs_Scan ends<br><br>Block summary<br>
0 blocks have illegal states<br>Unknown 0 blocks<br>Needs scanning 0 \
blocks<br>Scanning 0 blocks<br>Empty 1024 blocks<br>Allocating 0 blocks<br>Full 0 \
blocks<br>Dirty 0 blocks<br>Checkpoint 0 blocks<br>Collecting 0 blocks<br>
Dead 0 blocks<br><br>yaffs: yaffs_GutsInitialise() done.<br><br>yaffs_read_super: \
guts initialised OK<br>yaffs unlocking<br>yaffs_get_inode for object \
1<br>yaffs_read_inode for 1<br>yaffs locking<br>yaffs_FillInode mode 41b6 uid 0 gid 0 \
size 512 count 1<br>
yaffs unlocking<br>yaffs_read_super: got root inode<br>yaffs_read_super: d_alloc_root \
done<br>yaffs_read_super: done<br># cd DFS<br># touch toto<br>yaffs \
locking<br>yaffs_lookup for 1:toto<br>yaffs unlocking<br>yaffs_lookup not found<br>
yaffs_create<br>yaffs_mknod: parent object 1 type 3<br>yaffs_mknod: making oject for \
toto, mode 81a4 dev 0<br>yaffs locking<br>yaffs_mknod: making file<br>yaffs: Tnodes \
added<br>Allocated block 1, seq 4097, 1023 left<br> </div></div>
Writing chunk 0 tags 270 0<br>yaffs unlocking<br>yaffs_get_inode for object \
270<br>yaffs_read_inode for 270<div class="Ih2E3d"><br>yaffs \
locking<br>yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1<br>yaffs \
unlocking<br> </div>yaffs_mknod created object 270 count = 1<br>
yaffs_file_flush object 270 (clean)<div class="Ih2E3d"><br>yaffs locking<br>yaffs \
unlocking<br># rm toto<br>yaffs_unlink 1:toto<br>yaffs locking<br></div>Obj 0 header \
mismatch objectId 270<br>Writing chunk 1 tags 270 0<div class="Ih2E3d"> <br>line 3727 \
delete of chunk 32<br> Writing chunk 0 tags 0 0<br>yaffs \
unlocking<br></div>yaffs_put_inode: ino 270, count 2<br>yaffs_put_inode: ino 270, \
count 1<br>yaffs_delete_inode: ino 270, count 0 object exists<div \
class="Ih2E3d"><br>yaffs locking<br>line 5069 delete of chunk 33<br>
Writing chunk 1 tags 0 0<br>yaffs unlocking<br></div>yaffs_clear_inode: ino 270, \
count 0 object exists<div class="Ih2E3d"><br>yaffs locking<br>yaffs unlocking<br># \
sync<br>yaffs_sync_fs<br>yaffs_sync_fs<br># touch toto<br> \
yaffs_create<br>yaffs_mknod: parent object 1 type 3<br>
yaffs_mknod: making oject for toto, mode 81a4 dev 0<br>yaffs locking<br>yaffs_mknod: \
making file<br></div>Writing chunk 2 tags 271 0<br>yaffs unlocking<br>yaffs_get_inode \
for object 271<br>yaffs_read_inode for 271<div class="Ih2E3d"> <br>yaffs locking<br>
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1<br>yaffs \
unlocking<br></div>yaffs_mknod created object 271 count = 1<br>yaffs_file_flush \
object 271 (clean)<div class="Ih2E3d"><br>yaffs locking<br>yaffs unlocking<br> # rm \
toto<br>yaffs_unlink 1:toto<br> yaffs locking<br></div>Obj 0 header mismatch objectId \
271<br>Writing chunk 3 tags 271 0<div class="Ih2E3d"><br>line 3727 delete of chunk \
34<br>Writing chunk 2 tags 0 0<br>yaffs unlocking<br></div>yaffs_put_inode: ino 271, \
count 2<br>
yaffs_put_inode: ino 271, count 1<br>
yaffs_delete_inode: ino 271, count 0 object exists<div class="Ih2E3d"><br>yaffs \
locking<br>line 5069 delete of chunk 35<br>Writing chunk 3 tags 0 0<br>yaffs \
unlocking<br></div>yaffs_clear_inode: ino 271, count 0 object exists<div \
class="Ih2E3d"> <br>yaffs locking<br>yaffs unlocking<br>
# sync<br>yaffs_sync_fs<br>yaffs_sync_fs<br></div># ls -ial<div \
class="Ih2E3d"><br>yaffs locking<br>yaffs_readdir: starting at 0<br>yaffs_readdir: \
entry . ino 1<br>yaffs_readdir: entry .. ino 1<br></div><div \
class="Ih2E3d">
yaffs_readdir: lost+found inode 2<br>yaffs unlocking<br>
yaffs locking<br></div><div class="Ih2E3d">yaffs_lookup for 1:lost+found<br>yaffs \
unlocking<br>yaffs_lookup found 2<br>yaffs_get_inode for object 2<br>yaffs_read_inode \
for 2<br>yaffs locking<br>yaffs_FillInode mode 41b6 uid 0 gid 0 size 512 count 1<br>
yaffs unlocking<br>yaffs_loookup dentry<br>yaffs locking<br></div>yaffs_readdir: \
starting at 3<br>yaffs unlocking<br> 1 \
drw-rw-rw- 1 root \
root 512 Dec 31 17:05 \
.<br> 315 drwxr-xr-x 4 \
root root \
1024 Aug 18 2008 ..<br>
2 drw-rw-rw- 1 \
root \
root 512 Dec 31 17:05 \
lost+found<br># cat /proc/yaffs<br>YAFFS built:May 20 2008 13:57:04<br>$Id: \
yaffs_fs.c,v 1.62 2007-08-16 20:42:11 imcd Exp $<br>$Id: yaffs_guts.c,v 1.51 \
2007-07-23 05:14:08 charles Exp $<br>
<br>Device 0 "AFS"<br>startBlock......... 0<br>endBlock........... \
2047<br>nDataBytesPerChunk. 512<br>chunkGroupBits..... 0<br>chunkGroupSize..... \
1<br>nErasedBlocks...... 2044<br>nReservedBlocks.... 5<br>nCheckptResBlocks.. 0<br>
blocksInCheckpoint. 0<br>nTnodesCreated..... 100<br>nFreeTnodes........ \
97<br>nObjectsCreated.... 100<br>nFreeObjects....... 93<br>nFreeChunks........ \
65469<br>nPageWrites........ 0<br>nPageReads......... 0<br>nBlockErasures..... 0<br>
nGCCopies.......... 0<br>garbageCollections. 0<br>passiveGCs......... \
0<br>nRetriedWrites..... 0<br>nShortOpCaches..... 10<br>nRetireBlocks...... \
0<br>eccFixed........... 0<br>eccUnfixed......... 0<br>tagsEccFixed....... 71<br>
tagsEccUnfixed..... 1<br>cacheHits.......... 0<br>nDeletedFiles...... \
0<br>nUnlinkedFiles..... 0<br>nBackgroudDeletions 0<br>useNANDECC......... \
1<br>isYaffs2........... 0<br><br>Device 1 "DFS"<br>startBlock......... \
0<br>
endBlock........... 1023<br>nDataBytesPerChunk. 512<br>chunkGroupBits..... \
0<br>chunkGroupSize..... 1<br>nErasedBlocks...... 1023<br>nReservedBlocks.... \
5<br>nCheckptResBlocks.. 0<br>blocksInCheckpoint. 0<br>nTnodesCreated..... 100<br>
nFreeTnodes........ 100<br>nObjectsCreated.... 100<br>nFreeObjects....... \
96<br>nFreeChunks........ 32768<br>nPageWrites........ 8<br>nPageReads......... \
3<br>nBlockErasures..... 0<br>nGCCopies.......... 0<br>garbageCollections. 0<br>
passiveGCs......... 0<br>nRetriedWrites..... 0<br>nShortOpCaches..... \
10<br>nRetireBlocks...... 0<br>eccFixed........... 0<br>eccUnfixed......... \
0<br>tagsEccFixed....... 0<br>tagsEccUnfixed..... 0<br>cacheHits.......... 0<br>
nDeletedFiles...... 0<br>nUnlinkedFiles..... 2<br>nBackgroudDeletions \
0<br>useNANDECC......... 1<br>isYaffs2........... 0<br># cd ..<br># umount \
DFS<br>yaffs_put_inode: ino 2, count 1<div><div></div><div \
class="Wj3C7c"><br>
yaffs_put_inode: ino 1, count 1<br>
yaffs_put_inode: ino 1, count 1<br>yaffs_sync_fs<br>yaffs_clear_inode: ino 1, count 0 \
object exists<br>yaffs locking<br>yaffs unlocking<br>yaffs_clear_inode: ino 2, count \
0 object exists<br>yaffs locking<br>yaffs unlocking<br>
yaffs_put_super<br>yaffs locking<br>save entry: isCheckpointed 0<br><br>Block \
summary<br>0 blocks have illegal states<br>Unknown 0 blocks<br>Needs scanning 0 \
blocks<br>Scanning 0 blocks<br>Empty 1023 blocks<br>Allocating 1 blocks<br>
Full 0 blocks<br>Dirty 0 blocks<br>Checkpoint 0 blocks<br>Collecting 0 blocks<br>Dead \
0 blocks<br><br>skipping checkpoint write<br>checkpoint byte count 0<br>save exit: \
isCheckpointed 0<br>yaffs unlocking<br># mount -t yaffs /dev/mtdblock3 DFS<br>
yaffs: dev is 32505859 name is "mtdblock3"<br>yaffs: passed flags \
""<br>yaffs_read_super: Using yaffs1<br>yaffs_read_super: block size \
4096<br>yaffs: Attempting MTD mount on 31.3, "mtdblock3"<br>
erase c01518bc<br> read c0151344<br> write c015168c<br> readoob \
c0151508<br> writeoob c0151744<br> block_isbad \
c0151ae4<br> block_markbad c0151b38<br> writesize 512<br> oobsize \
16<br> erasesize 16384<br> size 16777216<br>
yaffs locking<br>yaffs: yaffs_GutsInitialise()<br>yaffs_Scan starts intstartblk \
1 intendblk 1024...<br>Block scanning block 1 state 2 seq 68<br>Block scanning block \
2 state 3 seq 0<br>Block empty<br>Block scanning block 3 state 3 seq 0<br>
Block empty<br>Block scanning block 4 state 3 seq 0<br>Block empty<br>Block scanning \
block 5 state 3 seq 0<br>Block empty<br></div></div><br>[...]<br><br><div><div \
class="Wj3C7c">Block empty<br>Block scanning block 1020 state 3 seq 0<br> Block \
empty<br>Block scanning block 1021 state 3 seq 0<br> Block empty<br>Block scanning \
block 1022 state 3 seq 0<br>Block empty<br>Block scanning block 1023 state 3 seq \
0<br>Block empty<br>Block scanning block 1024 state 3 seq 0<br>Block empty<br>yaffs: \
Tnodes added<br>line 5660 delete of chunk 33<br>
Writing chunk 1 tags 0 0<br>line 5660 delete of chunk 35<br>Writing chunk 3 tags 0 \
0<br> Allocating from 1 4<br>yaffs_Scan ends<br><br>Block summary<br>0 blocks \
have illegal states<br>Unknown 0 blocks<br>Needs scanning 0 blocks<br>
Scanning 0 blocks<br>Empty 1023 blocks<br>Allocating 1 blocks<br>Full 0 \
blocks<br>Dirty 0 blocks<br>Checkpoint 0 blocks<br>Collecting 0 blocks<br>Dead 0 \
blocks<br><br>yaffs: yaffs_GutsInitialise() done.<br><br>yaffs_read_super: guts \
initialised OK<br>
yaffs unlocking<br>yaffs_get_inode for object 1<br>yaffs_read_inode for 1<br>yaffs \
locking<br>yaffs_FillInode mode 41b6 uid 0 gid 0 size 512 count 1<br>yaffs \
unlocking<br>yaffs_read_super: got root inode<br>yaffs_read_super: d_alloc_root \
done<br>
yaffs_read_super: done<br># cd DFS<br></div></div># ls -ial<div \
class="Ih2E3d"><br>yaffs locking<br>yaffs_readdir: starting at 0<br>yaffs_readdir: \
entry . ino 1<br>yaffs_readdir: entry .. ino 1<br></div>yaffs_readdir: toto inode \
271<br>
yaffs_readdir: toto inode 270<div class="Ih2E3d"><br>
yaffs_readdir: lost+found inode 2<br>yaffs unlocking<br>yaffs locking<br>yaffs_lookup \
for 1:toto<br>yaffs unlocking<br></div>yaffs_lookup found 271<br>yaffs_get_inode for \
object 271<br>yaffs_read_inode for 271<div class="Ih2E3d"> <br>yaffs locking<br>
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1<br>yaffs \
unlocking<br>yaffs_loookup dentry<br>yaffs locking<br>yaffs_lookup for \
1:lost+found<br>yaffs unlocking<br>yaffs_lookup found 2<br>yaffs_get_inode for object \
2<br>
yaffs_read_inode for 2<br>yaffs locking<br>yaffs_FillInode mode 41b6 uid 0 gid 0 size \
512 count 1<br>yaffs unlocking<br>yaffs_loookup dentry<br>yaffs \
locking<br>yaffs_readdir: starting at 5<br>yaffs \
unlocking<br></div> 1 drw-rw-rw- 1 \
root \
root 512 Dec 31 17:06 .<br>
315 drwxr-xr-x 4 root \
root 1024 Aug 18 2008 \
..<br> 2 drw-rw-rw- 1 \
root \
root 512 Dec 31 17:06 \
lost+found<br> 271 -rw-r--r-- 1 \
root \
root 0 Dec 31 17:05 \
toto<br> 271 -rw-r--r-- 1 \
root \
root 0 Dec 31 17:05 \
toto<br> # cat /proc/yaffs<br>YAFFS built:May 20 2008 13:57:04<br>$Id: yaffs_fs.c,v \
1.62 2007-08-16 20:42:11 imcd Exp $<br>$Id: yaffs_guts.c,v 1.51 2007-07-23 05:14:08 \
charles Exp $<br><br>Device 0 "AFS"<br>startBlock......... 0<br>
endBlock........... 2047<br>nDataBytesPerChunk. 512<br>chunkGroupBits..... \
0<br>chunkGroupSize..... 1<br>nErasedBlocks...... 2044<br>nReservedBlocks.... \
5<br>nCheckptResBlocks.. 0<br>blocksInCheckpoint. 0<br>nTnodesCreated..... 100<br>
nFreeTnodes........ 97<br>nObjectsCreated.... 100<br>nFreeObjects....... \
93<br>nFreeChunks........ 65469<br>nPageWrites........ 0<br>nPageReads......... \
0<br>nBlockErasures..... 0<br>nGCCopies.......... 0<br>garbageCollections. 0<br>
passiveGCs......... 0<br>nRetriedWrites..... 0<br>nShortOpCaches..... \
10<br>nRetireBlocks...... 0<br>eccFixed........... 0<br>eccUnfixed......... \
0<br>tagsEccFixed....... 71<br>tagsEccUnfixed..... 1<br>cacheHits.......... 0<br>
nDeletedFiles...... 0<br>nUnlinkedFiles..... 0<br>nBackgroudDeletions \
0<br>useNANDECC......... 1<br>isYaffs2........... 0<br><br>Device 1 \
"DFS"<br>startBlock......... 0<br>endBlock........... \
1023<br>nDataBytesPerChunk. 512<br>
chunkGroupBits..... 0<br>chunkGroupSize..... 1<br>nErasedBlocks...... \
1023<br>nReservedBlocks.... 5<br>nCheckptResBlocks.. 0<br>blocksInCheckpoint. \
0<br>nTnodesCreated..... 100<br>nFreeTnodes........ 98<br>nObjectsCreated.... 100<br>
nFreeObjects....... 94<br>nFreeChunks........ 32766<br>nPageWrites........ \
0<br>nPageReads......... 0<br>nBlockErasures..... 0<br>nGCCopies.......... \
0<br>garbageCollections. 0<br>passiveGCs......... 0<br>nRetriedWrites..... 0<br>
nShortOpCaches..... 10<br>nRetireBlocks...... 0<br>eccFixed........... \
0<br>eccUnfixed......... 0<br>tagsEccFixed....... 0<br>tagsEccUnfixed..... \
0<br>cacheHits.......... 0<br>nDeletedFiles...... 0<br>nUnlinkedFiles..... 0<br>
nBackgroudDeletions 0<br>useNANDECC......... 1<br>isYaffs2........... \
0<br>#<br><br>Cedric</div></div><br></div> </div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic