From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7176574724112121856 X-Received: by 2002:a05:6871:480c:b0:144:c4e0:73f9 with SMTP id qc12-20020a056871480c00b00144c4e073f9mr387415oab.67.1670950947262; Tue, 13 Dec 2022 09:02:27 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a9d:4714:0:b0:661:91c7:c50b with SMTP id a20-20020a9d4714000000b0066191c7c50bls3133719otf.0.-pod-prod-gmail; Tue, 13 Dec 2022 09:02:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tWZnedDwhJtscppo3B0FQKS6Nn71lixfanNo5LQCUHYl5CJgmYERzR4oXPBqqqfKtNqnG X-Received: by 2002:a9d:4d17:0:b0:671:81c2:6406 with SMTP id n23-20020a9d4d17000000b0067181c26406mr902692otf.38.1670950946630; Tue, 13 Dec 2022 09:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670950946; cv=none; d=google.com; s=arc-20160816; b=KVc052aX3biLz/sX3DTfDN0hvaP+yK2W1wyF/T9mphjoARcHkmuPSuhuKuFtkJSqsG agmWYXQM/1zGrYaBm6EUusTSBJh4IKXpGU5RY5d8bhclaych4PDGLVZujhJ7m7y1S5sd MAaeNFtQSFCNwfUOgzYCiX0ZoFB8j5e7pAHSwmYESx8tEM4ekm+AHVjnzTTFM9Ow/HsS MiGPBiSVp9e4vZIRcOdJlnrUuGMPCznvRknKG3DgsKWDoxVi+XrPgzyS8729P8CbRSoA NuFHSGpdJEmUWEzIfGsdnpauK03zvVg7Qhg1mqUcwq0jyWhjgP7NfF2rJNQ9BICL7ngX dybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=9C8bk9W/N+WeucgVVdC9zbuBu53y1duwlH07LYSl4hA=; b=AIlrtklwLhpsCgyYwXzkNvEdygRofH3pVq0AlTG45avir3CiXNpmG1PhOhX96exXRE n+YL2j6GFxZlU0QaMy5rpYRcG4GVHKfHSXqcUd7NiUJOJcXaOIFOT8PaBz/vDs47AMUm CQwZx57HxB3hSJ4RP6j5RTZCsewW49cfPGVceckv0R6CjzR9TlQDdSmieINORoFB3nz5 iHO0DCPpFCF7bPTLVTubQDflc7MrVu1ZC7Lq/68FE2IRLZRX2n1jJ5qlbanjEBUvwWPQ qZQGbt0TZM6RFTtZlW/RBkbIy8ahU+s0VRgiScuEwFZlW+6v7qvkAwijNkTDsQL59ckJ PWHw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VNM63zu1; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com. [2607:f8b0:4864:20::f29]) by gmr-mx.google.com with ESMTPS id r17-20020a056830237100b0066e950b0580si299072oth.4.2022.12.13.09.02.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Dec 2022 09:02:26 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f29 as permitted sender) client-ip=2607:f8b0:4864:20::f29; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VNM63zu1; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f29 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qv1-xf29.google.com with SMTP id pp21so10028274qvb.5 for ; Tue, 13 Dec 2022 09:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9C8bk9W/N+WeucgVVdC9zbuBu53y1duwlH07LYSl4hA=; b=VNM63zu1HBv5G9c9SAz5eDEOh7NjFXyUuYMgTF0ph1VI7sHciv/wB4QHGq75NrUgu/ SilNPBeNJHgM0S9fXvgqZjLFJ0RF8shAIZb+E+dYlTt4pbSun1hGVhfB7gwMjX/hqpdf jtMUhh7cTK0AtvQ5N7izpXrUudv8Drz9vCLm9OeoKu7Xy4UHOEtDcrM8XruoAKUJjB76 YBLjqipkWu5I4ks2rffQ6bFHHB3Ej22ZN1Zri0ZJiM8u4t0eOXLnySLtMX4DOXA4mcjY MkxL30oJ9oKVprGFS8LFPXUIlTBqwDSWqLTkj1MbogpsD0Q/pLt0xHm4Z7eJvBiCR6Hx d7kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9C8bk9W/N+WeucgVVdC9zbuBu53y1duwlH07LYSl4hA=; b=OhziQEAs1pjhUZ0oW+Ie6b1hsCltywjT5tp4TDeMzbCWmzFRt3A+FUw8GKvNvPSUo7 lffDtNCtv41JBw6h4MvKYDeNW3eTMT0X15bMrNQ3bo6QEjVYF+M1Tb8mhulCAlu5UD9g TObDgXoqD3wCfc+2qDVKhM0x7Jf3iO0Rdw+Xg6CGznRGjEubECEAeyh6zkEI5jukmp7d /6ZVsBcc+4D97/JR0Pilqvk1QubJBMTGuFsuKGc9lah2IE1LgizTyKfH0+DDmXpkUWZv nfaEsK2zymU88wO4MInJpdNGV1GKKy2JzyMT+K+1M10jLXBUZhzssuCMte6snyvGymPJ GCjQ== X-Gm-Message-State: ANoB5pkfzLOnBspKYXhBz9UXfSn5KSJ3M+aY/8E5FkO6FPCf6blvMDM8 iAiPsno9BNCkQ/cKqUZgAqmeLlPE5nyxFZZCdDdYJjeXnQ== X-Received: by 2002:a05:6214:2f88:b0:4c6:fc69:8220 with SMTP id ob8-20020a0562142f8800b004c6fc698220mr45447842qvb.72.1670950946009; Tue, 13 Dec 2022 09:02:26 -0800 (PST) MIME-Version: 1.0 References: <20221213101509.535-1-henning.schild@siemens.com> <20221213101509.535-2-henning.schild@siemens.com> In-Reply-To: <20221213101509.535-2-henning.schild@siemens.com> From: "Roberto A. Foglietta" Date: Tue, 13 Dec 2022 18:01:49 +0100 Message-ID: Subject: Re: [PATCH v4 1/5] expand-on-first-boot: support resizing a btrfs To: henning.schild@siemens.com Cc: isar-users@googlegroups.com, felix.moessbauer@siemens.com, Joe MacDonald Content-Type: text/plain; charset="UTF-8" X-TUID: Z/vpbZ1z7XFA On Tue, 13 Dec 2022 at 11:15, wrote: > > From: Henning Schild > > This adds support for resizing btrfs filesystems if they are in that > last partition. It also prepares for potentially other filesystems to > come in the future by introducing a switch-case. > > The mounting logic is taken from the systemd-growfs patches we had to > revert again. Some filesystems need to online for resizing, but in order > to find the filesystem of a partition (without udev) mounting it and > letting the kernel detect seems a good idea. > It is possible to avoid the udevadm settle constraints only because the boot device [1] is the same as the rootfs device. The boot device should be mapped by the kernel at boot time, so it would be available but not necessarily present in /dev partition if this has no static links or devfs mounted at the time of mount. If udevd is the demon that we choose to populate the /dev then it would be better to wait until it settles down. The stats about boot time on different platforms will show that only hardware slow to detect has a larger boot time. [1] in some embedded devices the boot device is an internal and small device dedicated to the boot while the rootfs is on a separate plug-able device. I have no clue how this would matter in the case of ISAR. Best regards, R-