Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oCRgh-0007Mw-Tx for mharc-grub-devel@gnu.org; Fri, 15 Jul 2022 16:13:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCRga-0007Kr-AG for grub-devel@gnu.org; Fri, 15 Jul 2022 16:13:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:57867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCRgW-0005lx-4R for grub-devel@gnu.org; Fri, 15 Jul 2022 16:13:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657915989; 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; bh=w0ZG38WWrEnkbi0V/9+xP4120sHMWOUHZS25TdGtvYI=; b=JsROhvtYayguRa0TWX/si1BjIOrCgAMQZP7SdmuvUcIdTjggEU9vivNrLExDG6881tZHty 2QRy/m35YXKb9fNohKA2hE0YxUGSBNXNFa+YCqoPxrL+8vQsKwvgTEocpazs7/DyTNeI92 leODzgC5omVYmguAVWDdjGlQ4tUDNkk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-498-FyU3Tp0iOJOxaAoOjl7gZA-1; Fri, 15 Jul 2022 16:13:08 -0400 X-MC-Unique: FyU3Tp0iOJOxaAoOjl7gZA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4A757185A7BA for ; Fri, 15 Jul 2022 20:13:08 +0000 (UTC) Received: from eesha.redhat.com (unknown [10.22.32.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F7C6492C3B; Fri, 15 Jul 2022 20:13:07 +0000 (UTC) From: Robbie Harwood To: grub-devel@gnu.org Cc: Robbie Harwood Subject: [PATCH v1 0/3] FAT: fix mtime 0 breaking updates Date: Fri, 15 Jul 2022 16:12:59 -0400 Message-Id: <20220715201302.16108-1-rharwood@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=rharwood@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=rharwood@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2022 20:13:16 -0000 The first two commits are to make debugging grub-probe failures easier, while the third is the actual fix. A Fedora user reported a problem with grub2-mkconfig failing on their system. This was caused by a grub2-probe failure probing the ESP. It transpired that some files on the ESP had mtime of 0, which was a fatal error for fs/fat. While this is not the first time we have encountered 0 mtimes on the ESP, it's not clear what causes it at this time. Be well, --Robbie Robbie Harwood (3): grub-probe: document the behavior of multiple -v grub_fs_probe(): dprint errors from filesystems fs/fat: don't error when mtime is 0 grub-core/fs/fat.c | 3 --- grub-core/kern/fs.c | 1 + util/grub-probe.c | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) -- 2.35.1