Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp576838iog; Mon, 13 Jun 2022 08:27:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy56hK0SVmbnjXaoJADp7SHEGIr6suL831BmmvMuKuIazj+YNJfBgHIRuqHBRl1ISUp1CA6 X-Received: by 2002:a05:6402:d05:b0:425:b7ab:776e with SMTP id eb5-20020a0564020d0500b00425b7ab776emr317151edb.142.1655134043315; Mon, 13 Jun 2022 08:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655134043; cv=none; d=google.com; s=arc-20160816; b=HJAqZir0Qj05MNsYK22hjUZh0Yk9sDep4PdSutyRumS13UUvW+Z76TnzvcHBjSr+T8 XKDto4Sz8IkgagljNJUw5tbwcFGCgogqXhV1e+81Sc4CZt9gvsq13QrdZEAqnk6ZpfjY rdsK+QAJYEcgAV6gJzPDI+PhwjnamcD5SxVSstzA3RSIZ7Ea0MYz8edcsHDqx5adcM+P XjMVmF6u0a6Q6kUn4JtZWQRAbKvA+h++XGlDWIdpg88ZIPmWHVgFdaBctXpLNzgnzqa4 vvaWrb0C/tBTVgtAq+YOWaTa85FQ1qJRKKJQpVWnETqVUycG4hdc1V9uYsUjM29zOAJB K9cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8OFLBr6uvI5rMVHVPrb6wzlp6bWk6wxB/v8pS3/WUi0=; b=X9B9Wz/qxCKR123rVAVdWmcdROx0yyVVYa3SbSDjv2p8JyOftizDShAiO9uEdengU+ HfAcg3NZBCSSGh4VkwjdaeQtTZ00j9GDOp+txuAxpTi/jqERls1oVZtnOdCeCYrbi3BY bWRr4ihMUGWefluuDz+j6dqta5ldpebWe4kn5rMA8scQExTFQiwkqVaONCB8W7XutWZB 3u9y6YYFMeX61XWPl8rSUcEO0NA2MEr4UgdolntNM0hwuRi7pt9wjKC/ZFTNEabvxEl5 SkKBHdsAkFDBlHz4cbqQJ+Z1qXKUzrD0b+5++Mzq6sbQh8nebD1RJC4xCxGYyAJduAsJ PW3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rUWM99UL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b29-20020a170906729d00b0070d8de4e431si7961409ejl.206.2022.06.13.08.26.58; Mon, 13 Jun 2022 08:27:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rUWM99UL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345364AbiFMKfz (ORCPT + 99 others); Mon, 13 Jun 2022 06:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345491AbiFMKeJ (ORCPT ); Mon, 13 Jun 2022 06:34:09 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A19286CC; Mon, 13 Jun 2022 03:22:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 36C75CE1161; Mon, 13 Jun 2022 10:22:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49CEEC34114; Mon, 13 Jun 2022 10:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115723; bh=zCjQg/w9ISq4tLVJDF3MgHP2clD1HOeBK4aMcMnB4vI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rUWM99UL8EoqSe6DGhOPP3ZCmGzxb8ke0cWGbycxnhLlDRA9oMbjIJGm89RS/5pUq 9CcpikhINMXoLXqULpp0QRWPbjFHwyK5gL/SlXeDW3uajNFmpSW7juUzIsuozS1zPr pLFq3s8dcXcA4T4+kSrHalFlI5TeHE0g+8v4Apdc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolay Borisov , Qu Wenruo , David Sterba Subject: [PATCH 4.14 006/218] btrfs: add "0x" prefix for unsupported optional features Date: Mon, 13 Jun 2022 12:07:44 +0200 Message-Id: <20220613094909.790165611@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094908.257446132@linuxfoundation.org> References: <20220613094908.257446132@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qu Wenruo commit d5321a0fa8bc49f11bea0b470800962c17d92d8f upstream. The following error message lack the "0x" obviously: cannot mount because of unsupported optional features (4000) Add the prefix to make it less confusing. This can happen on older kernels that try to mount a filesystem with newer features so it makes sense to backport to older trees. CC: stable@vger.kernel.org # 4.14+ Reviewed-by: Nikolay Borisov Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/disk-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2653,7 +2653,7 @@ int open_ctree(struct super_block *sb, ~BTRFS_FEATURE_INCOMPAT_SUPP; if (features) { btrfs_err(fs_info, - "cannot mount because of unsupported optional features (%llx)", + "cannot mount because of unsupported optional features (0x%llx)", features); err = -EINVAL; goto fail_alloc; @@ -2713,7 +2713,7 @@ int open_ctree(struct super_block *sb, ~BTRFS_FEATURE_COMPAT_RO_SUPP; if (!sb_rdonly(sb) && features) { btrfs_err(fs_info, - "cannot mount read-write because of unsupported optional features (%llx)", + "cannot mount read-write because of unsupported optional features (0x%llx)", features); err = -EINVAL; goto fail_alloc;