Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51444 Details for
Bug 80693
grub-0.96 (version bump)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
support for i2o block devices
grub-0.96-i2o-raid.patch (text/plain), 1.56 KB, created by
Ryan Hill (RETIRED)
on 2005-02-17 08:39:59 UTC
(
hide
)
Description:
support for i2o block devices
Filename:
MIME Type:
Creator:
Ryan Hill (RETIRED)
Created:
2005-02-17 08:39:59 UTC
Size:
1.56 KB
patch
obsolete
>diff -ru grub-0.96-orig/lib/device.c grub-0.96/lib/device.c >--- grub-0.96-orig/lib/device.c 2005-02-16 22:33:09.669384408 -0600 >+++ grub-0.96/lib/device.c 2005-02-17 00:47:05.127596672 -0600 >@@ -407,6 +407,12 @@ > { > sprintf (name, "/dev/ataraid/d%c", unit + '0'); > } >+ >+static void >+get_i2o_disk_name (char *name, int unit) >+{ >+ sprintf (name, "/dev/i2o/hd%c", unit + 'a'); >+} > #endif > > /* Check if DEVICE can be read. If an error occurs, return zero, >@@ -798,6 +804,26 @@ > } > } > } >+ >+ /* I2O disks. */ >+ for (i = 0; i < 8; i++) >+ { >+ char name[16]; >+ >+ get_i2o_disk_name (name, i); >+ if (check_device (name)) >+ { >+ (*map)[num_hd + 0x80] = strdup (name); >+ assert ((*map)[num_hd + 0x80]); >+ >+ /* If the device map file is opened, write the map. */ >+ if (fp) >+ fprintf (fp, "(hd%d)\t%s\n", num_hd, name); >+ >+ num_hd++; >+ } >+ } >+ > #endif /* __linux__ */ > > /* OK, close the device map file if opened. */ >@@ -858,8 +884,15 @@ > if (strcmp (dev + strlen(dev) - 5, "/disc") == 0) > strcpy (dev + strlen(dev) - 5, "/part"); > } >- sprintf (dev + strlen(dev), "%d", ((partition >> 16) & 0xFF) + 1); >- >+ sprintf (dev + strlen(dev), "%s%d", >+ /* Compaq smart and others */ >+ (strncmp(dev, "/dev/ida/", 9) == 0 || >+ strncmp(dev, "/dev/ataraid/", 13) == 0 || >+ strncmp(dev, "/dev/cciss/", 11) == 0 || >+ strncmp(dev, "/dev/rd/", 8) == 0 || >+ strncmp(dev, "/dev/i2o/", 9) == 0) ? "p" : "", >+ ((partition >> 16) & 0xFF) + 1); >+ > /* Open the partition. */ > fd = open (dev, O_RDWR); > if (fd < 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 80693
:
50315
|
50316
|
50317
|
50318
|
50319
|
51439
|
51440
|
51441
|
51442
|
51443
|
51444
|
51445
|
51446
|
51491
|
51633
|
51634
|
51660
|
52976
|
53009
|
53147
|
53148
|
53157
|
56647