Skip to contentSkip to conversation

docs/grub.texi: Fix build warnings in libgcrypt and blsuki doc

PATCH Avnish Chouhan 1 participant 2 messages Sep 16, 2025 1 message not in the archive

lore
Share & tools
lore

Avnish Chouhan

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 13 lines · On 2025-09-16 17:33, [email protected] wrote:

Message: 1
Date: Mon, 15 Sep 2025 11:58:32 -0500
From: Andrew Hamilton <[email protected]>
To: The development of GNU GRUB <[email protected]>
Cc: [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected]
Subject: Re: [PATCH] docs/grub.texi: Fix build warnings in libgcrypt
and blsuki doc
Message-ID:
<CA+04=DaRWxJQ5bfs4knb2iCy1tmBvqTOUN8rUuWyzfWGQcY2EQ@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Quoted 3 lines

Looks good to me.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author Reviewed-by
#2 lore raw

Re: [PATCH] getroot: Skip mount points in grub_find_device

In reply to a message not in the archive
Quoted 15 lines · On 2025-09-16 17:33, [email protected] wrote:

Message: 3
Date: Tue, 16 Sep 2025 14:38:05 +0800
From: Michael Chang <[email protected]>
To: The development of GNU GRUB <[email protected]>
Subject: [PATCH] getroot: Skip mount points in grub_find_device
Message-ID: <[email protected]>

The grub_find_device function scans a starting directory, typically /dev, for device files with matching major and minor numbers. During this process, it recursively descends into subdirectories.

However, this can significantly slow down the scan if a subdirectory is a mount point not related to devtmpfs, especially if it contains a large number of files.

Quoted 7 lines

This patch modifies grub_find_device() to skip subdirectories that are mount points. A mount point is detected by comparing the st_dev of the subdirectory against that of the parent or starting directory. While this method does not catch all types of mounts, for eg bind mounts, it is a practical solution that avoids the need to parse /proc/self/mounts.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel