[Toaster] quick question about installed packages information

Paul Eggleton paul.eggleton at intel.com
Fri Mar 14 03:34:51 PDT 2014


On Friday 14 March 2014 10:03:48 Barros Pena, Belen wrote:
> On 13/03/2014 18:58, "Lerner, Dave" <dave.lerner at windriver.com> wrote:
> >By the way, I spent several minutes confirming that at least for my
> >qemux86 core-image-minimal build
> >	package.installed_size is always modulo 1024 but package.size is not!
> 
> I am not sure I understand this. What do you think is causing it?
> 
> What I have seen is that there is a slight difference between size and
> installed_size for most packages, so I ran it by Paul and Alex. From what
> I understood, installed_size is different because is taking into account
> the extra size on disk that the files take, but in the build host, so this
> might have no relationship to such size in the target hardware where the
> image will be deployed. (Paul, Alex: feel free to clarify if I didn't get
> this properly).

Mostly got it - the installed_size is the disk block usage, which is currently 
based on the host disk's block size. This may not be the same as the block 
size on the target and thus isn't very useful (but we might not have the 
information to determine that in any case).
 
> The consequence of this is that we should not be using installed_size at
> all: we should be using size in all pages.

Right, that's the way I think we should deal with this for now.

Cheers,
Paul
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the toaster mailing list