summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2021-03-23 16:37:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-28 22:28:26 +0100
commit3743234dab23e4068e1d1fde9e1fa0bc09fdb182 (patch)
tree895588b21ba8104ee57b126cd27d15631d08e601 /meta/classes/image.bbclass
parente9929301d408962061ed6a94730a600fba1274d7 (diff)
downloadpoky-3743234dab23e4068e1d1fde9e1fa0bc09fdb182.tar.gz
lib/oe/utils: add directory size function
For the purpose of image construction using du on a rootfs directory isn't entirely satisfactory. Bare "du" will report the actual disk usage so file systems which can compress the data will report less than the actual space required. Using "du --apparent-size" will report the actual space used, but as this simply sums the bytes used for content across an entire file system can result in significant under-reporting due to block size overhead. Attempt to solve these problems by implementing our own function to calculate how large a rootfs will be. This function handles hardlinks correctly but rounds up all sizes to multiples of the block size (currently, 4KB is the hard-coded block size). (From OE-Core rev: 6ca53ad7b26ee2b4e6d2c121c6f6d6eed7f6b56f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
0 files changed, 0 insertions, 0 deletions