2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
* disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical volume name mapping to support bigger than 9 character names properly.
This commit is contained in:
parent
228ffeab3e
commit
0a1150e26b
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
|
||||
|
||||
* disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
|
||||
volume name mapping to support bigger than 9 character names properly.
|
||||
|
||||
2008-04-13 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
|
||||
|
|
|
@ -467,7 +467,7 @@ grub_lvm_scan_device (const char *name)
|
|||
|
||||
for (j = 0; j < seg->stripe_count; j++)
|
||||
{
|
||||
char pvname[10];
|
||||
char *pvname;
|
||||
|
||||
p = grub_strchr (p, '"');
|
||||
if (p == NULL)
|
||||
|
@ -477,6 +477,7 @@ grub_lvm_scan_device (const char *name)
|
|||
q++;
|
||||
|
||||
s = q - p;
|
||||
pvname = grub_malloc (s + 1);
|
||||
grub_memcpy (pvname, p, s);
|
||||
pvname[s] = '\0';
|
||||
|
||||
|
@ -490,6 +491,8 @@ grub_lvm_scan_device (const char *name)
|
|||
}
|
||||
}
|
||||
|
||||
grub_free(pvname);
|
||||
|
||||
stripe->start = grub_lvm_getvalue (&p, ",");
|
||||
if (p == NULL)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue