Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4158955rdh; Tue, 28 Nov 2023 13:33:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeMt62DyxEqRi6dUsCbtoF9L7mQLm7euM9zRnUV7z+FL6Z5StY7YERpm2RXKJ9u+ij71Kr X-Received: by 2002:a17:902:d4cd:b0:1cf:e113:7932 with SMTP id o13-20020a170902d4cd00b001cfe1137932mr5639779plg.17.1701207239568; Tue, 28 Nov 2023 13:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701207239; cv=none; d=google.com; s=arc-20160816; b=OXHN+Kybf1rm6Tt8C+LSq853+BkzU/X6Z9sy4Ndzn25j6nCUMatisJK+L6kBqWPoou U48Ctc/LLSmlvhpanFSTCZRGvJ7zK0ZIR7mxOi82LE+a2jL1Y6XNc8lzPsF31pQXwe1T TN4b88xy+63icz0HYFoxkGQffzX1krXLxvcXhp78LQQBiteQJ4H8zQZyZQd/NOOVdESJ nkOxp0wyzcBYJMvSQma9IDYL+n2N70RDStK6OHl1XxfoVN2evtAlFDGNh2TPmOMlW5U9 yH6+TtcMMeFzA6wyhGnVvXaxhIcd06Hpil1ckxhX1DVsrUrEakHU+yX4EsQUZKiGT0ED ShNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WrEm40NVAUHbW4k2Bj1nRqbdC4si4e2KrUlR3det36Q=; fh=dxBcAnmx4Lkcklzup5Y7sbGmGkDM3vAfsT3qVR4s3pk=; b=kLzIKhgM2819y9yH9wndFsVWWsI61jyv44sIlChHQWa9uMG/i83H8TMy9zi2q5Vloi 2KWi112zQTputHxSSI/2bR20drKxak85DC8H2Iemw3UYlOWHPbC8Ond6Xy64qIpjf46x T1mT7GLD5yuBa+eXPYpUGPQXlLC8umxNqieR6xpEjl5jTLClAeyeDJwJ6fbZ/edN/dmF tsLCFsEuG/CAsb+swVOZFHQOhJy0WNIxotPS6/Wd95G5CEGAIKyjB9AMAzgXLiQLaeq7 kmOxGNjiQ40gFr+5wHLFO+uiAkdbiNDDsb1ZmLMP3ChnesXl77LybNrw0EBwTZO6b724 vSYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XBQZ66Am; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e13-20020a170902d38d00b001cffdad3b26si1740751pld.620.2023.11.28.13.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:33:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XBQZ66Am; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D652080A87FC; Tue, 28 Nov 2023 13:33:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjK1Vdl (ORCPT + 99 others); Tue, 28 Nov 2023 16:33:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjK1Vdk (ORCPT ); Tue, 28 Nov 2023 16:33:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 214B2CC for ; Tue, 28 Nov 2023 13:33:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19E63C433C7; Tue, 28 Nov 2023 21:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701207226; bh=0y0x3HeNVaPz4M/ZlU2XszvPzKuo0CxoGX3FIFfMi8A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XBQZ66AmVpr8uvTcU1bD28+iYbg3ktmiGd87sNJMM9JdcHsAYoyYr2iXJ+LuKFH/0 wyWSfEL0qR3h/Jhuub4iMGXY07SHCVUCdW4B1wLkkv6FdAbvd1Ocl08eWIur6Ua2CZ 5xLZlTByC6iCTVgGdFVElS3zDx+Dm3u5Z3SfWQiY4OhPz+I+M11Fn5fbIpLVm4wzEn nvg2IY8KCEO+IG0ON9JNergQfb5kpcC9WP3D8Ht356FFI5xKhjt5H/RceXuyN/j59t nUh2WLBmjXlw1pJNJHKPG4GhIDp+Vi3lzxy+/0UzY8HYVIxaR9wWlXFYcHcvvi/BiO tv8+IP0l/60Og== Date: Tue, 28 Nov 2023 14:33:44 -0700 From: Nathan Chancellor To: Stephen Rothwell Cc: Christian Brauner , David Sterba , David Sterba , Jan Kara , Josef Bacik , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the vfs-brauner tree with the btrfs tree Message-ID: <20231128213344.GA3423530@dev-arch.thelio-3990X> References: <20231127092001.54a021e8@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231127092001.54a021e8@canb.auug.org.au> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 13:33:57 -0800 (PST) Hi Stephen (and other maintainers), On Mon, Nov 27, 2023 at 09:20:01AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the vfs-brauner tree got a conflict in: > > fs/btrfs/super.c > > between commit: > > 2f2cfead5107 ("btrfs: remove old mount API code") > > from the btrfs tree and commit: > > ead622674df5 ("btrfs: Do not restrict writes to btrfs devices") > > from the vfs-brauner tree. > > I fixed it up (the former removed the funtion updated by the latter, but > a further fix may be required to implement the intent of the latter?) Yes, the lack of ead622674df5 appears to cause issues with mounting btrfs volumes on at least next-20231128 due to the presence of commit 6f861765464f ("fs: Block writes to mounted block devices"). In QEMU, I can see: :: running early hook [udev] Warning: /lib/modules/6.7.0-rc3-next-20231128/modules.devname not found - ignoring Starting systemd-udevd version 252.5-1-arch :: running hook [udev] :: Triggering uevents... :: running hook [keymap] :: Loading keymap...kbd_mode: KDSKBMODE: Inappropriate ioctl for device done. :: performing fsck on '/dev/vda2' :: mounting '/dev/vda2' on real root mount: /new_root: wrong fs type, bad option, bad superblock on /dev/vda2, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call. You are now being dropped into an emergency shell. sh: can't access tty; job control turned off [rootfs ]# The following diff allows my VM to boot properly but I am not sure if there is a better or more proper fix (I am already out of my element heh). If a proper merge solution cannot be found quickly, can 6f861765464f be reverted in the meantime so that all my machines with btrfs can boot properly? :) Cheers, Nathan diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 99d10a25a579..23db0306b8ef 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -299,6 +299,7 @@ static int btrfs_parse_param(struct fs_context *fc, case Opt_device: { struct btrfs_device *device; blk_mode_t mode = sb_open_mode(fc->sb_flags); + mode &= ~BLK_OPEN_RESTRICT_WRITES; mutex_lock(&uuid_mutex); device = btrfs_scan_one_device(param->string, mode, false); @@ -1801,6 +1802,8 @@ static int btrfs_get_tree_super(struct fs_context *fc) blk_mode_t mode = sb_open_mode(fc->sb_flags); int ret; + mode &= ~BLK_OPEN_RESTRICT_WRITES; + btrfs_ctx_to_info(fs_info, ctx); mutex_lock(&uuid_mutex);