Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1789522rdd; Thu, 11 Jan 2024 09:16:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxuNuEN4UMgvGr+4rhnkeU8JbyM6VAOfxxRnBHNRhgT27oNYm0xnhsCPf64ar+TkfFkVU4 X-Received: by 2002:a05:6359:4294:b0:170:e12b:c73f with SMTP id kp20-20020a056359429400b00170e12bc73fmr192089rwb.52.1704993383942; Thu, 11 Jan 2024 09:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704993383; cv=none; d=google.com; s=arc-20160816; b=M/QCHePwn8QUPN9eGKuLDKBQOA+AQ3MHwImEr5/zTh8px9ef9qQJnECSWz3bPG8Lr6 OpDoU8p1TWSsuaNlgI3MPYq2tqTo8GBA6GxRhxWqMJkGScxRJkDpYpXs0xGen4LX9NHK 4/EQDOc5aupt7Pi4ZWIcs7i6yTDIZMrCV3TxJ6zUcuvk5BNF/Thm0mjeu+ac1PjaEy3+ 4sDehZD+UNn50foSNi+ErX5zc+dzY6YrdaklYLxjl00IA1FB/Q7X6JFg1GTeUAXW3fmV 8kpW9Kjd4BR2R08wCPKM7CugDygAoyrW1ZOP8V6ivWFde1i7+4I9JYU2XnWDHdRmkemx S1Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :reply-to:message-id:subject:cc:to:from:date; bh=jVaOE3ugIK34YMgQn3NM50EleQXx9IBGub111Wf2Osc=; fh=otRWjAOeNdLIZkXLGekuZ6fu636BtT7XL4HjCUcMGUM=; b=d28FD1TjYzsHUO5oFgzLOlH3h3VaIr2VsH37fAH6rkX6jU6JJ9g+QK090DdEI/99jG kIoroTFraCwsbX5MVq4ksBbp40CdDREHPjFtx5ZmwsLbYF/fgo4q7H3ywxthNct+TfmU ujh31MeOpXzmeqflwlIophdHgCj4Nk4DNur+6Sfez5Qv9VkSqnAmKGZmeX1NkAlsMLi2 VUyYYshA3tY/tLhcogkEOepsS5UjwF6/6VNjXGV1IezGYA6QOVLWeJVAWMbn41SkXYHM JpR8Q6z+t86SE+8OGZMAuBLd+DiwTeZLbra4BjJndPNWyRhOk6RQ5bigGtIYEvlsg+ZD svPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23909-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q190-20020a632ac7000000b005cdfc9ab80csi1422824pgq.396.2024.01.11.09.16.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 09:16:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23909-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23909-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 004F728DA94 for ; Thu, 11 Jan 2024 17:07:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C26F251C46; Thu, 11 Jan 2024 17:07:03 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBB405100A; Thu, 11 Jan 2024 17:07:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DE184221E2; Thu, 11 Jan 2024 17:06:59 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id A1139132FA; Thu, 11 Jan 2024 17:06:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id aj/0JTMgoGVzCQAAn2gu4w (envelope-from ); Thu, 11 Jan 2024 17:06:59 +0000 Date: Thu, 11 Jan 2024 18:06:44 +0100 From: David Sterba To: David Sterba Cc: Thorsten Leemhuis , Anand Jain , linux-btrfs , Linux kernel regressions list , linux-kernel@vger.kernel.org, Alex Romosan , Chris Mason , Josef Bacik , David Sterba Subject: Re: [btrfs] commit bc27d6f0aa0e4de184b617aceeaf25818cc646de breaks update-grub Message-ID: <20240111170644.GK31555@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <39e3a4fe-d456-4de4-b481-51aabfa02b8d@leemhuis.info> <20240111155056.GG31555@twin.jikos.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111155056.GG31555@twin.jikos.cz> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: DE184221E2 X-Spam-Level: X-Spam-Score: -4.00 X-Spam-Flag: NO On Thu, Jan 11, 2024 at 04:50:56PM +0100, David Sterba wrote: > On Thu, Jan 11, 2024 at 12:45:50PM +0100, Thorsten Leemhuis wrote: > > [Adding Anand Jain, the author of the culprit to the list of recipients; > > furthermore CCing the the Btrfs maintainers and the btrfs list; also > > CCing regression list, as it should be in the loop for regressions: > > https://docs.kernel.org/admin-guide/reporting-regressions.html] > > > > On 08.01.24 15:11, Alex Romosan wrote: > > > Please Cc me as I am not subscribed to the list. > > > > > > Running my own compiled kernel without initramfs on a lenovo thinkpad > > > x1 carbon gen 7. > > > > > > Since version 6.7-rc1 i haven't been able to to a grub-update, > > > > > > instead i get this error: > > > > > > grub-probe: error: cannot find a device for / (is /dev mounted?) solid > > > state drive > > > > > > 6.6 was the last version that worked. > > > > > > Today I did a git-bisect between these two versions which identified > > > commit bc27d6f0aa0e4de184b617aceeaf25818cc646de btrfs: scan but don't > > > register device on single device filesystem as the culprit. reverting > > > this commit from 6.7 final allowed me to run update-grub again. > > > > > > not sure if this is the intended behavior or if i'm missing some other > > > kernel options. any help/fixes would be appreciated. > > > > > > thank you. > > > > Thanks for the report. To be sure the issue doesn't fall through the > > cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression > > tracking bot: > > > > #regzbot ^introduced bc27d6f0aa0e4de184b617aceeaf25818cc646de > > #regzbot title btrfs: update-grub broken (cannot find a device for / (is > > /dev mounted?)) > > #regzbot ignore-activity > > The bug is also tracked at https://bugzilla.kernel.org/show_bug.cgi?id=218353 . About the fix: we can't simply revert the patch because the temp_fsid depends on that. A workaround could be to check if the device path is "/dev/root" and still register the device. But I'm not sure if this does not break the use case that Steamdeck needs, as it's for the root partition.