]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 31 May 2010 19:01:01 +0000 (21:01 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 31 May 2010 19:01:01 +0000 (21:01 +0200)
GRUB_DISK_SIZE_UNKNOWN.
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.

ChangeLog
disk/i386/pc/biosdisk.c
disk/ieee1275/ofdisk.c

index a3584355469ed8d17fabac1201604ef310919079..c388ebd27b9661e1ee9962bd52a332c08b06fcb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
+       GRUB_DISK_SIZE_UNKNOWN.
+       * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
+
 2010-05-31  Jiro SEKIBA <jir@unicus.jp>
 
        * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
index 94d0e3708ce9dd22ec01b90ead7d0c310aa4cbd1..f82f91ff0dc879952235c49c6febfe118075f2ee 100644 (file)
@@ -120,7 +120,8 @@ grub_biosdisk_open (const char *name, grub_disk_t disk)
     {
       data->flags = GRUB_BIOSDISK_FLAG_LBA | GRUB_BIOSDISK_FLAG_CDROM;
       data->sectors = 32;
-      total_sectors = GRUB_ULONG_MAX;  /* TODO: get the correct size.  */
+      /* TODO: get the correct size.  */
+      total_sectors = GRUB_DISK_SIZE_UNKNOWN;
     }
   else if (drive & 0x80)
     {
index e5a4a67fad2f613d28d894b86677307142b46603..d0d9e894fe8ba7460cceb1167676377fe3b8f047 100644 (file)
@@ -204,7 +204,7 @@ grub_ofdisk_open (const char *name, grub_disk_t disk)
   /* XXX: There is no property to read the number of blocks.  There
      should be a property `#blocks', but it is not there.  Perhaps it
      is possible to use seek for this.  */
-  disk->total_sectors = 0xFFFFFFFFUL;
+  disk->total_sectors = GRUB_DISK_SIZE_UNKNOWN;
 
   disk->id = (unsigned long) op;