[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] Questions about file sizes
From:       Tim Riker <Tim () Rikers ! org>
Date:       2002-09-30 17:34:03
[Download RAW message or body]

Actually hardlinks take up less space. If your listing was from a cramfs
partition then remember that cramfs does not report hardlinks. It does
use them, but it does not record that information in the inodes. So if
this is from a cramfs partition, you are probably ok. Check the source
directory that mkcramfs was run against to be sure they were hard links
there.

If you are not on cramfs, the link indicator should be large and not "1"
as shown below.

Note: mkfs.jffs2 (and likely mkfs.jffs) does NOT preserve hardlinks. If
you are deploying to jffs2 using mkfs.jffs2 then you should use symlinks
or create the hardlinks with some other method. Of course the Right
Thing would be to fix mkfs.jffs2 ;-)

Uwe Beutin wrote:
> 
> Hi,
> 
> I am just wondering about the sizes of the applications that busybox is
> creating. Looking in the /bin directory of my romfs, I can see that
> every application has a size of 114512 bytes. How can this be explained?
> 
> # ls -l /bin
> -rwxr-xr-x  1 0        0           18536  Jan 01 1970  agetty
> -rwxr-xr-x  1 0        0           31620  Jan 01 1970  arp
> -rwxr-xr-x  1 0        0           49440  Jan 01 1970  av_main
> -rwxr-xr-x  1 0        0           71664  Jan 01 1970  boa
> -rwxr-xr-x  1 0        0           11400  Jan 01 1970  boa_indexer
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  busybox
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  cat
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  clear
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  cp
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  date
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  dd
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  df
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  dmesg
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  du
> -rwxr-xr-x  1 0        0          114512  Jan 01 1970  echo
> [...]
-- 
Tim Riker - http://rikers.org/ - TimR@Debian.org
Lineo CTO - Tim@Lineo.com - http://www.Lineo.com/
BZFlag maintainer - http://BZFlag.org/ - for fun!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic