api: storage: Add the missing write operation support
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Sat, 12 Jan 2019 00:03:15 +0000 (02:03 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 22:58:31 +0000 (17:58 -0500)
commit036218a67130343a71ea34aeae1231bc11f040c2
tree600e9b8b408872167ee05626fa7046b4df4a4371
parent0be2ecd4861faa410491170e205488f9ee82a227
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 <cristian.ciocaltea@gmail.com>
api/api.c
api/api_private.h
api/api_storage.c