2009-12-10 Felix Zielcke <fzielcke@z-51.de>
* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk name in an error message. (grub_biosdisk_rw): Likewise.
This commit is contained in:
parent
2e59983c82
commit
0d56ed64d2
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-12-10 Felix Zielcke <fzielcke@z-51.de>
|
||||||
|
|
||||||
|
* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
|
||||||
|
name in an error message.
|
||||||
|
(grub_biosdisk_rw): Likewise.
|
||||||
|
|
||||||
2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
|
2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Eliminate NTFS 4Gib barrier.
|
Eliminate NTFS 4Gib barrier.
|
||||||
|
|
|
@ -169,7 +169,7 @@ grub_biosdisk_open (const char *name, grub_disk_t disk)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
grub_free (data);
|
grub_free (data);
|
||||||
return grub_error (GRUB_ERR_BAD_DEVICE, "cannot get C/H/S values");
|
return grub_error (GRUB_ERR_BAD_DEVICE, "%s cannot get C/H/S values", disk->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ grub_biosdisk_rw (int cmd, grub_disk_t disk,
|
||||||
1024 /* cylinders */ *
|
1024 /* cylinders */ *
|
||||||
256 /* heads */ *
|
256 /* heads */ *
|
||||||
63 /* spt */)
|
63 /* spt */)
|
||||||
return grub_error (GRUB_ERR_OUT_OF_RANGE, "out of disk");
|
return grub_error (GRUB_ERR_OUT_OF_RANGE, "%s out of disk", disk->name);
|
||||||
|
|
||||||
soff = ((grub_uint32_t) sector) % data->sectors + 1;
|
soff = ((grub_uint32_t) sector) % data->sectors + 1;
|
||||||
head = ((grub_uint32_t) sector) / data->sectors;
|
head = ((grub_uint32_t) sector) / data->sectors;
|
||||||
|
@ -260,7 +260,7 @@ grub_biosdisk_rw (int cmd, grub_disk_t disk,
|
||||||
coff = head / data->heads;
|
coff = head / data->heads;
|
||||||
|
|
||||||
if (coff >= data->cylinders)
|
if (coff >= data->cylinders)
|
||||||
return grub_error (GRUB_ERR_OUT_OF_RANGE, "out of disk");
|
return grub_error (GRUB_ERR_OUT_OF_RANGE, "%s out of disk", disk->name);
|
||||||
|
|
||||||
if (grub_biosdisk_rw_standard (cmd + 0x02, data->drive,
|
if (grub_biosdisk_rw_standard (cmd + 0x02, data->drive,
|
||||||
coff, hoff, soff, size, segment))
|
coff, hoff, soff, size, segment))
|
||||||
|
@ -268,9 +268,9 @@ grub_biosdisk_rw (int cmd, grub_disk_t disk,
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case GRUB_BIOSDISK_READ:
|
case GRUB_BIOSDISK_READ:
|
||||||
return grub_error (GRUB_ERR_READ_ERROR, "biosdisk read error");
|
return grub_error (GRUB_ERR_READ_ERROR, "%s read error", disk->name);
|
||||||
case GRUB_BIOSDISK_WRITE:
|
case GRUB_BIOSDISK_WRITE:
|
||||||
return grub_error (GRUB_ERR_WRITE_ERROR, "biosdisk write error");
|
return grub_error (GRUB_ERR_WRITE_ERROR, "%s write error", disk->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue