[Yaffs-archive] RE: yaffs taking more space

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: Skumar, yaffs
Subject: [Yaffs-archive] RE: yaffs taking more space
I think the problem might be because you are using cp -R instead of cp
-dR.

The /lib directory likely contains both files and links (hard or soft).
[I'm on a Windows PC right now so I can't check :-(]. If you just use cp
-R then you will possibly be duplicating the files.

Eg if in the source you have:
File a (say 100kB)
A link to a called b (only takes a few bytes)

Then doing cp -R will give you:

File a (100kB)
File b (100kB)


I suggest you do an ls -ial to check the status of both directories to
check whether this happened.

-- Charles


-----Original Message-----
From: Skumar [mailto:skumar@mistralsoftware.com]
Sent: Sunday, 28 March 2004 11:25 p.m.
To: yaffs
Subject: yaffs taking more space


Hi,
i am copying files & the size of files on yaffs on more.
here r the logs
i have copied /lib to yaffs
size of /lib on ext2 is 2.1M but on yaffs it is 4.3M

i am not able to understand what is happening?

Regards
Sharath


Linux login: root
[root@Linux /root]$df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 7931      5278      2244  70% /
/dev/mtdblock1           11248        96     11152   1% /mnt/NAND
[root@Linux /root]$cd /lib
[root@Linux /lib]$du -h
2.1M    .
[root@Linux /lib]$df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/ram0                 7.7M      5.2M      2.2M  70% /
/dev/mtdblock1           11.0M     96.0k     10.9M   1% /mnt/NAND
[root@Linux /lib]$cp -R /lib /mnt/NAND/
[root@Linux /lib]$cd /mnt/NAND/
[root@Linux NAND]$du -h
4.3M    ./lib
0       ./lost+found
4.3M    .
[root@Linux NAND]$cd lib
[root@Linux lib]$du -h
4.3M    .
$df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/ram0                 7.7M      5.2M      2.2M  70% /
/dev/mtdblock1           11.0M      4.4M      6.5M  40% /mnt/NAND
[root@Linux lib]$cat /proc/yaffs
YAFFS built:Mar 28 2004 15:29:50
$Id: yaffs_fs.c,v 1.32 2003/10/29 20:42:34 charles Exp $
$Id: yaffs_guts.c,v 1.33 2003/11/16 07:40:42 charles Exp $


Device yaffs
startBlock......... 1
endBlock........... 703
chunkGroupBits..... 0
chunkGroupSize..... 1
nErasedBlocks...... 423
nTnodesCreated..... 700
nFreeTnodes........ 28
nObjectsCreated.... 100
nFreeObjects....... 62
nFreeChunks........ 13597
nPageWrites........ 0
nPageReads......... 70
nBlockErasures..... 0
nGCCopies.......... 0
garbageCollections. 0
passiveGCs......... 0
nRetriedWrites..... 0
nRetireBlocks...... 0
eccFixed........... 0
eccUnfixed......... 0
tagsEccFixed....... 0
tagsEccUnfixed..... 424
cacheHits.......... 0
nDeletedFiles...... 0
nUnlinkedFiles..... 0
nBackgroudDeletions 0
useNANDECC......... 0


------------------------------------------------------------------------
---------------
This mailing list is hosted by Toby Churchill open software
(www.toby-churchill.org). If mailing list membership is no longer wanted
you can remove yourself from the list by
sending an email to with the text
"unsubscribe"
(without the quotes) as the subject.


---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to with the text "unsubscribe"
(without the quotes) as the subject.