]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 5 Jan 2013 14:10:46 +0000 (15:10 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 5 Jan 2013 14:10:46 +0000 (15:10 +0100)
grub_error properly.
* grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
* grub-core/disk/loopback.c (grub_loopback_write): Likewise.

ChangeLog
grub-core/disk/diskfilter.c
grub-core/disk/ieee1275/nand.c
grub-core/disk/loopback.c

index a28a1f7dff3257a18d392378268f6e7b1196b9d1..f15e098ca4d6ab64d99469f34fd683a511d3ea0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * 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.
+
 2013-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
index ce4c706d9d139f15e940cc2941b1127566a3ba59..4117b20c73a5f63c573953828dd81f16ec7c99ea 100644 (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 *
index ad30852ec932993ee0d2f120435d4eb86dc78249..3474b3ed5c8548cb35613fac137c636ca7c27e98 100644 (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 =
index f3b19eff7a7c4d90df6014051ceda53bac6950d8..fffd1bb856d25538437462a3a0b439ca30c4e5f1 100644 (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 =