* grub-core/disk/diskfilter.c (grub_diskfilter_write): Call

grub_error properly.
	* grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
	* grub-core/disk/loopback.c (grub_loopback_write): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2013-01-05 15:10:46 +01:00
1 parent a4c3ed4c8f
commit 10ca8645cc
4 files changed
+13 -3

No files matched your search

+2 -1
View File
@@ -831,7 +831,8 @@ grub_diskfilter_write (grub_disk_t disk __attribute ((unused)),
grub_size_t size __attribute ((unused)),
const char *buf __attribute ((unused)))
{
return GRUB_ERR_NOT_IMPLEMENTED_YET;
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"diskfilter writes are not supported");
}
struct grub_diskfilter_vg *
+2 -1
View File
@@ -203,7 +203,8 @@ grub_nand_write (grub_disk_t disk __attribute ((unused)),
grub_size_t size __attribute ((unused)),
const char *buf __attribute ((unused)))
{
return GRUB_ERR_NOT_IMPLEMENTED_YET;
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"nand write is not supported");
}
static struct grub_disk_dev grub_nand_dev =
+2 -1
View File
@@ -206,7 +206,8 @@ grub_loopback_write (grub_disk_t disk __attribute ((unused)),
grub_size_t size __attribute ((unused)),
const char *buf __attribute ((unused)))
{
return GRUB_ERR_NOT_IMPLEMENTED_YET;
return grub_error (GRUB_ERR_NOT_IMPLEMENTED_YET,
"loopback write is not supported");
}
static struct grub_disk_dev grub_loopback_dev =