mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
Report disk size
This commit is contained in:
1 parent
b2e2e9b07d
commit
04e80baa32
1 file changed
+1
-1
@@ -246,7 +246,7 @@ uboot_disk_open (const char *name, struct grub_disk *disk)
|
||||
grub_dprintf ("ubootdisk", "(%s) blocksize=%d, log_sector_size=%d\n",
|
||||
disk->name, d->block_size, disk->log_sector_size);
|
||||
|
||||
disk->total_sectors = GRUB_DISK_SIZE_UNKNOWN;
|
||||
disk->total_sectors = devinfo->di_stor.block_count ? : GRUB_DISK_SIZE_UNKNOWN;
|
||||
disk->data = d;
|
||||
|
||||
return GRUB_ERR_NONE;
|
||||
|
||||
Reference in new issue
Block a user