[OE-core] [RFC PATCH 0/2] Fully support ext3/ext4 rootfs generation

Robert Yang liezhi.yang at windriver.com
Tue Mar 5 08:24:05 UTC 2013



On 03/04/2013 10:10 PM, Richard Purdie wrote:
> On Mon, 2013-03-04 at 21:42 +0800, Robert Yang wrote:
>>
>> On 03/04/2013 02:21 AM, Darren Hart wrote:
>>>
>>>
>>> On 03/03/2013 09:15 AM, Darren Hart wrote:
>
>> Yes, we do have hard links in the rootfs, e.g: core-image-sato and
>> core-image-sato-sdk:
>>
>> # The sato
>> $ find core-image-sato/1.0-r0/rootfs/ -type f -printf "%p %i %n\n" | grep -v '1$'
>> core-image-sato/1.0-r0/rootfs/etc/terminfo/v/vt200 26977609 2
>> core-image-sato/1.0-r0/rootfs/etc/terminfo/v/vt220 26977609 2
>> core-image-sato/1.0-r0/rootfs/usr/bin/arm-poky-linux-gnueabi-ld.bfd 26978690 2
>> core-image-sato/1.0-r0/rootfs/usr/bin/arm-poky-linux-gnueabi-ld 26978690 2
>
> What if the count was 11? or 21? I'm just mentioning we need to improve
> that command!
>
>> # The sato-sdk:
>> $ find core-image-sato-sdk/1.0-r0/rootfs/ -type f -printf "%p %i %n\n" | grep -v
>> '1$'
>> core-image-sato-sdk/1.0-r0/rootfs/etc/terminfo/v/vt200 26903519 2
>> core-image-sato-sdk/1.0-r0/rootfs/etc/terminfo/v/vt220 26903519 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/include/et/com_err.h 28058656 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/include/com_err.h 28058656 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/arm-poky-linux-gnueabi-ld.bfd 26900939 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/perlbug 26899680 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/gawk-4.0.1 26900368 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/psed 26899667 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/s2p 26899667 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/c2ph 26899695 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/perlthanks 26899680 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/pstruct 26899695 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/arm-poky-linux-gnueabi-ld 26900939 2
>> core-image-sato-sdk/1.0-r0/rootfs/usr/bin/gawk 26900368 2
>
> I'm slightly surprised there aren't more hardlinks for gcc in here. A
> meta-toolchain-sdk tarball will probably have a load of hardlinks in too
> if you want something to test with (we don't usually make extX images
> for the toolchain though).
>

The hardlinks result from the meta-toolchain-sdk is similar:

$ find sdk/image/opt/poky/1.3+snapshot/sysroots/ -type f -printf "%p %i %n\n" | 
grep -v ' 1$'
sdk/image/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/etc/terminfo/v/vt200 
27337495 2
sdk/image/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/etc/terminfo/v/vt220 
27337495 2
sdk/image/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/include/et/com_err.h 
27468703 2
sdk/image/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/include/com_err.h 
27468703 2
sdk/image/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/bin/gawk-4.0.1 
27297079 2
sdk/image/opt/poky/1.3+snapshot/sysroots/armv5te-poky-linux-gnueabi/usr/bin/gawk 
27297079 2
sdk/image/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/etc/terminfo/v/vt200 
27469810 2
sdk/image/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/etc/terminfo/v/vt220 
27469810 2
sdk/image/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd 
27484702 2
sdk/image/opt/poky/1.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld 
27484702 2

I wonder what's next step please, can we ignore the sparse files at the moment,
and then I will send an patch for review with the hardlink fixes.

// Robert

> Cheers,
>
> Richard
>
>
>




More information about the Openembedded-core mailing list