diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2020-09-01 15:29:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-10 19:07:40 +0100 |
commit | dfd88e61b2495dec2dda4f6678c0510f5f91682c (patch) | |
tree | 0ca3891dd99f9354991161f545146d267fd26541 /meta/recipes-bsp/lrzsz | |
parent | 936d5e0aa53b8b265eca75dd5f257803166bbf49 (diff) | |
download | poky-dfd88e61b2495dec2dda4f6678c0510f5f91682c.tar.gz |
devtool: deploy-target: Fix size calculation for hard links
If a package contains hard links to a file, the file size is added for
each hard link instead of once for the file. Therefore, the calculated
size may be much larger than the actual package size.
For example, the mesa-megadriver package contains several hard links to
the same library.
Keep track of the inode numbers when listing the files that are
installed and use the actual size only for the first occurrence of an
inode. All further hard links to the same inode are added to the file
list, but accounted with size 0.
All file names need to be added to the file list, because the list is
used for preserving the files/hard links on the target.
(From OE-Core rev: 85b1e835572d184cfff86a87fced8673d1d40a7c)
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 17e92572278980d1a7f06de9d72c68baf57698f1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/lrzsz')
0 files changed, 0 insertions, 0 deletions