wok-current annotate grub/stuff/dev_partition.diff @ rev 12865
Up: awesome to 3.4.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:17:01 2012 +0000 (2012-05-24) |
parents | ae53586561c8 |
children |
rev | line source |
---|---|
pascal@4024 | 1 Partition can be ${dev}$num or ${dev}p$num |
pascal@4024 | 2 --- grub-0.97/lib/device.c |
pascal@4024 | 3 +++ grub-0.97/lib/device.c |
pascal@7806 | 4 @@ -867,6 +867,13 @@ |
pascal@4024 | 5 fd = open (dev, O_RDWR); |
pascal@4024 | 6 if (fd < 0) |
pascal@4024 | 7 { |
pascal@4024 | 8 + strcpy (dev, map[drive]); |
pascal@4024 | 9 + sprintf (dev + strlen(dev), "p%d", ((partition >> 16) & 0xFF) + 1); |
pascal@7806 | 10 + fd = open (dev, O_RDWR); |
pascal@4024 | 11 + } |
pascal@4024 | 12 + |
pascal@4024 | 13 + if (fd < 0) |
pascal@4024 | 14 + { |
pascal@4024 | 15 errnum = ERR_NO_PART; |
pascal@4024 | 16 return 0; |
pascal@4024 | 17 } |