grub-devel
[Top][All Lists]
Advanced

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

[Patch] strip disk->name of partition suffix in grub_disk_open


From: Grégoire Sutre
Subject: [Patch] strip disk->name of partition suffix in grub_disk_open
Date: Fri, 09 Jul 2010 19:23:49 +0200
User-agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.9.1.9) Gecko/20100603 Shredder/3.0.4

Hi,

When the argument passed to grub_disk_open is a string containing a
partition, e.g. "hd0,msdos3,bsd7", disk->name is set to the full
string instead of just the prefix up to the first ',' (here "hd0").
This leads to incorrect partition identifiers when the disk name and
the partition name are concatenated (I observed this in the debug
messages of my nested partitions patch).

The attached patch fixes this issue.

Grégoire

Attachment: grub_disk_open.diff
Description: Text document


reply via email to

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