[Yaffs] linux-2.6.13-rc6 and cvs yaffs

Manav Gautam bandwidthcrunch at gmail.com
Thu Sep 1 09:18:29 BST 2005


I have tried the steps again this time 

[root at Sarva 2.6.13]/root/mount.sh
[root at Sarva 2.6.13]#df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 31488 25340 6148 80% /
/dev/mtdblock3 2032 96 1936 5% /mnt/flash
[root at Sarva 2.6.13]#cat /proc/partitions
major minor #blocks name

31 0 256 mtdblock0
31 1 1024 mtdblock1
31 2 31488 mtdblock2
31 3 2048 mtdblock3
31 4 4096 mtdblock4
[root at Sarva 2.6.13]#cat /proc/yaffs
YAFFS built:Sep 1 2005 07:58:06
$Id: yaffs_fs.c,v 1.5 2005/04/29 07:01:18 charles Exp $
$Id: yaffs_guts.c,v 1.6 2005/04/24 09:57:06 charles Exp $

Device yaffs
startBlock......... 1
endBlock........... 127
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 127
nTnodesCreated..... 0
nFreeTnodes........ 0
nObjectsCreated.... 100
nFreeObjects....... 96
nFreeChunks........ 4064
nPageWrites........ 0
nPageReads......... 0
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 0
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
[root at Sarva 2.6.13]#ls -la > /mnt/flash/xxx
[root at Sarva 2.6.13]#cat /proc/yaffs
YAFFS built:Sep 1 2005 07:58:06
$Id: yaffs_fs.c,v 1.5 2005/04/29 07:01:18 charles Exp $
$Id: yaffs_guts.c,v 1.6 2005/04/24 09:57:06 charles Exp $

Device yaffs
startBlock......... 1
endBlock........... 127
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 126
nTnodesCreated..... 100
nFreeTnodes........ 99
nObjectsCreated.... 100
nFreeObjects....... 95
nFreeChunks........ 4061
nPageWrites........ 5
nPageReads......... 5
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 4
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 1
isYaffs2........... 0
[root at Sarva 2.6.13]#df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 31488 25340 6148 80% /
/dev/mtdblock3 2032 100 1932 5% /mnt/flash

dmesg after all this 
yaffs locking
yaffs unlocking
yaffs_create
yaffs_mknod: parent object 1 type 3
yaffs_mknod: making oject for xxx, mode 81a4 dev 0
yaffs locking
yaffs_mknod: making file
yaffs: Tnodes added
Allocated block 1, seq 4097, 126 left
Writing chunk 32 tags 263 0
yaffs_get_inode for object 263
yaffs_read_inode for 263
yaffs_FillInode mode 81a4 uid 0 gid 0 size 0 count 1
yaffs_mknod created object 263 count = 1
yaffs unlocking
yaffs_file_flush object 263 (clean)
yaffs locking
yaffs unlocking
yaffs_prepair_write
yaffs_readpage at 00000000, size 00001000
yaffs locking
Chunk -1 not found zero instead
Chunk -1 not found zero instead
Chunk -1 not found zero instead
Chunk -1 not found zero instead
Chunk -1 not found zero instead
Chunk -1 not found zero instead
Chunk -1 not found zero instead
Chunk -1 not found zero instead
yaffs unlocking
yaffs_readpage done
yaffs_commit_write addr c0802000 pos 0 nBytes 970
yaffs locking
yaffs_file_write about to write writing 970 bytes to object 263 at 0
Writing chunk 33 tags 263 1
Chunk -1 not found zero instead
yaffs_file_write writing 970 bytes, 970 written at 0
yaffs_file_write size updated to 970 bytes, 2 blocks
yaffs unlocking
yaffs_commit_write returning 970
yaffs_file_flush object 263 (dirty)
yaffs locking
Writing chunk 34 tags 263 2
Writing chunk 35 tags 263 0
line 2990 delete of chunk 32
Writing chunk 32 tags 0 0
yaffs unlocking
yaffs_statfs
yaffs locking
yaffs unlocking

[root at Sarva 2.6.13]#umount /mnt/flash
[root at Sarva 2.6.13] cat /proc/yaffs
yaffs locking
yaffs unlocking
yaffs_put_inode: ino 263, count 1
yaffs_put_inode: ino 1, count 1
yaffs_clear_inode: ino 1, count 0 object exists
yaffs locking
yaffs unlocking
yaffs_clear_inode: ino 263, count 0 object exists
yaffs locking
yaffs unlocking
yaffs locking
yaffs unlocking

[root at Sarva 2.6.13]#ls -la /mnt/flash/
ls: /mnt/flash/ y
drw-rw-rw- 1 root root 512 Jan 1 00:24 .
drwxr-xr-x 6 root root 0 Jan 1 00:13 ..
drw-rw-rw- 1 root root 512 Jan 1 00:24 lost+found
****** doesnt show me the xxx file but 
[root at Sarva 2.6.13]#ls -la /mnt/flash/xxx
-rw-r--r-- 1 root root 1032 Jan 1 00:24 /mnt/flash/xxx

[root at Sarva 2.6.13]#cat /mnt/flash/xxx
drwxr-xr-x 2 root root 0 Jan 1 00:19 .
drwxr-xr-x 10 root root 0 Jan 1 00:04 ..
-rw-r--r-- 1 root root 1980 Jan 1 00:18 1.txt
-rw-r--r-- 1 root root 3960 Jan 1 00:05 dump.log
-rwxr-xr-x 1 root root 15372 Jul 4 2005 eraseall
-rw-r--r-- 1 root root 60715 Aug 31 2005 esl_sarva.ko
-rwxr-xr-x 1 root root 24173 Aug 28 2005 flash_eraseall
-rw-r--r-- 1 root root 6 Jan 1 00:19 hello
-rw-r--r-- 1 root root 60031 Aug 24 2005 manav.ko
-rw-r--r-- 1 root root 60377 Aug 31 2005 manavd.ko
-rwxr-xr-x 1 root root 13847 Jan 1 00:15 mkyaffs
-rw-r--r-- 1 root root 3960 Jan 1 00:13 nalog.log
-rwxr-xr-x 1 root root 20401 Aug 29 2005 nanddump
-rwxr-xr-x 1 root root 25174 Aug 29 2005 nandwrite
-rw-r--r-- 1 root root 59888 Aug 24 2005 spia.ko
-rw-r--r-- 1 root root 843 Jan 1 00:14 test.log

The data gets lost again after umount
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aleph1.co.uk/pipermail/yaffs/attachments/20050901/376f5ed2/attachment.htm


More information about the yaffs mailing list