[poky] [PATCH 0/2] Preserve hard links

Richard Purdie richard.purdie at linuxfoundation.org
Wed Feb 9 04:20:09 PST 2011


On Tue, 2011-02-08 at 23:51 -0600, Mark Hatle wrote:
> While working on another part of the system, I noticed that Poky didn't appear
> to be preserving any hard links in the system.  This change not only
> preserves hardlinks during packaging, but also shrinks the overall
> disk space required for a build.  In my poky-image-minimal my required
> footprint shank by 200+ MB.
> 
> The second part of this patch I took a guess as to the right components to
> modify.  It has passed the testing I've performed so far, but I'm not
> 100% sure that it's correct.  I believe a bit of additional review may be
> necessary.
> 
> Pull URL: git://git.pokylinux.org/poky-contrib.git
>   Branch: mhatle/hardlink
>   Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/hardlink

This looks good, my main worry is the copytree() function in
meta/lib/oe/path.py as I suspect that will still smash things for
sstate.

I'm seriously considering making that function an os.system call to tar
as I suspect performance would improve substantially. I need some
numbers to back up that idea first though.

I'm probably going to hold off on these patches for 24 hours as there is
risk in them, I'd like to fix the above issue too and at the moment I
want to see us have a "successful" build and stabilise a bit after the
fetcher churn.

Cheers,

Richard





More information about the poky mailing list