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, 29 Nov 2024 07:22:41 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-pf1-f188.google.com (mail-pf1-f188.google.com [209.85.210.188]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AT6Mdfd023352 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 29 Nov 2024 07:22:40 +0100 Received: by mail-pf1-f188.google.com with SMTP id d2e1a72fcca58-72501c1609dsf1722733b3a.2 for ; Thu, 28 Nov 2024 22:22:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1732861353; cv=pass; d=google.com; s=arc-20240605; b=AIfVg0FkXPN4MpjaIjCQ++p9RTM7Uwl7e2GdayFOdlW5bIRCtmHIVWy4AjwIkSxDNq nJZ1FtBRuOyPo5MgbOnbTx4gGjagj7yNUMkExZit7U+8In+5Aln7CGSswir64eQGi5rH sN9tK8M7dUZ3E7EY8xd4O9XohVo8g7Me1s4lH+ZeDeHI92q4bLgRjWoUJm2a/qKcXndr VmowNwg+ogKlWXFG8UqefESwW/py3mWBtRd9H4OBcjux1cYRtZiN2cZQW/gFsSo/l9eA o/VtjmVRbc3L7Gw6mPw2eqVajoMQeiKy3p751uXDBs2G5pQXku0M+VTyU3GuK2c1hLMa nuBQ== 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=ukzSsra7W5kH1E/HCVs+IcRaP8B7ZrkCU3SLMVYuBJg=; fh=TzEz5f8iK2FedFZvf7Jk7ab2m5ACIhdeETtN1Lw6SCY=; b=UNQviKI7H86kyvJsiD728txDZnwyLpRH+wJWRDuoKtbBwuG0Bw3WIqzhkSpzltzvuP ZHx0FX09nznGnFdI0w432GGR2UAIfdH0zDCCHjLgB6z/xXp50wmosvMIMTRGVC3djwlw XZIaonx1YYVwWX579X/fkO+m89yrzGAFwLTsR8ittFj/LtPnR1MaWT//4iwKF2T1Zz+P poCPJHu1U91OpXIh1RwaFWHZOuspb28qn5IXbEs1B0FEky03mswKhyHyu8yh3GKv+yvG lVq4Bbwm0Rth2lZSuFj5T4uDs3N36F9aWY4TgGBnHuamPLX3WDrOnqakzB9R1q+FmGka lVaA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.135 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1732861353; x=1733466153; 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:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=ukzSsra7W5kH1E/HCVs+IcRaP8B7ZrkCU3SLMVYuBJg=; b=HIVFPEawg46i7JEEWZr+TKyBG5VEaEkYVH5UIGF4F+NAFa3tyFw5KWrFNdMRCGZyWn M0XYi2FoAXlC63I+Pq9pNSrDTLWSBv2OVcBL3csXFgjI+QFOs1bnNkm8IefAmFDGK/Tb zpfO63IE/pHAY/RGho9Ws/S6ZvEAVar/jjUjI2Nr+zAAVhy9kT50PJPql6Ha7/9qYERe MAmln8k6F4BV2Y5T4UwmRt4j0eFkhthE7cNKyyVHXvc2/kWCNJLw7OYRYS+yiI/Arqnx 0tdahHd1zeiOWBoYNi1KWbBEKUZyfopDJDuqYZjEXDfHzfLlwQGt1bpsJV7zVRrxN1EJ 2Qrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732861353; x=1733466153; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=ukzSsra7W5kH1E/HCVs+IcRaP8B7ZrkCU3SLMVYuBJg=; b=PJycBYiNB+HSbxfmaMdrx+LX8e3CfFTlKE/FZXWrHKtQZE4EAyaNJQFmzUvWbyh3Jv wST2Bcmdpuw1zSGEzW/0btDy28etCwRO3zW2DCXlz/VtuY8tbVDss3uYJ7CepAIhIYOP A9H+WoLpbEt5bH1PjmG5e0ElPY/T04DS5SkdIYX2bgaU48Myw+dEnSkPbWa7iCzqlvLG Yc02hzJq57KMLMBAsvK9CvxOBvPjH//GfmuFRQ19ByPDrRIfp2CWzQ/Nl5EfNPWK3cNU y4Nk8Z3Ar4oIC0Xa/epYY5edGP4y2iMAO8gcjrhUjO4jpCpawhY+JEXpCo8mw4xl6Y9C VrGA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWQZLBlI7w84wwCOg90bRi5aXqvO1B2asVtdKYOLvhjfxnVw9wgQ2TJVavOQqO10Jbnhy7l@ilbers.de X-Gm-Message-State: AOJu0Yz7pNzT98LXbxzEiFzBVIEG55sfrCbgarK2JxuJPdfoXXyqEgW8 HE8cG7m6EUnhr2ufvi2EDyTZu1Wv1lhN0l7YgDTBLIRJ3lDLeUKn X-Google-Smtp-Source: AGHT+IF2jtJrcqYAPCYv8j+KA+HGxVi31S8mQGkq1hJo61GPHR5zb6BaZqe3ImRL6dFcTDFHt70Qfg== X-Received: by 2002:a17:90b:3805:b0:2ea:356f:51b3 with SMTP id 98e67ed59e1d1-2ee08e9e80fmr13204963a91.9.1732861353116; Thu, 28 Nov 2024 22:22:33 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:ec8e:b0:2e0:82fe:e3ef with SMTP id 98e67ed59e1d1-2ee25e65384ls1434656a91.2.-pod-prod-09-us; Thu, 28 Nov 2024 22:22:31 -0800 (PST) X-Received: by 2002:a17:90b:1d81:b0:2ea:4e9e:df87 with SMTP id 98e67ed59e1d1-2ee08eb62b0mr12591102a91.19.1732861351612; Thu, 28 Nov 2024 22:22:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732861351; cv=none; d=google.com; s=arc-20240605; b=Bh+Uy0KxvrjVvUoJBaqdtJDxFK9dSXFCj7Jib78fR3VqqsA+cd7LF6tMwstcAYCyPx 4mEC9Smu68BL7RXnZ1EH64GIaHXaI4ZNvn1ptoYzzjx5L5o3UixbYeFMsNDHGgGl5HAC zYnjLXhYPR8Pi8OGYZiSWzIMgxaUE+KBrQOEHXuwjzm7CRpa+xbltoAPkpQq1uJQ93VI ding2Xee/6BRcmtKKHsi4SdDexJStSbyeUYNI4RKloiHkFOBQCkCdqZvkORKLpRFNlBB MqGuAU2bwStGh8ZJheq8WLyWDbOBO534fn7BBi9xJQECExCLV7Yzpeqw8L+h3Dxq6cyr kdVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=shp7HH25X1qv3HRWXbRYVX7eY2WcsJIOM11eHS/06aY=; fh=95wLIF1hw/zIpqq2Ec+GyUgTsRZ8XfjQM59TjRw6kJk=; b=dQXCuGPHHsm5TaRktWsebR+S+VCkDeJac6dEvaImMJDJCHIF4ciivuxq50v73trWMw 5es90fpSP+zmRSP1tXm1ENTfcU99YMD31WjckfX+DIH0P2lzBUklWM3go2wy72vin3HU Z2MSpRhnSejebrCNP795TyOPwRj633JgfpHn6qT5+4/oFycuzAgbfpaQakhp49JKNeeR UXBtUs6GqObNkZYauxIUsuWTiyumKNUqf3Jxc3IKPE0O7x1Uw5nVKy3Z0tQx99kJ7phj AQOCdxpHR43fCmTf30nC4aoD0twuLmdYDqzrxIUqvzjLeh9r2bg/EQFu/LBYJAo0Wb+S 7GXg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.135 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1801.securemx.jp. [210.130.202.135]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2ee0532c1dfsi744720a91.1.2024.11.28.22.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2024 22:22:31 -0800 (PST) Received-SPF: pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.135 as permitted sender) client-ip=210.130.202.135; Received: by mo-csw.securemx.jp (mx-mo-csw1801) id 4AT6MTNf1652653; Fri, 29 Nov 2024 15:22:29 +0900 X-Iguazu-Qid: 2yAaY9rKx41uWLW0Xp X-Iguazu-QSIG: v=2; s=0; t=1732861349; q=2yAaY9rKx41uWLW0Xp; m=jzvNqh5IqbFzvd3eeCZ7NifYevspP6OoV6El2cVpGJ8= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1800) id 4AT6MSOA1226973 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 29 Nov 2024 15:22:29 +0900 From: Adithya Balakumar To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, shivanand.kunijadar@toshiba-tsip.com, sai.sathujoda@toshiba-tsip.com, adithya.balakumar@toshiba-tsip.com Subject: [PATCH v1 0/1] Use oe.utils.directory_size() instead of du for calculating rootfs size Date: Fri, 29 Nov 2024 11:58:25 +0530 X-TSB-HOP2: ON Message-Id: <20241129062827.527177-1-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-OriginalArrivalTime: 29 Nov 2024 06:22:26.0543 (UTC) FILETIME=[0F4D17F0:01DB4227] X-Original-Sender: adithya.balakumar@toshiba-tsip.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.135 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Content-Type: text/plain; charset="UTF-8" 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-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_H3, RCVD_IN_MSPIKE_WL,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-TUID: ELVkT4+wQsnX 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. Although this does not affect any functionality, but it does affect reproducibility of artifacts that rely on the calculated rootfs size. 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, wic uses the calculated rootfs size. 2. ext4 filesystem images with the IMAGE_CMD of isar, relies on rootfs size to create image. 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. Using the "du" command to measure the size of the rootfs directory in such a case, yields different values for the ROOTFS_SIZE. 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]) Based on multiple build runs, usage of this function seems to give consistent size results. Some details on the issue is mentioned in the below thread in the ISAR mailing list (See [2]) [1] https://github.com/openembedded/openembedded-core/commit/d8f1f3a6b024a2ae6631d1ce25421e8d94b69a12 [2] https://groups.google.com/g/isar-users/c/Ll7t4G41Lfo/m/gvxR4hYBAwAJ Adithya Balakumar (1): image.bbclass: use oe.utils.directory_size() instead of du meta/classes/image.bbclass | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) -- 2.39.5 -- 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 email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20241129062827.527177-1-Adithya.Balakumar%40toshiba-tsip.com.