Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ldZVU-0004S0-E1 for mharc-grub-devel@gnu.org; Mon, 03 May 2021 10:25:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldZVS-0004RQ-RG for grub-devel@gnu.org; Mon, 03 May 2021 10:25:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldZVP-0001I3-RU for grub-devel@gnu.org; Mon, 03 May 2021 10:25:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620051902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wzIHP0PB/UEM+2SzPf8l7MdxurPR6aahErLbWe1nfY4=; b=A/u159x7npw4FebUgjVY6woeCaYP4Tvuk2uFkc0u5LZQkgphzKER7iX5OK6YWfvI3lC7Jn VRLF3Hh5DWsgEaYYRO45a39q7v4J4WZ4XaiX9yD0eWvvzlsLUApk+qI3yYifX5Bzm4ZRyC NqbDDOZ8T2LkhKJou/WMgn4k4xMqFjI= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-348-TfVft72SNIGZcQ3wAqkHmQ-1; Mon, 03 May 2021 10:24:59 -0400 X-MC-Unique: TfVft72SNIGZcQ3wAqkHmQ-1 Received: by mail-wm1-f71.google.com with SMTP id n9-20020a1c40090000b02901401bf40f9dso2520821wma.0 for ; Mon, 03 May 2021 07:24:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wzIHP0PB/UEM+2SzPf8l7MdxurPR6aahErLbWe1nfY4=; b=osRPkZlUPcnerjiwFGmQ/aiQhgZV/eMHAC5lcrecK9h1p5h1BN9cp+UXPpXdkmRO0e XsAacJp7letbfi8ZdxF00gNhcZHKE2Jf77RxDoXvvaBkm2ORcatac21Ua4W1KaIFQMhh Hn19uvWLLq4x5ex8pSMuR2ietNAOdw0ZC5wSl7XMdKtR8XOj42EVrNUwdZZfNtLxS4dF hFsvxaKFp3NiW0IxUPjixAhIB9OtK/BVs4NMYsTCoZwsoJIgU08ZUBgFXm9rkyTfP3xI jiD9fdAqjLs9+jeJHqLyacaSyodVGZLNN1HDrBbQb+8iB5L9tkBxOpv0kzlRG4OUF9om Wmvg== X-Gm-Message-State: AOAM530xMCFG+WlDaPH86LRRgO7OYOE6p3UDUuFdz6Gte9NbtLVbnpo6 aLYNStGS4SQUZbiiMy+z15Cub/7xHj5VbfMswiv+CvlnqIwHW3p8TeTyxykGOZACjtTxHjWvDX/ PUMYZN3OhdEQ= X-Received: by 2002:a05:600c:4105:: with SMTP id j5mr11921018wmi.141.1620051897942; Mon, 03 May 2021 07:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+sNJsJ/cRUiCV1Wt+X0q7h0pDcWOuV3e8S3kJVBonv0yDU2+DU311f7165qxBPziyuIzCYA== X-Received: by 2002:a05:600c:4105:: with SMTP id j5mr11921009wmi.141.1620051897751; Mon, 03 May 2021 07:24:57 -0700 (PDT) Received: from [192.168.1.101] ([92.176.231.106]) by smtp.gmail.com with ESMTPSA id l18sm2952786wrt.97.2021.05.03.07.24.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 May 2021 07:24:57 -0700 (PDT) Subject: Re: [PATCH] xfs: Print a warning if the filesystem needs to be repaired To: The development of GNU GRUB , Daniel Kiper , Carlos Maiolino Cc: Vladimir 'phcoder' Serbinenko References: <20210419151650.207380-1-javierm@redhat.com> <20210429090520.zryruetjqn6yw4pz@omega.lan> <20210429143245.6jdapteb4ilklsqm@tomti.i.net-space.pl> From: Javier Martinez Canillas Message-ID: Date: Mon, 3 May 2021 16:24:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210429143245.6jdapteb4ilklsqm@tomti.i.net-space.pl> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=javierm@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=javierm@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.698, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 14:25:07 -0000 Hello Daniel, On 4/29/21 4:32 PM, Daniel Kiper wrote: > On Thu, Apr 29, 2021 at 11:05:20AM +0200, Carlos Maiolino wrote: >> On Thu, Apr 22, 2021 at 05:15:31PM +0200, Javier Martinez Canillas wrote: >>> Hello Vladimir, >>> >>> On 4/22/21 4:56 PM, Vladimir 'phcoder' Serbinenko wrote: >>>> Filesystems are not mounted in GRUB. This patch will result in GRUB >>>> outputting a warning on every access to any XFS that has this flag set, >>>> even if it is not related to further booting. It will create an excessive >>>> noise. FS drivers shouldn't print anything except dprintf's >> >> I see. Good to know, thanks for the information. >> >>> Do you think we should just ignore the flag then and drop this patch or it is >>> worth to have some debugging printouts with grub_dprintf("xfs", ... ) ? >> >> If I understand this correctly, grub can simply ignore the flag, which will make >> it attempt to read the filesystem anyway. >> >> Although, if it fails to read the FS for 'some reason', maybe it can print out >> a debug message then saying such flag was set in the filesystem? This may give >> some extra information to the user?! > > I think it is good idea. Could you prepare a patch? > Yes, I'll post a new version today. Also, it was pointed out to me that even if GRUB will mostly ignore this feature flag (besides printing a message if fails to read something), we should at least include XFS_SB_FEAT_INCOMPAT_NEEDSREPAIR in the XFS_SB_FEAT_INCOMPAT_SUPPORTED list. Otherwise GRUB will just fail to read anything if grub_xfs_sb_valid() finds that an unsupported incompatible feature is enabled in the super block. > Daniel Best regards, -- Javier Martinez Canillas Software Engineer - Desktop Hardware Enablement Red Hat