From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 06 Dec 2024 08:29:28 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f57.google.com (mail-wr1-f57.google.com [209.85.221.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4B67TScP001865 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 6 Dec 2024 08:29:28 +0100 Received: by mail-wr1-f57.google.com with SMTP id ffacd0b85a97d-385e03f54d0sf775675f8f.3 for ; Thu, 05 Dec 2024 23:29:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733470163; cv=pass; d=google.com; s=arc-20240605; b=YWeXIF4Pxogk/MjmZL3bwAQFRKIFzrqZW5yRdn4XYb8Pqo9sI/gSvgzjQRIn0tW/nO Ui6Cm1SpcWlWCcrqOrpEQHrBVQLtLrSFRafGjZNeLLqNCMHHVLuWEZ/dXuUBmBCJsspC KBXLaP7Q4wTCLhASRstV0VkonD9E2SU7p4o0kykxkEizkmcQhzHjGljKlraa7Egv/Xuc D1mdk9qOu+UFKCHYg3wZMMNMDCqmCYVY7dVpr4ugcGYnGwBLATdtD6LM7s/9W+tBy9fE V18ABjyDXcxjQ6gRWmxEgSvuL2GeksDn5JgPLn1B3AWotnZZSD73WGL75Sg9IJgALGMP LM9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:to :from:subject:message-id:sender:dkim-signature; bh=Pv+QrKGaJ+vhwwp35+LMc/3WSEaoX+3CqhH6T0epHd4=; fh=kB0blGtvi9ZEJloOE+e8yZFtBnKuYPTDv/57SAT2TFA=; b=Sg5LfvkRjX8jkjV72XALhmkO84dUaFcG5GcjJpfBXd6s1yUl70f4NvIP0FSBhcXM2L z2QlayDzZanssbg0v/26BENVTOJIGoOW661hK7LEh27H6uf9pC2jt93ujYCOALpL996J 6pfSj9Ulr3h1GoUjQ20yBDWMB9Um4Egn6BlKvXlRsINj/I0KBHzJrSL6XU8o3gV+F+84 3Zh3M17qjFHZ413VH9wdg3hzov+UNVqkO2ptRTTZvMLqFe/ABljR6dI74iHEwT78djyF 5goMkW+oXKfIKWECiLAwke+spSBYqnpPH/XoAHtEtZAmypAUtnqgVc8wg67j9rNkB9af +YKw==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1733470163; x=1734074963; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :autocrypt:references:in-reply-to:date:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Pv+QrKGaJ+vhwwp35+LMc/3WSEaoX+3CqhH6T0epHd4=; b=UsJ6ohtwWnTvyq3EIe7HsmqgVZsSTtj/MXlJCxgcUFWcq/EcP//DquRDDEUKB0aBWJ 4RZ178iImvPIlGYea1YTu1o7yiictkqPZSZ6OZumo7SAoYR0QLF/zYNiZQnykaHDXjRf OjrNqTwtRUpBxVTpr5e7GzcI8RvxrZVETJ2oytw8RCIlER6xsXZf+rK6MmfblXIsd2xW AN4zrZSUcv/hoBfZzk/1/5nI7ikoaCbCUK/MjHu1jw7c+3U5uU9L/LQXXX+LFgD0bQhB 8BUfbZg0QzaezOvNdBv0JKitG7j6SQo2O+V0GnUfILoZPlnwiSnK51htW/jAYvPWzipm Mn8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733470163; x=1734074963; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:to:from:subject:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Pv+QrKGaJ+vhwwp35+LMc/3WSEaoX+3CqhH6T0epHd4=; b=b6bg5vzyYAZvgfmi166j53VAb9pzvgg7Rf9TvTBEqdiSQrrYvEISZdIf3Zc+lSQBd3 eMwZWF7IPMYF2cut+07WdCASnRTOzQxo4hF+Ntp+NTLdXbqldexrGfXyI5godYLLoBNz qgUjoA9TrGPHbhOflwxrXihHjtV8MYT4/1fkUid2LcqRyAowzLSOJAAD4NTyu/5bj2UP eB1JJIZlxoP3VzTqHQntDv+CSBy2x+WsP8P6aIzNE371gieiUAqJqWxJwxU2io08xHPo CYCsuw2fAA37mxZv7sJahzRr1r3luEC4YXb+UtN4fFPf3+vcUh+KiD0Ai+P30iEckb7q 5Jeg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCU55+SMnZ/RXZhg3sfif7EMBg762gsUDGNBBL3gi7C0+hvYI9ZX/cXD3s99GxSBH6bvPoBJ@ilbers.de X-Gm-Message-State: AOJu0YxGSXDfOSpRLcJQUFbNTBfeZE5bRXUe4OE4UWA1IEvib+25E3Xc RtQDhzjtoG30U+/T13wytQwRG9aQTNAqQISFe1wX/wPKsh/yTn/O X-Google-Smtp-Source: AGHT+IGcseGUnQh5joXgy5rqc2IOvus/JpPvFHEdoTa9TQMLDHs8fE41479WGui6sgqqYNPnkXz24w== X-Received: by 2002:a05:6000:2b08:b0:385:ed16:c8b with SMTP id ffacd0b85a97d-3862b36b882mr730242f8f.23.1733470162353; Thu, 05 Dec 2024 23:29:22 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:414d:0:b0:385:e974:fd5 with SMTP id ffacd0b85a97d-3861b9b282bls648009f8f.0.-pod-prod-01-eu; Thu, 05 Dec 2024 23:29:20 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWJYYht33HWnwQBRN8SqI4/xbcllthprF6p+NzRSfkhFFTc/DLXYmg+wf+KXRro7uvTB9pBEy4RcfOM@googlegroups.com X-Received: by 2002:a05:6000:18a7:b0:385:f060:b7fc with SMTP id ffacd0b85a97d-3862b377c77mr1550157f8f.25.1733470159867; Thu, 05 Dec 2024 23:29:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733470159; cv=none; d=google.com; s=arc-20240605; b=WOVYaGQ4oZJPMJAL8NhZmos8EkejCD4xJypbAGMVuqQkMxCQ5yv6iJIqFjIPSZgxVn EOumEaiW4Dobpveckiq3xGMUElF/Edr8gR5bMUuD6xXirSf8qOoMXAf4XVC3FUeBM69O gEdb+Vbpq9Xr7kJh5fpujfwoygq9IgTCWC8R9FxBc1yY6KWlFGBku32KMgvSt3bx5Au6 9X89mtw9PDs0NeMPXeTFYthqF3Ryzo7RGuNPVxWuDBbvF/BQwaujP8m46+5r0YkEqw8j uavnDYYD2CvfXJmNTjJVJo+I5+YoM5aMDVqg0ii1GLlE397ZXvYdXdggox2wOJ5nd2Mg lGpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:to:from:subject:message-id; bh=17jY3N/DU97RLbkGDC7CO24oJtVE02sH4UPGvbxAfJk=; fh=e/d5o/z7U5+odM6x+PgeL9fcbEqBYKpoSsnj0jtl7Rs=; b=aQGWDQotxPKdUStahRTjp8xmSuJP/63wCKtJnEdSC7CPaD9rYbdZ2S8F9aN18HgTQM eluc/QBSIYscamPQj9oz6O3J/aNB0q7NVMu96yC8Bs2QGn5dLzGezFDeO0siWTJsDKMv wQObQscMyMV+vLO802LIrl/kKhVPpjtneu/VH1Jn4ALfQQjRzkASwUa86jS04GXzVoF5 ii4RKJcOcz363LpTmeWJyv2JUpjGp6aSEpE7G79dubLa1au+wrEfGBNofiShdNP/HDb8 C1FjEaFHuknHC/Wm9vv2dG1ygnBoVP+zGEQIrdGOJVfOZTBKaLWrOjppoeBbqdx28OmR N2kg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-386219096f0si61662f8f.3.2024.12.05.23.29.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Dec 2024 23:29:19 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [IPv6:::1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4B67THqS001858 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Dec 2024 08:29:18 +0100 Message-ID: Subject: Re: [PATCH v1 0/1] Use oe.utils.directory_size() instead of du for calculating rootfs size From: Uladzimir Bely To: Adithya Balakumar , isar-users@googlegroups.com Date: Fri, 06 Dec 2024 10:29:17 +0300 In-Reply-To: <20241129062827.527177-1-Adithya.Balakumar@toshiba-tsip.com> References: <20241129062827.527177-1-Adithya.Balakumar@toshiba-tsip.com> Autocrypt: addr=ubely@ilbers.de; prefer-encrypt=mutual; keydata=mQENBGO2eUkBCACtT+T3OrPVSExBmqfgXT3lp9XcdxRzjYp26wezkgYjjBXaf36bxtaAf S471VoQtpar0RVeFfW7WDDdfX9ZclSj36zBQe+RVSJzoNoNQfjOXWuSHb5Z+cpAFtqBY4muxK4+ia IlLJd6CN3ejOsLHATtCeHHq8wi0z2T+KdLQO+wQRgo2hjj0Lp9pGTrKJry50HP/o7Vbdu14dOx2xq r8+wPc6SQbBIrcqaa4MqCQC00vQG7eXvo+k2MOw59FDdpMH0KR9mHgp3u/s4I+4YRBArukt9G9xz/ rsEFmxAIBC6N/a6Hzwg4puc91n7ABDsPg8Vp+X3MDraujN0dvR6OKVNtABEBAAG0IFVsYWR6aW1pc iBCZWx5IDx1YmVseUBpbGJlcnMuZGU+iQFOBBMBCAA4FiEEJqPNVhVGyk12Eh+PAUQYBM/2FkoFAm O2eUkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQAUQYBM/2FkprlAgAmuna8Hm9EyoEtTl DBGDg6Zm4ZLp5ffvZBE946h92jepDrteoxsJ7pSzJVC2HmDLa4iZUao7lLLbDsUj5x45/iLJcqBZK k3YnAxP2r6a+kI+1VVQY1pxdG1nlJAbdNzoojm/qmezNPSrqni61KVMQKsXBCWhIjSXDSM9CsBj21 a+9qaVqfxovJGTn9lgrZO+xzKQNMKZeOouJlscVuFj21P0ww3/YENiU/nMeTSuYypO76mDtAd08Jo nc3yuHa9MJGei5ixN3wT+IrGR2aL2hdw2M6NgH7sYbL2Zi4ugD6RXHJai1Bh2yvFSVqSQ+M6QOInT 4ud7wslm1XRB065dXtA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.1 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: Z8/0Z7nH40DL On Fri, 2024-11-29 at 11:58 +0530, Adithya Balakumar wrote: > Currently the "du" command is used to calculate the rootfs size, and > sometimes the > reported size of the rootfs by du varies across multiple builds > (usually by a few kb). > But the rootfs contents are reproducible. >=20 > Although this does not affect any functionality, but it does affect > reproducibility > of artifacts that rely on the calculated rootfs size. >=20 > There are 2 scenarios (that I noticed) where this is affects > reproducibility: > 1. In the case where no size parameter is set for a rootfs partition > in the wks file, > =C2=A0=C2=A0 wic uses the calculated rootfs size. > 2. ext4 filesystem images with the IMAGE_CMD of isar, relies on > rootfs size to create image. >=20 > Some of the files/directories in the rootfs has different number of > blocks allocated. > The files/directories affected are not always the same across builds. >=20 > Using the "du" command to measure the size of the rootfs directory in > such a case, yields > different values for the ROOTFS_SIZE. >=20 > This patch introduces the use of an alternate function from oe.utils > to calculate the > directory size. OE-Core uses the same function to calculate the > directory size (See [1]) >=20 > Based on multiple build runs, usage of this function seems to give > consistent size results. >=20 > Some details on the issue is mentioned in the below thread in the > ISAR mailing list (See [2]) >=20 > [1] > https://github.com/openembedded/openembedded-core/commit/d8f1f3a6b024a2ae= 6631d1ce25421e8d94b69a12 > [2] > https://groups.google.com/g/isar-users/c/Ll7t4G41Lfo/m/gvxR4hYBAwAJ >=20 > Adithya Balakumar (1): > =C2=A0 image.bbclass: use oe.utils.directory_size() instead of du >=20 > =C2=A0meta/classes/image.bbclass | 7 ++----- > =C2=A01 file changed, 2 insertions(+), 5 deletions(-) >=20 > --=20 > 2.39.5 >=20 >=20 Applied to next, thanks. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= ea58395cb344d6f16d968e273d1707b20f868e2a.camel%40ilbers.de.