Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1178818ybh; Thu, 23 Jul 2020 02:24:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWCXaE0vHJmFOMUKoAAZY8yFcWrgPd4FF/uCwIoVrRY3qR0jKHzqyLxPjC6rRb4XJ60wcP X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr3428572ejb.302.1595496272978; Thu, 23 Jul 2020 02:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595496272; cv=none; d=google.com; s=arc-20160816; b=o7gmtbXd/Y7DhwxJ5v5Z0CcQaur5oujQF5uhj42O+pNvvi69qoSpwT0+Q5eRceE+9K pZtlizAftz6r3ucsH4jMDNTs5dCYlvW7YDxf4tPp8Bzc6aox3fEmnB8v9G58f38OCtnX iKtGtJQ6hmRDvO0QdWZEZax4E4YVd3kYdCa5ucaKBbJjuptCqvWz5QFHtdeUbJbnxHUO 07p6FGwj0BDZJwkmLZPzZmVyIN+dxf7BV6tCjfnzWPQcSOdRHxnYRUqudG721TXETmBE xljycSqxRtZgvuFcnOrXSsh+Txt4/y6OBQ3rbA8wMKy70Wloo3d4q/pdTNFhhvujCE/l MVfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pA4CR0m3/S1Bk8sJj/VCsiz1Oga/zL9VpZOAbY6J95w=; b=eXqekLc2+8JCtFQNSxi1JHvdMv7/L8rzVLlDsFuPRIvS6o50inGd9UWv/L7lEc+RvQ 5O49aFz6a6zA05bwAwfItuH63GYODA4baq/0avT8qnRwpo0vt48X0VitdVsB+jrnQpg3 9IrvozPYhnmHBWQy+CRV9+2Tp+o6GXIyG6YFrME/otnMEsX/3lDj/H3DEgy1jfyw9YGC QzdHyLAjN1/7m4EdNkjn9kJj+FMpQvsp0guHBR1Y2wwOjyNCCz4v1EhyKwwCzXu40Vj0 Lr0ESW3c/bt96y7XDaqi4V+EFSaEoYhHfcUq6okpdbv68PhkQrMsxGGHG7eBqROfgB9u EEpw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si1626629edw.359.2020.07.23.02.24.10; Thu, 23 Jul 2020 02:24:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728260AbgGWJWF (ORCPT + 99 others); Thu, 23 Jul 2020 05:22:05 -0400 Received: from verein.lst.de ([213.95.11.211]:59394 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgGWJWE (ORCPT ); Thu, 23 Jul 2020 05:22:04 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 972CA68AFE; Thu, 23 Jul 2020 11:22:00 +0200 (CEST) Date: Thu, 23 Jul 2020 11:22:00 +0200 From: Christoph Hellwig To: Marek Szyprowski Cc: Christoph Hellwig , 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 Message-ID: <20200723092200.GA19922@lst.de> References: <20200714190427.4332-1-hch@lst.de> <20200714190427.4332-17-hch@lst.de> <7f37802c-d8d9-18cd-7394-df51fa785988@samsung.com> <20200718100035.GA8856@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200718100035.GA8856@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: > > Hi Christoph, > > > > 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 > > > > This patch breaks initrd support ;-( > > > > 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. > > Looks like your setup did rely on the /dev/ notes from the built-in > initramfs to be preserved. > > 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. > > 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?