From 036218a67130343a71ea34aeae1231bc11f040c2 Mon Sep 17 00:00:00 2001 From: Cristian Ciocaltea Date: Sat, 12 Jan 2019 02:03:15 +0200 Subject: api: storage: Add the missing write operation support API_dev_write(va_list ap) is currently lacking the write support to storage devices because, historically, those devices did not implement block_write() The solution has been tested by loading and booting a (patched) GRUB instance in a QEMU vexpress-a9 environment. The disk write operations were triggered with GRUB's save_env command. Signed-off-by: Cristian Ciocaltea --- api/api_private.h | 1 + 1 file changed, 1 insertion(+) (limited to 'api/api_private.h') diff --git a/api/api_private.h b/api/api_private.h index 8d97ca95a2..07fd50ad3a 100644 --- a/api/api_private.h +++ b/api/api_private.h @@ -22,6 +22,7 @@ int dev_close_stor(void *); int dev_close_net(void *); lbasize_t dev_read_stor(void *, void *, lbasize_t, lbastart_t); +lbasize_t dev_write_stor(void *, void *, lbasize_t, lbastart_t); int dev_read_net(void *, void *, int); int dev_write_net(void *, void *, int); -- cgit v1.2.3