Re: [uClinux-dev] RE: [BusyBox] Questions about file sizes

From: David McCullough (davidm@snapgear.com)
Date: Tue Oct 01 2002 - 20:28:22 EDT


Jivin Uwe Beutin lays it down ...
> On Tue, 1 Oct 2002, David McCullough wrote:
> 
> > > I am using the the uClinux-dist, could you give me a clue of where I can
> > > change the behaviour to use soft-links instead of hard-links?! I can
> > > find references to hard-links in the Makefile but don't know where I can 
> > > change this.
> > 
> > Look in:
> > 
> > 	user/busybox/install-romfs.sh
> 
> Ah, thanks, found it :)
> 
> > You will see where is uses symlinks for JFFS,  just make it always do that,
> > or better still,  work out why you cannot use hardlinks and modify the
> > script to detect that situation and send us a patch ;-)
> 
> Um... I just though that this takes up too much space on the fs. What is 
> the advantage of hardlinks against soft links in this case?!

Hardlinks should take slightly less space than symlinks as hardlinks point
directly at the inode while symlinks store the name of the target file,
taking a few bytes extra ;-)

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm@snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Tue Oct 01 2002 - 22:02:06 EDT