grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [PATCH] disk: Prioritize OS disk devices over memdisk and procfs


From: Daniel Kiper
Subject: Re: Re: [PATCH] disk: Prioritize OS disk devices over memdisk and procfs
Date: Mon, 18 Mar 2024 12:34:37 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Mar 18, 2024 at 02:21:36PM +0800, Michael Chang wrote:
> On Fri, Mar 15, 2024 at 04:09:02PM +0100, Daniel Kiper wrote:
> > On Fri, Mar 15, 2024 at 05:00:28PM +0800, Michael Chang via Grub-devel 
> > wrote:
> > > Refine iteration to prioritize returning system disk devices over
> > > memdisk and procfs. This adjustment brings about a modest improvement in
> > > search efficiency, particularly during file or UUID-based
> > > searches for a root file system. Additionally, it helps mitigate
> > > potential collisions in file-based searches where memdisk may mistakenly
> > > take precedence over system disks.
> >
> > It seems to me you could do this without adding additional loops. If it
> > is not possible the change begs for comment.
>
> Thanks for review. The added loop for proc and memdisk in the final
> output is required for the `ls' to output list of all devices. I'll add
> this to the comment and send v2 patch.

I understand that. However, by adding two ifs and two variables or so
you would be able to avoid two additional loops. And I would really
prefer that...

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]