Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1378770ybh; Thu, 23 Jul 2020 07:28:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJAwLn1ZkOMU3Wm2HNxol+XpvtliejXKp2HUxY6Bs8mWlg7kRjzJ5gWYKCmVJfqZcUZvQE X-Received: by 2002:a05:6402:1777:: with SMTP id da23mr4326675edb.260.1595514529067; Thu, 23 Jul 2020 07:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595514529; cv=none; d=google.com; s=arc-20160816; b=zaZwZRVbLA/ptw695h3exumGl2A2YwaAJMe9tMM6wx19tD2sKvC8h5ZBMNTIzfYkVq wxOZoJNyBM9zRefDr3cES6LA72ypCZxF6JIAZgH1nRNGp2Up65HlOvkjhxcYWq5bOez2 kgaL3q37eaJCU6BTa3kOIZfLbgoGoASndFPbyDANXOIItMLv04vhFiEAe8S9yiGUBwCg Qq4kUef54ZZjMqVw0ekVIO4VukwR+7BChlaUQPvtMAzyVZWbIf1+XoqS56oBt+HU85CI HgpvLdlKLSPm/UKeZauGJMvbDNn5/5qWurmgf+fXfyktkVkDgcs18+0oJP4LkH9xEOZh ALSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:mime-version :user-agent:message-id:in-reply-to:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=XblqhHotE04vqI3vJOD38XY1WNUqiSxUmdSjsxQlq7g=; b=lpWq/Y3P/Xt8Oeay9f7aUqbbKxU0o3YyiuzQ4KdCr3F+7I9hgagcTB0x75VETwPIaW oQWFh0zQXGVa/qVxgv3c8oret4KMkoYJmqf+ULWOrc59byU+bbOyKEyjNkZ7aj4YtCXl /HpNPITeNj9MqPFzR+ZmxWM24MKcoxAkDNFP6M3PAyHjKicjauB7zt3f9WFrM4SEXVkk Ti6tDJfkQ3xp4jlxsLo6BbPhb4t/tu1uWVANXDUPIBkLU77IFqMYgoK2bxdUPzDKtQ36 ddqRNmyD4I/LfCPCMchr2oG5zRR1FyMiS60SH+DpQFIBcx4DN97VgXfOOrXKeo6EKiql qNbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=L4IBioIr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si2154617ejm.542.2020.07.23.07.28.26; Thu, 23 Jul 2020 07:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=L4IBioIr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729433AbgGWOZk (ORCPT + 99 others); Thu, 23 Jul 2020 10:25:40 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:33348 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbgGWOZj (ORCPT ); Thu, 23 Jul 2020 10:25:39 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200723142537euoutp01c5bd94faaceb1e6a0ef0fdcf76eb2648~kZ9YQmaqq2632726327euoutp01Y; Thu, 23 Jul 2020 14:25:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200723142537euoutp01c5bd94faaceb1e6a0ef0fdcf76eb2648~kZ9YQmaqq2632726327euoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1595514337; bh=XblqhHotE04vqI3vJOD38XY1WNUqiSxUmdSjsxQlq7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L4IBioIro44iP3nNPLVSmAdcUdBN9z6FHBVorMZx9vbcOzejdJnSTVjo/iODmazmr XpL4AMJbU/jZ9ueEq47GFTDH+c1sRIQV8CXawP8ENQt0GMeobwug/iW8CWcI7KDeIs i+oEknw+sJviGQ7iR/ndm45d8mpeJQKnTVHKjGIw= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200723142536eucas1p14b526f8e42a720c90c14fbb3a8d7e42f~kZ9YDBYsc2192821928eucas1p1-; Thu, 23 Jul 2020 14:25:36 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 15.8B.06318.0ED991F5; Thu, 23 Jul 2020 15:25:36 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200723142536eucas1p1105d54cc19853bca536322ee57a2e764~kZ9XpIAzk0638806388eucas1p1e; Thu, 23 Jul 2020 14:25:36 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200723142536eusmtrp26b31166e14f44aadaedac1e77ab26c23~kZ9Xn7ny12608626086eusmtrp2f; Thu, 23 Jul 2020 14:25:36 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-59-5f199de09441 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 41.40.06017.0ED991F5; Thu, 23 Jul 2020 15:25:36 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200723142536eusmtip10ae41042e0de0f09aeb9bf6c7b8fe384~kZ9XeRlCr0172601726eusmtip1O; Thu, 23 Jul 2020 14:25:36 +0000 (GMT) From: Lukasz Stelmach To: Christoph Hellwig Cc: Marek Szyprowski , linux-kernel@vger.kernel.org, "H. Peter Anvin" , Song Liu , Al Viro , Linus Torvalds , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, Bartlomiej Zolnierkiewicz Subject: Re: [PATCH 16/23] initramfs: simplify clean_rootfs Date: Thu, 23 Jul 2020 16:25:34 +0200 In-Reply-To: <20200723092200.GA19922@lst.de> (Christoph Hellwig's message of "Thu, 23 Jul 2020 11:22:00 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa1BMYRjHveecPXvasXk7mB5FWEyDaWNyOUaapOGMD8ZHudVunSm0u9mj whhiXEOZjNJFaV2yUdGsHVsha9kuUqMxk9ugqYnVTkOiC9J2aqZvv+d5/v/n8s7LkOw7mR+z S79PMOo1iSpaQVmfDzQHfboyI3rJt19B3L3LFTLOfPsZwWXf8+VqHtZTXGtVAc2dKqpCXJnj g5xzlvylufYMt5xr/uuUhSv4ytIzNF93eYjiq9+k0XyGpRTxvZUBfGWHm+Drjv+UbZZvVYTG CYm7UgRjcFiMIiGn10oldbH789MHqDTknpKOvBjAy6D9xmMiHSkYFt9CkN5yl5KCnwgedL+n PSoW9yJo7Js37ui54hoTlSDIOWoipaALgav+3YiDYWishrKyLR7DNKyCTlcT8mhI/ImAH09s pKcwFa+G34Xf5R6m8AKoa+gYzXvhvXD9y1vCw0q8Et66a0Y10/EqsHz5KJfyPlCf20F5mMQ6 yG3uHh0AuE8Or/JPENKqkVCQaxnjqeByWuQSz4RhWxHhWRTwEbiYtULynkNgLeinJM1qeP9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BK1EnGC7EmlhVX5h5iVAEa82jD6guMUix5+XmpSiK8TmdPxwnx piRWVqUW5ccXleakFh9iNAX6cyKzlGhyPjB55JXEG5oamltYGpobmxubWSiJ83YIHIwREkhP LEnNTk0tSC2C6WPi4JRqYMxY9NZA/Fb8lhObOd//2avhYaciO+XXXo4yD7Ol71htZ1YL7b36 39xj75xDzYXlU6pD5R/OiU6VX/7t0urY4n1iGVxzBQ4v5bHO4MhWmbXkV0icxuHVn1S23Ty8 hK2lzLvH82KL084KpjyWyQcEmiYWPXjnPrXHuMjjuGnduv2GG4OvJs6P71ViKc5INNRiLipO BAACTmjg5gIAAA== X-CMS-MailID: 20200723142536eucas1p1105d54cc19853bca536322ee57a2e764 X-Msg-Generator: CA X-RootMTR: 20200717205549eucas1p13fca9a8496836faa71df515524743648 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200717205549eucas1p13fca9a8496836faa71df515524743648 References: <20200714190427.4332-1-hch@lst.de> <20200714190427.4332-17-hch@lst.de> <7f37802c-d8d9-18cd-7394-df51fa785988@samsung.com> <20200718100035.GA8856@lst.de> <20200723092200.GA19922@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable It was <2020-07-23 czw 11:22>, when Christoph Hellwig wrote: > On Sat, Jul 18, 2020 at 12:00:35PM +0200, Christoph Hellwig wrote: >> On Fri, Jul 17, 2020 at 10:55:48PM +0200, Marek Szyprowski wrote: >>> On 14.07.2020 21:04, Christoph Hellwig wrote: >>>> Just use d_genocide instead of iterating through the root directory >>>> with cumbersome userspace-like APIs. This also ensures we actually >>>> remove files that are not direct children of the root entry, which >>>> the old code failed to do. >>>> >>>> Fixes: df52092f3c97 ("fastboot: remove duplicate unpack_to_rootfs()") >>>> Signed-off-by: Christoph Hellwig >>>>=20 >>> This patch breaks initrd support ;-( >>>=20 >>> I use initrd to deploy kernel modules on my test machines. It was >>> automatically mounted on /initrd. /lib/modules is just a symlink to >>> /initrd. I know that initrd support is marked as deprecated, but it >>> would be really nice to give people some time to update their >>> machines before breaking the stuff. >>=20 >> Looks like your setup did rely on the /dev/ notes from the built-in >> initramfs to be preserved. Our initrd image contains only the modules directory and 5.8.0-rc5-next-202= 00717 in it. >> Can you comment out the call to d_genocide? It seems like for your >> the fact that clean_rootfs didn't actually clean up was a feature and >> not a bug. >>=20 >> I guess the old, pre-2008 code also wouldn't have worked for you in >> that case. > > Did you get a chance to try this? Indeed, commenting out d_genocide() helps. Kind regards, =C5=81S PS. Marek is currently out of office. =2D-=20 =C5=81ukasz Stelmach Samsung R&D Institute Poland Samsung Electronics --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXpuyqjq9kGEVr9UQsK4enJilgBAFAl8Znd4ACgkQsK4enJil gBCbRwf/a8zcYpq6fg33J7fIlOcoksF9Af2NtQiylKh+dwApPMNMHisMvMZSiqjJ 2e7fkz2A/7RgmFIuZy4INXlKBO1BUKC8iePYl8keZNbpc+r3Tn8dx4+uCFq0zVGZ CbIcosS97UJ5sdDRvdBPPHISN4ujFnVkSrmvFbFLLRpVF0+RxKpaPLLFc/OHlp9s KX0vJSICnxsS4sabz/HYURUoRqsMwqo+O/di8aCurcBR/1hVU93ypL0a1KulGx8W XucamIFSYjMSUjb2/UGxA2wK4OnvY7PRORBFqzc7jnyBFfd3SHnVnUQ8LIqykF/x VuX6fRL3WIeruj3QAxeYcm0uZaqzXQ== =uiDC -----END PGP SIGNATURE----- --=-=-=--